]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* util/grub-editenv.c (help_filter, argp): Document how to delete
[grub2.git] / ChangeLog
CommitLineData
d0d1e3da
CW
12013-11-13 Colin Watson <cjwatson@ubuntu.com>
2
3 * util/grub-editenv.c (help_filter, argp): Document how to delete
4 the whole environment block.
5 Reported by Dan Jacobson. Fixes Debian bug #726265.
6
3809f016
CW
72013-11-13 Colin Watson <cjwatson@ubuntu.com>
8
9 * docs/grub.texi (Internationalisation, Supported kernels): Fix
10 sectioning.
11
46d8a203
JT
122013-11-13 Josh Triplett <josh@joshtriplett.org>
13
14 * grub-core/normal/term.c (grub_set_more): Use bool logic rather than
15 increment/decrement.
16
513eeb61
VS
172013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * grub-core/kern/arm/cache_armv6.S [__clang__]: Don't add .armv6 when
20 compiling with clang.
21
bc379c1a
VS
222013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
23
24 * grub-core/kern/arm/uboot/startup.S: Use .org rather than assigning
25 ".".
26
272013-11-13 Vladimir Serbinenko <phcoder@gmail.com>
286551b4 28
16057d6b
VS
29 Redirect all divisions to grub_divmod64.
30
f649a6a8
VS
312013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
32
33 * grub-core/term/tparm.c (tparam_internal): Use unsigned divisions.
34
ef28ee8b
VS
352013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
36
37 Add missing includes of loader.h.
38
300f48c5
VS
392013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
40
41 * configure.ac: Allow disabling themes.
42
2d357558
LS
432013-11-12 Lukas Schwaighofer <lukas@schwaighofer.name>
44
45 * util/grub.d/20_linux_xen.in: Don't decompress initrd.
46
0c62a5b2
VS
472013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/term/at_keyboard.c: Don't poll non-functional AT controller
50 until it becomes operational.
51
b0720b49
VS
522013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
53
54 * grub-core/Makefile.core.def (legacy_password_test): Disable
55 on platforms where no legacycfg is compiled.
56 * grub-core/tests/lib/functional_test.c: Tolerate failure to
57 load legacy_password_test.
58
d5bab2c0
VS
592013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
60
61 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
62
3ea0ccb3
VS
632013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * grub-core/efiemu/prepare.c: Remove variable length arrays.
66
08772054
VS
672013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
68
69 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror): Silence
70 strict-aliasing warning.
71 (fsync): Silence cast warning.
72
1dcb2715
VS
732013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
74
75 * grub-core/commands/verify.c: Remove variable length arrays.
76 Load gcry_dsa/gcry_rsa automatically.
77
61c22fdf
VS
782013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
79
80 * grub-core/tests/signature_test.c: New test.
81
431e57a7
VS
822013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
83
84 * grub-core/disk/cryptodisk.c (luks_script_get): Adapt to new procfs
85 API.
86
b521bb81
VS
872013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/tests/legacy_password_test.c (vectors): Make static.
90 * grub-core/tests/pbkdf2_test.c (vectors): Likewise.
91
7d06b24e
VS
922013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
93
94 * grub-core/tests/setjmp_test.c: Reset counter to 0 before starting.
95
3bbeade4
VS
962013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * grub-core/fs/proc.c: Allow \0 in proc files.
99
ba82db7a
VS
1002013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
101
102 * grub-core/tests/xnu_uuid_test.c: Fix assert message.
103
801564c8
VS
1042013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
105
106 * grub-core/tests/xnu_uuid_test.c: Fix copyright year.
107
ac8cac1d
VS
1082013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
109
110 * grub-core/fs/ext2.c: Remove variable length arrays.
111
4b85f122
VS
1122013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * grub-core/lib/crypto.c (grub_crypto_cbc_decrypt): Remove variable
115 length arrays.
116
c35fcdc0
VS
1172013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
118
119 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
120 * grub-core/disk/cryptodisk.c: Likewise.
121 * grub-core/disk/geli.c: Likewise.
122 * grub-core/disk/luks.c: Likewise.
123
15decd26
VS
1242013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * grub-core/tests/legacy_password_test.c: New test.
127 * grub-core/commands/legacycfg.c: Remove variable length arrays.
128
9c6482b8
VS
1292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
130
131 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
132
41f26e0e
VS
1332013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
134
135 * grub-core/tests/pbkdf2_test.c: New test.
136
2def6616
VS
1372013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
138
139 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
140
9e34a34e
VS
1412013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
142
143 * grub-core/io/lzopio.c: Remove variable length arrays.
144
5ccaf904
VS
1452013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
146
147 * include/grub/crypto.h: Add maximums on hash size and cipher block
148 size.
149
44a387e0
VS
1502013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
151
152 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
153
a388e255
VS
1542013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/tests/xnu_uuid_test.c: New test.
157
a1ef7718
VS
1582013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
159
160 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
161 covers it).
162
65ddb300
VS
1632013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
164
165 * grub-core/commands/hashsum.c: Remove variable length arrays.
166
31747dd5
VS
1672013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
170 condition.
171 * tests/grub_func_test.in: Increase memory allocation.
172
6a74c4df
VS
1732013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
174
175 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
176 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
177 sys/mount.h.
178
394c3e0a
VS
1792013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
180
181 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
182 (grub_util_get_fd_size_os): ...this.
183 (grub_hostdisk_flush_initial_buffer): New empty function.
184
60d31116
VS
1852013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * grub-core/gensyminfo.sh.in: Handle the case of portable output
188 without --defined-only.
189
8445b011
VS
1902013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
191
192 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
193 rip-relative addressing in prologue.
194
8506a641
VS
1952013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
196
197 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
198 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
199
66acd9d6
VS
2002013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
201
202 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
203 Add missing semicolon.
204
348d0535
VS
2052013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
206
207 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
208
0d2d30bb
VS
2092013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
210
211 * configure.ac: Check for lzma.h for enabling liblzma and allow
212 manual disabling.
213
631187be
VS
2142013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
215
216 Add missing includes of loader.h.
217
e756ec82
FZ
2182013-11-11 Fam Zheng <famcool@gmail.com>
219
220 * util/grub.d/30_os-prober.in: Add minix entry.
221
87d62d7d
VS
2222013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
223
224 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
225 right buffer for temporary load.
226
5460cfeb
VS
2272013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
230
89977306
VS
2312013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
232
233 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
234 payload.
235
3617c59b
VS
2362013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
237
238 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
239 not Types.h.
240 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
241 environment.
242 (LzmaDec_InitDicAndState): Make static.
243
881c6a10
VS
2442013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
247
2024ade2
VS
2482013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
251
252 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
253
674ad4f6
VS
2542013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
255
256 * docs/grub-dev.texi: Replace bzr references with git ones.
257
5b99970e
AB
2582013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
259
260 * docs/grub.texi (Simple configuration): Remove reference to
261 grub-reboot from saved default entry description - grub-default
262 does not use it anymore.
263
3c2304d5
VS
2642013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
265
266 * configure.ac: Make efiemu test cflags match the cflags efiemu is
267 compiled with.
268
80cfd940
AB
2692013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
270
271 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
272
33690255
VS
2732013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
274
275 Fix grub_machine_fini bitrot.
276
277 Reported by: Glenn Washburn.
278
c61471fc
VS
2792013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
280
281 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
282
54da019f
VS
2832013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
284
285 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
286 -DELF.
287 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
288 instead of ELF*.
289
2902013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
291
292 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
293 Add -march=core2 when testing compile of efiemu64.
294
295 Thanks Andrey Borzenkov for spotting this.
296
9612ebc0
VS
2972013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
298
299 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
300 XEN PV environment and load kernels.
301
1a46a3a4
VS
3022013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
303
304 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
305 * grub-core/loader/multiboot_mbi2.c: Likewise.
306
2df12551
VS
3072013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
308
309 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
310 handling.
311
3c980381
VS
3122013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
313
314 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
315
316 Tested by: Denis 'GNUtoo' Carikli.
317
800f63d3
VS
3182013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
321
9f8acdaa
VS
3222013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
323
5620eb53
VS
324 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
325 Use to get rounded angle rather than truncated.
326
3272013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
328
329 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
330 RTS/CTS flow control.
331
2dc1eb6c
VS
3322013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
333
334 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
335 divisions.
336
b9563c94
VS
3372013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
338
339 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
340 Use grub_fatal rather than divide by zero.
341 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
342
d6d8e9a9
VS
3432013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
344
345 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
346 truncate.
347 (grub_fixed_fsf_divide): Likewise.
348
d06de6c8
VS
3492013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
350
351 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
352 division by-zero and senseless negative divisions.
353
6af7d49b
VS
3542013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
355
356 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
357 division by-zero and senseless negative divisions.
358 (circprog_set_property): Don't accept negative num_ticks.
359
bcfa6d72
VS
3602013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
361
362 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
363 division by-zero and senseless negative divisions.
364
dd7f792c
VS
3652013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
366
367 * configure.ac: Use elf_*_fbsd on kfreebsd.
368
d061fda7
VS
3692013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/tests/div_test.c: New test.
372
4db22500
VT
3732013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
374
375 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
376 * grub-core/gfxmenu/gui_canvas.c: Likewise.
377 * grub-core/gfxmenu/view.c: Likewise.
378 * grub-core/video/fb/video_fb.c: Introduce new functions:
379 grub_video_set_area_status, grub_video_get_area_status,
380 grub_video_set_region, grub_video_get_region.
381 * grub-core/video/bochs.c: Likewise.
382 * grub-core/video/capture.c: Likewise.
383 * grub-core/video/video.c: Likewise.
384 * grub-core/video/cirrus.c: Likewise.
385 * grub-core/video/efi_gop.c: Likewise.
386 * grub-core/video/efi_uga.c: Likewise.
387 * grub-core/video/emu/sdl.c: Likewise.
388 * grub-core/video/radeon_fuloong2e.c: Likewise.
389 * grub-core/video/sis315pro.c: Likewise.
390 * grub-core/video/sm712.c: Likewise.
391 * grub-core/video/i386/pc/vbe.c: Likewise.
392 * grub-core/video/i386/pc/vga.c: Likewise.
393 * grub-core/video/ieee1275.c: Likewise.
394 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
395 * include/grub/video.h: Likewise.
396 * include/grub/video_fb.h: Likewise.
397 * include/grub/fbfill.h: Updated render_target structure.
398 grub_video_rect_t viewport, region, area
399 int area_offset_x, area_offset_y, area_enabled
400 * include/grub/gui.h: New helper function
401 grub_video_bounds_inside_region.
402 * docs/grub-dev.texi: Added information about new functions.
403
c6b755df
VS
4042013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
405
406 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
407 for alignment.
408
e2a68100
VS
4092013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
410
411 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
412 missing attribute.
413 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
414
c4f11a2a
VS
4152013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
418 simple division on arm and ia64.
419
e0a7bffa
VS
4202013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
423 link with libgcc.
424
38b864ea
VS
4252013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
426
427 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
428
12359faf
VS
4292013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
430
431 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
432 prefix symbol, not @.
433
9fdc64a9
VS
4342013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
435
436 * INSTALL: Add note about older gcc and clang.
437
665c575b
VS
4382013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
439
440 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
441
47dcf7b1
VS
4422013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
443
444 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
445 NULL pointer dereference.
446
d59849b2
VS
4472013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
448
449 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
450 clang.
451
7a3f4a18
VS
4522013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
453
454 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
455 warnings.
456
7f084087
VS
4572013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
458
459 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
460 function.
461 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
462 * grub-core/disk/geli.c (ascii2hex): Likewise.
463
d5524ca8
VS
4642013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
465
466 * configure.ac: Run linker tests without -Werror.
467 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
468 Change all occurences of -static-libgcc resp -lgcc to
469 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
470
390cd7ca
VS
4712013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
474
60375a88
VS
4752013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
476
477 Allow compiling with clang (not really supported though).
478
479 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
480 unconditionally.
481 * configure.ac: Add -no-integrated-as when using clangfor asm files.
482 Add -mrtd -mregparm=3 on i386 when not using clang.
483 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
484
dd07e0c4
VS
4852013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
486
487 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
488 bindings.
489 * grub-core/lib/reed_solomon.c: Likewise.
490 * include/grub/i386/gdb.h: Likewise.
491 * include/grub/i386/pc/int.h: Likewise.
492 * include/grub/i386/pc/pxe.h: Likewise.
493 * include/grub/ieee1275/ieee1275.h: Likewise.
494
9d3ae8ec
VS
4952013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
496
497 Import libgcrypt 1.5.3.
498
c12936c5
VS
4992013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
500
501 * configure.ac: Don't add -Wcast-align on x86.
502
cdc17f60
VS
5032013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
504
505 * configure.ac: Add -freg-struct-return on all platforms that
506 support it.
507
b35ec299
VS
5082013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * acinclude.m4: Use -Werror on parameter tests.
511 * configure.ac: Likewise.
512
05f3a0d7
VS
5132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
514
515 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
516
c966a489
VS
5172013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
518
519 * configure.ac: Check that -malign-loops works rather than assuming that
520 either -falign-loops or -malign-loops work.
521
bb0c57ec
VS
5222013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
523
524 * configure.ac: Remove -fnested-functions. We don't need it anymore.
525
24f4e57c
VS
5262013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * configure.ac: Prevent cflags leaking to subsequent tests by always
529 resetting cflags to target_cflags in target tests.
530
ac319fbc
VS
5312013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
532
533 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
534 function.
535
4bfe934c
VS
5362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
537
538 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
539
40a5bfde
VS
5402013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
541
542 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
543
a67c755e
VS
5442013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * grub-core/normal/cmdline.c (grub_cmdline_get):
547 Remove nested functions.
548
87a04a2d
VS
5492013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * tests/test_sha512sum.in: Make it work on emu.
552
c03995d2
VS
5532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
554
555 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
556 functions.
557 (grub_bidi_line_logical_to_visual): Likewise.
558
ec0ebb3f
VS
5592013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
560
561 Remove vestiges of -Wunsafe-loop-optimisations.
562
563 * conf/Makefile.common (CFLAGS_GNULIB): Remove
564 -Wno-unsafe-loop-optimisations.
565 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
566 pragma.
567 * grub-core/io/gzio.c: Likewise.
568 * grub-core/script/parser.y: Likewise.
569 * grub-core/script/yylex.l: Likewise.
570 * util/grub-mkfont.c: Likewise.
571
6ab537e3
VS
5722013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * util/grub-mkfont.c (process_cursive): Remove nested function.
575
e6c368d4
VS
5762013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
577
578 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
579 (grub_boot_time): Likewise.
580
4f1cfd22
VS
5812013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * include/grub/symbol.h (FUNCTION): Use @function rather than
584 "function".
585 (VARIABLE): Likewise.
586
6d5a4cee
VS
5872013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
590
f06c2172
VS
5912013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
594 (parse_dhcp_vendor): Likewise.
595
7cb24eb5
VS
5962013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
597
598 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
599
f30c692c
VS
6002013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/gettext/gettext.c (main_context), (secondary_context):
603 Define after defining type and not before.
604
8b66bb5d
VS
6052013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
606
607 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
608 type.
609 (grub_gcm_decrypt): Likewise.
610 (algo_decrypt): Likewise.
611 (grub_zfs_decrypt_real): Transform error type.
612
5d17fd0f
VS
6132013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
614
615 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
616
ac35a0f7
VS
6172013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
618
619 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
620 (grub_usbms_cbi_reset): Likewise.
621 (grub_usbms_bo_reset): Likewise.
622 (grub_usbms_reset): Likewise.
623 (grub_usbms_attach): Likewise.
624 (grub_usbms_transfer_cbi): Likewise.
625
3ee08697
VS
6262013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
627
628 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
629 "checksum = checksum;".
630
70bb6c85
VS
6312013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
632
633 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
634 entry_type.
635
c7f34744
VS
6362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
637
638 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
639 BIOS disk check.
640
3f63b4d8
VS
6412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
642
643 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
644 type.
645 (grub_ehci_fini_hw): Likewise.
646 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
647
dac6ce73
VS
6482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
651 return grub_usb_err_t for cosistency. All users updated.
652
5701750c
VS
6532013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
656 assigning to itself.
657
9e236169
GLD
6582013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
6592013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
660
661 Issue separate DNS queries for ipv4 and ipv6
662
663 Adding multiple questions on a single DNS query is not supportted by
664 most DNS servers. This patch issues two separate DNS queries
665 sequentially for ipv4 and then for ipv6.
666
667 Fixes: https://savannah.gnu.org/bugs/?39710
668
669 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
670 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
671 * (grub_net_dns_lookup): Now using separated dns packages.
672 * (grub_cmd_nslookup): Add error condition.
673 * (grub_cmd_list_dns): Print DNS option.
674 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
675 --prefer-ipv4, and --prefer-ipv6.
676 * include/grub/net.h (grub_dns_option_t): New enum.
677 * (grub_net_network_level_address): option added.
678
339eacce
VT
6792013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
680
681 * grub-core/video/fb/video_fb.c: Merge two blit functions
682 into one.
683
810f991b
VS
6842013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
685
686 * grub-core/term/terminfo.c: Add sequences for home and end.
687
386571a2
VS
6882013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
691 graphics console.
692
3fe63754
VS
6932013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
696 add mode 0x12.
697
76681e71
VS
6982013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
699
700 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
701 e-mail by Per Öberg.
702
46522fb7
VS
7032013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
704
705 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
706 name.
707
e7d09ac4
AB
7082013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
709
710 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
711 emu platforms.
712 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
713
67508925
VS
7142013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
715
716 * docs/grub.texi: Document usage of menuentry id.
717
0c62124e
VS
7182013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
719
720 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
721
9b5d4eed
PL
7222013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
723
724 * grub-core/commands/i386/nthibr.c: New command.
725
79054c1d
VS
7262013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
727
728 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
729
44d47bbe
VS
7302013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
733 coordinate.
734
323de05b
VS
7352013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
736
737 Support GRUB_DISABLE_SUBMENU config.
738
739 Inspired by patch from Prarit Bhargava.
740
5a01722e
VS
7412013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
742
743 * docs/grub.texi: Mention RSA support.
744
1106c3f0
VS
7452013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
746
747 * grub-core/commands/verify.c: Add RSA support.
748
a1dcc2cb
VS
7492013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
750
751 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
752 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
753 device is known to be ATAPI.
754
ee7fb780
MF
7552013-11-03 Mike Frysinger <vapier>
756
757 * configure.ac: Don't add target-prefix.
758
5ade4a42
VS
7592013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
760
761 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
762 variables.
763
6cd66043
VS
7642013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
765
766 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
767 if language is English.
768
090d7c81
VS
7692013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
772
dd614590
VS
7732013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
774
775 * configure.ac: Don't add -m32/-m64 on emu.
776
a8686589 7772013-11-02 neil
778
779 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
780 broken linux headers.
781
fb9f12a0
VS
7822013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
785
e25f8e1f
VS
7862013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
787
788 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
789 Reed-Solomon recovery if more than half of redundancy info is 0.
790
4685200f
VS
7912013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
792
793 * util/grub-mount.c: Handle symlinks to directories.
794
1397f0b5
VS
7952013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
798 find_file recursively for symlink.
799
8b3e6eb6
VS
8002013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
801
802 * tests/util/grub-shell.in: Copy themes.
803
a0c9d5c6
VS
8042013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
805
806 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
807
5cf9459c
VS
8082013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
809
810 * configure.ac: Use 0x8000 for address instead of 8000.
811
e7b66a28
VS
8122013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
815 signature.
816
203f53fb
VS
8172013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
818
819 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
820 variable.
821
02663ee9
VS
8222013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
825
f169f65e
VS
8262013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
827
828 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
829 file_progress_read_hook.
830 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
831
2855a0fc
VS
8322013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
835 and double.
836
bf0f3a8c
VS
8372013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
838
839 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
840
cb72aa18
VS
8412013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
842
843 Rewrite blocklist functions in order to get progress when
844 reading large extents and decrease amount of blocklist hook calls.
845
896f9135
VS
8462013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
847
848 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
849 of SI suffixes.
850
89295a06
VS
8512013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
852
853 Support --base-clock for serial command to handle weird cards with
854 non-standard base clock.
855
eb03ede0
VS
8562013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
859 strncpy.
860 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
861 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
862 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
863 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
864 + strcpy rather than strncpy.
865
8fbe5c7d
VS
8662013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
867
868 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
869 (check_pool_label): Likewise. Fixes overflow.
870 (nvlist_find_value): Fix comparison.
871
e54b8f53
VS
8722013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
873
874 * include/grub/misc.h (grub_strcat): Removed. All users changed to
875 more appropriate functions.
876
fa9b3dca
VS
8772013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
878
879 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
880 realloc.
881
9a021c55
VS
8822013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
883
884 * util/grub-mkrescue.in: Do not use UUID search on EFI.
885
80e8b13a
VS
8862013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
887
888 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
889 on core size.
890
b61599ac
VS
8912013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
892
893 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
894
a602dc54
VS
8952013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
896
897 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
898 (initialize_tables): reset tl and td to NULL after freeing.
899
93c12075
VS
9002013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
901
902 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
903
1ca4b75e
VS
9042013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
905
906 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
907 of supported tags.
908
329550c4
VS
9092013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
910
911 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
912
00bfa988
VS
9132013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * grub-core/loader/multiboot.c: Add support for multiboot kernels
916 quirks.
917
81afc5cc
VS
9182013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
921 a page in protected space.
922
cb3c4a47
VS
9232013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
924
925 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
926 allocate space for zero-sized modules.
927
954f7bf5
VS
9282013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
929
930 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
931
526d3d25
FL
9322013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
933
934 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
935
74124c34
VS
9362013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
937
938 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
939 safeguards. Fixes a crash with i386/pc/console.c.
940
5177391e
VS
9412013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
942
943 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
944 and grub_hostfs_init.
945
64db14b0
VS
9462013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
947
948 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
949 windows method on other platforms without good stat as well.
950
effe2036
VS
9512013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
952
953 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
954
82591fa6 9552013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 956
82591fa6
VS
957 Make / in btrfs refer to real root, not the default volume.
958 Modify mkrelpath to work even if device is mounted with subvolid option.
959
9602013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
961
962 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
963 extra_dist.
964 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
965 extra_dist.
966
30fd7198
VS
9672013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
968
969 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
970 fails.
971
8d179dae
BC
9722013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
973
974 * docs/autoiso.cfg: New file.
975
3bc9c8cf
VS
9762013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
977
978 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
979 COND_GRUB_PE2ELF conditions.
980
8b46b0ea
VS
9812013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
984 "vnd", "rd" and "fd" disks.
985
442b86de
VS
9862013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
987
988 Move grub_disk_write out of kernel into disk.mod.
989
04dea7e6
VS
9902013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
991
992 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
993 handling.
994
9952013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
996
997 * grub-core/kern/misc.c (grub_abort): Make static
998
04dea7e6 9992013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
1000
1001 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
1002 transform invalid unicode codepoints.
1003
04dea7e6 10042013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
1005
1006 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
1007 \0 checking.
1008
03dcac7f
VS
10092013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
1012
c81acb7f
VS
10132013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1014
1015 Consolidate cpuid code.
1016
c1bee646
VS
10172013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 Move cpuid code to cpuid.h and TSC code to tsc.c.
1020
f37bf9c7
GS
10212013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1022
1023 * util/grub.d/00_header.in: Don't use LANG if it's not set.
1024
4021132b
GS
10252013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
1026
1027 * util/grub-mkconfig.in: Replace $0 with $self.
1028 * util/grub-reboot.in: Likewise.
1029 * util/grub-set-default.in: Likewise.
1030
3ace8d75
BC
10312013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1032
1033 * docs/osdetect.cfg: New file.
1034
1e6ad6a6
BC
10352013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1036
1037 * tests/util/grub-shell.in: Add new --debug option.
1038
188929eb
BC
10392013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1040
1041 * tests/test_unset.in: New test.
1042
7994a09a
BC
10432013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
1044
1045 * tests/test_sha512sum.in: New test.
1046
2a8a7585
VS
10472013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1048
1049 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
1050 * include/grub/misc.h: Remove strncat.
1051 * grub-core/lib/posix_wrap/string.h: Likewise.
1052
cf8d6bbd
VS
10532013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1054
1055 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
1056 Try to handle more than 0xFFFF packets.
1057 Reported by: Bernhard Übelacker <bernhardu>.
1058 He also spotted few overflows in first version of this patch.
1059
6d1fc99a
VS
10602013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1061
1062 * tests/date_unit_test.c: New test.
1063
10bafa1c
VS
10642013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1065
1066 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
1067 of first three years after start of validity of unixtime.
1068
b1c6d037
VS
10692013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
1072 division as the one making more sense.
1073 (update_screen): Likewise.
1074 (complete): Likewise.
1075
5f4028d4
VS
10762013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1077
1078 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
1079
a2856736
VS
10802013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1081
1082 Make char and string width grub_size_t rather than grub_ssize_t.
1083
0a7e52b2
VS
10842013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1085
1086 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
1087 unsigned.
1088 (grub_history_replace): Likewise.
1089
42829573
VS
10902013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1091
1092 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
1093 appropriate.
1094
3523b8d8
VS
10952013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1096
1097 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
1098 appropriate.
1099
d43c6489
VS
11002013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
1103 Use unsigned divisions rather than signed variants.
1104
f690f8b0
VS
11052013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * grub-core/video/readers/png.c (grub_png_convert_image): Use
1108 unsigned arithmetics.
1109 Add missing break.
1110
74ff2c05
VS
11112013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1112
1113 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
1114
fb56391e
VS
11152013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1116
1117 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
1118 rather than signed one.
1119 (recovery): Likewise.
1120
40f29060
VS
11212013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
1124
c64577a5
VS
11252013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1126
1127 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
1128 than signed.
1129
c16535a8
JM
11302013-10-25 Jon McCune <jonmccune@google.com>
1131
1132 * docs/grub.texi: Cleanup security documentation around signatures.
1133
6673d8e7
VS
11342013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
1137
a105d375
VS
11382013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
1141 than int.
1142
af81ed88
VS
11432013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1144
1145 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
1146 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
1147 functions when compiling for kernel.
1148
ea899a57
VS
11492013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1150
1151 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
1152 unsigned long long when using %llu.
1153
c6dc6fa1
VS
11542013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1155
1156 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
1157 terminal after updating progress.
1158
ad2dc003
VS
11592013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1160
1161 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
1162 argument. We don't disable Gate A20 in this code.
1163
b46684ae
VS
11642013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
1167 Conceptually based on change in branch "vbe-on-coreboot".
1168
f70d5c07
RM
11692013-10-24 Robert Millan <rmh@gnu.org>
1170
1171 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
1172 numeric constants with their symbolic equivalent.
1173 Taken from branch "vbe-on-coreboot".
1174
bca274b4
VS
11752013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1176
1177 * docs/grub.texi: Fix ordering and use pxref rather than xref.
1178
238f0489
VS
11792013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1180
1181 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
1182 divmod64 for offset division.
1183
863c590b
PFS
11842013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1185
1186 Rename .bzrignore to .gitignore. Add "*.o" rule.
1187
1188 * .bzrignore: Renamed to...
1189 * .gitignore: ...this.
1190
84a0e969
PFS
11912013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1192
1193 Add new progress module that displays the load progress of files.
1194
1195 * grub-core/lib/progress.c: New file.
1196 * grub-core/Makefile.core.def (progress): New module.
1197 * grub-core/kern/file.c (grub_file_open): File name added.
1198 * (grub_file_read): Progress hook added.
1199 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
1200 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
1201 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
1202 * include/grub/file.h (struct grub_file): Add progress module members.
1203 * include/grub/term.h (struct grub_term_output): Likewise.
1204 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
1205 Terminal velocity added.
1206 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
1207 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
1208 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
1209 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
1210 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
1211 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
1212 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
1213 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
1214 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
1215 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
1216 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
1217 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
1218
0d711431
VS
12192013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 Verify signatures of signatures unless --skip-sig is specified.
1222
f8401f76
VS
12232013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1224
1225 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
1226 \0 checking.
1227
1228 Saves 70 bytes on compressed image.
1229
ac1feb61
VS
12302013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
1233 check.
1234
1235 Saves 10 bytes on compressed image.
1236
00f72e89
VS
12372013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1238
1239 * grub-core/kern/misc.c (grub_isprint): Move to ...
1240 * include/grub/misc.h (grub_isprint): ... here. Make inline.
1241
1242 Saves 20 bytes on compressed image due to remving exporting.
1243
067e6ae7
VS
12442013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
1247
1248 Saves 5 bytes on compressed image.
1249
64a6c791
VS
12502013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1251
1252 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
1253 function get_utf8.
1254
1255 Saves 379 bytes on compressed image.
1256
979d9f52
VS
12572013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
1260
1437da54
VS
12612013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1262
1263 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
1264
1265 Saves 40 bytes on compressed image.
1266
d9ee2269
VS
12672013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1268
1269 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
1270 mask rather than 64-bit type.
1271
1272 Saves 20 bytes on compressed image.
1273
63efa602
VS
12742013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
1277 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
1278
47601ffe
VS
1279 Saves 273 bytes on compressed image.
1280
2cc679ad
VS
12812013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1282
1283 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
1284 variable length arrays.
1285
1286 Saves 50 bytes on compressed image.
1287
2e4659b8
VS
12882013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1289
1290 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1291
2a40badf
VS
12922013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * grub-core/fs/ufs.c: Remove variable length arrays.
1295
1ba6b9b9
VS
12962013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1297
1298 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
1299
f3e39341
VS
13002013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1301
1302 * grub-core/fs/zfs.c: Remove variable length arrays.
1303 Reduces zfs.mod by 160 bytes (208 compressed).
1304
71523935
VS
13052013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1306
1307 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
1308
28153eb8
VS
13092013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1310
1311 * grub-core/net/arp.c: Remove variable length arrays.
1312 * grub-core/net/bootp.c: Likewise.
1313 * grub-core/net/dns.c: Likewise.
1314 * grub-core/net/icmp6.c: Likewise.
1315 * grub-core/net/net.c: Likewise.
1316
88ce4cd7
VS
13172013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1318
1319 * grub-core/fs/ntfs.c: Remove variable length arrays.
1320 Increases ntfs.mod by 64 bytes (but decreases by 3 when
1321 compressed).
1322
66123940
VS
13232013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1324
1325 * grub-core/fs/hfs.c: Remove variable length arrays.
1326 Reduces hfs.mod by 8 bytes (52 compressed).
1327
0927e5bd
VS
13282013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1329
1330 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 1331 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
1332 compressed).
1333
9c12ac97
VS
13342013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 1337 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
1338 compressed).
1339
97ec2d71
VS
13402013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1341
1342 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 1343 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
1344 compressed).
1345
156e4ea0
VS
13462013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1347
1348 * grub-core/fs/xfs.c: Remove variable length arrays.
1349 Reduces xfs.mod by 40 bytes (43 compressed).
1350
3b502c29
VS
13512013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1352
1353 * grub-core/fs/fshelp.c: Remove variable length arrays.
1354 Reduces fshelp.mod by 116 bytes (23 compressed).
1355
c7037f1d
VS
13562013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1357
1358 * grub-core/normal/completion.c: Remove variable length arrays.
1359 * grub-core/normal/menu_entry.c: Likewise.
1360
1361 Reduces normal.mod by 496 bytes.
1362
a07e6ad0
VS
13632013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1364
1365 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
1366 by 356 bytes (158 compressed).
1367
2359bf88
VS
13682013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1369
1370 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
1371 by 364 bytes (169 compressed).
1372
d28e1163
VS
13732013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1374
1375 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
1376 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
1377 * include/grub/types.h (grub_unaligned_uint64_t): New type.
1378
e89c2d48
VS
13792013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
1382 bitmasks to small structures of size chosen to fit in registers.
1383
7abdac8e
VS
13842013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1385
1386 * conf/Makefile.common: Use -freg-struct-return on i386. This
1387 decreases code size and improves performance.
1388
518864c0
VS
13892013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1390
1391 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
1392
bbd2b539
VS
13932013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1394
1395 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
1396 "(null)" string.
1397 Simplify expressions to save around 256 bytes in kernel.img.
1398 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
1399
99519c15
VS
14002013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
1403 Use GRUB_UTIL_FD_O_* rather than O_*.
1404
20285765
VS
14052013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 Add haiku-specific functions.
1408
887c0bb6
VS
14092013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1410
1411 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
1412
cd78a56f
VS
14132013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1414
1415 Move stat () and device mode checking into OS-dependent files as
1416 long as performance doesn't suffer.
1417
a4012f07
VS
14182013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1419
1420 Split make_system_path_relative_to_its_root into separate file
1421 relpath.c from getroot.c as it's common between unix and haiku
1422 but otherwise haiku doesn't use any functions from unix getroot.c.
1423
31de274d
VS
14242013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1425
1426 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
1427 New function.
1428 (grub_util_is_special_file): Likewise.
1429
40346de6
VS
14302013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
1433 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
1434
d3923ab9
VS
14352013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1436
1437 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
1438 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
1439
663f6eb1
VS
14402013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
1443 (load_image): Likewise.
1444
44d1c20a
VS
14452013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * util/grub-render-label.c: Move backend part to ...
1448 * util/render-label.c: ... here.
1449
d0a116ee
VS
14502013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
1453 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
1454
b47fcae6
VS
14552013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1456
1457 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
1458
0f7c00c1
VS
14592013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1460
1461 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
1462 CD-ROM in case when it's declared as having subpartitions.
1463
29013cba
VS
14642013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1465
1466 Don't add -lm on haiku.
1467
1468 * configure.ac: Define BUILD_LIBM to -lm on most platforms
1469 and empty on haiku.
1470 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
1471 -lm.
1472
e8559d24
VS
14732013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1474
1475 * configure.ac: Use -melf_*_haiku as target on haiku.
1476
8104063c
VS
14772013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * Makefile.util.def: Add util/setup.c to extra_dist.
1480
fc3182c7
VS
14812013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1482
1483 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
1484 unknown types through.
1485
f90a3cc0
VS
14862013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1487
1488 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
1489 (grub_util_check_char_device): Likewise.
1490 * include/grub/emu/getroot.h: Likewise.
1491
1e3e7419
VS
14922013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
1495 memset rather than inline static function.
1496
92c88fc8
VS
14972013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1498
1499 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
1500 not doing embedded decompressor.
1501
3cd910a2
VS
15022013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
1505 shadowing.
1506 * grub-core/kern/disk.c: Likewise.
1507 * grub-core/kern/misc.c: Likewise.
1508 * include/grub/parser.h: Likewise.
1509 * include/grub/script_sh.h: Likewise.
1510 * include/grub/zfs/zfs.h: Likewise.
1511
7b3aca00
VS
15122013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
1515
97dfe7e4
VS
15162013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
1519 defined before trying to use it.
1520
bf919aa9
VS
15212013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1522
1523 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
1524 warning.
1525
f4ccf29d
VS
15262013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1527
1528 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
1529 Use __unused__ rather than __used__ on gcc < 3.2.
1530
0d3a6f85
VS
15312013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1532
1533 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
1534 gcc < 4.0.
1535 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
1536
757e3eb7
VS
15372013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
1540
fb320faf
VS
15412013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1542
1543 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
1544 * include/grub/emu/misc.h: Likewise.
1545
ea73acd2
VS
15462013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1547
1548 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
1549 cur_color.
1550
71237a6f
VT
15512013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
1552
1553 * grub-core/tests/checksums.h: Regenerated due to progress bar
1554 get_minimal_size changes.
1555
3d46c22f
BC
15562013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
1557
1558 Added `tr' command support.
1559
1560 * grub-core/commands/tr.c: New file.
1561 * grub-core/Makefile.core.def: Build rules for new module.
1562
1563 * tests/grub_cmd_tr.in: New test.
1564 * Makefile.util.def: Build rules for new test.
1565
47e0a61f
VT
15662013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1567
1568 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
1569
946fd073
VT
15702013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1571
1572 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1573 * docs/gurb.texi: Likewise.
1574
9c13c576
VT
15752013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1576
1577 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1578 Pixmap highlighted section with east and west slices was displayed
1579 incorrectly due to negative width of the central slice.
1580
ad543f12
VT
15812013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1582
1583 * docs/grub.texi: Graphical options information update.
1584 Removed outdated. Updated current. Inserted missed.
1585
6176a0cd
VS
15862013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1587
1588 * docs/grub.texi: Mention few new platform-specific commands.
1589
9688cae2
VS
15902013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1593 currently used so this doesn't really have any effect.
1594 Reported by: Douglas Ray <dougray>
1595
f7b69a3f
VS
15962013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1597
1598 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1599 compilation but prevents gcc from displaying messages in non-Latin
1600 alphabets.
1601 * conf/Makefile.common: Likewise.
1602
ceca6ddf
HY
16032013-10-16 Hiroyuki YAMAMORI
1604
1605 Handle Japanese special keys.
1606 Reported by: Hiroyuki YAMAMORI.
1607 Codes supplied by: Hiroyuki YAMAMORI.
1608
ac48d334
VT
16092013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1610
1611 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1612
b2b71bff
VT
16132013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1614
1615 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1616 * docs/grub.texi: Likewise.
1617
669fc449
VS
16182013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1621 value in case of incomplete read.
1622 (grub_util_fd_write): Likewise.
1623
59381678
VS
16242013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1625
1626 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1627
bacfefbb
VS
16282013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1629
1630 * util/grub-editenv.c (create_envblk_file): More from here ...
1631 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1632
f7c49570
VS
16332013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1634
1635 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1636 canonicalize file name before doing the rest.
1637
7b83ca44
VS
16382013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1639
1640 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1641 mingw32.
1642
df1e64c9
VS
16432013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 Define grub_util_is_directory/regular/special_file and
1646 use OS-dependent versions rather than to rely on stat().
1647
ec16e026
VS
16482013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1649
1650 * util/grub-mkimage.c: Move backend part to ...
1651 * util/mkimage.c: ... here.
1652
4b4eeb3c
VS
16532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1654
1655 Allow compilation with mingw64 albeit with warnings due to lack of
1656 %llx/%llu.
1657
1658 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1659 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1660 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1661 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1662 on mingw64.
1663 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1664
f4e0adc0
VS
16652013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Remove leftover references to some of the system headers.
1668
e0127364
VS
16692013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1670
1671 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1672 read.
1673
20d53541
VS
16742013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1677 of strerror.
1678
5a869940
VS
16792013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1680
1681 Split out blocklist retrieving from setup.c to
1682 grub-core/osdep/blocklist.c and add windows implementation since
1683 generic version doesn't work on NTFS on Windows due to aggressive
1684 unflushable cache.
1685
c06c7520
VS
16862013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1687
1688 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1689 files.
1690
8f53bb3f
VS
16912013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1694 Cut tailing newline. Remove arbitrary limitation. Always use
1695 grub_util_tchar_to_utf8.
1696
148f1007
VS
16972013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1700 * tests/printf_unit_test.c (printf_test): Add %% tests.
1701 Reported by: Paulo Flabiano Smorigo.
1702
af3b06be
VS
17032013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1704
1705 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1706 implement fsync.
1707
27f9d02e
VS
17082013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1711 use nvlist_lookup_string and don't use nvlist_print.
1712
f6a81f0a
VS
17132013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1716 closedir to handle filename charset translation.
1717
d7750b32
VS
17182013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1719
1720 * include/grub/emu/hostdisk.h: Move file operations to
1721 * include/grub/emu/hostfile.h: ... here.
1722
2859196e
VS
17232013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1726 unicode path.
1727
c018c968
VS
17282013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1731
7e45abce
VS
17322013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1733
1734 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1735 and remove export.h.
1736
23934da2
VS
17372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1738
1739 * grub-core/kern/emu/error.c: Removed.
1740 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1741 explicitly as it's already in libgnu.a.
1742
c11ebcc8
VS
17432013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1744
1745 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1746 config-util.h include.
1747
70671037
VS
17482013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 Split emunet into platform-dependent and GRUB-binding parts. Keep
1751 platform-dependent part in kernel for easy access to OS functions.
1752
25ac643a
VS
17532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1756 open/read/write.
1757
69ca5876
VS
17582013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1759
1760 * grub-core/osdep/windows/emuconsole.c: New file.
1761
d9d68ef0
AB
17622013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1763
1764 * conf/Makefile.extra-dist: Add osdep/*/init.c
1765
58e211cc
VS
17662013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1767
1768 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1769
588744d0
VS
17702013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1771
1772 * util/grub-probe.c (probe): Separate different drives in hint-str
1773 by spaces and not newlines.
1774 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1775
44016e52
AB
17762013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1777
1778 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1779 Handle CD-ROMs.
1780
6de9ee86
VS
17812013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1782
1783 Pass-through unknown E820 types. It required reorganisation of mmap
1784 module.
1785
f8f3f155
AB
17862013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1787
1788 * Makefile.util.def: Add osdep/init.c to grub-mount files.
1789
b73249d2
VS
17902013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1791
1792 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
1793 fseeko.
1794
dac86b18 17952013-10-14 qwertial <qwertial>
1796
1797 * grub-core/gdb_grub.in: Fix overflow and wrong field.
1798
17614b84
JM
17992013-10-14 Jon McCune <jonmccune@google.com>
1800
1801 * docs/grub.texi: Document new signatures possibility.
1802
6de292cb
VS
18032013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1804
1805 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
1806
84379b61
VS
18072013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1808
1809 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
1810 missing prototype.
1811 (grub_util_tchar_to_utf8): Likewise.
1812
21d85db1
VS
18132013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1814
1815 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
1816 * grub-core/kern/emu/main.c: Add missing include.
1817 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
1818 Don't call grub_util_init_nls.
1819 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
1820 Likewise.
1821
66a1b3ee
VS
18222013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1823
1824 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
1825 stat.
1826
e19bec17
VS
18272013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1828
1829 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
1830
ee8c1b29
VS
18312013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
1834
bb338aaf
VS
18352013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1836
1837 Add a wrapper for fopen. On unix-like systems just pass-through. On
1838 windows use unicode version.
1839
ae5540d3
VS
18402013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1841
1842 Move set_program_name and init_nls to host_init. On windows
1843 fix in this fuction console and argument charset as well.
1844
4cd3c4fe
AB
18452013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
1846
1847 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
1848 GRUB_ENABLE_CRYPTODISK.
1849
1850 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1851 GRUB_ENABLE_CRYPTODISK.
1852 * util/grub-mkconfig_lib.in: Likewise.
1853
78170f3e
CCZ
18542013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1855
1856 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1857
3414b6c0
MC
18582013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1859
1860 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1861 error when enabling debug.
1862
6d0740e8
IB
18632013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1864
1865 * configure.ac: Use -melf_*_obsd on openbsd.
1866
ff2d4dc4
VS
18672013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1868
1869 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1870
eac6ae82
VS
18712013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1872
1873 * include/grub/misc.h: Use gnu_printf rather than printf as format
1874 template since our functions are independent of libc.
1875
ba9baabe
VS
18762013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1877
1878 * util/grub-setup.c (setup): Move copying of partition table as
1879 futher up as possible to avoid possible overwrite by floppy routines.
1880
18812013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
1882
1883 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1884
145e2369
VT
18852013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1886
1887 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1888 * docs/grub.texi: Likewise.
1889
3530bc9d
VS
18902013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1891
1892 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1893 it's mostly unused. Move vestiges to the callers.
1894
fb9f59c3
VS
18952013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1898 version of salt and hash. Use grub_snprintf rather than snprintf.
1899
9be1c255
VS
19002013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * docs/grub.texi: Fix problem with braces.
1903
ed8c0887
VS
19042013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1905
1906 * conf/Makefile.extra-dist: Fix extra-dist list.
1907 * grub-core/Makefile.core.def: Likewise.
1908
f72ab14e
VS
19092013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1910
1911 * docs/grub.texi: Document disk names used on Windows and AROS.
1912
2fe53a22
VS
19132013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1914
1915 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1916 with AROS devs.
1917 * grub-core/osdep/aros/hostdisk.c: Likewise.
1918
71c1d67a
VS
19192013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1920
1921 Avoid including hostfile.h when not necessarry as it pulls
1922 in OS-specific headers which may redefine generic names
1923 like "far".
1924
ad297ec7
VT
19252013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1926
1927 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1928 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1929 scrollbar_bottom_pad
1930 * docs/grub.texi: Likewise.
1931
6e9e5dc9
VT
19322013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1933
1934 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1935
761c718b
VS
19362013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1937
1938 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1939
37149a2f
VS
19402013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1941
1942 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1943 Removed.
1944 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1945 Made static.
1946
3837a151
VS
19472013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1948
1949 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1950 leftover.
1951
caca1c70
VS
19522013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 Move OS-specific driver configuration to grub_util_fd_open. This
1955 moves OS-dependent parts from kern/emu/hostdisk.c to
1956 grub-core/osdep/*/hostdisk.c.
1957
f7676b70
VS
19582013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * util/grub-mkimage.c (generate_image): Use size_t instead of
1961 grub_size_t.
1962 * util/grub-mkimagexx.c (locate_sections): Likewise.
1963 (load_image): Likewise.
1964
22f98db2
VS
19652013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1966
1967 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1968 size_t.
1969 (grub_util_write_image): Likewise.
1970
b102ce69
VS
19712013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1972
1973 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1974 get random when no RNG is available.
1975 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1976
acbbe5cb
VS
19772013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * include/grub/util/lvm.h: Removed.
1980
2112fb3f
VS
19812013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1984 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1985
79f78fbf
VS
19862013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1987
1988 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1989
c2e6f705
VS
19902013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1993
aabe433a
VS
19942013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * grub-core/net/drivers/emu/emunet.c: Move to ..
1997 * grub-core/osdep/linux/emunet.c: ..here.
1998
9a2c903f
VS
19992013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * util/ieee1275/ofpath.c: Move to ...
2002 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
2003 * grub-core/osdep/basic/ofpath.c: ..here.
2004
4a445f58
VS
20052013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2006
2007 Move password-querying (util-version) routines to grub-core/osdep.
2008
c1ca4244
VS
20092013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2010
2011 Move sleep routines to grub-core/osdep.
2012
672fa55e
VS
20132013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 Move OS-dependent files to grub-core/osdep and document it.
2016
a5b0365a
VS
20172013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2018
2019 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
2020 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
2021
29072e99
VS
20222013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2023
2024 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
2025
f8772ea7
VS
20262013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2027
2028 * util/misc.c: Remove leftover inclusion of malloc.h.
2029
a1a315e7
VS
20302013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2031
2032 * include/grub/setjmp.h: Remove leftover GRUBOF.
2033
cef86fef
VS
20342013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2035
2036 * util/raid.c: Fold into ...
2037 * util/getroot_linux.c: ... here. Make all functions static.
2038
c4cf25ee
VS
20392013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2040
2041 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
2042 macros to GRUB ones.
2043
53a5f5c2
VT
20442013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2045
2046 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
2047 occasional bug. If there are too many boot entries or too low
2048 scrollbar height then we need to use another formula to calculate
2049 the position and size of the scrollbar thumb.
2050
de300af2
VS
20512013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2052
c4cf25ee 2053 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 2054
c5827364
VT
20552013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2056
2057 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
2058 * docs/grub.texi: Likewise.
2059
dd2ed8b0
VT
20602013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2061
2062 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
2063 viewport.
2064
7286c384
VT
20652013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
2066
ffdfc1f3
VT
2067 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
2068 minimal width calculations.
7286c384 2069
ea547e14
VS
20702013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2071
2072 * docs/grub.texi: Update note on colors on emu console.
2073
b726be76
VS
20742013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2075
2076 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
2077 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
2078 it's FS and not GRUB limitation.
2079
a5f6ade6
VS
20802013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2081
2082 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
2083
3b0f3aa2
VS
20842013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
2085
2086 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
2087
1db38304
ST
20882013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
2089
2090 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
2091 kernels by version order.
2092
fb295fc0
VS
20932013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
2096
47345010
VS
20972013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2098
2099 Add AROS hostdisk and getroot routines.
2100
bf25f879
VS
21012013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2102
2103 Make cryptodisk and diskfilter probe data retrievable programmatically
2104 and not just printable.
2105
24ca4512
VS
21062013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
2107
2108 Split random retrieving code into separate files.
2109
c7c177f0
VS
21102013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2111
2112 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
2113 R_ARM_V4BX.
2114
d71b45ae
VS
21152013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
2118 condition.
2119 * grub-core/tests/fake_input.c: Likewise.
2120 * grub-core/tests/cmdline_cat_test.c: Likewise.
2121
e44b9a83
VS
21222013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2123
2124 * grub-core/video/capture.c: Do not do finalization when .fini
2125 is called as there is explicit capture_end.
2126
4fa60739
VS
21272013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2128
2129 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
2130 changing windows to avoid crash.
2131
17c8bc37
VS
21322013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
2135
9d4d7977
VS
21362013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * po/exclude.pot: Add several strings to exclude.
2139
0caa407c
VS
21402013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2141
2142 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
2143
9ae393da
VS
21442013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2145
2146 * autogen.sh: Add ./util/grub-gen-widthspec.c and
2147 ./util/grub-gen-asciih.c to exclude list.
2148
498d5033
VS
21492013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2150
2151 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
2152 and don't mark error strings for translation.
2153
7d93298f
VS
21542013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2155
2156 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
2157 properly in case of missing block size.
2158
b2cae20c
VS
21592013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2160
2161 * grub-core/lib/arm/setjmp.S: Add missing license section.
2162
3896d6b4
VS
21632013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2164
2165 * po/swiss.sed: Add replacement for key names and for term computer.
2166
ebc1da55
VT
21672013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
2168
2169 * grub-core/gfxmenu/theme_loader.c: New global options for the
2170 theme background image handling. desktop-image-scale-method,
2171 desktop-image-h-align, desktop-image-v-align.
2172 * grub-core/gfxmenu/view.c: Likewise.
2173 * include/gfxmenu_view.h: Likewise.
2174 * include/bitmap_scale.h: Proportional scale functions introduced.
2175 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
2176 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
2177 cases of unexpected input variables for scale functions.
2178 * docs/grub.texi: Updated documentation for new options.
2179
c5739143
VS
21802013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
2181
2182 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
2183
be74aeb3
VT
21842013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2185
2186 * grub-core/tests/checksums.h: Corrected due to changes in
2187 bilinear interpolation function.
2188
d999ac72
VT
21892013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2190
2191 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
2192 to eliminate artefacts in bilinear interpolation.
2193
2b131610
VS
21942013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 * grub-core/video/readers/tga.c: Support paletted tga.
2197
de6e5ff8
VS
21982013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2199
2200 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
2201 incorrect cbcr setting when in color mode.
2202
fa31ee9c
VS
22032013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2204
2205 * grub-core/video/readers/png.c: Support paletted images and clean up
2206 greyscale support.
2207
e84f8188
VS
22082013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2209
2210 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
2211 usage of wrong table which resulted in mishandling of 4-byte
2212 sequences.
2213
22142013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
2215
2216 * grub-core/term/terminfo.c: Add Home and End key sequences.
2217
d72bff09
VS
22182013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * grub-core/video/readers/png.c (grub_png_decode_image_header):
2221 Fix formula for computing total number of bytes.
2222
29648c5d
VS
22232013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
2226 image processing, fix big-endian and support grayscale.
2227
4a876492
VS
22282013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
2231 Correctly will with maximum transparency when using index color.
2232
3ccf16df
VS
22332013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 * grub-core/video/readers/png.c: Support grayscale
2236
22372013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
2238
2239 * grub-core/video/readers/jpeg.c: Support grayscale.
2240
3ccf16df 22412013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
2242
2243 * grub-core/commands/loadenv.c: Support skipping signature check
2244 and variable names filtering.
2245
30b7f58f
VS
22462013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2247
2248 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
2249 * grub-core/kern/emu/hostfs.c: Likewise.
2250 * util/getroot_unix.c: Likewise.
2251
bab7b1eb
VS
22522013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
2255 Migrate all explicit defines to this new one.
2256
43b1c99d
VS
22572013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
2260 grub_util_fd_strerror when using grub_util_fd_*.
2261 (grub_util_fd_open_device): Likewise.
2262 (grub_util_biosdisk_read): Likewise.
2263 (grub_util_biosdisk_write): Likewise.
2264 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
2265 (grub_util_fd_strerror): Likewise.
2266 (grub_util_fd_sync): Likewise.
2267 (grub_util_fd_close): Likewise.
2268 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
2269 (grub_util_fd_close): Likewise.
2270 (grub_util_fd_strerror): Likewise.
2271 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
2272 function proto rather than macro.
2273 (grub_util_fd_sync): Likewise.
2274 (grub_util_fd_open): Likewise.
2275 (grub_util_fd_strerror): New proto.
2276
e8fd80bc
VS
22772013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
2280 platforms on which it doesn't work.
2281
bf645fda
VS
22822013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
2285 stat immediately to where it's used.
2286
5177ba14
VS
22872013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * util/getroot.c (grub_util_check_block_device): Move to ...
2290 * util/getroot_unix.c (grub_util_check_block_device): ... here.
2291 * util/getroot.c (grub_util_check_char_device): Move to ...
2292 * util/getroot_unix.c (grub_util_check_char_device): ... here.
2293
9db826e1
VS
22942013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2295
2296 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
2297 disk closing logic.
2298
49120085
AB
22992013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2300
2301 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
2302
b3328b68
AB
23032013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2304
2305 * docs/grub.texi (File name syntax): Document ZFS filenames
2306 (/volume@snapshot/...).
2307
3fff48ab
VS
23082013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2309
2310 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
2311 Always return full path. Fixes a problem with mkrelpath.
2312
39cfdaa9
PFS
23132013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2314
2315 * util/grub-install.in: Add GPT PReP support.
2316 * util/grub-probe.c (probe): Support GPT partition type.
2317 (main): Support -t gpt_parttype.
2318
7c680e1f 23192013-09-23 Aleš Nesrsta <starous@volny.cz>
2320
2321 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
2322
890bdabe
MM
23232013-09-23 Massimo Maggi <me@massimo-maggi.eu>
2324
2325 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
2326
9c262ff9
TH
23272013-09-23 Tim Hardeck <thardeck>
2328
2329 * util/grub.d/10_hurd.in: Filter out character for the class.
2330 * util/grub.d/10_kfreebsd.in: Likewise.
2331 * util/grub.d/10_linux.in: Likewise.
2332 * util/grub.d/20_linux_xen.in: Likewise.
2333
d755342a
MC
23342013-09-23 Melki Christian <Christian.melki@saabgroup.com>
2335
2336 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
2337 "changed".
2338
68b77707
JT
23392013-09-23 Josh Triplett <josh@joshtriplett.org>
2340
2341 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
2342 boot partition.
2343
efa68bfa
VS
23442013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
2347 doesn't use posix_wrap. Keep literal -fno-builtin however.
2348
d9104204
VS
23492013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
2352
c248781a 23532013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23542013-09-23 neil
2355
5830df88 2356 * configure.ac: Do not enable -Wmissing-noreturn as its
2357 usefulness is limited and creates problems on some OS notably with
2358 code generated by bison.
2359
23602013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23612013-09-23 neil
2362
2363 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 2364 supported by all gcc and when it is, it's already enabled by -Wall.
2365
621bed69
VS
23662013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2367
2368 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
2369 desactivated use of EDID at all.
2370
71764dc8 23712013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23722013-09-23 neil
2373
2374 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
2375 video if no text is available.
2376
affce7d4 23772013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
23782013-09-23 neil
2379
2380 * configure.ac: Substitute TARGET_RANLIB.
2381
23822013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
23832013-09-23 neil
affce7d4
VS
2384
2385 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
2386
2387 Based on patches from AROS.
2388
0e8daad0 23892013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 23902013-09-23 neil
0e8daad0
VS
2391
2392 * grub-core/Makefile.am: Override STRIP and RANLIB.
2393 * configure.ac: compute TARGET_RANLIB.
2394 * INSTALL: Document TARGET_RANLIB
2395
2396 Based on patches from AROS.
2397
3f7d9c82
VS
23982013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2399
2400 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
2401 that floppies are unpartitioned.
2402
bca8873a
VS
24032013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2404
2405 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
2406 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
2407
24082013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2409
2410 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
2411 less nice but more portable.
2412 * grub-core/lib/posix_wrap/wchar.h: Likewise.
2413
a47a78be
VS
24142013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2415
2416 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
2417 for cheat_fd.
2418 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
2419 functions.
2420 (grub_cryptodisk_cheat_insert): Likewise.
2421 (grub_cryptodisk_close): Likewise.
2422
e85a5d5c
VS
24232013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2424
2425 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
2426 Use windows path for DEFAULT_DIRECTORY.
2427
dad9fa6b
VS
24282013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2429
2430 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
2431 difference was likely just gcc version, not anything mingw-related.
2432
7e518ca8
VS
24332013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2434
2435 Use Winapi on both cygwin and mingw32 to share more code between both.
2436
d68d0157
AB
24372013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2438
2439 * util/grub-install.in: Add --grub-editenv option.
2440 * util/grub-install_header (grub_compress_file): Explicitly check for
2441 plain file to avoid cp error.
2442
775b284d
AB
24432013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2444
2445 * docs/grub.texi (Device syntax): Document new LVM UUID based device
2446 names; fix LVM driver name (lvm, not lv).
2447 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
2448 names.
2449
3ff4063d
VS
24502013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2451
2452 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
2453 files rather than one file with loads of #if's.
2454 * util/getroot.c: Likewise.
2455
287faafe
VS
24562013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
2459
d1983764
VS
24602013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
2463 GNU/Hurd to the list of checked PRNG.
2464
15ce95c4
VS
24652013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2466
2467 * configure.ac: On FreeBSD use -melf_*_fbsd format.
2468
207862dd 24692013-09-21 Ales Nesrsta <starous@volny.cz>
2470
7c680e1f 2471 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 2472
63653cfd
VS
24732013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
2476 * grub-core/disk/lvm.c: Add LVM UUIDs.
2477 * util/getroot.c: Use LVM UUIDs whenever possible.
2478
f5d3e7ef
AB
24792013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
2480
2481 * docs/grub.texi (Networking commands): Add documentation for
2482 network related commands.
2483
53c6b7d6
VS
24842013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2485
2486 * util/getroot.c (grub_util_open_dm): Check major rather than the name
2487 to determine if device is handled by devmapper.
2488 (convert_system_partition_to_system_disk): Likewise.
2489 (get_dm_uuid): Don't check explicitly if device is mapped, it's
2490 already done in grub_util_open_dm.
2491
e70d6736
LL
24922013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
2493
2494 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
2495 Clean up stack manipulation (sync_caches_armv*)
2496
90379808
VS
24972013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2498
2499 * util/lvm.c: Remove since unused. Remove remaining references.
2500
386701a8
VS
25012013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2502
2503 Handle the case of partitioned LVM properly.
2504
2505 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2506 Stop on meeting LVM, mpath or DMRAID.
2507 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
2508 (read_device_map): Likewise.
2509 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
2510 device is full disk rather than erroring out on LVM and similar cases.
2511
53070787
VS
25122013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2513
2514 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
2515
1bc783bd
VS
25162013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2517
2518 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
2519 4K before the end.
2520 Reported by: Leif Lindholm
2521
436ad5c3
PW
25222013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
25232013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2524
2525 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
2526 codes.
2527
607319c9
CW
25282013-09-18 Colin Watson <cjwatson@ubuntu.com>
2529
2530 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
2531 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
2532
d404d154
DR
25332013-09-18 Douglas Ray <dougray@cpan.org>
2534
2535 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
2536 as secure.
2537
28851ef6
AN
25382013-09-18 Aleš Nesrsta <starous@volny.cz>
2539
2540 * docs/grub.texi: Fix broken link.
2541
897c3bc6
MC
25422013-09-18 Melki Christian <Christian.melki@saabgroup.com>
2543
2544 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
2545 to break endless loop.
2546
f1630459
VS
25472013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * util/grub-fstest.c: Fix several printf formats.
2550 * util/grub-mkimage.c: Likewise.
2551 * util/grub-mkimagexx.c: Likewise.
2552 * util/grub-script-check.c: Likewise.
2553
64463dfd
VS
25542013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2555
2556 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
2557 error.
2558
48972495
VS
25592013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2560
2561 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
2562
5dd5e64b
VS
25632013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
2566 removed in current versions cygwin_conv_*.
2567
1c1f31e5
VS
25682013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2569
2570 * configure.ac: Disable efiemu runtime on cygwin.
2571
c546a259
VS
25722013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2573
2574 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2575 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2576
81690478
VS
25772013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2578
2579 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2580 error message.
2581
6b87c10a
VS
25822013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2583
2584 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2585 windows variant.
2586 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2587 data.
2588
8f0baaac
VS
25892013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2590
2591 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2592 when on x86 and not cygwin.
2593 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2594 -Wl,-melf_x86_64.
2595
b224c266
VS
25962013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2597
2598 * configure.ac: Set CPP to build one when checkoing for freetype for
2599 build.
2600
506b336b
VS
26012013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2602
2603 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2604 [!GRUB_BUILD]: Remove has_argument.
2605
8c8c87b7
VS
26062013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2607
2608 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2609 Replace with a dummy.
2610
7dc5ca13
VS
26112013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * configure.ac: Don't change host_os from mingw to cygwin.
2614
c3302aa5
VS
26152013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * configure.ac: Change target_os from windows to cygwin.
2618
7b780018
VS
26192013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2622
2623 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2624 (build-grub-gen-asciih): Likewise.
2625 (build-grub-gen-widthspec): Likewise.
2626 * Makefile.util.def (grub-pe2elf): Remove.
2627 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2628 * configure.ac: Separate tests for build.
2629 Move ./build-grub-pe2elf to grub-core.
2630 Fix typo.
2631 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2632 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2633 defined.
2634 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2635 constants.
2636 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2637 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2638 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2639
984cfd8a
VS
26402013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2641
2642 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2643 mingw32 as well based on grub_util_get_disk_size.
2644 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2645 grub_util_get_fd_size.
2646 (sync): Removed.
2647 (fsync): Moved to ...
2648 * grub-core/kern/emu/misc.c (fsync): ... here.
2649
f82d79c9
VS
26502013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2651
2652 * include/grub/mm.h (grub_extend_alloc): Remove.
2653 * grub-core/loader/i386/pc/plan9.c: Use own version of
2654 grub_extend_alloc with appropriate types.
2655
fd7dd66d
VS
26562013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2657
2658 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2659
43ffba7c
VS
26602013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2661
2662 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2663
3c7eac44
VS
26642013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 Fix dependencies on cygwin.
2667
2668 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2669 dependencies when used and defined.
2670 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2671
bdb5ba47
VS
26722013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2673
2674 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2675 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2676
ed7fbf43
VS
26772013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2678
2679 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2680 implementation available to cause compile-time rather than runtime
2681 error.
2682
fc46e9fc
VS
26832013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2684
2685 * util/grub-fstest.c: Don't check for symlinks on windows.
2686
7f68269a
VS
26872013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2688
2689 * INSTALL: Mention unavailability of man pages when cross-compiling.
2690
8ed358e0
VS
26912013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2692
2693 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2694 and gcry_log_bug.
2695 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2696
fc97214f
VS
26972013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 * INSTALL: Document cross-compilation.
2700 * acinclude.m4: Determine whether nm support -P and --defined-only.
2701 * configure.ac: Add TARGET_ to all variables pertaining to target
2702 that don't have it yet.
2703 * gentpl.py: Likewise.
2704 * grub-core/Makefile.am: Likewise.
2705 * grub-core/genmod.sh.in: Likewise.
2706 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2707 as well.
2708
ca1fb563
IB
27092013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2710
2711 * configure.ac: Remove -Wempty-body. It's not essential and needs
2712 recent gcc.
2713
0031b229
IB
27142013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2715
2716 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2717 * util/getroot.c: Likewise.
2718
54ea2f44
VS
27192013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2720
2721 * grub-core/disk/ahci.c: Add needed explicit cast.
2722 * grub-core/lib/backtrace.c: Likewise.
2723 * grub-core/net/ip.c: Likewise.
2724 * grub-core/net/tcp.c: Likewise.
2725 * grub-core/net/udp.c: Likewise.
2726
3c601f8c
VS
27272013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2730
1d679dda
VS
27312013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2732
2733 * util/import_gcry.py: Add final newline in visibility.h.
2734
00c28dd9
VS
27352013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * conf/Makefile.common: Fix typo.
2738
32af299a
VS
27392013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2740
2741 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2742
e733cf52
VS
27432013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2744
2745 * Makefile.am (widthspec.h): Fix typo.
2746 * util/grub-gen-widthspec.c: Likewise.
2747
c6b066f2
VS
27482013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2749
2750 Move ascii.h and widthspec.h generation to a separate build-time-only
2751 tool.
2752
ad1fe3f9 27532013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2754
2755 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2756 Always fill bootdisk info and improve check for NetBSD disklabel.
2757
92a52dd4
VS
27582013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2759
2760 * conf/Makefile.extra-dist: Add util/bin2h.c.
2761 Reported by: floppym.
2762
b2e9d276
VS
27632013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2766
7b966834
VS
27672013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2768
2769 * configure.ac: Disable unifont and starfield if no freetype was found.
2770
d5c1eef1
VS
27712013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2772
2773 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2774 on NetBSD and OpenBSD.
2775
66345b50 27762013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
2777
2778 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2779
66345b50 27802013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
2781
2782 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2783 reduced. Inheritant options are processed during the theme loading.
2784
66345b50 27852013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
2786
2787 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
2788
369508b3
AS
27892013-08-14 Avik Sil <aviksil@in.ibm.com>
2790
2791 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
2792
27932013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
2794
2795 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
2796 using qemu.
2797
6f27a3f6
PFS
27982013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2799
2800 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
2801 remove-potcdate.sed.
2802
c6ed362a
AB
28032013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2804
2805 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
2806 unused attribute from pull argument.
2807
5e7d9464
AB
28082013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2809
2810 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
2811 memory leak.
2812
dea55e2a
AB
28132013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2814
2815 * util/getroot.c (pull_lvm_by_command): add --separator option
2816 to vgs call to disable padding of output to 10 characters.
2817
f0b94ded
VS
28182013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2819
2820 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
2821 here ...
2822 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
2823 here.
2824
b828fb5d
VS
28252013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
2828 length.
2829
7c9d0c39
VS
28302013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2831
2832 Fix handling of build-time grub-bin2h and grub-mkfont when doing
2833 full Canadian cross. Tested with build=x86_64, host=arm,
2834 target=ppc-ieee1275.
2835
816719c8
VS
28362013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2837
2838 * configure.ac: Error if no $BUILD_CC could be found.
2839 Reported by: DevHC.
2840
2af2353b
VS
28412013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2842
2843 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
2844 i386-multiboot.
2845
797abd0a
VS
28462013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2847
2848 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
2849 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2850
36e87d25
CW
28512013-08-13 Colin Watson <cjwatson@ubuntu.com>
2852
2853 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2854 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2855 falling back to the partition device, otherwise a later call to this
2856 function may fail spuriously.
2857 Reported by Axel Beckert. Fixes Debian bug #708614.
2858
273349fe
GS
28592013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2860
2861 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2862
418f86c6
GS
28632013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2864
2865 Prevent shadowing of stdlib's devname(3) on BSD.
2866
2867 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2868 and devlast to diskname and disklast, respectively.
2869
c137aea0
CW
28702013-08-11 Colin Watson <cjwatson@ubuntu.com>
2871
2872 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2873
272dc8df 28742013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
2875
2876 * docs/grub.texi: Introduce terminal window position options:
2877 terminal-left: terminal window's left position
2878 terminal-top: terminal window's top position
2879 terminal-width: terminal window's width
2880 terminal-height: terminal window's height
2881 terminal-border: terminal window's border width
2882 * grub-core/gfxmenu/theme-loader.c: Likewise.
2883 * include/grub/gfxmenu_view.h: Likewise.
2884 * po/exlude.pot: Likewise.
2885 * grub-core/gfxmenu/view.c: Likewise.
2886 Also updated minimal window size.
2887 Also terminal_sanity_check function has been introduced.
272dc8df
VT
2888 * grub-core/tests/checksums.h: Update (terminal window height
2889 is adjusted now for low resolution screen)
b4743461 2890
748a4533
VS
28912013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2892
2893 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2894 position).
2895
fca5f944
VS
28962013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2897
2898 * po/exclude.pot: Add few recent exceptions.
2899
4f47d809
VS
29002013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 * tests/grub_func_test.in: Add unicode.pf2.
2903
a62ae90c
VS
29042013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2905
2906 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2907 standard rather than noral color, in line with other terminals.
2908
4ed41392
VS
29092013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2910
2911 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2912 analysis.
2913
3719fbc5
VS
29142013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2915
2916 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2917
459b1d91
VS
29182013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2921 inappropriate printf.
2922
f4e1ab9d
AB
29232013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2924
2925 * .bzrignore: Remove grub-core/lib/dtc-grub,
2926 grub-core/Makefile.libfdt.def
2927 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2928
fa471bfa
VS
29292013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2930
2931 * include/grub/video.h (grub_video_register): Keep double-linked as
2932 well as single-linked invariants.
2933 Reported by: qwertial.
2934
d65be02b
VS
29352013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * grub-core/commands/nativedisk.c (get_uuid): Handle
2938 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2939
ba8bc620
VT
29402013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2941
2942 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2943 maximum of NW, N, NE heights instead of N's height and maximum of
2944 NW, W, SW widths instead of W's width. (So the box will be always
2945 correctly drawn)
2946
4f0ad029
GS
29472013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2948
2949 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2950 Fix misuse of variable count.
2951
43d53b72
LL
29522013-07-18 Leif Lindholm <leif.lindholm@arm.com>
29532013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
29542013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 2955
43d53b72
LL
2956 New ports to arm-uboot and arm-efi.
2957 Mostly by Leif Lindholm with some additions from
2958 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 2959
88f8d146
VS
29602013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2963 and not before.
2964 Reported by: Leon Drugi.
2965
3f42504c
VS
29662013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2967
2968 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2969 Reported by: Paulo Flabiano Smorigo.
2970
d110499b
VT
29712013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2972
2973 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2974
a8674ad3
VT
29752013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2976
2977 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2978
286fe4b3
VS
29792013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2980
2981 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2982
1bd57aa3
VS
29832013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2984
2985 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2986
7a87d69f
AB
29872013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2988
2989 * grub-core/net/bootp.c: Export net_* variables.
2990 * grub-core/net/net.c: Likewise.
2991
b2182299
VS
29922013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2993
2994 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2995
795b3dc0
VS
29962013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2997
2998 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2999
68714c43
VS
30002013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3001
3002 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
3003
af211bab
VS
30042013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
3005
3006 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
3007
0036f02d
MM
30082013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3009
3010 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
3011 <= 0.
3012
6d0ddff3
MM
30132013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3014
3015 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
3016 functions.
3017
038016f4
MM
30182013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3019
3020 * grub-core/fs/zfs/zfs_lz4.c: New file.
3021 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
3022
776bdce2
MM
30232013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3024
3025 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
3026
c71dbd40
MM
30272013-07-14 Massimo Maggi <me@massimo-maggi.eu>
3028
3029 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
3030 (check_pool_label): Likewise.
3031 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
3032
30332013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
3034
3035 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
3036
8e67b50f
AB
30372013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
3038
3039 * docs/grub.texi (Commands): Document postition parameters
3040 for menuentry command.
3041
f5ae3717
AB
30422013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
3043
3044 * util/grub-mknetdir.in: Remove stray line from help output.
3045
9c28da2a
VS
30462013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 Remove early sm712 init as there is no reason for it (the "watchdog"
3049 effect was due to wrong GPIO map).
3050
139072b8
VS
30512013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3052
3053 * grub-core/commands/pcidump.c: Remove static variables.
3054
c6a61bda
VS
30552013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3056
3057 * grub-core/commands/sleep.c: Refresh screen before sleeping.
3058
51369614
VS
30592013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3060
3061 * configure.ac: Move delimiter after the infos.
3062
efa8640a
VS
30632013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
3066
6f80a7b2
VS
30672013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3068
3069 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
3070 not filling whole 8x16 space.
3071
a2371e19
VS
30722013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
3075
64fce2d8
VS
30762013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 * configure.ac: Indicate which liblzma is used if any.
3079
eb272d84
PW
30802013-06-21 Paul Wise <pabs3@bonedaddy.net>
30812013-06-21 Craig Sanders <savannah@taz.net.au>
3082
3083 * util/grub-reboot.in: Document submenu usage.
3084
a9e5abee
CW
30852013-06-25 Colin Watson <cjwatson@ubuntu.com>
3086
3087 * .bzrignore: Update with a number of new test-related files.
3088
e639c204
CW
30892013-06-25 Colin Watson <cjwatson@ubuntu.com>
3090
3091 * util/grub-script-check.c: Fail on scripts containing no
3092 commands, to guard against corrupted grub-mkconfig setups that
3093 produce no useful output.
3094 * tests/grub_script_no_commands.in: New test.
3095 * Makefile.util.def (grub_script_no_commands): Add.
3096 Reported by Hans Putter. Fixes Debian bug #713886.
3097
a4c89b17
AB
30982013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3099
3100 * grub-core/disk/diskfilter.c: Forgot to remove comment
3101 from previous commit.
3102
5b06b53c
AB
31032013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3104
3105 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
3106 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
3107
702da5c9
AB
31082013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3109
3110 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
3111
aa62a5b7
AB
31122013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
3113
3114 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
3115 rescan diskfilter devices until nothing new is found.
3116
4aa237c8
VS
31172013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 Fix casts when compiling coreboot-specific code for 64-bit EFI.
3120
93d8479b
VS
31212013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 Don't try to detect cbfs on *-emu.
3124
837222cc
VS
31252013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3126
3127 * grub-core/term/gfxterm.c: USe right background color when scrolling.
3128
99c971af
VS
31292013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 Add support for processed coreboot payload chainloading.
3132
e6930a45
VS
31332013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3134
3135 Enable coreboot information commands even when not loaded as
3136 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
3137
5027af38
VS
31382013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3139
3140 Support for cbfs. Also factor out the part which is common
3141 for all archives to a separate module. This splits tar from cpio
3142 as they are very different but keeps cpio, cpio_be, odc and newc
3143 together since they're very similar.
3144
a5b55c4b
DM
31452013-06-15 David Michael <fedora.dm0@gmail.com>
3146
3147 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
3148 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
3149
0301a8b3
VS
31502013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3151
3152 * tests/grub_script_eval.in: Really add the eval test.
3153
3d84cb17
VS
31542013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3155
3156 Move flavour-specific parts out of common cpio.c file and
3157 rename remaining to cpio_common.c
3158
593e430c
AB
31592013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3160
3161 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
3162 off new function grub_script_execute_new_scope. Change callers to use
3163 either of them as appropriate.
3164 * grub-core/commands/eval.c: New command eval.
3165 * docs/grub.texi (Commands): Document it.
3166
63c29849
AB
31672013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3168
3169 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
3170 to fetch values when listing.
3171
cc284112
AB
31722013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3173
3174 Fix make dist on non-pc.
3175
31762013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
3177
3178 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
3179 without a device name.
3180
69544d1e
VS
31812013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3182
3183 Remove enable_executable_check as it's not needed anymore.
3184 Reported by: dougray.
3185
96dbe648
VS
31862013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
3189 ambigouos RAID before discovering RAIDs on top of it.
3190 Reported by: bodom.
3191
ccfc0bdb
VS
31922013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3193
3194 Fix typo (failback vs fallback).
3195
f2587088
AB
31962013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
3197
3198 * util/grub.d/30_os-prober.in: Add support for probing EFI
3199 System Partition (as of os-prober 1.58).
3200
cec5cf0c
VS
32012013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * configure.ac: Add yet another path to unifont. For parabola.
3204
e40b4596
JT
32052013-05-30 Josh Triplett <josh@joshtriplett.org>
3206
3207 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
3208 handling to copy the killed characters to the kill buffer as
3209 UCS4 stored as grub_uint32_t rather than as 8-bit characters
3210 stored as char. Eliminates UCS4 truncation and corruption
3211 observed when killing characters with Ctrl-u and yanking them
3212 back with Ctrl-y.
3213
fc4c4fdd
VS
32142013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3215
3216 Detach optional parts of gfxterm and integrate in with coreboot init.
3217
6570b205
VS
32182013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3219
3220 Move blit and fill dispatcher to appropriate files to decrease export
3221 and relocation overhead.
3222
b8323067
VS
32232013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3224
3225 * grub-core/font/font.c, include/grub/font.h: Inline simple font
3226 functions.
3227
3cc1878f
VS
32282013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3229
3230 * grub-core/Makefile.am: Fix compilation problem with some
3231 automake versions.
3232
4b80e43c
VS
32332013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3234
3235 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
3236
57e0c20c
VS
32372013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
3240 automake versions.
3241
4fd42c53
VS
32422013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3243
3244 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
3245 SSDT.
3246
1e908b34
RS
32472013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
3248
3249 * grub-core/partmap/dfly.c: New partition map.
3250
1359e474
VS
32512013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
3254 checking.
3255 Reported by: Francesco Lavra.
3256
17806392
AB
32572013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
3258
3259 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
3260 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
3261 false conditions.
3262 * conf/Makefile.common: define dist_grubconf_DATA
3263
cdce14fa
VS
32642013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 Progressively skip menu elements on small terminals rather
3267 than crashing.
3268
c8d6cc3c
VS
32692013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
3272 to avoid losing last column.
3273
a73b31ce
VS
32742013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3275
3276 * po/exclude.pot: Add missing string "%C".
3277
1202c764
VS
32782013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3279
3280 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
3281 after the test.
3282
50268344
VS
32832013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3284
3285 * util/grub-install.in: Gettextize "Not found" message.
3286
62b15edf
VS
32872013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3288
3289 Fix distfiles list.
3290 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3291
32922013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
3293
3294 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
3295 present.
3296 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
3297
709ad61b
VS
32982013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
3301
d128901a
VS
33022013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3303
3304 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
3305 attribute since structure is not necessarily aligned.
3306
34b22f5c
AB
33072013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
3308
3309 * docs/grub.texi (Device syntax): Clarify description of network
3310 drives.
3311
0f7e980b
VS
33122013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3313
3314 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
3315 for vasprintf presence.
3316
30b03dc2
VS
33172013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3318
3319 * util/grub-install.in: Handle efibootmgr presence check.
3320 Reported by: Leif Lindholm.
3321
0dc11c08
VS
33222013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3323
3324 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
3325 new strings to translate.
3326
f8024c3f
VS
33272013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
3330 yet another string (pun intended) to translate.
3331
b4c1da62
VS
33322013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3333
3334 * po/POTFILES-shell.in: Autogenerate it.
3335
0ef7478b
VS
33362013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3337
3338 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
3339
8200fa15
VS
33402013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3341
3342 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
3343 misnomer.
3344
091945b2
AB
33452013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
3346
3347 * docs/grub.texi (Network): Add description of net_default_interface,
3348 net_default_ip and net_default_mac. Rewrite variables description
3349 to emphasize that they are per-interface.
3350
0e7b2e32
VS
33512013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3352
3353 New test: cmdline and cat.
3354
16f7c8f6
VS
33552013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3356
3357 * grub-core/commands/cat.c: Show UTF-8 characters.
3358
3e912fda
VS
33592013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3360
3361 * conf/Makefile.common: Poison float and double on non-emu.
3362
ee0220bc
VS
33632013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3364
3365 * configure.ac: Don't disable extended registers on emu.
3366
89e0240c
VS
33672013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3368
3369 * configure.ac: Don't use extended registers on x86_64.
3370 Reported by: Peter Jones.
3371
e56d9637
VS
33722013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3373
3374 * grub-core/term/efi/console.c: Fix compile error.
3375
8098f655
VS
33762013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3377
3378 Compressed HFS+ support.
3379
16940e07
VS
33802013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3381
3382 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
3383 pixel".
3384
c5dbc13d
VS
33852013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3386
3387 Menu color test.
3388
011f8ae8
VS
33892013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3390
3391 * grub-core/tests/setjmp_test.c: New test.
3392
2aa072d7
VS
33932013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3394
3395 New variables 'net_default_*' to determine MAC/IP of default interface.
3396
43fe02cb
VS
33972013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3398
3399 * tests/gettext_strings_test.in: A test to check for strings not
3400 marked for translation.
3401
bed06142
VS
34022013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3403
3404 * autogen.sh: Exclude unused libgcrypt files from translation.
3405
fb2666b5
VS
34062013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3407
3408 Simplify few strings.
3409
d22840ec
VS
34102013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3411
3412 Mark few forgotten strings for translation.
3413
e34092fd
VS
34142013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3415
3416 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
3417 rather than printf.
3418
47cf82b4
VS
34192013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3420
3421 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
3422 rather than printf.
3423 * grub-core/video/readers/tga.c: Likewise.
3424
1eed0e6e
VS
34252013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3426
3427 * tests/priority_queue_unit_test.cc: New test.
3428
c5b7697b
VS
34292013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3430
3431 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
3432 than printf.
3433
5945c2f8
AB
34342013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
3435
3436 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
3437 variable for one time boot menu entry.
3438
fa292343
B
34392013-05-05 Bean <bean123ch@gmail.com>
3440
3441 * grub-core/commands/testspeed.c: New command testspeed.
3442
310d4214
VS
34432013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3444
3445 Factor-out human-size printing.
3446
85002bf3
VS
34472013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3448
3449 Agglomerate more mallocs to speed-up gfxterm.
3450
22b06e96
VS
34512013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3452
3453 Speed-up gfxterm by slightly agglomerating mallocs.
3454
b7c036bc
VS
34552013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 More video checks.
3458
92323d1f
VS
34592013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 Speed-up gfxterm by saving intermediate results in index+alpha
3462 format.
3463
0fb356a3
VS
34642013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3465
3466 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
3467 test.
3468
44dea3f9
VS
34692013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3470
3471 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
3472 line of timeout as it may contain the rest of long line.
3473
14af86e4
VS
34742013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3475
3476 * grub-core/normal/main.c: Fix freed memory dereference.
3477
03f7c8c3
VS
34782013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3479
3480 Fix several memory leaks.
3481
c686014c
VS
34822013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3483
3484 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
3485
0788a695
VS
34862013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3487
3488 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
3489
daf01d61
VS
34902013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3491
3492 Fix test -a and -o precedence.
3493 Reported by: adrian15.
3494
82ae74d7
VS
34952013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3496
3497 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
3498
8cec7bd4
AB
34992013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
3500
3501 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
3502 and add it as source to functional_test module.
3503
aa73d688
VS
35042013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3505
3506 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
3507
c104b6f9
VS
35082013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3509
3510 New series of tests for gfxterm and gfxmenu.
3511
7391c4d5
VS
35122013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3513
3514 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
3515 the theme path relative to $prefix/themes.
3516
cff50118
VS
35172013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3518
3519 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
3520 Fix order bug.
3521 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3522
7c332bdc
VS
35232013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3524
3525 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
3526 descriptor.
3527
a4f9a5ff
VS
35282013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3529
3530 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
3531 grub_gfxmenu_timeout_notifications.
3532 (grub_gfxmenu_view_destroy): Likewise.
3533
b5a2114d
VS
35342013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3535
3536 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
3537
a8905e8a
VS
35382013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3539
3540 Several fixes to ieee1275 and big-endian video.
3541
813c1622
VS
35422013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3543
3544 Add missing exports on mips.
3545
3f3e7326
VS
35462013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3547
3548 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
3549 if no unifont is found.
3550 Restore original keyboard.
3551
095accd1
VS
35522013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3555 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
3556
50361660
VS
35572013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 First automated video test (running videotest and comparing results)
3560
cd0f6eec
VS
35612013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3562
3563 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
3564 instead of 2 to have full RGB/CMY test pattern.
3565
3f9634e5
VS
35662013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 Add few more tests.
3569
583e5b64
VS
35702013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3573 ARCS. All users updated.
3574
aa7bcb99
VS
35752013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3576
3577 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3578
95ef1a54
VS
35792013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3580
3581 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3582
46546fc5
VS
35832013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3584
3585 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3586 Reported by: qwertial.
3587
3476e0ef
VT
35882013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3589
3590 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3591 with syntax "XXX deg"/"XXX °".
3592
96f33fed
VS
35932013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3594
3595 Make PCI init in i386-qemu port more robust.
3596
35972013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
3598
3599 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3600 cached view is reused.
3601 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3602 open boot menus.
3603
c53b4e67
VS
36042013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3605
3606 Unify more code in grub-install_header.
3607
f7457fb2
VS
36082013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3609
3610 Add few new tests.
3611
e2f27a8c
VS
36122013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3613
3614 Enforce disabling of firmware disk drivers when native drivers kick in.
3615
ef9d8cd5
VS
36162013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3617
3618 * grub-core/commands/nativedisk.c: Customize the list of modules on
3619 platform. Don't try to search for disks already using native drivers.
3620
f7bf6c31
VS
36212013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3622
3623 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3624 platforms.
3625
bdc4add8
VS
36262013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3627
3628 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3629 handling of variables containing backslash.
3630
e9e46c9a
VS
36312013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3632
3633 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3634 dereference.
3635 Reported by: qwertial.
3636
0e90dee8
VS
36372013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3638
3639 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3640
e0aacf24
VS
36412013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3644 dereference.
3645 Reported by: qwertial.
3646
3c0003c3
VS
36472013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3648
3649 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3650
adb7d667
VS
36512013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3652
3653 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3654
7cd0df84
VS
36552013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3656
3657 New command `nativedisk'.
3658
02adbb93
VS
36592013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3660
3661 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3662 * grub-core/loader/i386/bsd.c: Likewise.
3663
9fb0fd4f
VS
36642013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3665
3666 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3667
bd69257a
VS
36682013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3669
3670 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3671 grub_get_unaligned16 rather than shifts.
3672
178c2764
VS
36732013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3674
3675 * grub-core/kern/file.c: Use const char * rather than casting to
3676 non-const.
3677
eadfad24
VS
36782013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3679
3680 * grub-core/commands/probe.c: Add missing grub_device_close.
3681
9f73ebd4
VS
36822013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3683
3684 * INSTALL: Document linguas.sh.
3685
965fa829
VS
36862013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3687
3688 Remove POTFILES.in and regenerate it in autogen.sh.
3689
d417ddc4
VS
36902013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 Move --directory/--override-directorry to grub-install_header and unify.
3693
f97ec546
VS
36942013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * grub-core/term/morse.c: Macroify dih and dah.
3697
b2d7470c
PFS
36982013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3699
3700 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3701
141e2a78
VS
37022013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3703
3704 * grub-core/term/ns8250.c: Systematically probe ports by writing
3705 to SR before using them.
3706
1dd70ebd
PFS
37072013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3708
3709 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3710 disks.
3711 (check_sas): Get sas_adress info.
3712
c796a107
VS
37132013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3716 ports.
3717
43168646
LD
37182013-04-27 Leon Drugi <eyak>
3719
3720 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3721 BSS clearing.
3722
e7b8fd08
VS
37232013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3724
3725 Core compression test.
3726
17f9fd29
VS
37272013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3728
3729 Implement grub_machine_get_bootlocation for ARC.
3730
dc2a6c8b
VS
37312013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3732
3733 Improve AHCI detection and command issuing.
3734
f25a2ba6
VS
37352013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3736
3737 Fix pseries test.
3738
a6393224
VS
37392013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3740
3741 Make 'make check' work on emu.
3742
db99fbe8
VS
37432013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3744
3745 Replace libcurses with our own vt100 handling for the ease of testing
3746 and decreasing prerequisites.
3747
b24ca7cd
VS
37482013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3751
63314aa4
VS
37522013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3753
3754 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3755 compile when not needed.
3756
c1b00fff
VS
37572013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3758
3759 * tests/pseries_test.in: New test.
3760
f93e89ef
VS
37612013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3762
3763 Add test to check that different boot mediums work.
3764
c4b456d3
VS
37652013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3766
3767 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3768 ofw limited ISO support.
3769
5fe67f39
VS
37702013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3771
3772 * configure.ac: Fix loongson conditional.
3773
7f63a64f
VS
37742013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3775
3776 Enable mipsel-arc.
3777
b04b5990
VS
37782013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 Add serial on ARC platform.
3781
88d2f302
VS
37822013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3783
3784 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
3785 commit.
3786
86eb23bc
VS
37872013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3788
3789 * tests/partmap_test.in: Add missing double semicolon.
3790
eec3bb75
VS
37912013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3792
3793 * util/grub-mkrescue.in: Fix loongson filename.
3794
e0810df3
VS
37952013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3796
3797 * util/grub-mkrescue.in: Move all files that don't have a location
3798 set in stone under /boot/grub. Use ISO hard links rather than copies
3799 to save some space.
3800
65a6b30b
VS
38012013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3802
3803 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
3804 bogus SLOF values.
3805
6aff0107
VS
38062013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3807
3808 Make check work on mips-arc.
3809
5e013e56
VS
38102013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3811
3812 * util/grub-mkrescue.in: Alias sashARCS as sash.
3813
d1989e2e
VS
38142013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3815
3816 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
3817 it's serial.
3818
1a25e72c
VS
38192013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3820
3821 * util/grub-install.in: Fix target fo qemu_mips.
3822 Fix extension on EFI.
3823
a59a9826
VS
38242013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3825
3826 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
3827 in front of chosen entry to mark it even if highlighting is lost.
3828
1a40f80c
VS
38292013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
3832 gfxpayload=keep if cbfb is active.
3833
e343549c
VS
38342013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
3837
45fbd9a2
VS
38382013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3839
3840 Add missing video ids to coreboot and ieee1275 video.
3841
ab1440bd
VS
38422013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3843
3844 * util/grub-mkrescue.in: Add mips-arc support.
3845
cdeb8324
VS
38462013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3847
3848 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
3849
8528c879
VS
38502013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 Move mips-arc link address. Previous link address was chosen
3853 in belief that RAM on SGI platforms grows down while in fact it
3854 grows up from an unusual base.
3855
17fca573
VS
38562013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3857
3858 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3859 Fix a type which prevented CD-ROM and floppy boot.
3860
d178788e
VS
38612013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3862
3863 Support coreboot framebuffer.
3864
3865 * grub-core/video/i386/coreboot/cbfb.c: New file.
3866
fe4c3e7e
VS
38672013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3868
3869 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3870 detecting too small regions.
3871
ec2dd179
VS
38722013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3873
3874 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3875
872dac83
VS
38762013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3877
3878 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3879 Remove dprintf.
3880 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3881
90ec4b7f
VS
38822013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3885 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3886 * grub-core/loader/powerpc/ieee1275/linux.c
3887 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3888
f32555dd
VS
38892013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3890
3891 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3892 Look for /boot-rom as well as /rom/boot-rom.
3893
38649799
VS
38942013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3897 handling when creating text_layer failed.
3898 * grub-core/video/video.c (grub_video_create_render_target):
3899 Set result to 0 on error.
3900 (grub_video_delete_render_target): Do not dereference NULL.
3901
aeace7f7
VS
39022013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3903
3904 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3905 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3906 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3907 (grub_linux_load64): Mask out 2 high bits.
3908
4eafa175
AB
39092013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3910
3911 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3912 more place.
3913
daaa64bd
VS
39142013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 Add support for pseries and other bootinfo machines to grub-mkrescue.
3917
3918 Tested by: Paulo Flabiano Smorigo.
3919
d0d2daa6
VS
39202013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * util/grub-mkrescue.in: Add GPT for EFI boot.
3923
b193e100
VS
39242013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3927 It improves performance in qemu.
3928
a0f8f3ac
VS
39292013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * build-aux/snippet: Add missing gnulib files.
3932
284df0e2
AB
39332013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3934
3935 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3936
740201f3
AB
39372013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3938
3939 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3940
a7e03923
PJ
39412013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
39422013-04-15 Peter Jones <pjones@redhat.com>
3943
3944 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3945 sectors.
3946 Based on patch by Peter Jones.
3947
25fc51a8
VS
39482013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 Fix DMRAID partition handling.
3951
88017d47
VS
39522013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3953
3954 * tests/grub_cmd_date.in: Skip on sparc64.
3955
fa7d914e
VS
39562013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3957
3958 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3959 firmware error messages.
3960
cbe57a48
VS
39612013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3962
3963 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3964 source and destination differ.
3965
21aecce0
VS
39662013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3969 detection.
3970
25092d29
VS
39712013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3974 match config-util.h to avoid warnings and increase compatibility.
3975
79451522 39762013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 39772013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
3978
3979 Add option to compress files on install/image creation.
3980
78b7d77b
VS
39812013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3982
3983 * docs/grub-dev.texi: Rearrange menu to match the section order.
3984 Reported by: Bryan Hundven.
3985
cc2fa5ec
VS
39862013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3987
3988 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3989
b49fe879
VS
39902013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3991
3992 Move GRUB out of system area when using xorriso 1.2.9 or later.
3993
5351da81
VS
39942013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3995
3996 * tests/grub_cmd_date.in: Add missing exit 1.
3997
c9d586ea
VS
39982013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 * tests/partmap_test.in: Skip on sparc64.
4001
3f729741
VS
40022013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 Support grub-shell on sparc64.
4005
8ca86b3a
VS
40062013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4007
4008 Support mkrescue on sparc64.
4009
aa1af9bb
VS
40102013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4011
4012 Allow IEEE1275 ports on path even if it wasn't detected automatically.
4013 Needed on OpenBIOS due to incomplete device tree.
4014
ac4fea79
VS
40152013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
4016
4017 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
4018 would be otherwise excluded.
4019
40202013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
4021
4022 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
4023 Inline name defines used only once.
4024
fe22b071
VS
40252013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
4026
4027 Fix memory leaks in ofnet.
4028 Reported by: Francesco Lavra.
4029
9d21381b
VS
40302013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4031
4032 * docs/man/grub-glue-efi.h2m: Add missing file.
4033
07aec23c
VS
40342013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4035
4036 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
4037
67ab8353
VS
40382013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4039
4040 Better support Apple Intel Macs on CD.
4041
ba44ca6d
VS
40422013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4043
4044 Replace stpcpy with grub_stpcpy in tools.
4045
bbdd6305
VS
40462013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4047
4048 Handle Japanese special keys.
4049 Reported by: Hiroyuki YAMAMORI.
4050 Codes supplied by: Hiroyuki YAMAMORI.
4051
8573d302
VS
40522013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4053
4054 * util/grub-mkimage.c: Document memdisk implying --prefix.
4055
d70dbab7
VS
40562013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4057
4058 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
4059 much we can do about it anyway.
4060
51a4c3e3
AN
40612013-04-12 Aleš Nesrsta <starous@volny.cz>
4062
4063 Fix handling of split transfers.
4064
92c8f58d
VS
40652013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4066
4067 * grub-core/net/http.c: Fix bad free.
4068
b7d17a49
VS
40692013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4070
4071 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
4072 than buffer size.
4073
a3d566d4
VS
40742013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4075
4076 Disable partmap check on i386-ieee1275 due to openfirmware issues.
4077
a936af56
VS
40782013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4079
4080 * tests/util/grub-shell.in: Fix it on powerpc.
4081
51212234
VS
40822013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4083
4084 Turn off QEMU ACPI-way since new releases don't have shutdown port
4085 anymore.
4086
a21eec9e
VS
40872013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4088
4089 * docs/grub.texi: Update coreboot status info.
4090
e3734b84
VS
40912013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4092
4093 * tests/grub_cmd_date.in: New test for datetime.
4094
f9d40055
VS
40952013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
4096
4097 * tests/partmap_test.in: Fix missing qemudisk setting.
4098
dbc56d8f
VS
40992013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4100
4101 Support i386-ieee1275 grub-mkrescue and make check on it.
4102
a79b8a15
VS
41032013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4104
4105 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
4106 feature for it.
4107
48f39bb4
VS
41082013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4109
4110 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
4111 GRUB_CMDLINE_XEN_DEFAULT.
4112 Reported by: Marc Warne (GigaTux) <gigatux>
4113
053cfcdd
VS
41142013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4115
4116 Import new gnulib.
4117
93cd84df
VS
41182013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4119
4120 Use ACPI shutdown intests as traditional port was removed.
4121
f4b1fa4f
AB
41222013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
4123
4124 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
4125 distinction.
4126
49818a59
VS
41272013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4128
4129 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
4130 Fix few warining messages and leaks while on it.
4131
9277a306
AB
41322013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
4133
4134 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
4135 links under grub-core/lib/libgcrypt-grub/mpi.
4136
d5e2a158
VS
41372013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4138
4139 Fix ia64-efi image generation on big-endian machines. Deduplicate
4140 some code while on it.
4141 Reported by: Leif Lindholm.
4142
18866643
AB
41432013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4144
4145 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
4146 as extra_dist.
4147
ca53deb8
AB
41482013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4149
4150 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
4151
d4c4b8e1
BH
41522013-04-08 Bryan Hundven <bryanhundven@gmail.com>
4153
4154 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
4155 texinfo-5.1.
4156
47043f95
VS
41572013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4158
4159 * grub-core/normal/term.c: Few more fixes for menu entry editor
4160 rendering.
4161 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4162
a3216068
VS
41632013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4164
4165 * grub-core/normal/term.c: Few more fixes for menu entry editor
4166 rendering.
4167 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4168
21026747
AB
41692013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4170
4171 * conf/Makefile.extra-dist (EXTRA_DIST): Add
4172 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
4173
59624ca8
AB
41742013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4175
4176 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
4177 instead of hardcoding grub.mo.
4178
1f44478c
FN
41792013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
4180
4181 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
4182
eeada7b1
VS
41832013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4184
4185 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
4186 grub-core/disk/geli.c.
4187
132867de
VS
41882013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4189
4190 * util/grub-mkfont.c: Prefer enum to #define.
4191
de73de17
VS
41922013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4193
4194 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
4195
1865baa7
VS
41962013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
4199
ce7d92a9
VS
42002013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
4203
52eab656
VS
42042013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4205
4206 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
4207
98b23b95
VS
42082013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4209
4210 * include/grub/bsdlabel.h: Use enums.
4211
0467a5dd
VS
42122013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4213
4214 Move GRUB_CHAR_BIT to types.h.
4215
16cc9f03
AB
42162013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4217
4218 * docs/grub.texi: Document more user commands.
4219
3152aecb
AB
42202013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4221
4222 * docs/grub.texi: Document menuentry --id option.
4223
c506fc30
FL
42242013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
4225
4226 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
4227
aa428238
VS
42282013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4229
4230 Unify file copying setup across different install scripts. Add
4231 options for performing partial install.
4232
efe0cdda
PJ
42332013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
42342013-04-04 Peter Jones <pjones@redhat.com>
4235
4236 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
4237
f75835bd
VS
42382013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4239
4240 Use TSC as a possible time source on i386-ieee1275.
4241
2cd5ce6c
VS
42422013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
4245 Init err.
4246
c9625630
VS
42472013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * util/grub-setup.c (setup): Handle some corner cases.
4250
be008941
VS
42512013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4252
4253 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
4254
1a78d573
VS
42552013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4256
4257 * grub-core/commands/verify.c: Save verified file to avoid it being
4258 tampered with after verification was done.
4259
db8ff59f
VS
42602013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4261
4262 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
4263 reported width by one to compensate for curesor algorithm problem.
4264
91bf46b1
VS
42652013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 Fix screen corruption in menu entry editor and simplify the code
4268 flow while on it.
4269
a7b1d693
AB
42702013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
4271
4272 * util/grub-mount.c (fuse_init): Return error if fuse_main
4273 failed.
4274
31df9ad8
FL
42752013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
4276
4277 * include/grub/elf.h: Add missing ARM relocation codes and fix
4278 existing ones.
4279
07f392eb
VT
42802013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4281
4282 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
4283
9efd73ec 42842013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
42852013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4286
4287 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
4288 into account when calculating radius.
4289
42902013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
4291
4292 * grub-core/gfxmenu/view.c: Fix off-by-one error.
4293
4985ddaa
VT
42942013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4295
4296 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
4297
8c3635ff
RS
42982013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4299
4300 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
4301 missing closing bracket.
4302
74a35e69
RS
43032013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4304
4305 * INSTALL: Mention xorriso requirement.
4306
40f1c000
AB
43072013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
4308
4309 * grub-core/commands/verify.c: Fix hash algorithms values for
4310 the first three hashes - they start with 1, not with 0.
4311
e75fdee4
VS
43122013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4313
4314 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
4315 Try terminating EFI services several times due to quirks in some
4316 implementations.
4317
33028f4c
CW
43182013-03-26 Colin Watson <cjwatson@ubuntu.com>
4319
4320 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
4321 skipping Event, Device, Processor, PowerRes, ThermalZone, and
4322 BankField extended opcodes.
4323 (get_sleep_type): Add minimal scope handling (just enough to
4324 handle setting the scope to the root path).
4325 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
4326 * include/grub/acpi.h: Add enumeration values for Event, Device,
4327 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
4328
33871a10
VT
43292013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
4330
4331 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
4332 memory leak.
4333
8990963a
VS
43342013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4335
4336 * grub-core/disk/ahci.c: Give more time for AHCI request.
4337
daae8f9e
VS
43382013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4339
4340 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
4341 command.
4342
6a7fb94b
VS
43432013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4344
4345 Replace the region at 0 from coreboot tables to available in BSD
4346 memory map.
4347
ff99babd
VS
43482013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4349
4350 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
4351 non-BIOS platforms.
4352
30d6b1b2
VS
43532013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4354
4355 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
4356 platforms.
4357
6ccd0b31
VS
43582013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
4361 handling of multi-device filesystems.
4362
23c9cc04
VS
43632013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4364
4365 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
4366 platforms.
4367
ce50dbd7
VS
43682013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4369
4370 Add new 'proc' filesystem framework and put luks_script into it.
4371
d975e8d5
VS
43722013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4373
4374 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
4375 and qemu.
4376
e73ba5e8
VS
43772013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4378
4379 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
4380
92750e4c
VS
43812013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4382
4383 Add ability to generate newc additions on runtime.
4384
0ec45a68
VS
43852013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4386
4387 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
4388 description.
4389
320abd43
VS
43902013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4391
4392 * po/POTFILES.in: Regenerate.
4393
d7a6506e
VS
43942013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4395
4396 * grub-core/commands/verify.c (hashes): Add several hashes
4397 from the spec.
4398
8fe05def
VS
43992013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4400
4401 Slight improve in USB-related boot-time checkpoints.
4402
524e2766
VS
44032013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4404
4405 * grub-core/commands/boottime.c: Fix copyright header.
4406
cc19857a
VS
44072013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
4410 coreboot tables content. Support for cbmemc.
4411
ef8810e9
VS
44122013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 Fix a conflict between ports structures with 2 controllers of
4415 same kind.
4416
e9dabdfa
VS
44172013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * include/grub/boottime.h: Add missing file.
4420
f6df57d2
VS
44212013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4422
4423 Initialize USB ports in parallel to speed-up boot.
4424
d745dda7
VS
44252013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4426
4427 Fix USB devices not being detected when requested
4428 due to delayed attach.
4429
e5a2dd7b
VS
44302013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4431
e744219b
VS
4432 Implement boot time analysis framework.
4433
44342013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4435
4436 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
4437 descriptor to just receive it as argument rather than endpoint
4438 address.
4439
5dd6f587
VS
44402013-03-19 Aleš Nesrsta <starous@volny.cz>
4441
4442 Better estimate the maximum USB transfer size.
4443
2f1071d5
VS
44442013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
4445
4446 Resend a packet if we got the wrong buffer in status.
4447
46ecfc49
VS
44482013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
4451 multiplication rather than division.
4452
ea811130
VS
44532013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
4456 than divisions.
4457
d2789cf0
VS
44582013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
4461 operations to have intended shifts and not divisions.
4462
a9c94590
VS
44632013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
4466 intended shifts rather than division.
4467
84cfe81b
VS
44682013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4469
4470 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
4471 computation for some years before epoch. Avode confusing division
4472 while on it.
4473
21344ef6
VS
44742013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4475
4476 * grub-core/video/i386/pc/vbe.c
4477 (grub_video_vbe_print_adapter_specific_info): Replace division by
4478 shifts.
4479
3f2b4d1a
VS
44802013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4481
4482 Adjust types in gdb module to have intended unsigned shifts rather than
4483 signed divisions.
4484
3dac5878
VS
44852013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4486
4487 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
4488 maximum size is 4G - 1 on hfs
4489
5341c0fb
VS
44902013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
4493
fc3ff2a2
VS
44942013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4495
4496 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
4497 function.
4498
81455e8e
AB
44992013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
4500
4501 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
4502 causing gcc error with gcc 4.7.1.
4503
efd4f117
NZ
45042013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4505
4506 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
4507 dereference null pointer. While the code is technically correct, gcc
4508 may eliminate a null check if pointer is already dereferenced.
4509
e11645f4
NZ
45102013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4511
4512 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
4513 OOM check.
4514 * grub-core/normal/term.c (read_terminal_list): Likewise.
4515
77468368
VS
45162013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4517
4518 Lift up core size limits on some platforms. Fix potential memory
4519 corruption with big core on small memory systems. Document remaining
4520 limits.
4521
f6b58fe5
VS
45222013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4523
4524 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
4525 gotoxy to 0,0.
4526
19ce697d
VS
45272013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4528
4529 Remove all trampoline support. Add -Wtrampolines when
4530 present. Remove symbols used for trampolines to make
4531 link fail if trampolines are present.
4532
73b5d90f
VS
45332013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
4536 append out of its parent.
4537
cb758e96
VS
45382013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
4541 parent.
4542
3188131f
VS
45432013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4544
4545 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
4546 all vars to a macro. All users updated.
4547
e42b2514
VS
45482013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4549
4550 * grub-core/disk/ieee1275/nand.c: Fix compilation on
4551 i386-ieee1275.
4552
83e1a1a1
VS
45532013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4554
4555 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4556
1d5a880f
VS
45572013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4558
4559 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
4560
6e4146c4
VS
45612013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4562
4563 Move to more hookless approach in IEEE1275 devices handling.
4564
99fcda8a
VS
45652013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4566
4567 * grub-core/kern/term.c (grub_term_normal_color),
4568 (grub_term_highlight_color): Add back lost defaults.
4569
73bf57e2
VS
45702013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4571
4572 Make elfload not use hooks. Opt for flags and iterators instead.
4573
7f8c105f
VS
45742013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4575
4576 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4577 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4578
396d4091
VS
45792013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4580
4581 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4582
45832013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4584
4585 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4586 hook pass-through parameter. All users updated and unnested.
4587
74a27421
VS
45882013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4589
4590 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4591 out of its parent.
4592
b46d4213
VS
45932013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4594
4595 * grub-core/fs/hfs.c: Remove nested functions.
4596
e114c3cc
VS
45972013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4598
4599 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4600 the context through.
4601 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4602
f9b7d780
VS
46032013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4604
4605 * util/grub-editenv.c (list_variables): Move print_var out of its
4606 parent.
4607
ca9c2608
VS
46082013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4609
4610 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4611 function.
4612
5d983f5f
VS
46132013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4614
4615 * grub-core/gentrigtables.c: Make tables const.
4616
3056d3e7
VS
46172013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4618
4619 Remove nested functions from videoinfo iterators.
4620
e2303774
VS
46212013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4622
4623 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4624 for 64-bit platforms.
4625
f42e3a2f
VS
46262013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4627
4628 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4629 a FOR_CHILDREN macro.
4630
be174e5e
VS
46312013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4632
4633 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4634 platform from firmware path.
4635
0789b672
VS
46362013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4637
4638 Enable linux16 on non-BIOS systems for i.a. memtest.
4639
4640 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4641 correctly.
4642 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4643
005a9c32
VS
46442013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4645
4646 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4647 Fix end of table condition.
4648
ff2b3cd9
VS
46492013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4650
4651 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4652 out of its parent.
4653
4fc40ff8
VS
46542013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * grub-core/fs/jfs.c: Remove nested functions.
4657
be42d97a
VS
46582013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 * grub-core/fs/minix.c: Remove nested functions.
4661
99373ce4
VS
46622013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4663
4664 * grub-core/fs/iso9660.c: Remove nested functions.
4665
5aec2afe
VS
46662013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4667
4668 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4669 of parent function.
4670
6c69e691
VS
46712013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4672
4673 * util/grub-fstest.c: Remove nested functions.
4674
43c91882
VS
46752013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4676
4677 * grub-core/loader/machoXX.c: Remove nested functions.
4678
4eb8b756
CW
46792013-02-27 Colin Watson <cjwatson@ubuntu.com>
4680
4681 Remove nested functions from disk and file read hooks.
4682
4683 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4684 (struct grub_disk): Add read_hook_data member.
4685 * include/grub/file.h (struct grub_file): Likewise.
4686 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4687 argument.
4688
4689 Update all callers.
4690
df6da5a5
AB
46912012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4692
4693 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4694 Fix off by one error in enumerating extended partitions.
4695
21aecde5
AB
46962013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4697
4698 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4699 memory leak if device name is not found.
4700
f1a19118
AB
47012013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4702
4703 * grub-core/normal/menu_entry.c (update_screen): remove
4704 unused variable `off' which caused scroll down arrow to be always shown.
4705
958bfd20
AB
47062013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4707
4708 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4709 access to unallocated memory.
4710
b7b78edb
AB
47112013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4712
4713 * Makefile.util.def: Add partmap/msdos.c to common library.
4714 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4715 * grub-core/disk/ldm.c: Check for existence of
4716 GRUB_PC_PARTITION_TYPE_LDM.
4717
28d468d6
VS
47182013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4719
4720 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4721 sizes and display sector size.
4722
d55ffb02
VS
47232013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4724
4725 Implement new command cmosdump.
4726
b5ea6ce0
VS
47272013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4728
4729 Support Openfirmware disks with non-512B sectors.
4730
4731 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4732 size of the disk.
4733 * (grub_ofdisk_get_block_size): New function.
4734 * (grub_ofdisk_prepare): Use the correct block size.
4735 * (grub_ofdisk_read): Likewise.
4736 * (grub_ofdisk_write): Likewise.
4737 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4738 New proto.
4739
cc0e476f
VS
47402013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4741
4742 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4743
c5dbdc33
VS
47442013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4745
4746 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4747 on first error.
4748
3f078c0f
VS
47492013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4750
4751 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4752 freeing it.
4753
66a93674
VS
47542013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4755
4756 Implement USBDebug (full USB stack variant).
4757
c9f0c134
VS
47582013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4759
4760 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4761 unless they have unexpected values.
4762
cfe1288b
VS
47632013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4764
4765 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4766 grub_print_error.
4767
e42b9969
VS
47682013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4769
4770 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4771 zero-out of port structure.
4772
cf94fd62
VS
47732013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4774
4775 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4776 of extended attributes.
4777
f81ef4b5
AB
47782013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4779
4780 * util/grub-install.in: change misleading comment about
4781 device.map creation
4782
af18fdb4
VS
47832013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4784
4785 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
4786 when menu highlight color isn't set.
4787
08bcec50
M
47882013-01-27 C. Masloch <pushbx@38.de>
4789
4790 Improve FreeDOS direct loading support compatibility.
4791
4792 * include/grub/i386/relocator.h (grub_relocator16_state):
4793 New member ebp.
4794 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
4795 variable.
4796 (grub_relocator16_boot): Handle %ebp.
4797 * grub-core/lib/i386/relocator16.S: Likewise.
4798 * grub-core/loader/i386/pc/freedos.c:
4799 Load BPB to pass kernel which partition to load from.
4800 Check that kernel file is not too large.
4801 Set register dl to BIOS unit number as well.
4802
7782b8a6
CW
48032013-01-22 Colin Watson <cjwatson@ubuntu.com>
4804
4805 * util/grub-reboot.in (usage): Document the need for
4806 GRUB_DEFAULT=saved.
4807 * util/grub-set-default.in (usage): Likewise.
4808 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
4809
e661c180
VS
48102013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4811
4812 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
4813 than defining WORDS_BIGENDIAN manually.
4814
1c22ca9a
VS
48152013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
4818 invariants.
4819
d44892fe
CW
48202013-01-21 Colin Watson <cjwatson@ubuntu.com>
4821
4822 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
4823 nested.
4824 (blit_comb: add_device_width): Likewise.
4825
5fdbaed1
CW
48262013-01-21 Colin Watson <cjwatson@ubuntu.com>
4827
4828 Remove nested functions from USB iterators.
4829
4830 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
4831 (grub_usb_controller_iterate_hook_t): Likewise.
4832 (grub_usb_iterate): Add hook_data argument.
4833 (grub_usb_controller_iterate): Likewise.
4834 (struct grub_usb_controller_dev.iterate): Likewise.
4835
4836 Update all implementations and callers.
4837
4250985a
VS
48382013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4839
4840 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
4841 margin when not needed.
4842
7d8848f3
VS
48432013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4844
bc136973 4845 Make color variables global instead of it being per-terminal.
7d8848f3
VS
4846
48472013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4848
bc136973
VS
4849 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4850 asterisk.
7d8848f3 4851
ed12a003
CW
48522013-01-21 Colin Watson <cjwatson@ubuntu.com>
4853
4854 Fix powerpc and sparc64 build failures caused by un-nesting memory
4855 map iterators.
4856
6a0db449
CW
48572013-01-21 Colin Watson <cjwatson@ubuntu.com>
4858
4859 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4860 parameter declarations.
4861
ccd86b21
VS
48622013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4863
4864 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4865
822b726b
VS
48662013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4867
4868 Improve spkmomdem reliability by adding a separator between bytes.
4869
115c2cc1
CW
48702013-01-21 Colin Watson <cjwatson@ubuntu.com>
4871
4872 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4873 an Acer registration utility with several sightings in the wild.
4874 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4875
fc524edf
CW
48762013-01-21 Colin Watson <cjwatson@ubuntu.com>
4877
4878 Remove nested functions from filesystem directory iterators.
4879
4880 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4881 (struct grub_fs.dir): Add hook_data argument.
4882
4883 Update all implementations and callers.
4884
53d3e4e3
CW
48852013-01-21 Colin Watson <cjwatson@ubuntu.com>
4886
4887 * docs/grub.texi (Multi-boot manual config): Fix typo for
4888 "recommended".
4889
c821711f
LL
48902013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4891
4892 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4893 until after its use in generate_image.
4894
6a0debbd
CW
48952013-01-20 Colin Watson <cjwatson@ubuntu.com>
4896
4897 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4898 initrd size to addr_min, since the initrd will be allocated after
4899 this address.
4900
f41e08db
AB
49012013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4902
4903 * conf/Makefile.common: Fix autogen rules to pass definition
4904 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4905
77529e0f
LL
49062013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4907
4908 * include/grub/elf.h: Update ARM definitions based on binutils.
4909
b879aa7b
VS
49102013-01-20 Aleš Nesrsta <starous@volny.cz>
4911
4912 Split long USB transfers into short ones.
4913
8eb8284d
AB
49142013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4915
4916 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4917 is interrupted by ESC.
4918
08dad2dc
VS
49192013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4920
4921 * util/grub-script-check.c (main): Uniform the error message.
4922
6c724b85
CW
49232013-01-20 Colin Watson <cjwatson@ubuntu.com>
4924
4925 Remove nested functions from ELF iterators.
4926
25239370
CW
49272013-01-20 Colin Watson <cjwatson@ubuntu.com>
4928
4929 Remove nested functions from device iterators.
4930
4931 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4932 (grub_arc_iterate_devs): Add hook_data argument.
4933 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4934 (struct grub_ata_dev.iterate): Add hook_data argument.
4935 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4936 (grub_device_iterate): Add hook_data argument.
4937 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4938 (struct grub_disk_dev.iterate): Add hook_data argument.
4939 (grub_disk_dev_iterate): Likewise.
4940 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4941 Likewise.
4942 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4943 Likewise.
4944 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4945 type.
4946 (struct grub_partition_map.iterate): Add hook_data argument.
4947 (grub_partition_iterate): Likewise.
4948 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4949 (struct grub_scsi_dev.iterate): Add hook_data argument.
4950
4951 Update all callers.
4952
6c0314d6
CW
49532013-01-20 Colin Watson <cjwatson@ubuntu.com>
4954
4955 Fix typos for "developer" and "development".
4956
600dc5f1
VS
49572013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4958
4959 Add license header to spkmodem-recv.c.
4960
17334a6b
VS
49612013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4962
4963 Rewrite spkmodem to use PIT for timing. Double the speed.
4964
7d462559
VS
49652013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4966
4967 Add new command pcidump.
4968
b78d6c32
VS
49692013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4970
4971 New terminal outputs using serial: morse and spkmodem.
4972
34f71cb8
VS
49732013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4974
4975 Improve bidi handling in entry editor.
4976
4542e71b
VS
49772013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4980 argument to prevent name collision.
4981
09fd6d82
CW
49822013-01-15 Colin Watson <cjwatson@ubuntu.com>
4983
4984 Remove nested functions from script reading and parsing.
4985
4986 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4987 getline_data argument, passed to getline.
4988 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4989 getline_data argument, passed to grub_parser_split_cmdline.
4990 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4991 lexerstate->getline_data to lexerstate->getline.
4992 (grub_script_lexer_init): Add getline_data argument, saved in
4993 lexerstate->getline_data.
4994 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4995 argument, passed to grub_script_parse.
4996 * grub-core/script/script.c (grub_script_parse): Add getline_data
4997 argument, passed to grub_script_lexer_init.
4998 * include/grub/parser.h (grub_parser_split_cmdline): Update
4999 prototype. Update all callers to pass appropriate getline data.
5000 (struct grub_parser.parse_line): Likewise.
5001 (grub_rescue_parse_line): Likewise.
5002 * include/grub/reader.h (grub_reader_getline_t): Add void *
5003 argument.
5004 * include/grub/script_sh.h (struct grub_lexer_param): Add
5005 getline_data member.
5006 (grub_script_parse): Update prototype. Update all callers to pass
5007 appropriate getline data.
5008 (grub_script_lexer_init): Likewise.
5009 (grub_normal_parse_line): Likewise.
5010
5011 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
5012 data argument.
5013 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
5014 static instead of nested. Rename to ...
5015 (grub_parser_execute_getline): ... this.
5016 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
5017 data argument.
5018 * grub-core/normal/main.c (read_config_file: getline): Make static
5019 instead of nested. Rename to ...
5020 (read_config_file_getline): ... this.
5021 (grub_normal_read_line): Add unused data argument.
5022 * grub-core/script/execute.c (grub_script_execute_sourcecode:
5023 getline): Make static instead of nested. Rename to ...
5024 (grub_script_execute_sourcecode_getline): ... this.
5025 * util/grub-script-check.c (main: get_config_line): Make static
5026 instead of nested.
5027
d0d4b8a0
CW
50282013-01-15 Colin Watson <cjwatson@ubuntu.com>
5029
5030 Remove nested functions from memory map iterators.
5031
5032 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
5033 argument, passed to hook.
5034 * grub-core/kern/i386/coreboot/mmap.c
5035 (grub_linuxbios_table_iterate): Likewise.
5036 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
5037 instead of nested.
5038 (grub_machine_mmap_iterate): Add hook_data argument.
5039 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
5040 Add hook_data argument, passed to hook.
5041 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
5042 Likewise.
5043 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
5044 Likewise.
5045 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
5046 Likewise.
5047 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
5048 Likewise.
5049 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
5050 Likewise.
5051 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
5052 Likewise.
5053 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
5054 (grub_machine_mmap_iterate): Likewise.
5055 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
5056 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
5057 prototype.
5058 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
5059 Remove NESTED_FUNC_ATTR from here and from all users.
5060 (grub_mmap_iterate): Update prototype.
5061 (grub_efi_mmap_iterate): Update prototype. Update all callers to
5062 pass appropriate hook data.
5063 (grub_machine_mmap_iterate): Likewise.
5064
5065 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
5066 static instead of nested.
5067 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
5068 Rename to ...
5069 (lsmmap_hook): ... this.
5070 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
5071 Likewise.
5072 (grub_efiemu_mmap_fill: fill_hook): Likewise.
5073 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
5074 heap_init): Likewise.
5075 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
5076 Rename to ...
5077 (mmap_iterate_hook): ... this.
5078 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
5079 Likewise.
5080 * grub-core/lib/ieee1275/relocator.c
5081 (grub_relocator_firmware_get_max_events: count): Likewise.
5082 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
5083 to ...
5084 (grub_relocator_firmware_fill_events_iter): ... this.
5085 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
5086 hook): Likewise. Rename to ...
5087 (grub_relocator_alloc_chunk_align_iter): ... this.
5088 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
5089 Rename to ...
5090 (generate_e820_mmap_iter): ... this.
5091 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
5092 Rename to ...
5093 (count_hook): ... this.
5094 (grub_linux_boot: hook): Likewise. Rename to ...
5095 (grub_linux_boot_mmap_find): ... this.
5096 (grub_linux_boot: hook_fill): Likewise. Rename to ...
5097 (grub_linux_boot_mmap_fill): ... this.
5098 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
5099 hook): Likewise. Rename to ...
5100 (grub_fill_multiboot_mmap_iter): ... this.
5101 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
5102 hook): Likewise. Rename to ...
5103 (count_hook): ... this.
5104 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
5105 hook): Likewise. Rename to ...
5106 (grub_fill_multiboot_mmap_iter): ... this.
5107 * grub-core/loader/powerpc/ieee1275/linux.c
5108 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
5109 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
5110 Likewise. Rename to ...
5111 (alloc_phys_choose): ... this.
5112 (determine_phys_base: get_physbase): Likewise.
5113 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
5114 find_hook): Likewise.
5115 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
5116 (malloc_hook: count_hook): Likewise.
5117 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
5118 Likewise. Rename to ...
5119 (lower_hook): ... this.
5120 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5121 (upper_hook): ... this.
5122 (grub_mmap_get_post64: hook): Likewise. Rename to ...
5123 (post64_hook): ... this.
5124 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
5125 Likewise. Rename to ...
5126 (lower_hook): ... this.
5127 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5128 (upper_hook): ... this.
5129 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
5130 (grub_mmap_iterate: fill_hook): Likewise.
5131 (fill_mask): Pass addr and mask within a single struct.
5132 (grub_cmd_badram: hook): Make static instead of nested. Rename
5133 to ...
5134 (badram_iter): ... this.
5135 (grub_cmd_cutmem: hook): Likewise. Rename to ...
5136 (cutmem_iter): ... this.
5137
22099030
VS
51382013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5139
5140 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
5141 delimit path in strings using quotes.
5142 * util/getroot.c (grub_guess_root_devices): Likewise.
5143 (grub_make_system_path_relative_to_its_root): Likewise.
5144 * util/grub-probe.c (probe): Likewise.
5145 * util/ieee1275/ofpath.c (find_obppath): Likewise.
5146 (xrealpath): Likewise.
5147
4a9950ec
VS
51482013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5149
5150 Fix compilation with older compilers.
5151
5152 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
5153 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
5154 declarations.
5155 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
5156 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
5157 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
5158 identifier with b.
5159 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
5160 * include/grub/crypto.h: Add type defines.
5161 * util/import_gcrypth.sed: Remove duplicate type defines.
5162
adcc6020
VS
51632013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5164
5165 New command list_trusted.
5166
5167 * grub-core/commands/verify.c (grub_cmd_list): New function.
5168
a4528937
CW
51692013-01-13 Colin Watson <cjwatson@ubuntu.com>
5170
5171 * util/grub-mkimage.c (generate_image): Fix "size of public key"
5172 info message.
5173
ca3a7446
CW
51742013-01-13 Colin Watson <cjwatson@ubuntu.com>
5175
5176 Remove nested functions from PCI iterators.
5177
5178 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
5179 passed to hook. Update all callers to pass appropriate hook data.
5180 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
5181 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
5182 Remove NESTED_FUNC_ATTR from here and from all users.
5183 (grub_pci_iterate): Update prototype.
5184 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
5185 instead of nested. Rename to ...
5186 (grub_cs5536_find_iter): ... this.
5187 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
5188 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
5189 Likewise.
5190 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
5191 Likewise.
5192 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
5193 Likewise.
5194 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
5195 Likewise.
5196 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
5197 * grub-core/video/radeon_fuloong2e.c
5198 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
5199 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
5200 find_card): Likewise.
5201 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
5202 Likewise.
5203
f8e98fee
VS
52042013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5205
5206 * grub-core/commands/verify.c: Mark messages for translating.
5207
055b36b6
VS
52082013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5209
5210 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
5211 fatal.
5212
f7ff879b
VS
52132013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5214
5215 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
5216 fatal.
5217
52182013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
5219
5220 * autogen.sh: Do not try to delete nonexistant files.
5221 * util/import_gcrypth.sed: Add some missing header removals.
5222
01323d49
CW
52232013-01-12 Colin Watson <cjwatson@ubuntu.com>
5224
5225 Clean up dangling references to grub-setup.
5226 Fixes Ubuntu bug #1082045.
5227
5228 * docs/grub.texi (Images): Refer generally to grub-install rather
5229 than directly to grub-setup.
5230 (Installing GRUB using grub-install): Remove direct reference to
5231 grub-setup.
5232 (Device map) Likewise.
5233 (Invoking grub-install): Likewise.
5234 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5235 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5236 * util/grub-install.in (usage): Likewise.
5237
5238 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
5239 Apply to grub-bios-setup and grub-sparc64-setup rather than to
5240 grub-setup.
5241 * configure.ac: Remove grub_setup output variable.
5242
5243 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
5244 to grub-bios-setup.
5245 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
5246 grub-setup to grub-sparc64-setup.
5247
5e3b8dcb
VS
52482013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5249
5250 Import gcrypt public-key cryptography and implement signature checking.
5251
535714bd
VS
52522013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5253
5254 * grub-core/fs/ntfs.c: Ue more appropriate types.
5255 * grub-core/fs/ntfscomp.c: Likewise.
5256 * include/grub/ntfs.h: Likewise.
5257
3e4f3566
VS
52582013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5259
5260 Support Apple FAT binaries on non-Apple platforms.
5261
5262 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
5263 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
5264 Likewise.
5265 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
5266 Apple FAT binaries.
5267
4dedb13f
VS
52682013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5269
5270 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
5271 sector devices.
5272
f8861eaf
CW
52732013-01-07 Colin Watson <cjwatson@ubuntu.com>
5274
5275 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
5276 explicitly zeroing elements.
5277 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
5278 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
5279 of elements in a structure already allocated using grub_zalloc.
5280 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
5281
86065b0a
CW
52822013-01-07 Colin Watson <cjwatson@ubuntu.com>
5283
5284 * docs/grub.texi (grub_cpu): New subsection.
5285 (grub_platform): Likewise.
5286
c6f1e92f
VS
52872013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5288
5289 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
5290
f797ec85
VS
52912013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5292
5293 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
5294 divisions.
5295
033d0b4b
VS
52962013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5297
5298 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
5299 * grub-core/fs/ntfscomp.c: Likewise.
5300 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
5301 (grub_ntfs_comp): Likewise.
5302
21d1b9a0
VS
53032013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5304
5305 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
5306 Rename to ...
5307 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
5308 of groups_per_block. All users updated.
5309
10ca8645
VS
53102013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5311
5312 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
5313 grub_error properly.
5314 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
5315 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
5316
a4c3ed4c
VS
53172013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5318
5319 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
5320 always in /boot/zfs.
5321 Reported by: Yuta Satoh.
5322
0b716507
YS
53232013-01-03 Yuta Satoh <nigoro>
5324
5325 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
5326 ${grub_probe}
5327
00c05e22
VS
53282013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5329
5330 * configure.ac: Extend -Wno-trampolines to host.
5331
dadddb76
VS
53322013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5333
5334 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
5335 entry->len = 0.
5336
54ce53ca
CW
53372013-01-03 Colin Watson <cjwatson@ubuntu.com>
5338
5339 * docs/grub.texi (Invoking grub-mkrelpath): New section.
5340 (Invoking grub-script-check): Likewise.
5341
8912efca
CW
53422013-01-03 Colin Watson <cjwatson@ubuntu.com>
5343
5344 * docs/grub.texi (Invoking grub-mount): New section.
5345 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
5346
c3fc8394
CW
53472013-01-02 Colin Watson <cjwatson@ubuntu.com>
5348
5349 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
5350 test failures, so that a failing unit test correctly causes 'make
5351 check' to fail.
5352
45d26abb
CW
53532013-01-02 Colin Watson <cjwatson@ubuntu.com>
5354
5355 Fix failing printf test.
5356
5357 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
5358 '$' in the correct order when collecting type information.
5359
971dd2c6
CW
53602013-01-02 Colin Watson <cjwatson@ubuntu.com>
5361
5362 * docs/grub.texi (configfile): Explain environment variable
5363 handling.
5364 (source): New section.
5365 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
5366
5c67ea6c
CW
53672012-12-31 Colin Watson <cjwatson@ubuntu.com>
5368
5369 Remove several trivially-unnecessary uses of nested functions.
5370
5371 * grub-core/commands/i386/pc/sendkey.c
5372 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
5373 instead of nested.
5374 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
5375 Rename to ...
5376 (legacy_file_getline): ... this.
5377 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
5378 Likewise.
5379 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
5380 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
5381 to ...
5382 (probe_dummy_iter): ... this.
5383 * grub-core/kern/i386/coreboot/mmap.c
5384 (grub_linuxbios_table_iterate: check_signature): Likewise.
5385 * grub-core/kern/parser.c (grub_parser_split_cmdline:
5386 check_varstate): Likewise. Mark inline.
5387 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
5388 an additional parameter.
5389 (find_long: fnd_long): Likewise. Pass two additional parameters.
5390 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
5391 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
5392 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
5393 Likewise. Rename to ...
5394 (grub_cmos_find_port_iter): ... this.
5395 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
5396 Rename to ...
5397 (find_rtc_iter): ... this.
5398
5399 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
5400 function directly into the function body, since it is only called
5401 once.
5402
33a68ac6
CW
54032012-12-30 Colin Watson <cjwatson@ubuntu.com>
5404
5405 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
5406 __attribute__ ((unused)).
5407 * grub-core/video/bochs.c (find_card): Likewise.
5408 * grub-core/video/cirrus.c (find_card): Likewise.
5409 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
5410 * grub-core/video/sis315pro.c (find_card): Likewise.
5411 * grub-core/video/sm712.c (find_card): Likewise.
5412
608b647a
CW
54132012-12-28 Colin Watson <cjwatson@ubuntu.com>
5414
5415 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
5416 Fixes Savannah bug #37821.
5417
fd49ceb3
CW
54182012-12-28 Colin Watson <cjwatson@ubuntu.com>
5419
5420 Apply program name transformations at build-time rather than at
5421 run-time. Fixes Debian bug #696465.
5422
5423 * acinclude.m4 (grub_TRANSFORM): New macro.
5424 * configure.ac: Create output variables with transformed names for
5425 most programs.
5426 * util/bash-completion.d/grub-completion.bash.in: Use
5427 pre-transformed variables for program names.
5428 * util/grub-install.in: Likewise.
5429 * util/grub-kbdcomp.in: Likewise.
5430 * util/grub-mkconfig.in: Likewise.
5431 * util/grub-mkconfig_lib.in: Likewise.
5432 * util/grub-mknetdir.in: Likewise.
5433 * util/grub-mkrescue.in: Likewise.
5434 * util/grub-mkstandalone.in: Likewise.
5435 * util/grub-reboot.in: Likewise.
5436 * util/grub-set-default.in: Likewise.
5437 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5438 * tests/util/grub-shell-tester.in: Remove unused assignment.
5439 * tests/util/grub-shell.in: Likewise.
5440 * util/grub.d/00_header.in: Likewise.
5441
7024b3c0
CW
54422012-12-28 Colin Watson <cjwatson@ubuntu.com>
5443
5444 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
5445
5446 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
5447 HAVE_RAW_DECL_GETS.
5448 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
5449
e3501b13
VS
54502012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5451
5452 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
5453 Reported by: Eriks Latosheks <foresterlv>.
5454
b40c88a9
VS
54552012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5456
5457 * docs/grub.texi (Network): Update instructions on generating netboot
5458 image.
5459
ce96d01c
VS
54602012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5461
5462 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
5463 around device name if necessarry.
5464
0f596201
PFS
54652012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5466
5467 * util/grub-install.in: Follow the symbolic link parameter added
5468 to the file command.
5469
600d5bdb
AB
54702012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
5471
5472 * util/grub-install.in: Remove stale TODO.
5473
64ebd2f4
PFS
54742012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5475
5476 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
5477 dynamic allocation for the bootpath buffer.
5478
74b2fe3e
DTB
54792012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
5480
5481 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
5482 window too small.
5483
969b804f
VS
54842012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
5487 argument rather than font name. All users updated.
5488 (grub_gfxterm_set_window): Likewise.
5489
b9f5ebd6
VT
54902012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
5491
5492 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
5493 from working.
5494
258f43b7
VS
54952012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5496
5497 * util/getroot.c (convert_system_partition_to_system_disk): Support
5498 nbd disks.
5499
cc1ce5f9
VS
55002012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
5503 infinite loop on corrupted FS.
5504
e77a16ca
VS
55052012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5506
5507 Fix big-endian mtime.
5508
5509 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
5510 together sec and usec.
5511 (grub_ufs_dir): Use correct byteswapping for UFS time.
5512
d9c48c7b
VS
55132012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5514
5515 Support big-endian UFS1.
5516
5517 * Makefile.util.def (libgrubmods): Add ufs_be.c
5518 * grub-core/Makefile.core.def (ufs1_be): New module.
5519 * grub-core/fs/ufs_be.c: New file.
5520 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
5521 the file.
5522
2f9f40ba
LL
55232012-11-28 Leif Lindholm <leif.lindholm@arm.com>
5524
5525 * include/grub/types.h: Fix functionality unaffecting typo in
5526 GRUB_TARGET_WORDSIZE conditional macro.
5527
48ff0889
PFS
55282012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5529
5530 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
5531
03711240
GS
55322012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5533
5534 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
5535 that /netbsd appears first (when it exists).
5536
a31b11bd
CJ
55372012-10-12 Christoph Junghans <ottxor@gentoo.org>
5538
5539 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
5540 Fixes Savannah bug #37558.
5541
e8a5d5d4
CW
55422012-10-12 Colin Watson <cjwatson@ubuntu.com>
5543
5544 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
5545 description of extract_entries_configfile.
5546
55472012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
5548
5549 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
5550 preferred_address.
5551 (grub_cmd_linux): Likewise.
5552 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
5553 preferred_lifetime. Update all users.
5554
288c757d
CW
55552012-09-26 Colin Watson <cjwatson@ubuntu.com>
5556
5557 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
5558 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
5559
0d35da3f
CW
55602012-09-26 Colin Watson <cjwatson@ubuntu.com>
5561
5562 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
5563 errors from grub-probe to /dev/null, not stdout.
5564
b78c3127
VS
55652012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
5566
5567 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
5568 sector 1.
5569
473959f0
CW
55702012-09-24 Colin Watson <cjwatson@ubuntu.com>
5571
5572 * util/grub-install.in: Make the error message if $source_dir
5573 doesn't exist more useful.
5574
794c8c33
CW
55752012-09-22 Colin Watson <cjwatson@ubuntu.com>
5576
5577 Fix grub-emu build on FreeBSD.
5578
5579 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5580 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5581 headers on Linux.
5582 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5583 implementation is currently Linux-specific.
5584 * util/getroot.c (exec_pipe): Define only on Linux or when either
5585 libzfs or libnvpair is unavailable.
5586 (find_root_devices_from_poolname): Remove unused path variable.
5587
86d08fdb
CW
55882012-09-19 Colin Watson <cjwatson@ubuntu.com>
5589
5590 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5591 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5592 should fit before end == 63.
5593
735abf54
CW
55942012-09-19 Colin Watson <cjwatson@ubuntu.com>
5595
5596 * util/grub-setup.c (write_rootdev): Remove unused core_img
5597 parameter. Update all callers.
5598 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5599 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5600 GRUB_SETUP_BIOS.
5601
140acd3c
VS
56022012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5603
5604 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5605 (grub_add_tab): New function.
5606 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5607 * util/grub.d/10_illumos.in: Likewise.
5608 * util/grub.d/10_kfreebsd.in: Likewise.
5609 * util/grub.d/10_linux.in: Likewise.
5610 * util/grub.d/10_netbsd.in: Likewise.
5611 * util/grub.d/10_windows.in: Likewise.
5612 * util/grub.d/10_xnu.in: Likewise.
5613 * util/grub.d/20_linux_xen.in: Likewise.
5614 * util/grub.d/30_os-prober.in: Likewise.
5615
7ddffdad
VS
56162012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5619 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5620 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5621 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5622 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5623 ieee1275-nocursor.
5624 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5625 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5626
4e092454
VS
56272012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5628
5629 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5630 le-conversion.
5631 Reported by: BURETTE, Bernard.
5632
735abf54 56332012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
5634
5635 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5636 from comment.
5637
dfd39dbd
CW
56382012-09-14 Colin Watson <cjwatson@ubuntu.com>
5639
5640 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5641 IEEE1275 machines. Fixes powerpc-emu compilation.
5642 * include/grub/terminfo.h: Likewise.
5643
3bfa763c
VS
56442012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5645
5646 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5647 a const pointer.
5648 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5649 const pointer.
5650 (efiemu_set_variable): Make vendor_guid a const pointer.
5651
250e475b
VS
56522012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5653
5654 Don't require grub-mkconfig_lib to generate manpages for programs.
5655
5656 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5657 dependencies, don't add grub-mkconfig_lib.
5658 (program): Pass empty adddeps.
5659 (script): Pass grub-mkconfig_lib as adddeps.
5660
592fd0e4
VS
56612012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5662
5663 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5664 * util/getroot.c (grub_find_device): Likewise.
5665 (get_mdadm_uuid): Likewise.
5666 (grub_util_is_imsm): Likewise.
5667 (grub_util_pull_device): Likewise.
5668 * util/grub-probe.c (probe): Likewise.
5669
801a3027
BG
56702012-09-10 Benoit Gschwind <gschwind>
5671
5672 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5673 (devs): Add devpath_8.
5674
c5052c81
PJ
56752012-09-08 Peter Jones <pjones@redhat.com>
5676
5677 * grub-core/Makefile.core.def (efifwsetup): New module.
5678 * grub-core/commands/efi/efifwsetup.c: New file.
5679 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5680 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5681 New define.
5682 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5683
8e832f71
JS
56842012-09-05 Jiri Slaby <jslaby@suse.cz>
5685
5686 * configure.ac: Add SuSe path.
5687
f0f55752
CW
56882012-09-05 Colin Watson <cjwatson@ubuntu.com>
5689
5690 * NEWS: Fix typo.
5691
ecadc4c2
CW
56922012-09-05 Colin Watson <cjwatson@ubuntu.com>
5693
5694 * util/import_gcry.py: Sort cipher_files, to make build system
5695 generation more deterministic.
5696
64498f25
VS
56972012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5698
5699 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5700 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5701 (grub_set_datetime): Likewise.
5702
9cc836a2
VS
57032012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5704
5705 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5706 warnings.
5707
bcfcea01
VS
57082012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5711
a4099485
VS
57122012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5713
5714 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5715
265c162a
CW
57162012-09-04 Colin Watson <cjwatson@ubuntu.com>
5717
5718 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5719 required for checkouts from bzr, but it may be useful for users or
5720 distributors wishing to update translations against a tarball
5721 distribution, and it can be helpful for the tarball to be a superset
5722 of what's in bzr.
5723
3d171e95
CW
57242012-09-04 Colin Watson <cjwatson@ubuntu.com>
5725
5726 * Makefile.am (EXTRA_DIST): Add
5727 grub-core/tests/boot/linux.init-mips.S,
5728 grub-core/tests/boot/linux.init-ppc.S, and
5729 grub-core/tests/boot/linux-ppc.cfg.
5730
f2c2503e
CW
57312012-09-04 Colin Watson <cjwatson@ubuntu.com>
5732
5733 * grub-core/mmap/mips/loongson: Remove empty directory.
5734
57352012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
5736
5737 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5738 gone.
5739
ab2163d5
CW
57402012-09-04 Colin Watson <cjwatson@ubuntu.com>
5741
5742 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5743 grub-sparc64-setup.
5744
ce938140
GS
57452012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5746
5747 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5748
529f58a5
GS
57492012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5750
5751 * po/POTFILES.in: Regenerated.
5752
16cf79e9
GS
57532012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5754
5755 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5756 (NetBSD): New subsection.
5757
39b27f1e 57582012-07-22 Ales Nesrsta <starous@volny.cz>
5759
5760 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5761 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5762
a885261b
VS
57632012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5764
5765 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5766 * util/grub.d/10_hurd.in: Add missing quoting.
5767 * util/grub.d/10_illumos.in: Likewise.
5768 * util/grub.d/10_kfreebsd.in: Likewise.
5769 * util/grub.d/10_linux.in: Likewise.
5770 * util/grub.d/20_linux_xen.in: Likewise.
5771
7bd29c01
VS
57722012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5773
5774 New command `lsefi'.
5775
5776 * grub-core/Makefile.core.def (lsefi): New module.
5777 * grub-core/commands/efi/lsefi.c: New file.
5778 * include/grub/efi/api.h: Add more GUIDs.
5779
ac625d8f
VS
57802012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5781
5782 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5783 (grub_bsd_elf32_hook): Likewise.
5784 (grub_bsd_elf64_size_hook): Likewise.
5785 (grub_bsd_elf64_hook): Likewise.
5786 (grub_bsd_load_elf): Likewise.
5787
e73bb801
VS
57882012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5789
5790 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
5791 if hash function is unavailable.
5792 (dec_stream_header): Likewise.
5793
e81db8b5
VS
57942012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
5797 filter state.
5798
d187a1c3
VS
57992012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5800
5801 Fix coreboot compilation.
5802
5803 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
5804 (grub_vga_text_init_real): ... this.
5805 (grub_vga_text_fini): Rename to ...
5806 (grub_vga_text_fini_real): ... this.
5807
91a05f64
VS
58082012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5809
5810 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
5811
6af96df7
VS
58122012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 * grub-core/lib/legacy_parse.c: Support clear and testload.
5815
4d569e12
VS
58162012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5817
5818 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
5819
073b57bb
VS
58202012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5821
5822 * grub-core/fs/ext2.c: Experimental support for 64-bit.
5823
a706f4cc
VS
58242012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5825
5826 * grub-core/net/tftp.c (ack): Fix endianness problem.
5827 (tftp_receive): Likewise.
5828 Reported by: Michael Davidsaver.
5829
e7850aa9
VS
58302012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 * gentpl.py: Make mans depend on grub-mkconfig_lib.
5833
58342012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5835
5836 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
5837 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
5838 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
5839
35692881
VS
58402012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5841
5842 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
5843 efi_mmap_size.
5844 Reported by: Stuart Hayes.
5845
c35fc5bd
VS
58462012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5847
5848 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
5849
5850 * grub-core/Makefile.core.def (mda_text): New module.
5851 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5852 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5853 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5854 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5855 here.
5856 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5857 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5858 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5859 here.
5860 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5861 to ..
5862 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5863 ... here
5864 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5865 here.
5866 * grub-core/term/i386/vga_common.c: Removed.
5867 * include/grub/i386/vga_common.h: Likewise.
5868 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5869 (grub_vga_cr_bw_read): Likewise.
5870 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5871 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5872 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5873 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5874 grub_vga_cr_read/grub_vga_cr_write.
5875 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5876
5f91f701
VS
58772012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * configure.ac: Bump version to 2.00.
5880 * grub-core/normal/main.c (features): Add feature_200_final.
5881
0c4f85f6
VS
58822012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
58832012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5884
5885 * NEWS: Fix unclarity and language mistakes.
5886
f923ad22
VS
58872012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5890 additional size to 3 pages.
5891 Reported by: Stuart Hayes.
5892
d22029ba
VS
58932012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5894
5895 * NEWS: Add 2.00 entry.
5896
58eee08f
VS
58972012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5898
5899 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5900 put explicit "/" for empty path.
5901 (wildcard_expand): Improve dprintf.
5902
c59bdff7
VS
59032012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5906 it's equal to currnode. This can happen with "" symlink.
5907
5e6a440a
YB
59082012-06-27 Yves Blusseau <blusseau@zetam.org>
5909
5910 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5911 echo shell command by printf command.
5912
73a68bcb
VS
59132012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5914
5915 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5916 the value returned by firmware is the maximal position, not diumension.
5917 (grub_terminfo_output_state): Use a more sane fallback.
5918
392a603b
VS
59192012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5922
42d0867f
VS
59232012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5926 frequency to 150 MHz.
5927
489509f4
VS
59282012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5929
5930 Apple fixes.
5931
5932 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5933 __APPLE_
5934 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5935 definition.
5936 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5937
9f3fc883
VS
59382012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5939
5940 Handle slash in HFS label.
5941
5942 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5943 (grub_hfs_dir): Tanslate slash.
5944 (grub_hfs_label): Don't translate slash.
5945
54853fd7
VS
59462012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5947
5948 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5949 network protocol listing since it introduces problematic dependency on
5950 net module.
5951
4dc02ddf
VS
59522012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5953
5954 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5955
c50c867d
VS
59562012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5957
5958 Init video early on yeeloong to avoid being rebooted by watchdog.
5959
5960 * grub-core/Makefile.am (gensm712): New target.
5961 (sm712_start.S): Likewise.
5962 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5963 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5964 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5965 description.
5966 * include/grub/vga.h: Move registry definitions to...
5967 * include/grub/vgaregs.h: ... here.
5968
5f92c8a1
VS
59692012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5972 signedness.
5973
e9e6f111
VS
59742012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5975
5976 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5977 platforms with firmware disk drivers in the core.
5978
754ad9eb
VS
59792012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5980
5981 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5982 informative verbose message.
5983 (read_lv): Handle 64-bit segment size.
5984
315654c2
VS
59852012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5986
5987 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5988
fb022c79
VS
59892012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5990
5991 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5992 character but still remove trainling spaces.
5993 (grub_fat_label): Ignore archive flag.
5994
8645f72c
VS
59952012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5998 cast between linux_kernel_header and linux_kernel_params.
5999
36498496
VS
60002012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6001
6002 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
6003 type for size.
6004 (grub_raid6_recover_func_t): Likewise.
6005 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
6006 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
6007
0b5ea6b8
VS
60082012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
6009
6010 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
6011
650cfcfe
GS
60122012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
6013
6014 Fix overflow.
6015
6016 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
6017 [__NetBSD__]: Add explicit cast before bitshift.
6018
8a4d6a44
VS
60192012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6020
6021 * configure.ac: Bump to 2.00~rc1.
6022
2fb97ed3
VS
60232012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
6026 half of $a0.
6027
1fa097dc
VS
60282012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
60292012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
6030
6031 * docs/grub.texi: Fix search syntax.
6032 (Multi-boot manual config): Put msdos rather than GPT example.
6033 Grammar corrections.
6034
c890ba78
VS
60352012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
6036
6037 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
6038
0f92dca7
VS
60392012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6040
6041 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
6042
3988c4a0
VS
60432012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6044
6045 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
6046 message on double free. Put the value of magic in case of mismatch.
6047
9e86d4c5
VS
60482012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6049
6050 Speed-up video on yeeloong.
6051
6052 * grub-core/video/sm712.c (framebuffer): Remove render_target and
6053 add cached_ptr.
6054 (grub_video_sm712_video_fini): Unmap cached_ptr.
6055 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
6056 (grub_video_sm712_set_active_render_target): Removed.
6057 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
6058 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
6059 sync caches.
6060
ed24c312
VS
60612012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6062
6063 Avoid flushing the same line multiple times on loongson.
6064
6065 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
6066 Step in 32 bytes and not 1 byte.
6067 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
6068 Likewise.
6069
d1718e7d
VS
60702012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
6073 subvolumes.
6074
982f1909
VS
60752012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6076
6077 Implement flow control for http.
6078
6079 * grub-core/net/http.c (parse_line): Handle response 206.
6080 (http_receive): Stall if too many packets are in the queue.
6081 (http_establish): Fix range header.
6082 (http_seek): Fix double free.
6083 (http_close): Likewise.
6084 (http_packets_pulled): New function.
6085 (grub_http_protocol): Set http_seek
6086 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
6087 (ack_real): Set window depending on i_stall.
6088 (grub_net_send_tcp_packet): Likewise.
6089 (grub_net_tcp_stall): New function.
6090 (grub_net_tcp_unstall): Likewise.
6091 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
6092 (grub_net_tcp_unstall): Likewise.
6093
bd407d6e
VS
60942012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6095
6096 * grub-core/net/tftp.c: Decrease stall to 50 packets.
6097
c7564b8e
VS
60982012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6099
6100 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
6101
a3706162
VS
61022012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 * tests/util/grub-shell.in: Fix a typo.
6105
b27069e0
VS
61062012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6107
6108 Implement flow control for tftp.
6109
6110 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
6111 packets but stop only if stop condition is satisfied.
6112 (grub_net_fs_read_real): Call packets_pulled after real read. Use
6113 `stall' instead of `eof' as stop condition.
6114 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
6115 (http_err): Likewise.
6116 * grub-core/net/tftp.c (ack): Replace the first argument with data
6117 instead of socket.
6118 (tftp_receive): Stall if too many packets are in wait queue.
6119 (tftp_packets_pulled): New function.
6120 (grub_tftp_protocol): Set packets_pulled.
6121 * include/grub/net.h (grub_net_packets): New field count.
6122 (grub_net_put_packet): Increment count.
6123 (grub_net_remove_packet): Likewise.
6124 (grub_net_app_protocol): New field `packets_pulled'.
6125 (grub_net): New field `stall'.
6126
6b9cfac6
VS
61272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6128
6129 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
6130 sync part to handle them.
6131
f35abd81
VS
61322012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6133
6134 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
6135 * grub-core/net/drivers/ieee1275/ofnet.c
6136 (grub_ieee1275_net_config_real): Likewise.
6137
0e7ec820
VS
61382012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6139
6140 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
6141 the direct route for server/gateway.
6142
9d611a31
VS
61432012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6144
6145 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
6146 IP address to server name since we may not hame the DNS.
6147
418f45ab
VS
61482012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6149
6150 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
6151 freeing random buffer on failure.
6152 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
6153
44a0efc1
VS
61542012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
6157
531e2241
VS
61582012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6159
6160 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
6161 reserved bytes.
6162 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
6163 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
6164 Handle malloc error correctly.
6165
cde393c9
VS
61662012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6167
6168 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
6169 blocks.
6170
538478d0
VS
61712012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6172
6173 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
6174 increment.
6175
9b55efe0
VS
61762012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6177
6178 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
6179 none is explicitly specified.
6180
9eb832c3
VS
61812012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6182
6183 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
6184 while reallocating.
6185
d6b7c7c9
VS
61862012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6187
6188 Respect netmask from bootp/dhcp.
6189
6190 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
6191 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
6192 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
6193 into ...
6194 (grub_net_add_ipv4_local): ... this.
6195 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
6196 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
6197 (grub_net_add_ipv4_local): New proto.
6198
67caf9eb
VS
61992012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6200
6201 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
6202 determining EFI memory map size.
6203
43657558
VS
62042012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6205
6206 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
6207
eb6d0dd3
VS
62082012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6209
6210 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
6211 when looking for partition separator.
6212
31230544
VS
62132012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6214
6215 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6216 Escape commas.
6217
918a2517
VS
62182012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6219
6220 Restructure FAT driver to avoid hook in label reading as it hits a
6221 GCC bug.
6222
6223 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
6224 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
6225 (grub_fat_iterate_dir): Split into ...
6226 (grub_fat_iterate_init): ... this, ...
6227 (grub_fat_iterate_fini): ... this, ...
6228 (grub_fat_iterate_dir_next): ... and this. All users updated.
6229
9f1d654e
VS
62302012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6231
6232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6233 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
6234 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6235 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
6236 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
6237 New fields last_key and last_key_time.
6238 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
6239 extended key-esc into extended key-extended key.
6240
52f0f643
VS
62412012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6242
6243 Avoid unnecessary memcpy of whole video buffer.
6244
6245 * grub-core/video/fb/video_fb.c (dirty): New struct.
6246 (framebuffer): Add members current_dirty and previous_dirty.
6247 (dirty): New function.
6248 (grub_video_fb_fill_rect): Update dirty.
6249 (common_blitter): Likewise.
6250 (grub_video_fb_scroll): Likewise.
6251 (doublebuf_blit_update_screen): Copy only dirty part.
6252 (doublebuf_pageflipping_update_screen): Likewise.
6253 (grub_video_fb_doublebuf_blit_init): Init dirty.
6254 (doublebuf_pageflipping_init): Likewise.
6255 (grub_video_fb_setup): Likewise.
6256
e169a180
VS
62572012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6258
6259 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
6260 poll rate.
6261
48556879
VS
62622012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 Fix wildcard regexp dot and other special characters handling.
6265 Reported by: Robert Mabee.
6266
6267 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
6268 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
6269 (split_path): Trigger expansion on '?'.
6270 (unescape): New function.
6271 (wildcard_expand): Unescape parts copied without globbing.
6272 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
6273 (grub_script_arglist_to_argv): Don't unescape expansions.
6274
0494408e
VS
62752012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6276
6277 * include/grub/net.h (grub_net_card): New member txbufsize.
6278 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
6279 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6280 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
6281 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
6282 txbufsize.
6283 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
6284 compatible property to check for macs. Set
6285 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6286 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
6287 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
6288 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
6289 (send_card_buffer): Use txbuf.
6290 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
6291 nested function out of the parent while on it.
6292
cc35fe8f
VS
62932012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
6296 presence check.
6297 (grub_ieee1275_net_config_real): Fix config pointer.
6298
970a0a09
VS
62992012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6300
6301 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
6302 filename parsing to non-block devices.
6303
3e19bf87
VS
63042012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6305
6306 * grub-core/kern/device.c (grub_device_open): Remove dead code.
6307
c62d1a0c
VS
63082012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6309
6310 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
6311 All users updated.
6312
ef76bec3
VS
63132012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6314
6315 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
6316 UUID search command even if hints probing failed.
6317
63182012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
6319
6320 * po/POTFILES.in: Regenerated.
6321
70aaf305
VS
63222012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 Speed-up video on fuloong.
6325
6326 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
6327 New function.
6328 (grub_pci_device_unmap_range): Handle non-cached address.
6329 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
6330 add direct_ptr.
6331 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
6332 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
6333 (grub_video_sis315pro_set_active_render_target): Removed.
6334 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
6335 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
6336 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
6337 sync caches.
6338 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
6339 New proto.
6340
10400f0b
VS
63412012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6342
6343 * docs/grub.texi (Multi-boot manual config): New section.
6344
ba67e2c6
VS
63452012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6346
6347 Avoid slow read-back from VRAM.
6348
6349 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
6350 Move from here ...
6351 * grub-core/video/fb/video_fb.c
6352 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
6353 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
6354 (front_target): Remove front_target. Add pages.
6355 (grub_video_fb_init): Skip setting front_pages.
6356 (grub_video_fb_fini): Likewise.
6357 (doublebuf_blit_update_screen): Use pages.
6358 (grub_video_fb_doublebuf_blit_init): Likewise.
6359 (doublebuf_pageflipping_init): Allocate offscreen buffer.
6360 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
6361 (grub_video_fb_setup): Prefer doublebuffing.
6362
377c98cb
VS
63632012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6364
6365 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
6366 gzio.
6367
eac49cff
VS
63682012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6369
6370 Add loongson tests.
6371
6372 * tests/util/grub-shell.in: Handle loongson.
6373 * tests/partmap_test.in: Add loongson to the list of platform using ATA
6374 drivers.
6375 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
6376 Reboot instead of shutdown if REBOOT is defined.
6377
0321415e
VS
63782012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6379
6380 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
6381 sized ports since unlike on real hardware qemu supports only 32-bit
6382 regs.
6383
3f2bdd8f
VS
63842012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * Makefile.util.def (grub-mkrescue): Enable on loongson.
6387 * util/grub-mkrescue.in: Handle loongson.
6388
29a049c9
VS
63892012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
6392 Set is_part appropriately.
6393 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
6394 names. Canonicalize partition without full disk.
6395
4abde346
VS
63962012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6397
6398 Revert usb-quiesce since it's wrong.
6399
6400 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
6401 (grub_ofdisk_init): Don't do quiesce.
6402
61f1d93b
VS
64032012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6404
6405 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
6406 PowerMac workaround to Xserves as well.
6407 Information supplied by: Benjamin Herrenschmidt.
6408
a09eb541
VS
64092012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6410
6411 Don't assume that beginning address is also the entry point on ppc.
6412
6413 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
6414 (grub_linux_boot): Use linux_entry.
6415 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
6416 (grub_linux_load64): Likewise.
6417
505b3c9b
VS
64182012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6419
6420 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
6421
cbe0b4ef
VS
64222012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
6425 needlessly lose the console.
6426
3006e981
VS
64272012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6428
6429 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
6430 space.
6431
4e5a96b0
VS
64322012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6433
7da036bb
VS
6434 Remove non-functional EFI grub_get_rtc. Put a better fatal message
6435 than current grub_get_rtc() not implemented when booted with
6436 coreboot without TSC.
6437
6438 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
6439 Add machine/time.h to kernel headers on loongson.
6440 * grub-core/Makefile.core.def (kernel): Remove
6441 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
6442 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
6443 (grub_get_rtc): Likewise.
6444 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
6445 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
6446 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
6447 * grub-core/kern/i386/tsc.c (grub_tsc_init)
6448 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
6449 rather than installing known non-working time source.
6450 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
6451 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
6452 * include/grub/time.h: Don't include machine/time.h.
6453 * include/grub/efi/time.h: Removed.
6454 * include/grub/i386/efi/time.h: Likewise.
6455 * include/grub/i386/ieee1275/time.h: Likewise.
6456 * include/grub/powerpc/ieee1275/time.h: Likewise.
6457 * include/grub/sparc64/ieee1275/time.h: Likewise.
6458 * include/grub/x86_64/efi/time.h: Likewise.
6459
64602012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6461
6462 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
6463
6464 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
6465 value.
6466 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
6467 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
6468 with dotless variants when any combining above is present.
6469
5561c22d
VS
64702012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6471
6472 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
6473 text and not binary.
6474
96f7e60e
VS
64752012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6476
6477 Stop polling as soon as we have the packet we were waiting for.
6478
6479 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
6480 All users updated.
6481 * grub-core/net/arp.c (have_pending): New var.
6482 (pending_req): Likewise.
6483 (grub_net_arp_send_request): Fill pending_req and use have_pending as
6484 stop indicator.
6485 (grub_net_arp_receive): Set have_pending.
6486 * grub-core/net/dns.c (recv_data): New field stop.
6487 (recv_hook): Set stop.
6488 (grub_net_dns_lookup): Init stop and use as stop condition.
6489 * grub-core/net/http.c (http_establish): Use headers_recv as stop
6490 condition.
6491 * grub-core/net/net.c (grub_net_poll_cards): New argument
6492 stop_condition. Stop when it goes true.
6493 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
6494 indicator.
6495 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
6496
3e747239
VS
64972012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6498
6499 Keep TX and RX buffers on EFI rather than always allocate new ones.
6500
6501 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
6502 card. All users updated.
6503 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
6504 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
6505 (get_card_packet): Likewise.
6506 (grub_efinet_findcards): Init new fields.
6507
f695e99a
VS
65082012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6509
6510 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
6511 compilation error on sparc64.
6512
9e5e66d1
VS
65132012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6514
6515 Use ITC on IA64 rather than broken routine based on daytime.
6516
6517 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
6518 ia64.
6519 (grub_get_rtc) [__ia64__]: Likewise.
6520 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
6521 (get_itc): New function.
6522 (grub_rtc_get_time_ms): Likewise.
6523 (grub_machine_init): Calibrate ITC.
6524 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
6525 Keep only on non-ia64. Don't export since it's broken and used only
6526 if TSC is unavailable.
6527
a1767404
VS
65282012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6529
6530 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
6531 even if it's used.
6532 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
6533 Skip if parent is unused.
6534
34b2bced
VS
65352012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6536
6537 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
6538
5e619f40
VS
65392012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 Fix wildcard escaping.
6542
6543 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
6544 * grub-core/script/execute.c (wildcard_escape): .. to here.
6545 Don't escape dot.
6546 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
6547 * grub-core/script/execute.c (wildcard_unescape): .. to here.
6548 Don't escape dot.
6549 * grub-core/script/execute.c (gettext_append): Always escape.
6550 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
6551 * grub-core/script/yylex.l: Don't cut away the escaping.
6552 * tests/grub_script_echo1.in: Add tests with wildcard.
6553
c8ca5855
VS
65542012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
6557 (ftdi_hw_configure): Likewise.
6558 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
6559 define.
6560 (real_config): Handle 1.5 stop bits.
6561 (pl2303_hw_configure): Likewise.
6562
7183452c
VS
65632012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6564
6565 * Makefile.am: Add ppc linux bootcheck.
6566 * grub-core/tests/boot/linux-ppc.cfg: New file.
6567 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
6568
f57c84cd
VS
65692012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6570
6571 * tests/grub_script_expansion.in: Skip network protocols.
6572
ecfc6207
VS
65732012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6574
6575 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6576
8d03d284
VS
65772012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6578
6579 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6580 --rom-directory.
6581 Add -graft-points.
6582
61c42af0
VS
65832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6584
6585 ESCC serial driver for conducting sautomated tests in qemu.
6586 Not tested on real hardware.
6587
6588 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6589 * grub-core/term/ieee1275/escc.c: New file.
6590 * grub-core/Makefile.core.def (escc): New module.
6591
08fd1291
VS
65922012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6595 invalid on error.
6596 (serial_hw_fetch): Don't read invalid handle.
6597 (serial_hw_put): Don't write into invalid handle.
6598
08dafeea
VS
65992012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6600
6601 Add a 1.5 stop bits value.
6602
6603 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6604 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6605 GRUB_SERIAL_STOP_BITS_1_5.
6606
9068fdcf
VS
66072012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6608
6609 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6610 value rather than let it uninited.
6611
f4d5820f
VS
66122012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6613
6614 * grub-core/commands/wildcard.c (+check_file): New function.
6615 (wildcard_expand): Don't expand to non-existing files, expand with
6616 suffix and not attempt to expand if not needed.
6617
3d2de9a7
VS
66182012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6619
6620 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6621 out of partitions containing other partitions.
6622
c5c81ff9
VS
66232012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6626 on some qemu versions with GRUB.
6627
6628 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6629 define.
6630 (grub_openbsd_bootarg_pcibios): New struct.
6631 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6632 Add PCIINFO.
6633
08a14e0b
VS
66342012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6635
6636 * tests/util/grub-shell.in: Trim firmware output on EFI.
6637
cede3ca3
VS
66382012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6639
6640 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6641 and coreboot since it's already in kernel.
6642
558d3a60
VS
66432012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6644
6645 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6646 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6647 to here. New return value start. All users updated.
6648 Recursively scan linear mappings.
6649 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6650 proto.
6651 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6652 Use grub_util_get_dm_node_linear_info.
6653 * util/getroot.c (convert_system_partition_to_system_disk): Use
6654 grub_util_info rather than grub_dprintf.
6655 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6656
60fde14d
VS
66572012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6658
6659 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6660
6661 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6662 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6663
24bd8838
VS
66642012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6665
6666 * include/grub/types.h (grub_set_unaligned64): New function.
6667 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6668 (setup): Likewise.
6669
7bc06a49
VS
66702012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6673 (grub_ofdisk_fini): Quiesce USB devices.
6674
49cea015
VS
66752012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6676
6677 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6678 caches.
6679
8dcbe03b
VS
66802012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6683
5b258735
VS
66842012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 * grub-core/disk/pata.c (grub_pata_pio_read)
6687 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6688 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6689
37ba07eb
VS
66902012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6691
6692 Extend automated tests to qemu-mips.
6693
6694 * Makefile.am: reorganise tests and enable qemu-mips.
6695 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6696 * grub-core/tests/boot/linux.init-mips.S: New file.
6697 * tests/partmap_test.in: Handle ata0 disks.
6698 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6699 non-pc i386.
6700
070038f8
VS
67012012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6702
6703 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6704 ia64.
6705 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6706 quotes while on it.
6707
004be2cd
VS
67082012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6709
6710 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6711 (grub_halt): Likewise.
6712 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6713
b1622487
VS
67142012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6715
6716 * grub-core/term/serial.c (grub_serial_register)
6717 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6718 the behaviour in line with x86 platforms.
6719
b7b4ab33
VS
67202012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6723 (grub_ata_strncpy): Likewise.
6724 (grub_ata_identify): Add missing byteswaps.
6725
5e3535ae
VS
67262012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6727
6728 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6729 byte-swap.
6730 (screen_read_char): Likewise.
6731 (grub_vga_text_cls): Likewise.
6732
c21b17e6
VS
67332012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6736 filenames.
6737 (make_file_path): Likewise.
6738
bf293dec
VS
67392012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6740
6741 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6742 machines.
6743 Tested by: Paulo Flabiano Smorigo.
6744 Crucial information about API supplied by: Coleen <Last name unknown>.
6745 Reviewed by: Coleen <Last name unknown>.
6746
81f6ef0e
VS
67472012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6748
6749 * util/grub-mkimage.c: Disable -Wcast-align.
6750
7284143a
VS
67512012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6752
6753 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6754 as they are fatal.
6755
b99f3e00
VS
67562012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6757
6758 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6759
944f752d
VS
67602012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6761
6762 * util/grub-probe.c (escape_of_path): Fix double free.
6763
6cce6f38
VS
67642012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6765
6766 * grub-core/commands/videoinfo.c (hook): Show pitch.
6767
1e1eb50e
VS
67682012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6769
6770 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6771
1c715b5a
VS
67722012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6773
6774 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6775 (probe): Add ieee1275 to OFW devices.
6776
007ae52d
VS
67772012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6780
4557a36d
VS
67812012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6782
6783 Handle IBM OFW path.
6784
6785 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
6786 available.
6787 (of_path_of_scsi): Handle vdevice.
6788
efbeefe9
VS
67892012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6790
6791 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
6792 Allocate in multiples of 16 to avoid adding a few bytes free region the
6793 windows bugs upon.
6794
15a940bb
VS
67952012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
6798 Allocate in multiples of 16 to avoid adding a few bytes free region the
6799 windows bugs upon.
6800 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
6801
6e5efd60
VS
68022012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6803
6804 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
6805 resolutions.
6806 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
6807 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
6808
0d3d137e
IS
68092012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
6810
6811 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
6812
45dbe300
VS
68132012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6814
6815 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
6816 resulted in \\ at the end of the line.
6817
6d8db947
VS
68182012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6819
6820 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
6821 (grub_parser_cmdline_state): Likewise.
6822 (grub_parser_split_cmdline): Likewise.
6823
de89d338
VS
68242012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6825
6826 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
6827 /dev/root and /dev/dm-*.
6828
00d41dee
VS
68292012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6830
6831 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
6832 fix partially stale display.
6833
f95d1f11
VS
68342012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6835
6836 * grub-core/normal/menu_entry.c (backward_char): Use right line for
6837 substraction.
6838
6297e197
VS
68392012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6840
6841 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
6842 Fix MBR remapping workaround.
6843 (grub_util_biosdisk_read) [__linux__]: Likewise.
6844
8a7ecad3
VS
68452012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
6846
6847 * util/grub-install.in: Check for ieee1275 and not ieee1276.
6848
2b34f944
VS
68492012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * configure.ac: Bump to beta6.
6852
684aef11
CW
68532012-05-31 Christer Weinigel <christer@weinigel.se>
6854
6855 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6856
05b0bb91
VS
68572012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6858
6859 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6860 (grub_cmd_linux): Likewise.
6861
bda36bfa
CW
68622012-05-31 Christer Weinigel <christer@weinigel.se>
6863
6864 Fix EHCI low-speed.
6865
6866 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6867 (GRUB_EHCI_MULT_TWO): Likewise.
6868 (GRUB_EHCI_MULT_THREE): Likewise.
6869 (GRUB_EHCI_CMASK_MASK): New enum value.
6870 (GRUB_EHCI_SMASK_MASK): Likewise.
6871 (GRUB_EHCI_CMASK_OFF): Likewise.
6872 (GRUB_EHCI_SMASK_OFF): Likewise.
6873 (grub_ehci_pci_iter): Enable periodic schedule.
6874 (grub_ehci_parse_notrun): Likewise.
6875 (grub_ehci_restore_hw): Likewise.
6876 (grub_ehci_setup_qh): Set flags for low speed transfers.
6877 (grub_ehci_find_qh): Use periodic list for low speed.
6878 (grub_ehci_setup_transfer): Check periodic queue as well.
6879 (grub_ehci_check_transfer): Likewise.
6880 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6881
e12bcb1c
PFS
68822012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6883
6884 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6885 parameter is used.
6886
bcc75fb3
PJ
68872012-05-31 Peter Jones <pjones@redhat.com>
6888
6889 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6890 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6891 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6892
f19cb95e
VS
68932012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6896 uninited variable. Allocate at least setup_sects.
6897
a4e5ca80
VS
68982012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6899
6900 Fix handling of EFI with big memory maps.
6901
6902 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6903 (real_mode_mem): Likewise.
6904 (real_mode_target): Likewise.
6905 (real_mode_pages): Likewise.
6906 (prot_mode_pages): Likewise.
6907 (linux_params): New var.
6908 (linux_cmdline): Likewise.
6909 (free_pages): Don't set real mode variables.
6910 (allocate_pages): Don't allocate real mode memory.
6911 (grub_e820_add_region): Remove the limit.
6912 (grub_linux_boot): Allocate and copy real mode memory.
6913 (grub_linux_unload): Free linux_cmdline.
6914 (grub_cmd_linux): Use temporary storage for parameters.
6915 (grub_cmd_initrd): Likewise.
6916 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6917 (linux_kernel_params): Make it 1K big.
6918
ddb73558
VS
69192012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6920
6921 * Makefile.util.def: Remove -Wno-format.
6922 * grub-core/Makefile.core.def: Likewise.
6923
1c4afb60
VS
69242012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6925
6926 * tests/cmp_unit_test.c: Add missing failure message.
6927 * tests/example_unit_test.c: Likewise.
6928 * tests/printf_unit_test.c: Likewise.
6929
941e3a6d
VS
69302012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6931
6932 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6933 relaxation of protective MBR requirements.
6934
b105df76
VS
69352012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6936
6937 * configure.ac: Add condition for COND_HOST_XNU.
6938 * Makefile.util.def (10_xnu): New script.
6939 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6940
84e1569e
VS
69412012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6942
6943 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6944 objconv bug.
6945
130c0f77
VS
69462012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6947
6948 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6949 Binary on other platforms stays identical.
6950
6fd0b143
VS
69512012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6952
6953 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6954 Apple.
6955
0af1751d
VS
69562012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6957
6958 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6959
176d5f7d
VS
69602012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6961
6962 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6963 rather than defining size_t ourselves to avoid conflict.
6964
7de5e20a
VS
69652012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6966
6967 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6968 initialisation to avoid __bzero reference.
6969
f7143efe
VS
69702012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6971
6972 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6973 version.
6974 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6975 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6976 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6977 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6978 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6979
e6ad0555
VS
69802012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6981
6982 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6983 * grub-core/kern/misc.c: Likewise.
6984 * grub-core/loader/i386/xnu.c: Likewise.
6985 * include/grub/i386/tsc.h: Likewise.
6986 * include/grub/symbol.h: Likewise.
6987
4a5a3c4a
VS
69882012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6989
6990 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6991 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6992 on older compiler.
6993
037f6d90
VS
69942012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6995
6996 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6997 Implement Apple flavour.
6998 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6999
f7194551
VS
70002012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
7003 (memmove) [__APPLE__]: Likewise.
7004 (memcpy) [__APPLE__]: Likewise.
7005 (memset) [__APPLE__]: Likewise.
7006 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
7007 (memmove) [__APPLE__]: Likewise.
7008 (memcpy) [__APPLE__]: Likewise.
7009 (memset) [__APPLE__]: Likewise.
7010
85a730ca
VS
70112012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
7012
7013 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
7014 dependency discard.
7015
40e80b94
VS
70162012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7017
7018 * grub-core/normal/main.c (read_config_file): Provide config_file and
7019 config_directory.
7020 * util/grub.d/41_custom.in: Use config_directoy when available.
7021
9da59c32
VS
70222012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7023
7024 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
7025 (grub_bfs_dir): Likewise.
7026
2787ae53
PJ
70272012-05-27 Peter Jones <pjones@redhat.com>
7028
7029 The old code gives arguments to a printf function which can't work
7030 correctly, and the compiler complains.
7031
7032 * grub-core/tests/example_functional_test.c (example_test): Add
7033 missing text.
7034 * grub-core/tests/lib/test.c (add_failure): Rewrite.
7035 * include/grub/test.h (grub_test_assert_helper): New declaration.
7036 (grub_test_assert): Use grub_test_assert_helper.
7037
526ef13d
VS
70382012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7039
7040 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
7041 (exfctest): ... this to avoid overlong filenames.
7042 All users updated.
7043
20dd511c
VS
70442012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7045
7046 Handle "." and ".." on squashfs.
7047
7048 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
7049 Make inode numbers into stack.
7050 (grub_squash_read_symlink): Use stack.
7051 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
7052 (make_root_node): Fill stack.
7053 (grub_squash_open): Use stack.
7054
1d80c62a
VS
70552012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7056
7057 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
7058 freeing.
7059
d336f652
VS
70602012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7061
7062 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
7063 stderr on test calls.
7064
8b43f587
VS
70652012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7066
7067 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
7068
80a3dc3f
VS
70692012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
7072
47e297d4
VS
70732012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7074
7075 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
7076 "..".
7077
df042ccb
VS
70782012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7079
7080 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
7081 (grub_hfsplus_iterate_dir): Add "." and "..".
7082
fc977f48
VS
70832012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7084
7085 * grub-core/fs/cpio.c (canonicalize): Handle "..".
7086 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
7087
f3250e5f
VS
70882012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7089
7090 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
7091 (find_path): Handle "." and "..".
7092
fd8ed4c5
VS
70932012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
7094
7095 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
7096 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
7097 (grub_affs_iterate_dir): Handle hardlinks.
7098
4ce776d2
MG
70992012-05-26 Matthew Garrett <mjg@redhat.com>
7100
7101 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
7102 (grub_efi_console_fini): Likewise.
7103 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
7104 (grub_video_gop_fill_mode_info): Rename to ...
7105 (grub_video_gop_fill_real_mode_info): ... this.
7106 (grub_video_gop_fill_mode_info): New function.
7107 (grub_video_gop_setup): Setup double framebuffer.
7108 (grub_video_gop_get_info_and_fini): Use original framebuffer.
7109 Free offscreen.
7110 (grub_video_gop_swap_buffers): Copy framebuffer.
7111 (grub_video_gop_fini): Free offscreen buffer.
7112 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
7113 New enum.
7114 (grub_efi_gop_blt_pixel): New struct.
7115
683031ba
VS
71162012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 * gentpl.py: Remove error disabling for objconv.
7119
c2deb798
VS
71202012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7121
7122 * configure.ac: Remove -Wunitialized as it's not available on older
7123 compilers.
7124
71252012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
7126
7127 Fix extent overflow comparator.
7128
7129 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
7130 (grub_hfsplus_read_block): Set type.
7131 (grub_hfsplus_cmp_extkey): Compare type.
7132
d6b1fd36
VS
71332012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
7136
0a9aa0f6
VS
71372012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
7140 than 0.
7141
8360e159
VS
71422012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7143
7144 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
7145 (dejavu_bold_14.pf2): New target.
7146
501b9e4b
VS
71472012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7148
7149 * configure.ac: Fix djvu font detection.
7150
7026b0e2
VS
71512012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
7154 ext* instead of ext2.
7155
c2a51ade
VS
71562012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7157
7158 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
7159 name with \0.
7160
8f803a5d
JU
71612012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
7162
7163 * docs/grub-dev.texi: Remove dot from .png.
7164
13c6353f
VS
71652012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7166
7167 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
7168 protective entry in any slot.
7169 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
7170 if protective entry is found in any slot.
7171
7172 Protective entry in non-first slot make no sense but is a widespread
7173 brain damage.
7174
4cf6be1b
VS
71752012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
7178
937d1c44
VS
71792012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7180
7181 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
7182 with old reiserfs.
7183 (grub_reiserfs_open): Don't free root.
7184
021d90ec
VS
71852012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7186
7187 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
7188 after freeing for safety.
7189
967b2b64
VS
71902012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7191
7192 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
7193 Reported by: Jordan Uggla.
7194
34274d02
JU
71952012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
7196
967b2b64
VS
7197 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
7198 actual implementation. Specifically, clarify that the grub menu will
7199 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
7200 passed.
34274d02 7201
dcaaae9d
BH
72022012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
7203
7204 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
7205 of r0.
7206
7086ad52
VS
72072012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 Remove unjustified hard dependency of normal.mod on gfxterm.
7210
7211 * include/grub/term.h (grub_term_output): New member fullscreen.
7212 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
7213 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
7214 (grub_gfxterm): Set .fullscreen.
7215 * grub-core/normal/menu.c (menu_init): Use fullscreen.
7216 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
7217
37ed2c9b
VS
72182012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7219
7220 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
7221 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 7222 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 7223
a4469c88
VS
72242012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7225
7226 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
7227
4e461486
VS
72282012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7231 a bad FS.
7232
aa78f5c4
VS
72332012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7234
7235 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
7236 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
7237
197626b5
VS
72382012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
7241 (grub_jfs_mount): Fill caseins.
7242 (grub_jfs_find_file): Respect caseins.
7243
8ad3f28c
VS
72442012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7245
7246 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
7247 through UTF-16.
7248
0c6c324e
VS
72492012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
7252 New argument origpath. All users updated.
7253
c6666ba6
VS
72542012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7255
7256 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
7257 (read_attr): Ensure that we read start of possibly compressed block.
7258
e28e5fe5
VS
72592012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7260
7261 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
7262 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
7263 All users updated.
7264
5fc23ab2
VS
72652012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7266
7267 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
7268 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
7269 (dejavu.pf2): Replace with ...
7270 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
7271 this.
7272
79dbc21c
VS
72732012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * util/grub.d/20_linux_xen.in: Add missing line.
7276
d2fcfb0c
VS
72772012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7278
7279 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
7280 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
7281 (grub_utf16_to_utf8): Likewise.
7282
5560e9d6
VS
72832012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7284
7285 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
7286 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
7287 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7288 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
7289 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7290 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
7291
72922012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
7293
7294 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7295 a bad FS.
7296
5560e9d6 72972012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
7298
7299 * grub-core/fs/udf.c (read_string): Bail out on size=0.
7300 (grub_udf_read_symlink): Handle read_string failure.
7301
5eae3175
VS
73022012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
7305 comment.
7306
c1ad82db
VS
73072012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7308
7309 Fix handling of UDF symlinks.
7310
7311 * grub-core/fs/udf.c (read_string): New argument outbuf.
7312 All users updated.
7313 (grub_ufs_read_symlink): Rename to ...
7314 (grub_udf_read_symlink): ... this. All users updated.
7315 Handle symlinks with more than one component.
7316
33eca6e0
VS
73172012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7318
7319 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
7320 symlinks. Replace leading colon with a slash.
7321
57f4a70b
VS
73222012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
7325 filename.
7326
38c8ee20
VS
73272012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7328
7329 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
7330 match in inner node.
7331
2e57f28f
VS
73322012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
7335 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
7336 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
7337 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
7338 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
7339 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
7340 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
7341 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
7342 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
7343
fe8c2f11
VS
73442012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
7345
7346 Use grub-probe and not cmp to check that disk is empty.
7347
7348 * util/grub-install.in: Use grub-probe for zero-check.
7349 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
7350 (probe): Handle PRINT_ZERO_CHECK.
7351 (argp_parser): Handle -t zero_check.
7352
73532012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
7354
7355 Flush block cache on adding disk to device map.
7356
7357 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
7358 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
7359 adding.
7360 (read_device_map): Likewise.
7361 (open_device): Flush on opening.
7362
690434e8
VS
73632012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7364
7365 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
7366 (handle_symlink): Fix off-by-one error.
7367 Canonicalize the target.
7368 (grub_cpio_dir): Canonicalize the name.
7369 Fix memory leak.
7370 Set directory.
7371 (grub_cpio_open): Canonicalize the name.
7372
742d2be6
VS
73732012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7374
7375 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
7376 handling.
7377
3244fe96
VS
73782012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7379
7380 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
7381 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
7382
8aeb1837
VS
73832012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
7386 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 7387 All users updated.
8aeb1837 7388
9133fd05
VS
73892012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7390
7391 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
7392 counterpart.
7393
6d521c5b
VS
73942012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 Fix UFS1 big file support.
7397
7398 * grub-core/fs/ufs.c (INODE): Removed.
7399 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
7400 64-bit.
7401 (INODE_MODE): Simplify.
7402 (grub_ufs_inode): Use uint64_t for size and not int64_t.
7403 (grub_ufs_lookup_symlink): Don't use INODE.
7404
21b82e17
VS
74052012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7406
7407 Fix minixfs with non-power-of-two blocks since it's supported by minix.
7408
7409 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
7410 (grub_minix_data): Replace log_block_size with block_size.
7411 (grub_minix_read_file): Use block_size but avoid 64-bit division.
7412 (grub_minix_mount): Fill block_size.
7413
74142012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
7415
7416 * configure.ac: Bump to beta5.
7417
f417ed04
VS
74182012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7419
7420 Fix wrapped HFS+ handling.
7421
7422 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
7423 blocks_start. All users updated.
7424 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
7425 wrapping offset.
7426 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
7427
607d282b
VS
74282012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7429
7430 Fix long symlinks on reiserfs.
7431
7432 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
7433 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
7434 (grub_reiserfs_iterate_dir): Save size for non-directories.
7435 (grub_reiserfs_open): Don't reread stat block as we already know the
7436 size.
7437 (grub_reiserfs_read): Split into...
7438 (grub_reiserfs_read_real): ... and ...
7439 (grub_reiserfs_read): ...this.
7440
ae16024d
VS
74412012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7442
7443 Fix non-indexed JFS.
7444
7445 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
7446 (grub_jfs_data): New field namecomponentlen.
7447 (grub_jfs_mount): Fill namecomponentlen.
7448 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
7449
eea1e26e
VS
74502012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
7453 * tests/grub_script_echo1.in: Add tests.
7454
df760f77
VS
74552012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7456
7457 * util/grub-install.in: Ignore empty devicetree directory.
7458
5efb817d
B
74592012-05-08 Bean <bean123ch@gmail.com>
7460
7461 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
7462 All users updated.
7463 (free_rsm): Free header as well.
7464 (free_old_fragments): Fix memory leak.
7465 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
7466 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
7467 (destroy_pq): Likewise.
7468 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
7469
668ea6d2
VS
74702012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
7473 resulting hash as a precaution.
7474
1739b1fe
VS
74752012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7476
7477 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
7478 '_' in variable names.
7479 * grub-core/net/net.c (grub_net_network_level_interface_register):
7480 Likewise.
7481
6ae485aa
VS
74822012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7483
7484 Fix AFFS with non-512B blocks.
7485
7486 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
7487 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
7488 (grub_affs_data): Replace blocksize with log_blocksize.
7489 (grub_affs_read_block): Fix non-512B blocks.
7490 (grub_affs_read_symlink): Likewise.
7491 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
7492 (grub_affs_read): Fix non-512B blocks.
7493 (grub_affs_label): Likewise.
7494 (grub_affs_mtime): Likewise.
7495 (grub_affs_mount): Fix block detection routine.
7496
d20fab84
VS
74972012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 Add filesystem mtime to AFFS.
7500
7501 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
7502 (aftime2ctime): New function.
7503 (grub_affs_dir): Use aftime2ctime.
7504 (grub_affs_label): Fix return value.
7505 (grub_affs_mtime): New function.
7506 (grub_affs_fs): Add mtime.
7507
e87b10f5
VS
75082012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7509
7510 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
7511 UTF-8.
7512
7dceec9b
VS
75132012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7514
7515 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
7516 UTF-8.
7517
2f48221f
VS
75182012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7519
7520 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
7521
dacd85cf
VS
75222012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7523
7524 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
7525 flags.
7526 (FLAGS_CASE_SENSITIVE): New enum value.
7527 (cache_entry): New struct.
7528 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
7529 cache_size and cache.
7530 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
7531 Add log_blocksize and fshelp_flags.
7532 (grub_sfs_read_extent): Handle non-512 blocks.
7533 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
7534 (grub_sfs_read_file): Handle non-512 blocks.
7535 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
7536 fshelp_flags.
7537 (grub_sfs_read_symlink): Handle non-512 blocks.
7538 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
7539 (grub_sfs_dir): Free cache.
7540 (grub_sfs_close): Likewise.
7541
24e9a854
VS
75422012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7543
7544 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
7545 filesystems.
7546
62ace64d
VS
75472012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7548
7549 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
7550
83b2e89c
VS
75512012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7552
7553 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
7554
75ccaea3
VS
75552012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7556
7557 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
7558 (grub_sfs_read_extent): Likewise.
7559 (grub_sfs_read_block): Likewise.
7560 (grub_sfs_mount): Likewise.
7561 (grub_sfs_iterate_dir): Likewise.
7562 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
7563 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
7564
1b8463f2
VS
75652012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7566
7567 Fix errors on compressed NTFS with 512B clusters.
7568
7569 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
7570 types.
7571 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7572 not 0.
7573 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7574 Relax check for inline extents.
7575 (ntfscomp): Return correct -1 on error and not 0.
7576
4f8e368f
VS
75772012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7578
7579 * util/grub-install.in: Fix handling of prefix containing spaces.
7580
6f5d5ee8
VS
75812012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7582
7583 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7584 (grub_squash_read_data): Fix offset byte-swapping.
7585
ce41ab7a
VS
75862012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7587
7588 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7589 per common usage and preffered in several parts of code.
7590 (grub_memcmp): Likewise.
7591 (grub_strncmp): Likewise.
7592 * include/grub/misc.h (grub_strcasecmp): Likewise.
7593 (grub_strncasecmp): Likewise.
7594 * Makefile.util.def (cmp_test): New test.
7595 (grub_script_strcmp): Likewise.
7596 * tests/cmp_unit_test.c: New file.
7597 * tests/grub_script_strcmp.in: Likewise.
7598 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7599
49717bf4
VS
76002012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 * include/grub/pci.h: Move enums into no-asm part.
7603
0a308f64
VS
76042012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7605
7606 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7607
1796965f
ST
76082012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7609
7610 * util/getroot.c (find_hurd_root_device): Try to make error message
7611 and comments to translators clearer.
7612
4e9b2819
VS
76132012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7614
7615 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7616
076aeb50
VS
76172012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7620 btrfs.
7621
19424d94
VS
76222012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7623
7624 * docs/grub.cfg: Update.
7625
ebb73076
VS
76262012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7627
7628 * docs/grub.texi (PXE): Remove not present variables.
7629
9a1b669c
VS
76302012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7631
7632 * grub-core/net/net.c (defserver_set_env): New function.
7633 (defserver_get_env): Likewise.
7634 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7635
d38bf7d3
VS
76362012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7637
7638 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7639 entries.
7640
76412012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
7642
7643 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7644 * grub-core/kern/emu/hostdisk.c: Likewise.
7645
e5e4ca48
ST
76462012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7647
7648 Handle hurd userspace partitions.
7649
7650 * util/getroot.c (find_hurd_root_device): New function.
7651 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7652
56bb5dd5
VS
76532012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7654
7655 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7656 names.
7657 Reported by: Bastian Blank.
7658
9e8bc27a
VS
76592012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7660
7661 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7662 crossing page boundary.
7663
aa01499d
VS
76642012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7665
7666 Fix B-tree search in BFS, especially in presence of non-ASCII
7667 characters.
7668
7669 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7670 (find_in_b_tree): Use standard bsearch + btree algorithm.
7671
57006035
VS
76722012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7673
7674 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7675 and so on.
7676
9d34bb85
MG
76772012-05-03 Matthew Garrett <mjg@redhat.com>
76782012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7679
7680 Suspend broadcom cards in order to stop their DMA.
7681
7682 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7683 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7684 (pci): Don't build on x86 EFI.
7685 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7686 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7687 New function.
7688 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7689 stop_broadcom if running on EFI.
7690 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7691 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7692 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7693 (grub_pci_find_capability): New proto.
7694
01aab997
VS
76952012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7696
7697 * docs/grub.texi: Remove dot from the extension as it apparently
7698 doesn't work with some makeinfo versions.
7699
fbd8dca6
VS
77002012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7701
7702 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7703 with GRUB expectance.
7704
dab797f4
VS
77052012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7708
1516bfb4
VS
77092012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7710
7711 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7712 zero after directory block since last entry may be not 0-terminated if
7713 it ends on block boundary. Use continue instead of if spanning whole
7714 loop.
7715
a3a0eace
VS
77162012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7717
7718 Support 4K sectors UDF inline files.
7719
7720 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7721 (grub_udf_extended_file_entry): Likewise.
7722 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7723 All users updated.
7724 (get_fshelp_size): New function.
7725 (grub_udf_read_icb): Read whole block.
7726 (grub_udf_iterate_dir): Likewise.
7727 (grub_udf_dir): Likewise.
7728 (grub_udf_open): Likewise.
7729
c82f16c1
VS
77302012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7731
7732 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7733
59fd2aac
VS
77342012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7735
7736 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7737 inline symlinks in addition to workaround.
7738
3b4afb4d
VS
77392012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7740
7741 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7742
f45c794a
VS
77432012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7746
f25cecbd
VS
77472012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7748
7749 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7750
bb9a34e8
VS
77512012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7752
7753 Fix reiserfs big seek times.
7754
7755 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7756 exact. All users updated.
7757 (grub_reiserfs_read): Use nearest btree search for seeking.
7758 Fix return value on error.
7759
dc478aea
VS
77602012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7761
7762 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7763 entries.
7764 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7765 * docs/grub.texi: Update menuentry description.
7766
8db10f47
VS
77672012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7768
7769 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7770 crash when embedding onto filesystem.
7771
bcb288ed
VS
77722012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7773
7774 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7775 name.
7776
a626fdd7
VS
77772012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7778
7779 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7780
b2f68477
VS
77812012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7782
7783 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
7784 commit.
7785
ba15b2af
B
77862012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
77872012-05-01 Bean <bean123ch@gmail.com>
7788
7789 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
7790
a188012e
VS
77912012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
7794 Special behaviour for len = 0 to read whole file isn't used anywhere and
7795 can cause buffer ovewrflows in several places.
7796
f0a53ed2
VS
77972012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7798
7799 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
7800
5ed554f0
VS
78012012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7802
7803 Handle RAIDZ on non-512B sectors.
7804
7805 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
7806 max_children_ashift.
7807 (fill_vdev_info_real): Fill max_children_ashift.
7808 (read_device): Use max_children_ashift.
7809
ddc58357
VS
78102012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7811
7812 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
7813
e3282399
VS
78142012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7815
7816 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
7817 disk names.
7818 * docs/grub.texi: Update device.map parts.
7819
ee618bd4
VS
78202012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7821
7822 Don't scan into non-diskfilter devices having diskfilter names.
7823
7824 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
7825 (scan_disk): New argument accept_diskfilter. Fix recursion depth
7826 handling.
7827 (scan_disk_hook): New function.
7828
bdf88864
B
78292012-04-29 Bean <bean123ch@gmail.com>
7830
7831 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
7832 allocation.
7833
32745f51
MK
78342012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
7835
7836 * configure.ac: Detect starfield theme font path
7837 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
7838
bc95c8c0
VS
78392012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7840
7841 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
7842 geometry on serial consoles.
7843
147fbcab
VS
78442012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
7847 because of network consoles.
7848
0f42c889
VS
78492012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7850
7851 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7852 handling.
7853
4a3594c9
VS
78542012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7855
7856 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7857 falls on Q syndrom.
7858
5cb53879
VS
78592012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7860
7861 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7862 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7863
b282dfe5
VS
78642012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7865
7866 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7867 Allocate at lest 8192 for temporary buffer as required for lzo.
7868
daa59f47
VS
78692012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7870
7871 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7872 to cluster_bits, since it's already added in.
7873 (grub_fat_read_data): Likewise.
7874
986748ce
VS
78752012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7878 as long as cluster size is multiple of 512 bytes.
7879
a20f6ad0
VS
78802012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7881
7882 * util/grub-mkrescue.in: Fix locale directory.
7883
385f9abb
VS
78842012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 * grub-core/kern/emu/hostdisk.c (map): Make static.
7887
1c557d30
B
78882012-04-23 Bean <bean123ch@gmail.com>
7889
7890 * util/grub-fstest.c (fstest): Add missing break.
7891
524b5d3a
ST
78922012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7893
7894 Fix hurd build.
7895
7896 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7897 not define nr variable.
fe4824e9 7898 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7899 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7900 grub_find_device): Do not define.
524b5d3a 7901
9a06490c
VS
79022012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7903
7904 Fix kfreebsd compile and behaviour.
7905
7906 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7907 format-security.
7908 * util/getroot.c: Fix wait.h include.
7909 (grub_guess_root_devices): Error if grub_find_device fails.
7910 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7911 (grub_util_get_dev_abstraction): Likewise.
7912 (grub_util_pull_device): Likewise.
7913 (grub_util_get_grub_dev): Likewise.
7914 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7915
48143d96
VS
79162012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7917
7918 Fix and unify wholedisk detection.
7919
7920 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7921 is_part. All users updated.
7922 (device_is_wholedisk): Removed.
7923 (grub_util_biosdisk_get_grub_dev): Use is_part.
7924
ebbd24f3
VS
79252012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7926
7927 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7928 mode.
7929
56f7aa1e
VS
79302012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7931
7932 * configure.ac: Bump to beta4.
7933
9c815e01
VS
79342012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7935
7936 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7937 --fs-uuid --set UUID syntax.
7938
59e2651a
VS
79392012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7940
7941 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7942 disunification.
7943
54e03cfc
VS
79442012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7947
81092a75
MK
79482012-04-18 Mads Kiilerich <mads@kiilerich.com>
7949
7950 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7951
f8315e14
MG
79522012-04-18 Mike Gilbert <floppym@gentoo.org>
7953
7954 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7955
1501ac21
B
79562012-04-18 Bean <bean123ch@gmail.com>
7957
7958 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7959 place.
7960
cb7f944e
VS
79612012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7962
7963 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7964 users updated.
7965 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7966 corresponding to GRUB partitions.
7967 (grub_util_biosdisk_write): Likewise.
7968
b72d44a1
VS
79692012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7970
7971 Scan mdraid before LVM.
7972
7973 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7974 (grub_diskfilter_register_front): ... this.
7975 (grub_diskfilter_register_back): New function.
7976 All users of grub_diskfilter_register updated.
7977
33d918b8
VS
79782012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7979
7980 * util/grub-install.in: Fix an automatic target detection bug.
7981
c6ca973d
VS
79822012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7983
7984 * util/grub-install.in: New option --efi-directory.
7985
b41be562
VS
79862012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7989 boot services if we have no other choice.
7990
79912012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7992
7993 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7994 document it.
7995 * tests/util/grub-shell.in: Update to --directory.
7996
e0595a73
VS
79972012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7998
7999 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
8000
4ed80652
VS
80012012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8002
8003 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
8004 (grub_minix_read_file): Likewise.
8005 (grub_minix_read_inode): Likewise.
8006 (grub_minix_find_file): Likewise.
8007 (grub_minix_dir): Likewise.
8008
56008077
VS
80092012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * util/grub-setup.c (setup): Fix partition handling and blocklist
8012 check.
8013
ee520775
VS
80142012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
8015
8016 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
8017 redundant buggy overlap check.
8018
16fc9293
VS
80192012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8020
8021 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
8022 and grub-mknetdir.
8023
9bab65c4
VS
80242012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8025
8026 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
8027 kh.loadflags on pre-2.00 kernels.
8028
3c491b47
VS
80292012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8030
8031 Terminate UNDI and PXE before launching the payload to avoid problems
8032 with DMA.
8033
8034 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
8035 (grub_loader_flags): ... this. All users updated.
8036 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
8037 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
8038 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
8039 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
8040 function.
8041 (grub_pxe_restore): Likewise.
8042 (fini_hnd): New var.
8043 (GRUB_MOD_INIT): Register shutdown hook.
8044 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
8045 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
8046 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
8047 (grub_loader_set): Rename second argument to flags.
8048
851ffada
VS
80492012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8050
8051 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
8052 written bytes.
8053 (grub_get_num_of_utf8_bytes): New function.
8054 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
8055 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
8056 executing it.
8057 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
8058 (grub_ucs4_to_utf8): Change return type.
8059
491c57a8
VS
80602012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8061
8062 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
8063 warning.
851ffada
VS
8064 * grub-core/fs/bfs.c (hop_level): Likewise.
8065 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 8066
756773df
VS
80672012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8068
8069 * grub-core/lib/adler32.c: Recode due to license unclearness.
8070
fd556a96
VS
80712012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8072
8073 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
8074 (test_header): Likewise.
8075
9f9d3f69
VS
80762012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8077
8078 Fix --help formatting.
8079
8080 * util/grub-mkconfig_lib.in (print_option_help): New function.
8081 (grub_fmt): Likewise.
8082 * util/grub-install.in: Use print_option_help and grub_fmt.
8083 * util/grub-kbdcomp.in: Likewise.
8084 * util/grub-mkconfig.in: Likewise.
8085 * util/grub-mknetdir.in: Likewise.
8086 * util/grub-mkrescue.in: Likewise.
8087 * util/grub-mkstandalone.in: Likewise.
8088 * util/grub-reboot.in: Likewise.
8089 * util/grub-set-default.in: Likewise.
8090 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8091
561ec77e
VS
80922012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
8093
8094 * linguas.sh: Remove autogenerated *.po.
8095
7ec2b021
VS
80962012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8097
8098 * po/README: Move language fetcing to ...
8099 * linguas.sh: ... here.
8100 * po/README: Point to linguas.sh.
8101
a88f3270
VS
81022012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8103
8104 * po/README: Exclude ko.po due to disclaimer problems.
8105
d61357ce
VS
81062012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8107
8108 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
8109 len = 0.
8110 (grub_gettext_translate_real): Handle 0th string.
8111 (grub_gettext_translate): Ensure that "" isn't translated.
8112
505e41dc
VS
81132012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
8116 TRANSLATORS comment.
8117 (grub_diskfilter_print_partmap): Propagate changing of error into
8118 warning.
8119
e44092db
VS
81202012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8121
8122 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
8123 to uint64_t to prevent overflow.
8124 (grub_diskfilter_lv): Increase start_extent and extent_count
8125 to uint64_t to prevent overflow.
8126
9b83956a
VS
81272012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8128
8129 * configure.ac: Increase version.
8130
da0d5b3f
VS
81312012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8132
8133 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
8134
8135 * po/Rules-translit: New file.
8136 * po/arabic.sed: Likewise.
8137 * po/cyrillic.sed: Likewise.
8138 * po/greek.sed: Likewise.
8139 * po/hebrew.sed: Likewise.
8140 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
8141 * po/Makefile.in.in: Add extra_dist4.
8142
ac66b453
VS
81432012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8144
8145 Handle big-endian minixfs (fixes minixfs tests on bigendian).
8146
8147 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
8148 modify names. Introduce MODE_BIGENDIAN.
8149 * grub-core/fs/minix_be.c: New file.
8150 * grub-core/fs/minix2_be.c: Likewise
8151 * grub-core/fs/minix3_be.c: Likewise.
8152 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
8153 minix3_be.
8154 * grub-core/Makefile.core.def (minix_be): New module.
8155 (minix2_be): Likewise.
8156 (minix3_be): Likewise.
8157
81582012-04-01 Felix <email@hamburg.de>
8159
8160 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
8161 (devs): Add MBP 2011.
8162
0a2d5a82
VS
81632012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8164
8165 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
8166
d1625889
VS
81672012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8168
8169 * grub-core/normal/cmdline.c (print_completion): New field
8170 prompt_len.
8171 (grub_cmdline_get): Handle width properly.
8172
6d36a236
VS
81732012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8174
8175 * grub-core/commands/lsacpi.c (options): Add missing terminator.
8176
9576977e
VS
81772012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8178
8179 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 8180 after 29th of February.
9576977e 8181
d73ff15d
VS
81822012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 Fix exfat endianness handling.
8185
8186 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
8187 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
8188 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
8189 Byte-swap utf16 when necessary.
8190 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
8191
bbb39a45
AB
81922012-03-31 Anton Blanchard <anton@samba.org>
81932012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8194
8195 Fix btrfs endianness handling.
8196
8197 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
8198 (lower_bound): Make root uint64_t. Use root in le.
8199 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
8200 (find_path): Fix template key init.
8201 (grub_btrfs_dir): Fix mtime byteswap.
8202 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
8203
354e0af7
VS
82042012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8205
8206 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
8207 recursion_depth. Break infinite resursions. All users updated.
8208
4e75f21c
VS
82092012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8210
8211 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
8212 after free.
8213 Reported by: Peter Jones.
8214
25581802
AB
82152012-03-31 Anton Blanchard <anton@samba.org>
8216
8217 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8218 8 bit values.
8219
08fbf92e
VS
82202012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8221
8222 * util/grub-install.in: Fix nvram call for PreP.
8223
5d1182a6
VS
82242012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8225
8226 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
8227 the error when some elements are missing into a warning.
8228
3f8cdd90
VS
82292012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8230
8231 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
8232
51006716
CW
82332012-03-28 Colin Watson <cjwatson@ubuntu.com>
8234
8235 * docs/grub.texi (Invoking grub-probe): New section.
8236 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
8237
e1bd676b
VS
82382012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 Fix tab and wide character handling in editor and menu.
8241
8242 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
8243 agglomerate control characters with combining marks.
8244 (bidi_line_wrap): Allow break on tab.
8245 (grub_unicode_get_comb_start): New function.
8246 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
8247 and tab correctly.
8248 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
8249 with a space.
8250 * grub-core/normal/term.c (print_ucs4_terminal): New argument
8251 fixed_tab_size. All users updated.
8252 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
8253 (grub_term_getcharwidth): Handle \t.
8254 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
8255 and copy.
8256
22e6a774
VS
82572012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8258
8259 Handle big-endian mdraid.
8260
8261 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
8262 * grub-core/Makefile.core.def (mdraid09_be): New module.
8263 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
8264 rather than grub_le_to_cpu* and grub_cpu_to_le*.
8265 * grub-core/disk/mdraid_linux_be.c: New file.
8266
3c0eae66
VS
82672012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8268
8269 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
8270
b6cf74c9
VS
82712012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8272
8273 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8274 missing quotes which caused confusion among translators.
8275
83c93b9c
VS
82762012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8277
8278 * util/grub-mkconfig_lib.in: Fix typo.
8279
ac6fd218
VS
82802012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8281
8282 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
8283 spaces.
8284 * tests/grub_script_leading_whitespace.in: New file.
8285 * Makefile.util.def (grub_script_leading_whitespace): New test.
8286
ba287dd8
VS
82872012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8288
8289 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
8290 to work.
8291
d2d58d0a
VS
82922012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8293
8294 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
8295 starts with control character.
8296
0382d9bb
VS
82972012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8298
8299 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
8300 overflow.
8301 (grub_gdb_outbuf): Likewise.
8302
d83ff9f9
VS
83032012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8304
8305 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
8306 zero terminator. Fixes a crash.
8307
2282da4a
VS
83082012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8309
8310 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
8311 beyond 4 GiB.
8312 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
8313 images independently of preffered adderss field.
8314
0ae4f0bd
VS
83152012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8316
8317 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
8318 * grub-core/commands/regexp.c: Likewise.
8319 * grub-core/loader/i386/linux.c: Likewise.
8320 * grub-core/partmap/msdos.c: Likewise.
8321 * grub-core/script/execute.c: Likewise.
8322 * grub-core/term/gfxterm.c: Likewise.
8323
546fbe9b
VS
83242012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8325
8326 Add variable parsing in $"..." and fix several mismatches with bash.
8327
8328 * Makefile.util.def (grub_script_gettext): New test.
8329 * grub-core/script/execute.c (parse_string): New function.
8330 (gettext_append): Likewise.
8331 (grub_script_arglist_to_argv): Use gettext_append.
8332 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
8333 * tests/grub_script_gettext.in: New file.
8334
9fdb2d7b
VS
83352012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8336
8337 Fix handling of leading spaces in scripts.
8338
8339 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
8340 spaces.
8341 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
8342 other than skipping \r. All users updated.
8343 * tests/grub_script_echo1.in: Add space-related tests.
8344 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
8345
1a1ac4f6
VS
83462012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8347
8348 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
8349
b63d89b6
VS
83502012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8351
8352 * configure.ac: Bump up the version to beta2.
8353
17f38c0f
VS
83542012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 Fix gettext reload bugs (e.g. inability to disable gettext
8357 once enabled).
8358
8359 * grub-core/gettext/gettext.c: Encapsulate all static variables in
8360 main_context and secondary_context. All functions updated.
8361 (grub_gettext_translate): Rename to ...
8362 (grub_gettext_translate_real): ... this. Return NULL on failed
8363 translate.
8364 (grub_gettext_translate): Handle secondary context.
8365 (grub_gettext_delete_list): Close file and zero-out the context.
8366 (grub_mofile_open): Don't call grub_gettext_delete_list.
8367 Don't close file.
8368 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
8369 if locale="" to avoid pointless error message.
8370 (grub_gettext_env_write_lang): Update lang even if load fails.
8371 Handle secondary context.
8372 (grub_gettext_reread_prefix): New function.
8373 (read_main): Likewise.
8374 (read_secondary): Likewise.
8375 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
8376 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
8377 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
8378 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
8379
8e56f870
VS
83802012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8381
8382 * configure.ac: Decrease warning level to avoid spurious warnings and
8383 to be able to compile with GCC 4.2.
8384 * Makefile.util.def: Remove -Wno-error=logical-op.
8385
82f6d455
WB
83862012-03-10 William Bittner <william.bittner@gmail.com>
8387
8388 * util/import_unicode.py: Add missing brackets around string for
8389 python 3 support.
8390
1ecd61a4
VS
83912012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 Fix efi chainloader on network root.
8394
8395 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
8396 network devices.
8397 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
8398 New function.
8399
14361ee8
VS
84002012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
8403 unused show_text member.
8404 * docs/grub.texi: Document "text" property.
8405
922aabf3
VS
84062012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8407
8408 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
8409 in dprintf.
8410
ec316771
VS
84112012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8412
8413 Fix IMSM handling on Fedora.
8414
8415 * util/getroot.c (grub_util_is_imsm): New function.
8416 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
8417
0f021838
VS
84182012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8419
8420 * Makefile.am: Strip gold section.
8421 * conf/Makefile.common: Likewise.
8422 * gentpl.py: Likewise.
8423 * grub-core/Makefile.core.def: Likewise.
8424 * grub-core/genmod.sh.in: Likewise.
8425
1039c8eb
VS
84262012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
8429 * util/grub.d/20_linux_xen.in: Likewise.
8430 Based on Debian patch.
8431
6dd412cd
VS
84322012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 * util/grub.d/10_linux.in: Fix syntax error resulting in
8435 Richard Laager's patch.
8436 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
8437
3fd8bae5
VS
84382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
8441 dependencies.
8442
7eea1671
RL
84432012-03-10 Richard Laager <rlaager@wiktel.com>
8444
8445 * util/grub.d/10_linux.in: Fix ZFS root passing.
8446
e8e0566b
VS
84472012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8448
8449 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8450 * grub-core/commands/xnu_uuid.c: Likewise.
8451 * grub-core/loader/efi/appleloader.c: Likewise.
8452 * grub-core/script/execute.c: Likewise.
8453 * grub-core/script/main.c: Likewise.
8454 * util/grub-mkfont.c: Likewise.
8455
1acc5b1f
VS
84562012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8457
8458 * util/grub-mkfont.c (options): Use more appropriate "select" that
8459 "set" for face index.
8460
35d70620
VS
84612012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8462
8463 * util/grub-editenv.c (options): Gettextize command summaries.
8464
c9eb96b5
VS
84652012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8466
8467 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
8468 "out of memory" error messagge.
8469
1f493136
VS
84702012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8471
8472 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
8473 of diskfilter for diskfilter on diskfilter support.
8474
6d790129
VS
84752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8476
8477 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
8478
005f46c9
VS
84792012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8480
8481 * util/grub-install.in: Check for themes/starfield/theme.txt and not
8482 themes/starfield.
8483
c8f778a0
VS
84842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8485
8486 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
8487
de1e64eb
VS
84882012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
8491
c6d54211
VS
84922012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
8495 of error message.
8496
dd390777
VS
84972012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
8500
5fd1c522
VS
85012012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8502
8503 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
8504 message.
c6d54211 8505 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 8506
fae01f6c
VS
85072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8508
8509 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
8510 Gettextize.
8511 * util/grub-mount.c (options): Likewise.
8512
292fdaff
VS
85132012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8514
8515 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
8516 gettextize.
8517 * grub-core/commands/search_wrap.c (options): Likewise.
8518
ecdbae77
VS
85192012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
8522
52bfedfa
VS
85232012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8524
8525 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
8526 size calculation.
8527 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
8528 none is known.
8529
55b20e58
VS
85302012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
8533 "temporary" since it's used in identifier and is limited in space.
8534
fda9d101
VS
85352012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8536
8537 * po/POTFILES.in: Regenerate. Include *.h since they contain
8538 translatable strings as well.
8539
6a0295e2
VS
85402012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8541
8542 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8543 byte-swap on big-endian.
8544 Reported by: Lennart Sorensen
8545
807fb77c
VS
85462012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8547
8548 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
8549 (allocate_pages): Improve dprintf.
8550 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
8551 code32_start. Fill code32_start and kernel_alignment in params.
8552 (grub_cmd_initrd): Use prot_init_space.
8553
61ac50ba
VS
85542012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8555
8556 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
8557
abdd26dd
VS
85582012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * util/grub-install.in: Add missing dot at the end of sentence.
8561
6e69da9c
VS
85622012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8565 * grub-core/commands/videotest.c: Likewise.
8566 * grub-core/loader/i386/linux.c: Likewise.
8567
4a929343
VS
85682012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8571 sentence.
8572 Reported by: Milo Casagrande.
8573
bb51c6c6
VS
85742012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8575
8576 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8577 * grub-core/commands/gptsync.c: Likewise.
8578 * grub-core/commands/hashsum.c: Likewise.
8579 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8580 * grub-core/commands/legacycfg.c: Likewise.
8581 * grub-core/io/gzio.c: Likewise.
8582 * grub-core/net/net.c: Likewise.
8583 * grub-core/term/gfxterm.c: Likewise.
8584 * grub-core/term/terminfo.c: Likewise.
8585 * grub-core/tests/test_blockarg.c: Likewise.
8586 * grub-core/video/video.c: Likewise.
8587 * util/grub-install.in: Likewise.
8588 * util/grub-mkfont.c: Likewise.
8589
b2b149cb
VS
85902012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8591
8592 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8593
c7c080ad
VS
85942012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8595
8596 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 8597 Reported by: David Prévot.
c7c080ad 8598
f2e243c0
VS
85992012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8600
8601 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8602 description.
8603
09963c76
VS
86042012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 * util/grub-script-check.c (main): Fix a syntax error message which was
8607 unclear.
8608
a50514a8
VS
86092012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8610
8611 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8612
4650daec
VS
86132012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8614
8615 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8616 messages.
8617
86182012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
8619
8620 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8621 without argument.
8622 * util/grub-mount.c (options): Likewise.
8623
bbc5a342
VS
86242012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8625
8626 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8627
ef292a87
VS
86282012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8629
8630 * grub-core/net/http.c: Add TRANSLATORS comments.
8631 * grub-core/normal/cmdline.c: Likewise.
8632 * grub-core/normal/misc.c: Likewise.
8633 * grub-core/partmap/msdos.c: Likewise.
8634 * grub-core/parttool/msdospart.c: Likewise.
8635 * grub-core/script/execute.c: Likewise.
8636 * grub-core/script/main.c: Likewise.
8637 * grub-core/term/terminfo.c: Likewise.
8638 * grub-core/video/bitmap.c: Likewise.
8639 * util/grub-install.in: Likewise.
8640 * util/grub-mkimage.c: Likewise.
8641 * util/grub-mklayout.c: Likewise.
8642 * util/grub-setup.c: Likewise.
8643
0fc19bd0
VS
86442012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8645
8646 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8647 with similar messages in grub-fstest.
8648
d95862ef
VS
86492012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8650
8651 * util/grub-install.in: Unify "option requires an argument" message
8652 with similar messages in other files.
8653 * util/grub-mkconfig.in: Likewise.
8654
b7308f90
VS
86552012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8656
8657 * util/grub-set-default.in: Replace printf with gettext_printf (the
8658 string in in question is already translated from grub-reboot)
8659
559dc587
VS
86602012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8661
8662 * configure.ac: Bump up the version to beta1.
8663
1a11761f
VS
86642012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8665
8666 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8667 case when min_align = 0.
8668
24539abd
VS
86692012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8670
8671 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8672 and fix a case when line_start overflows.
8673
32bd735b
VS
86742012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8675
8676 * util/grub-reboot.in (usage): Mention id posibility.
8677 * util/grub-set-default.in (usage): Likewise.
8678
1a2fd1e6
VS
86792012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8680
8681 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8682 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8683 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8684 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8685 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8686 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8687 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8688
90eeab76
VS
86892012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8690
8691 * grub-core/commands/menuentry.c (options): Remove
8692 GRUB_ARG_OPTION_REPEATABLE.
8693 Reported by: Andreas Vogel
8694
5ad1be82
AV
86952012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8696
8697 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8698
cb055286
HE
86992012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8700
8701 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8702 error.
8703
93b1cd79
VS
87042012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 Use sort -V by the idea of Georgi Georgiev.
8707
8708 * util/grub-mkconfig_lib.in (version_sort): New function.
8709 (version_test_numeric): Use version_sort.
8710
0cdc126c
VS
87112012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8712
8713 Use submenus in grub-mkconfig.
8714
8715 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8716 * util/grub-mkconfig_lib.in (grub_quote): New function.
8717 (gettext_printf): Use gettext and not gettext_quoted to fix several
8718 messages.
8719 * util/grub.d/10_hurd.in: Use submenus.
8720 * util/grub.d/10_kfreebsd.in: Likewise.
8721 * util/grub.d/10_linux.in: Likewise.
8722 * util/grub.d/10_netbsd.in: Likewise.
8723 * util/grub.d/20_linux_xen.in: Likewise.
8724 * util/grub.d/30_os-prober.in: Likewise.
8725 * util/grub.d/10_illumos.in: Add missing quoting.
8726 * util/grub.d/10_windows.in: Likewise.
8727
d9bef9bc
VS
87282012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8729
8730 Fix menu title instability bug.
8731
8732 * grub-core/commands/menuentry.c (options): New option --id.
8733 (grub_normal_add_menu_entry): New argument id. All users updated.
8734 (grub_cmd_menuentry): Handle --id.
8735 (grub_menu_init): Accept unknown arguments.
8736 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8737 feature_menuentry_options.
8738 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8739 saved_entry.
8740 (get_entry_number): Match with id as well.
8741 * include/grub/menu.h (grub_menu_entry): New member id.
8742 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8743 * util/grub.d/00_header.in: Define menuentry_id_option.
8744 * util/grub.d/10_hurd.in: Define id.
8745 * util/grub.d/10_illumos.in: Likewise.
8746 * util/grub.d/10_kfreebsd.in: Likewise.
8747 * util/grub.d/10_linux.in: Likewise.
8748 * util/grub.d/10_netbsd.in: Likewise.
8749 * util/grub.d/10_windows.in: Likewise.
8750 * util/grub.d/20_linux_xen.in: Likewise.
8751 * util/grub.d/30_os-prober.in: Likewise.
8752
87532012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
8754
8755 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8756 "scope" with "body".
8757
7c8d0ce7
VS
87582012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8759
8760 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8761 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8762 prot_size and prot_file_size.
8763
49de079b
VS
87642012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8765
8766 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8767 All users updated. If easily=1 require raid-5/-6 to be full.
8768 (is_node_readable): Likewise.
8769 (scan_devices): Scan incomplete but readable LVs at the end.
8770 (grub_diskfilter_memberlist): Pull missing devices.
8771 (insert_array): Skip scanning until device is complete or scan is
8772 done otherwise.
8773 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8774 check.
8775 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8776 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8777
aff05d45
MG
87782012-03-03 Matthew Garrett <mjg@redhat.com>
87792012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8780
8781 Avoid EFI boot services when loading Linux.
8782
8783 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
8784 avoid_efi_bootservices. All users updated.
8785 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
8786 argument avoid_efi_bootservices. All users updated.
8787 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
8788 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
8789 align, min_align, relocatable, prefered_address. All users updated.
8790 Allocate avoiding boot services if kernel is relocatable.
8791 (grub_cmd_linux): Check if kernel is relocatable.
8792 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
8793 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
8794 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
8795 avoid_efi_boot_services.
8796 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
8797 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
8798 (linux_kernel_params): Likewise.
8799
3935dde2
MG
88002012-03-03 Matthew Garrett <mjg@redhat.com>
88012012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8802
8803 Use EDID on EFI.
8804
8805 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
8806 datasize_out.
8807 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
8808 modes. Set gop_handle.
8809 (grub_video_gop_get_edid): New function.
8810 (grub_gop_get_preferred_mode): Likewise.
8811 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
8812 (grub_video_efi_gop_adapter): Set .get_edid.
8813 * include/grub/efi/edid.h: New file.
8814 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
8815
32107ec0
VS
88162012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8817
8818 * util/grub-install.in: Load efivars unconditionally.
8819
e70a2c50
VS
88202012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * po/Rules-piglatin: Change suffix from .po-update-en to
8823 .po-update-en-piglatin.
8824
8f9cace1
VS
88252012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 Add a pig farm.
8828
8829 * po/piglatin.sed: New file.
8830 * po/en@piglatin.header: Likewise.
8831 * po/Rules-piglatin: Likewise.
8832 * po/README: Add en@piglatin to autogenerated languages.
8833
8f95d002
VS
88342012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
8837 "Command for ...".
8838 * grub-core/commands/hdparm.c (options): Use "Display" rather than
8839 "Check" since we don't check anything.
8840 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
8841 is 64-bit one.
8842 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
8843 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
8844 (grub_md_sha512_real): Likewise.
8845
805a8dcc
VS
88462012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8847
8848 * grub-core/commands/gptsync.c: Fix typographic quoting.
8849 * grub-core/commands/ieee1275/suspend.c: Likewise.
8850 * grub-core/commands/parttool.c: Likewise.
8851 * grub-core/commands/search_wrap.c: Likewise.
8852 * grub-core/commands/videoinfo.c: Likewise.
8853 * grub-core/gfxmenu/gui_label.c: Likewise.
8854 * grub-core/hello/hello.c: Likewise.
8855 * grub-core/kern/emu/main.c: Likewise.
8856 * grub-core/net/net.c: Likewise.
8857 * grub-core/normal/menu.c: Likewise.
8858 * grub-core/normal/menu_text.c: Likewise.
8859 * grub-core/normal/misc.c: Likewise.
8860 * util/grub-editenv.c: Likewise.
8861 * util/grub-install.in: Likewise.
8862 * util/grub-kbdcomp.in: Likewise.
8863 * util/grub-mkconfig.in: Likewise.
8864 * util/grub-mknetdir.in: Likewise.
8865 * util/grub-mkrescue.in: Likewise.
8866 * util/grub-mkstandalone.in: Likewise.
8867 * util/grub-reboot.in: Likewise.
8868 * util/grub-set-default.in: Likewise.
8869 * util/grub-setup.c: Likewise.
8870 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8871
40211ab8
VS
88722012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8875 * grub-core/commands/keystatus.c: Likewise.
8876 * grub-core/commands/loadenv.c: Likewise.
8877 * grub-core/commands/probe.c: Likewise.
8878 * grub-core/commands/regexp.c: Likewise.
8879 * grub-core/commands/true.c: Likewise.
8880 * grub-core/commands/videoinfo.c: Likewise.
8881 * grub-core/disk/cryptodisk.c: Likewise.
8882 * grub-core/disk/ldm.c: Likewise.
8883 * grub-core/disk/loopback.c: Likewise.
8884 * grub-core/disk/luks.c: Likewise.
8885 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8886 * grub-core/kern/disk.c: Likewise.
8887 * grub-core/kern/emu/hostdisk.c: Likewise.
8888
0c7d99c7
VS
88892012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8890
8891 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8892 * util/grub-install.in: Add missing quote in the comment.
8893
e7d2559b
VS
88942012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8895
8896 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8897 * grub-core/commands/lsmmap.c: Likewise.
8898 * grub-core/commands/minicmd.c: Likewise.
8899 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8900 * grub-core/commands/regexp.c: Likewise.
8901 * grub-core/gdb/gdb.c: Likewise.
8902 * grub-core/term/gfxterm.c: Likewise.
8903 * util/grub-mkconfig.in: Likewise.
8904 * util/grub-mkfont.c: Likewise.
8905 * util/grub-mklayout.c: Likewise.
8906 * util/grub-mknetdir.in: Likewise.
8907 * util/grub-mkrescue.in: Likewise.
8908 * util/grub.d/30_os-prober.in: Likewise.
8909
49ce9e50
VS
89102012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8911
8912 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8913 with "Direct color" and "Packed" with "Packed pixel".
8914 (grub_cmd_videoinfo): Simplify legend.
8915
e4b791fa
VS
89162012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8919 absolutely unclear error message.
8920
fd1265cb
VS
89212012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8922
8923 * util/grub-mkstandalone.in: Remove confusing leftover print.
8924
8822a8a0
VS
89252012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8928 comments.
8929 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8930 (GRUB_MOD_INIT): Likewise.
8931 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8932 VGA mode.
8933 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8934 comments.
8935 * util/grub-install.in (usage): Likewise.
8936 Spell ID in whole letters.
8937 Add missing ending dot.
8938 Quote variables.
8939 * util/grub-reboot.in: Fix capitalisation.
8940 * util/grub-set-default.in: Likewise.
8941
937fd0cc
VS
89422012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8943
8944 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8945 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8946 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8947 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8948 Disable -Werror for -Wdeprecated-declarations.
8949 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8950 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8951 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8952 (grub_util_get_grub_dev): Make luks handling dependent on
8953 HAVE_DEVICE_MAPPER and not __linux__.
8954 (get_win32_path): Fix format security.
8955 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8956 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8957 Don't try grub_find_zpool_from_dir.
8958 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8959 #ifdef-out paresdir.
8960
1bab1ae3
VS
89612012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * util/grub-pe2elf.c (usage): Add missing noreturn.
8964 (write_section_data): Rename name to shname to avoid shadowing.
8965 (write_symbol_table): Rename name to symname to avoid shadowing.
8966 Fix write_reloc_section call.
8967
ef023e42
VS
89682012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8969
8970 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8971 to ensure that it's after the last byte of .text.
8972
48afcb75
VS
89732012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8974
8975 * util/ieee1275/ofpath.c (my_isdigit): New function.
8976 (trailing_digits): Use my_isdigit.
8977 (strip_trailing_digits): Likewise.
8978
88d51eff
VS
89792012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8980
8981 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8982 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8983
17edc2ba
VS
89842012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8985
8986 * grub-core/kern/i386/pc/startup.S: Define __start.
8987
ad5518d7
VS
89882012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8989
8990 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8991 strip already transforms he format.
8992
9e95e1bf
VS
89932012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8994
8995 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8996
9cc3ee5c
VS
89972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8998
8999 * util/grub-install.in: Add missing gettext init.
9000 * util/grub-kbdcomp.in: Likewise.
9001 * util/grub-mkconfig.in: Likewise.
9002 * util/grub-mknetdir.in: Likewise.
9003 * util/grub-mkrescue.in: Likewise.
9004 * util/grub-mkstandalone.in: Likewise.
9005 * util/grub-reboot.in: Likewise.
9006 * util/grub-set-default.in: Likewise.
9007 * util/grub.d/00_header.in: Likewise.
9008 * util/grub.d/10_hurd.in: Likewise.
9009 * util/grub.d/10_windows.in: Likewise.
9010 * util/grub.d/30_os-prober.in: Likewise.
9011 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9012
49e08a06
VS
90132012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * po/Rules-swiss: Fix header comment.
9016
3809cb41
AV
90172012-02-29 Andreas Vogel <anvoit>
9018
9019 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
9020 resulted in leak of arguments.
9021
fa6ec573
VS
90222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9023
9024 * grub-core/boot/i386/pc/startup_raw.S: Use separate
9025 reed_solomon_size const definition instead of computing it since
9026 Apple assembler doesn't support the later.
9027
22899b9c
VS
90282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * gentpl.py (kernel): Rewrite Apple part.
9031
a132afc3
VS
90322012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * include/grub/kernel.h (FOR_MODULES): Check module magic.
9035
9d742bd4
VS
90362012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9037
9038 * util/grub-mkimagexx.c (locate_sections): Support non-standard
9039 ELF section gap.
9040 (load_image): Likewise.
9041
f04a9a21
VS
90422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9043
9044 * configure.ac: Fix a typo in previous commit.
9045
46cf439c
VS
90462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9047
9048 Don't add -Wl,-N on Apple platform.
9049
9050 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
9051 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
9052
c4c48c54
VS
90532012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9054
9055 * grub-core/Makefile.core.def (lzma_decompress): Use
9056 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
9057
31a12124
VS
90582012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * grub-core/genmod.sh.in: Rewrite the Apple part.
9061
4f3aa1af
VS
90622012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9063
9064 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
9065 comparison.
9066
7bd8b0c7
VS
90672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 * acinclude.m4 (grub_CHECK_PIC): New test.
9070 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
9071
97304d7c
VS
90722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
9075 to avoid the warning.
9076
fb883812
VS
90772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9078
9079 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
9080 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
9081 after. All users updated.
9082
a121c964
VS
90832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9084
9085 Use the common size routine in hostfs so we can read disks as well.
9086
9087 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
9088 (grub_util_get_fd_size): ... this. Return size in bytes.
9089 All users updated.
9090 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
9091 grub_util_get_fd_size.
9092
c66d6410
VS
90932012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
9096 Add blocksize retrieval.
9097
dfc8aeb0
VS
90982012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9099
9100 * configure.ac: Restore CFLAGS after efiemu check.
9101
403e25a5
VS
91022012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9103
9104 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
9105 Apple bug.
9106
382775d1
VS
91072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9108
9109 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
9110
6fd4e6e4
VS
91112012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9112
9113 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
9114 (grub_cmd_halt): Likewise.
9115
bea359d6
VS
91162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9117
9118 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
9119 for local arithmetics.
9120 Break %sp init into 2 instructions.
9121 Add 0 byte at the end.
9122
32eb6ee1
VS
91232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9124
9125 * grub-core/disk/diskfilter.c (read_segment): Initialise err
9126 before loops.
9127
e8377389
VS
91282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9129
9130 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
9131 for context.
9132
8cb17de7
VS
91332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9134
9135 * grub-core/disk/ldm.c (make_vg): Init part.name.
9136 (grub_ldm_detect): Silence spurious warning.
9137 (grub_util_is_ldm): Likewise.
9138
595717e6
VS
91392012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9140
9141 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
9142 sane value to avoid a spurious warning.
9143
c4b7e588
VS
91442012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9145
9146 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
9147 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
9148
59824957
VS
91492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9150
9151 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
9152 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
9153
70115b99
VS
91542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9155
9156 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
9157 hardcoding the relevant info.
9158
56733740
VS
91592012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
9162 missing const qualifiers.
9163 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
9164
43481481
VS
91652012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9166
9167 * util/getroot.c [__APPLE__]: Add missing includes.
9168 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
9169
3cb38f01
VS
91702012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9171
9172 * util/grub-mkimage.c (generate_image): Silence spurious warning.
9173
d9dbf11e
VS
91742012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9175
9176 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
9177 avoid conflicts.
9178
0c42a45d
VS
91792012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
9182
46c34eb0
VS
91832012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9184
9185 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
9186 and grub_file_close call.
9187
99ce1597
VS
91882012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 Add LZSS Mach-O support (needed for new xnu kernelcache).
9191
9192 * grub-core/Makefile.core.def (xnu): Add file lzss.c
9193 * grub-core/loader/lzss.c: New file.
9194 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
9195 on Mach-O open failure.
9196 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
9197 Don't free cmdsXX in uncompressedXX is set.
9198 (grub_macho_file): Init new fields.
9199 New argument is_64bit. All users updated.
9200 Handle compressed. Error out if no suitable architecture is found.
9201 Don't close file.
9202 (grub_macho_open): New argument is_64bit. All users updated.
9203 * grub-core/loader/macho32.c: Add defines for new fields.
9204 * grub-core/loader/macho64.c: Likewise.
9205 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
9206 (grub_macho_parse): Handle compressed.
9207 Defer actual processing if compressed.
9208 (grub_macho_cmds_iterate): Decompress if compressed. New argument
9209 "filename". All users updated.
9210 (grub_macho_size): New argument "filename". All users updated.
9211 (grub_macho_get_entry_point): Likewise.
9212 (grub_macho_load): Handle compressed.
9213 * include/grub/macho.h (grub_macho_lzss_header): New struct.
9214 (GRUB_MACHO_LZSS_OFFSET): New define.
9215 (grub_decompress_lzss): New proto.
9216 * include/grub/machoload.h (grub_macho_file): New fields to handle
9217 compressed.
9218 (grub_macho_contains_macho64): Remove proto.
9219 (grub_macho_contains_macho32): Likewise.
9220 * util/grub.d/30_os-prober.in: Use kernel cache if available.
9221
ebd17d6f
VS
92222012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9223
9224 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
9225
2702b4e4
VS
92262012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9227
9228 Fix make dist.
9229
9230 * Makefile.am (starfield_theme_files): New var.
9231 (starfield_DATA): Use starfield_theme_files.
9232 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
9233 Add bootcheck-related files.
9234 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
9235 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
9236 and font_char_metrics.txt.
9237 * grub-core/Makefile.core.def (kernel): Update extra_dist.
9238 (setjmp): Add lib/ia64/longjmp.S.
9239 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
9240 * po/POTFILES.in: Regenerate.
9241 * po/Rules-swiss: use DISTFILES.common.extra2 and not
9242 DISTFILES.common.extra1.
9243 * util/devicemap.c: Removed.
9244 * grub-core/lib/i386/relocator_backward.S: Likewise.
9245 * util/import_gcry.py: Remove unused files. Add extra_dist for
9246 ChangeLog.
9247
cf1adfdf
VS
92482012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9249
9250 * grub-core/gettext/gettext.c (grub_mofile_open): Call
9251 grub_gettext_delete_list before changing grub_gettext_max to avoid
9252 running out of array bounds.
9253
92542012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
9255
9256 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
9257 grub_vga_text_init/grub_vga_text_fini.
9258
cf1adfdf 92592012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
9260
9261 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
9262
541d92e9
VS
92632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9264
9265 * configure.ac: Bump to 2.00~beta0.
9266
7931dddf
VS
92672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
9270 missing initialisation.
9271
f1b16fa3
VS
92722012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
9275
83ddae23
VS
92762012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9277
9278 Support v2 xnu boot arguments.
9279
9280 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
9281 New argument fsbfreq_out.
9282 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
9283 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
9284 be used.
9285 * grub-core/loader/machoXX.c (grub_macho_load): New argument
9286 darwin_version.
9287 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
9288 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
9289 (grub_xnu_boot_params): Rename to ...
9290 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
9291 (grub_xnu_boot_params_v2): New struct.
9292
dc693fe6
VS
92932012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9294
9295 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
9296 zeroing of CRC field before computing CRC.
9297
5a6e39c2
VS
92982012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9299
9300 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
9301 Change order of allocations to decrease fragmentation.
9302
6c21f5d7
VS
93032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
9306
cfe456dc
CW
93072012-02-27 Colin Watson <cjwatson@ubuntu.com>
9308
9309 Use write-combining MTRR to speed up video with buggy BIOSes.
9310
9311 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
9312 (cpuid): New define.
9313 (rdmsr): Likewise.
9314 (wrmsr): Likewise.
9315 (mtrr_base): Likewise.
9316 (mtrr_mask): Likewise.
9317 (grub_vbe_enable_mtrr_entry): New function.
9318 (grub_vbe_enable_mtrr): Likewise.
9319 (grub_vbe_disable_mtrr): Likewise.
9320 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
9321 control off to BIOS.
9322 (grub_video_vbe_init): Fill mtrr.
9323 (grub_video_vbe_fini): Disable mtrr.
9324 (grub_video_vbe_get_info_and_fini): Likewise.
9325 (grub_video_vbe_setup): Enable mtrr.
9326
e3c78337
CW
93272012-02-27 Colin Watson <cjwatson@ubuntu.com>
9328
9329 * include/grub/partition.h (grub_partition_map): Change prototype of
9330 embed to take a maximum value for nsectors.
9331 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
9332 * include/grub/fs.h (grub_fs): Likewise.
9333 * grub-core/partmap/msdos.c (embed_signatures): New array.
9334 (pc_partition_map_embed): Check for and avoid sectors matching any
9335 of the signatures in embed_signatures, up to max_nsectors.
9336 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
9337 returned sector map to max_nsectors.
9338 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
9339 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
9340 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
9341 * util/grub-setup.c (setup): Allow for the embedding area being
9342 split into multiple blocklists. Tell dest_partmap->embed the
9343 maximum number of sectors we care about.
9344
93452012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9346
9347 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
9348 Specify blocklist_install and reserver_first_sector for all fs.
9349 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
9350 blocklists.
9351
984b973f
VS
93522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9353
9354 * util/grub-install.in: Clarify strings.
9355 Fix source dir check.
9356
f122e0d6
RL
93572012-02-27 Richard Laager <rlaager@wiktel.com>
9358
9359 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
9360 "zfs" and "fuse.zfs" as synonyms.
9361
071114bb
VS
93622012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9363
9364 * configure.ac: Put platform and target_cpu substitutions back since
9365 they are used for directories.
9366
817e6abc
RL
93672012-02-27 Richard Laager <rlaager@wiktel.com>
93682012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9369
9370 * util/grub.d/10_linux.in: Add ZFS-related arguments.
9371 * util/grub.d/20_linux_xen.in: Likewise.
9372
897b7419
RL
93732012-02-27 Richard Laager <rlaager@wiktel.com>
9374
9375 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
9376 with full paths.
9377
a414bd15
RL
93782012-02-27 Richard Laager <rlaager@wiktel.com>
9379
9380 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
9381 unescape.
9382
30ac48c4
VS
93832012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9384
9385 Don't use insecure popen in getroot.
9386
9387 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
9388 (exec_pipe): ... here.
9389 (find_root_devices_from_poolname): Use exec_pipe.
9390
53f13848
VS
93912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9392
9393 Remove platform and target_cpu replacement.
9394
9395 * configure.ac: Remove platform and target_cpu substitutions.
9396 * tests/util/grub-shell.in: Use modinfo.
9397 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
9398 explicitly.
9399
90cb2803
VS
94002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 Autodetect platform in grub-install but allow override.
9403
9404 * util/grub-install.in: Autodetect platform. Support --target and
9405 --directory. Read platform from modinfo.sh.
9406
b9136427
VS
94072012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 Support btrfs multi-volume probe.
9410
9411 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
9412 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
9413 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
9414 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
9415 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
9416 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
9417 grub_find_root_devices_from_btrfs if on btrfs.
9418
c36e5cd1
VS
94192012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9420
9421 Remove any awareness of *.c util files about target.
9422
9423 * Makefile.util.def (grub-setup): Split to ...
9424 (grub-bios-setup): ... and this.
9425 (grub-sparc64-setup): ... and this.
9426 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
9427 * docs/man/grub-setup.h2m: Split into ...
9428 * docs/man/grub-sparc64-setup.h2m: ... this.
9429 * docs/man/grub-bios-setup.h2m: ... and this.
9430 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
9431 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
9432 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
9433 (grub_target_addr_t): Remove.
9434 (grub_target_size_t): Remove.
9435 (grub_target_ssize_t): Remove.
9436 * util/grub-install.in: Use new grub-*-setup.
9437 * util/grub-mkimagexx.c (Elf_Word): New define.
9438 (Elf_Half): Likewise.
9439 (Elf_Section): Likewise.
9440 (ELF_ST_TYPE): Likewise.
9441 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
9442 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
9443
584b2f8a
VS
94442012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9445
9446 Replace grub_target_addr with more appropriate types.
9447
9448 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
9449 grub_target_addr with grub_addr.
9450 * grub-core/commands/iorw.c (grub_cmd_read): Replace
9451 grub_target_addr with grub_port.
9452 (grub_cmd_write): Likewise.
9453 * grub-core/commands/memrw.c (grub_cmd_read): Replace
9454 grub_target_addr with grub_addr.
9455 (grub_cmd_write): Likewise.
9456 * grub-core/video/efi_uga.c (find_line_len): Likewise.
9457
5a0dc6fb
VS
94582012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
9461 const qualifier for vendor_guid.
9462
786aff6e
VS
94632012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9464
9465 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
9466 const qualifier.
9467 (efiemu_memequal): Likewise.
9468 (find_variable): Likewise.
9469
49017b17
VS
94702012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9471
9472 Fix missing console prototype on qemu-mips.
9473
9474 * include/grub/mips/qemu_mips/console.h: New file.
9475
c5988629
MG
94762012-02-27 Matthew Garrett <mjg@redhat.com>
94772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9478
9479 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
9480 * include/grub/efi/efi.h: Likewise.
9481 * include/grub/efi/api.h: Add guid for EFI-specified variables.
9482 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
9483 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
9484 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
9485 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
9486 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
9487
e33f8d69
MG
94882012-02-27 Matthew Garrett <mjg@redhat.com>
9489
9490 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
9491
fb312cd9
VS
94922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9493
9494 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
9495 error.
9496
7134247c
VS
94972012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9498
9499 * configure.ac: Remove inappropriate use of program_transform_name
9500 on grubdir and bootdir but allow explicit specification of those
9501 variables.
9502
6a313124
VS
95032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9504
9505 * util/grub-mknetdir.in (grub_prefix): Removed.
9506 (subdir): Use @bootdirname@ and @grubdirname@.
9507
2311c5ca
VS
95082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9509
9510 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
9511
7d5d60f7
VS
95122012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9513
9514 * po/POTFILES.in: Regenerated.
9515
8151bc82
VS
95162012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9517
9518 Remove improper use of program_transform_name on pkglibrootdir.
9519
9520 * configure.ac (pkglibrootdir): Removed.
9521 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
9522 * util/grub-mkimage.c: Likewise.
9523
b4a6a533
VS
95242012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9525
9526 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
9527 warning.
9528
668f304f
VS
95292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9530
9531 * util/grub-install.in: Use file identifier if no UUID is available
9532 or user explicitly prompted for it.
9533
665f2341
NP
95342012-02-27 Navdeep Parhar <nparhar@gmail.com>
9535
9536 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
9537 (freebsd_get_zfs): New function.
9538 (grub_freebsd_boot): Pass zfs UUID.
9539 (grub_cmd_freebsd): Set zfs UUID.
9540
8151bc82 95412012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
9542
9543 * conf/Makefile.common (platformdir): Base on pkglibdir and not
9544 pkglibrootdir.
9545
e4c498a1
MG
95462012-02-27 Mike Gilbert <floppym@gentoo.org>
9547
9548 Add configure flag to control libzfs integration.
9549
9550 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
9551
1e9a9a3f
VS
95522012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
9555 device.
9556 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
9557 small devices.
9558
036985b8
VS
95592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9560
9561 Remove grub_{modname}_init and grub_{modname}_fini. They should never
9562 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
9563 be used on non-modules.
9564
9565 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
9566 Rename to grub_boot_init.
9567 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
9568 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
9569 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
9570 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9571 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9572 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9573 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9574 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9575 includes.
9576 (grub_machine_init): Remove empty inits.
9577 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9578 includes.
9579 (grub_machine_init): Remove empty inits.
9580 * grub-core/term/arc/console.c: Remove explicit proto.
9581 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9582 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9583 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9584 grub_at_keyboard_fini.
9585 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9586 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9587 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9588 grub_gfxterm_fini.
9589 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9590 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9591 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9592 grub_vgatext_fini.
9593 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9594 * grub-core/term/serial.c (GRUB_MOD_INIT)
9595 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9596 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9597 grub_serial_fini.
9598 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9599 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9600 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9601 grub_terminfo_fini.
9602 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9603 (GRUB_MOD_FINI): Likewise.
9604 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9605 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9606 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9607 grub_video_radeon_fuloong2e_fini.
9608 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9609 [LOONGSON]: Rename to grub_video_sis315pro_init.
9610 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9611 grub_video_sis315pro_fini.
9612 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9613 [LOONGSON]: Rename to grub_video_sm712_init.
9614 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9615 grub_video_sm712_fini.
9616 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9617 (grub_at_keyboard_fini): Likewise.
9618 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9619 Don't declare grub_{modname}_init.
9620 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9621 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9622 New proto.
9623 (grub_keylayouts_fini) [!EMU]: Likewise.
9624 * include/grub/serial.h (grub_serial_init) [!EMU]:
9625 New proto.
9626 (grub_serial_fini) [!EMU]: Likewise.
9627 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9628 New proto.
9629 (grub_terminfo_fini) [!EMU]: Likewise.
9630 * include/grub/video.h (grub_font_init) [!EMU]:
9631 New proto.
9632 (grub_font_fini) [!EMU]: Likewise.
9633 (grub_gfxterm_init) [!EMU]: Likewise.
9634 (grub_gfxterm_fini) [!EMU]: Likewise.
9635 (grub_video_sm712_init) [!EMU]: Likewise.
9636 (grub_video_sm712_fini) [!EMU]: Likewise.
9637 (grub_video_sis315pro_init) [!EMU]: Likewise.
9638 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9639 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9640 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9641
d5534665
VS
96422012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9643
9644 Make nand a prefix for nand devices.
9645
9646 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9647
10133b5f
VS
96482012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9649
9650 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9651 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9652
8e307a62
VS
96532012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * include/grub/env.h (grub_env_find): Remove prototype.
9656 * grub-core/kern/env.c (grub_env_find): Make static.
9657 (grub_env_set): Remove useless set.
9658
a4c65f34
VS
96592012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9660
9661 * grub-core/kern/i386/realmode.S: Remove useless align.
9662
d87893d5
VS
96632012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9664
9665 * include/grub/dl.h (grub_dl_load_file): Don't export.
9666
50159add
VS
96672012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9668
9669 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9670 grub_dprintf.
9671
b2582b84
VS
96722012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9675 grub_errors.
9676 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9677 not reloading whole superblock but only the part which is really needed.
9678 Remove useless grub_errors.
9679 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9680 grub_errors.
9681
e2a83395
VS
96822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9683
9684 Don't export grub_get_rtc.
9685
9686 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9687 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9688
e7d2a906
VS
96892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9690
9691 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9692
6cf1363b
VS
96932012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9694
9695 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 9696 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 9697
eece3349
VS
96982012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9699
9700 Remove prio_list.
9701
9702 * include/grub/list.h (grub_prio_list): Removed.
9703 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9704 GRUB_COMMAND_PRIO_MASK.
9705 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9706 GRUB_COMMAND_FLAG_ACTIVE.
9707 (grub_prio_list_insert): Removed.
9708 (grub_prio_list_remove): Likewise.
9709 (GRUB_AS_PRIO_LIST): Likewise.
9710 (GRUB_AS_PRIO_LIST_P): Likewise.
9711 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9712 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9713 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9714 * grub-core/kern/command.c (grub_register_command_prio): Inline
9715 the prio_list code.
9716 (grub_unregister_command): Likewise.
9717
94f064b4
VS
97182012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9719
9720 Fix interrupt mixup from previous commit.
9721
9722 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9723 (grub_realidt): New var.
9724 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9725 Load idt.
9726 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9727 New declaration.
9728 (grub_relocator16_boot): Set grub_relocator16_idt.
9729 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9730 (LOCAL(realidt)): ... this.
9731 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9732 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9733 (grub_realidt): New variable.
9734
27317084
VS
97352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9736
9737 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9738 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9739 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9740 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9741 Gettextize.
9742 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9743 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9744 * po/POTFILES.in: Regenerate.
9745
47b40053
VS
97462012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9747
9748 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9749 errors.
9750
2b343101
VS
97512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9752
9753 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9754 \0.
9755 (add_length): Likewise.
9756
ff27c3dd
LK
97572012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
97582012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9759
9760 GDB serial and backtrace support.
9761
9762 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9763 (prot_to_real): Likewise.
9764 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9765 * grub-core/Makefile.core.def (backtrace): New module.
9766 (gdb): Likewise.
9767 * grub-core/gdb/cstub.c: New file.
9768 * grub-core/gdb/gdb.c: Likewise.
9769 * grub-core/gdb/i386/idt.c: Likewise.
9770 * grub-core/gdb/i386/machdep.S: Likewise.
9771 * grub-core/gdb/i386/signal.c: Likewise.
9772 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 9773 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
9774 * include/grub/backtrace.h: Likewise.
9775 * include/grub/gdb.h: Likewise.
9776 * include/grub/i386/gdb.h: Likewise.
9777
97782012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
9779
9780 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9781 New function.
9782 (add_length): Likewise.
9783 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
9784 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
9785 proto.
9786 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
9787 __argp_get_display_len.
9788
ff27c3dd 97892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
9790
9791 $"..." support in scripts.
9792
9793 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
9794 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
9795 * grub-core/script/yylex.l: Likewise.
9796 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
9797 value.
9798
ff27c3dd 97992012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
9800
9801 * gentpl.py: Remove obsolete pkglib_DATA handling.
9802
ff27c3dd 98032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
9804
9805 Don't transform PACKAGE_TARNAME following a discussion on autoconf
9806 mailing list.
9807
9808 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
9809 * util/grub-kbdcomp.in: Likewise.
9810 * util/grub-mkconfig.in: Likewise.
9811 * util/grub-mkconfig_lib.in: Likewise.
9812 * util/grub-mknetdir.in: Likewise.
9813 * util/grub-mkrescue.in: Likewise.
9814 * util/grub-mkstandalone.in: Likewise.
9815 * util/grub-reboot.in: Likewise.
9816 * util/grub-set-default.in: Likewise.
9817 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9818
ff27c3dd 98192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
9820
9821 Remove GRUB_PREFIX.
9822
9823 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
9824 * util/grub.d/00_header.in: Compute prefix in the only place it's still
9825 used for backward compatibility.
9826
ff27c3dd 98272012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
9828
9829 Add new all_video module.
9830
9831 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
9832 * grub-core/Makefile.core.def (all_video): New module.
9833 * grub-core/genmoddep.awk: Generate dependency of all_video from
9834 video.lst.
9835 * grub-core/lib/fake_module.c: New file.
9836 * grub-core/normal/main.c (features): Add feature_all_video_module.
9837 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
9838 don't do explicit search again.
47454da5 9839 insmod all_video in load_video if available.
22c7ce85 9840
ff27c3dd 98412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
9842
9843 Another round of string clarification and adding TRANSLATORS comments.
9844
ff27c3dd 98452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
9846
9847 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
9848
ff27c3dd 98492012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
9850
9851 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9852 to grub_ssize_t.
9853 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9854 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9855
ff27c3dd 98562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
9857
9858 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9859 trailing newline implicitly. All users updated.
9860
ff27c3dd 98612012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
9862
9863 Implement serial on IEEE1275 and EFI.
9864
9865 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9866 on emu. Mention arc and emu as the only platforms without serial
9867 support.
9868 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9869 ieee1275 platforms.
9870 * grub-core/term/efi/serial.c: New file.
9871 * grub-core/term/ieee1275/serial.c: Likewise.
9872 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9873 specification if no ns8250 driver is available.
9874 (grub_cmd_serial): Likewise.
9875 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9876 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9877 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9878 (grub_efi_parity_type_t): New type.
9879 (grub_efi_stop_bits_t): Likewise.
9880 (grub_efi_serial_io_interface): New struct.
9881 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9882 available for all interfaces.
9883 Add EFI and IEEE1275 fields.
9884 (grub_ofserial_init): New proto.
9885 (grub_efiserial_init): Likeiwse.
9886 * util/grub.d/00_header.in: Don't check for the presence of serial
9887 module.
9888
ff27c3dd 98892012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
9890
9891 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9892 name as if it was an alias.
9893
114076ef
VS
98942012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9895
9896 * grub-core/commands/lsacpi.c (options): Fix typo.
9897
6a656b0e
VS
98982012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9899
9900 Convert grub-emu to argp.
9901
9902 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9903 emu.
9904 * util/argp_common.c: Rename to ...
9905 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9906 Add missing includes.
9907 * grub-core/kern/emu/main.c: Convert to argp.
9908 * po/POTFILES.in: Regenerate.
9909 * util/grub-install.in (usage): Make first letter lowcase in messages
9910 for uniformity.
9911 * util/grub-setup.c (options): Likewise.
9912
1e3f8ae8
VS
99132012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9914
9915 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9916 Put back accidently commented-out code.
9917
ed167a80
VS
99182012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9919
9920 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9921 loop check using Brent algorithm.
9922 (grub_hfsplus_btree_search): Likewise.
9923
6753c0ec
VS
99242012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9925
9926 * util/grub-install.in: Fix usage of wrong device for PreP install.
9927
4e27343f
VS
99282012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9929
9930 * conf/Makefile.common (CFLAGS_GNULIB): Add
9931 -Wno-unsafe-loop-optimizations.
9932 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9933 on tools.
9934 * grub-core/commands/legacycfg.c: Add pragma to skip
9935 -Wunsafe-loop-optimizations.
9936 (check_password_md5_real): Fix loop counter type.
9937 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9938 reading.
9939 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9940 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9941 loop condition.
9942 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9943 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9944 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9945 condition.
9946 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9947 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9948 avoid possible infinite loops.
9949 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9950 and -Wunsafe-loop-optimizations.
9951 * grub-core/script/yylex.l: Likewise.
9952 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9953 (print_glyphs): Avoid infinite loops.
9954 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9955
697f18b0
GS
99562012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9957
9958 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9959 to avoid infinite loop.
9960 (disp_acpi_rsdt_table): Likewise.
9961
274416e8
VS
99622012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9963
9964 * grub-core/font/font.c (grub_font_load): Add support for default
9965 path for fonts ($prefix/fonts).
9966 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9967 for checking if string is a path.
9968 * grub-core/normal/main.c (features): Add feature_default_font_path.
9969 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9970 * util/grub.d/00_header.in: Use default directory if possible.
9971 * util/grub-install.in: Install unicode.pf2.
9972
b3e08622
VS
99732012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9974
9975 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9976 * po/Rules-swiss: New file.
9977 * po/swiss.sed: Likewise.
9978
fe42ce09
VS
99792012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9980
9981 * grub-core/fs/btrfs.c (find_device): Fix typos.
9982 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9983 * util/grub-mkrelpath.c (argp_parser): Likewise.
9984 Reported by: Yuri Chornoivan.
9985
72f1d065
DO
99862012-02-23 Dalet Omega <daletomega@gmail.com>
9987
9988 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9989 for usual informative messages.
9990
c5884973
DO
99912012-02-23 Dalet Omega <daletomega@gmail.com>
9992
9993 Starfield theme.
9994
9995 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9996 * conf/Makefile.common: Define starfielddir.
9997 * configure.ac: Configure starfield.
9998 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9999 * themes/starfield/README: Likewise.
10000 * themes/starfield/blob_w.png: Likewise.
10001 * themes/starfield/boot_menu_c.png: Likewise.
10002 * themes/starfield/boot_menu_e.png: Likewise.
10003 * themes/starfield/boot_menu_n.png: Likewise.
10004 * themes/starfield/boot_menu_ne.png: Likewise.
10005 * themes/starfield/boot_menu_nw.png: Likewise.
10006 * themes/starfield/boot_menu_s.png: Likewise.
10007 * themes/starfield/boot_menu_se.png: Likewise.
10008 * themes/starfield/boot_menu_sw.png: Likewise.
10009 * themes/starfield/boot_menu_w.png: Likewise.
10010 * themes/starfield/slider_c.png: Likewise.
10011 * themes/starfield/slider_n.png: Likewise.
10012 * themes/starfield/slider_s.png: Likewise.
10013 * themes/starfield/src/blob_nw.xcf: Likewise.
10014 * themes/starfield/src/bootmenu/: Likewise.
10015 * themes/starfield/src/bootmenu/center.xcf: Likewise.
10016 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
10017 * themes/starfield/src/bootmenu/side.xcf: Likewise.
10018 * themes/starfield/src/slider_c.xcf: Likewise.
10019 * themes/starfield/src/slider_n.xcf: Likewise.
10020 * themes/starfield/src/slider_s.xcf: Likewise.
10021 * themes/starfield/src/terminalbox/: Likewise.
10022 * themes/starfield/src/terminalbox/center.xcf: Likewise.
10023 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
10024 * themes/starfield/src/terminalbox/side.xcf: Likewise.
10025 * themes/starfield/starfield.png: Likewise.
10026 * themes/starfield/terminal_box_c.png: Likewise.
10027 * themes/starfield/terminal_box_e.png: Likewise.
10028 * themes/starfield/terminal_box_n.png: Likewise.
10029 * themes/starfield/terminal_box_ne.png: Likewise.
10030 * themes/starfield/terminal_box_nw.png: Likewise.
10031 * themes/starfield/terminal_box_s.png: Likewise.
10032 * themes/starfield/terminal_box_se.png: Likewise.
10033 * themes/starfield/terminal_box_sw.png: Likewise.
10034 * themes/starfield/terminal_box_w.png: Likewise.
10035 * themes/starfield/theme.txt: Likewise.
10036
17d73325
VS
100372012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
10038
10039 * util/grub.d/00_header.in: Add missing export theme.
10040
dbebaf92
VS
100412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10042
10043 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
10044 already included.
10045 Reported by: Eren D.
10046
3d68bffb
VS
100472012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10048
10049 * conf/Makefile.common (grubdatadir): Removed.
10050 (Makefile.am): Move eveything grubdata to pkgdata.
10051
4b59234d
VS
100522012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10053
10054 * grub-core/commands/acpihalt.c (get_sleep_type):
10055 Remove unused variable.
10056
463dcadc
VS
100572012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
10060 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
10061 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
10062 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
10063 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
10064 i18n with gettext no-op.
10065 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
10066 GRUB_ACPI_OPCODE_STRING_CONST.
10067 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
10068 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
10069
e5b90c82
VS
100702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10071
10072 * po/POTFILES.in: Regenerate.
10073
2a704ca9
VS
100742012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10075
10076 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
10077 -Wno-error=missing-noreturn.
10078
84f9d341
VS
100792012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10080
10081 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
10082 condition to avoid possibly infinite loops.
10083 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
10084 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
10085
d46683f9
VS
100862012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10087
10088 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
10089 condition to avoid possibly infinite loops.
10090
c44866b2
VS
100912012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10092
10093 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
10094 on show_error.
10095
96790539
VS
100962012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10097
10098 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
10099
1ba7e295
VS
101002012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10101
10102 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
10103
21ffe8f1
VS
101042012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10105
10106 * util/bin2h.c (usage): Add missing attribute noreturn.
10107
0ccb6b3c
VS
101082012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10109
10110 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
10111 if the size isn't divisible by 512.
10112
b00d7fb6
VS
101132012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10114
10115 Make list_push and list_remove functions rather than inline functions
10116 to decrease size and avoid aliasing violations.
10117
10118 * include/grub/list.h (grub_list_push): Move to ...
10119 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
10120 * include/grub/list.h (grub_list_remove): Move to ...
10121 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
10122
9d369087
VS
101232012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10124
10125 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
10126 and -Wunused-result.
10127
af0250d9
VS
101282012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10129
10130 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
10131 Reported by: Seth Goldberg
10132
aad32b14
VS
101332012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10134
10135 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
10136
ac96441c
ST
101372012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10138
10139 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
10140 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
10141 command line.
10142 * docs/grub.texi (Simple configuration): Document
10143 GRUB_CMDLINE_GNUMACH.
10144
101452012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
10146
10147 * conf/Makefile.common (platform_SCRIPTS): New variable.
10148 (platform_PROGRAMS): Likewise.
10149 * gentpl.py: Mark *,module and *.image for install.
10150 * grub-core/gdb_grub.in: Add a notice of expected environment.
10151 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
10152 (gmodule.pl): Likewise.
10153
ac96441c 101542012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
10155
10156 Replace grub_checkkey with grub_getkey_noblock.
10157
10158 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
10159 (grub_getkey_noblock): ... this. All users updated.
10160
ac96441c 101612012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
10162
10163 * grub-core/kern/emu/console.c: Move to ...
10164 * grub-core/term/emu/console.c: ...here.
10165 (grub_ncurses_getkey): Fix return value if no key is detected.
10166
e51b5666
VS
101672012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10168
10169 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
10170 (grub_unit_test_fini): Likewise.
10171 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
10172
101732012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10174
10175 * include/grub/test.h (GRUB_UNIT_TEST)
10176
d9a62292
VS
101772012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10178
10179 * grub-core/script/execute.c (grub_script_break): Clarify logic.
10180 Better error handling.
10181 (grub_script_return): Likewise.
10182 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
10183
77c9182f
VS
101842012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10185
10186 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
10187 rimplicit redifinition.
10188
edb13cf9
VS
101892012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10190
10191 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
10192 GRUB.
10193
a9e9dc7c
VS
101942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10195
10196 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
10197 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
10198 prompt here.
10199
b4ba8e02
VS
102002012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10201
10202 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
10203 as GRUB_ERR_BUG. Don't malloc if no device is available.
10204
dded5540
VS
102052012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10206
10207 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
10208 Mark calling with invalid term as GRUB_ERR_BUG.
10209
0cf69874
VS
102102012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10211
10212 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
10213 packets rather than raising an error.
10214
59bfe502
VS
102152012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10216
10217 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
10218 in if.
10219
db5fc596
VS
102202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10221
10222 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
10223 diagnostic to dprintf.
10224 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10225
e4b7f404
VS
102262012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10227
10228 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
10229 device name.
10230
e7b02f9e
VS
102312012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10232
10233 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
10234 (grub_ntfs_iterate_dir): Likewise.
10235
0331e102
VS
102362012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10237
10238 Efiemu stylistic fixes and gettext.
10239
10240 * grub-core/efiemu/i386/loadcore32.c
10241 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
10242 * grub-core/efiemu/i386/loadcore64.c
10243 (grub_arch_efiemu_relocate_symbols64): Likewise.
10244 * grub-core/efiemu/i386/pc/cfgtables.c
10245 (grub_machine_efiemu_init_tables): Likewise.
10246 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
10247 (grub_efiemu_loadcore_initXX): Add a filename argument.
10248 All users updated.
10249 Improved error message.
10250 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
10251 Add a filename argument.
10252 All users updated.
10253 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
10254 Reclassify double relocation as GRUB_ERR_BUG.
10255
306fc074
VS
102562012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10257
10258 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
10259 handling.
10260
794d8ef2
VS
102612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10262
10263 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
10264 on partition.
10265
102662012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
10267
10268 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
10269
794d8ef2 102702012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
10271
10272 Improve string. Gettextize.
10273
78dde88e
VS
102742012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10275
10276 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
10277 utils.
10278 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
10279
4786a90f
VS
102802012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10281
10282 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
10283 [GRUB_UTIL]: New function.
10284 (insert_array) [GRUB_UTIL]: Store partmaps.
10285 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
10286 partmaps.
10287 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
10288 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
10289 (probe_abstraction): Print diskfilter and not raid.
10290 Reported by: Lennart Sorensen
10291
0b6225bd
VS
102922012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10293
10294 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
10295 * util/grub-mkimagexx.c (MASK3): New define.
10296 (add_value_to_slot_20b): Use MASK3.
10297 (add_value_to_slot_21): Likewise.
10298 (relocate_addresses): Fix format specification.
10299 (load_image): Explicitly init symtab_section.
10300
b055f8f6
VS
103012012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10302
10303 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
10304 (grub_util_biosdisk_get_grub_dev): Fix format specification.
10305
b77c2fb7
VS
103062012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10307
10308 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
10309 on powerpc.
10310 Reported by: Lennart Sorensen
10311
e3ec28ab
VS
103122012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10313
10314 * gentpl.py: Add missing license header.
10315 * docs/grub.texi: Update copyright year.
10316
c8d9ead6
GS
103172012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10318
10319 Source grub-mkconfig_lib from the build directory at build time.
10320 Suggested by: Vladimir Serbinenko.
10321
10322 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
10323 * util/grub-install.in: Define pkgdatadir if not already set, and source
10324 grub-mkconfig_lib from there.
10325 * util/grub-kbdcomp.in: Likewise.
10326 * util/grub-mkconfig.in: Likewise.
10327 * util/grub-mknetdir.in: Likewise.
10328 * util/grub-mkrescue.in: Likewise.
10329 * util/grub-mkstandalone.in: Likewise.
10330 * util/grub-reboot.in: Likewise.
10331 * util/grub-set-default.in: Likewise.
10332 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10333
ebcecdf1
VS
103342012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10335
10336 Increase warning level.
10337
10338 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
10339 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
10340 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
10341 (TARGET_CFLAGS): Likewise.
10342 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
10343 * grub-core/Makefile.core.def (decompressor_xz): Add
10344 -Wno-unreachable-code.
10345 (normal): Add -Wno-redundant-decls.
10346 (xzio): Add -Wno-unreachable-code.
10347 (lzopio): Add -Wno-redundant-decls -Wno-error.
10348 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
10349 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
10350 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
10351 * grub-core/kern/dl.c: Add exception to -Wcast-align.
10352 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
10353 * grub-core/kern/i386/coreboot/init.c: Add exception to
10354 -Wsuggest-attribute=noreturn.
10355 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
10356 * grub-core/kern/ia64/dl_helper.c: Likewise.
10357 * grub-core/kern/mips/dl.c: Likewise.
10358 * grub-core/kern/sparc64/dl.c: Likewise.
10359 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
10360 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
10361 (memcmp): Likewise.
10362 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
10363 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
10364 * grub-core/loader/mips/linux.c: Likewise.
10365 * grub-core/loader/multiboot_elfxx.c: Likewise.
10366 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
10367 * grub-core/video/sm712.c: Add exception to -Wcast-align.
10368 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
10369 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
10370 fixme.
10371 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10372 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
10373 Fix prototype.
10374
37bb97fe
VS
103752012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10376
10377 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
10378 address.
10379
29a3550b
VS
103802012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10381
10382 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10383 Avoid improper use of strings.
10384 (grub_cmd_legacy_initrdnounzip): Likewise.
10385
dfdffd0d
VS
103862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10387
10388 * include/grub/emu/misc.h (grub_util_warn): Add missing format
10389 attribute.
10390 (grub_util_info): Likewise.
10391 (grub_util_error): Likewise.
10392
102fae4a
VS
103932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10394
10395 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
10396 * util/grub-fstest.c (fstest): Likewise.
10397
7e94d044
VS
103982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
10401 (grub_md_sha512_real): Likewise.
10402 (grub_util_get_geli_uuid): Likewise.
10403 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
10404 (grub_util_biosdisk_open): Fix format specification.
10405 Respect format security.
10406 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
10407 (xrealloc): Likewise.
10408 (xasprintf): Likewise.
10409
5ebd9769
VS
104102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10411
10412 * util/import_gcry.py: Include grub/crypto.h in init.c.
10413
495fc8c1
VS
104142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
10417 (generate_image): Make prefix a const char *.
10418 Fix format specifications. Respect format security.
10419 Avoid void * arithmetics.
10420 Avoid shadowing.
10421 (argp_parser): Remove unused variable. Respect format security.
10422 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
10423 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
10424 (count_funcs): Remove unused variable.
10425 (relocate_addresses): Fix format specification.
10426 Disable x86-64 with elf32. Remove unused variables.
10427 (add_fixup_entry): Avoid shadowing.
10428 (make_reloc_section): Fix format specification.
10429 Use assert.
10430 (locate_sections): Fix format specifications.
10431 (load_image): Avoid shadowing.
10432
043c2ea3
VS
104332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10434
10435 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
10436 Fix format specifications. Respect format security.
10437 Don't translate already translated grub_errmsg.
10438 (argp_parser): Remove unused variable
10439
3ec65a81
VS
104402012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
10443
a4d9fe4a
VS
104442012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10445
10446 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
10447 (main): Likewise. Use xmalloc. Respect format security.
10448
15b81d49
VS
104492012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
10452 a const char *.
10453 (argp_parser): Remove unused variable.
10454
31731fc0
VS
104552012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10456
10457 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
10458 (add_pixel): Make static.
10459 (add_font): Likewise.
10460 (write_string_section): Make name and str a const char *.
10461 (write_be16_section): Make name a const char *.
10462 (print_glyphs): Make static.
10463 (write_font_ascii_bitmap): Likewise.
10464 (write_font_width_spec): Likewise.
10465 (write_font_pf2): Likewise.
10466 (argp_parser): Remove unused variable.
10467 Respect format security.
10468 (main): Avoid shadowing. Respect format security.
10469
0809527b
VS
104702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * util/grub-editenv.c (argp_parser): Make static.
10473 (create_envblk_file): Use xmalloc.
10474 (open_envblk_file): Likewise.
10475 Resepect format security.
10476 (set_variables): Respect format security.
10477
45b0c8b7
VS
104782012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10479
10480 * util/getroot.c (grub_find_device): Respect format security.
10481 (get_mdadm_uuid): Remove unused variable.
10482 (grub_util_pull_device): Dont call gettext on already translated
10483 grub_errmsg.
10484 (find_system_device): Remove unused variable.
10485 (grub_util_get_grub_dev): Likewise.
10486 (grub_make_system_path_relative_to_its_root): Respect format security.
10487
1b024b4e
VS
104882012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10489
10490 * util/grub-fstest.c (execute_command): Make first argument
10491 a const char *.
10492 (read_file): Avoid shadowing.
10493 Reuse underlying error message if device open fails.
10494 (cmd_cmp): Respect format security.
10495 (root): Make const char *.
10496 (fstest): Remove args argument and use global copy.
10497 Respect format security.
10498 (argp_parser): Make static.
10499 (main): Make default_root const char *.
10500
5d1d4e28
VS
105012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10502
10503 * util/grub-mount.c (root): Make const char *.
10504 (execute_command): Make first argument a const char *.
10505 (fuse_init): Respect format security.
10506 (argp_parser): Make static. Remove unused variable.
10507 (main): Make default_root a const char *.
10508 Respect format security.
10509
36eb7379
VS
105102012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10511
10512 * util/grub-probe.c (probe): Don't call gettext on already translated
10513 grub_errmsg.
10514 Remove unused variables.
10515 (argp_parser): Remove unused variable.
10516
76fb2ea9
VS
105172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10518
10519 * util/grub-script-check.c (argp_parser): Remove unused variable.
10520 (main): Rename read to curread to avoid shadowing.
10521
56c98584
VS
105222012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10523
10524 * util/misc.c (grub_util_write_image_at): Fix format specification.
10525 (grub_util_write_image): Likewise.
10526 (grub_script_execute_argument_to_string): Removed (unused).
10527 (grub_script_execute_menuentry): Likewise.
10528 (grub_putchar): Likewise.
10529
164ebb48
VS
105302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10531
10532 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
10533 (FUNCTION) [GRUB_UTIL]: Likewise.
10534 (VARIABLE) [GRUB_UTIL]: Likewise.
10535
44318d61
VS
105362012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10537
10538 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
10539 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
10540
31a26002
VS
105412012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10542
10543 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
10544 buffer.
10545
105462012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10547
10548 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
10549 (LzmaEnc_SaveState): Removed (unused).
10550 (LzmaEnc_RestoreState): Likewise.
10551 (LzmaEnc_InitPriceTables): Made static.
10552 (LzmaEnc_Construct): Likewise.
10553 (LzmaEnc_FreeLits): Likewise.
10554 (LzmaEnc_Destruct): Likewise.
10555 (LzmaEnc_Init): Likewise.
10556 (LzmaEnc_InitPrices): Likewise.
10557 (LzmaEnc_Finish): Likewise.
10558 (LzmaEnc_PrepareForLzma2): Removed (unused).
10559 (LzmaEnc_MemPrepare): Likewise.
10560 (LzmaEnc_GetNumAvailableBytes): Likewise.
10561 (LzmaEnc_GetCurBuf): Likewise.
10562 (LzmaEnc_CodeOneMemBlock): Likewise.
10563
6fa67967
VS
105642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10565
10566 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
10567 (grub_util_ldm_embed): Likewise.
10568
9a7428e6
VS
105692012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10570
10571 * util/grub-editenv.c (print_var): Rename name to varname to
10572 avoid shadowing.
10573 (main): Rename index to curindex to avoid shadowing.
31a26002 10574 Make filename a const char *.
9a7428e6 10575
4f96abd1
VS
105762012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10577
10578 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10579 to arg_getline to avoid shadowing.
10580
44d10dad
VS
105812012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10582
10583 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10584 disk_ to avoid shadowing.
10585
340ba63e
VS
105862012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10587
10588 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10589 curindex to avoid shadowing.
10590 Make static.
10591 (MatchFinder_GetNumAvailableBytes): Make static.
10592
22965bce
VS
105932012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10594
10595 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10596 avoid shadowing.
10597
7b5784d4
VS
105982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10599
10600 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10601 argument from encrypt to do_encrypt to avoid shadowing.
10602
6f48ca01
VS
106032012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10604
10605 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10606 incorrect nesting of #if's.
10607
a4ea2dff
VS
106082012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10609
10610 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10611 checks which are always false on some platforms.
10612 (grub_cmd_lsacpi): Likewise.
10613 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10614 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10615 Likewise.
10616
def9fc1b
VS
106172012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10618
10619 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10620 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10621
a67b2a04
VS
106222012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10623
10624 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10625 re_dfa_t to avoid breaking alignment invariants.
10626 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10627 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10628
44c6828d
VS
106292012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10630
10631 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10632 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10633
bebe0dd0
VS
106342012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10635
10636 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10637 Fix declaration.
10638
a9cdb3cf
VS
106392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10640
10641 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10642 conserve alignment invariants.
10643 (grub_ehci_ehcc_read16): Likewise.
10644 (grub_ehci_oper_read32): Likewise.
10645 (grub_ehci_oper_write32): Likewise.
10646 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10647 Conserve alignment invariants.
10648
ccc3b1b8
VS
106492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10652 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10653 declarations.
10654
987fbd95
VS
106552012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10656
10657 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10658 Remove unused variable.
10659
0df363f3
VS
106602012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10661
10662 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10663 Remove set in if.
10664
b2c0c4a6
VS
106652012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10666
10667 * include/grub/net.h: Remove double declarations.
10668
690c531f
VS
106692012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10670
10671 Remove "payload" command in ia64 Linux loader since I couldn't
10672 find any evidence of it being used for anything.
10673 Replace "relocate" command with an environment variable
10674
10675 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10676 fields.
10677 (ia64_boot_payload): Removed.
10678 (last_payload): Likewise.
10679 (RELOCATE_OFF): Likewise.
10680 (RELOCATE_ON): Likewise.
10681 (RELOCATE_FORCE): Likewise.
10682 (relocate): Likewise.
10683 (free_pages): Don't free payloads.
10684 (grub_load_elf64): Use common error messages.
10685 Use "linux_relocate" variable.
10686 Increase the space after boot_params.
10687 (grub_cmd_payload): Removed.
10688 (grub_cmd_relocate): Likewise.
10689 (grub_cmd_fpswa): Improve messages.
10690 (cmd_payload): Removed.
10691 (cmd_relocate): Likewise.
10692 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10693 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10694
01783768
VS
106952012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10696
10697 Convert UHCI to DMA framework.
10698
10699 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10700 (grub_uhci_pci_iter): Fill new members
10701 (grub_alloc_td): Use P2V and V2P functions.
10702 (grub_free_queue): Likewise.
10703 (grub_alloc_qh): Likewise.
10704 (grub_uhci_setup_transfer): Likewise.
10705 (grub_uhci_check_transfer): Likewise.
10706
43206939
VS
107072012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10708
10709 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10710 Remove assignment in if while on it.
10711
571e140e
VS
107122012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10713
10714 * util/grub-mkstandalone.in: Fix modules directory.
10715
a9d96eeb
VS
107162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10717
10718 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10719 on i386-pc target.
10720 (argp_parser): Accept "auto" as compression specification.
10721
e4e37e8d
VS
107222012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10723
10724 Fix `help' with unloaded modules.
10725
10726 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10727 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10728 (grub_dyncmd_dispatcher): Small stylistic fix.
10729 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10730 explicit help is requested.
10731
e1ea3ade
VS
107322012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10733
10734 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10735 Explicitly init restart while on it.
10736
27556881
VS
107372012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10738
10739 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10740 uninited variable.
10741
d65f6b36
VS
107422012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10743
10744 * util/grub-mknetdir.in: Use . rather than source for POSIX
10745 compatibility.
10746
0a1e473c
VS
107472012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10748
10749 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10750
ce6647c8
VS
107512012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10752
10753 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10754 variable.
10755
66747894
VS
107562012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10757
10758 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10759 without quotes.
10760
71645f6e
VS
107612012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10762
10763 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10764
0e1c1f61
VS
107652012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10766
10767 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10768 iteration of partitions.
10769
9c4b5c13
VS
107702012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10771
10772 Improve gettext support. Stylistic fixes and error handling fixes while
10773 on it.
10774
215c90cb
VS
107752012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10776
10777 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10778 part. Instead setup the correct stack in RM.
10779 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10780 for stack.
10781 * include/grub/i386/relocator_private.h: New file.
10782
b5c1f9bf
VS
107832012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10784
10785 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
10786 argument.
10787 * util/grub-fstest.c (options): Add missing DEVICE part.
10788
b525fd83
VS
107892012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 Clarify and unify messages.
10792
10793 * grub-core/commands/hashsum.c (options): Unify messages.
10794 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
10795 literal-only message as translatable.
10796 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
10797 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
10798 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
10799 commands.
10800 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
10801 key, not the key used to unlock. Clarify what it's used for.
10802 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
10803 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
10804 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
10805 * util/grub-editenv.c (options): Unify "verbose" message.
10806 * util/grub-fstest.c (read_file): Unify error message.
10807 (fstest): Add quotes around commands.
10808 (options): Unify "verbose" message.
10809 * util/grub-install.in: Add quotes around variable name.
10810 * util/grub-kbdcomp.in: Unify error message.
10811 * util/grub-mkfont.c (main): Likewise.
10812 * util/grub-mkrescue.in: Likewise.
10813 * util/grub-mklayout.c (options): Unify "verbose" message.
10814 * util/grub-mkstandalone.in: Unify help and verbose messages.
10815 * util/grub-mount.c (options): Unify "verbose" message.
10816 * util/grub-probe.c (options): Likewise.
10817 * util/grub-script-check.c (options): Likewise.
10818 * util/grub-setup.c (setup): Unify no-terminator message.
10819 (options): Use DEVICE and not DEV.
10820 Unify "verbose" message.
10821 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
10822
0ae70393
VS
108232012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10824
10825 Improve and unify messages.
10826
10827 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
10828 name. All users updated.
10829 Print filename in error.
10830 (read_device_map): Print filename in error.
10831 * util/getroot.c (grub_guess_root_devices): Print filename in error.
10832 (grub_util_get_os_disk): Likewise.
10833 (grub_util_biosdisk_get_grub_dev): Likewise.
10834 (grub_util_check_block_device): Likewise.
10835 (grub_util_check_char_device): Likewise.
10836 (grub_make_system_path_relative_to_its_root): Likewise.
10837 * util/grub-editenv.c (create_envblk_file): Likewise.
10838 (open_envblk_file): Likewise.
10839 (write_envblk): Likewise.
10840 * util/grub-fstest.c (cmd_cp): Likewise.
10841 (cmd_cat): Likewise.
10842 (cmd_cmp): Likewise.
10843 * util/grub-menulst2cfg.c (main): Likewise.
10844 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
10845 (write_font_width_spec): Likewise.
10846 (write_font_pf2): Likewise.
10847 * util/grub-mkimage.c (generate_image): New argument outname.
10848 All users updated.
10849 Remove unreacheable message.
10850 (options): Unify messages.
10851 (help_filter): Likewise.
10852 * util/grub-mklayout.c (usage): Removed (unused).
10853 (main): Print filename in error.
10854 * util/grub-mkrescue.in: Fix wrong quoting.
10855 * util/grub-setup.c (setup): Print filename in error.
10856 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10857 (check_sas): Likewise.
10858 * util/misc.c (grub_util_get_fp_size): Removed.
10859 (grub_util_get_image_size): Print filename in error.
10860 (grub_util_read_at): Removed.
10861 (grub_util_read_image): Print filename in error.
10862 (grub_util_load_image): Likewise.
10863 (grub_util_write_image_at): New argument filename. All users updated.
10864 Print filename in error.
10865 (grub_util_write_image): New argument filename. All users updated.
10866 Print filename in error.
10867 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10868 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10869
0a96117d
VS
108702012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * grub-core/Makefile.core.def (pxechain): New module.
10873 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10874 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10875 function.
10876 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10877 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10878
aca002f7
VS
108792012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10882 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10883 * include/grub/err.h (grub_error_saved): New struct.
10884 (grub_errmsg): Make array size explicit.
10885 * include/grub/misc.h (grub_error_save): New function.
10886 (grub_error_load): Likewise.
10887 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10888 (grub_error_push): Update `errno' member name.
10889 (grub_error_pop): Likewise
10890 * grub-core/net/tftp.c (tftp_data): New member save_err.
10891 (tftp_receive): Save error.
10892 (tftp_open): Restore error.
10893
a51dab13
VS
108942012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10895
10896 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10897 to real mode down to execute A20-related code in protected mode as
10898 intended.
10899
eb6e6649
GS
109002012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10901
10902 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10903 NULL when the argument `level' has an unexpected value.
10904
92cd0f6e
VS
109052012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 Move platform-dependent files from $prefix to $prefix/$platform.
10908
10909 * config.h.in (GRUB_TARGET_CPU): New definition.
10910 (GRUB_PLATFORM): Likewise.
10911 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10912 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10913 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10914 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10915 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10916 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10917 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10918 * grub-core/normal/term.c (read_terminal_list): Likewise.
10919 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10920 $prefix/locale.
10921 (grub_gettext_init_ext): Likewise.
10922 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10923 grub_platform.
10924 * util/grub-install.in: Update directories.
10925 * util/grub-mknetdir.in: Likewise.
10926 * util/grub-mkrescue.in: Likewise.
10927
db606889
VS
109282012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10929
10930 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10931 grub_error framework. All users updated.
10932
c39992a4
VS
109332012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10934
10935 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10936 lists (by always binsearching), improve caching (cache strings
10937 used for binsearch, not only results), improve
10938 maintainability (by using more structured binary search) and correct
10939 error handling.
10940
1e5ec32f
VS
109412012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10942
10943 * grub-core/script/execute.c (grub_script_return): Fix warning.
10944
ac576cde
VS
109452012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10946
10947 * grub-core/script/execute.c (grub_script_return): Fix potential
10948 NULL-dereference.
10949 Reported by: Jim Meyering.
10950
498453f6
VS
109512012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10952
10953 * po/POTFILES.in: Regenerate.
10954 * util/grub-install.in: Gettextize the strings missed in first pass.
10955
8be63f2e
VS
109562012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10957
10958 * Makefile.util.def (grub-mkdevicemap): Removed.
10959 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10960 * include/grub/util/deviceiter.h: Removed.
10961 * util/deviceiter.c: Likewise.
10962 * util/getroot.c (grub_util_get_os_disk): New function.
10963 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10964 replacement for EFI.
10965 * util/grub-mkdevicemap.c: Removed.
10966 * util/grub-probe.c (probe): Handle PRINT_DISK.
10967 (argp_parser): Handle -t disk.
10968
8e1e4e39
VS
109692012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * util/grub-mkfont.c: Migrate to argp.
10972 * util/grub-mklayout.c: Likewise.
10973 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10974 * util/grub-mkrelpath.c: Likewise.
10975 * util/grub-probe.c: Likewise.
10976 * util/grub-script-check.c: Likewise.
10977
4459819a
VS
109782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 * util/grub-reboot.in: Add missing datarootdir.
10981 Add missing newline.
10982 * util/grub-set-default.in: Add missing datarootdir.
10983 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10984 * util/grub-mkrescue.in: Likewise.
10985
f65741c7
VS
109862012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10987
10988 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10989
c1a33466
VS
109902012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10991
10992 * util/grub-kbdcomp.in: Add decent help and gettextize.
10993 * docs/man/grub-kbdcomp.h2m: New file.
10994
c76899a0
VS
109952012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10996
10997 Migrate grub-mkimage.c to argp.
10998
10999 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
11000 (grub-setup): Likewise.
11001 * util/grub-setup.c (print_version): Move to ...
11002 * util/argp_common.c (print_version): ... here.
11003 * util/grub-setup.c (argp_program_version_hook): Move to ...
11004 * util/argp_common.c (argp_program_version_hook): ... here.
11005 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
11006 safety.
11007 * util/grub-mkimage.c (main): Migrate to argp.
11008
57db0757
VS
110092012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11010
11011 * util/grub-mkrescue.in: Use same message as
11012 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
11013 for better translations.
11014
18534ad9
VS
110152012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11016
11017 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
11018 options with generic grub-mkrescue.in with the goal of future
11019 merge.
11020
c84ba308
VS
110212012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11022
11023 * grub-core/kern/mm.c: Add missing include of i18n.h
11024 * grub-core/lib/relocator.c: Likewise.
11025
347998c2
VS
110262012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11027
11028 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
11029 error.
11030 (allocate_pages): Check return value.
11031 Replace fatal with error.
11032 (grub_linux_boot): Replace printf with dprintf.
11033 Check find_mmap_size return value.
11034 Replace fatal with error.
11035 Don't call grub_machine_fini.
11036 (grub_load_elf64): Replace printf with dprintf.
11037 (grub_cmd_linux): Likewise.
11038 (grub_cmd_initrd): Likewise.
11039 (grub_cmd_payload): Likewise.
11040
c779226e
VS
110412012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11042
11043 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
11044 message.
11045 * grub-core/video/radeon_fuloong2e.c
11046 (grub_video_radeon_fuloong2e_setup): Likewise.
11047 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
11048 * grub-core/video/video.c (grub_video_set_mode): Don't override
11049 standard out of memory message.
11050
dc87d45a
GS
110512012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
11052
11053 NetBSD disk wedge support.
11054
11055 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
11056 [__NetBSD__]: Handle NetBSD disk wedges.
11057 * util/getroot.c (convert_system_partition_to_system_disk)
11058 [__NetBSD__]: Likewise.
11059
055f856f
MW
110602012-02-03 Mark Wooding <mdw@distorted.org.uk>
11061
11062 * util/grub-mkconfig.in: Use umask rather than chmod to create
11063 grub.cfg.new to avoid insecure grub.cfg.
11064
4a9f8346
VS
110652012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 * grub-core/commands/ls.c: Gettextize.
11068 * grub-core/commands/setpci.c: Likewise.
11069 * grub-core/commands/videotest.c: Likewise.
11070 * grub-core/disk/geli.c: Likewise.
11071 * grub-core/kern/mm.c: Likewise.
11072 * grub-core/lib/relocator.c: Likewise.
11073 * grub-core/loader/efi/appleloader.c: Likewise.
11074 * grub-core/loader/i386/xnu.c: Likewise.
11075 * grub-core/loader/ia64/efi/linux.c: Likewise.
11076 * grub-core/loader/xnu.c: Likewise.
11077 * grub-core/net/dns.c: Likewise.
11078 * grub-core/net/net.c: Likewise.
11079 * grub-core/script/lexer.c: Likewise.
11080 * grub-core/script/parser.y: Likewise.
11081 * grub-core/script/yylex.l: Likewise.
11082 * util/getroot.c: Likewise.
11083 * util/grub-setup.c: Likewise.
11084
a646a366
VS
110852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11086
11087 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
11088 number.
11089
54e2be26
VS
110902012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11091
11092 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
11093
f7c71e68
VS
110942012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11095
11096 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
11097 macro.
11098 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
11099 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
11100
a32d5c71
VS
111012012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11102
11103 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
11104 * util/grub-install.in: Gettextize.
11105 * util/grub-mkconfig.in: Likewise.
11106 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
11107 if not available.
11108 (grub_warn): Gettextize.
11109 * util/grub-mknetdir.in: Gettextize.
11110 * util/grub-mkrescue.in: Likewise.
11111 * util/grub-mkstandalone.in: Likewise.
11112 * util/grub-reboot.in: Likewise.
11113 * util/grub-set-default.in: Likewise.
11114 * util/grub.d/00_header.in: Likewise.
11115 * util/grub.d/10_hurd.in: Likewise.
11116 * util/grub.d/10_kfreebsd.in: Likewise.
11117 * util/grub.d/10_linux.in: Likewise.
11118 * util/grub.d/10_netbsd.in: Likewise.
11119 * util/grub.d/10_windows.in: Likewise.
11120 * util/grub.d/20_linux_xen.in: Likewise.
11121 * util/grub.d/30_os-prober.in: Likewise.
11122 * po/POTFILES-shell.in: Regenerate.
11123
69edd81a
RL
111242012-02-03 Richard Laager <rlaager@wiktel.com>
11125
11126 * util/grub-mkimage.c (main): Fix format-security warning.
11127 * util/grub-mkrelpath.c (main): Likewise.
11128 * util/grub-probe.c (main): Likewise.
11129
65f08dbf
RL
111302012-02-03 Richard Laager <rlaager@wiktel.com>
11131
11132 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
11133 failure.
11134 Put back lost PRINT_DRIVE.
11135
e9084abe
RL
111362012-02-03 Richard Laager <rlaager@wiktel.com>
11137
11138 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
11139 (grub_guess_root_devices): Replace strlen with sizeof.
11140 Avoid crash.
11141 (find_root_devices_from_poolname): Remove unused variable.
11142 Handle raidzN.
11143
cf5f7ee7
VS
111442012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11145
11146 Support install on multi-device filesystems.
11147
11148 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
11149 (grub_guess_root_devices): ...this. Return char **. All users updated.
11150 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
11151 Removed.
11152 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
11153 (find_root_devices_from_poolname): ... here.
11154 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
11155 Support zfs-fuse.
11156 (grub_guess_root_device): Rename to ...
11157 (grub_guess_root_devices): ... this. Return char **. All users updated.
11158 * util/grub-install.in: Handle multi-device filesystems.
11159 * util/grub-probe.c (probe). Make device_names a char **. Add delim
11160 argument. All users updated.
11161 Handle multi-device filesystems.
11162 Use 'delim' as separator.
11163 Remove device check to allow filesystems on file.
11164 (main): Support -0 argument. Handle multi-device.
11165 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
11166 Fix a cross-device check while on it.
11167 (arguments): Remove root_dev.
11168 (argp_parser): Remove -r.
11169 (main): Remove root_dev.
11170
2f53a9ed
VS
111712012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11172
11173 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
11174
17e1d934
VS
111752012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11176
11177 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
11178 symbol.
11179 Reported by: NODA, Kai <nodakai>.
11180
d3e3fab5
VS
111812012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11182
11183 Fix ehci on amd64.
11184
11185 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
11186 pointers.
11187 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
11188 (grub_ehci_setup_qh): Likewise.
11189 (grub_ehci_find_qh): Likewise.
11190 (grub_ehci_transaction): Likewise.
11191 (grub_ehci_setup_transfer): Likewise.
11192 (grub_ehci_check_transfer): Likewise.
11193 (grub_ehci_portstatus): Likewise.
11194 (grub_ehci_detect_dev): Likewise.
11195 (grub_ehci_transfer_controller_data): New field td_last_phys.
11196 (grub_ehci_setup_transfer): Fill td_last_phys.
11197 (grub_ehci_check_transfer): Use td_last_phys.
11198
3008675b
SG
111992012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
11200
11201 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
11202 if no submenu is present.
11203
fc9b5652
AN
112042012-02-01 Aleš Nesrsta <starous@volny.cz>
11205
11206 CBI support.
11207
11208 * include/grub/usb.h (grub_usbms_protocol_t): New values
11209 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
11210 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
11211 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
11212 (grub_usbms_dev): Add subclass, protocol and intrpt.
11213 Remove in_maxsz and out_maxsz.
11214 (grub_usbms_reset): Rename to ...
11215 (grub_usbms_bo_reset): .. this.
11216 (grub_usbms_cbi_cmd): New function.
11217 (grub_usbms_cbi_reset): Likewise.
11218 (grub_usbms_reset): Likewise.
11219 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
11220 (grub_usbms_transfer): Rename to ...
11221 (grub_usbms_transfer_bo): ... this.
11222 (grub_usbms_transfer_cbi): Likewise.
11223 (grub_usbms_transfer): Likewise.
11224
a2b81d53
AN
112252012-02-01 Aleš Nesrsta <starous@volny.cz>
112262012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11227
11228 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
11229 the support for the CS5536 modification thereos and few bugfixes.
11230
11231 * grub-core/Makefile.core.def (ehci): New module.
11232 * grub-core/bus/usb/ehci.c: New file.
11233 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
11234 port and hubaddr. All users updated.
11235 Save port and hubaddr into dev structure.
11236 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
11237 define.
11238 * include/grub/pci.h (grub_dma_phys2virt): New function.
11239 (grub_dma_virt2phys): Likewise.
11240 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
11241
b1d51f02
VS
112422012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
11245 check as some mkfs implementations omit it.
11246
fc694106
VS
112472012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * docs/grub.texi (Unicode): Mention identifier and space limitations.
11250
6c0920e3
VS
112512012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
11254 Add new member volname2.
11255 (grub_jfs_label): Use volname2 if available.
11256
d1a46f9a
VS
112572012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11258
11259 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
11260 over last_mounted as seen in image generated by mkfs.nilfs2.
11261 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
11262
dec8ed14
VS
112632012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11264
11265 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
11266 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
11267 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
11268
7397c69b
VS
112692012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11270
11271 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
11272 over the sector.
11273
b3fe42ad
VS
112742012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11275
11276 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
11277 subvolume name (by removing a bogus and useless check).
11278
10476bb0
VS
112792012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11280
11281 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
11282 sizeof while on it.
11283
9c08ad87
VS
112842012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11285
11286 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
11287 (grub_scsi_read_capacity10): ... this.
11288 (grub_scsi_read_capacity16): New function.
11289 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
11290 0xffffffff.
11291 Fix off-by-one error.
11292 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
11293 64-bit unsigned.
11294 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
11295 (grub_scsi_read_capacity10): ... this.
11296 (grub_scsi_read_capacity_data): Rename to ...
11297 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
11298 (grub_scsi_read_capacity16): New struct.
11299 (grub_scsi_read_capacity16_data): Likewise.
11300 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
11301 grub_scsi_cmd_read_capacity10.
11302 New command grub_scsi_cmd_read_capacity16.
11303
bc8d0f45
VS
113042012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11305
11306 SCSI >2TiB support.
11307
11308 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
11309 (grub_scsi_write16): Likewise.
11310 (grub_scsi_read): Use read16 when necessary.
11311 (grub_scsi_write): Likewise.
11312 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
11313 (grub_scsi_write16): Likewise.
11314 (grub_scsi_cmd_t): Add READ16 and WRITE16.
11315
cc774926
VS
113162012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11317
11318 SCSI write support (for usbms mainly).
11319
11320 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
11321 a const pointer.
11322 (grub_scsi_write): Implement.
11323 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
11324
67639fd7
VS
113252012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11326
11327 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
11328 variable.
11329
9079d3ed
VS
113302012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11331
11332 * grub-core/lib/posix_wrap/string.h (memchr): New function.
11333
c6a6f204
VS
113342012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11335
11336 * po/POTFILES.in: Regenerate.
11337
ecbf8cd1
VS
113382012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
11341 with grub_printf to avoid unnecessary fatal failure.
11342
0b3b3b38
VS
113432012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11344
11345 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
11346 (INT_MAX): Likewise.
11347 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
11348 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
11349 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
11350 (strcpy): Likewise.
11351 (strstr): Likewise.
11352 (strchr): Likewise.
11353 (strncpy): Likewise.
11354 (strcat): Likewise.
11355 (strncat): Likewise.
11356 (strcoll): Likewise.
11357 * include/grub/types.h (GRUB_SHRT_MAX): New define.
11358 (GRUB_INT_MAX): Likewise.
11359
db7337a3
VS
113602012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11361
11362 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
11363 unexpected error.
11364 (optimize_utf8): Likewise.
11365 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
11366
f37c87e1
VS
113672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11368
11369 * grub-core/boot/i386/pc/lnxboot.S: Use
11370 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
11371 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
11372 location.
11373 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
11374 definition.
11375 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
11376
63fe43f3
VS
113772012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11378
11379 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
11380 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
11381 now to avoid double free.
11382 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
11383 hostdisk.
11384 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
11385 * util/grub-probe.c (escape_of_path): Always return a new copy.
11386 (print_full_name): Escape path.
11387 (probe): Don't call grub_util_devname_to_ofpath on NULL.
11388 Fix hints on abstractions.
11389
ebe2c961
VS
113902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11391
11392 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
11393 Don't add "root" line if no compatibility hont is available.
11394 Suggested by: Seth Goldberg.
11395
2b5336a2
VS
113962012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11397
11398 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
11399 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
11400 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
11401 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
11402
74310bd8
VS
114032012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11404
11405 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
11406
c30582ba
VS
114072012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11408
11409 * util/grub-pe2elf.c (ehdr): Make static.
11410 (shdr): Likewise.
11411 (num_sections): Likewise.
11412 (offset): Likewise.
11413
5f47782c
VS
114142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11415
11416 Eliminate ofpath limits and possible overflows.
11417
11418 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
11419 (OF_PATH_MAX): Removed.
11420 (MAX_DISK_CAT): New const.
11421 (find_obppath): Use allocated rather than preallocated buffer.
11422 Return result. Argument of_path removed. All users updated.
11423 Add missing fdstat.
11424 (xrealpath): New function.
11425 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
11426 Allocate rather than use preallocated buffer. All users updated.
11427 (__of_path_common): Use allocated rather than preallocatecd buffer.
11428 Return result. Argument of_path removed. All users updated.
11429 (vendor_is_ATA): Read only needed part form the file.
11430 (check_sas): Allocate depending on contents rather than fixed.
11431 (main) [STANDALONE]: Handle NULL result.
11432
f990cbf9
VS
114332012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11434
11435 * grub-core/normal/completion.c (iterate_dev): Close the disk.
11436
9c6e84b8
VS
114372012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11438
11439 Cryptodisk write support.
11440
11441 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
11442 (grub_cryptodisk_decrypt): Moved logic to ...
11443 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
11444 (grub_cryptodisk_write): Implement.
11445 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
11446 (grub_util_fd_write): ... this. Make global.
11447 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
11448
87cf9744
VS
114492012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11450
11451 * include/grub/list.h (grub_list_remove): Don't crash if element is
11452 removed twice.
11453
ca8c0baf
VS
114542012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11455
11456 Rename ofconsole to console.
11457
11458 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
11459 as sysnonym to console.
11460 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
11461 * grub-core/term/ieee1275/console.c: ... this. All users updated.
11462 Rename grub_ofconsole_ to grub_console_. All users updated
11463 (grub_console_term_output): Rename "ofconsole" to "console".
11464 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
11465 as "console".
11466
64c8b8f6
VS
114672012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11468
11469 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
11470 handling.
11471 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
11472 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
11473 GRUB_DISK_DEVICE_FILE_ID.
11474
f6c434d5
VS
114752012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11476
11477 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
11478 and improve performance.
11479
5858b42d
VS
114802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11481
11482 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
11483 missing ieee1275/ prefix on whole disk.
11484
4ed3c26b
VS
114852012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11486
11487 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
11488 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11489
df71143e
VS
114902012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11491
11492 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
11493
076e7c0f
VS
114942012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11495
11496 Merge common RAID and LVM logic to an abstract diskfilter.
11497 Add LDM support using the same framework.
11498
11499 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
11500 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
11501 (libgrubmods): Remove grub-core/disk/raid.c and
11502 grub-core/partmap/gpt.c.
11503 * grub-core/Makefile.core.def (ldm): New module.
11504 (raid): Renamed to diskfilter. All users updated.
11505 * grub-core/disk/raid.c: Moved to ...
11506 * grub-core/disk/diskfilter.c: ... here.
11507 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
11508 (lv_num): New var.
11509 (find_array): Renamed to ...
11510 (find_lv): ... this. Support multi-LV. Skip nameless LVs
11511 (grub_is_array_readable): Renamed to ...
11512 (grub_is_lv_readable): ... this. Support multinode hierarchy.
11513 (insert_array): New argument id.
11514 (is_node_readable): New function.
11515 (scan_device): Rename to ...
11516 (scan_disk): .. this. Restrict to one disk.
11517 (scan_devices): New function.
11518 (grub_diskfilter_iterate): Support multi-LV.
11519 Skip invisible and nameless LVs.
11520 (grub_diskfilter_memberlist): Support multi-LV.
11521 (grub_diskfilter_read_node): New function.
11522 (grub_raid_read): Most of logic moved to ...
11523 (read_segment): ... here
11524 (read_lv): New function.
11525 (grub_diskfilter_get_vg_by_uuid): New function.
11526 (grub_diskfilter_make_raid): Likewise.
11527 * grub-core/disk/ldm.c: New file.
11528 * grub-core/disk/lvm.c (vg_list): Removed.
11529 (lv_count): Likewise.
11530 (scan_depth): Likewise.
11531 (is_lv_readable): Likewise.
11532 (grub_lvm_getvalue): Advance pointer past the number.
11533 (find_lv): Removed.
11534 (do_lvm_scan): Refactored into ...
11535 (grub_lvm_detect): ... this. Support raid.
11536 (grub_lvm_iterate): Removed.
11537 (grub_lvm_memberlist): Likewise.
11538 (grub_lvm_open): Likewise.
11539 (grub_lvm_close): Likewise.
11540 (read_lv): Likewise.
11541 (read_node): Likewise.
11542 (is_node_readable): Likewise.
11543 (is_lv_readable): Likewise.
11544 (grub_lvm_read): Likewise.
11545 (grub_lvm_write): Likewise.
11546 (grub_lvm_dev): Use diskfilter
11547 (GRUB_MOD_INIT): Likewise.
11548 (GRUB_MOD_FINI): Likewise.
11549 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
11550 new interface.
11551 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
11552 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11553 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
11554 grub_diskfilter_read_node.
11555 Fix a bug with xor.
11556 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
11557 grub_diskfilter_read_node.
11558 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
11559 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
11560 (grub_disk_dev_iterate): Move from here...
11561 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
11562 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
11563 Make global.
11564 (grub_hostdisk_find_partition_start): Likewise.
11565 (grub_hostdisk_os_dev_to_grub_drive): New function.
11566 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
11567 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
11568 * util/getroot.c (make_device_name): ... here.
11569 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
11570 Move to ...
11571 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11572 * grub-core/kern/emu/hostdisk.c
11573 (convert_system_partition_to_system_disk): Move to ...
11574 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11575 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11576 * util/getroot.c (device_is_wholedisk): ... here.
11577 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11578 * util/getroot.c (find_system_device): ... here.
11579 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11580 Move to ...
11581 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11582 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11583 Move to ...
11584 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11585 Handle LDM.
11586 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11587 Move to ...
11588 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11589 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11590 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11591 DISKFILTER.
11592 * include/grub/raid.h: Renamed to ...
11593 * include/grub/diskfilter.h: ... this.
11594 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11595 (GRUB_RAID_LAYOUT_*): Make into array.
11596 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11597 (grub_diskfilter_vg): New struct.
11598 (grub_diskfilter_pv_id): Likewise.
11599 (grub_raid_member): Removed.
11600 (grub_raid_array): Likewise.
11601 (grub_diskfilter_pv): New struct.
11602 (grub_diskfilter_lv): Likewise.
11603 (grub_diskfilter_segment): Likewise.
11604 (grub_diskfilter_node): Likewise.
11605 (grub_diskfilter_get_vg_by_uuid): New proto.
11606 (grub_raid_register): Inline.
11607 (grub_diskfilter_unregister): Likewise.
11608 (grub_diskfilter_make_raid): New proto.
11609 (grub_diskfilter_vg_register): Likewise.
11610 (grub_diskfilter_read_node): Likewise.
11611 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11612 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11613 (grub_util_is_ldm): Likewise.
11614 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11615 (grub_hostdisk_find_partition_start): Likewise.
11616 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11617 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11618 New definition.
11619 (grub_gpt_partition_map_iterate): New proto.
11620 * include/grub/lvm.h (grub_lvm_vg): Removed.
11621 (grub_lvm_pv): Likewise.
11622 (grub_lvm_lv): Likewise.
11623 (grub_lvm_segment): Likewise.
11624 (grub_lvm_node): Likewise.
11625 * util/getroot.c [...]
11626 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11627 (probe_abstraction): Likewise.
11628 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11629 (main): Remove dead logic.
11630
8a7f9b9c
VS
116312012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11632
11633 Simplify root device discover and don't fail when trying to open
11634 incorrect devices.
11635
11636 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11637 function.
11638 (get_diskname_from_path): Likewise.
11639 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11640 of iterating.
11641
30545b85
VS
116422012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11643
11644 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11645
28ea58cf
VS
116462012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11647
11648 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11649 pastthe end.
11650
692dabca
VS
116512012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11652
11653 * util/grub-install.in: Add missing \.
11654 Reported by: gentoofan
11655
f6e4ea70
VS
116562012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11657
11658 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11659 (direct_read): Use correct compressed size.
11660 (grub_squash_read_data): Likewise.
11661
116622012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
11663
11664 * docs/grub.texi (Platform limitations): New section.
11665 (Platform-specific operations): Likewise.
11666 * docs/grub-dev.texi (Porting): Likewise.
11667
76261110
VS
116682012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11669
11670 IEEE1275 disk write support.
11671
11672 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11673 const void *.
11674 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11675 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11676 and seek loginc to ...
11677 (grub_ofdisk_prepare): ... here.
11678 (grub_ofdisk_write): Implement.
11679
fc36d603
VS
116802012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11681
11682 ARC disk write support.
11683
11684 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11685 (reopen): New argument writable. All users updated.
11686 Handle required access mode.
11687 (grub_arcdisk_write): Implement.
11688 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11689 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11690
e06c2e7a
VS
116912012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11692
11693 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11694 (read_sblock): Don't attempt to read superblocks outside the disk size.
11695
ff447958
VS
116962012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11697
11698 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11699 first superblock to find the second one when possible.
11700
9e88df39
VS
117012012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11702
11703 * util/grub-install.in: Fix an ARC bug.
11704 Print a warning if no platform-specific setup is available.
11705
bb26e4ff
VS
117062012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11707
11708 Use static allocation rather than scratch pointer in reed_solomon.
11709 It decreases its size significantly and avoids a variable in .text.
11710
11711 * grub-core/lib/reed_solomon.c (scratch): Removed.
11712 (chosenstat): New const or static array.
11713 (sigma): Likewise.
11714 (errpot): Likewise.
11715 (errpos): Likewise.
11716 (sy): Likewise.
11717 (mstat): Likewise.
11718 (errvals): Likewise.
11719 (eqstat): Likewise.
11720 (pol_evaluate): Replace x with log_x argument. All users updated.
11721 (syndroms): Removed.
11722 (gauss_solve): Use statically allocated arrays.
11723 (rs_recover): Likewise.
11724 Calculate syndroms directly.
11725 (decode_block): Use statically allocated arrays.
11726 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11727 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11728
2e13ede5
VS
117292012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 Eliminate fixed limit on reed solomon decoder length.
11732
11733 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11734 rather than hardcoding the address.
11735 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11736 no_reed_solomon_length.
11737 Move gate_a20 to no-reed-solomon part.
11738 Don't force a particular size of no reed-solomon part.
11739 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11740 Removed.
11741 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11742 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11743
f8a9ab12
VS
117442012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11745
11746 * grub-core/commands/wildcard.c (match_files): Handle filenames
11747 without explicit device.
11748 (wildcard_expand): Don't add explicit device if not already present.
11749 * tests/grub_script_echo1.in: Add a new expansion test.
11750
87edb894
VS
117512012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 Replace single-linked with double-linked lists. It results in more
11754 compact and more efficient code.
11755
11756 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11757 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11758 (grub_list_remove): Moved from here ...
11759 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11760 (grub_prio_list_insert): Set prev.
11761 * include/grub/list.h (grub_list): Add prev. All users updated.
11762
48b391e9
VS
117632012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11764
11765 Handle newer autotools. Add some missing quotes while on it.
11766
11767 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11768 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11769 (pkgdata_DATA): ... here.
11770 * Makefile.util.def (update-grub_lib): Removed.
11771 * conf/Makefile.common (pkglib_DATA): Removed.
11772 (pkglib_SCRIPTS): Likewise.
11773 (pkgdata_DATA): New variable.
11774 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11775 needed.
11776 Add missing quotes.
11777 Remove unused variable while on it.
11778 * tests/util/grub-shell.in: Likewise.
11779 * util/grub-install.in: Likewise.
11780 * util/grub-mkconfig.in: Likewise.
11781 * util/grub-mknetdir.in: Likewise.
11782 * util/grub-mkrescue.in: Likewise.
11783 * util/grub-mkstandalone.in: Likewise.
11784 * util/grub.d/00_header.in: Likewise.
11785 * util/grub.d/10_hurd.in: Likewise.
11786 * util/grub.d/10_illumos.in: Likewise.
11787 * util/grub.d/10_kfreebsd.in: Likewise.
11788 * util/grub.d/10_linux.in: Likewise.
11789 * util/grub.d/10_netbsd.in: Likewise.
11790 * util/grub.d/10_windows.in: Likewise.
11791 * util/grub.d/20_linux_xen.in: Likewise.
11792 * util/grub.d/30_os-prober.in: Likewise.
11793 * util/update-grub_lib.in: Removed.
11794
117952012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
11796
11797 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
11798 a workaround for intel problem.
11799
66832792
PRP
118002012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
118012012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
118022012-01-23 pfsmorigo
11803
11804 * util/grub-install.in: Support dd'in into PreP partition.
11805 * util/grub-probe.c (probe): Support discovering partition type.
11806 (main): Support -t msdos_parttype.
11807
7816a17e
VS
118082012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11809
11810 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
11811 infinite recursion using counter.
11812 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
11813 init to skip it if the magic check fails.
11814 (dec_stream_header): Init s->crc32.
11815
8f9d3a8c
ZB
118162012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
118172012-01-22 Zachary Bedell <pendorbound@gmail.com>
118182012-01-22 Richard Laager <rlaager@wiktel.com>
11819
11820 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
11821 All users updated.
11822 (find_bestub): Determine correct size.
11823 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
11824 (scan_disk): Align the size down.
11825 Call check pool before find_bestub to have ashift.
11826
b055dd32
VS
118272012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11828
11829 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
11830 dprintf in no-malloc zone.
11831
d779e9bd
ML
118322012-01-22 Mario Limonciello <mario_limonciello@dell.com>
11833
11834 * configure.ac: Add back in test for limits.h.
11835
b508af69
VS
118362012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11837
11838 Support 4K-sector NTFS.
11839
11840 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
11841 (grub_ntfs_data): Remove blocksize.
11842 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
11843 Remove data argument. All users updated.
11844
dad9c8b5
VS
118452012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11846
11847 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
11848 being in .text to avoid dprel references.
11849 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11850 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11851 (grub_arch_highmemsize): Likewise.
11852 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11853 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11854 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11855
d43a777e
VS
118562012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11857
11858 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11859
11860 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11861 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11862
34e4208f
VS
118632012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11864
11865 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11866 GRUB_UTIL.
11867 (grub_set_datetime_cmos): Likewise.
11868
3ec0fc1c
VS
118692012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11870
11871 Make XZ compression parameters dependent on target and not host CPU.
11872
11873 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11874 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11875
22489834
VS
118762012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11877
11878 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11879 set but not used variable.
11880
8502fbca
VS
118812012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11882
11883 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11884 created when no uuid support is compiled into mkfs.reiser.
11885
76df2068
VS
118862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11887
11888 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11889 (utf8_to_macroman): Do the opposite.
11890 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11891
64e3f8f6
VS
118922012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11893
11894 * configure.ac: Refise build qemu_mips w/o unifont.
11895
9c271078
VS
118962012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11897
11898 Eliminate grub_min/grub_max prone to overflow usage.
11899
11900 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11901 (poll_nonroot_hub): Likewise.
11902 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11903 (grub_affs_label): Likewise.
11904 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11905 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11906 (grub_hfs_label): Likewise.
11907 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11908 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11909 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11910 (zap_leaf_array_get): Likewise.
11911 (dnode_get_path): Likewise.
11912 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11913 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11914 * grub-core/script/execute.c (grub_script_break): Likewise.
11915 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11916 grub_max.
11917 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11918 * include/grub/misc.h (grub_min): Removed.
11919 (grub_max): Likewise.
11920
80662dbc
VS
119212012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11922
11923 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11924 direct.inode = 0.
11925
e6da1467
VS
119262012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11927
11928 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11929
b1ac4cb1
VS
119302012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11931
11932 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11933
b4bf7c3b
VS
119342012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11935
11936 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11937 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11938
8ee1101a
VS
119392012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11940
11941 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11942 rather than a hack for grub_strncasemap.
11943
119442012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11945
11946 Support multiple initrds
11947 Note: part of this was accidently committed in r3739.
11948
11949 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11950 initrd.
11951 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11952 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11953 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11954 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11955 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11956
4d1e2bc9
VS
119572012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11958
11959 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11960 disks with unknown size.
11961 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11962
75b49ebe
VS
119632012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11964
11965 Remove defines pertaining to arbitrary limits not affecting GRUB
11966 anymore.
11967
11968 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11969 (EXT2_MAX_SYMLINKCNT): Likewise.
11970 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11971 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11972 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11973 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11974 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11975 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11976 (DN_MAX_OBJECT_SHIFT): Likewise.
11977 (DN_MAX_OFFSET_SHIFT): Likewise.
11978 (DN_MAX_OBJECT): Likewise.
11979 (DNODES_PER_LEVEL_SHIFT): Likewise.
11980 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11981 (SPA_MAXBLOCKSIZE): Likewise.
11982 (SPA_BLOCKSIZES): Likewise.
11983 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11984 (MZAP_MAX_BLKSZ): Likewise.
11985
74a1dce7
VS
119862012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11987
11988 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11989 handle NULL appropriately.
11990 Remove MIN.
11991
30c7d3ce
VS
119922012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11993
11994 Fix efiemu.
11995
11996 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11997 cpu/types.h.
11998 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11999 * configure.ac: Fix efiemu check.
12000
3c76ea0c
VS
120012012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
12002
12003 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
12004 grub_probe.
12005 Reported by: adamwill
12006
7e532280
SG
120072012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
12008
12009 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
12010
30492374
VS
120112012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12012
12013 Fix handling of wide characters in gfxterm.
12014
12015 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
12016 (clear_char): Likewise.
12017 (paint_char): Skip code == NULL chars.
12018 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
12019
e70cb72f
VS
120202012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
12021
12022 * grub-core/normal/charset.c: Move comment to right place.
12023
5c827cf9
VS
120242012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12025
12026 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
12027 (GRUB_AFFS_FLAG_FFS): Put back where it was.
12028 (grub_affs_mount): Revert the correct version checking.
12029
53603892
VS
120302012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
12031
12032 * docs/grub.texi (Unicode): Mention several other unsupported features.
12033
ff094b9b
VS
120342011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
12035
12036 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
12037 case statements as compile-time one.
12038 (direct_read): Prevent spurious warnings.
12039 (grub_squash_read_data): Likewise.
12040
c029da8a
VS
120412011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
12042
12043 Various squash4 fixes and LZO and XZ support.
12044
12045 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
12046 Add xzembed source files.
12047 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
12048 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
12049 (grub_squash_inode): New subtype long_dir.
12050 (SQUASH_TYPE_LONG_DIR): New inode type.
12051 (COMPRESSION): New enum.
12052 (XZBUFSIZ): New const.
12053 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
12054 (read_chunk): Use data->decompress.
12055 (zlib_decompress): New function.
12056 (lzo_decompress): Likewise.
12057 (xz_decompress): Likewise.
12058 (squash_mount): Set new data fields.
12059 (grub_squash_iterate_dir): Handle long dir.
12060 (squash_unmount): Free xzdec and xzbuf.
12061 (grub_squash_open): Check ino type.
12062 (direct_read): Stylistic fixes. Use data->decompress.
12063 (grub_squash_read_data): Likewise.
12064 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
12065 (get_byte): Likewise.
12066 (grub_zlib_disk_read): Removed.
12067 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
12068 (GRUB_POSIX_BOOL_DEFINED): New define.
12069 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
12070 * grub-core/lib/xzembed/xz.h: Addmissing includes.
12071 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
12072 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
12073
7a45a539
VS
120742011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
12075
12076 Don't override more informative errors.
12077
12078 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
12079 * grub-core/font/font.c (open_section): Likewise.
12080 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
12081 filename. Don't override errors.
12082 (grub_cmd_openbsd_ramdisk): Don't override errors.
12083 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
12084 (grub_cmd_initrd): Likewise.
12085 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
12086 (grub_cmd_initrd): Likewise.
12087 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
12088 (grub_cmd_linux): Likewise.
12089 (grub_cmd_initrd): Likewise.
12090 (grub_cmd_payload): Likewise.
12091 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
12092 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
12093 (grub_cmd_module): Likewise.
12094 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12095 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
12096 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
12097 (grub_cmd_xnu_mkext): Likewise.
12098 (grub_cmd_xnu_ramdisk): Likewise.
12099 (grub_xnu_check_os_bundle_required): Likewise.
12100 (grub_xnu_load_kext_from_dir): Likewise.
12101 (grub_cmd_xnu_kextdir): Likewise.
12102 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
12103
b2d004db
VS
121042011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12105
12106 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
12107 as 1024 in block size field. Found on one of my test images.
12108 Small optimisation while on it.
12109
ec000eac
VS
121102011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
12113 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
12114 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
12115 performance fixes while on it.
12116 (grub_sfs_close): Fix memory leak while on it.
12117 (grub_sfs_label): Convert Latin1 to UTF-8.
12118
f50e1165
VS
121192011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12120
12121 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
12122 space to avoid overflows.
12123 (grub_hfs_label): Convert from macroman to UTF-8.
12124
2ae254de
VS
121252011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12126
12127 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
12128
0108f491
VS
121292011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12130
12131 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
12132
f45f5f89
VS
121332011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 * unicode: Import Unicode 6.0 data.
12136
4d8c4765
VS
121372011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12138
63fa8ef9
VS
12139 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
12140 outside of range.
12141
121422011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12143
12144 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
12145
12146 * include/grub/charset.h (grub_getend): New function.
12147 * grub-core/script/function.c (grub_script_function_find): Use
12148 grub_getend.
12149 * grub-core/normal/completion.c (add_completion): Likewise.
12150
f3cb4a4e
VS
121512011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12152
12153 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
12154 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
12155 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
12156 (GRUB_UNICODE_TAG_END): Likewise.
12157 (GRUB_UNICODE_LAST_VALID): Likewise.
12158
5da8dbc5
VS
121592011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12160
12161 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
12162 len and make it smaller. All users updated.
12163 * util/import_unicode.py: Put length and not end character.
12164 Check length.
12165
8569f13d
VS
121662011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12167
12168 Make better Unicode-compliant and unify some UTF-8 code pathes.
12169
12170 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
12171 valid character.
12172 (grub_is_valid_utf8): Use grub_utf8_process.
12173 Check resulting code range.
12174 (grub_utf8_to_ucs4): Use grub_utf8_process.
12175 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
12176 valid character.
12177
cc4fddf5
VS
121782011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12179
12180 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
12181
bbc47747
VS
121822011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12183
12184 * docs/grub.texi (Filesystems): Mention AFS.
12185
f63d6bf4
VS
121862011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12187
12188 * docs/grub.texi (Filesystems): Clarify restrictions.
12189 (Regexp): Mention non-Unicode regexp behaviour.
12190 (Other): Mention non-Unicode matching behaviour.
12191
74bbf0db
VS
121922011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12193
f63d6bf4 12194 Make HFS implementation use MacRoman.
74bbf0db
VS
12195
12196 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
12197 (macroman): New const array.
12198 (macroman_to_utf8): New function.
12199 (utf8_to_macroman): Likewise.
12200 (grub_hfs_find_dir): Use utf8_to_macroman.
12201 (grub_hfs_dir): Use macroman_to_utf8.
12202 Set case_insensitive.
12203
4ea0316e
VS
122042011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12205
12206 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
12207
d3c13cbd
VS
122082011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12209
12210 Integrate hints into autogeneration scripts.
12211
12212 * docs/grub.texi (Filesystems): Add a hostdisk example.
12213 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
12214 (grub-probe): Add ofpath.
12215 * gentpl.py: Remove group nosparc64.
12216 * grub-core/commands/search.c (cache_entry): New struct.
12217 (cache): New var.
12218 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
12219 * grub-core/commands/search_wrap.c (options): Add platform-specific
12220 hint options.
12221 (grub_cmd_search): Handle platform-specific hints.
12222 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
12223 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
12224 (grub_util_biosdisk_data): Likewise.
12225 (grub_util_biosdisk_open): Set device_map.
12226 (read_device_map): Handle "" as indication of no map.
12227 Set device_map.
12228 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
12229 (grub_util_biosdisk_get_compatibility_hint): New function.
12230 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
12231 * include/grub/emu/hostdisk.h
12232 (grub_util_biosdisk_get_compatibility_hint): New proto.
12233 * util/grub-install.in: Don't call grub-mkdevicemap.
12234 Add platform-specific hint to load.cfg.
12235 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
12236 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
12237 hints. Set root preliminary to compatibility hint, not to OS name.
12238 * util/grub-probe.c (PRINT_*): Add hints.
12239 (print): Make static.
12240 (escape_of_path): New function.
12241 (guess_bios_drive): Likewise.
12242 (guess_efi_drive): Likewise.
12243 (guess_baremetal_drive): Likewise.
12244 (print_full_name): Likewise.
12245 (probe): Handle hints.
12246 (main): Likewise.
12247 * util/ieee1275/devicemap.c: Removed.
12248 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
12249 updated.
12250 (grub_util_devname_to_ofpath): Return NULL on failure.
12251
12252 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
12253 resource leak.
12254 * util/getroot.c (grub_util_pull_device): Fix memory leak.
12255
12256 * po/POTFILES.in: Regenerated.
12257
12258 Allow purely long options
12259
12260 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
12261 (SHORT_ARG_USAGE): Likewise.
12262 (grub_arg_show_help): Compare opt with help_options.
12263 (parse_option): Receive opt as argument. If makes big simplificatons.
12264 All users updated
12265
00ce2df3
VS
122662011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12267
12268 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
12269 Restructure to avoid warning.
12270
e77e325f
VS
122712011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 * util/grub-install.in: Account for possible escaped comma in device
12274 name.
12275
165099ea
VS
122762011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12277
12278 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
12279 channel.
12280
ce4a999d
VS
122812011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12282
12283 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
12284 allocation and zero-setting.
12285 (grub_ieee1275_get_devname): Check that alias is complete.
12286
379586ad
VS
122872011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12288
12289 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
12290 unaligned segments.
12291
9197b0ad
VS
122922011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12293
12294 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
12295 prefix.
12296 (grub_ofdisk_open): Check and discard ieee1275 prefix.
12297 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12298 Add ieee1275 prefix.
12299
edddb7f9
VS
123002011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12301
12302 * docs/grub.texi (Filesystems): Update.
12303
a1a8b1b9
VS
123042011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12305
12306 Support odc, newc and bigendian cpio formats.
12307
12308 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
12309 * grub-core/Makefile.core.def (newc): New module.
12310 (odc): Likewise.
12311 (cpio_be): Likewise.
12312 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
12313 (MAGIC): Likewise.
12314 (MAGIC2): Likewise.
12315 (head) [MODE_ODC]: Adapt for the format.
12316 (head) [MODE_NEWC]: Likewise.
12317 (head) [!MODE_*]: Write fields of interest as arrays.
12318 (MAGIC_USTAR): Removed.
12319 (read_number) [MODE_NEWC]: Change to hex.
12320 (read_number) [!MODE_*]: Parse binary arrays.
12321 (grub_cpio_find_file): Factor out the code for better structure and
12322 always use read_number.
12323 (grub_cpio_mount): Use MAGIC and MAGIC2.
12324 (grub_cpio_dir): Exit on first hook non-0 return.
12325 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
12326 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
12327 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
12328 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
12329 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
12330 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
12331 * grub-core/fs/newc.c: New file.
12332 * grub-core/fs/odc.c: Likewise.
12333 * grub-core/fs/cpio_be.c: Likewise.
12334
58eba9ee
VS
123352011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12336
12337 Fix handling of tar numbers occupying the whole field.
12338
12339 * grub-core/fs/cpio.c (read_number): New function.
12340 (grub_cpio_find_file): Use read_number instead of strtoull.
12341
a54a0e12
VS
123422011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12343
12344 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
12345 occupying the whole field size.
12346
a6120aca
LA
123472011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
12348
12349 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
12350
a93964ce
VS
123512011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
12354
3ea1ca46
SG
123552011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
12356
12357 * grub-core/Makefile.core.def (lzma_decompress): Add missing
12358 TARGET_IMG_LDFLAGS.
12359
b87f7ef2
VS
123602011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12361
12362 * util/getroot.c (ESCAPED_PATH_MAX): New define.
12363 (mountinfo_entry): Increase the field size to take escaping into
12364 account.
12365 (find_root_device_from_libzfs): Add one byte to size of strings for
12366 security.
12367
62092395
VS
123682011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
12371 an assert.
12372 * util/grub-setup.c (setup): Likewise.
12373
1f0b1a77
VS
123742011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12375
12376 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
12377 _LzmaDecodeA.
12378
8eba9997
VS
123792011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12380
12381 * docs/grub.texi (Internationalisation): New section.
12382
dd0c91e9
VS
123832011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12384
12385 * docs/grub.texi (Loopback booting): New section.
12386
123872011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
12388
12389 * util/grub-mkstandalone.in: Fix minor typo errors.
12390
198e150a
VS
123912011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12392
12393 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
12394
12395 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
12396 net/icmp.c and net/icmp6.c.
12397 (http): New module.
12398 (priority_queue): Likewise.
12399 * grub-core/io/bufio.c: Rewritten.
12400 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
12401 TYPE_WITH_CONFIGFILE_OPTION.
12402 (legacy_commands): Add bootp and dhcp.
12403 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
12404 (grub_legacy_parse): Likewise.
12405 * grub-core/lib/priority_queue.c: New file.
12406 * grub-core/net/arp.c: Add missing license header.
12407 (arp_find_entry): Removed.
12408 (arp_find_entry): Likewise.
12409 (grub_net_arp_resolve): Rename to ...
12410 (grub_net_arp_send_request): ...this.
12411 (grub_net_arp_receive): New card argument.
12412 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
12413 Set router and DNS server.
12414 (grub_net_configure_by_dhcp_ack): Handle routing information.
12415 (grub_cmd_bootp): Set checksum.
12416 (grub_bootp_init): Remove net_dhcp.
12417 * grub-core/net/dns.c: New file.
12418 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
12419 completion.
12420 (get_card_packet): Handle allocation.
12421 (grub_efinet_findcards): Set mtu.
12422 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
12423 (get_card_packet): Handle allocation.
12424 (emucard): Set mtu.
12425 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
12426 (GRUB_MOD_INIT): Set mtu.
12427 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
12428 mtu.
12429 (get_card_packet): Handle allocation.
12430 (grub_ofnet_findcards): Set mtu.
12431 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
12432 assert.
12433 (grub_net_recv_ethernet_packet): Handle IPv6.
12434 * grub-core/net/http.c: New file.
12435 * grub-core/net/icmp.c: Likewise.
12436 * grub-core/net/icmp6.c: Likewise.
12437 * grub-core/net/ip.c (ip6addr): New type.
12438 (ip6hdr): Likewise.
12439 (reassemble): Likewise.
12440 (cmp): New function.
12441 (reassembles): New variable.
12442 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
12443 (id): New variable.
12444 (send_fragmented): New function.
12445 (grub_net_send_ip_packet): Rename to ...
12446 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
12447 Handle non-UDP.
12448 (grub_net_recv_ip_packets): Rename to ...
12449 (handle_dgram): ... this. Check checksum. Handle non-UDP.
12450 (free_rsm): New function.
12451 (free_old_fragments): Likewise.
12452 (grub_net_recv_ip4_packets): New function.
12453 (grub_net_send_ip6_packet): Likewise.
12454 (grub_net_send_ip_packet): Likewise.
12455 (grub_net_recv_ip6_packets): Likewise.
12456 (grub_net_recv_ip_packets): Likewise.
12457 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
12458 (LINK_LAYER_CACHE_SIZE): New const.
12459 (link_layer_find_entry): New function.
12460 (grub_net_link_layer_add_address): Likewise.
12461 (grub_net_link_layer_resolve_check): Likewise.
12462 (grub_net_link_layer_resolve): Likewise.
12463 (grub_net_ipv6_get_slaac): Likewise.
12464 (grub_net_ipv6_get_link_local): Likewise.
12465 (grub_cmd_ipv6_autoconf): Likewise.
12466 (parse_ip): Handle one number representation.
12467 (parse_ip6): New functoion.
12468 (match_net): Handle IPv6.
12469 (grub_net_resolve_address): Handle IPv6 and DNS.
12470 (grub_net_resolve_net_address): Handle IPv6.
12471 (route_cmp): New function.
12472 (grub_net_route_address): Find best route.
12473 (grub_net_addr_to_str): Handle IPv6.
12474 (grub_net_addr_cmp): New function.
12475 (grub_net_add_addr): Register local route.
12476 (print_net_address): Handle net address.
12477 (grub_net_poll_cards): Retransmit TCP.
12478 (grub_net_poll_cards_idle_real): Likewise.
12479 (have_ahead): New function.
12480 (grub_net_seek_real): Use underlying seek.
12481 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
12482 * grub-core/net/tcp.c: New file.
12483 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
12484 (cmp): New function.
12485 (ack): Likewise.
12486 (tftp_receive): Handle unordered input.
12487 (destroy_pq): New function.
12488 (tftp_close): Close pq.
12489 * grub-core/net/udp.c: Put missing license header.
12490 (grub_net_udp_socket): New function.
12491 (udp_socket_register): Likewise.
12492 (grub_net_udp_close): Likewise.
12493 (grub_net_recv_udp_packet): Check checksum.
12494 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
12495 * include/grub/misc.h (grub_memchr): New function.
12496 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
12497 (grub_net_card_driver): Return buf in recv.
12498 (grub_net_slaac_mac_list): New struct.
12499 (grub_network_level_protocol_id): Add ipv6.
12500 (grub_net_network_level_addr): Likewise.
12501 (grub_net_network_level_net_addr): Likewise.
12502 (grub_net_app_protocol): Add seek.
12503 (grub_net_socket): Removed.
12504 (grub_net_sockets): Likewise.
12505 (grub_net_socket_register): Likewise.
12506 (grub_net_socket_unregister): Likewise.
12507 (FOR_NET_SOCKETS): Likewise.
12508 (grub_net_add_addr): Add const.
12509 (GRUB_NET_BOOTP_*): New enum.
12510 (grub_net_addr_cmp): New proto.
12511 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
12512 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
12513 (grub_net_hwaddr_to_str): NEw proto.
12514 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
12515 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
12516 (grub_dns_init): New proto.
12517 (grub_dns_fini): Likewise.
12518 (grub_net_tcp_retransmit): Likewise.
12519 (grub_net_link_layer_add_address): Likewise.
12520 (grub_net_link_layer_resolve_check): Likewise.
12521 (grub_net_link_layer_resolve): Likewise.
12522 (grub_net_dns_lookup): Likewise.
12523 (grub_net_add_dns_server): Likewise.
12524 (grub_net_remove_dns_server): Likewise.
12525 (GRUB_NET_TRIES): New const.
12526 (GRUB_NET_INTERVAL): Likewise.
12527 * include/grub/net/arp.h: Mostly rewritten.
12528 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
12529 * include/grub/net/ip.h: Mostly rewritten.
12530 * include/grub/net/netbuff.h: Indent.
12531 * include/grub/net/tcp.h: New file.
12532 * include/grub/net/udp.h: Mostly rewritten.
12533 * include/grub/priority_queue.h: New file.
12534 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
12535 (grub_swap_bytes64_compile_time): Likewise.
12536 (grub_cpu_to_be16_compile_time): Likewise.
12537 (grub_cpu_to_be32_compile_time): Likewise.
12538 (grub_cpu_to_be64_compile_time): Likewise.
12539 (grub_be_to_cpu64_compile_time): Likewise.
12540
215c1800
VS
125412011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12542
12543 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
12544 UINT_TO_PTR with cast.
12545
c17e546c
VS
125462011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
12549 don't use them.
12550
ff6b18b6
VS
125512011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12552
12553 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
12554 already there.
12555
70ffcc93
VS
125562011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12557
12558 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
12559 confusing ipxe.
12560
e5f4d260
VS
125612011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12562
12563 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
12564 Add missing const attribute.
12565 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
12566 Likewise.
12567 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
12568 Likewise.
12569
8e54b4b7
VS
125702011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12571
12572 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12573 misaligned access.
12574 (serpent_setkey): Likewise.
12575 (serpent_encrypt_internal): Likewise.
12576 (serpent_decrypt_internal): Likewise.
12577 (serpent_encrypt): Don't put an alignment-increasing cast.
12578 (serpent_decrypt): Likewise.
12579 (serpent_test): Likewise.
12580
813c0a2b
VS
125812011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12582
12583 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12584
f2b60fbd
VS
125852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12586
12587 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12588
12589 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12590 grub_addr_t casts.
12591 (PTR_TO_UINT64): Likewise.
12592 (PTR_TO_UINT32): Likewise.
12593
5ef5c511
VS
125942011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12595
12596 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12597 because of stack.
12598 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12599 limit.
12600
c476e6df
VS
126012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12602
12603 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12604 text_width > available width a bit more gracefully.
12605
384ad7cc
VS
126062011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12607
12608 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12609 current address calculation.
12610
96f8caf8
VS
126112011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12614 stack.
12615 (encode_block): Likewise.
12616
276b7a8b
VS
126172011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12618
12619 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12620 certainety.
12621
e3fd394a
VS
126222011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12623
12624 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12625 non-RS part to avoid RS messing with GDT.
12626 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12627 Increase to suit in realmode routines.
12628
126292011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12630
12631 * grub-core/kern/i386/realmode.S: Increase alignment.
12632 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12633
ee9c2e7a
VS
126342011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12635
12636 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12637 be deterministic.
12638 (syndroms): Compute 0 syndrom.
12639 (rs_recover): Use 0 syndrom.
12640
7a7f7cc9
VS
126412011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12642
12643 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12644
a14b16d1
VS
126452011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12646
12647 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12648 brackets.
12649
9f59e9fc
VS
126502011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12651
ca1b552c
VS
12652 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12653 account.
12654 (get_top_pad): Likewise.
12655 (get_right_pad): Likewise.
12656 (get_bottom_pad): Likewise.
12657
126582011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12659
12660 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 12661
e739d698
VS
126622011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12663
12664 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12665 attribute as the structure isn't guaranteed to be properly aligned.
12666 (grub_efi_pci_device_path): Likewise.
12667 (grub_efi_pccard_device_path): Likewise.
12668 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12669 specify the size of `memory_type'.
12670 (grub_efi_vendor_device_path): Likewise.
12671 (grub_efi_controller_device_path): Likewise.
12672 (grub_efi_acpi_device_path): Likewise.
12673 (grub_efi_expanded_acpi_device_path): Likewise.
12674 (grub_efi_atapi_device_path): Likewise.
12675 (grub_efi_scsi_device_path): Likewise.
12676 (grub_efi_fibre_channel_device_path): Likewise.
12677 (grub_efi_1394_device_path): Likewise.
12678 (grub_efi_usb_device_path): Likewise.
12679 (grub_efi_usb_class_device_path): Likewise.
12680 (grub_efi_i2o_device_path): Likewise.
12681 (grub_efi_mac_address_device_path): Likewise.
12682 (grub_efi_ipv4_device_path): Likewise.
12683 (grub_efi_ipv6_device_path): Likewise.
12684 (grub_efi_infiniband_device_path): Likewise.
12685 (grub_efi_uart_device_path): Likewise.
12686 (grub_efi_vendor_messaging_device_path): Likewise.
12687 (grub_efi_hard_drive_device_path): Likewise.
12688 (grub_efi_cdrom_device_path): Likewise.
12689 (grub_efi_vendor_media_device_path): Likewise.
12690 (grub_efi_file_path_device_path): Likewise.
12691 (grub_efi_protocol_device_path): Likewise.
12692 (grub_efi_piwg_device_path): Likewise.
12693 (grub_efi_bios_device_path): Likewise.
12694
cb8f88ea
VS
126952011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12696
12697 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12698 (grub_ucs4_to_utf8_alloc): Likewise.
12699 (grub_ucs4_to_utf8): Likewise.
12700 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12701 (grub_ucs4_to_utf8_alloc): Likewise.
12702
309e5352
VS
127032011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 AFFS never uses unicode.
12706
12707 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12708 (grub_latin1_to_utf8): New inline function.
12709 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12710
e7987e1b
VS
127112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12712
12713 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12714 overflow.
12715
efc2616e
VS
127162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12717
12718 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12719 (grub_squash_dirent_header): Likewise.
12720 (read_chunk): Don't double swap.
12721 (grub_squash_iterate_dir): Fix swap sizes.
12722
3c349f5a
VS
127232011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12724
12725 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12726
b453412d
VS
127272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12728
12729 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12730 (grub_hfs_iterate_dir): Likewise.
12731
12e9d4d1
VS
127322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 Fix video on platforms where unaligned access is forbidden.
12735 Make several optimisations while on it.
12736
12737 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12738 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12739 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12740 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12741 Disable.
12742 (grub_video_fbblit_replace_16bit_1bit):
12743 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12744 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12745 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12746 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12747 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12748 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12749 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12750 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12751 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12752 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12753 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12754 (grub_video_fbblit_replace_index_RGB888): Likewise.
12755 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12756 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12757 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12758 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12759 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12760 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12761 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12762 Disable.
12763 (grub_video_fbblit_blend_XXX565_1bit):
12764 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12765 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12766 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12767 void *.
12768 * grub-core/video/fb/video_fb.c (common_blitter)
12769 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12770 (grub_video_fb_create_render_target_from_pointer)
12771 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12772 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12773 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12774 definition.
12775 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12776
ace96609
VS
127772011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12778
12779 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12780 HH22 and HM10 relocations.
12781
fd261d73
VS
127822011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12783
12784 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
12785
e59b7857
VS
127862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12787
12788 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
12789 allocation succeeded.
12790
9b4baaa4
VS
127912011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12792
12793 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
12794 argument a u8 pointer. All users updated.
12795 Handle unaligned buffers.
12796
dc713193
VS
127972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12798
12799 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
12800 add_part to workaround compiler bug.
12801
30dd48c2
VS
128022011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12803
12804 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
12805
0c6087a8
VS
128062011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12807
12808 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
12809 Reserve alignment invariants.
12810 (grub_multiboot_load): Likewise.
12811 (retrieve_video_parameters): Likewise.
12812 (grub_multiboot_make_mbi): Likewise.
12813
c2e77777
VS
128142011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12815
12816 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
12817 incorrect pointer.
12818
b70b6d11
VS
128192011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12820
12821 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
12822 (grub_pata_pio_write): Likewise.
12823
02a2bf83
VS
128242011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12825
12826 Add noreturn attributes and remove unreachable code.
12827
12828 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
12829 code.
12830 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
12831 code. Mark as noreturn.
12832 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
12833 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
12834 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
12835 unreachable code.
12836 * grub-core/kern/main.c (grub_main): Mark as noreturn.
12837 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
12838 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
12839 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
12840 * include/grub/kernel.h (grub_main): Mark as noreturn.
12841 * include/grub/reader.h (grub_rescue_run): Likewise.
12842
2019d09e
VS
128432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
12846 redundant declaration.
12847
d1c501ee
VS
128482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12851 redundant declaration.
12852 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12853
61664420
VS
128542011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12855
12856 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12857 to ensure alignment.
12858 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12859 alignment. Ensure tmp alignment.
12860 (grub_cmd_hdparm): Ensure buf alignment.
12861 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12862 to ensure alignment.
12863 (grub_ata_dumpinfo): Ensure text alignment.
12864 (grub_atapi_identify): Preserve alignment invariant.
12865 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12866
0d51ee20
VS
128672011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12868
12869 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12870 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12871 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12872 * include/grub/misc.h (grub_reboot)
12873 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12874 (grub_halt) [__mips__]: Likewise.
12875
753ef8c1
VS
128762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12879 Remove redundant declaration.
12880 (grub_mmap_get_post64): Likewise.
12881 (grub_mmap_get_upper): Likewise.
12882 (grub_mmap_get_lower): Likewise.
12883
85c85365
VS
128842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12885
12886 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12887 uint32_t * to ensure alignment.
12888 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12889
a23f2cc4
VS
128902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12891
93018f64
VS
12892 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12893 uint16_t * to ensure alignment.
12894 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12895 alignment.
12896
128972011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12898
12899 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
12900 to ensure alignment.
12901 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12902
58acccd6
VS
129032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12904
12905 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12906 Handle unaligned pointers.
12907 (u32at): Likewise.
12908 (u64at): Likewise.
12909 (fixup): Use byte access instead of v16at.
12910 (find_attr): Fix imporper usage of v32at.
12911 (read_data): Likewise.
12912 (list_file): Handle byte-swapping and unaligned strings.
12913 (grub_ntfs_label): Likewise.
12914
9b05cad7
VS
129152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12918 as it's not necessarily aligned.
12919
b3950b84
VS
129202011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12921
12922 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12923 redundant declaration.
12924 (grub_serial_init): Likewise.
12925 (grub_terminfo_init): Likewise.
12926
fcd232b7
VS
129272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12928
12929 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12930 function.
12931 (ZAP_HASH_IDX): Likewise.
12932 (ZAP_LEAF_HASH_SHIFT): Likewise.
12933 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12934 (LEAF_HASH): Likewise.
12935 (ZAP_LEAF_NUMCHUNKS): Likewise.
12936 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12937 alignment invariants. Return pointer. All users updated.
12938 (ZAP_LEAF_ENTRY): Make into inline function.
12939 (NBBY): Removed.
12940 (xor): LIkewise.
12941 (xor_out): Use grub_crypto_xor.
12942 (dnode_get_path): Use grub_get_unaligned.
12943 (nvlist_find_value): Likewise.
12944 (grub_zfs_nvlist_lookup_uint64): Likewise.
12945 (grub_zfs_nvlist_lookup_string): Likewise.
12946 (get_nvlist_size): Likewise.
12947 (grub_zfs_open): Likewise.
12948 (fill_fs_info): Likewise.
12949 (grub_zfs_dir): Likewise.
12950 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12951 alignment invariants.
12952 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12953 necessarily aligned.
12954
f138623a
VS
129552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12956
12957 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12958
564840dc
VS
129592011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12962 arithmetic to conserve alignment invariants.
12963
9b40df20
VS
129642011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12965
12966 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12967 redundant declaration.
12968 (grub_efiemu_mm_obtain_request): Likewise.
12969 (grub_efiemu_prepare): Likewise.
12970
d1c930f9
VS
129712011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12972
12973 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12974 to match types.
12975
4c5f3056
VS
129762011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12977
12978 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12979 case of aunaligned recptr.
12980 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12981 alignment.
12982 (grub_hfsplus_btree_search): Handle unaligned index.
12983
728cba91
VS
129842011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12985
12986 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12987 to get freetag and skip.
12988
eb561f31
VS
129892011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12992 array.
12993 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12994 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12995
20993fbb
VS
129962011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12997
12998 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12999 name for checksum and fix allocation algorithm.
13000
1f313b94
VS
130012011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * include/grub/types.h (grub_properly_aligned_t): New type.
13004 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
13005 (grub_get_unaligned16): Add explicit casts.
13006 (grub_get_unaligned32): Likewise.
13007 (grub_get_unaligned64): Likewise.
13008 (grub_set_unaligned16): New function.
13009 (grub_set_unaligned32): Likewise.
13010
47ae27ec
VS
130112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13012
13013 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13014
78c2cd1c
VS
130152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13016
13017 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
13018 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
13019 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
13020
53072f9b
VS
130212011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13022
13023 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
13024 conditionals.
13025
055dc239
VS
130262011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13027
13028 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
13029 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
13030
496bd074
VS
130312011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13032
13033 Unify and improve RAID and crypto xor.
13034
13035 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
13036 changed to grub_crypto_xor
13037 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
13038 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
13039 Use bigger types when possible.
13040
ef6e4335
VS
130412011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13042
13043 * grub-core/disk/raid.c (scan_devices): Fix condition.
13044
5d048bf2
VS
130452011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13046
13047 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
13048 Make name a const ptr.
13049
ee533335
VS
130502011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13051
13052 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
13053 first argument a const pointer.
13054 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
13055 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
13056 proto.
13057 (grub_children_iterate): Likewise.
13058 (grub_machine_mmap_iterate): Remove redundant declaration.
13059
cc8f3668
VS
130602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
13063 (grub_cmd_acpi) [!x86]: Disable EBDA.
13064
c5fc563a
VS
130652011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13066
13067 Enable UTF8 in gnulib regexp.
13068
13069 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
13070 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
13071 (isupper): Use grub_isupper.
13072 (isascii): New inline function.
13073 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
13074 * grub-core/lib/posix_wrap/wctype.h: Likewise.
13075 * grub-core/normal/charset.c (grub_utf8_process): New function.
13076 (grub_utf8_to_utf16): Use grub_utf8_process.
13077 (grub_encode_utf8_character): New function.
13078 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
13079 * include/grub/charset.h (grub_utf8_process): New declaration.
13080 (grub_encode_utf8_character): Likewise.
13081 * include/grub/misc.h (grub_islower): New inline function.
13082 (grub_isupper): Likewise.
13083 (grub_strchrsub): Moved down to fix the definitions.
13084
0af2346f
VS
130852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
13088 specification.
13089
74dbd244
VS
130902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13091
13092 * include/grub/loader.h (grub_loader_register_preboot_hook):
13093 Use struct preboot * and not void * for handle. All users updated.
13094 (grub_loader_unregister_preboot_hook): Likewise.
13095
1bc8f60d
VS
130962011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
13097
13098 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
13099 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
13100 UTF-16-BE. All users updated.
13101 (grub_hfsplus_cmp_catkey): Fix unicode handling.
13102 (grub_hfsplus_iterate_dir): Likewise.
13103 (grub_hfsplus_label): Likewise.
13104
48d6e456
VS
131052011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
13106
13107 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
13108
bf3a3857
VS
131092011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
13110
13111 Add missing const qualifiers.
13112
13113 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
13114 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
13115 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
13116 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
13117 (grub_lvm_check_flag): Likewise.
13118 * grub-core/efiemu/i386/coredetect.c
13119 (grub_efiemu_get_default_core_name): Likewise
13120 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13121 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
13122 * grub-core/fs/ntfs.c (fixup): Likewise.
13123 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
13124 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
13125 (fzap_lookup): Likewise.
13126 (zap_lookup): Likewise.
13127 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
13128 * grub-core/lib/legacy_parse.c (check_option): Likewise.
13129 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
13130 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
13131 (grub_freebsd_add_meta_module): Likewise.
13132 (grub_cmd_freebsd_module): Likewise.
13133 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
13134 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
13135 (grub_xnu_writetree_get_size): Likewise.
13136 (grub_xnu_writetree_toheap_real): Likewise.
13137 (grub_xnu_find_key): Likewise.
13138 (grub_xnu_create_key): Likewise.
13139 (grub_xnu_create_value): Likewise.
13140 (grub_xnu_register_memory): Likewise.
13141 (grub_xnu_check_os_bundle_required): Likewise.
13142 (grub_xnu_scan_dir_for_kexts): Likewise.
13143 (grub_xnu_load_kext_from_dir): Likewise.
13144 * grub-core/normal/color.c (color_list): Likewise.
13145 * grub-core/normal/completion.c (current_word): Likewise.
13146 * grub-core/normal/menu_entry.c (insert_string): Likewise.
13147 * grub-core/term/serial.c (grub_serial_find): Likewise.
13148 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
13149 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
13150 Likewise.
13151 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
13152 (grub_freebsd_add_meta_module): Likewise.
13153 * include/grub/lib/arg.h (grub_arg_option): Likewise.
13154 * include/grub/net.h (grub_net_card_driver): Likewise.
13155 (grub_net_card): Likewise.
13156 (grub_net_app_protocol): Likewise.
13157 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
13158 * include/grub/serial.h (grub_serial_find): Likewise.
13159 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
13160 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
13161 (grub_xnu_create_value): Likewise.
13162 (grub_xnu_find_key): Likewise.
13163 (grub_xnu_scan_dir_for_kexts): Likewise.
13164 (grub_xnu_load_kext_from_dir): Likewise.
13165
13166 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
13167 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
13168 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
13169 Moved from here ...
13170 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
13171
112b4837
CW
131722011-11-28 Colin Watson <cjwatson@ubuntu.com>
13173
13174 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
13175
49e891ac
VS
131762011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
13177
13178 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
13179 (read_device): Fix size calculation.
13180
fd258e5c
RM
131812011-11-25 Robert Millan <rmh@gnu.org>
13182
13183 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
13184 (find_root_device_from_libzfs): Add zpool output parser to be used
13185 as fallback when libzfs isn't available.
13186
78845dc2
SG
131872011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
13188
13189 * po/Makefile.in.in: Add missing escape-continuation.
13190
adac5211
VS
131912011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
13192
13193 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
13194
10b64f1c
VS
131952011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13196
13197 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
13198
bb416954
VS
131992011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13200
13201 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
13202
bdfe9eeb
VS
132032011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13204
13205 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
13206
581ffa8a
VS
132072011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13208
13209 * grub-core/lib/adler32.c: Add missing license specification.
13210 * grub-core/lib/crc64.c: Likewise.
13211 * grub-core/loader/i386/pc/plan9.c: Likewise.
13212 * grub-core/partmap/plan.c: Likewise.
13213
2536cf64
LK
132142011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
13215
13216 Add facility to debug GRUB with gdb under qemu.
13217
13218 * grub-core/gdb_grub.in: New file.
13219 * grub-core/gmodule.pl.in: Likewise.
13220 * grub-core/Makefile.core.def (gmodule.pl): New script.
13221 (gdb_grub): Likewise.
13222
bc108a4a
VS
132232011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13224
13225 * util/grub-mount.c (argp_parser): Accept relative pathes.
13226 * util/grub-fstest.c (argp_parser): Likewise.
13227
111c1778
VS
132282011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 Plan9 support.
13231
13232 * Makefile.util.def (libgrubmods): Add
13233 grub-core/partmap/plan.c.
13234 * docs/grub.texi: Notice Plan9 support.
13235 * grub-core/Makefile.core.def (plan9): New module.
13236 (part_plan): Likewise.
13237 * grub-core/loader/i386/pc/plan9.c: New file.
13238 * grub-core/partmap/plan.c: Likewise.
13239 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
13240 define.
13241 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
13242 * include/grub/mm.h (grub_extend_alloc): New inline function.
13243
c30be3b6
VS
132442011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13245
13246 Make Reed-Solomon faster by using power of generator representation of
13247 GF(256)*.
13248
13249 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
13250 (gf_double_t): Likewise.
13251 (gf_invert): Removed.
13252 (gf_powx): New array.
13253 (gf_powx_inv): Likewise.
13254 (scratch): Move higher.
13255 (gf_reduce): Removed.
13256 (gf_mul): Use powx.
13257 (gf_invert): Likewise.
13258 (init_inverts): Replaced with ...
13259 (init_powx): ...this. All users updated.
13260 (pol_evaluate): Replace multiplications with additions.
13261 (rs_encode): Likewise.
13262 (gauss_eliminate): Call gf_invert.
13263 (grub_reed_solomon_add_redundancy): Call init_powx.
13264 (grub_reed_solomon_recover): Call init_powx unconditionally.
13265
fa5aeffc
VS
132662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13267
13268 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
13269
a346b81c
VS
132702011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13271
13272 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
13273 disk->partiton for safety.
13274
d89ee414
VS
132752011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13276
13277 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13278 Fix a memory leak.
13279 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
13280
91ee7b6d
VS
132812011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13282
13283 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
13284
91e5a33d
VS
132852011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13286
13287 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
13288
9edd7be2
VS
132892011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13290
13291 Fix spaces handling in proc/self/mountinfo.
13292
13293 * util/getroot.c (unescape): New function.
13294 (grub_find_root_device_from_mountinfo): Use unescape.
13295
ba102053
VS
132962011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13297
13298 Support ZFS embedding.
13299
13300 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
13301 (grub_zfs_fs): Register grub_zfs_embed.
13302
aa94b870
VS
133032011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13304
13305 Fix MIPS compilation.
13306
13307 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
13308 * include/grub/offsets.h: Rename decompressor fields from
13309 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
13310 * util/grub-mkimage.c (image_targets): Use new names.
13311
5fbdac14
VS
133122011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13313
13314 Defer multiboot device parsing until we're in compressed part.
13315
13316 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
13317 bsd_part. setdevice has fallen into disuse.
13318 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
13319 (bsd_part): Likewise.
13320 (boot_dev): New variable.
13321 (multiboot_trampoline): Don't parse multiboot device.
13322 Pass multiboot device in %edx.
13323 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
13324 grub_boot_device.
13325 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
13326 Likewise.
13327 * grub-core/kern/i386/pc/startup.S: Save edx.
13328 (grub_boot_drive): Removed.
13329 (grub_install_dos_part): Likewise.
13330 (grub_install_bsd_part): Likewise.
13331 (grub_boot_device): New variable.
13332 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
13333 (grub_install_bsd_part): Likewise.
13334 (grub_boot_drive): Likewise.
13335 (grub_boot_device): New variable.
13336 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
13337 Removed.
13338 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13339 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
13340 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
13341 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
13342 * util/grub-install.in: Remove redundant condition.
13343
691cbb58
VS
133442011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13345
13346 Fix bug introduced by previous commit.
13347
13348 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
13349
60240b8b
VS
133502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13351
13352 Use decompressors framework on i386-pc. It increases core size
13353 by 46 bytes but improves compatibility and maintainability.
13354
13355 * grub-core/Makefile.core.def (lzma_decompress): New image.
13356 (kernel): Add i386_pc_ldflags.
13357 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
13358 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
13359 to real_to_prot, prot_to_real and device info.
13360 * include/grub/offsets.h: Renamed decompressor offsets.
13361 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
13362 (image_target_desc): Remove raw_size and rename decompressor fields.
13363 (compress_kernel): Handle lzma.
13364 (generate_image): Handle decompressors on i386-pc.
13365
e9d3421c
VS
133662011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13367
13368 * configure.ac: Add -fno-asynchronous-unwind-tables.
13369
2b23074a
VS
133702011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13371
13372 Move assembly code to C by using intwrap. It increases core size
13373 by 88 bytes but improves compatibility and maintainability.
13374
13375 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
13376 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
13377 ... here. Translated to C.
13378 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
13379 * grub-core/term/i386/pc/console.c (grub_console_getkey):
13380 ... here. Translated to C.
13381 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
13382 * grub-core/term/i386/pc/console.c (grub_console_getxy):
13383 ... here. Translated to C.
13384 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
13385 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
13386 ... here. Translated to C.
13387 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
13388 * grub-core/term/i386/pc/console.c (grub_console_cls):
13389 ... here. Translated to C.
13390 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
13391 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
13392 ... here. Translated to C.
13393 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
13394 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
13395 Translated to C.
13396 * grub-core/term/i386/pc/console.c (int10_9): New function.
13397 (grub_console_putchar): Likewise.
13398 * include/grub/i386/pc/console.h: Removed the not anymore shared
13399 functions.
13400
678f4b67
VS
134012011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13402
13403 Move grub_chainloader_real_boot out of the kernel.
13404
13405 * grub-core/Makefile.am: Remove machine/loader.h.
13406 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
13407 Removed.
13408 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
13409 variable.
13410 (grub_relocator16_keep_a20_enabled): Likewise.
13411 (grub_relocator16_boot): Fill new variables.
13412 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
13413 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
13414 relocator.
13415 (grub_chainloader_unload): Likewise.
13416 (grub_chainloader_cmd): Likewise.
13417 * include/grub/i386/pc/loader.h: Removed.
13418 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
13419 and esi. All initialisers updated.
13420
4626edf6
VS
134212011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
134222011-11-12 Colin Watson <cjwatson@ubuntu.com>
13423
13424 * Makefile.util.def (grub-mount): New util.
13425 * .bzrignore: Add grub-mount.
13426 * configure.ac: Check for fuse and enable grub-mount if available.
13427 * docs/man/grub-mount.h2m: New file.
13428 * util/grub-mount.c: Likewise.
13429
10f0117b
VS
134302011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13431
13432 * grub-core/commands/efi/fixvideo.c: Gettextize.
13433 * grub-core/commands/hashsum.c: Likewise.
13434 * grub-core/commands/i386/cmostest.c: Likewise.
13435 * grub-core/commands/i386/pc/drivemap.c: Likewise.
13436 * grub-core/commands/i386/pc/lsapm.c: Likewise.
13437 * grub-core/commands/i386/pc/sendkey.c: Likewise.
13438 * grub-core/commands/lsmmap.c: Likewise.
13439 * grub-core/commands/menuentry.c: Likewise.
13440 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
13441 * grub-core/commands/setpci.c: Likewise.
13442 * grub-core/loader/i386/bsd.c: Likewise.
13443 * grub-core/loader/i386/linux.c: Likewise.
13444 * util/getroot.c: Likewise.
13445 * util/grub-editenv.c: Likewise.
13446 * util/grub-fstest.c: Likewise.
13447 * util/grub-mkfont.c: Likewise.
13448 * util/grub-mkimage.c: Likewise.
13449 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13450 * util/grub-pe2elf.c: Likewise.
13451 * util/grub-probe.c: Likewise.
13452 * util/grub-setup.c: Likewise.
13453 * util/ieee1275/ofpath.c: Likewise.
13454 * util/misc.c: Likewise.
13455 * util/raid.c: Likewise.
13456
566f779b
RM
134572011-11-11 Robert Millan <rmh@gnu.org>
13458
13459 * util/getroot.c (grub_util_get_geom_abstraction): Remove
13460 __attribute__((unused)) from `os_dev', which *is* being used.
13461
b50787de
VS
134622011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13463
13464 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
13465 forgotten define.
13466 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
13467 GRUB_IA64_DL_GOT_ALIGN.
13468 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
13469 GRUB_IA64_DL_TRAMP_ALIGN.
13470
119d11c8
VS
134712011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13472
13473 Replace grub_fatal with normal errors in i386 linux loader.
13474
13475 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
13476 (allocate_pages): Check find_efi_mmap_size return value.
13477 (grub_e820_add_region): Return error.
13478 (grub_linux_boot): Check mmap return value.
13479
6e0632e2
VS
134802011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13481
13482 * grub-core/commands/acpihalt.c: Gettextized.
13483 * grub-core/commands/cacheinfo.c: Likewise.
13484 * grub-core/commands/cmp.c: Likewise.
13485 * grub-core/commands/efi/loadbios.c: Likewise.
13486 * grub-core/commands/gptsync.c: Likewise.
13487 * grub-core/commands/ieee1275/suspend.c: Likewise.
13488 * grub-core/commands/legacycfg.c: Likewise.
13489 * grub-core/commands/memrw.c: Likewise.
13490 * grub-core/commands/minicmd.c: Likewise.
13491 * grub-core/commands/parttool.c: Likewise.
13492 * grub-core/commands/time.c: Likewise.
13493 * grub-core/commands/videoinfo.c: Likewise.
13494 * grub-core/disk/geli.c: Likewise.
13495 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
13496 * grub-core/disk/luks.c: Likewise.
13497 * grub-core/disk/lvm.c: Likewise.
13498 * grub-core/font/font_cmd.c: Likewise.
13499 * grub-core/fs/zfs/zfscrypt.c: Likewise.
13500 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13501 * grub-core/gfxmenu/view.c: Likewise.
13502 * grub-core/kern/emu/hostdisk.c: Likewise.
13503 * grub-core/kern/emu/main.c: Likewise.
13504 * grub-core/kern/emu/misc.c: Likewise.
13505 * grub-core/kern/emu/mm.c: Likewise.
13506 * grub-core/kern/mips/arc/init.c: Likewise.
13507 * grub-core/kern/mips/loongson/init.c: Likewise.
13508 * grub-core/kern/partition.c: Likewise.
13509 * grub-core/lib/i386/halt.c: Likewise.
13510 * grub-core/lib/mips/arc/reboot.c: Likewise.
13511 * grub-core/lib/mips/loongson/reboot.c: Likewise.
13512 * grub-core/loader/i386/pc/chainloader.c: Likewise.
13513 * grub-core/loader/i386/xnu.c: Likewise.
13514 * grub-core/loader/multiboot.c: Likewise.
13515 * grub-core/net/bootp.c: Likewise.
13516 * grub-core/net/net.c: Likewise.
13517 * grub-core/normal/term.c: Likewise.
13518 * grub-core/partmap/bsdlabel.c: Likewise.
13519 * grub-core/parttool/msdospart.c: Likewise.
13520 * grub-core/term/gfxterm.c: Likewise.
13521 * grub-core/term/terminfo.c: Likewise.
13522 * grub-core/video/i386/pc/vbe.c: Likewise.
13523 * util/grub-menulst2cfg.c: Likewise.
13524 * util/grub-mkdevicemap.c: Likewise.
13525 * util/grub-mklayout.c: Likewise.
13526 * util/grub-mkrelpath.c: Likewise.
13527 * util/grub-script-check.c: Likewise.
13528 * util/ieee1275/grub-ofpathname.c: Likewise.
13529 * util/resolve.c: Likewise.
13530
073aa7a9
VS
135312011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13532
13533 Support %1$d syntax.
13534
13535 * tests/printf_unit_test.c: New file.
13536 * Makefile.util.def (printf_test): New test.
13537 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
13538
c76b5417
VS
135392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13540
13541 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
13542 fix.
13543
df067ad1
VS
135442011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13545
13546 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
13547 dprintf.
13548 * grub-core/font/font.c (grub_font_load): Likewise.
13549
5b289bc5
VS
135502011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13551
13552 * util/grub-macho2img.c: Add comment concerning gettext.
13553 * grub-core/lib/legacy_parse.c: Likewise.
13554
c1860f87
VS
135552011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
13558 (grub_xvasprintf): Likewise.
13559
d35d0d37
VS
135602011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13561
13562 Add const keyword to grub_env_get and gettextize week days.
13563
13564 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
13565 (grub_read_hook_datetime): Return const char *.
13566 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
13567 updated.
13568 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13569 Mark for gettext.
13570 (grub_get_weekday_name): Return const char *. Call gettext.
13571 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13572 char * and len as the argument. All users updated.
13573 (grub_script_argv_split_append): Receive const char *.
13574 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13575 * include/grub/env.h (grub_env_get): Likewise.
13576 (grub_env_read_hook_t): Return const char *.
13577 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13578 (grub_script_argv_split_append): Likewise.
13579
9aed8a71
VS
135802011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13583
067fdf00
VS
135842011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13585
13586 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13587 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13588
a8bd9d39
VS
135892011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13590
13591 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13592 Fix prototype.
13593
f7ce5baf
VS
135942011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13595
13596 Fix mips compilation.
13597
13598 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13599 normal decoder.
13600 (hashes): Use in embed decoder as well (for sizes).
13601 (dec_stream_header): Fix embed decompressor logic.
13602 (dec_stream_footer): Likewise.
13603
9bb182f3
VS
136042011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13605
13606 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13607 an error and not a fatal on unrecognised relocation types.
13608
63a9e6f6
VS
136092011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13610
13611 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13612 Issue error rather than printf on unknown arguments.
13613
4c458569
VS
136142011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13615
13616 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13617 Make buf a const.
13618
e2d22baf
VS
136192011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13620
13621 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13622 Fix module name.
13623
53dc8590
VS
136242011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13625
13626 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13627 leftover debug printf.
13628
6c189294
VS
136292011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13630
13631 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13632
f7688369
VS
136332011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13634
13635 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13636 A stylistic fix.
13637
11a775a3
VS
136382011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13639
13640 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13641
33f784e8
SL
136422011-11-10 Shea Levy <slevy@tieronedesign.com>
13643
13644 Allow all modules to perform serial IO
13645
13646 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13647 * include/grub/serial.h (grub_serial_port_configure): New inline
13648 function.
13649 (grub_serial_port_fetch): Likewise.
13650 (grub_serial_port_put): Likewise.
13651 (grub_serial_port_fini): Likewise.
13652 (grub_serial_find): New proto.
13653
f6276525
VS
136542011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13655
13656 Put symlink at the end of the node and fix a potential
13657 memory corruption.
13658
13659 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13660 Make symlink into an array.
13661 (set_rockridge): Set have_symlink and alloc_dirents.
13662 (grub_iso9660_read_symlink): Use new layout.
13663 (grub_iso9660_iterate_dir): Fix memory corruption.
13664 Use new layout.
13665 (grub_iso9660_dir): Set have_symlink.
13666 (grub_iso9660_open): Likewise.
13667
c3591189
VS
136682011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13669
13670 Remove local keyword.
13671
13672 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13673 (version_test_gt): Likewise.
13674 (version_find_latest): Likewise.
13675 (gettext_printf): Likewise.
13676 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13677
cb544caa
VS
136782011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13679
13680 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13681
45bd824d
VS
136822011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13683
13684 Fix ZFS memory and resource leaks.
13685
13686 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13687 All users updated.
13688 Free type on exit.
13689 (fill_vdev_info): New parameter inserted. All users updated.
13690 (check_pool_label): Likewise.
13691 (scan_disk): Likewise.
13692 (scan_devices): Close non-inserted disks.
13693 (fzap_iterate): Free l.
13694 (unmount_device): Free children descripto memory.
13695
ad9a2f44
VS
136962011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13697
13698 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13699 argument (access out of bounds).
13700
6b68db81
VS
137012011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13702
13703 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13704 >= 6 drives.
13705
28840fda
VS
137062011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13707
13708 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13709 Fix declaration.
13710
8a5a3a5b
VS
137112011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13712
13713 Fix several memory leaks.
13714
13715 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13716 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13717 (grub_cpio_dir): Likewise.
13718 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13719 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13720 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13721 (grub_romfs_label): Likewise.
13722 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13723 (squash_unmount): New function.
13724 (grub_squash_dir): Fix memory leak.
13725 (grub_squash_open): Likewise.
13726 (grub_squash_read): Likewise.
13727 (grub_squash_mtime): Likewise.
13728 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13729 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13730 * util/grub-fstest.c (fstest): Likewise.
13731
57b01250
VS
137322011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13733
13734 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13735 avoid accessing beyond the array.
13736
19e81ba7
VS
137372011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13738
13739 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13740
52b656c0
VS
137412011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13742
13743 Several AFFS fixes.
13744
13745 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13746 (GRUB_AFFS_FLAG_FFS): Removed.
13747 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13748 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13749 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13750 (grub_fshelp_node): Make block 32-bit.
13751 Add block_cache and last_block_cache.
13752 (grub_affs_read_block): Fill and use block cache.
13753 (grub_affs_read_file): Removed.
13754 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13755 boot block.
13756 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13757 safety.
13758 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13759 space.
13760 (grub_affs_close): Free block cache.
13761 (grub_affs_read): Use grub_fshelp_read_file directly.
13762
438a746a
VS
137632011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13764
13765 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13766 with no error set.
13767
49a45021
VS
137682011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13769
13770 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13771 used variable.
13772 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13773 Likewise.
13774
3ae17eb8
VS
137752011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13776
13777 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13778
13779 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13780 byteswap when needed.
13781
27610c38
VS
137822011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13783
13784 Fix FreeBSD compilation.
13785
13786 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
13787 to avoid circular dependency.
13788 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
13789 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
13790 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
13791
4a19b601
VS
137922011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13793
13794 Fix ZFS crypto error types.
13795
13796 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
13797 (grub_gcm_decrypt): Likewise.
13798 (grub_zfs_load_key_real): Fix error code type. Handle possible error
13799 from PBKDF2.
13800
958ee221
VS
138012011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 Illumos support.
13804
13805 * Makefile.util.def (10_illumos): New script.
13806 * configure.ac: Set COND_HOST_ILLUMOS.
13807 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
13808 Support Illumos calls.
13809 (find_partition_start) [__sun__]: Likewise.
13810 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
13811 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
13812 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
13813 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
13814 device.
13815 * util/grub-probe.c (probe) [__sun__]: Do character check.
13816 * util/grub.d/10_illumos.in: New file.
13817
cac14fb6
VS
138182011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13819
13820 Support escaped commas in hostdisk.
13821
13822 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
13823 (find_grub_drive): Use unescape_cmp.
13824 (make_device_name): Escape commas.
13825
78e08dc3
VS
138262011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13827
13828 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
13829
9f421dd1
VS
138302011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13831
13832 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
13833 variable.
13834
ed64e9e2
VS
138352011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13836
13837 Support trampoline jumps on powerpc.
13838
13839 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
13840 __ia64__ path.
13841 (grub_dl_load_segments): Set mod->sz.
13842 (grub_dl_flush_cache): Flush whole space occupied by module, not just
13843 segments.
13844 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
13845 (jump): Likewise.
13846 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
13847 function.
13848 (trampoline): New struct.
13849 (trampoline_template): New const.
13850 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13851 * include/grub/dl.h (grub_dl): Add sz element.
13852 [__powerpc__]: Follow __ia64__.
13853 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13854 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13855 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13856 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13857
3084ede4
VS
138582011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13859
13860 ZFS crypto support.
13861
13862 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13863 * grub-core/Makefile.core.def (zfscrypt): New module.
13864 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13865 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13866 it. All users updated.
13867 (grub_zfs_decrypt): New var.
13868 (grub_zfs_load_key): Likewise.
13869 (zio_checksum_functions): Add SHA256+MAC.
13870 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13871 (zio_read): Handle encrypted blocks.
13872 (zap_verify): Remove incorrect check.
13873 (fzap_iterate): Handle non-standard fzap.
13874 (zap_iterate): Likewise.
13875 (zap_iterate_u64): New function.
13876 (dnode_get_fullpath): Load keys.
13877 * grub-core/fs/zfs/zfscrypt.c: New file.
13878 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13879 (grub_crypto_ecb_encrypt): Make input const.
13880 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13881 (grub_crypto_ecb_encrypt): Make input const.
13882 (GRUB_CIPHER_AES): New macro.
13883 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13884 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13885 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13886 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13887 prefix. All users updated.
13888 (grub_zfs_add_key): New proto.
13889 (grub_zfs_decrypt): Likewise.
13890 (grub_zfs_load_key): Likewise.
13891 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13892 * util/grub-fstest.c (options): Add -K option.
13893 (argp_parser): Likewise.
13894
b632b404
VS
138952011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13896
13897 Support zle compression on ZFS.
13898
13899 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13900 (decomp_table): Add zle.
13901 * include/grub/zfs/zio.h (zio_compress): Add zle.
13902
c7ba4f69
VS
139032011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13904
13905 Support BtrFS embedding.
13906
13907 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13908 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13909 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13910 * util/grub-setup.c (setup): Use fs embedding if available.
13911 Add additional sanity check.
13912
455377d9
VS
139132011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * util/grub-install.in: Fix condition for config_opt.
13916
c2fd16ca
VS
139172011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13918
13919 Support third redundancy strip on raidz3.
13920
13921 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13922 Return error on singularity. All users updated.
13923 (read_device): Don't stop on 3rd failure on raidz3.
13924
8622923b
VS
139252011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13926
13927 Support case-insensitive ZFS subvolumes.
13928
13929 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13930 All users updated.
13931 (zap_hash): Likewise.
13932 (name_cmp): New function.
13933 (zap_leaf_array_equal): New parameter case_insensitive.
13934 All users updated.
13935 (zap_leaf_lookup): Likewise.
13936 (fzap_lookup): Likewise.
13937 (zap_lookup): Likewise.
13938 (dnode_get_path): New parameter case_insensitive. Retrieve case
13939 sensitiviness of a volume. All users updated.
13940 (dnode_get_fullpath): New parameter case_insensitive.
13941 All users updated.
13942 (grub_zfs_dir): Set info.case_insensitiveness.
13943
95f2e860
VS
139442011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13945
13946 Support second redundancy strip on raidz(2,3).
13947
13948 * grub-core/fs/zfs/zfs.c (powx): New array.
13949 (powx_inv): Likewise.
13950 (poly): New const.
13951 (xor_out): New function.
13952 (gf_mul): Likewise.
13953 (recovery): Likewise.
13954 (read_device): Use second redundancy strip.
13955
11ee4389
VS
139562011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 Use a power of generator representation of GF(256) multiplication group
13959 to save space time and complexity.
13960
13961 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13962 (raid6_table2): Likewise.
13963 (powx): New array.
13964 (powx_inv): Likewise.
13965 (poly): New const.
13966 (grub_raid_block_mul): Replace with ...
13967 (grub_raid_block_mulx): ...this.
13968 (grub_raid6_init_table): Rewritten.
13969 (grub_raid6_recover): Use power of generator representation.
13970
09e2763f
VS
139712011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13972
13973 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13974 for the right device.
13975
8bec9a28
VS
139762011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13977
13978 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13979 expected by grub-mkimage and it's more clear since there is no implicit
13980 padding.
13981
dbd3a32e
VS
139822011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13985 disk.
13986 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13987
182c872a
PMH
139882011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13989
13990 * util/grub-mkrescue.in: Fix handling xorriso option.
13991
1e51cabd
VS
139922011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13993
13994 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13995 NULL.
13996
9cc3581d 139972011-11-03 crocket <crockabiscuit@gmail.com>
13998
13999 * util/grub.d/10_linux.in: Add Slackware initrd naming.
14000
158dc1ea
VS
140012011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14002
14003 XZ CRC64 and SHA256 support.
14004
14005 * Makefile.util.def (libgrubmods): Add crc64.c.
14006 * grub-core/Makefile.core.def (crc64): New module.
14007 * grub-core/lib/crc64.c: New file.
14008 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
14009 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
14010 Fix the type.
14011 (MAX_HASH_SIZE): New define.
14012 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
14013 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
14014 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
14015 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
14016 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
14017 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
14018 Handle non-crc32 hashes.
14019 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
14020 (dec_stream_header): Handle non-crc32 hashes.
14021 (dec_stream_footer): Likewise.
14022 (dec_block_header): Likewise.
14023 (dec_main): Likewise.
14024 (xz_dec_init): Likewise.
14025 (xz_dec_reset): Likewise.
14026 (xz_dec_end): Likewise.
14027 * util/import_gcry.py: Add CRC64 line.
14028
9d9b3d2f
VS
140292011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14030
14031 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
14032 as well.
14033
7d0ac931
VS
140342011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 Make reiserfs label retrieval similar to other *_label functions.
14037
14038 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
14039 (REISERFS_MAX_LABEL_LENGTH): Removed.
14040 (REISERFS_LABEL_OFFSET): Likewise.
14041 (grub_reiserfs_label): Rewritten.
14042
140432011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14044
14045 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
14046 field.
14047
cf5ba824
VS
140482011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
14049
14050 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
14051
17744004
VS
140522011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
14053
14054 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
14055 drive failure on both raidz and raidz2.
14056
aca5aefc
VS
140572011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
14058
14059 Fix RAIDZ(2) for >= 5 devices.
14060
14061 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
14062 asize argument. All users updated.
14063
ce8ca56e
VS
140642011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
14065
14066 Fix RAIDZ(2).
14067
14068 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
14069 (fill_vdev_info_real): Set ashift.
14070 (read_device): Rewrite RAIDZ part based on reverse engineering.
14071
7c01e783
VS
140722011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14073
14074 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
14075 don't report potentially unavialiable fields in debug output.
14076 (find_path): Fix double-free and memory leak.
14077
ce109e84
VS
140782011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14079
14080 Read label on UFS1.
14081
14082 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
14083 (grub_ufs_fs): Always set .label.
14084
87661123
VS
140852011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 Use shifts in UFS.
14088
14089 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
14090 (grub_ufs_data): New field log2_blksz.
14091 (grub_ufs_read_file): Use shifts.
14092 (grub_ufs_mount): Check block size and logarithm it.
14093
46bc1dc2
VS
140942011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
14095
14096 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
14097 long symlinks.
14098
19ee2987
VS
140992011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14100
14101 Handle symlinks and long names on tar and cpio.
14102
14103 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
14104 (ATTR_FILE): Likewise.
14105 (ATTR_DIR): Likewise.
14106 (ATTR_LNK): Likewise.
14107 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
14108 (grub_cpio_find_file): Fill mode, handle linkname field as well as
14109 L and K entries.
14110 (grub_cpio_mount): Zero-fill data.
14111 (handle_symlink): New function.
46bc1dc2
VS
14112 (grub_cpio_dir): Handle symlinks.
14113 (grub_cpio_open): Likewise.
14114 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 14115
c83a08d8
VS
141162011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14117
14118 Fix iso9660 filename limitations and fix memory leaks.
14119
14120 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
14121 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
14122
45cdd3ea
VS
141232011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14124
14125 Fix JFS file name length limitations.
14126
14127 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
14128 (grub_jfs_diropen): Fix maximum filename length.
14129 (grub_jfs_getent): Fix filename length.
14130 (grub_jfs_lookup_symlink): Fix size checks.
14131
94ef05c2
VS
141322011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14133
14134 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
14135 string.
14136
785ab8c7
VS
141372011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14138
eb0b6b45
VS
14139 Leverage BFS implementation to read AFS.
14140
14141 * Makefile.util.def (libgrubmods): Add afs.c.
14142 * grub-core/Makefile.core.def (afs): New module
14143 * grub-core/fs/afs.c: New file.
14144 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
14145
141462011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14147
14148 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 14149
c4a1628f
VS
141502011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14151
14152 * grub-core/fs/bfs.c: Run indent.
14153
5825b379
VS
141542011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14155
14156 BFS implementation based on the specification.
14157
14158 * grub-core/fs/bfs.c: New file.
14159 * Makefile.util.def (libgrubmods): Add bfs.c.
14160 * grub-core/Makefile.core.def (bfs): New module.
14161
42b2a706
VS
141622011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14163
14164 * util/grub-fstest.c (cmd_cp): Clarify error message.
14165 (cmd_cmp): Likewise.
14166
61b99bfc
YB
141672011-10-30 Yves Blusseau <blusseau@zetam.org>
14168
14169 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
14170 and befs_be.
14171
faba3d16
VS
141722011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 Remove afs and befs because of copyright problem.
14175
14176 * grub-core/fs/afs.c: Removed.
14177 * grub-core/fs/afs_be.c: Removed.
14178 * grub-core/fs/befs.c: Removed.
14179 * grub-core/fs/befs_be.c: Removed.
14180 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
14181 * grub-core/Makefile.core.def (afs): Removed.
14182 (afs_be): Likewise.
14183 (befs): Likewise.
14184 (befs_be): Likewise.
14185
c39224b0
VS
141862011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14187
14188 Prefer rockridge over Joliet.
14189
14190 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
14191 to ...
14192 (set_rockridge): ... here.
14193 (grub_iso9660_mount): Check rockridge on the primary label when
14194 discovering. Ignore Joliet if Rockridge is present.
14195
e551115a
VS
141962011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14197
14198 Use shifts in nilfs2.
14199
14200 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
14201 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
14202 (grub_nilfs2_palloc_entries_per_group): Replace with ...
14203 (grub_nilfs2_log_palloc_entries_per_group): ... this.
14204 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
14205 (grub_nilfs2_entries_per_block): Replaced with ...
14206 (grub_nilfs2_log_entries_per_block_log): ... this.
14207 (grub_nilfs2_blocks_per_group): Replaced with ...
14208 (grub_nilfs2_blocks_per_group_log): ... this.
14209 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
14210 (grub_nilfs2_blocks_per_desc_block_log): ... this.
14211 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
14212 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
14213 (grub_nilfs2_palloc_entry_offset): Replaced ...
14214 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
14215 (grub_nilfs2_dat_translate): Use shifts.
14216 (grub_nilfs2_read_inode): Likewise.
14217 (GRUB_MOD_INIT): Ensure that logs are correct.
14218
564dd58c
VS
142192011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14220
14221 Use shifts in minix filesystem.
14222
14223 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
14224 (GRUB_MINIX_ZONE2SECT): Likewise.
14225 (grub_minix_data): Replace block_size with log_block_size.
14226 (grub_minix_read_file): Use shifts.
14227 (grub_minix_mount): Check block size and take a logarithm.
14228
ed9ba06d
VS
142292011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14230
14231 Use shifts in squash4.
14232
14233 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
14234 (squash_mount): Check block size and take logarithm.
14235 (direct_read): Use shifts.
14236
ad03fe76
VS
142372011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14238
14239 Correct befs block counting logic.
14240
14241 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
14242 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
14243 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
14244 (grub_afs_read_inode): Use block_shift.
14245 (RANGE_SHIFT): New definition.
14246 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
14247 unexpected conditions, use shifts and appropriate types.
14248 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
14249
6563f63d
VS
142502011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14251
14252 * grub-core/disk/raid.c (scan_devices): Check partition.
14253 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
14254
5b1ae25f
VS
142552011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14256
14257 Support BFS (befs) UUID.
14258
14259 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
14260 (grub_afs_small_data_element_header): New struct.
14261 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
14262 (grub_afs_read_attribute) [MODE_BFS]: New function.
14263 (grub_afs_iterate_dir): Allocate for complete inode.
14264 (grub_afs_mount): Likewise.
14265 (grub_afs_uuid) [MODE_BFS]: New function.
14266 (grub_afs_fs) [MODE_BFS]: Add .uuid.
14267
f8d82408
VS
142682011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14269
14270 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
14271 (zfs_unmount): Fix memory leak.
14272
5773fb64
VS
142732011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14274
14275 Support NTFS reparse points.
14276
14277 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
14278 (symlink_descriptor): New struct.
14279 (grub_ntfs_read_symlink): New function.
14280 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
14281 (grub_ntfs_open): Likewise.
14282
91c3fdde
VS
142832011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14284
14285 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
14286
3be82e10
VS
142872011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 fstest xnu_uuid subcommand.
14290
14291 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
14292 grub-core/commands/xnu_uuid.c.
14293 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
14294 (fstest): Handle xnu_uuid.
14295 (options): Document xnu_uuid.
14296 (argp_parser): Parse xnu_uuid.
14297
8e32442e
VS
142982011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14299
14300 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
14301 -l argument. Add newline at the end if printing.
14302 (GRUB_MOD_INIT): Document -l.
14303
52a05075
VS
143042011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14305
14306 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
14307
1869edb5
VS
143082011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14309
14310 ZFS multi-device and version 33 support.
14311
14312 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
14313 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
14314 (grub_zfs_data): Add multidev-ice-related fields.
14315 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
14316 (dva_get_offset): Make dva const.
14317 (zfs_fetch_nvlist): New function.
14318 (fill_vdev_info_real): Likewise.
14319 (fill_vdev_info): Likewise.
14320 (check_pool_label): Likewise.
14321 (scan_disk): Likewise.
14322 (scan_devices): Likewise.
14323 (read_device): Likewise.
14324 (read_dva): Likewise.
14325 (zio_read_gang): Use read_dva.
14326 (zio_read_data): Likewise.
14327 (zap_leaf_lookup): Add missing endian conversion.
14328 (zap_verify): Add missing endian conversion. All users updated.
14329 (fzap_lookup): Likewise.
14330 (fzap_iterate): Likewise.
14331 (dnode_get_path): Handle SA bonus.
14332 (nvlist_find_value): Make input const. All users updated.
14333 (unmount_device): New function.
14334 (zfs_unmount): Use unmount_device.
14335 (zfs_mount): Use scan_disk.
14336 (zfs_mtime): New function.
14337 (grub_zfs_open): Handle system attributes.
14338 (fill_fs_info): Likewise.
14339 (grub_zfs_dir): Likewise.
14340 (grub_zfs_fs): Add mtime.
14341 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
14342 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
14343 (SA_MTIME_OFFSET): Likewise.
14344 (SA_SYMLINK_OFFSET): Likewise.
14345 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
14346 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
14347 (fstest): Support zfsinfo.
14348 (argp_parser): Likewise.
14349
186b4028
VS
143502011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
14353 error.
14354
143552011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
14356
14357 ZFS fixes.
14358
14359 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
14360 sharing the same block. Iterate over correct number of indices.
14361 (dnode_get_path): Handle symlinks correctly.
14362
c0584900
VS
143632011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14364
14365 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
14366
67e2bd71
VS
143672011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14368
14369 Read label on HFS+.
14370
14371 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
14372 (grub_hfsplus_btree_search): Fix types.
14373 (grub_hfsplus_label): Implement.
14374
e9cc6b7b
VS
143752011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14376
14377 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
14378
19832ddb
VS
143792011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14380
14381 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
14382
66b40850
VS
143832011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14384
14385 Fix symlink handling on iso9660.
14386
14387 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
14388 All users updated.
14389 (grub_iso9660_susp_iterate): Accept zero-size iterate.
14390 (grub_iso9660_read_symlink): Moved most of code ...
14391 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
14392
db821363
VS
143932011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14394
14395 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14396 Use union to avoid breaking strict-aliasing rules.
14397
e1211949
VS
143982011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14399
14400 Support multi-extent iso files.
14401
14402 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
14403 Add node.
14404 (grub_fshelp_node): Revamp. All users updated.
14405 (FLAG_*): New enum.
14406 (read_node): New function.
14407 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
14408 All users updated.
14409 (grub_iso9660_mount): Don't attempt to read sua when there is none.
14410 (get_node_size): New function.
14411 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
14412 entries.
14413 Fix memory leak on . and ..
14414 (grub_iso9660_read): Use read_node.
14415 (grub_iso9660_close): Free node.
14416
d4888031
VS
144172011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14418
14419 Fix tar 4G limit and handle paths containing dot.
14420
14421 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
14422 (canonicalize): New function.
14423 (grub_cpio_find_file): Use canonicalize. Store offs in
14424 grub_disk_addr_t.
14425 (grub_cpio_dir): Use grub_disk_addr_t.
14426 (grub_cpio_open): Likewise.
14427
9f12e664
VS
144282011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14429
14430 Fix handling of uncompressed blocks on squashfs and break 4G limit.
14431
14432 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
14433 unused flags.
14434 (grub_squash_inode): Add long_file and block_size.
14435 (grub_squash_cache_inode): New struct.
14436 (grub_squash_dirent): Make types into enum.
14437 (SQUASH_TYPE_LONG_REGULAR): New type.
14438 (grub_squash_frag_desc): Add field size.
14439 (SQUASH_BLOCK_FLAGS): New enum.
14440 (grub_squash_data): Use grub_squash_cache_inode.
14441 (grub_fshelp_node): Make ino_chunk 64-bit.
14442 (read_chunk): Minor argument change. All users updated.
14443 (squash_mount): Use correct le_to_cpu.
14444 (grub_squash_open): Handle LONG_REGULAR.
14445 (direct_read): New function.
14446 (grub_squash_read_data): Handle blocks correctly.
14447
9f326fba
VS
144482011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14449
14450 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
14451
f4d9b64b
VS
144522011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14453
14454 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
14455
5bbd28b8
VS
144562011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14457
14458 Fix 2G limit on ZFS.
14459
14460 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
14461 types.
14462 (uberblock_verify): Likewise.
14463 (dmu_read): Likewise.
14464 (grub_zfs_read): Likewise. Remove invalid cast.
14465
68c72069
VS
144662011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14467
14468 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
14469 (grub_jfs_blkno): Fix incorrect shift.
14470 (grub_jfs_read_file): Use more appropriate types.
14471
6e536dc8
VS
144722011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14473
14474 Support triple indirect on minix2 and minix3.
14475
14476 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
14477 Declare triple_indir_zone.
14478 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
14479 indirect.
14480
e0864e7a
VS
144812011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14482
14483 Minix FS fixes.
14484
14485 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
14486 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
14487 Rename ctime to mtime. All users updated.
14488 (grub_minix_get_file_block): Fix types and double indirect computations.
14489
89481cab
VS
144902011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14491
14492 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
14493 if no label is found.
14494 (grub_fat_iterate_dir): Fix file size type.
14495 (grub_fat_iterate_dir): Likewise.
14496
f646e143
VS
144972011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
14500 save some space.
14501 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
14502 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14503
534d769e
VS
145042011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14505
14506 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
14507
e084ba18
VS
145082011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14509
14510 * util/import_gcry.py: Accept space between # and include.
14511
3471ecdf
VS
145122011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14513
14514 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
14515
124df5f6
VS
145162011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 Fine grainely disable warnings on lexer. Remove Wno-error on it.
14519
14520 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
14521 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
14522 yylex_strncpy.
14523 * grub-core/script/yylex.l: Add fine-grained #pragma.
14524
4defb8d5
VS
145252011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14526
14527 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
14528 New inline function.
14529 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
14530 Likewise.
14531 (memset) [GRUB_UTIL]: Likewise.
14532 (memcmp) [GRUB_UTIL]: Likewise.
14533
4e94ae65
VS
145342011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14535
14536 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
14537 inline function rather than a define.
14538
18c575e5
VS
145392011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14540
14541 * util/grub-setup.c: Add missing include.
14542
f8bc22a8
VS
145432011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14544
14545 * util/ieee1275/grub-ofpathname.c: Add missing include.
14546
3ce69fc9
VS
145472011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14548
14549 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
14550 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
14551 Likewise.
14552
d1e293bb
VS
145532011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14554
14555 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
14556 grub_memcmp usage.
14557
7a5c54a4
VS
145582011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 * util/grub-install.in: Add datarootdir as per automake manual
14561 suggestion.
14562 * util/grub-mknetdir.in: Likewise.
14563
145642011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
14565
14566 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
14567 suggestion.
14568 * util/grub.d/10_kfreebsd.in: Likewise.
14569 * util/grub.d/10_linux.in: Likewise.
14570 * util/grub.d/10_netbsd.in: Likewise.
14571 * util/grub.d/10_windows.in: Likewise.
14572 * util/grub.d/20_linux_xen.in: Likewise.
14573
766f7d08
VS
145742011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14575
14576 Remove redundant grub_kernel_image_size.
14577
14578 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14579 _edata and _start.
14580 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14581 the small code. It moves it only by few bytes but simplifies the code.
14582 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14583 _start.
14584 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14585 (grub_kernel_image_size): Removed.
14586 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14587 (grub_kernel_image_size): Removed.
14588 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14589 compiled with Apple toolchain.
14590 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14591 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14592 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14593 (grub_total_module_size): Likewise.
14594 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14595 Removed.
14596 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14597 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14598 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14599 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14600 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14601 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14602 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14603 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14604 Removed.
14605 (grub_total_module_size): Removed.
14606 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14607 (image_targets): Likewise.
14608 Set .compressed_size to no field on sparc.
14609 (generate_image): Remove kernel_image_size handling.
14610
fcf1d672
SJ
146112011-10-19 Szymon Janc <szymon@janc.net.pl>
14612
14613 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14614 NULL pointer dereference.
14615
de9c615e
VS
146162011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14619 done with a dedicated section.
14620
14621 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14622 Ensure the correct position of boot_path.
14623 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14624 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14625 other fields.
14626 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14627 * include/grub/boot.h: Removed. All references removed.
14628 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14629 Removed.
14630 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14631
e55599dc
VS
146322011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14633
14634 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14635 name.
14636
36dd20ad
VS
146372011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14638
14639 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14640
f8f72eb8
VS
146412011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14642
14643 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14644 Don't add the bogus brackets.
14645
a374751b
VS
146462011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14647
14648 ExFAT support.
14649
14650 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14651 * grub-core/Makefile.core.def (exfat): New module.
14652 * grub-core/fs/exfat.c: New file.
14653 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14654 (GRUB_FAT_ATTR_*): Make into an enum.
14655 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14656 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14657 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14658 (GRUB_FAT_MAXFILE): Removed.
14659 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14660 (grub_current_fat_bpb_t): New type.
14661 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14662 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14663 (grub_fat_dir_node_t): New type.
14664 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14665 (fat_log2) [MODE_EXFAT]: Removed.
14666 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14667 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14668 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14669 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14670 (grub_fat_label) [MODE_EXFAT]: New function.
14671 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14672 reserved_first_sector to 0.
14673
544c2487
VS
146742011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14675
14676 Move grub_reboot out of the kernel.
14677
14678 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14679 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14680 * grub-core/lib/efi/reboot.c: ... here.
14681 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14682 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14683 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14684 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14685 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14686 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14687 * grub-core/lib/ieee1275/reboot.c: ... here.
14688 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14689 * grub-core/lib/mips/arc/reboot.c: ... here.
14690 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14691 * grub-core/lib/mips/loongson/reboot.c: ...here.
14692 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14693 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14694 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14695 * include/grub/i386/reboot.h: New file.
14696 * include/grub/mips/loongson/ec.h: Fix includes.
14697 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14698 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14699 * grub-core/lib/i386/reboot.c: New file.
14700
a97501d2
VS
147012011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14702
14703 Make grub_prefix into module to fix the arbitrary limit and save
14704 some space.
14705
14706 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14707 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14708 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14709 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14710 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14711 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14712 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14713 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14714 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14715 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14716 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14717 * include/grub/ia64/efi/kernel.h: Removed.
14718 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14719 (grub_prefix): Removed.
14720 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14721 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14722 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14723 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14724 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14725 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14726 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14727 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14728 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14729 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14730 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14731 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14732 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14733 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14734 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14735 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14736 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14737 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14738 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14739 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14740 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14741 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14742 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14743 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14744 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14745 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14746 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14747 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14748 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14749 from module.
14750 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14751 prefix_end.
14752 (image_targets): Likewise.
14753 (generate_image): Put prefix as a module.
14754
39705fad
VS
147552011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14756
14757 Replace grub_module_iterate with FOR_MODULES.
14758
14759 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14760 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14761 (grub_efi_modules_addr): ...this.
14762 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14763 (grub_efi_init): Set grub_modbase.
14764 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14765 (grub_modbase): New variable.
14766 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14767 (grub_modbase): New variable.
14768 (grub_machine_init): Set grub_modbase.
14769 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14770 (grub_modbase): New variable.
14771 (grub_machine_init): Set grub_modbase.
14772 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14773 (grub_modbase): New variable.
14774 (grub_machine_init): Set grub_modbase.
14775 * grub-core/kern/main.c (grub_module_iterate): Remove.
14776 (grub_modules_get_end): Use grub_modbase.
14777 (grub_load_modules): Use FOR_MODULES.
14778 (grub_load_config): Likewise.
14779 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14780 (grub_modbase): New variable.
14781 (grub_machine_init): Set grub_modbase.
14782 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14783 (grub_modbase): New variable.
14784 (grub_machine_init): Set grub_modbase.
14785 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
14786 Removed.
14787 (grub_modbase): New variable.
14788 (grub_machine_init): Set grub_modbase.
14789 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
14790 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
14791 (grub_module_iterate): Likewise.
14792 (grub_modbase): New variable declaration.
14793 (FOR_MODULES): New macro.
14794
2afb7f6c
VS
147952011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14796
14797 * configure.ac: Check for __ctzdi2 and __ctzsi2.
14798 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
14799
366e34fa
VS
148002011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14801
14802 Fix few obvious type discrepancies.
14803
14804 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
14805 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
14806 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
14807 variable.
14808 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
14809 and connected types.
14810 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
14811 offset.
14812 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
14813 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
14814 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
14815 and connected types.
14816
177b960e
VS
148172011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14818
14819 Fix python 3.x incompatibilities.
14820
14821 * gentpl.py: Put brackets around print strings.
14822 * util/import_gcry.py: Open explicitly as utf-8.
14823 Use in instead of has_key.
14824
3b619ae1
VS
148252011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14826
14827 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
14828 (GRUB_XFS_INO_AGBITS): Make into inline function.
14829 (GRUB_XFS_INO_INOINAG): Likewise.
14830 (GRUB_XFS_INO_AG): Likewise.
14831 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14832 (GRUB_XFS_EXTENT_OFFSET): Likewise.
14833 (GRUB_XFS_EXTENT_BLOCK): Likewise.
14834 (GRUB_XFS_EXTENT_SIZE): Likewise.
14835 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
14836 (GRUB_XFS_NEXT_DIRENT): Likewise.
14837 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
14838 (grub_xfs_read_file): Fix offset type.
14839
8bcebcb8
RM
148402011-10-15 Robert Millan <rmh@gnu.org>
14841
14842 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
14843
0017e5ef
RM
148442011-10-15 Robert Millan <rmh@gnu.org>
14845
14846 Fix build problem on FreeBSD and GNU/kFreeBSD.
14847
14848 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
14849
d8919552
VS
148502011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14851
14852 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14853
14854 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14855 types.
14856 (grub_hfsplus_btree_recoffset): Likewise.
14857 (grub_hfsplus_btree_recptr): Likewise.
14858 (grub_hfsplus_find_block): Likewise.
14859 (grub_hfsplus_btree_search): Likewise.
14860 (grub_hfsplus_read_block): Likewise.
14861 (grub_hfsplus_read_file): Likewise.
14862 (grub_hfsplus_mount): Likewise.
14863 (grub_hfsplus_btree_iterate_node): Likewise.
14864 (grub_hfsplus_btree_search): Likewise.
14865 (grub_hfsplus_iterate_dir): Likewise.
14866 (grub_hfsplus_read): A small code simplification.
14867
c81296b6
VS
148682011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14869
14870 * grub-core/kern/emu/hostdisk.c
14871 (convert_system_partition_to_system_disk): Don't assume that children
14872 of mapper nodes are mapper nodes.
14873
0eb8ffb1
VS
148742011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14875
14876 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14877 * include/grub/misc.h (grub_isxdigit): New function.
14878 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14879 switched to grub_isxdigit.
14880 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14881 number starting with a letter.
14882
a98f4a08
RM
148832011-10-09 Robert Millan <rmh@gnu.org>
14884
14885 LVM support for FreeBSD and GNU/kFreeBSD.
14886
14887 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14888 GNU/kFreeBSD.
14889 (LVM_DEV_MAPPER_STRING): Move from here ...
14890 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14891 * util/getroot.c: Include `<grub/util/lvm.h>'.
14892 (grub_util_get_dev_abstraction): Enable
14893 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14894 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14895 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14896 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14897 support it.
14898 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14899 GNU/kFreeBSD.
14900 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14901 when LVM abstraction is required for ${GRUB_DEVICE}.
14902
050e8e90
SJ
149032011-10-06 Szymon Janc <szymon@janc.net.pl>
14904
14905 Add support for LZO compression in GRUB:
14906 - import of minilzo library,
14907 - LZO decompression for btrfs,
14908 - lzop files decompression.
14909
14910 * grub-core/io/lzopio.c: New file.
14911 * grub-core/lib/adler32.c: Likewise.
14912 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14913 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14914 * grub-core/lib/minilzo/minilzo.c: Likewise.
14915 * grub-core/lib/minilzo/minilzo.h: Likewise.
14916 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14917 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14918 grub-core/lib/minilzo/minilzo.c to common.
14919 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14920 cflags in cppflags.
14921 * grub-core/Makefile.core.def (btrfs): Likewise.
14922 * grub-core/Makefile.core.def (lzopio): New module.
14923 (adler32): Likewise.
14924 * grub-core/fs/btrfs.c: Include minilzo.h.
14925 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14926 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14927 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14928 (grub_btrfs_lzo_decompress): New function.
14929 (grub_btrfs_extent_read): Add support for LZO compression type.
14930 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14931 (GRUB_USHRT_MAX): Likewise.
14932 (GRUB_UINT_MAX): Likewise.
14933 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14934 (UINT_MAX): Likewise.
14935 (CHAR_BIT): Likewise.
14936 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14937 grub-core/lib/posix_wrap/limits.h
14938 (UCHAR_MAX): Likewise.
14939 * include/grub/file.h (grub_file_filter_id): New compression filter
14940 GRUB_FILE_FILTER_LZOPIO.
14941 * include/grub/file.h (grub_file_filter_id): Set
14942 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14943 * include/grub/types.h (grub_get_unaligned16): New function.
14944 (grub_get_unaligned32): Likewise.
14945 (grub_get_unaligned64): Likewise.
14946 * util/import_gcry.py (cryptolist): Add adler32.
14947
0eb8ffb1
VS
149482011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14949
14950 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14951 in perspective decreases the complexity of build system and fixes
14952 compilation right now.
14953
ce79cc99 149542011-10-01 Ales Nesrsta <starous@volny.cz>
14955
14956 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14957 (fixed problem related to using UHCI with coreboot).
14958
8667a314
BC
149592011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14960
14961 * gentpl.py: Use Autogen macros so that the output template file
14962 (Makefile.tpl) size is reduced.
14963
fc5efcc0
MK
149642011-09-29 Mads Kiilerich <mads@kiilerich.com>
14965
14966 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14967 extra_dist.
14968
d1ab689d
ML
149692011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14970
14971 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14972 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14973
c05de032
ML
149742011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14975
14976 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14977 _fullpath.
14978
cca7ccd8
ML
149792011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14980
14981 Remove extra declaration of sleep for mingw32.
14982
14983 * util/misc.c (sleep) [__MINGW32__]: Removed.
14984 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14985
e0b0dc83
GS
149862011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14987
14988 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14989 type and packname.
14990 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14991 Resurrected.
14992 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14993 (grub_netbsd_btinfo_bootwedge): New struct.
14994 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14995 New function.
14996 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14997
91a1a164
TH
149982011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14999
15000 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
15001 loader.
15002
2ded951e
AB
150032011-09-28 Andreas Born <futur.andy@googlemail.com>
15004
15005 Fix incorrect identifiers in bash-completion.
15006
15007 * util/bash-completion.d/grub-completion.bash.in
15008 (_grub_mkpasswd-pbkdf2): Rename to ...
15009 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
15010 (_grub_script-check): Rename to ...
15011 (_grub_script_check): ... this. All users updated.
15012
69915030
VS
150132011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
15014
15015 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
15016 Return 0 if disk isn't biosdisk.
15017
20fd15f9
GS
150182011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
15019
15020 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
15021 on NetBSD.
15022 * Makefile.util.def (grub-fstest): Likewise.
15023
1a7d7db9
GS
150242011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
15025
15026 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
15027 Get sector size from disk label.
15028
2221ab6c
CW
150292011-09-05 Colin Watson <cjwatson@ubuntu.com>
15030
15031 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
15032 */README* as well as README*.
15033 Reported by: Axel Beckert.
15034
ca51c4a0
VS
150352011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15036
15037 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
15038 case of less than 256 MiB of RAM.
15039
ab80f326
VS
150402011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15041
15042 * grub-core/commands/wildcard.c (make_regex): Handle @.
15043
4155e697
VS
150442011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15045
15046 * util/grub-install.in: Move cryptodisk logic to appropriate place.
15047
ab178c08
SJ
150482011-08-21 Szymon Janc <szymon@janc.net.pl>
15049
15050 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
15051 AC_LANG_CONFTEST macros.
15052
7dc3c686
SJ
150532011-08-20 Szymon Janc <szymon@janc.net.pl>
15054
15055 Add grub-fstest option to uncompress data for commands.
15056
15057 * util/grub-fstest.c (uncompress): New var.
15058 (options): New option -u.
15059
fe8d4a7b
SJ
150602011-08-20 Szymon Janc <szymon@janc.net.pl>
15061
15062 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
15063 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
15064
a5219af1
SJ
150652011-08-20 Szymon Janc <szymon@janc.net.pl>
15066
15067 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
15068 file type was not recognized correctly (not gzip or corrupted).
15069
f87abff5
VS
150702011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15071
15072 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
15073 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
15074
d94497ea
VS
150752011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15076
15077 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
15078 loongson.
15079 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
15080 video_radeon_fuloong2e.
15081 * grub-core/video/radeon_fuloong2e.c: New file.
15082 * include/grub/video.h (grub_video_id_t): Add new ID
15083 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
15084
0d1fd011
VS
150852011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15086
15087 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
15088 define.
15089 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
15090 that PRID matches the detected subplatform and reset the subplatform
15091 if it doesn't.
15092
84beb0ee
VS
150932011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15094
15095 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
15096
1227c133
VS
150972011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15098
15099 Fix PCI iterating on functions >= 4.
15100
15101 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
15102 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
15103 Removed.
15104 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
15105 (grub_pci_read): Fix bitmask.
15106 (grub_pci_read_word): Likewise.
15107 (grub_pci_read_byte): Likewise.
15108 (grub_pci_write): Likewise.
15109 (grub_pci_write_word): Likewise.
15110 (grub_pci_write_byte): Likewise.
15111
9594c689
VS
151122011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15113
15114 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
15115 can still be specified in TARGET_CFLAGS)
15116
14a2562c
VS
151172011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15118
15119 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
15120
15121 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
15122 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
15123 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
15124 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
15125 (FULOONG): Rename to ...
15126 (FULOONG2F): ... this. All users updated.
15127 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
15128 (machtype_fuloong2f_str): ... this.
15129 (machtype_fuloong2e_str): New string.
15130 Check for machtype_fuloong2e_str.
15131 * grub-core/loader/mips/linux.c (loongson_machtypes)
15132 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
15133 * grub-core/term/serial.c (loongson_defserial)
15134 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
15135 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
15136 loongson_defserial.
15137 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
15138 Rename to ...
15139 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
15140 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
15141 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
15142 to IMAGE_FULOONG2F_FLASH. All users updated.
15143 (image_targets): Rename images.
15144 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
15145
b526cbb6
SJ
151462011-08-19 Szymon Janc <szymon@janc.net.pl>
15147
15148 Make enable of disk cache statistics code configurable.
15149
15150 * configure.ac: --enable-cache-stats added.
15151 * config.h.in (DISK_CACHE_STATS): New define.
15152 * grub-core/Makefile.core.def (cacheinfo): New command.
15153 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
15154 * grub-core/commands/cacheinfo.c: New file.
15155 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
15156 moved to cacheinfo.c.
15157 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
15158 debug code.
15159 * include/grub/disk.h: Likewise.
15160
fb739ccd
SJ
151612011-08-19 Szymon Janc <szymon@janc.net.pl>
15162
15163 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
15164 * grub-core/Makefile.am: Likewise.
15165
2bba8cfd
VS
151662011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15167
15168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
15169 non-zero pull.
15170
43526629
VS
151712011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15172
15173 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
15174 All users updated.
15175 (grub_jfs_lookup_symlink): Use correct starting inode.
15176
5c144cc8
VS
151772011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15178
15179 * util/grub-setup.c (main): Add missing gcry initialisation.
15180
b1257f65
VS
151812011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15182
15183 Don't accept text modes on EFI when booting Linux.
15184
15185 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
15186 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
15187
828bc390
ML
151882011-08-15 Mario Limonciello <mario_limonciello@dell.com>
151892011-08-15 Colin Watson <cjwatson@ubuntu.com>
15190
15191 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
15192 use of "/path/.." as in grub-install for EFI as well as handling
15193 symlinks correctly.
15194 Fixes Debian bug #637768.
15195
5f60ccac
CW
151962011-08-15 Colin Watson <cjwatson@ubuntu.com>
15197
15198 * util/grub-probe.c: Remove duplicate #include.
15199
6dc212f9
RM
152002011-08-10 Robert Millan <rmh@gnu.org>
15201
15202 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
15203
15204 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
15205 function.
15206 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
15207 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
15208
66816d85
RM
152092011-08-03 Robert Millan <rmh@gnu.org>
15210
15211 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
15212 la_array as packed.
15213 Reported by: Zachary Bedell
15214
20168fca
CW
152152011-07-26 Colin Watson <cjwatson@ubuntu.com>
15216
15217 * configure.ac: The Loongson port requires grub-mkfont due to its
15218 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
15219 be built.
15220
303b6246
CW
152212011-07-26 Colin Watson <cjwatson@ubuntu.com>
15222
15223 * util/grub-install.in: Don't source grub-mkconfig_lib until after
15224 processing arguments (otherwise help2man fails when GRUB has not yet
15225 been installed).
15226
6795300e
VS
152272011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15228
41aa28ea
VS
15229 New script grub-mkstandalone.
15230
15231 * Makefile.util.def (grub-mkstandalone): New script.
15232 * docs/man/grub-mkstandalone.h2m: New file.
15233 * util/grub-mkstandalone.in: Likewise.
15234
152352011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 Support ATA disks with 4K sectors.
6795300e
VS
15238
15239 * include/grub/ata.h (grub_ata): New member log_sector_size.
15240 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
15241 (grub_ata_identify): Read sector size.
15242 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
15243
92227597
VS
152442011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15245
15246 * util/grub-install.in: Don't use uhci outside of x86.
15247
c77069f5
VS
152482011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15249
15250 * util/grub-mkrescue.in: Add missing quotes.
15251
152522011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
15253
15254 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
15255 dereference.
15256
583168a2
VS
152572011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15258
15259 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
15260
6be1c01f
VS
152612011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15262
15263 * include/grub/video.h: add missing EXPORT_FUND on
15264 grub_video_edid_checksum and grub_video_edid_preferred_mode.
15265
a1167439
VS
152662011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15267
15268 * include/grub/mips/kernel.h: Fix define conflict.
15269
bf66054f
VS
152702011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15271
15272 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
15273 all four ways.
15274
8fc4fa45
CW
152752011-07-21 Colin Watson <cjwatson@ubuntu.com>
15276
15277 Preferred resolution detection for VBE.
15278
15279 * grub-core/video/video.c (grub_video_edid_checksum): New function.
15280 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
15281 the Flat Panel extension, in line with the X.org VESA driver.
15282 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
15283 New function.
15284 (grub_vbe_bios_get_ddc_capabilities): Likewise.
15285 (grub_vbe_bios_read_edid): Likewise.
15286 (grub_vbe_get_preferred_mode): Likewise.
15287 (grub_video_vbe_setup): When the mode is "auto", try to get the
15288 preferred mode from VBE, and use the largest mode that is no larger
15289 than the preferred mode (some BIOSes expose a preferred mode that is
15290 not in their mode list!). If this fails, fall back to 640x480 as a
15291 safe conservative choice.
15292 (grub_video_vbe_get_edid): New function.
15293 (grub_video_vbe_adapter): Add get_edid.
15294 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
15295 (struct grub_video_adapter): Add get_edid.
15296 (grub_video_edid_checksum): Add prototype.
15297 (grub_video_edid_preferred_mode): Likewise.
15298 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
15299 structure.
15300
15301 * grub-core/commands/videoinfo.c (print_edid): New function.
15302 (grub_cmd_videoinfo): Print EDID if available.
15303
15304 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
15305 is more appropriate on a wider range of platforms than 640x480.
15306 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
15307 documentation.
15308
ca5572a9
VS
153092011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15310
15311 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
15312
e4bcf625
VS
153132011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 * po/POTFILES.in: Regenerate.
15316
c4edd548
VS
153172011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15318
15319 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
15320 incorrect memory usage.
15321
16a2bab0
VS
153222011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15323
15324 * util/grub-install.in: Source grub-mkconfig_lib.
15325
2e418de6
VS
153262011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15327
15328 Remove getroot.c from core on emu platform.
15329
15330 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
15331 kern/emu/raid.c.
15332 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
15333 useless.
15334 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
15335 * util/getroot.c (get_win32_path): ... here.
15336 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
15337 * util/getroot.c (fini_libzfs): ... here.
15338 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
15339 * util/getroot.c (grub_get_libzfs_handle): ... here.
15340 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
15341 Moved from here...
15342 * util/getroot.c (grub_find_zpool_from_dir): ... here.
15343 * grub-core/kern/emu/misc.c
15344 (grub_make_system_path_relative_to_its_root): Moved from here...
15345 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
15346 * grub-core/kern/emu/getroot.c: Moved from here ...
15347 * util/getroot.c: ... here. All users updated.
15348 * grub-core/kern/emu/raid.c: Moved from here ...
15349 * util/raid.c: ... here. All users updated.
15350
def9832a
VS
153512011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15352
15353 * po/POTFILES.in: Regenerate.
15354
cd8fe79a
VS
153552011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15356
15357 Fix compilation on GNU/Linux.
15358
15359 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
15360 Disable geli.
15361 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
15362 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
15363 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
15364
a251b719
VS
153652011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
153662011-07-07 Michael Gorven <michael@gorven.za.net>
153672011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
15368
15369 LUKS and GELI support.
15370
15371 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
15372 grub-core/disk/luks.c, grub-core/disk/geli.c,
15373 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
15374 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
15375 grub-core/lib/arg.c.
15376 (libgrubmods.a): Remove gcrypts cflags and cppflags.
15377 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
15378 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
15379 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
15380 (grub-bin2h): Add libgcry.a.
15381 (grub-mkimage): Likewise.
15382 (grub-mkrelpath): Likewise.
15383 (grub-script-check): Likewise.
15384 (grub-editenv): Likewise.
15385 (grub-mkpasswd-pbkdf2): Likewise.
15386 (grub-pe2elf): Likewise.
15387 (grub-fstest): Likewise.
15388 (grub-mkfont): Likewise.
15389 (grub-mkdevicemap): Likewise.
15390 (grub-probe): Likewise.
15391 (grub-ofpath): Likewise.
15392 (grub-mklayout): Likewise.
15393 (example_unit_test): Likewise.
15394 (grub-menulst2cfg): Likewise.
15395 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
15396 * grub-core/Makefile.core.def (cryptodisk): New module.
15397 (luks): Likewise.
15398 (geli): Likewise.
15399 * grub-core/disk/AFSplitter.c: New file.
15400 * grub-core/disk/cryptodisk.c: Likewise.
15401 * grub-core/disk/geli.c: Likewise.
15402 * grub-core/disk/luks.c: Likewise.
15403 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
15404 grub_util_is_lvm.
15405 (grub_util_get_dm_abstraction): New function.
15406 (grub_util_follow_gpart_up): Likewise.
15407 (grub_util_get_geom_abstraction): Likewise.
15408 (grub_util_get_dev_abstraction): Use new functions.
15409 (grub_util_pull_device): Pull GELI and LUKS.
15410 (grub_util_get_grub_dev): Handle LUKS and GELI.
15411 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
15412 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
15413 (follow_geom_up): Removed.
15414 (grub_util_fd_seek): New function.
15415 (open_device): Use grub_util_fd_seek.
15416 (nread): Rename to ..
15417 (grub_util_fd_read): ... this. All users updated.
15418 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
15419 (grub_crypto_cbc_decrypt): Likewise.
15420 (grub_crypto_hmac_write): Likewise.
15421 (grub_crypto_hmac_buffer): Likewise.
15422 (grub_password_get): Extend to util.
15423 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
15424 New member modname.
15425 (gcry_md_spec) [GRUB_UTIL]: Likewise.
15426 * include/grub/cryptodisk.h: New file.
15427 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
15428 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
15429 LUKS and GELI.
15430 (grub_util_follow_gpart_up): New proto.
15431 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
15432 (grub_util_fd_read): Likewise.
15433 (grub_cryptodisk_cheat_mount): Likewise.
15434 (grub_util_cryptodisk_print_uuid): Likewise.
15435 (grub_util_get_fd_sectors): Likewise.
15436 * util/grub-fstest.c (mount_crypt): New var.
15437 (fstest): Mount crypto if requested.
15438 (options): New option -C.
15439 (argp_parser): Parse -C.
15440 (main): Init and fini gcry.
15441 * util/grub-install.in: Support cryptodisk install.
15442 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
15443 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
15444 cryptodisk.
15445 (prepare_grub_to_access_device): Likewise.
15446 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
15447 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
15448 (probe_cryptodisk_uuid): New function.
15449 (probe_abstraction): Likewise.
15450 (probe): Use new functions.
15451 * util/import_gcry.py: Create Makefile.utilgcry.def.
15452 Add modname member.
15453
9bfdcbbc
VS
154542011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15455
15456 Lazy device scanning.
15457
15458 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
15459 (grub-setup): Remove util/raid.c.
15460 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
15461 * grub-core/disk/lvm.c (scan_depth): New variable.
15462 (grub_lvm_iterate): Rescan if necessary.
15463 (find_lv): New function based on grub_lvm_open.
15464 (grub_lvm_open): Use find_lv. Rescan on error.
15465 (is_node_readable): New function.
15466 (is_lv_readable): Likewise.
15467 (grub_lvm_scan_device): Skip already found disks.
15468 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
15469 Stop if searched device is found and readable.
15470 * grub-core/disk/raid.c (inscnt): New variable.
15471 (scan_depth): Likewise.
15472 (scan_devices): New function based on grub_raid_register. Abort if
15473 looked for device is found.
15474 (grub_raid_iterate): Rescan if needed.
15475 (find_array): NEw function based on -grub_raid_open.
15476 (grub_raid_open): Use find_array and rescan.
15477 (insert_array): Set became_readable_at.
15478 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
15479 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
15480 New function.
15481 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
15482 (grub_util_pull_device): New function.
15483 (grub_util_get_grub_dev): Call grub_util_pull_device.
15484 * util/raid.c: Moved to ..
15485 * grub-core/kern/emu/raid.c: ... here.
15486 (grub_util_raid_getmembers): New parameter "bootable".
15487 All users updated. Support 1.x.
15488 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
15489 All users updated.
15490 * include/grub/disk.h (grub_disk_pull_t): New enum.
15491 (grub_disk_dev): Change iterate prototype.
15492 All users updated.
15493 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
15494 New proto.
15495 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
15496 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
15497 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
15498 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
15499 All users updated.
15500 * include/grub/util/raid.h: Removed.
15501
1c358e59
VS
155022011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15503
15504 * po/POTFILES.in: Regenerate.
15505
abee94ed
VS
155062011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15507
15508 Unify sparc init with other ieee1275.
15509
15510 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
15511 instead of kern/sparc64/ieee1275/init.c.
15512 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
15513 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
15514 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
15515 grub/machine/kernel.h.
15516 (grub_ieee1275_original_stack) [__sparc__]: New variable.
15517 (grub_claim_heap) [__sparc__]: Use sparc version.
15518 (grub_machine_init): Moved args parsing to
15519 (grub_parse_cmdline): ...this.
15520 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
15521 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
15522 New definition.
15523 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
15524
15525 Move BOOTP to separate file.
15526
15527 * grub-core/Makefile.core.def (net): Add net/bootp.c.
15528 * grub-core/net/net.c: Move all BOOTP functions to
15529 * grub-core/net/bootp.c: ... here.
15530
15531 Use frame interface on PXE.
15532
15533 * grub-core/Makefile.core.def (pxecmd): Removed.
15534 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
15535 * grub-core/commands/i386/pc/pxecmd.c: Removed.
15536 * grub-core/i386/pc/pxe.c: Moved from here ...
15537 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
15538 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
15539 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
15540
15541 EFI network support.
15542
15543 * grub-core/Makefile.core.def (efinet): New module.
15544 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
15545 here...
15546 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
15547 All users updated.
15548 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
15549 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
15550 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
15551 * grub-core/net/drivers/efi/efinet.c: New file.
15552 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
15553 (grub_efi_net_config): New extern var.
15554
15555 Various cleanups and bugfixes.
15556
15557 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
15558 error.
15559 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
15560 disk declared as partition.
15561 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
15562 leak on failure.
15563 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
15564 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
15565 (grub_debug_zalloc): Likewise.
15566 (grub_debug_realloc): Likewise.
15567 (grub_debug_memalign): Likewise.
15568 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
15569 Check that target is IPv4.
15570 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15571 local-mac-address as fallback.
15572 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15573 memory leak.
15574 * grub-core/net/ip.c (ipchksum): Rename to ...
15575 (grub_net_ip_chksum): ... this. All users updated.
15576 (grub_net_recv_ip_packets): Special handling for DHCP.
15577 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15578
15579 Unify prefix handling
15580
15581 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15582 (grub_machine_get_bootlocation): ... this.
15583 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15584 (grub_machine_get_bootlocation): ... this.
15585 (grub_prefix): New variable.
15586 (prefix): Removed.
15587 (root_dev): New variable.
15588 (dir): Likewise.
15589 (main): Use new variables.
15590 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15591 Revamped into ...
15592 (grub_machine_get_bootlocation): ... this.
15593 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15594 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15595 (grub_machine_get_bootlocation): ... this.
15596 (grub_machine_set_prefix): Removed.
15597 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15598 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15599 Revamped into ...
15600 (grub_machine_get_bootlocation): ... this.
15601 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15602 (grub_set_prefix_and_root): ... this. All users updated.
15603 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15604 Revamped into ...
15605 (grub_machine_get_bootlocation): ... this.
15606 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15607 (grub_machine_get_bootlocation): New proto.
15608 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15609
15610 Less intrusive and more reliable seek on network implementation.
15611
15612 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15613 (grub_file_seek): Don't call grub_file_net_seek.
15614 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15615 (grub_net_fs_read_real): .. this.
15616 (grub_net_seek_real): Use net->offset.
15617 (grub_net_fs_read): Seek if necessary.
15618
15619 Unify IEEE1275 netwotk config with the other platforms.
15620
15621 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15622 New variable.
15623 (grub_machine_get_bootlocation): Support network.
15624 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15625 Support type and device parsing.
15626 (grub_ieee1275_get_device_type): New function.
15627 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15628 into ...
15629 (grub_ieee1275_net_config_real): ... this.
15630 (grub_ofnet_probecards): Removed.
15631 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15632 * include/grub/ieee1275/ofnet.h: Removed.
15633 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15634 extern var.
15635 (grub_ieee1275_get_device_type): New function.
15636
15637 Unify network device closing across platforms and make more robust.
15638
15639 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15640 grub_grubnet_fini.
15641 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15642 already.
15643 * grub-core/net/net.c (grub_net_network_level_interface_register):
15644 Update num_ifaces.
15645 (grub_net_card_unregister): Close all interfaces.
15646 (receive_packets): Don't poll if no iterfaces are registered.
15647 Open if necessary.
15648 (grub_net_fini_hw): New function.
15649 (grub_net_restore_hw): Likewise.
15650 (fini_hnd): New variable.
15651 (GRUB_MOD_INIT): Register preboot hook.
15652 (GRUB_MOD_FINI): Run and unregister preboot hook.
15653
15654 Poll network cards when idle.
15655
15656 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15657 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15658 * grub-core/net/net.c (receive_packets): Save last poll time.
15659 (grub_net_poll_cards_idle_real): New function.
15660 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15661 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15662 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15663
15664 Rename ofnet interfaces.
15665
15666 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15667 (grub_ofnet_findcards): Use ofnet_%s names.
15668
15669 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15670
15671 Cleanup socket opening.
15672
15673 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15674 (grub_net_fs_close): Likewise.
15675 (grub_net_fs_read_real): Use eof member.
15676 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15677 (+grub_net_udp_close): New inline function.
15678
15679 * include/grub/net/tftp.h: Moved to the top of ...
15680 * grub-core/net/tftp.c: ... here.
15681 * include/grub/net/ip.h: Moved mostly to the top of ...
15682 * grub-core/net/ip.c: ... here.
15683 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15684 * grub-core/net/ethernet.c: ... here.
15685
15686 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15687
15688 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15689 FS name.
15690
15691 * include/grub/net/ip.h (ipv4_ini): Removed.
15692 (ipv4_fini): Likewise.
15693
15694 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15695 (grub_net_send_ip_packets): Likewise.
15696
cf1337aa
VS
156972011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15698
15699 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15700 grub_read_cmos prototype.
15701
93c06ff9
VS
157022011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15703
15704 VGA text support in qemu-mips
15705
15706 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15707 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15708 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15709 text.
15710 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15711 * grub-core/kern/vga_init.c: ... this.
15712 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15713 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15714 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15715 Adjust.
15716 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15717 GRUB_MACHINE_PCI_IO_BASE.
15718
748ccabe
VS
157192011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15720
15721 MIPS qemu flash support.
15722
15723 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15724 magic.
15725 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15726 (grub_machine_init): Probe memory if its size isn't known.
15727 * util/grub-mkimage.c (image_targets): Add flash targets.
15728 (generate_image): Handle flash targets.
15729
d7345994
VS
157302011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15731
15732 MIPS qemu at_keyboard support.
15733
15734 * gentpl.py (videoinkernel): Add qemu-mips.
15735 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15736 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15737 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15738 modules.
15739 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15740 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15741 * grub-core/term/serial.c (grub_serial_register)
15742 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15743
a07a81b3
VS
157442011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15745
15746 CMOS support on sparc.
15747
15748 * gentpl.py (cmos): Add powerpc and sparc.
15749 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15750 powerpc and sparc.
15751 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15752 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15753 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15754 grub_set_datetime_cmos.
15755 * grub-core/lib/ieee1275/cmos.c: New file.
15756 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15757 (find_rtc): Set no_ieee1275_rtc on error.
15758 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15759 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15760 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15761 fail. Move value to argument. All users updated
15762 (grub_cmos_write): Likewise.
15763 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15764 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15765 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15766 grub_get_datetime_cmos and grub_set_datetime_cmos.
15767
77546584
GS
157682011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15769
15770 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15771 sourcing grub-mkconfig_lib.
15772 * util/update-grub_lib.in: Likewise.
15773 * util/grub.d/00_header.in: Likewise.
15774 * util/grub.d/10_hurd.in: Likewise.
15775 * util/grub.d/10_kfreebsd.in: Likewise.
15776 * util/grub.d/10_linux.in: Likewise.
15777 * util/grub.d/10_netbsd.in: Likewise.
15778 * util/grub.d/10_windows.in: Likewise.
15779 * util/grub.d/20_linux_xen.in: Likewise.
15780 * util/grub.d/30_os-prober.in: Likewise.
15781
54894791
CW
157822011-06-28 Colin Watson <cjwatson@ubuntu.com>
15783
15784 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
15785 default_bg_color rather than black.
15786 (grub_gfxterm_fullscreen): Likewise.
15787 (grub_gfxterm_background_color_cmd): Save new background color in
15788 default_bg_color.
15789
8d5d8444
VS
157902011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15791
15792 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
15793
5afeb5bd
VS
157942011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15795
15796 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
15797 mismerge.
15798
ba7df45e
VS
157992011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15800
15801 Chainloading on coreboot support.
15802
15803 * grub-core/Makefile.core.def (chain): Add coreboot.
15804 * grub-core/loader/i386/coreboot/chainloader.c: New file.
15805
d0b526b2
VS
158062011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15807
15808 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
15809 if it happens.
15810
5ff1d945
VS
158112011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15812
15813 Implement time command.
15814
15815 * grub-core/Makefile.core.def (time): New module.
15816 * grub-core/commands/time.c: New file.
15817 * grub-core/script/parser.y: Remove "time" keyword.
15818 * grub-core/script/yylex.l: Likewise.
15819
5ebaad7e
VS
158202011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15821
15822 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
15823
bdea3798
VS
158242011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15825
15826 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
15827 when handling leftovers.
15828
b28c5655
VS
158292011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
15832 so that help2man doesn't fail.
15833
b6f945dc
VS
158342011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15835
15836 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
15837 type in pointers on sparc64.
15838 (get_card_packet): Likewise.
15839
f9b75e8a
CW
158402011-06-27 Colin Watson <cjwatson@ubuntu.com>
15841
15842 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
15843 with `*'.
15844 (grub_cmd_videoinfo): Fetch current video mode.
15845
1e3d9b86
VS
158462011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15847
15848 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
15849 because of underlying system restrictions.
15850
efff4b1c
VS
158512011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15852
15853 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15854 necessary.
15855
9fc9ce37
VS
158562011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 Coreboot video support.
15859
15860 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15861 (vbe): Likewise.
15862 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15863 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15864 here ...
15865 * grub-core/kern/i386/int.S: ... here.
15866 * grub-core/video/i386/pc/vbe.c: Updated includes.
15867 * grub-core/video/i386/pc/vga.c: Likewise.
15868 * include/grub/i386/coreboot/memory.h
15869 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15870 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15871 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15872 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15873 Disable interrupts.
15874 * include/grub/i386/pc/vga.h: Removed. All users updated.
15875
41bec7fe
VS
158762011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15877
15878 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15879 definitions for dprintf.
15880 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15881
ca80309d
VS
158822011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15885 prototype.
15886 (get_card_packet): Likewise.
15887
9e322ce8
YB
158882011-06-26 Yves Blusseau <blusseau@zetam.org>
15889
15890 Display the path of the file when file is not found
15891
15892 * grub-core/fs/fat.c: Display the filename when file is not found.
15893 * grub-core/fs/fshelp.c: Likewise.
15894 * grub-core/fs/hfs.c: Likewise.
15895 * grub-core/fs/jfs.c: Likewise.
15896 * grub-core/fs/minix.c: Likewise.
15897 * grub-core/fs/ufs.c: Likewise.
15898 * grub-core/fs/btrfs.c: Likewise.
15899 * grub-core/commands/i386/pc/play.c: Likewise.
15900
cbf597af
SJ
159012011-06-26 Szymon Janc <szymon@janc.net.pl>
15902
15903 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15904 pointer checks before calling grub_free().
15905 * grub-core/commands/wildcard.c (match_devices): Likewise.
15906 * grub-core/commands/wildcard.c (match_files): Likewise.
15907 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15908 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15909 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15910 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15911 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15912 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15913 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15914 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15915 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15916
6295b32f
P
159172011-06-25 Patrick <p55@mailinator.com>
15918
15919 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15920
77c0840b
VS
159212011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15922
15923 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15924 (grub_pxe_send): Likewise.
15925 (GRUB_MOD_INIT): Fix types.
15926
40ea05de
SJ
159272011-06-24 Szymon Janc <szymon@janc.net.pl>
15928
15929 * grub-core/io/xzio.c: Fix code style issues
15930
90162423
MRA
159312011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
159322011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
15933
15934 Network infrastructure.
15935 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15936
15937 * include/grub/net/arp.h: New file.
90162423
MRA
15938 * include/grub/net/device.h: Likewise.
15939 * include/grub/net/ethernet.h: Likewise.
15940 * include/grub/net/ip.h: Likewise.
15941 * include/grub/net/netbuff.h: Likewise.
15942 * include/grub/net/tftp.h: Likewise.
15943 * include/grub/net/udp.h: Likewise.
15944 * include/grub/ieee1275/ofnet.h: Likewise.
15945 * include/grub/emu/export.h: Likewise.
15946 * include/grub/net.h: Likewise.
15947 * grub-core/net/arp.c: Likewise.
15948 * grub-core/net/ethernet.c: Likewise.
15949 * grub-core/net/ip.c: Likewise.
15950 * grub-core/net/udp.c: Likewise.
15951 * grub-core/net/tftp.c: Likewise.
15952 * grub-core/net/netbuff.c: Likewise.
15953 * grub-core/net/net.c: Likewise.
15954 * grub-core/net/drivers/emu/emunet.c: Likewise.
15955 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15956 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15957 export.h.
15958 * grub-core/Makefile.core.def (net): New module.
15959 (tftp): Likewise.
15960 (ofnet): Likewise.
15961 (emunet): Likewise.
15962 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15963 network protocols.
15964 * grub-core/kern/device.c (grub_net_open) : New variable.
15965 (grub_device_open): Handle network device.
15966 (grub_device_close): Likewise.
15967 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15968 (grub_grubnet_fini): Likewise.
15969 (grub_file_seek): Seek in network device.
15970 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15971 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15972 network root.
15973 (grub_machine_fini): Call grub_grubnet_fini.
15974 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15975 network.
15976 (grub_ieee1275_get_aliasdevname): New function.
15977 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15978 Add unofficial Solaris network info.
15979 (grub_multiboot_make_mbi): Likewise.
15980 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15981 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15982 * include/grub/device.h (grub_fs): Removed.
15983 * include/grub/err.h (grub_err_t): Add network-related values.
15984 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15985 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15986 (grub_ieee1275_get_aliasdevname): New proto.
15987 * include/grub/net.h: Rewritten.
423a1849 15988
031f22a0
VS
159892011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15990
15991 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15992 names.
15993
4388ca72
VS
159942011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15995
15996 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15997 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15998 it truncates the output.
15999 Reported by: Ximin Luo.
16000
98e2f506
VS
160012011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16002
16003 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
16004
2a5e94d8
VS
160052011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16006
16007 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
16008 partmap before abstraction.
16009
535c1910
AK
160102011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
16011
16012 * util/grub-mkconfig_lib.in: Add missing quotes.
16013
bc09e1a2
VS
160142011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
16017 old method if mountinfo would return /dev/root and /dev/root doesn't
16018 exist.
16019
290766fb
VS
160202011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16021
16022 ZFS zlib support
16023
16024 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
16025 (decomp_table): Add zlib entries.
16026 (zio_read): USe 8 bits for compression function rather than 3.
16027 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
16028
160292011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
16030
16031 * grub-core/disk/ahci.c: Add missing license statements.
16032 * grub-core/fs/romfs.c: Likewise.
16033 * grub-core/lib/ia64/setjmp.S: Likewise.
16034 * grub-core/loader/i386/pc/freedos.c: Likewise.
16035 * grub-core/loader/ia64/efi/linux.c: Likewise.
16036 * grub-core/video/colors.c: Likewise.
16037 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
16038
5ab3f48a
VS
160392011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16040
16041 AHCI support.
16042
16043 * grub-core/Makefile.core.def (ata_pthru): Removed.
16044 (ahci): New module.
16045 (pata): Likewise.
16046 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
16047 on unload.
16048 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
16049 readwrite.
16050 (grub_hdparm_do_check_powermode_cmd): Likewise.
16051 (grub_hdparm_do_smart_cmd): Likewise.
16052 (grub_hdparm_set_val_cmd): Likewise.
16053 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
16054 * grub-core/disk/ahci.c: New file.
16055 * grub-core/disk/ata.c: Factor out the low-level part into ...
16056 * grub-core/disk/pata.c: ... here.
16057 * grub-core/disk/ata_pthru.c: Contents moved to ...
16058 * grub-core/disk/pata.c: ... here.
16059 * grub-core/disk/scsi.c (grub_scsi_names): New array.
16060 (grub_scsi_iterate): Use grub_scsi_names.
16061 (grub_scsi_open): Likewise.
16062 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
16063 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
16064 (grub_ata_regs_t): New struct.
16065 (grub_disk_ata_pass_through_parms): Likewise.
16066 (grub_ata_device): Renamed to ...
16067 (grub_ata): ... this.
16068 (grub_ata_dev): New struct.
16069 Removed all low-level inline functions.
16070 * include/grub/scsi.h: Add PATA and AHCI subsystems.
16071 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
16072 iterate hooks and open. All users updated.
16073 * util/grub-install.in: Handle AHCI disk module.
16074
c31dc5f5
SJ
160752011-06-23 Szymon Janc <szymon@janc.net.pl>
16076
16077 Add support for DRI and RSTn markers in JPEG files.
16078
16079 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
16080 (JPEG_MARKER_RST0): Likewise.
16081 (JPEG_MARKER_RST1): Likewise.
16082 (JPEG_MARKER_RST2): Likewise.
16083 (JPEG_MARKER_RST3): Likewise.
16084 (JPEG_MARKER_RST4): Likewise.
16085 (JPEG_MARKER_RST5): Likewise.
16086 (JPEG_MARKER_RST6): Likewise.
16087 (JPEG_MARKER_RST7): Likewise.
16088 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
16089 (grub_jpeg_decode_dri): New function.
16090 (grub_jpeg_decode_sos): Move image data related part into
16091 grub_jpeg_decode_data function.
16092 (grub_jpeg_decode_data): New function.
16093 (grub_jpeg_reset): New function.
16094 (grub_jpeg_decode_jpeg): Handle new markers.
16095
fe12fd5b
VS
160962011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16097
16098 * util/ieee1275/ofpath.c (check_sas): Close fd.
16099 (main): Free of_path.
16100 Reported by: David Volgyes <dvolgyes>.
16101
03147f46
VS
161022011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16103
16104 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
16105 Reported by: David Volgyes <dvolgyes>.
16106
cad3237f
VS
161072011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16108
16109 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
16110 file after stat.
16111 Reported by: David Volgyes <dvolgyes>.
16112
13548d26
VS
161132011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16114
16115 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
16116
16117 Reported by: David Volgyes <dvolgyes>.
16118
e061a1b5
VS
161192011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16120
16121 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
16122 Prevent memory leak.
16123
1abe47dc
VS
161242011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16125
16126 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
16127 (main): Close file.
e061a1b5 16128 Reported by: David Volgyes <dvolgyes>.
1abe47dc 16129
fbc62666
VS
161302011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16131
16132 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
16133 to continue if allocation is failed.
16134
16135 Reported by: David Volgyes <dvolgyes>.
16136
e98c83e9
DV
161372011-06-23 David Volgyes <dvolgyes>
16138
16139 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
16140 dereference.
16141
a199a8cd
VS
161422011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16143
16144 Fix spurious warning.
16145
16146 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
16147 (acorn_partition_map_find): Use .bin member.
16148
e2d1dba0
VS
161492011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16150
16151 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
16152 /dev/root as a valid device.
16153
8a5d6919
JM
161542011-06-23 Jim Meyering <meyering@redhat.com>
16155
e2d1dba0
VS
16156 Avoid NULL deref in grub_device_open.
16157
8a5d6919
JM
16158 * grub-core/kern/device.c (grub_device_open): Don't dereference
16159 a NULL pointer upon failed grub_env_get.
16160
f7db6f4a
VS
161612011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 Support non-512B sectors and agglomerate reads.
16164
16165 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
16166 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
16167 (disk_io_guid): Removed.
16168 (make_devices): Locate solely by BlockIO.
16169 (grub_efidisk_open): Fill log_sector_size and total_sectors.
16170 (grub_efidisk_read): Use read_blocks.
16171 (grub_efidisk_write): Use write_blocks.
16172 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
16173 log_sector_size.
16174 (get_safe_sectors): Handle non-512B sectors.
16175 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
16176 sectors.
16177 (grub_biosdisk_write): Handle non-512B sectors.
16178 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
16179 (grub_scsi_read): Remove special non-512B block handling (now handled
16180 one level up).
16181 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
16182 and do sanity checks.
16183 (grub_disk_adjust_range): Handle non-512B sectors.
16184 (transform_sector): New function.
16185 (grub_disk_read_small): Likewise.
16186 (grub_disk_read): Rewritten.
16187 (grub_disk_write): Handle non-512B sectors.
16188 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
16189 log_sector_size.
16190 (open_device): Use log_sector_size.
16191 (grub_util_biosdisk_read): Likewise.
16192 (grub_util_biosdisk_write): Likewise.
16193 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
16194 non-512B sectors.
16195 (pc_partition_map_embed): Likewise.
16196 * include/grub/disk.h (grub_disk): New field log_sector_size.
16197 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
16198 (GRUB_DISK_CACHE_BITS): Increased to 6.
16199 * util/grub-fstest.c (fstest): New command testload.
16200 (argp_parser): Likewise.
16201
881ac815
RM
162022011-06-16 Robert Millan <rmh@gnu.org>
16203
16204 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
16205 `ata' driver on kernel of FreeBSD 9.
16206
16207 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
16208 (get_ataraid_disk_name): New functions.
16209 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
16210 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
16211 get_ataraid_disk_name() and get_ada_disk_name().
16212
1e9aef7d
CW
162132011-06-13 Colin Watson <cjwatson@ubuntu.com>
16214
16215 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
16216 input format.
16217
351c7c8a
CW
162182011-05-29 Colin Watson <cjwatson@ubuntu.com>
16219
16220 * docs/grub.texi (Obtaining and Building GRUB): Substitute
16221 `ftp.gnu.org' for `alpha.gnu.org'.
16222
6b4e6430
CW
162232011-05-27 Colin Watson <cjwatson@ubuntu.com>
16224
16225 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
16226 partitions under /dev/disk/by-id/.
16227
c64db050
CW
162282011-05-27 Colin Watson <cjwatson@ubuntu.com>
16229
16230 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
16231 after ten consecutive open failures. Scanning all the way up to
16232 10000 is excessive and can cause serious performance problems in
16233 some configurations.
16234 Fixes Ubuntu bug #787461.
16235
245f4aba
VS
162362011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16237
16238 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
16239 opening new one.
16240
f767c929
VS
162412011-05-21 Colin Watson <cjwatson@ubuntu.com>
162422011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16243
16244 Don't stat devices unless we have to.
16245
16246 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
16247 dir == /dev/mapper.
16248 (grub_guess_root_device): Use already known os_dev if possible.
16249 * grub-core/kern/emu/hostdisk.c
16250 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
16251 if device is known to be a dm one.
16252
f35fa3a6
CW
162532011-05-20 Colin Watson <cjwatson@ubuntu.com>
16254
16255 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
16256 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
16257 Reported by: Pawel Tecza.
16258
9a79fcf2
VS
162592011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16260
16261 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
16262 (lsefisystab): Likewise.
16263 (lssal): Likewise.
16264 (lsefimmap): Likewise.
16265 (hdparm): Enable on qemu-mips.
16266 (setjmp): Add ia64 nodist.
16267 (serial): Simplify tags.
16268
63e3eea9
CW
162692011-05-18 Colin Watson <cjwatson@ubuntu.com>
16270
16271 * Makefile.util.def (grub-ofpathname): Install manual page.
16272
09728256
CW
162732011-05-18 Colin Watson <cjwatson@ubuntu.com>
16274
16275 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
16276
8b63a142
CW
162772011-05-18 Colin Watson <cjwatson@ubuntu.com>
16278
16279 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
16280
e775d8ed
VS
162812011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16282
16283 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
16284 into dprintf.
16285
bf947d36
VS
162862011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16287
16288 Use full 64-bit division.
16289
16290 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
16291 (grub_divmod64): ... this.
16292 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
16293 version.
16294
b84f26c5
CW
162952011-05-18 Colin Watson <cjwatson@ubuntu.com>
16296
16297 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
16298 `source'.
16299
5626056f
CW
163002011-05-18 Colin Watson <cjwatson@ubuntu.com>
16301
16302 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
16303 to avoid accidents when debugging with 'sh -x'.
16304 * grub-core/gensyminfo.sh.in: Likewise.
16305 * tests/example_scripted_test.in: Likewise.
16306 * tests/grub_cmd_regexp.in: Likewise.
16307 * tests/grub_script_blanklines.in: Likewise.
16308 * tests/grub_script_dollar.in: Likewise.
16309 * tests/grub_script_expansion.in: Likewise.
16310 * tests/grub_script_final_semicolon.in: Likewise.
16311 * tests/partmap_test.in: Likewise.
16312 * tests/util/grub-shell-tester.in: Likewise.
16313 * tests/util/grub-shell.in: Likewise.
16314
e2965f4a
CW
163152011-05-18 Colin Watson <cjwatson@ubuntu.com>
16316
16317 Move gfxmenu color handling to video, so that gfxterm can use it
16318 too.
16319
16320 * grub-core/gfxmenu/named_colors.c: Move to ...
16321 * grub-core/video/colors.c: ... here. Rename
16322 grub_gui_get_named_color to grub_video_get_named_color.
16323 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
16324 * grub-core/video/colors.c (my_isxdigit): ... here.
16325 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
16326 Move to ...
16327 * grub-core/video/colors.c (parse_hex_color_component): ... here.
16328 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
16329 to ...
16330 * grub-core/video/colors.c (grub_video_parse_color): ... here.
16331
16332 * include/grub/gui.h (grub_gui_color_t): Move to ...
16333 * include/grub/video.h (grub_video_rgba_color_t): ... here.
16334 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
16335 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
16336 * include/grub/gui.h (grub_gui_map_color): Move to ...
16337 * include/grub/video.h (grub_video_map_rgba_color): ... here.
16338 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
16339 to ...
16340 * include/grub/video.h (grub_video_get_named_color): ... here.
16341 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
16342 * include/grub/video.h (grub_video_parse_color): ... here.
16343
16344 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
16345 video/colors.c.
16346 (gfxmenu): Remove gfxmenu/named_colors.c.
16347 (video) [videomodules]: Add video/colors.c.
16348
16349 Add a background_color command.
16350
16351 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
16352 function.
16353 (GRUB_MOD_INIT): Register background_color command.
16354 (GRUB_MOD_FINI): Unregister background_color command.
16355 (redraw_screen_rect): Allow blend/replace of text layer to be
16356 controlled independently from whether there is a background bitmap.
16357 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
16358 changing bitmap.
16359
1e4b4390
VS
163602011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16361
26618ff0
VS
16362 Patch BPB in ntldr and chainloader --bpb.
16363
1e4b4390
VS
16364 * grub-core/fs/fat.c: Include grub/fat.h.
16365 (grub_fat_bpb): Moved to ...
16366 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
16367 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
16368 grub/ntfs.h.
16369 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
16370 Moved from here...
16371 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
16372 here.
16373 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
16374 New function.
16375 (grub_chainloader_cmd): Patch BPB if --bpb is given.
16376 (GRUB_MOD_INIT): Show --bpb.
16377 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
16378 * grub-core/normal/main.c (features): New variable.
16379 (GRUB_MOD_INIT): Set feature_* variables.
16380 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
16381 proto.
16382 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
16383
cf02731e
VS
163842011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16385
16386 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
16387 for cleanness.
16388
e3a1073f
VS
163892011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16390
16391 FreeDOS direct loading support.
16392
16393 * docs/grub.texi (Supported OS): Add FreeDOS.
16394 * grub-core/Makefile.core.def (freedos): New module.
16395 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
16396 variable.
16397 (grub_relocator16_boot): Handle %ebx.
16398 * grub-core/lib/i386/relocator16.S: Likewise.
16399 * grub-core/loader/i386/pc/freedos.c: New file.
16400
05caa461
VS
164012011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16402
16403 Long Linux command line support.
16404
16405 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16406 (maximal_cmdline_size): New variable.
16407 (allocate_pages): Use maximal_cmdline_size.
16408 (grub_cmd_linux): Set and use maximal_cmdline_size.
16409 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16410 (allocate_pages): Use maximal_cmdline_size.
16411 (grub_cmd_linux): Set and use maximal_cmdline_size.
16412 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
16413 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
16414 and cmdline_size.
16415
a2491e23
VS
164162011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
164172011-05-18 Colin Watson <cjwatson@ubuntu.com>
16418
16419 Improve devmapper support
16420
16421 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
16422 (grub_util_is_lvm): New function.
16423 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
16424 than lvm if not dmraid.
16425 Handle mapped md nodes.
16426 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
16427 (grub_util_device_is_mapped): ... this. Make always available. All users
16428 updated.
16429 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
16430 (convert_system_partition_to_system_disk): Handle lvm, mpath and
16431 dmraid nodes.
16432 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
16433
6ad6223e
VS
164342011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16435
16436 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
16437
16438 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
16439 * grub-core/modinfo.sh.in: New file.
16440 * grub-core/Makefile.core.def (modinfo.sh): New script.
16441 * util/grub-mknetdir.in: Use modinfo.sh.
16442 * util/grub-mkrescue.in: Likewise.
16443
543a8f6e
VS
164442011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16445
16446 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16447 Fix potential usage of Elf32 instead of Elf64 when compiling on
16448 32-bit architecture. Add endianness macros while on it.
16449
4959e111
VS
164502011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 Use mipsel- rather than mips- in directories involving mipsel ports to
16453 allow both endiannesses coexist.
16454
16455 * configure.ac: proparate target_cpu=mipsel rather than resetting to
16456 mips. All conditions adjusted.
16457 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
16458 variable.
16459 * util/grub-install.in: Adjust conditions to take renaming into account.
16460 * util/grub-mkimage.c (image_targets): Likewise. New target
16461 mips-qemu_mips-elf for bigendian mips.
16462
35341bbc
VS
164632011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16464
16465 Avoid unnecessary copying on MIPS.
16466
16467 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
16468 early if src == dest.
16469 * util/grub-mkimage.c (generate_image): Arange for src == dest if
16470 compression is none.
16471
b772baed
VS
164722011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16473
16474 Reduce memory footprint on SGI by putting modules before the kernel
16475 as opposed to after.
16476
16477 * grub-core/Makefile.core.def (kernel): Increase linking address.
16478 (none_decompress): Likewise.
16479 (xz_decompress): Likewise.
16480 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
16481 address.
16482 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
16483 layout change.
16484 (grub_arch_modules_addr): New function.
16485 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
16486 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
16487 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
16488 here.
16489 * grub-core/kern/mips/startup.S (total_size): Rename to ...
16490 (grub_total_modules_size): ... this. Make global.
16491 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
16492 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
16493 New definition.
16494 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
16495 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
16496 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
16497 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
16498 * util/grub-mkimage.c (image_target_desc): New flag
16499 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
16500 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
16501 (generate_image): Handle images with modules before kernel.
16502
566a1917
VS
165032011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16504
16505 Prevent potential loss of memory map by overwrite on qemu-mips.
16506
16507 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16508 Save ram size in $s4.
16509 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
16510 All users changed to grub_arch_memsize.
16511 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
16512 Loongson.
16513 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
16514 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
16515 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
16516 external variable.
16517
5d420cd9
CW
165182011-05-17 Colin Watson <cjwatson@ubuntu.com>
16519
16520 * .bzrignore: Remove grub-dumpbios.
16521
d064b830
CW
165222011-05-17 Colin Watson <cjwatson@ubuntu.com>
16523
16524 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
16525 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
16526 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
16527 existing options which append).
16528 * docs/grub.texi (Simple configuration): Document new options.
16529 Reported by: Ian Jackson. Fixes Debian bug #617538.
16530
3ca2b466
CW
165312011-05-17 Colin Watson <cjwatson@ubuntu.com>
16532
16533 * util/grub-fstest.c (cmd_cat): New function.
16534 (fstest): Handle CMD_CAT.
16535 (options): Add cat.
16536 (argp_parser): Handle cat.
16537
24c9143a
CW
165382011-05-17 Colin Watson <cjwatson@ubuntu.com>
16539
16540 * Makefile.util.def (grub-bin2h): Don't install.
16541 * docs/man/grub-bin2h.h2m: Remove.
16542
90f7ac19
VS
165432011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16544
16545 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
16546 place.
16547
8d4a5178
VS
165482011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16549
16550 Reenable qemu-mips port.
16551
16552 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
16553 Fix small arc bug while on it.
16554 * gentpl.py: Handle qemu_mips.
16555 * grub-core/Makefile.am: Likewise.
16556 * grub-core/Makefile.core.def: Likewise.
16557 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
16558 inappropriate includes.
16559 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
16560 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
16561 * grub-core/kern/main.c (grub_modules_get_end)
16562 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
16563 * grub-core/kern/mips/qemu-mips: Moved to ..
16564 * grub-core/kern/mips/qemu_mips: ... this.
16565 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
16566 (grub_machine_init): Call terminfo_init and serial_init.
16567 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
16568 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16569 New variable.
16570 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16571 parameter passing.
16572 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16573 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16574 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16575 * include/grub/mips/qemu_mips/cmos.h: New file.
16576 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16577 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16578 Removed.
16579 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16580 Use correct mips-style address.
16581 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16582 (GRUB_TICKS_PER_SECOND): Removed.
16583 (grub_get_rtc): Likewise.
16584 (grub_cpu_idle): Likewise.
16585 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16586 New definition.
16587 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16588 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16589 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16590 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16591 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16592 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16593 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16594 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16595
400b9371
VS
165962011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16597
16598 SGI ARCS port.
16599
16600 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16601 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16602 platforms.
16603 * configure.ac: New target mips-arc.
16604 * gentpl.py: Likewise.
16605 * grub-core/Makefile.am: Likewise.
16606 * grub-core/Makefile.core.def: Likewise.
16607 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16608 (none_decompress): Likewise.
16609 (lsdev): New module.
16610 (datetime): Use lib/arc/datetime.c on ARC.
16611 (part_dvh): New module.
16612 * grub-core/commands/arc/lsdev.c: New file.
16613 * grub-core/disk/arc/arcdisk.c: Likewise.
16614 * grub-core/kern/mips/arc/init.c: Likewise.
16615 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16616 aligned addresses.
16617 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16618 support.
16619 (grub_arch_dl_relocate_symbols): Likewise.
16620 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16621 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16622 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16623 platforms.
16624 * grub-core/lib/arc/datetime.c: New file.
16625 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16626 pci.h on non-loongson.
16627 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16628 (grub_linux_boot): Set unused registers to 0.
16629 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16630 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16631 * grub-core/mmap/mips/uppermem.c: ...here.
16632 * grub-core/partmap/dvh.c: New file.
16633 * grub-core/term/arc/console.c: Likewise.
16634 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16635 (grub_terminfo_set_current): Add terminal "arc".
16636 (grub_terminfo_readkey): Support ARC sequences.
16637 * include/grub/arc/arc.h: New file.
16638 * include/grub/arc/console.h: Likewise.
16639 * include/grub/disk.h (grub_disk_dev_id): Add
16640 GRUB_DISK_DEVICE_ARCDISK_ID.
16641 * include/grub/mips/arc/kernel.h: New file.
16642 * include/grub/mips/arc/memory.h: Likewise.
16643 * include/grub/mips/arc/time.h: Likewise.
16644 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16645 * include/grub/mips/kernel.h (grub_halt): ... here.
16646 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16647 here...
16648 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16649 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16650 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16651 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16652 proto.
16653 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16654 from here ...
16655 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16656 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16657 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16658 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16659 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16660 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16661 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16662 (grub_phys_addr_t): Moved from here ...
16663 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16664 (grub_vtop): Moved from here ...
16665 * include/grub/mips/memory.h (grub_vtop): ... here.
16666 (grub_map_memory): Moved from here ...
16667 * include/grub/mips/memory.h (grub_map_memory): ... here.
16668 (grub_unmap_memory): Moved from here ...
16669 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16670 (grub_machine_mmap_iterate): Moved from here ...
16671 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16672 (grub_mmap_get_lower): Moved from here ...
16673 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16674 (grub_mmap_get_upper): Moved from here ...
16675 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16676 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16677 here ...
16678 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16679 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16680 here ...
16681 * include/grub/mips/time.h (grub_get_rtc): ... here.
16682 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16683 here ...
16684 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16685 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16686 here ...
16687 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16688 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16689 definition.
16690 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16691 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16692 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16693 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16694 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16695 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16696 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16697 (GRUB_MACHINE_LINK_ADDR): Likewise.
16698 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16699 to 6.
16700 * util/grub-install.in: Run dvhtool on ARC.
16701 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 16702 (generate_image): Handle ECOFF output for mips-arc.
400b9371 16703
c8ecc840
VS
167042011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16705
16706 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16707 blocks.
16708
153a4b55
VS
167092011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16710
16711 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16712 after enabling port.
16713
ff44d107
VS
167142011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16715
16716 Skip incorrect USB devices.
16717
16718 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16719 configcnt == 0.
16720 * include/grub/usb.h (grub_usb_err_t): New enum value
16721 GRUB_USB_ERR_BADDEVICE.
16722
638dbe4f
VS
167232011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16724
16725 Fuloong video init support.
16726
16727 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16728 well.
16729 (grub_vga_read_arx): New function.
16730 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16731 definition.
16732 (framebuffer): New members io, mmioptr and mmiobase.
16733 (read_sis_cmd): New function.
16734 (write_sis_cmd): Likewise.
16735 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16736 rather than 640x400.
16737 * grub-core/video/sis315_init.c: New file.
16738
c3fc520c
VS
167392011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16740
16741 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16742 non-loongson.
16743 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16744 to grub_dl_register_symbol.
16745
67b1e5c9
VS
167462011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16747
16748 Fix compilation errors.
16749
16750 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16751 potentially unused.
16752 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16753 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16754 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16755 to loongson machines.
16756
b756f75f
VS
167572011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16758
16759 Several FS mtime support.
16760
16761 * grub-core/fs/affs.c (grub_affs_time): New struct.
16762 (grub_affs_file): New field mtime.
16763 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16764 type. Removed 'size'. New field 'di'. All users updated.
16765 (grub_affs_mount): Simplify checsum checking.
16766 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16767 (grub_affs_dir): Handle mtime.
16768 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16769 (grub_cpio_dir): Likewise.
16770 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16771 (grub_hfs_filerec): New field mtime.
16772 (grub_hfs_dir): Handle mtime.
16773 (grub_hfs_mtime): New function.
16774 (grub_hfs_fs): Register grub_hfs_mtime.
16775 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16776 (grub_iso9660_dir): New field mtime.
16777 (grub_fshelp_node): New field dirent.
16778 (iso9660_to_unixtime): New function.
16779 (iso9660_to_unixtime2): Likewise.
16780 (grub_iso9660_read_symlink): Use node->dirent.
16781 (grub_iso9660_iterate_dir): Likewise.
16782 (grub_iso9660_dir): Set mtime.
16783 (grub_iso9660_mtime): New function.
16784 (grub_iso9660_fs): Register grub_iso9660_mtime.
16785 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
16786 (grub_jfs_inode): New fields atime, ctime and mtime.
16787 (grub_jfs_dir): Set mtime.
16788 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16789 * grub-core/fs/ntfs.c (list_file): Set mtime.
16790 (grub_ntfs_dir): Likewise.
16791 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
16792 (grub_reiserfs_iterate_dir): Set mtime.
16793 (grub_reiserfs_dir): Likewise.
16794 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
16795 (grub_fshelp_node): Likewise.
16796 (grub_sfs_iterate_dir): Set mtime.
16797 (grub_sfs_dir): Likewise.
16798 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
16799 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
16800 (grub_xfs_inode): New fields atime, mtime, ctime.
16801 (grub_xfs_dir): Set mtime.
16802 * include/grub/datetime.h (grub_datetime2unixtime): New function.
16803 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
16804 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
16805
16806 Support UDF symlinks.
16807
16808 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
16809 (grub_ufs_read_symlink): New function. All users updated.
16810
16811 Check amiga partmap checksum.
16812
16813 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
16814 (grub_amiga_partition): Likewise.
16815 (amiga_partition_map_checksum): New function.
16816 (amiga_partition_map_iterate): Check checksum.
16817
5470225d
VS
168182011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16819
16820 ROMFS support.
16821
16822 * Makefile.util.def (libgrubmods.a): Add romfs.
16823 * grub-core/Makefile.core.def (romfs): New module.
16824 * grub-core/fs/romfs.c: New file.
16825
d4680a35
VS
168262011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16827
16828 Squashfs v4 support.
16829
16830 * Makefile.util.def (libgrubmods.a): Add squash4.
16831 * grub-core/Makefile.core.def (squash4): New module.
16832 * grub-core/fs/squash4.c: New file.
16833 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
16834 disk_input_start, disk_input.
16835 (get_byte): Handle disk_input.
16836 (grub_zlib_disk_read): New function.
16837 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
16838
bcb18e74
FZ
168392011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
168402011-05-15 Feiran Zheng <famcool@gmail.com>
16841
16842 * Makefile.util.def (libgrubmods.a): Add minix3.
16843 * grub-core/Makefile.core.def (minix3): New module.
16844 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
16845 (GRUB_MINIX_BSIZE): Removed.
16846 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
16847 (grub_minix_ino_t): New type.
16848 (grub_minix_le_to_cpu_ino): New macro.
16849 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16850 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16851 (grub_minix_data): New field block_size.
16852 (grub_minix_read_file): Handle 64-bit correctly.
16853 * grub-core/fs/minix3.c: New file.
16854
32297d5f
TG
168552011-05-15 Tristan Gingold <gingold@free.fr>
168562011-05-15 Robert Millan <rmh.grub@aybabtu.com>
168572011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16858
16859 IA64 support.
16860
16861 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16862 * configure.ac: Add ia64-efi target.
16863 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16864 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16865 * gentpl.py: Add ia64_efi platform.
16866 Rename x86_efi to efi and Add ia64-efi. All users updated.
16867 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16868 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16869 Remove kern/generic/rtc_get_time_ms.c on EFI.
16870 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16871 kern/ia64/dl_helper.c on ia64-efi.
16872 Add kern/emu/cache.c on emu.
16873 (linux): Use on loader/ia64/efi/linux.c on ia64.
16874 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16875 whether symbol is a function.
16876 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16877 (grub_symbol): New field 'isfunc'.
16878 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16879 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16880 (grub_dl_load_segments): Place all sections into the same region.
16881 [__ia64__]: Create trampolines and got.
16882 [GRUB_MACHINE_EMU]: Call mprotect.
16883 (grub_dl_resolve_symbols): Resolve symbol type as well.
16884 [__ia64__]: Create function descriptors.
16885 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16886 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16887 (grub_get_rtc): New function.
16888 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16889 * grub-core/kern/emu/cache.S: Renamed to ...
16890 * grub-core/kern/emu/cache_s.S: ... this.
16891 [__ia64__]: Add a nop.
16892 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16893 [__ia64__]: New function.
16894 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16895 * grub-core/kern/ia64/dl.c: New file.
16896 * grub-core/kern/ia64/dl_helper.c: Likewise.
16897 * grub-core/kern/ia64/efi/init.c: New file.
16898 * grub-core/kern/ia64/efi/startup.S: Likewise.
16899 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16900 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16901 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16902 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16903 * grub-core/loader/ia64/efi/linux.c: New file.
16904 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16905 (GRUB_MOD_DEP): Likewise.
16906 (grub_dl) [__ia64__]: New fields got and tramp.
16907 (grub_dl): New field 'base'.
16908 (grub_dl_register_symbol): New argument isfunc. All users updated.
16909 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16910 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16911 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16912 (grub_ia64_dl_get_tramp_got_size): New proto.
16913 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16914 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16915 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16916 * include/grub/efi/api.h: Skip call wrappers on ia64.
16917 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16918 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16919 * include/grub/elf.h (ELF_ST_INFO): New definition.
16920 * include/grub/ia64/efi/kernel.h: New file.
16921 * include/grub/ia64/efi/memory.h: Likewise.
16922 * include/grub/ia64/efi/time.h: Likewise.
16923 * include/grub/ia64/kernel.h: Likewise.
16924 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16925 * include/grub/ia64/time.h: New file.
16926 * include/grub/ia64/types.h: Likewise.
16927 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16928 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16929 New protos.
16930 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16931 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16932 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16933 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16934 All users updated.
16935 (EFI64_HEADER_SIZE): New definition. All users updated.
16936 (image_targets): Add ia64-efi.
16937 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16938 jumpers_addr. All users updated.
16939 Create function descriptors.
16940 (count_funcs): New function.
16941 (unaligned_uint32): New struct.
16942 (MASK20): New definition.
16943 (MASK19): Likewise.
16944 (MASKF21): Likewise.
16945 (add_value_to_slot_20b): New function.
16946 (add_value_to_slot_21_real): Likewise.
16947 (add_value_to_slot_21): Likewise.
16948 (ia64_kernel_trampoline): New struct.
16949 (nopm): New variable.
16950 (jump): Likewise.
16951 (make_trampoline): New function.
16952 (relocate_addresses): Handle ia64.
16953 (make_reloc_section): Likewise.
16954 (load_image): Likewise.
16955
983b414d
VS
169562011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16957
16958 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16959 warning. Move variables before code while on it.
16960
5d063cdc
VS
169612011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16962
16963 Fuloong support.
16964
16965 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16966 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16967 * grub-core/boot/mips/loongson/fuloong.S: New file.
16968 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16969 Explicitly init CS5536.
16970 [FULOONG]: Don't use serial until CS5536 is available.
16971 Set GPIO based on dumps.
16972 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16973 [FULOONG]: Handle GPIO and memory controller differences.
16974 Parse machine type in $a2.
16975 * grub-core/boot/mips/startup_raw.S: Determine and save the
16976 architecture.
16977 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16978 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16979 init on architecture type.
16980 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16981 SIS315E. Don't init at_keyboard on fuloong.
16982 (grub_halt): Support Fuloong.
16983 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16984 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16985 (loongson_machtypes): New array.
16986 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16987 type.
16988 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16989 config. All users updated. Handle CS5536 serial.
16990 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16991 default port on machine type. Register serial as inactive.
16992 * grub-core/video/sis315pro.c: New file.
16993 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16994 definition.
16995 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16996 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16997 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16998 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16999 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
17000 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
17001 to ...
17002 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
17003 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
17004 definition.
17005 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
17006 (grub_arch_machine): New extern var.
17007 * include/grub/mips/loongson/serial.h
17008 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
17009 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
17010 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
17011 (GRUB_MACHINE_SERIAL_PORT0): ... this.
17012 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
17013 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
17014 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
17015 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
17016 * include/grub/term.h (grub_term_register_input_inactive): New inline
17017 function.
17018 (grub_term_register_output_inactive): Likewise.
17019 * include/grub/video.h (grub_video_driver_id): New value
17020 GRUB_VIDEO_DRIVER_SIS315PRO.
17021 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
17022 New field "names". All users updated.
17023 New field value IMAGE_FULOONG_FLASH.
17024 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
17025
6ada82d1
JU
170262011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
17027
17028 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
17029 and add some clarification.
17030
90c571a4
VS
170312011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17032
17033 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
17034 platforms if kernel is compressed.
17035
de04eecf
VS
170362011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17037
17038 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
17039 unused modules since currently referrence counter isn't reliable and
17040 there isn't much memory to recover there anyway.
17041
57688121
VS
170422011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17043
17044 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
17045 rather than resetting it to allow modules to reference themselves
17046 in init.
17047
3d2c7e35
VS
170482011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
17051 counter on dependencies since grub_dl_unref already handles this.
17052
b25db218
VS
170532011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17054
17055 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
17056 on error if not already done.
17057
25a45338
VS
170582011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17059
17060 Fix few potential memory misusage.
17061
17062 * grub-core/font/font.c (load_font_index): Don't free char_index to
17063 avoid double free.
b25db218
VS
17064 (grub_font_load): Zero-fill font at alloc for safety.
17065 Close file on error.
17066 (free_font): Free bmp_idx.
25a45338 17067
0cac83df
VS
170682011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 * docs/grub.texi (Installation): Fix several outdated claims.
17071
2217a143
VS
170722011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17073
17074 Handle module_license on windows.
17075
17076 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
17077 sections shifted.
17078 (insert_string): Make argument const char * instead of char *.
17079 (write_section_data): Handle long section names.
17080 Handle module_license.
17081
d4de6b01
VS
170822011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17083
17084 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
17085 handle class-free menuentries.
17086 (grub_normal_add_menu_entry): Add a check to be sure.
17087
4c2a3b43
VS
170882011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
17089
17090 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
17091 PgUp and PgDown.
17092
85c6210f
VS
170932011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 * configure.ac: Bump version to 1.99.
17096
36084912
VS
170972011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17098
17099 Give ATA device a bit more time on first try in order to allow disks
17100 to spin up.
17101
17102 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
17103 if dev->present is 1. Reset dev->present on failure.
17104 (grub_ata_device_initialize): Set dev->present to 1.
17105 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
17106 (grub_ata_device): New member 'present'.
17107
bda0e219
VS
171082011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17109
17110 * util/grub-mkimage.c (generate_image): Update hash.
17111
19e1c41b
VS
171122011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17113
17114 Flush caches on DMA memory.
17115
17116 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
17117 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
17118 (grub_dma_free): Likewise.
17119 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
17120
91bbcc0c
VS
171212011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17122
17123 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
17124 to avoid asm treating ld and sd as macros.
17125
60ddfad3
VS
171262011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17127
17128 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
17129 decompressor.
17130
a298aa04
VS
171312011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17132
17133 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
17134 grub_decompress_core since later would fail if grub_decompress_core
17135 is too far.
17136
9b44feca
VS
171372011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17138
17139 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
17140 R_MIPS_JALR since it's used by newer compiler.
17141
56dbe7b4
VS
171422011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
17143
17144 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
17145
52856af2
VS
171462011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17147
17148 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
17149 file_path to 0 for surety.
17150 (grub_chainloader_boot): Set exit_data to NULL.
17151 Unset the loader once done.
17152 (grub_cmd_chainloader): Fix confusing error message if file is empty.
17153
9c9bfc6d
VS
171542011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17155
17156 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
17157 unknown key into a dprintf.
17158
dd94a3df
VS
171592011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17160
17161 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
17162 on first non-existant partition.
17163
fa68d99c
VS
171642011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17165
17166 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
17167 openning fails.
17168 Reported by: Mark Korenberg.
17169
157effb7
VS
171702011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17171
17172 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
17173 overflow.
17174
ea75312f
VS
171752011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17176
17177 * util/grub-mkimage.c (main): Explicitely flush and sync the output
17178 before closing to ensure that it will be readable by grub-setup.
17179
072b5d31
VS
171802011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17181
17182 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
17183 (devpath_1): Use MAKE_PIWG_PATH.
17184 (devpath_2): Likewise.
17185 (devpath_3): Likewise.
17186 (devpath_4): Likewise.
17187 (devpath_5): Likewise.
17188 (devpath_6): Likewise.
17189
17190 The appleldr.mod was checked that to be binary identical to previous
17191 version.
17192
7fae0051
Z
171932011-05-05 Zach <mikezackles>
17194
17195 Support 2010 Macbooks.
17196
17197 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
17198 (devs): Add devpath_6.
17199
7c515bee
VS
172002011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17201
17202 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
17203 /dev/random. /dev/urandom is good enough for our purposes (salting).
17204
ed660bd8
VS
172052011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17206
17207 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
17208
ee5614b7
VS
172092011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17210
17211 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
17212 hexadecimal.
17213
664889a6
VS
172142011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17215
17216 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
17217 and not 0 on failure.
17218
bd405bbc
CW
172192011-05-03 Colin Watson <cjwatson@ubuntu.com>
17220
17221 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
17222 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
17223 disk; otherwise grub_fs_probe will not fall back to the next
17224 filesystem.
17225 (grub_pxefs_open): Likewise, for consistency.
17226 Reported and tested by: Ezekiel Grave.
17227
4ebff753
CW
172282011-05-03 Colin Watson <cjwatson@ubuntu.com>
17229
17230 * tests/partmap_test.in: Don't hardcode path to parted.
17231 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
17232
8f942553
CW
172332011-05-01 Colin Watson <cjwatson@ubuntu.com>
17234
17235 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
17236 of `ls' to find out which devices are available.
17237
3c62402d
VS
172382011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17239
17240 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
17241 than source address for efi mmap buffer.
17242
723f63f2
VS
172432011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17244
17245 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
17246 wrong action on non-detecting the magic.
17247
68797f92
VS
172482011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17249
17250 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
17251 already supplied by another part of the module (fixes compilation on
17252 FreeBSD).
17253
6be8715d
VS
172542011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
17257 match the one used by mdadm.
17258
e91dba5b
CW
172592011-04-21 Colin Watson <cjwatson@ubuntu.com>
17260
17261 * po/README: Add instructions for creating po/LINGUAS.
17262
c85140b3
CW
172632011-04-21 Colin Watson <cjwatson@ubuntu.com>
17264
17265 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
17266 #551428.
17267
17268 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
17269 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
17270 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
17271 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
17272 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
17273 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
17274 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
17275 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
17276 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
17277 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
17278 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
17279 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
17280 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
17281 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
17282 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
17283 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
17284 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
17285 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
17286 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
17287 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
17288 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
17289 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
17290
92051871
CW
172912011-04-21 Colin Watson <cjwatson@ubuntu.com>
17292
17293 * grub-core/kern/emu/getroot.c
17294 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
17295 test that was incorrectly reintroduced in r3214.
17296 Reported by: Ian Dall. Fixes Savannah bug #33133.
17297
b13f79a4
CW
172982011-04-21 Colin Watson <cjwatson@ubuntu.com>
17299
17300 Fix stack pointer handling in 16-bit relocator.
17301
17302 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
17303 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
17304 Fixes Ubuntu bug #683904.
17305
9b710a88
VS
173062011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17307
17308 * configure.ac: Bump version to 1.99~rc2.
17309
d97e7b59
VS
173102011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17311
17312 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
17313 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
17314 * grub-core/lib/x86_64/setjmp.S: Likewise.
17315 * grub-core/lib/mips/setjmp.S: Likewise.
17316 * grub-core/lib/powerpc/setjmp.S: Likewise.
17317 * grub-core/lib/sparc64/setjmp.S: Likewise.
17318
0624551c
VS
173192011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17320
17321 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
17322 * grub-core/lib/efi/datetime.c: Likewise.
17323
e8f28d4c
VS
173242011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17325
17326 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
17327 New function.
17328 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
17329 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
17330 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
17331
bba79a15
VS
173322011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17333
17334 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
17335 bitmap.
17336 (grub_gfxterm_term_init): Likewise.
17337
abc474ef
VS
173382011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17339
17340 Take into account the decorations the computing menu entry width.
17341
17342 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
17343 (grub_gfxmenu_create_box): Register get_border_width.
17344 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
17345 if available.
17346 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
17347 get_border_width.
17348
e74b3947
EP
173492011-04-18 Endres Puschner <code@e7p.de>
17350
17351 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
17352 Don't skip first class.
17353
34faa595
VS
173542011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17355
17356 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
17357 chunks.
17358 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
17359
93a777e3
VS
173602011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17361
17362 Complete 64-bit division support.
17363
17364 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
17365 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
17366 * include/grub/misc.h (grub_divmod64): Rename to ...
17367 (grub_divmod64_full): ... this.
17368 (grub_divmod64): New inline function.
17369
a5102d94
VS
173702011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * util/grub-mkimage.c (generate_image): Add forgotten comma.
17373
f3fb7b36
VS
173742011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17375
17376 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
17377 performing the necessary test.
17378
9ac718b0
VS
173792011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17380
17381 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
17382 (kfreebsd.elf): Likewise.
17383 (pc-chainloader.elf): Likewise.
17384 (ntldr.elf): Likewise.
17385
50d2cc5a
VS
173862011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17387
17388 Identify RAID by its UUID rather than (guessed) name.
17389
17390 * grub-core/disk/raid.c (ascii2hex): New function.
17391 (grub_raid_open): Accept mduuid/%s specification.
17392 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
17393 (get_mdadm_uuid): ... this.
17394 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
17395
e03f7bea
VS
173962011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
17397
17398 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
17399 to negative size.
17400
e74c3112
CW
174012011-04-13 Colin Watson <cjwatson@ubuntu.com>
17402
17403 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
17404 btrfs subvolume.
17405 * util/grub.d/20_linux_xen.in: Likewise.
17406
78fa584f
CW
174072011-04-13 Colin Watson <cjwatson@ubuntu.com>
17408
17409 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
17410 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
17411
17412 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17413 Build a list of relevant visible mounts using the mnt_id and
17414 parent_mnt_id fields, and then scan that list at the end.
17415
9d5f8162
CW
174162011-04-12 Colin Watson <cjwatson@ubuntu.com>
17417
17418 * docs/grub.texi (normal): New section.
17419 (normal_exit): New section.
17420 (Embedded configuration): Add reference to normal.
17421 (GRUB only offers a rescue shell): Likewise.
17422 * docs/grub-dev.texi (Error Handling): Fix typo.
17423
09a9d66f
CW
174242011-04-12 Colin Watson <cjwatson@ubuntu.com>
17425
17426 * NEWS: Drop obsolete entry about probe-only btrfs support.
17427
0c676933
CW
174282011-04-12 Colin Watson <cjwatson@ubuntu.com>
17429
17430 * util/import_gcry.py: Fix typo.
17431
ec9f5e0d
VS
174322011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17433
17434 * NEWS: Add btrfs support.
17435
fe6b2cba
VS
174362011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
174372011-04-11 Colin Watson <cjwatson@ubuntu.com>
17438
17439 BtrFS support. Written by me (Vladimir) with important bugfixes and
17440 even more important testing by Colin.
17441
17442 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
17443 * grub-core/Makefile.core.def (btrfs): Add crc.c.
17444 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
17445 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
17446 mem_input_off and mem_input. All users updated to accept in-RAM input.
17447 (gzio_seek): New function.
17448 (test_zlib_header): Likewise.
17449 (grub_gzio_read): Likewise.
17450 (grub_zlib_decompress): Likewise.
17451 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
17452 Accept partial and non-virtual mounts.
17453 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
17454 avoid receiving /dev/dm-X as device.
17455 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
17456 Handle bind and partial mounts.
17457 * grub-core/lib/crc.c: New file.
17458 * include/grub/deflate.h: Likewise.
17459 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
17460 proto.
17461 * include/grub/lib/crc.h: New file.
17462
e745cf0c
VS
174632011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 Implement automatic module license checking according to new GNU
17466 guidelines.
17467
17468 * grub-core/kern/dl.c (grub_dl_check_license): New function.
17469 (grub_dl_load_core): Use grub_dl_check_license.
17470 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
17471 (GRUB_MOD_LICENSE): Likewise.
17472 (GRUB_MOD_DUAL_LICENSE): Likewise.
17473 All modules updated.
17474
2a9bc016
CW
174752011-04-11 Colin Watson <cjwatson@ubuntu.com>
17476
17477 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
17478 reserved_first_sector to 1. btrfs reserves plenty of space for boot
17479 loaders.
17480 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
17481
8a3bc88e
VS
174822011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17483
17484 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
17485
af869a4a
VS
174862011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17487
17488 * util/grub-fstest.c (read_file): Report GRUB error if file opening
17489 failed.
17490
9ee8d94f
VS
174912011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17492
17493 * grub-core/kern/file.c (grub_file_open): Don't take into account the
17494 parenthesis in the middle of the filename.
17495
b01abe3e
VS
174962011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17497
17498 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
17499 rather than trying to put initrd way too high.
17500 Reported by: Ryan Lortie <desrt@desrt.ca>
17501
335bda1e
VS
175022011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17503
17504 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
17505 improperly removed string.
17506
5ca1a64d
VS
175072011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17508
17509 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
17510 is_disk.
17511 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
17512 (open_device) Likewise.
17513 (grub_util_biosdisk_close): Likewise.
d8ce9995 17514 Reported by: Mark Korenberg.
5ca1a64d 17515
cbac5b1e
AK
175162011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
17517
17518 * util/grub-mkconfig_lib.in: Add missing quotes.
17519
088cdb65
CW
175202011-04-10 Colin Watson <cjwatson@ubuntu.com>
17521
17522 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
17523 is NULL.
17524
8b8a81fa
VS
175252011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17526
17527 Dynamically count the number of lines for the lower banner.
17528
17529 * grub-core/normal/menu_entry.c (per_term_screen): New member
17530 num_entries.
17531 (print_down): Use num_entries.
17532 (update_screen): Likewise.
17533 (grub_menu_entry_run): Set num_entries.
17534 * grub-core/normal/menu_text.c (menu_viewer_data): New member
17535 num_entries.
17536 (grub_print_message_indented): Move real part to ...
17537 (grub_print_message_indented_real): ... here. Additional argument
17538 dry_run.
17539 (draw_border): Additional argument num_entries.
17540 (print_message): Additional argument dry_run.
17541 (print_entries): Receive menu viewer data.
17542 (grub_menu_init_page): New argment num_entries.
17543 (menu_text_set_chosen_entry): Use num_entries.
17544 (grub_menu_try_text): Likewise.
17545 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
17546 All users updated.
17547 (grub_ucs4_count_lines): New function.
17548 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
17549 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
17550 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
17551 (grub_term_border_height): Likewise.
17552 (grub_term_num_entries): Likewise.
17553
277f955b
VS
175542011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17555
17556 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
17557 Remove now unused string.
17558
536ce85a
CW
175592011-04-09 Colin Watson <cjwatson@ubuntu.com>
17560
17561 * docs/grub-dev.texi (Finding your way around): Update for 1.99
17562 build system.
17563 (Getting started): GRUB is developed in Bazaar now, not Subversion.
17564
17565 (Comment): Fix typo.
17566 (Getting started): General copy-editing.
17567 (Typical Development Experience): Likewise.
17568 (Error Handling): Likewise.
17569 (Video API): Likewise.
17570
2cf09e32
CW
175712011-04-09 Colin Watson <cjwatson@ubuntu.com>
17572
17573 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17574 throughout.
17575
1ec652f4
VS
175762011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17577
17578 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17579 directory.
17580
2c583728
CW
175812011-04-08 Colin Watson <cjwatson@ubuntu.com>
17582
17583 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17584 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17585 "development".
17586
d7a565e9
VS
175872011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17588
17589 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17590 grub_strcpy since the lines aren't necessarily 0-terminated.
17591
7c2e4909
VS
175922011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17593
17594 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17595 root on legacy.
17596
34c09785
VS
175972011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17598
17599 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17600 (GRUB_MOD_INIT): DEVICE isn't optional.
17601
6a6f8058
VS
176022011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17603
17604 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17605 word on new line if it's too long anyway. Fixes a hang.
17606
2e335e90
VS
176072011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17608
17609 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17610 const.
17611 * util/grub-setup.c (main): Reuse md device name if available.
17612 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17613 not GRUB name as argument.
17614 Based on patch by: Florian Wagner <fwagner>.
17615
10a7a867
VS
176162011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17617
17618 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17619 Place mbi on low memory for better compatibility.
17620
7a3d6cd9
VS
176212011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17622
17623 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17624
18dd6b47
VS
176252011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
176262011-04-08 Colin Watson <cjwatson@ubuntu.com>
17627
17628 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 17629 * conf/Makefile.common: Likewise.
18dd6b47 17630
3c0e3f14
VS
176312011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17632
f7148863
VS
17633 * grub-core/normal/menu.c: Add missing include.
17634
176352011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 17638
6d1fa41f
MZ
176392011-04-08 Martin Zuther <mzuther@mzuther.de>
17640
17641 * util/grub-mkconfig.in: Ignore emacsen backup.
17642
478182a8
VS
176432011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17646 on open.
17647 (grub_util_biosdisk_close): Likewise.
17648
72a89a54
VS
176492011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17650
17651 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17652 const attribute and use grub_isdigit.
17653
b5ebecfa
A
176542011-04-06 Andrey <dev_null@ukr.net>
17655
17656 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17657 gcc warning.
17658
7755f66e
VS
176592011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17660
17661 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17662 useful grub_dprintf's.
17663
461121ff
VS
176642011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17665
17666 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17667
2a961775
VS
176682011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17669
17670 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17671
adf594cc
VS
176722011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17673
17674 Output errors if theme loading failed.
17675
17676 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17677 grub_gfxterm_fullscreen on error paths to ...
17678 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17679 theme loading error.
17680
665900a3
VS
176812011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17682
17683 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17684 space for older compilers.
17685 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17686
a562b479
VS
176872011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17688
17689 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17690 and report them as not RAID members since they are useless for GRUB.
17691 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17692
850e9373
VS
176932011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17694
17695 Increase LVM implementation robustness in order not to crash on
17696 configurations like pvmove. Previously code assumed that in some places
17697 only lvs or only pvs are used whereas it seems that they are used
17698 interchangeably.
17699
17700 * grub-core/disk/lvm.c (read_node): New function.
17701 (read_lv): Use read_node.
17702 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17703 Match volumes only at the end when all lvs are found. Take both
17704 pvs (first) and lvs (second) into account.
17705 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17706 mirror_* into node_*. All users updated.
17707 (grub_lvm_stripe): Merge this ...
17708 (grub_lvm_mirror): ... and this ...
17709 (grub_lvm_node): ... into this. All users updated.
17710
6f332153
VS
177112011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17712
17713 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17714 of function to allow further scanning for LVMs.
17715
829ea451
VS
177162011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17717
17718 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17719 on failed seek as it breaks open fd reusage.
17720
09ceb9a5
VS
177212011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17722
17723 * util/grub-install.in: Add a recommendation to use --recheck before
17724 reporting bugs.
17725
67e11623
VS
177262011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17727
17728 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17729 are obtained.
17730
caee5efd
VS
177312011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17732
17733 GRUB developper manual based on existing Internals section and
17734 contributions by the various authors with active copyright assignment.
17735
17736 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17737 * docs/font_char_metrics.png: New file.
17738 * docs/font_char_metrics.txt: Likewise.
17739 * docs/grub-dev.texi: Likewise.
17740 * docs/grub.texi (Internals): Move from here ...
17741 * docs/grub-dev.texi: ... here.
17742
2cccc747
CW
177432011-04-01 Colin Watson <cjwatson@ubuntu.com>
17744
17745 Store the loopback device as data on loopback grub_disk structures,
17746 rather than the file it points to. This fixes use of freed memory
17747 if an existing loopback device is replaced.
17748
17749 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17750 disk->data, not dev->file.
17751 (grub_loopback_read): Adjust file assignment to match.
17752 Fixes Ubuntu bug #742967.
17753
186ae367
CW
177542011-04-01 Colin Watson <cjwatson@ubuntu.com>
17755
17756 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17757 when replacing an existing device.
17758
cfed2ad0
VS
177592011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17760
17761 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17762 memory corruptions.
17763
17764 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17765 unsigned.
17766 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17767 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17768 (grub_jfs_read_inode): Likewise.
17769 (grub_jfs_opendir): Likewise. Remove now useless casts.
17770 (grub_jfs_getent): Likewise.
17771 Make ino a grub_uint32_t rather than int.
17772 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17773 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17774 division and module with bit operations.
17775 (grub_jfs_find_file): Make ino a grub_uint32_t.
17776 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17777
05d2ed32
CW
177782011-04-01 Colin Watson <cjwatson@ubuntu.com>
17779
17780 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17781 warning. (This was in fact always initialised before use, but GCC
17782 wasn't smart enough to prove that.)
17783 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
17784
91dc6073
VS
177852011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17786
17787 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
17788 stack alignment.
17789 (efi_wrap_1): Likewise.
17790 (efi_wrap_2): Likewise.
17791 (efi_wrap_3): Likewise.
17792 (efi_wrap_4): Likewise.
17793 (efi_wrap_5): Likewise.
17794 (efi_wrap_6): Likewise.
17795 (efi_wrap_10): Likewise.
17796 Based on information by: Red Hat/Peter Jones.
17797
a8afc1d1
CW
177982011-03-31 Colin Watson <cjwatson@ubuntu.com>
17799
17800 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
17801 set-but-not-used variable.
17802
a826cc7d
CW
178032011-03-31 Colin Watson <cjwatson@ubuntu.com>
17804
17805 * docs/grub.texi (Simple configuration): Be more explicit about
17806 GRUB_DEFAULT, and add an example.
17807 Reported by: Leslie Rhorer.
17808
875b67ba
CW
178092011-03-30 Colin Watson <cjwatson@ubuntu.com>
17810
17811 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
17812 shell".
17813
fd7cd914
AS
178142011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17815
17816 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
17817 * util/grub.d/20_linux_xen.in: Likewise.
17818
090b1b6a
VS
178192011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 * util/grub.d/10_linux.in: Try alternative config filenames where
17822 we parse config file.
17823 * util/grub.d/20_linux_xen.in: Likewise.
17824
baad885c
AS
178252011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17826
17827 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
17828 * util/grub.d/20_linux_xen.in: Likewise.
17829
241e41f5
VS
178302011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17831
17832 * grub-core/disk/raid.c (insert_array): Add few potentially
17833 useful grub_util_info.
17834 (grub_raid_register): Likewise.
17835
56445fb2
VS
178362011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17837
17838 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
17839 Preserve partition number in mdadm code path.
17840
c871b1c6
VS
178412011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17842
17843 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
17844 few potentially useful grub_util_info.
17845
5e631b4f
CW
178462011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17847
17848 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
17849
2d5d0333
CW
178502011-03-30 Colin Watson <cjwatson@ubuntu.com>
17851
17852 * docs/grub.texi (default): Use @example rather than nested
17853 itemized lists to avoid breaking gendocs.
17854
3d7ed04e
CW
178552011-03-30 Colin Watson <cjwatson@ubuntu.com>
17856
17857 * docs/grub.texi (Future): Update.
17858
abf04200 178592011-03-30 Colin Watson <cjwatson@ubuntu.com>
17860
17861 * docs/grub.texi (Environment): New chapter.
17862 (Changes from GRUB Legacy): Link to "Environment block" section for
17863 details of limitations.
17864 (Simple configuration): Likewise. Link to documentation of gfxmode
17865 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17866 respectively.
17867 (Shell-like scripting): Note that normal variables are stored in the
17868 environment.
17869 (gettext): Link to documentation of lang and locale_dir.
17870 (list_env): New section.
17871 (load_env): New section.
17872 (save_env): New section.
17873
17874 (Reporting bugs): Fix typo.
17875
e1ad0edd
VS
178762011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17877
17878 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17879 the example.
17880
5d803174
VS
178812011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17882
17883 * grub-core/term/at_keyboard.c (set_scancodes)
17884 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17885
2a2da1d0
CW
178862011-03-30 Colin Watson <cjwatson@ubuntu.com>
17887
17888 * docs/grub.texi (Menu-specific commands): Remove some semantics
17889 that were true in GRUB Legacy but not in GRUB 2.
17890 (submenu): New section.
17891 (false): New section.
17892 (read): New section.
17893 (true): New section.
17894
a7527639
CW
178952011-03-30 Colin Watson <cjwatson@ubuntu.com>
17896
17897 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17898
178992011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
17900
17901 * docs/grub.texi (Simple configuration): Explain some of the
17902 current limitations of grub-mkconfig.
8a748df2 17903 Reported by: Leslie Rhorer.
e30af029 17904
fc858482
VS
179052011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 Old macs search for boot.efi rather than for bootia32.efi.
17908
17909 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17910 * util/grub-mkrescue.in: Likewise.
17911 Suggested by: Peter Jones.
17912
e1eb511d
VS
179132011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17914
17915 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17916
70e75364
VS
179172011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17918
17919 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17920 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17921 (grub_lvm_mirror): New struct.
17922 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17923 (grub_lvm_iterate): Iterate only visible volumes.
17924 (grub_lvm_read): Factor out to ..
17925 (read_lv): ... this. Support mirrors.
17926 (grub_lvm_read): New wrapper function.
17927 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17928 stripped or mirrored.
17929
fc18f6a3
VS
179302011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17931
17932 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17933
5c650f4c
CW
179342011-03-29 Colin Watson <cjwatson@ubuntu.com>
17935
17936 * docs/grub.texi (loopback): New section.
17937
61d7156b
CW
179382011-03-29 Colin Watson <cjwatson@ubuntu.com>
17939
17940 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17941 removed -p option.
17942
994b8264
CW
179432011-03-29 Colin Watson <cjwatson@ubuntu.com>
17944
17945 * docs/grub.texi (BIOS installation): New section, partly based on
17946 previous text in other sections.
17947 (Installing GRUB using grub-install): Replace BIOS discussion with a
17948 cross-reference.
17949 (Images): Likewise.
17950
9e4d19e0
VS
179512011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17952
17953 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17954 [HAVE_DIOCGDINFO]: Add safety checks.
17955
a307c0b2
VS
179562011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17957
17958 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17959 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17960
b4db4f39
CW
179612011-03-29 Colin Watson <cjwatson@ubuntu.com>
17962
17963 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17964 real_sb->size is zero (e.g. RAID-0), get the disk size from
17965 real_sb->data_size instead.
17966 Fixes Ubuntu bug #743136.
17967
35e5f84c
VS
179682011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17969
17970 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17971 printf clauses for printing size and start.
17972
d2e29d81
VS
179732011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17974
17975 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17976 Reported and tested by: Timothy Nikkel.
17977
ed5587af
VS
179782011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17979
17980 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17981 (dirty_region_add_real): ... this.
17982 (dirty_region_add): Don't discard margin refresh when performing
17983 scheduled repaint.
17984
a1dc717c
VS
179852011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17986
17987 * grub-core/lib/relocator.c (allocate_regstart)
17988 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17989 terminals are capabple of malloc-free operation.
17990 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17991 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17992
9f3677d3
VS
179932011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17994
17995 * util/grub-setup.c: Copy the partition table zone if floppy support
17996 is disabled, even if no partition table is found.
17997
17998 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17999 during POST if an invalid partition table is contained in the PBR
18000 of the active partition when GRUB is installed to a partition.
18001
24148725
CW
180022011-03-28 Colin Watson <cjwatson@debian.org>
18003
18004 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
18005 comment.
18006
f329eda7
CW
180072011-03-28 Colin Watson <cjwatson@debian.org>
18008
18009 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
18010 to be specific about what kind of RAID device we're scanning for.
18011
c482ad98
SG
180122011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
18013
18014 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
18015 return freed string.
18016
5ee04984
VS
180172011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18018
18019 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
18020
f4727da9
VS
180212011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18022
18023 Use libgeom on FreeBSD to detect partitions.
18024
18025 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
18026 (grub-mkrelpath): Likewise.
18027 (grub-script-check): Likewise.
18028 (grub-editenv): Likewise.
18029 (grub-mkpasswd-pbkdf2): Likewise.
18030 (grub-fstest): Likewise.
18031 (grub-mkfont): Likewise.
18032 (grub-mkdevicemap): Likewise.
18033 (grub-probe): Likewise.
18034 (grub-setup): Likewise.
18035 (grub-ofpathname): Likewise.
18036 (grub-mklayout): Likewise.
18037 (example_unit_test): Likewise.
18038 (grub-menulst2cfg): Likewise.
18039 * grub-core/Makefile.core.def (grub-emu): Likewise.
18040 (grub-emu-lite): Likewise.
18041 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
18042 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
18043 define HAVE_DIOCGDINFO.
18044 (follow_geom_up) [FreeBSD]: New function.
18045 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
18046 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
18047 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
18048 unconditionally of HAVE_DIOCGDINFO.
18049
82fe6c75
VS
180502011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
18051
18052 Fix FreeBSD compilation problem.
18053
18054 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
18055 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
18056
4c6c9431
CW
180572011-03-24 Colin Watson <cjwatson@ubuntu.com>
18058
18059 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
18060 Switch back to page zero before loading a kernel, since some kernel
18061 drivers expect that.
18062 Thanks to: Felix Kuehling.
18063
c7064d94
VS
180642011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18065
18066 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
18067 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
18068 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
18069
3f71cded
VS
180702011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18071
18072 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
18073 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
18074
ef6de21a
VS
180752011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18076
18077 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
18078 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
18079 malloc is disabled.
18080
8bc66a2c
VS
180812011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
18082
18083 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
18084 for modules headers when counting the needed allocation size.
18085
5657722c
VS
180862011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18087
18088 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
18089 if no ASCII character is found to prevent crash.
18090
41a85f55
AK
180912011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
18092
18093 * grub-core/video/bitmap.c (match_extension): Ignore case.
18094
59e1e5f1
VS
180952011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18096
18097 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
18098
bd4d051a
VS
180992011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18100
18101 * grub-core/script/parser.y: Declare "time" as valid argument.
18102
bae7fcc1
PJ
181032011-03-23 Peter Jones <pjones@redhat.com>
18104
18105 Fix incorrect assert failure reporting.
18106
18107 * grub-core/tests/example_functional_test.c (example_test): Add
18108 a failure comment.
18109 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
18110 (failure_start): ...this. Check that malloc succeeded.
18111 Don't call xvasprintf. Return failure struct.
18112 (failure_append_vtext): New function.
18113 (failure_append_text): Likewise.
18114 (add_failure): Likewise.
18115 (grub_test_assert_helper): Likewise.
18116 * include/grub/test.h (grub_test_assert_helper): New declaration.
18117 (grub_test_assert): Macro rewritten.
18118
537dc9be
VS
181192011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18120
18121 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
18122
fa3e01bf
VS
181232011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18124
18125 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
18126
b1d28404
VS
181272011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18128
18129 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
18130 into GRUB-style one.
18131
2e3e2e09
VS
181322011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18133
18134 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
18135 error and not grub_errno.
18136 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
18137
ed57e557
VS
181382011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18139
18140 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
18141 GRUB_USB_SPEED_NONE in case of failure and not the error code.
18142
d1611f01
VS
181432011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18144
18145 * grub-core/efiemu/i386/pc/cfgtables.c
18146 (grub_machine_efiemu_init_tables): Make declaration a prototype.
18147 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
18148 (grub_xnu_unlock): Likewise.
18149 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
18150
7d4e39d6
VS
181512011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18152
18153 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
18154 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
18155 * grub-core/commands/hashsum.c (aliases): Likewise.
18156 * grub-core/commands/setpci.c (pci_registers): Likewise.
18157 * grub-core/disk/usbms.c (attach_hook): Likewise.
18158 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
18159 (zio_checksum_table): Likewise.
18160 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
18161 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
18162 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
18163 * grub-core/lib/relocator.c (leftovers): Likewise.
18164 (extra_blocks): Likewise.
18165 * grub-core/loader/i386/bsd.c (relocator): Likewise.
18166 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
18167 (modules_last): Likewise.
18168 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
18169 (devices): Likewise.
18170 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
18171 (modules_last): Likewise.
18172 * grub-core/normal/auth.c (users): Likewise.
18173 * grub-core/normal/context.c (initial_menu): Likewise.
18174 (current_menu): Likewise.
18175 * grub-core/normal/crypto.c (crypto_specs): Likewise.
18176 * grub-core/term/serial.c (grub_serial_ports): Likewise.
18177 (grub_serial_terminfo_input_template): Likewise.
18178 (grub_serial_terminfo_output_template): Likewise.
18179 (grub_serial_terminfo_input): Likewise.
18180 (grub_serial_terminfo_output): Likewise.
18181 (registered): Likewise.
18182 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
18183
40fc4659
VS
181842011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18185
18186 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
18187 grub_video_mode_type_t.
18188 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
18189 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
18190 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
18191
2da48d28
VS
181922011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18193
18194 * util/grub-install.in: Correct the x86-64 name as x86_64.
18195
9b43bf39
CW
181962011-03-11 Colin Watson <cjwatson@ubuntu.com>
18197
18198 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
18199 initial chunk read from the kernel always includes GRUB's multiboot
18200 header, which is now outside the first sector.
18201
be1a7ce0
CW
182022011-03-09 Colin Watson <cjwatson@ubuntu.com>
18203
18204 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
18205 cached mmap_size, so that this works correctly when called multiple
18206 times.
18207 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
18208
83a3c48d
CW
182092011-03-09 Colin Watson <cjwatson@ubuntu.com>
18210
18211 * docs/grub.texi (Simple configuration): Tidy up formatting.
18212
57d75699
SJ
182132011-03-07 Szymon Janc <szymon@janc.net.pl>
18214
18215 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
18216 Set-but-not-used variable removed.
18217
028501a0
VS
182182011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18219
18220 Workaround yet another IEEE1275 bug.
18221
18222 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
18223 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
18224 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
18225 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
18226 is set.
18227 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18228 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
18229
d998657d
VS
182302011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18231
18232 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
18233 error.
18234
fee7cdd4
CW
182352011-02-11 Colin Watson <cjwatson@ubuntu.com>
18236
18237 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
18238 empty, since in that case we can only generate either nothing or a
18239 syntactically invalid configuration file.
18240 Reported by: Michal Suchanek. Fixes Debian bug #612898.
18241
97286eb5
CW
182422011-02-09 Colin Watson <cjwatson@ubuntu.com>
18243
18244 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
18245 (Making a GRUB bootable CD-ROM): Likewise.
18246 (Invoking grub-mkrescue): New section.
18247 Reported by: Yann Dirson. Fixes Debian bug #612585.
18248
22b28eb3
CW
182492011-02-09 Colin Watson <cjwatson@ubuntu.com>
18250
18251 * util/grub-install.in: Remove unnecessary brackets from tr
18252 arguments.
18253 * util/grub.d/10_hurd.in: Likewise.
18254 * util/grub.d/10_kfreebsd.in: Likewise.
18255 * util/grub.d/10_linux.in: Likewise.
18256 * util/grub.d/20_linux_xen.in: Likewise.
18257 Reported by: Jamie Heilman. Fixes Debian bug #612564.
18258
7e735e43
CW
182592011-02-08 Colin Watson <cjwatson@ubuntu.com>
18260
18261 * include/grub/file.h (not_easly_seekable): Rename to ...
18262 (not_easily_seekable): ... this. Update all users.
18263
800f1881
CW
182642011-01-28 Colin Watson <cjwatson@ubuntu.com>
18265
18266 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
18267 grub-mkrescue.
18268
3281d3d6
VS
182692011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
18270
18271 * util/grub-mkimage.c (generate_image): Refuse to create the images
18272 bigger than the actual flash (512K) in Loongson machines. 512K is also
18273 the biggest chip supported by them.
18274
3533413c
VS
182752011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18276
18277 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
18278
73ae4f4f
VS
182792011-01-22 Anthony DeRobertis <anthony@derobert.net>
18280
18281 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
18282 super_offset field.
18283
37f4f608
VS
182842011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18285
18286 * util/grub-install.in: Ignore install device on platforms
18287 where it doesn't make sense. Always use UUIDs except on pc, efi and
18288 sparc64.
18289 Reported by: Daniel Kahn Gillmor.
18290
03a4ccb5
VS
182912011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18292
18293 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
18294
ffc8f4d8
VS
182952011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18296
18297 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
18298 (iterate_real): Don't rely on partition being non-NULL.
18299
80f23be7
VS
183002011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18301
18302 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
18303 supported platforms. Put a compile time assert for this rather than
18304 generate a warning with 32-bit shift.
18305
5d4f4dd5
VS
183062011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18307
18308 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
18309 logical expression more readable.
18310
e489601a
VS
183112011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18312
18313 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
18314 even if some elements have a name.
18315 Reported by: Alexander GQ Gerasiov.
18316
96e0a6ea
CW
183172011-01-22 Colin Watson <cjwatson@ubuntu.com>
18318
18319 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
18320 path unreadable if `grub-probe -t abstraction' fails, for example if
18321 memberlist fails on an LVM volume group.
18322 Reported by: Darius Jahandarie.
18323
81431e2b
CW
183242011-01-22 Colin Watson <cjwatson@ubuntu.com>
18325
18326 * docs/grub.texi (Simple configuration): Document
18327 GRUB_PRELOAD_MODULES.
18328
5e79d66a
CW
183292011-01-17 Colin Watson <cjwatson@ubuntu.com>
18330
18331 * .bzrignore: Remove nonexistent grub-pbkdf2.
18332
646ada34
VS
183332011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
18334
18335 * configure.ac: Bump version to 1.99~rc1.
18336
04360337
VS
183372011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18338
18339 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
18340 for safety.
18341
46c9db88
VS
183422011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
18343
18344 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
18345 module.
18346
183472011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
18348
18349 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
18350
4fbf1852
VS
183512011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18352
18353 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
18354 diskdevid.
18355
f1632d4d
VS
183562011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18357
18358 Fix compilation on cygwin.
18359
18360 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
18361 -R .drectve on cygwin.
18362 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
18363 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
18364 (COND_CYGWIN): New condition.
18365 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
18366 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
18367 not @TARGET_OBJ2ELF@.
18368 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
18369 type to determine whether aux is to be used.
18370
0b5e127b
VS
183712011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18372
18373 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
18374 realpath'ed device string.
18375 Handle floppy (somewhat).
18376 Issue error in unknown case rather than garbage.
18377 Reported by: Axel Beckert.
18378
173b71e9
VS
183792011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18380
18381 * util/grub.d/00_header.in (load_video): Handle the case when no video
18382 drivers available.
18383 Thanks to: Axel Beckert.
18384
f8f479db
VS
183852011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18386
18387 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
18388 variable. Fixes problem on big endian platforms.
18389
8fc0a245
VS
183902011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18391
18392 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
18393 It doesn't work well there.
18394
b8494fbe
VS
183952011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18396
18397 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
18398 warning.
18399 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
18400 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
18401 counter.
18402
b44a558c
VS
184032011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18404
18405 Use alias->path rather than buggy "canon".
18406
18407 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
18408 (ofdisk_hash_add): New argument curcan. All users updated.
18409
51fa856c
CW
184102011-01-11 Colin Watson <cjwatson@ubuntu.com>
18411
18412 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
18413
9da068a5
VS
184142011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18415
18416 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
18417 loadmask before doing any calculations. Use correct type for offset.
18418 (grub_linux_load64): Likewise.
18419
86205c94
CW
184202011-01-11 Colin Watson <cjwatson@ubuntu.com>
18421
18422 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
18423 with NULL.
18424 (console_grub_equivalences_unshift): Likewise.
18425 Reported by: Daniel Dehennin.
18426
4531a206
VS
184272011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18428
18429 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
18430 (set_env_limn_ro): Likewise.
18431 (GRUB_MOD_INIT): Likewise.
18432 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
18433 ARRAY_SIZE while on it.
18434 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
18435 * grub-core/normal/context.c (grub_env_export): Move from here ...
18436 * grub-core/kern/env.c (grub_env_export): ... here.
18437 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
18438 prefix.
18439 * grub-core/kern/main.c (grub_main): Export root and prefix.
18440 * include/grub/env.h (grub_env_export): Export.
18441 Reported by: Seth Goldberg.
18442
45146057
VS
184432011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18444
18445 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18446 Take into account space used by ELF sections and multiboot palette.
18447 Reported by: Grégoire Sutre.
18448
f093110b
VS
184492011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18450
18451 * BUGS: New file.
18452
3395fe52
VS
184532011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18454
18455 Pass more appropriate video id to Linux.
18456
18457 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
18458 grub_video_get_driver_id and variable gfxpayloadforcelfb to
18459 fill have_vga.
18460 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
18461 shift params->lfb_size.
18462 * include/grub/i386/linux.h: Make an enume out of have_vga values.
18463
c2fa6cbb
VS
184642011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18465
18466 * util/grub-menulst2cfg.c: Add missing include of misc.h.
18467
b3ff6ff0
VS
184682011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18469
18470 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
18471 separator and pass bootpath/devid even if only one of them is available.
18472 Reported by: Seth Goldberg.
18473
ae67942e
VS
184742011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18475
18476 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
18477 implementations bug on them.
18478
18479 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
18480 memory.
18481 (filter_memory_map): Likewise.
18482
d570097a
VS
184832011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18484
18485 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
18486 Reported by: nebuchadnezzar.
18487
a508e776
VS
184882011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18489
18490 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
18491 Reported by: nebuchadnezzar.
18492
dcb883b1
VS
184932011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18494
18495 Submenu default support.
18496
18497 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
18498 auto_boot. All users updated.
18499 Declared static.
18500 Handle chosen and default with submenus.
18501 (grub_menu_execute_with_fallback): Declared static.
18502 Don't notify failure if autobooted. Upper level does it.
18503 (menuentry_eq): New function.
18504 (get_entry_number): Use menuentry_eq.
18505 (show_menu): New parameter "autobooted". All users updated.
18506 (grub_show_menu): Likewise.
18507 * include/grub/normal.h (grub_show_menu): Likewise.
18508 * include/grub/menu.h (grub_menu_execute_entry): Removed.
18509 (grub_menu_execute_with_fallback): Likewise.
18510
6fef99b4
VS
185112011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18512
18513 * util/grub-mklayout.c (usage): Update help text.
18514
47a77af5
VS
185152011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18516
18517 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
18518
ce6bb3ee
VS
185192011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18520
18521 * util/grub-menulst2cfg.c (main): Trim the line.
18522
db87be2a
VS
185232011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18524
18525 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
18526 (grub_machine_init): Don't check amount of low memory as reportedly
18527 INT 12h can be broken and if low memory is too low we wouldn't have
18528 gotten into grub_machine_init anyway.
18529
c49849cc
VS
185302011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18531
18532 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
18533 (grub_machine_mmap_iterate): Take low memory into account
18534
b1969b30
VS
185352011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18536
18537 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
18538 badfs.
18539 Reported by: TiCPU.
18540
cf0eaf13
VS
185412011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18542
18543 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
18544 members errors.
18545
1f060f39
GS
185462011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18547
18548 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
18549 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
18550
a21e5672
GS
185512011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18552
18553 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
18554 openbsd and netbsd types being in part_bsd module.
18555
c88172fa
VS
185562011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18557
18558 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
18559 (_FILE_OFFSET_BITS): Likewise.
18560 Reported by: Seth Goldberg.
18561
53798c4b
GS
185622011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
18563
18564 * configure.ac: Check for libdevmapper header.
18565
e7121b69
VS
185662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18567
18568 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
18569 avoid aliasing.
18570 (fzap_lookup): Likewise.
18571 (dnode_get): Likewise.
18572 (make_mdn): Likewise.
18573 (zfs_mount): Likewise.
18574 (fzap_iterate): Use temporary pointer to avoid aliasing.
18575 (grub_zfs_read): Likewise.
18576 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18577 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18578 pointers to avoid aliasing.
18579 (grub_cmd_xnu_kernel64): Likewise.
18580 (grub_xnu_load_driver): Likewise.
18581
fc836af9
VS
185822011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18583
18584 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18585 aliasing warning.
18586 (grub_cmd_terminal_output): Likewise.
18587 Reported and tested by: Grégoire Sutre.
18588
f9f37648
VS
185892011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18590
18591 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18592 warning.
18593 Reported and tested by: Grégoire Sutre.
18594
ec1dfd63
VS
185952011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18596
18597 * configure.ac: Do CPU substitution even if it's specified explicitly.
18598 Reported and tested by: Alain Greppin.
18599
9462775a
VS
186002011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18601
18602 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18603 Reported and tested by: Alain Greppin.
18604
0fd48e35
VS
186052011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18606
18607 Satisfy some bison versions need for inttypes.h.
18608
18609 * grub-core/lib/posix_wrap/inttypes.h: New file.
18610 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18611 (int16_t): Likewise.
18612 (int32_t): Likewise.
18613 (int64_t): Likewise.
18614 Reported and tested by: Alain Greppin.
18615
43f1bc83
VS
186162011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18617
18618 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18619 Silence spurious warning.
18620 Reported and tested by: Alain Greppin.
18621
64d1f041
SJ
186222011-01-07 Szymon Janc <szymon@janc.net.pl>
18623
18624 * docs/grub.texi (Support automatic decompression): Update with xz
18625 decompression support.
18626
25953e10
SJ
186272011-01-07 Szymon Janc <szymon@janc.net.pl>
18628
18629 Improve loaders' kernel command line handling.
18630
18631 * grub-core/lib/cmdline.c: New file.
18632 * include/grub/lib/cmdline.h: Likewise.
18633 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18634 grub_create_loader_cmdline to create kernel command line.
18635 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18636 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18637 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18638 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18639 (linux): Add lib/cmdline.c on common.
18640
e72d259f
VS
186412011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18642
18643 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18644 inopos might be unaligned.
18645
c0cf26da
VS
186462011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18647
18648 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18649 endian transformations.
18650 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18651 Based on report by: Doug Nazar.
18652
0ca09e6c
DN
186532011-01-07 Doug Nazar <nazard.michi@gmail.com>
18654
18655 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18656 array->members[i].start_sector.
18657 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18658
014b6806
VS
186592011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18660
18661 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18662 Reported and tested by: Grégoire Sutre.
18663
415502c2
CW
186642011-01-06 Colin Watson <cjwatson@ubuntu.com>
18665
18666 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18667 avoid causing test failures by clearing the screen.
18668
71b6a2b7
CW
186692011-01-06 Colin Watson <cjwatson@ubuntu.com>
18670
18671 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18672 Fix prefix check to handle the case where dir ends with a slash
18673 (most significantly, "/" itself).
18674 Reported by: Michael Vogt.
18675
b3f8d28a
VS
186762011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18677
18678 Run terminfo_cls on initing terminfo output to clear the screen and
18679 move the cursor to (0,0).
18680
18681 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18682 Call grub_terminfo_output_init.
18683 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18684 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18685 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18686
4c3e4f37
VS
186872011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18688
18689 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18690 only when needed.
18691
488f71f1
VS
186922011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18693
18694 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18695 CTRL.
18696
18a38098
VS
186972011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18698
18699 The E820 type 5 is BADRAM, not EXEC_CODE.
18700
18701 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18702 (GRUB_E820_BADRAM): New define.
18703 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18704 into reserved. Propagate BADRAM.
18705 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18706 (GRUB_E820_BADRAM): New define.
18707
9eae2084
VS
187082011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18709
18710 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18711 Ignore the memory post-4G.
18712 (grub_relocator_firmware_alloc_region): Additional debug statement.
18713
ebc71d28
VS
187142011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18715
18716 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18717 names.
18718 Reported by: David Pravec.
18719
446fa400
VS
187202011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18721
18722 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18723 BIOSes.
18724
a0159f37
VS
187252011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18726
18727 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18728 Prevent overflow.
18729 (grub_reed_solomon_recover): Likewise.
18730
e5146ca1
VS
187312011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18732
18733 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18734
187352011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
18736
18737 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18738 variable.
18739
5b1bdf12
CW
187402011-01-04 Colin Watson <cjwatson@ubuntu.com>
18741
18742 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18743 descriptions of extract_legacy_entries_source and
18744 extract_legacy_entries_configfile.
18745 Reported by: Seung Soo, Ha.
18746
99d925aa
CW
187472011-01-03 Colin Watson <cjwatson@ubuntu.com>
18748
18749 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18750 on devices that do not implement function 0.
18751
4af0504b
DV
187522011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18753
18754 * grub-core/fs/hfsplus.c: Make parent unsigned.
18755 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18756 overflows.
18757 (grub_hfsplus_cmp_extkey): Likewise
18758
469ee10a
VS
187592011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18760
18761 * util/grub-install.in: Correctly use bootloader_id and not
18762 GRUB_DISTRIBUTOR on efibootmgr line.
18763
323a8e9c
VS
187642011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18765
18766 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18767
1b394975
IC
187682010-12-31 Ian Campbell <ijc@hellion.org.uk>
18769
18770 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18771 Xen and reorder menu item wording to make it clearer that this entry
18772 will launch Xen. Print separate messages when loading Xen and
18773 Linux.
18774
275bff5f
VS
187752010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18776
18777 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18778 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18779 loop in case of incorrect amiga partmap.
18780
307806cb
VS
187812010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18782
18783 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
18784 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
18785 Reported by:EHeM.
18786
b12b923e
VS
187872010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18788
18789 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
18790 spurious warning.
18791 Reported by: crocket
18792
14b48a19
VS
187932010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18794
18795 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
18796 Preload EFIemu.
18797 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
18798
693db2df
VS
187992010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18800
18801 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
18802 is loaded
18803 (grub_cmd_xnu_kextdir): Likewise.
18804 (grub_cmd_xnu_splash): Likewise.
18805
c7638645
VS
188062010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18807
18808 Avoid using Reed-Solomon with 0 redundancy.
18809
18810 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
18811 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
18812 or 0 redundancy.
18813 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
18814 (grub_reed_solomon_recover): Likewise.
18815
25dd4780
VS
188162010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18817
18818 Don't use disk subsystem in freebsd_boot.
18819
18820 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
18821 (freebsd_biosdev): Likewise.
18822 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
18823 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
18824
0b2db943
VS
188252010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
18826
18827 Handling of files of unknown size is currently limited. They can't be
18828 used e.g. for initrd or modules. Moreover gzip handling of not
18829 easily seekable files is buggy. Disable unknown file size for now. May
18830 be inefficient but works.
18831
18832 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
18833 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
18834
5c408d0f
MP
188352010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
18836
18837 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
18838 floppy probe.
18839
190a011a
JD
188402010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
18841
18842 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
18843
022d01b8
SL
188442010-12-25 Shea Levy <shlevy>
18845
18846 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
18847
c4855fdc
VS
188482010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18849
18850 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18851 Windows Server 2008.
18852 Reported by: Devin Giddings.
18853
0354b867
VS
188542010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18855
18856 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18857 writing an error message because of async power management.
18858 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18859 (grub_reboot): Likewise.
18860
ab66c69f
JU
188612010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18862
18863 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18864 keep unit tests from failing when they shouldn't.
18865
1426ef35
CW
188662010-12-21 Colin Watson <cjwatson@ubuntu.com>
18867
18868 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18869 previous patch increased the size of the RS code by 20 bytes (at
18870 least with gcc-4.4), so increase this by 20 bytes to match.
18871 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18872
20641b6b
CW
188732010-12-21 Colin Watson <cjwatson@ubuntu.com>
18874
18875 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18876 scratch area. Make sure to initialise chosen in standalone mode as
18877 well as non-standalone.
18878 Reported by: Robert Hooker and Andy Whitcroft.
18879 Tested by: Andy Whitcroft.
18880
d060ad60
CW
188812010-12-21 Colin Watson <cjwatson@ubuntu.com>
18882
18883 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18884 constructing a new unescaped string and passing it to grub_xputs in
18885 one go, rather than passing characters to grub_printf one at a time.
18886
b889cfad
CW
188872010-12-21 Colin Watson <cjwatson@ubuntu.com>
18888
18889 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18890 initialising utf16.
18891
4e01b6c8
CW
188922010-12-21 Colin Watson <cjwatson@ubuntu.com>
18893
18894 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18895 comment. Add an extra layer of quotation, requiring the output of
18896 this function to be used in a printf format string.
18897 (gettext_printf): New function.
18898 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18899 Extract translatable strings from here-documents and use a temporary
18900 variable instead, so that xgettext can find them.
18901 * util/grub.d/10_kfreebsd.in: Likewise.
18902 * util/grub.d/10_linux.in: Likewise.
18903 * util/grub.d/20_linux_xen.in: Likewise.
18904
18905 * po/grub.d.sed: New file.
18906 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18907 arguments. Set c-format flags on all strings extracted from
18908 util/grub.d/ (xgettext refuses to include these itself for strings
18909 it extracted from a shell file, but these really are c-format).
18910
5318fe98
VS
189112010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18912
18913 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18914 Avoid next pointing to nowhere.
18915
6c85b743
VS
189162010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18917
18918 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18919 rather than assuming than rootblock is exactly in the middle.
18920 (grub_affs_label): Likewise.
18921
a2a08a35
VS
189222010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18923
18924 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18925 reserved_first_sector to 0.
18926 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18927 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18928 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18929
7059d1ec
VS
189302010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18931
18932 Fix handling of UTF-16 UDF labels.
18933
18934 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18935 (read_string): .. here.
18936 (grub_udf_label): Use read_string.
18937
30aff4cb
BC
189382010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18939
18940 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18941 editor under argument scope.
18942 Reported by: Jordan Uggla
18943
5cf86f4b
VS
189442010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18945
18946 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18947
32570200
CW
189482010-12-18 Colin Watson <cjwatson@ubuntu.com>
18949
18950 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18951 line, and other keys scroll an entire page (previous handling was
18952 for \r and \n to scroll a page and other keys to scroll two lines).
18953
e1dffcf2
VS
189542010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18955
18956 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18957 Set ptrdest to correct get_physical_target_address rather than
18958 incorrect get_virtual_current_address.
18959
b04298cf 189602010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18961
18962 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18963 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18964
5367ecd3
CW
189652010-12-10 Colin Watson <cjwatson@ubuntu.com>
18966
18967 * .bzrignore: Ignore grub-core/rs_decoder.S.
18968
1fb430f8
CW
189692010-12-10 Colin Watson <cjwatson@ubuntu.com>
18970
18971 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18972 .mo/.mo.gz opening sequence to ...
18973 (grub_mofile_open_lang): ... here.
18974 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18975 * util/grub.d/00_header.in (grub_lang): Include country part of
18976 locale.
18977 Reported by: Mario Limonciello.
18978
a94a6671
RM
189792010-12-09 Robert Millan <rmh@gnu.org>
18980
18981 * NEWS: Document addition of ZFS support.
18982
24b7938b
CW
189832010-12-04 Colin Watson <cjwatson@ubuntu.com>
18984
18985 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18986 rather than `/ 2', as the latter requires -Wa,--divide which would
18987 require bumping our minimum binutils version.
18988
bddc3ef6
BC
189892010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18990
18991 * util/grub-script-check.c (main): Print script line number on
18992 error.
18993
bf78d5b2
RM
189942010-12-01 Robert Millan <rmh@gnu.org>
18995
18996 * grub-core/fs/zfs/zfs.c: New file.
18997 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18998 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18999 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
19000 * grub-core/fs/zfs/zfsinfo.c: Likewise.
19001
19002 * include/grub/zfs/dmu.h: Likewise.
19003 * include/grub/zfs/dmu_objset.h: Likewise.
19004 * include/grub/zfs/dnode.h: Likewise.
19005 * include/grub/zfs/dsl_dataset.h: Likewise.
19006 * include/grub/zfs/dsl_dir.h: Likewise.
19007 * include/grub/zfs/sa_impl.h: Likewise.
19008 * include/grub/zfs/spa.h: Likewise.
19009 * include/grub/zfs/uberblock_impl.h: Likewise.
19010 * include/grub/zfs/vdev_impl.h: Likewise.
19011 * include/grub/zfs/zap_impl.h: Likewise.
19012 * include/grub/zfs/zap_leaf.h: Likewise.
19013 * include/grub/zfs/zfs.h: Likewise.
19014 * include/grub/zfs/zfs_acl.h: Likewise.
19015 * include/grub/zfs/zfs_znode.h: Likewise.
19016 * include/grub/zfs/zil.h: Likewise.
19017 * include/grub/zfs/zio.h: Likewise.
19018 * include/grub/zfs/zio_checksum.h: Likewise.
19019
19020 * Makefile.util.def: Build ZFS into libgrubmods.
19021 * grub-core/Makefile.core.def: Build zfs.mod.
19022
3f0f3831
SJ
190232010-11-30 Szymon Janc <szymon@janc.net.pl>
19024
19025 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
19026 variable.
19027 * grub-core/commands/wildcard.c (match_files): Likewise.
19028
3a4253b2
RM
190292010-11-30 Robert Millan <rmh@gnu.org>
19030
19031 * grub-core/loader/i386/bsd.c
19032 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
19033 whether kernel is loaded using grub_loader_is_loaded(), rather
19034 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
19035 certain error conditions.
19036
8c317b27
RM
190372010-11-30 Robert Millan <rmh@gnu.org>
19038
c5c9cd3e
RM
19039 * grub-core/commands/echo.c: Include `<grub/term.h>'.
19040 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 19041
49d3ab46
VS
190422010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
19043
19044 Avoid using tricks for initialising endian variables.
19045
19046 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
19047 Make const.
19048 (GRUB_MOD_INIT): Don't byte-swap.
19049 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
19050 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
19051 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
19052 (grub_swap_bytes32_compile_time): Likewise.
19053 (grub_cpu_to_le32_compile_time): Likewise.
19054 (grub_cpu_to_le16_compile_time): Likewise.
19055
f420a804
VS
190562010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
19057
19058 * util/grub-setup.c (setup): Stop recommending --force. People who
19059 understand the dangers of blocklists are able to find this option
19060 anyway and the ones who don't shouldn't use it anyway.
19061
4e7db17b
RM
190622010-11-26 Robert Millan <rmh@gnu.org>
19063
19064 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
19065 Update all users.
19066
9be57a0d
CW
190672010-11-26 Colin Watson <cjwatson@ubuntu.com>
19068
19069 Fix LVM-on-RAID probing.
19070
19071 * util/grub-probe.c (probe): Remember which disk was detected as
19072 RAID (perhaps an LVM physical volume). Use that disk's raidname
19073 rather than that of the top-level disk.
19074
2c7859b3 190752010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 19076
d7647bb6
BC
19077 Fix cmdline argument quotes for setparams command of menuentry
19078 definitions.
7e623b0d
BC
19079
19080 * grub-core/commands/menuentry.c (setparams_prefix): Use single
19081 quotes for arguments.
f866fe80 19082 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 19083 grub_strchrsub function instead.
f866fe80 19084
7955bea0 19085 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 19086
74f72a64
CW
190872010-11-24 Colin Watson <cjwatson@ubuntu.com>
19088
19089 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
19090 effort by skipping "." and ".." entries up-front.
19091 Suggested by: Michael Lazarev.
19092
5a407278
CW
190932010-11-24 Colin Watson <cjwatson@ubuntu.com>
19094
19095 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
19096 ldflags to ldadd, to fix link line ordering.
19097 (none_decompress): Likewise.
19098
3030d8ec
CW
190992010-11-24 Colin Watson <cjwatson@ubuntu.com>
19100
19101 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
19102 platforms.
19103 (grub-emu-lite): Remove kern/emu/cache.S.
19104
b7fbac12
CW
191052010-11-23 Colin Watson <cjwatson@ubuntu.com>
19106
19107 * util/deviceiter.c (compare_devices): If the by-id link for a
19108 device couldn't be resolved, fall back to sorting by the by-id link
19109 rather than segfaulting.
19110 Reported and tested by: Daniel Mierswa.
19111
5225f328
CW
191122010-11-23 Colin Watson <cjwatson@ubuntu.com>
19113
19114 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
19115 ldflags, to fix link line ordering.
19116
038b3ce8
CW
191172010-11-23 Colin Watson <cjwatson@ubuntu.com>
19118
19119 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
19120 linkers are picky about this.
19121
bf16e98e
CW
191222010-11-23 Colin Watson <cjwatson@ubuntu.com>
19123
19124 * grub-core/Makefile.am (command.lst): Adjust sed expression
19125 ordering so that extended and priority commands aren't treated as
19126 ordinary commands.
19127
7242bab6
CW
191282010-11-23 Colin Watson <cjwatson@ubuntu.com>
19129
19130 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
19131 Remove byte-swapping function calls, which are not valid in
19132 structure initialisers.
19133 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
19134 non-const.
19135 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
19136 grub_gpt_partition_type_bios_boot.
19137
14e8b279
CW
191382010-11-22 Colin Watson <cjwatson@ubuntu.com>
19139
19140 Fix test program build on GNU/kFreeBSD.
19141
19142 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
19143 $(LIBNVPAIR)' library dependencies.
19144
e6f63338 191452010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
19146
19147 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
19148
cf8ffc38
CW
191492010-11-22 Colin Watson <cjwatson@ubuntu.com>
19150
19151 * util/grub-install.in: Remove excessive quoting that broke
19152 installations to RAID devices.
19153
7f8b0fd7
VS
191542010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19155
19156 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
19157 bootloader version instead of 0.
19158
dfd240b1
VS
191592010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19160
19161 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
19162 warning.
19163
7b61e609
VS
191642010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19165
19166 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
19167 retrieve the metadat sector if size isn't known.
19168 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19169
9dfe92d0
RM
191702010-11-18 Robert Millan <rmh@gnu.org>
19171
19172 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
19173 with grub_memcmp().
19174
41cc919e
VS
191752010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
19176
19177 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
19178 arrow.
19179 Reported by: Jordan Uggla.
19180
1afcc914
VS
191812010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19182
19183 Make better UTF compliant.
19184
19185 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
19186 sequences as incorrect.
19187 (grub_is_valid_utf8): Likewise.
19188 (grub_utf8_to_ucs4): Likewise.
19189 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
19190 (grub_ucs4_to_utf8_alloc): Likewise.
19191 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
19192
f1808884
VS
191932010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19194
19195 Make legacy_source behave like source.
19196
19197 * grub-core/commands/legacycfg.c (legacy_file): Don't call
19198 grub_show_menu.
19199 (grub_cmd_legacy_source): Call grub_show_menu if needed.
19200
24ec575b
CW
192012010-11-16 Colin Watson <cjwatson@debian.org>
19202
19203 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
19204 (-Wunused implies -Wunused-parameter, but not vice versa).
19205
72b7c7aa
CW
192062010-11-16 Colin Watson <cjwatson@ubuntu.com>
19207
19208 * configure.ac: Make error messages less confusing by testing for
19209 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
19210 accepted, but produces a diagnostic if something else is wrong).
19211
e98937aa
VS
192122010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19213
19214 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
19215 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
19216 (now unused).
19217 (grub_keyboard_controller_init)
19218 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
19219 read the initial state since controller isn't inited yet.
19220
f6bbabc3
VS
192212010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19222
19223 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
19224 allocate_regbeg may need to create new chunk header.
19225
22e7dbb2
VS
192262010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19227
19228 Fix quoting in legacy parser.
19229
19230 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
19231 single quotes.
19232 (grub_legacy_parse): Likewise.
19233 Reported by: Jordan Uggla.
19234 Tested by: Jordan Uggla.
19235
03f80960
VS
192362010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19237
19238 Don't add -lgcc on i386 and x86_64.
19239
19240 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
19241 * conf/Makefile.common (LDADD_KERNEL): Likewise.
19242 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
19243
779dc15b
VS
192442010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19245
19246 * configure.ac: Add -Wno-trampolines when supported.
19247
d20a3b37
MV
192482010-11-14 Modestas Vainius <modax@debian.org>
19249
19250 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
19251 fakeraid.
19252
e5360933
GC
192532010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19254
19255 Add generic logical block size support for UDF.
19256
19257 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
19258 (GRUB_UDF_BLKSZ): Removed.
19259 (struct grub_udf_data): New field "lbshift" to hold the logical block
19260 size of the file system in log2 format. All users updated.
19261 (sblocklist): Change type to unsigned.
19262 (grub_udf_mount): Change type of "sblklist" to unsigned.
19263 Move AVDP search before VRS recognition, because the latter requires
19264 knowledge of the logical block size, which is detected during the
19265 former.
19266 Detect and validate logical block size during AVDP search, adding
19267 support for block sizes 512, 1024 and 4096.
19268 Make VRS recognition independent of block size.
19269
cb0229c5
GC
192702010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19271
19272 Properly handle deleted files on UDF.
19273
19274 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
19275 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
19276 set.
19277
406858a8
GC
192782010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19279
19280 Support reading files larger than 2 GiB.
19281
19282 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
19283 "offset" to grub_off_t.
19284 (grub_udf_read_file): Likewise for parameter "pos".
19285
130da6a7
VS
192862010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19287
19288 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
19289 unavailable.
19290 (Simple configuration): Refer to Changes from GRUB Legacy about
19291 save_env availability.
19292
65e93f6b
VS
192932010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19294
19295 * util/grub-install.in: Ignore empty partition table detection
19296 instead of trying to include part_ module.
19297
1fd08bf1
VS
192982010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19299
19300 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
19301 LVM on RAID support.
19302
de1a024f
VS
193032010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19304
19305 Properly define WORDS_BIGENDIAN in wrapped environments.
19306
19307 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
19308 definition.
19309 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
19310
19311 Reported by: Manoel Rebelo Abranches.
19312 Tested by: Manoel Rebelo Abranches.
19313
bc5dd0b9
VS
193142010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19315
19316 * util/grub-mkconfig.in: Fix quoting.
19317
58c184be
VS
193182010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19319
19320 Support big ext2 files.
19321
19322 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
19323 (grub_ext2_read_block): Support triple indirect blocks.
19324 (grub_ext2_read_file): Use 64-bit types and read size_high.
19325 (grub_ext2_open): Read size_high.
19326 Reported by: Ximin Luo.
19327 Tested by: Manoel Rebelo Abranches.
19328
5f0c02b3
VS
193292010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19330
19331 * util/grub-install.in: Handle filenames containing spaces.
19332 Reported by: Jordan Uggla.
19333 Tested by: Jordan Uggla.
19334
4417aae6
VS
193352010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19336
19337 * util/grub-mkconfig.in (grub_script_check): New variable.
19338 Use grub_script_check instead of grub-script-check.
19339 Reported by: Barry Jackson.
19340
7625a68e
VS
193412010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19342
19343 * docs/grub.texi (menu): Correct the order.
19344 Reported by: D. Hugh Redelmeier.
19345
10001ac5
VS
193462010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
19347
19348 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
19349 jump.
19350
9c4cf53b
MRA
193512010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
19352
10001ac5
VS
19353 * include/grub/elfload.h (grub_elf32_size): New parameter.
19354 All users updated.
9c4cf53b
MRA
19355 Return maximum segments alignment.
19356 (grub_elf64_size): Likewise.
19357 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
19358 Return maximum segments alignment.
19359 (grub_elf64_size): Likewise.
19360 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
19361 (grub_linux_claimmap_iterate): New function. Uses the
19362 "available" property in the "memory" node for memory allocation
19363 for kernel in the PowerPC loader.
9c4cf53b
MRA
19364 (grub_linux_load32): Correctly find linux entry point offset.
19365 (grub_linux_load64): Likewise.
19366
d2bf06bf
RM
193672010-11-07 Robert Millan <rmh@gnu.org>
19368
19369 On mips-yeeloong, build with -march=loongson2f when this flag is
19370 available (GCC >= 4.4).
19371 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
19372 `-march=mips3'.
19373 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
19374 or otherwise add -march=mips3.
19375
898c99a2
BC
193762010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
19377
87220a68
BC
19378 Suppress shell expansion on echo '*' and echo "*" like cases.
19379 Reported by: Jordan Uggla.
898c99a2
BC
19380
19381 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
19382 string arguments before shell expansion.
19383 * tests/grub_cmd_echo.in: New testcases.
19384
4f9b406a
RM
193852010-11-07 Robert Millan <rmh@gnu.org>
19386
19387 * conf/mips-qemu-mips.rmk: Remove stale file from previous
19388 transition.
19389
80c6d25e
VS
193902010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
19391
19392 * grub-core/kern/emu/hostdisk.c
19393 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
19394
4a1a0153
VS
193952010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19396
19397 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
19398 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
19399 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
19400
34706ddc
VS
194012010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19402
19403 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
19404
6972dea9
VS
194052010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19406
19407 * util/grub-install.in: Replace useless recomendation to pass
19408 --modules with a recomendation to report a bug.
19409
9c693bd6
VS
194102010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19411
19412 Properly register serial terminfo.
19413 Reported by: Jordan Uggla
19414
19415 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
19416 const.
19417 (grub_serial_terminfo_output_template): Likewise.
19418 (grub_cmd_serial): Register "serial" with terminfo.
19419 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
19420 grub_serial_terminfo_output.
19421
6c9e4c0c
RM
194222010-11-05 Robert Millan <rmh@gnu.org>
19423
19424 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
19425 needed).
19426
b9b3839f
RM
194272010-11-05 Robert Millan <rmh@gnu.org>
19428
19429 On Yeeloong, pass machine type information to Linux.
19430
19431 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
19432 (LOONGSON_MACHTYPE): New macro, set to
19433 "machtype=lemote-yeeloong-2f-8.9inches".
19434 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
19435 additional argument to Linux.
19436
1a3aaff4
RM
194372010-11-04 Robert Millan <rmh@gnu.org>
19438
19439 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
19440 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
19441 (its SATA disks are detected as slaveless IDE master drives on
19442 kFreeBSD).
19443 Reported by Carsten Aulbert.
19444
a75f4f62
CW
194452010-11-02 Colin Watson <cjwatson@ubuntu.com>
19446
19447 * util/bin2h.c (main): Fix spelling error in generated output.
19448
33b4b0c6
GS
194492010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
19450
19451 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
19452
2b36fbf4
VS
194532010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19454
19455 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
19456 vga= option is supplied.
19457
74aaf558
VS
194582010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19459
19460 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
19461 * util/grub.d/10_kfreebsd.in: Likewise.
19462 * util/grub.d/10_linux.in: Likewise.
19463 * util/grub.d/20_linux_xen.in: Likewise.
19464
6428dec3
VS
194652010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19466
19467 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
19468 argument as an argument to no-argument option.
19469
f8729d98
VS
194702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19471
19472 * util/grub.d/10_linux.in: Add missing load_video with explicit
19473 GRUB_GFXPAYLOAD_LINUX.
19474
89d68fa6
VS
194752010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19476
19477 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
19478
3a1197cd
VS
194792010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19480
19481 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
19482 elements with invlid index.
19483 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19484 * grub-core/disk/raid.c (insert_array): Automatically reallocate
19485 members.
19486 * include/grub/raid.h (grub_raid_member): New struct.
19487 (grub_raid_array): Transform devices and start_sector into usage of
19488 grub_raid_member. All users updated
19489 (allocated_devs): New member.
19490
71574288
VS
194912010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
19494 is modified
19495
8d40ec65
BC
194962010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
19497
19498 NetBSD build fix for getline function conflict from gnulib.
19499
19500 * Makefile.util.def (libgrubkern.a): New library for grub kernel
19501 components that depend on gnulib headers.
19502 (libgrubmods.a): Renamed from earlier libgrub.a.
19503 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
19504
95b9257e
VS
195052010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19506
19507 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
19508 install rather than creating a broken install.
19509
26c53dc6
VS
195102010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19511
19512 * util/grub-setup.c (argp): Remove misleading example of installing to
19513 a partition.
19514
4171b3c5
VS
195152010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19516
19517 * util/grub-setup.c (setup): Clarify the error message.
19518
18568d18
VS
195192010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19520
19521 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
19522
4f6a2e21
VS
195232010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19524
19525 * grub-core/kern/emu/misc.c
19526 (grub_make_system_path_relative_to_its_root)
19527 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
19528
195292010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
19530
19531 * grub-core/kern/emu/misc.c
19532 (grub_make_system_path_relative_to_its_root): Revert r2882.
19533
e138c458
VS
195342010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
19535
19536 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
19537 useless field head. All users updated.
19538 (free_subchunk): Correct handling of IN_REGION subchunk.
19539
0cbcdf0e
CW
195402010-10-22 Colin Watson <cjwatson@ubuntu.com>
19541
19542 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
19543 (Supported kernels): Likewise.
19544
b65ea155
GS
195452010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
19546
19547 Make mktemp invocations portable.
19548
19549 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
19550 exit if mktemp fails.
19551 * tests/grub_script_blockarg.in: Likewise.
19552 * tests/partmap_test.in: Likewise.
19553 * tests/util/grub-shell-tester.in: Likewise.
19554 * tests/util/grub-shell.in: Likewise.
19555 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19556 * Makefile.am: Likewise, and chain shell commands with `&&'
19557 instead of ';'.
19558 * util/grub-mkrescue.in: Use the same explicit template as above, and
19559 exit if mktemp fails.
19560
05f43cdd
BC
195612010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
19562
19563 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
19564 Linux kernel, reported by Dennis Schridde.
19565
800e6a9b
SJ
195662010-10-17 Szymon Janc <szymon@janc.net.pl>
19567
19568 * grub-core/normal/auth.c (grub_auth_check_authentication):
19569 Set-but-not-used variable removed.
19570
d82df574
VS
195712010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19572
19573 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19574 32-bit linux protocol.
19575
7bced458
VS
195762010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19577
19578 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19579 cursor shape for sanity.
19580
5b027690
VS
195812010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19582
19583 * docs/grub.texi (Installation): Document buggy BIOS install.
19584
ba5f65cf
VS
195852010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19586
19587 * docs/grub.texi (Installation): Indent.
19588
fdf2ec9c
VS
195892010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19590
19591 * util/grub-setup.c (setup): New parameter allow_floppy.
19592 (arguments): New member allow_floppy.
19593 (argp_parser): Handle --allow-floppy.
19594 (main): Pass allow_floppy.
19595 * util/grub-install.in: New option --allow-floppy passed though to
19596 grub-setup.
19597
861dfd4c
VS
195982010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19599
19600 * util/grub-install.in: Handle partitionless disks.
19601
f77a8c24
VS
196022010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19603
19604 * util/grub-setup.c (setup): Don't clean blocklists before readability
19605 verfification.
19606
27d9ee32
VS
196072010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19608
19609 * docs/grub.texi (Installation): Document embedding zone. Remove
19610 obsolete grub-install example.
19611
6bdda8f8
SJ
196122010-10-16 Szymon Janc <szymon@janc.net.pl>
19613
19614 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19615 Set-but-not-used variable ifdef'ed.
19616 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19617 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19618 variable removed.
19619 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19620 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19621 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19622 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19623 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19624 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19625 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19626 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19627 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19628 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19629 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19630 Likewise.
19631
e19b016b
VS
196322010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19633
19634 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19635 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19636 enum value.
19637
6c8d3002
VS
196382010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19639
19640 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19641 synonym to _S5_. Needed for some DSDTs.
19642
c32b51c9
VS
196432010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19644
19645 Userspace ACPI parser debugging.
19646
19647 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19648 headers and add relevant defines. Don't include standard headers.
19649 (main) [GRUB_DSDT_TEST]: New function.
19650 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19651 Don't declare functions.
19652
fbfbeb39
VS
196532010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19654
19655 Remove dead grub_efi_mm_fini.
19656
19657 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19658 (ALLOCATED_PAGES_SIZE): Likewise.
19659 (MAX_ALLOCATED_PAGES): Likewise.
19660 (allocated_pages): Likewise.
19661 (grub_efi_allocate_pages): Don't record allocated pages.
19662 (grub_efi_free_pages): Likewise.
19663 (grub_efi_mm_init): Likewise.
19664 (grub_efi_mm_fini): Removed.
19665
65f7ed7c
VS
196662010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19667
19668 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19669 (grub_efi_mm_init): Take into account the memory map size increase.
19670
24977b44
VS
196712010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19672
19673 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19674 (serial_hw_put): Wait based on real time rather than port reads. Don't
19675 roken ports.
19676 * include/grub/serial.h (grub_serial_port): New field broken.
19677
1eb01cd2
RM
196782010-10-16 Robert Millan <rmh@gnu.org>
19679
19680 * grub-core/kern/emu/misc.c
19681 (grub_make_system_path_relative_to_its_root): Fix premature return
19682 when processing non-root ZFS filesystems.
5f8b440b 19683 Reported by Sergio Talens-Oliag.
1eb01cd2 19684
2d5fed60
RM
196852010-10-15 Robert Millan <rmh@gnu.org>
19686
19687 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19688 guarantee compressed ones are processed first.
19689
d0f4c1ea
VS
196902010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19691
19692 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19693 grub_efiemu_autocore.
19694
d87c681f
VS
196952010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19696
19697 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19698 rather than 0x1b.
19699 (grub_console_getkey): Use correct jae opcode rather than ja.
19700
219b3564
RM
197012010-10-12 Robert Millan <rmh@gnu.org>
19702
19703 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19704 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19705 variable. All references updated.
19706
19707 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19708
20c6bb7e
VS
197092010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19710
19711 Correctly distinguish mdraid flavours.
19712
19713 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19714 (insert_array): New argument raid.
19715 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19716 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19717 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19718
74baff84
VS
197192010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19720
19721 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19722 handling of special keys.
19723
3ef068df 197242010-10-02 Aleš Nesrsta <starous@volny.cz>
19725
c7980ad9
VS
19726 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19727 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 19728
a9455194 197292010-10-02 Aleš Nesrsta <starous@volny.cz>
19730
c7980ad9
VS
19731 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19732 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19733 users updated.
a9455194 19734 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 19735 Use right endpoint when querying descriptor.
a9455194 19736
441cfe65
VS
197372010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19738
19739 Clear out 0x80 color bit on EFI.
19740 Tested by: decoder
19741 Reported by: decoder and meta tech.
19742
19743 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19744 (grub_console_setcolorstate): Clear out 0x80 bit.
19745 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19746 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19747 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19748
bf26bcc4
VS
197492010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19750
19751 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19752 Set to "auto".
19753
6e3c515d
VS
197542010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19755
19756 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19757 mo_file after freeing.
19758
e6d983ba
VS
197592010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19760
19761 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19762
74ccb5b5
VS
197632010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19764
19765 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19766 flags.
19767
17821956
VS
197682010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19769
19770 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19771 usage.
19772
ee74fa48
VS
197732010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19774
19775 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19776
19777 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19778 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19779 and terminfo.h when needed.
19780 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19781 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19782 (terminfo): Enable only on terminfokernel.
19783 (extcmd): Likewise.
19784 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
19785 * include/grub/lib/arg.h: Likewise.
19786 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
19787 incorrect usage of ->.
19788
aa438e68
VS
197892010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19790
19791 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
19792 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
19793
57994012
VS
197942010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19795
19796 Fix coreboot compilation.
19797
19798 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19799 Take VBE info into account even if only text is supported.
19800 (fill_vbe_info): Take into account the case when only VGA text
19801 is supported.
19802 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
19803 on coreboot, multiboot and qemu.
19804
2a406611
VS
198052010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19806
19807 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
19808 debug messages.
19809 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
19810
d33613fc
VS
198112010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19812
19813 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
19814 parameters.
19815
44a1b432
VS
198162010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19817
19818 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
19819 if they were BSD-style.
19820
edde54e6
VS
198212010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19822
19823 * grub-core/boot/i386/pc/lnxboot.S: Replace
19824 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
19825 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
19826
b65830fa
VS
198272010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19828
19829 Write embedding zone using Reed-Solomon.
19830
19831 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
19832 * grub-core/Makefile.am (rs_decoder.S): New target.
19833 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19834 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
19835 (multiboot): Move to RS part.
19836 (post_reed_solomon): New label.
19837 (grub_boot_drive): Move to non-RS part since it's modified in memory
19838 on boot.
19839 Include rs_decoder.S.
19840 * grub-core/lib/reed_solomon.c: New file.
19841 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
19842 New definition.
19843 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
19844 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
19845 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
19846 * include/grub/partition.h (grub_partition_map): Change prototype of
19847 embed to allow returning additional sectors.
19848 * include/grub/reed_solomon.h: New file.
19849 * util/grub-setup.c (setup): Handle Reed-Solomon.
19850
0b4b227f
CW
198512010-09-28 Colin Watson <cjwatson@ubuntu.com>
19852
19853 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19854 i386 and x86-64 definedness tests.
19855
f772623b
YB
198562010-09-27 Yves Blusseau <blusseau@zetam.org>
19857
19858 Fix generation of kernel_syms.lst
19859
19860 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19861 ASM_PREFIX
19862
8e57a6ca
RM
198632010-09-26 Robert Millan <rmh@gnu.org>
19864
19865 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19866
19867 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19868 the pool is an array of devices, iterate through it and return the
19869 first device that passes a stat() test (instead of blindly returning
19870 the first one).
19871
f9130836
RM
198722010-09-26 Robert Millan <rmh@gnu.org>
19873
19874 Build fixes for GNU/kFreeBSD.
19875
19876 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19877 to programs that require ZFS conversion.
19878 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19879 kernels that don't have FLOPPY_MAJOR.
19880
96510faf
BC
198812010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19882
19883 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19884
449333eb
BC
198852010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19886
19887 Fix grub-emu build.
19888
19889 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19890 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19891 mdraid09 and mdraid1x.
19892
e1fd1939
CW
198932010-09-24 Colin Watson <cjwatson@ubuntu.com>
19894
19895 Re-enable grub-extras.
19896
19897 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19898 avoid confusing Automake. Run autogen only twice, once for the top
19899 level and once for grub-core. Add Makefile.util.def and
19900 Makefile.core.def from extra modules to the appropriate autogen
19901 invocations. If Makefile.common exists in an extra module, include
19902 it in both Makefile.util.am and grub-core/Makefile.core.am;
19903 similarly, include any Makefile.util.common file in Makefile.util.am
19904 and any Makefile.core.common file in grub-core/Makefile.core.am.
19905 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19906 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19907 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19908 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19909
19910 * gentpl.py (gvar_add): Turn GVARS into a set.
19911 (global_variable_initializers): Sort global variables on output.
19912 (vars_init): New function.
19913 (first_time): Likewise.
19914 (library): Ensure that non-global variable initialisations are
19915 emitted before the first time we emit code for a library block.
19916 Append to variables rather than setting them. Only emit
19917 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19918 each conditional path.
19919 (program): installdir() emits an Autogen macro, so must be passed to
19920 var_add rather than gvar_add.
19921 (data): Likewise.
19922 (script): Likewise.
19923 (rules): New function, centralising handling for different target
19924 types. Set up Guile association lists for first_time and vars_init,
19925 and send most output to a diversion so that variable initialisations
19926 can be emitted first.
19927 (module_rules): Use new rules function.
19928 (kernel_rules): Likewise.
19929 (image_rules): Likewise.
19930 (library_rules): Likewise.
19931 (program_rules): Likewise.
19932 (script_rules): Likewise.
19933 (data_rules): Likewise.
19934
19935 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19936
19937 * .bzrignore: Add contrib and grub-core/contrib. Remove
19938 grub-core/Makefile.gcry.am.
19939
1d12cf29
YB
199402010-09-24 Yves Blusseau <blusseau@zetam.org>
19941
19942 * grub-core/lib/LzFind.c: Add missing include.
19943 * grub-core/lib/LzmaEnc.c: Likewise.
19944 * grub-core/script/lexer.c: Likewise.
19945 * grub-core/script/yylex.l: Likewise.
19946 * util/grub-macho2img.c: Likewise.
19947 * util/grub-menulst2cfg.c: Likewise.
19948 * util/grub-mklayout.c: Likewise.
19949 * util/grub-mkpasswd-pbkdf2.c
19950 * util/grub-mkrelpath.c: Likewise.
19951 * util/resolve.c: Likewise.
19952
dd363028
BC
199532010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19954
19955 * Makefile.util.def (example_unit_test): Add
19956 grub-core/gnulib/libgnu.a.
19957
f5a109e2
GS
199582010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19959
19960 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19961
6d0fa83c
VS
199622010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19963
19964 Support xz compression on yeeloong.
19965
19966 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19967 * configure.ac: Check for LZMA.
19968 * grub-core/Makefile.core.def (xz_decompress): New target.
19969 (none_decompress): Likewise.
19970 * grub-core/boot/decompressor/minilib.c: New file.
19971 * grub-core/boot/decompressor/none.c: Likewise.
19972 * grub-core/boot/decompressor/xz.c: Likewise.
19973 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19974 * grub-core/kern/mips/cache_flush.S: Likewise.
19975 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19976 * grub-core/kern/mips/startup.S: Move first stage to ...
19977 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19978 nomacro.
19979 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19980 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19981 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19982 Allocate statically.
19983 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19984 Allocate statically or use scratch. Don't check CRC32.
19985 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19986 Allocate statically. Don't check CRC32.
19987 * include/grub/decompressor.h: New file.
19988 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19989 Removed.
19990 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19991 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19992 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19993 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19994 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19995 * util/grub-mkimage.c (grub_compression_t): New type.
19996 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19997 (image_target_desc): New field default_compression.
19998 (image_targets): Adjust yeeloong targets.
19999 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
20000 (compress_kernel): New parameter comp.
20001 (generate_image): Likewise. Handle new compression case.
20002 (options): New option --compression
20003 (help): Likewise.
20004 (main): Handle new option.
20005
1b655af6
GS
200062010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
20007
20008 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
20009
8f03f0b5
CW
200102010-09-22 Colin Watson <cjwatson@ubuntu.com>
20011
20012 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
20013 typo in __i386__ conditional.
20014
7835dfd3
VS
200152010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
20016
20017 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
20018 include.
20019
e255597e
VS
200202010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
20021
6d0fa83c 20022 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
20023
20024 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
20025 new tags as supported.
20026 (acpiv2_size): New function.
20027 (grub_multiboot_get_mbi_size): Take new tags into account.
20028 (grub_multiboot_make_mbi): Add new tags.
20029 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 20030
6cc14051 200312010-09-21 Aleš Nesrsta <starous@volny.cz>
20032
20033 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
20034 Added missing configuration of USB device.
20035
df7769d8
CW
200362010-09-21 Colin Watson <cjwatson@ubuntu.com>
20037
20038 * grub-core/normal/menu_entry.c (run): Make sure we always return
20039 a value.
20040
b031012d
CW
200412010-09-21 Colin Watson <cjwatson@ubuntu.com>
20042
20043 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
20044 NumberOfPages is UINT64 according to the UEFI specification, not
20045 UINTN. Fix printf format.
20046
174de8f3
CW
200472010-09-21 Colin Watson <cjwatson@ubuntu.com>
20048
20049 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
20050 `err' to grub_usb_err_t.
20051 Reported and tested by: KESHAV P.R.
20052
d7dbe923
CW
200532010-09-21 Colin Watson <cjwatson@ubuntu.com>
20054
20055 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
20056 tpart non-const, so that we can assign to it. (Since this is a
20057 typedef, the constness refers to the pointer rather than what it
20058 points to.)
20059
8d5e2af3
CW
200602010-09-21 Colin Watson <cjwatson@ubuntu.com>
20061
20062 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
20063 $(top_srcdir)/grub-core/gnulib as well as
20064 $(top_builddir)/grub-core/gnulib.
20065 Reported by: KESHAV P.R.
20066
5c527783
CW
200672010-09-21 Colin Watson <cjwatson@ubuntu.com>
20068
20069 * util/grub-install.in: Fix the bootloader ID option to be
20070 consistently --bootloader-id, not --bootloader_id.
20071 Reported by: KESHAV P.R.
20072
d309a16e
CW
200732010-09-21 Colin Watson <cjwatson@ubuntu.com>
20074
20075 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
20076 check hash checksum." consistently translatable.
20077
b830cd16
YB
200782010-09-21 Yves Blusseau <blusseau@zetam.org>
20079
20080 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
20081 $(top_builddir).
20082
c4fe27a8
CW
200832010-09-21 Colin Watson <cjwatson@ubuntu.com>
20084
20085 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
20086 (GRUB_MOD_INIT): Register sha1sum command.
20087 (GRUB_MOD_FINI): Unregister sha1sum command.
20088
a4c1d277
YB
200892010-09-21 Yves Blusseau <blusseau@zetam.org>
20090
20091 Keep boot and grub directory names in sync with utils scripts
20092
20093 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
20094 * config.h.in: Add previous macros.
20095 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
20096 * util/grub-install.in: Use $bootdir and $grubdir variables.
20097
4eff79d2
CW
200982010-09-21 Colin Watson <cjwatson@ubuntu.com>
20099
20100 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
20101 convert partition names to disk names if the new `convert' parameter
20102 is set.
20103 (grub_util_biosdisk_get_grub_dev): If opening the disk device
20104 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
20105 disk in its own right. This can happen with Xen disk images.
20106
934d7e44
YB
201072010-09-21 Yves Blusseau <blusseau@zetam.org>
20108
20109 * util/grub-editenv.c: Update strings to avoid warnings when generating
20110 grub.pot file.
20111 * util/grub-setup.c: Likewise.
934d7e44 20112
df3367cc
VS
201132010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20114
20115 * configure.ac: Change version to 1.99~beta0.
20116
77a94e98
VS
201172010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20118
20119 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
20120 Add BADRAM.
20121 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
20122 Likewise.
20123 * include/multiboot.h: Resynced with specification.
20124 * include/multiboot2.h: Likewise.
20125
269004c1
CW
201262010-09-21 Colin Watson <cjwatson@ubuntu.com>
20127
20128 Fix po directory handling.
20129
20130 * configure.ac: Create po/Makefile.in rather than po/Makefile.
20131 * grub-core/gnulib/Makefile.am: Import gettext module.
20132 * m4/gnulib-cache.m4: Likewise.
20133 * m4/gnulib-comp.m4: Likewise.
20134 * m4/gettext.m4: New file, from gnulib.
20135 * m4/glibc2.m4: Likewise.
20136 * m4/iconv.m4: Likewise.
20137 * m4/intdiv0.m4: Likewise.
20138 * m4/intl.m4: Likewise.
20139 * m4/intldir.m4: Likewise.
20140 * m4/intlmacosx.m4: Likewise.
20141 * m4/intmax.m4: Likewise.
20142 * m4/inttypes-pri.m4: Likewise.
20143 * m4/lcmessage.m4: Likewise.
20144 * m4/lib-ld.m4: Likewise.
20145 * m4/lib-link.m4: Likewise.
20146 * m4/lib-prefix.m4: Likewise.
20147 * m4/lock.m4: Likewise.
20148 * m4/nls.m4: Likewise.
20149 * m4/po.m4: Likewise.
20150 * m4/printf-posix.m4: Likewise.
20151 * m4/progtest.m4: Likewise.
20152 * m4/threadlib.m4: Likewise.
20153 * m4/uintmax_t.m4: Likewise.
20154 * m4/visibility.m4: Likewise.
20155 * po/Makefile.am: Remove.
20156 * po/Makefile.in.in: New file, from gettext.
20157 ($(DOMAIN).pot-update): Support POTFILES-shell.
20158 * po/Makevars: New file.
20159 * po/POTFILES-shell: Rename to ...
20160 * po/POTFILES-shell.in: ... this. Update.
20161 * po/POTFILES: Rename to ...
20162 * po/POTFILES.in: ... this. Update.
20163 * po/Rules-quot: New file, from gettext.
20164 * po/boldquot.sed: Likewise.
20165 * po/en@boldquot.header: Likewise.
20166 * po/en@quot.header: Likewise.
20167 * po/insert-header.sin: Likewise.
20168 * po/quot.sed: Likewise.
20169 * po/remove-potcdate.sin: Likewise.
20170
3e0fa5d0
VS
201712010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20172
20173 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
20174
ade9bd66
VS
201752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20176
20177 * util/grub.d/20_linux_xen.in: Use submenus.
20178
fc55cc4c
VS
201792010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20180
20181 Support submenus.
20182
20183 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
20184 parameter submenu. All users updated.
20185 * grub-core/normal/main.c (free_menu): Rename to ...
20186 (grub_normal_free_menu): ... this. Made global.
20187 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
20188 if requested.
20189 * grub-core/normal/menu_entry.c (screen): New field submenu.
20190 (make_screen): Set submenu.
20191 (run): Open new context if requested.
20192 * include/grub/menu.h (grub_menu_entry): New field submenu.
20193 * include/grub/normal.h (grub_normal_free_menu): New proto.
20194
600cedf7
VS
201952010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20196
20197 Menu entries extractor.
20198
20199 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
20200 variants.
20201 (GRUB_MOD_INIT): Register new variants.
20202 (GRUB_MOD_FINI): Unregister new variants.
20203 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
20204 into grub_cmd_legacy_source.
20205 (grub_cmd_legacy_source): Implement extractor variants.
20206 (GRUB_MOD_INIT): Register new variants.
20207 (GRUB_MOD_FINI): Unregister new variants.
20208 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
20209 as an extractor.
20210 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
20211 search as an extractor.
20212 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
20213 test as an extractor.
20214 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
20215 as an extractor.
20216 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
20217 (grub_env_new_context): New function.
20218 (grub_env_context_open): Likewise.
20219 (grub_env_extractor_open): Likewise.
20220 (grub_env_extractor_close): Likewise.
20221 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20222 grub_extractor_level.
20223 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
20224 * include/grub/env.h (grub_env_extractor_open): New proto.
20225 (grub_env_extractor_close): Likewise.
20226 * include/grub/normal.h (grub_extractor_level): New external variable.
20227
7bda3a87
VS
202282010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20229
20230 Make cutmem accept a region specification.
20231 Suggested by: Samuel Thibault
20232
20233 * grub-core/mmap/mmap.c (parsemem): New function.
20234 (grub_cmd_cutmem): Handle new arguments.
20235
2ea57f88
VS
202362010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20237
20238 New command cutmem.
20239
20240 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
20241 (GRUB_MOD_INIT): Register new command.
20242 (GRUB_MOD_FINI): Unregister new command.
20243
74342e31
VS
202442010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20245
20246 Support some annoying BSD and Minix subpartitions.
20247
20248 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
20249 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
20250 Properly handle concatenation.
20251 * grub-core/kern/device.c (grub_device_iterate): Likewise.
20252 * grub-core/normal/completion.c (iterate_partition): Likewise.
20253 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
20254 contain partition. All users updated.
20255 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
20256 struct.
20257 (grub_openbsdlabel_partition_map): Likewise.
20258 (bsdlabel_partition_map_iterate): Rename to ..
20259 (iterate_real): ... this. New arguments sector, freebsd and pmap.
20260 (bsdlabel_partition_map_iterate): New function.
20261 (netopenbsdlabel_partition_map_iterate): Likewise.
20262 (netbsdlabel_partition_map_iterate): Likewise.
20263 (openbsdlabel_partition_map_iterate): Likewise.
20264 (GRUB_MOD_INIT): Register new partmaps.
20265 (GRUB_MOD_FINI): Unregister new partmaps.
20266 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
20267 (grub_partition_msdos_iterate): ... this. All users updated.
20268 Don't support embedding other than in a minix partition.
20269 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
20270 proto.
20271 * include/grub/partition.h (grub_partition): New field msdostype.
20272 * util/grub-install.in: Handle openbsd and netbsd types being in
20273 part_bsd module.
20274
1e8d555b
VS
202752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20276
20277 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
20278
20279 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
20280 * grub-core/Makefile.core.def (mdraid): Renamed to ...
20281 (mdraid09): ... this.
20282 (mdraid1x): New module.
20283 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
20284 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
20285
899d8af4
VS
202862010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20287
20288 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
20289 vsprintf.
20290
40901acd
CW
202912010-09-20 Colin Watson <cjwatson@ubuntu.com>
20292
20293 * grub-core/commands/efi/lsefimmap.c: Correct header.
20294 * NEWS: Update.
20295
dfe3b247
CW
202962010-09-20 Colin Watson <cjwatson@ubuntu.com>
20297
20298 * util/grub-editenv.c (argp_parser): Don't pass translated strings
20299 as printf format strings; the translations might contain '%' which
20300 could cause a crash.
20301 (main): Likewise.
20302 * util/grub-fstest.c (argp_parser): Likewise.
20303 * util/grub-setup.c (argp_parser): Likewise.
20304 (main): Likewise.
20305
3286a4b4
VS
203062010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20307
20308 Use argp in grub-fstest.
20309
20310 * util/grub-fstest.c: Don't include getopt.h.
20311 Include argp.h.
20312 (root): New variable.
20313 (args_count): Likewise.
20314 (nparm): Likewise.
20315 (num_disks): Likewise.
20316 (images): Likewise.
20317 (cmd): Likewise.
20318 (debug_str): Likewise.
20319 (args): Likewise.
20320 (options): Transformed to argp.
20321 (usage): Removed.
20322 (main): Split argument parsing into ...
20323 (argp_parser): ... this. Changed to argp format.
20324 (argp): New variable.
20325 (main): Use argp_parse.
20326
3dccbe4b
TG
203272010-09-20 Tristan Gingold <gingold@free.fr>
203282010-09-20 Robert Millan <rmh.grub@aybabtu.com>
203292010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20330
20331 * grub-core/commands/efi/lsefimmap.c: New file.
20332 * grub-core/Makefile.core.def (lsefimmap): New module.
20333 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
20334
38c259a7
VS
203352010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20336
20337 Pause the execution (10s max) if any errors are displayed so the user
20338 has a chance to see them.
20339
20340 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
20341 (grub_print_error): Increment grub_err_printed_errors.
20342 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
20343 execution if any errors were displayed.
20344 (show_menu): Remove old code for pause.
20345 * grub-core/normal/menu_entry.c (run): Likewise.
20346 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
20347 users updated.
20348 (grub_normal_get_char_counter): Likewise.
20349 * include/grub/err.h (grub_err_printed_errors): New external variable.
20350 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
20351
f218b09c
VS
203522010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20353
20354 Support multiboot VBE info.
20355
20356 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
20357 Take VBE info into account.
20358 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
20359 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20360 Call fill_vbe_info when appropriate.
20361 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
20362 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
20363 as supported.
20364 (grub_multiboot_get_mbi_size): Take new tags into account.
20365 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
20366 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20367 Call fill_vbe_tag when appropriate.
20368 (grub_multiboot_make_mbi): Properly align tags.
20369 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
20370 function.
20371 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
20372 proto.
20373 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
20374
a9cc5438
VS
203752010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20376
20377 Suport manual terminal geometry specification.
20378
20379 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
20380 Save state in grub_ofconsole_terminfo_output.
20381 (grub_ofconsole_term): Use grub_terminfo_getwh.
20382 (grub_ofconsole_getwh): Removed.
20383 * grub-core/term/serial.c (grub_serial_getwh): Removed.
20384 (grub_serial_term): Use grub_terminfo_getwh.
20385 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
20386 (options): New struct.
20387 (OPTION_*): New enum.
20388 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
20389 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
20390 width and height.
20391 (grub_terminfo_getwh): New proto.
20392 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
20393
1a8fed20
VS
203942010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20395
20396 Handle legacy "terminal" command.
20397
20398 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
20399 and FLAG_TERMINAL.
20400 (legacy_commands): Add terminal and title.
20401 (grub_legacy_parse): Handle terminal. Simplify title handling.
20402
41e9c57d
VS
204032010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20404
20405 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
20406 parameters overflow.
20407
61c874c5
CW
204082010-09-20 Colin Watson <cjwatson@ubuntu.com>
20409
20410 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
20411 widthspec.h.
20412
20413 * docs/grub.texi (Shell-like scripting): Document `!'.
20414 (Network): Simplify using new i386-pc-pxe format. Mention
20415 grub-mknetdir.
20416
20417 * NEWS: Update.
20418
943682b4
CW
204192010-09-20 Colin Watson <cjwatson@ubuntu.com>
20420
20421 * Makefile.am (SUBDIRS): Restore "."; it's important to force
20422 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
20423 when needed.
20424
6d3d698d
CW
204252010-09-20 Colin Watson <cjwatson@ubuntu.com>
20426
20427 * grub-core/commands/efi/lsefisystab.c: Correct header.
20428 * grub-core/commands/efi/lssal.c: Likewise.
20429 * grub-core/commands/testload.c: Likewise.
20430
c982589f
CW
204312010-09-20 Colin Watson <cjwatson@ubuntu.com>
20432
20433 * util/grub-mkrescue.in: Add explicit root argument to --set to
20434 prevent the UUID being interpreted as an argument to --set (matches
20435 previous change to prepare_grub_to_access_device).
20436
a63c31b6
CW
204372010-09-20 Colin Watson <cjwatson@ubuntu.com>
20438
20439 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
20440 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
20441 the verbosity of later #ifs.
20442 (find_partition_start): Define this function on FreeBSD too.
20443 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
20444 function.
20445 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
20446 on FreeBSD.
20447
6439b8ee
YB
204482010-09-20 Yves Blusseau <blusseau@zetam.org>
20449
20450 * util/grub-editenv.c: Use argp instead of getopt.
20451
c5930ec8
YB
204522010-09-20 Yves Blusseau <blusseau@zetam.org>
20453
20454 * util/grub-setup.c: Use argp instead of getopt.
20455
15c69261
YB
204562010-09-20 Yves Blusseau <blusseau@zetam.org>
20457
20458 Use gnulib-tool to create gnulib source files.
20459
20460 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
20461 grub-core/gnulib directories
20462 * .bzignore: Add **/.deps and autogenerated gnulib files
20463 * configure.ac: Assign auxiliary directory to build-aux, add invocation
20464 of gnulib macros, add grub-core/gnulib/Makefile
20465 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
20466 include m4 directory to aclocal.
20467 * Makefile.util.def: Remove direct compilation of gnulib source files
20468 and use the new grub-core/gnulib/libgnu.a.
20469 * build-aux/config.rpath: move config.rpath from top directory to
20470 build-aux
20471 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
20472 in gnulib headers
20473 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
20474 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
20475 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
20476 header.
20477 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
20478 string.
20479
e511c9f5
YB
204802010-09-20 Yves Blusseau <blusseau@zetam.org>
20481
20482 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
20483 grub-core/genmod.sh and grub-core/gensyminfo.sh
20484
c2dede05
BC
204852010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
20486
20487 Add a test for echo command options.
20488
20489 * tests/grub_cmd_echo.in: New test.
20490 * Makefile.util.def: Rules for new test.
20491
c55f5018
SJ
204922010-09-20 Szymon Janc <szymon@janc.net.pl>
20493
20494 Remove crc.mod and move crc command to hashsum.mod.
20495 Remove lib/crc.c - users updated to use gcrypt implementation.
20496
20497 * grub-core/commands/crc.c: Removed.
20498 * grub-core/Makefile.core.def (crc): Module removed.
20499 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
20500 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
20501 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
20502 * grub-core/lib/crc.c: Removed.
20503 * include/grub/lib/crc.h: Removed.
20504 * Makefile.util.def (crc): Remove lib/crc.c
20505 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
20506 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
20507 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
20508 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
20509 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
20510 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
20511
e0337366
VS
205122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20513
20514 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
20515
742f9232
VS
205162010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20517
20518 Split config.h for util and core.
20519
20520 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
20521 (ADDR32): Likewise.
20522 (DATA32): Likewise.
20523 (BSS_START_SYMBOL): Likewise.
20524 (END_SYMBOL): Likewise.
20525 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
20526 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
20527 * config.h.in: New file.
20528 * configure.ac: Use config-util.h as config define file.
20529 Rename MACHINE into GRUB_MACHINE. All users updated.
20530 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
20531 updated.
20532 (NESTED_FUNC_ATTR): Likewise.
20533 Substitue new variables.
20534 (COND_HAVE_ASM_USCORE): New conditional.
20535 * grub-core/Makefile.am (ASM_PREFIX): New variable.
20536 (kernel_syms.lst): Use ASM_PREFIX.
20537 * grub-core/kern/emu/console.c: Include config-util.h.
20538 * grub-core/kern/emu/misc.c: Likewise.
20539 * grub-core/kern/emu/mm.c: Likewise.
20540 * include/grub/emu/misc.h: Likewise.
20541 * include/grub/libgcc.h: Likewise.
20542
39feb0e8
VS
205432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20544
20545 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
20546 constants usage.
20547 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
20548 Fix GRUB_TERM_KEY_* constants usage.
20549 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
20550
9af6dac3
VS
205512010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20552
20553 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
20554 print pointer.
20555 * grub-core/bus/usb/uhci.c: Remove empty define.
20556 (grub_uhci_check_transfer): Add missing cast.
20557 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
20558 print pointer.
20559 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
20560 PRIuGRUB_SIZE.
20561 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
20562
d6d94820
VS
205632010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20564
20565 * grub-core/Makefile.core.def (legacycfg): Add
20566 lib/i386/pc/vesa_modes_table.c on emu.
20567
3572f2b6
BC
205682010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20569
20570 Reduce number of temporary files generated by build system.
20571
20572 * grub-core/gencmdlist.sh: Removed.
20573 * grub-core/genfslist.sh: Removed.
20574 * grub-core/genhandlerlist.sh: Removed.
20575 * grub-core/genmodsrc.sh: Removed.
20576 * grub-core/genpartmaplist.sh: Removed.
20577 * grub-core/genparttoollist.sh: Removed.
20578 * grub-core/gentermiinallist.sh: Removed.
20579 * grub-core/genvideolist.sh: Removed.
20580
20581 * grub-core/genmod.sh.in: New file.
20582 * grub-core/gensyminfo.sh.in: New file.
20583
20584 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20585 * conf/Makefile.extra-dist: Update with new files.
20586 * gentpl.py: Remove rules related to unnecessary temporary files.
20587 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20588 and und-* files.
20589 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20590 genmod.sh scripts.
20591 * grub-core/bus/usb/uhci.c: Remove empty #define.
20592 * grub-core/genmoddep.awk: Updated with new syminfo format.
20593 * util/bash-completion.d/Makefile.am: Add config.log to
20594 CLEANFILES.
20595
c836b030
YB
205962010-09-19 Yves Blusseau <blusseau@zetam.org>
20597
20598 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20599
2f4e8053
BC
206002010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20601
20602 * util/grub-mkconfig.in: Check the config script for syntax errors
20603 before saving.
20604
75831c34
CW
206052010-09-19 Colin Watson <cjwatson@ubuntu.com>
206062010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20607
20608 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20609 platforms.
20610 * util/grub-install.in: Add EFI and IEEE1275 support.
20611 * util/i386/efi/grub-install.in: Removed.
20612 * util/ieee1275/grub-install.in: Likewise.
20613
eaf41b25
VS
206142010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20615
20616 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20617 (grub_cmd_cmosclean): Likewise.
20618 (GRUB_MOD_INIT): Register command cmosclean.
20619 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20620 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20621
1a9130dd
CPE
206222010-09-18 Carles Pina i Estany <carles@pina.cat>
206232010-09-18 Aleš Nesrsta <starous@volny.cz>
206242010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20625
20626 Add keyboard layouts support.
20627
20628 * Makefile.util.def (grub-mklayout): New file.
20629 (grub-kbdcomp): New script.
20630 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20631 Add keyboard_layouts.h.
20632 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20633 commands/boot.c on yeeloong.
20634 (keylayouts): New module.
20635 * grub-core/bus/usb/ohci.c
20636 * grub-core/bus/usb/uhci.c
20637 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20638 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20639 (attach_root_port): Likewise.
20640 (poll_nonroot_hub): Likewise.
20641 (grub_usb_poll_devices): Likewise.
20642 (detach_device): Close transfer.
20643 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20644 function.
20645 (grub_usb_bulk_setup_readwrite): Likewise.
20646 (grub_usb_bulk_finish_readwrite): Likewise.
20647 * grub-core/commands/keylayouts.c: New file.
20648 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20649 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20650 aliases.
20651 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20652 support scancode 2.
20653 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20654 * include/grub/keyboard_layouts.h: New file.
20655 * util/grub-mklayout.c: New file.
20656 * util/grub-kbdcomp.in: Likewise.
20657
a1d84a5e
VS
206582010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20659
20660 Unify memory types.
20661
20662 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20663 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20664 types.
20665 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20666 (grub_upper_mem): Likewise.
20667 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20668 * include/grub/memory.h (grub_memory_type_t): New enum.
20669 All users updated.
20670
9696382e
VS
206712010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20672
20673 * grub-core/Makefile.core.def (lsapm): New module.
20674 * grub-core/commands/i386/pc/lsapm.c: New file.
20675 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20676 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20677 Likewise.
20678 * include/grub/i386/pc/apm.h: New file.
20679 * include/multiboot.h (multiboot_apm_info): New struct.
20680
206812010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20682
20683 GRUB-legacy configuration file support.
20684
20685 * Makefile.util.def (grub-menulst2cfg): New util.
20686 * docs/man/grub-menulst2cfg.h2m: New file.
20687 * grub-core/Makefile.core.def (legacycfg): New module.
20688 * grub-core/commands/legacycfg.c: New file.
20689 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20690 (grub_normal_add_menu_entry): ... this.
20691 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20692 (grub_normal_set_password): ...this.
20693 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20694 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20695 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20696 * grub-core/lib/legacy_parse.c: New file.
20697 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20698 * include/grub/i386/pc/vesa_modes_table.h: New file.
20699 * include/grub/legacy_parse.h: Likewise.
20700 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20701 * util/grub-menulst2cfg.c: New file.
20702
bf8d1338
CW
207032010-09-17 Colin Watson <cjwatson@ubuntu.com>
20704
20705 * grub-core/kern/emu/hostdisk.c
20706 (convert_system_partition_to_system_disk): Initialise node.
20707
9c0bad2e
CW
207082010-09-17 Colin Watson <cjwatson@ubuntu.com>
20709
20710 * grub-core/kern/emu/hostdisk.c
20711 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20712 leak.
20713 Reported and based on patch by: Modestas Vainius.
20714
a939d135
CW
207152010-09-17 Colin Watson <cjwatson@ubuntu.com>
20716
20717 Fix DM-RAID probing with recent versions of device-mapper udev
20718 rules.
20719
20720 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20721 canonicalise device paths under /dev/mapper/.
20722 (convert_system_partition_to_system_disk): Compare the
20723 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20724 path, since device nodes under /dev/mapper/ are often symlinks.
20725
0f7ee3c9
YB
207262010-09-17 Yves Blusseau <blusseau@zetam.org>
20727
20728 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20729
10854d0d
YB
207302010-09-16 Yves Blusseau <blusseau@zetam.org>
20731
20732 * configure.ac: Avoid some annoying error messages if freetype-config
20733 program is not found.
20734
108538d8
CW
207352010-09-16 Colin Watson <cjwatson@ubuntu.com>
20736
20737 Support RAID on virtio devices, and others.
20738
20739 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20740 Rename to ...
20741 [__MINGW32__] (grub_find_device): ... this.
20742 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20743 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20744 reasonable default if dir is NULL.
20745 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20746 ...
20747 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20748 (grub_guess_root_device): Update callers.
20749 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20750
20751 * util/raid.c (grub_util_getdiskname): Remove.
20752 (grub_util_raid_getmembers): Use grub_find_device rather than
20753 grub_util_getdiskname.
20754
e5bfc130
CW
207552010-09-16 Colin Watson <cjwatson@ubuntu.com>
20756
20757 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20758 needing to be compiled with serial support.
20759 (ls): Indicate that multiple files are accepted.
20760 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20761 indicate that multiple files are accepted.
20762
be458ae2
CW
207632010-09-16 Colin Watson <cjwatson@ubuntu.com>
20764
20765 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20766 libgrub_a_init.c, and util/bash-completion.d/grub.
20767
cb731b5e
VS
207682010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20769
20770 * util/grub-setup.c (setup): Fix incorrect container semantics.
20771
35139e8a
VS
207722010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20773
20774 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20775 misusage.
20776 Reported by: J. Nick Terry
20777
e50fca4a
VS
207782010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20779
20780 Move embedding routines to partmap sources files.
20781
20782 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20783 [GRUB_UTIL]: New variable.
20784 (gpt_partition_map_iterate): Set part.parent.
20785 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
20786 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
20787 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
20788 New function.
20789 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
20790 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
20791 (grub_partition_map) [GRUB_UTIL]: New field embed.
20792 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
20793 (setup): Use ->embed.
20794
f00478b7
VS
207952010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20796
20797 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
20798 function.
20799 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
20800 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
20801
2b94e3ff
YB
208022010-09-15 Yves Blusseau <blusseau@zetam.org>
20803
20804 Add function to get completions from usage.
20805
20806 * util/bash-completion.d/grub-completion.bash.in: Add function to get
20807 completions from usage. Use LC_ALL=C to get options properly.
20808
2e04a006
VS
208092010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20810
20811 * grub-core/gnulib/basename-lgpl.c: Imported.
20812 * grub-core/gnulib/basename.c: Likewise.
20813 * grub-core/gnulib/dirname-lgpl.c: Likewise.
20814 * grub-core/gnulib/dirname.c: Likewise.
20815 * grub-core/gnulib/dirname.h: Likewise.
20816 * grub-core/gnulib/stripslash.c: Likewise.
20817
5dcdf93a
VS
208182010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20819
20820 * grub-core/gnulib/error.c: Resynced.
20821 * grub-core/gnulib/getopt.c: Likewise.
20822 * grub-core/gnulib/getopt_int.h: Likewise.
20823 * grub-core/gnulib/regex.h: Likewise.
20824 * grub-core/gnulib/regex_internal.c: Likewise.
20825 * grub-core/gnulib/regex_internal.h: Likewise.
20826
014f47b7
SJ
208272010-09-15 Szymon Janc <szymon@janc.net.pl>
20828
20829 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
20830 CRC calculations and validity checks.
20831 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
20832 calculations.
20833
dd521a4a
SJ
208342010-09-15 Szymon Janc <szymon@janc.net.pl>
20835
20836 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
20837
79c4eeb9
VS
208382010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20839
20840 Fix incorrect echo options handling.
20841 Reported by: Yves Blusseau.
20842
20843 * include/grub/command.h (grub_command_flags_t): New flags
20844 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
20845 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
20846 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
20847
ed80f7d5
VS
208482010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20849
20850 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20851 users updated.
20852 (GRUB_COMMAND_FLAG_MENU): Likewise.
20853 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20854 (GRUB_COMMAND_FLAG_TITLE): Removed.
20855 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20856 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20857 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20858 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20859 (grub_command_flags_t): New enum. All users updated.
20860
5fe7620a
SG
208612010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20862
20863 Fix solaris compilation.
20864
20865 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20866 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20867 (grub-emu-list): Likewise.
20868
545b752f
VS
208692010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20870
20871 Remove deprecated root command.
20872
20873 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20874 updated.
20875
6c1a338c
VS
208762010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20877
20878 * util/i386/pc/grub-setup.c: Merge this ...
20879 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20880 * util/grub-setup.c: ... into this.
20881 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20882 New struct.
20883
208842010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20885
20886 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20887 possible.
20888
d2ea4551
VS
208892010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20890
20891 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20892 allocate p.
20893
3c3b5040
VS
208942010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20895
20896 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20897 explicit root argument to set to prevent UUID to be interpreted as
20898 argument to set.
20899
b71c3fae
VS
209002010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20901
20902 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20903
275433e6
VS
209042010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 Don't export grub_gate_a20.
20907
20908 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20909 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20910 to ...
20911 (grub_gate_a20): ... this. All users updated.
20912 * include/grub/i386/pc/init.h: Removed. All users updated.
20913
a5dbb1f1
VS
209142010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20915
20916 Create euro.pf2 which supports most European languages.
20917
20918 * Makefile.am (grubdata_DATA): Add euro.pf2.
20919 (euro.pf2): New target.
20920 (CLEANFILES): Add euro.pf2.
20921
62a747cb
VS
209222010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20923
20924 * configure.ac: Disable emu-usb by default to prevent inadvertent
20925 device takeover.
20926
608e43b1
VS
209272010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20928
20929 Disable usbserial on grub-emu since our libusb code isn't good enough
20930 yet.
20931
20932 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20933 (usbserial_pl2303): Likewise.
20934 (usbserial_ftdi): Likewise.
20935
94564f81
VS
209362010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20937
20938 * include/grub/disk.h (grub_disk): Remove has_partitions.
20939 All users updated.
20940 * disk/loopback.c (grub_loopback): Remove has_partitions.
20941 All users updated.
20942 (options): Remove partitions. All users updated.
20943 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20944 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20945 actual partition table is found.
20946
3352800b
VS
209472010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20948
20949 Remove readability checks (too many false negatives).
20950
20951 * util/grub-install.in: Remove readability checks.
20952 * util/grub-mkconfig.in: Likewise.
20953 * util/grub.d/10_hurd.in: Likewise.
20954 * util/grub.d/10_kfreebsd.in: Likewise.
20955 * util/grub.d/10_linux.in: Likewise.
20956 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20957 way.
20958
2419f17a
VS
209592010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20960
20961 Enable acpi shutdown on all ACPI platforms.
20962
20963 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20964 on coreboo, multiboot and EFI.
20965 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20966 (grub_acpi_halt): Likewise.
20967 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20968 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20969 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20970 * grub-core/lib/i386/halt.c (grub_halt)
20971 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20972
0575c7c3
VS
209732010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20974
20975 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20976 context.
20977
54ac3cd1
VS
209782010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20979
20980 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20981 * grub-core/video/efi_uga.c: Likewise.
20982
b2a30ac5
VS
209832010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20984
20985 Filter devaliases and never open same device twice.
20986
20987 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20988 (last_ihandle): Likewise.
20989 (ofdisk_hash_ent): New member shortest.
20990 (ofdisk_hash_add): Add canonical path too.
20991 (scan): New function.
20992 (grub_ofdisk_iterate): Iterate over hashed entries.
20993 (compute_dev_path): Don't add :0.
20994 (grub_ofdisk_open): Don't really open the disk.
20995 (grub_ofdisk_close): Avoid closing unrelated disk.
20996 (grub_ofdisk_read): Implement reopen logic.
20997 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20998 New function.
20999 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
21000 New proto.
21001
fb53b340
VS
210022010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21003
21004 Fix sparc64.
21005
21006 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
21007 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
21008 right address. Add sparc64_ieee1275_ldflags.
21009 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
21010 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
21011 to grub_host_to_target_addr
21012 (load_image): Likewise.
21013
f452b040
VS
210142010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21015
21016 * grub-core/normal/completion.c (complete_file): Handle device
21017 containing slash.
21018 Fix based on patch by Doug Nazar.
21019
9b5b2541
VS
210202010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21021
21022 grub-mknetdir script.
21023
21024 * Makefile.util.def (grub-mknetdir): New module.
21025 * tests/util/grub-shell.in: Support boot=net
21026 * util/grub-mknetdir.in: New file.
21027
9d2be652
VS
210282010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21029
21030 videoinfo on non-vbe.
21031
21032 * grub-core/Makefile.core.def (vbeinfo): Removed.
21033 (vbetest): Removed.
21034 (videoinfo): New module.
21035 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
21036 * grub-core/commands/i386/pc/vbetest.c: Removed.
21037 * grub-core/commands/videoinfo.c: New file.
21038 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
21039 specification.
21040 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
21041 as vbetest.
21042 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
21043 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
21044 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
21045 mode_number. New parameter mode. All users updated.
21046 (grub_video_gop_iterate): New function.
21047 (grub_video_efi_gop): New member iterate.
21048 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
21049 (grub_vbe_set_video_mode): Remove setting useless fields.
21050 (vbe2videoinfo): New function.
21051 (grub_video_vbe_iterate): Likewise.
21052 (grub_video_vbe_setup): Use vbe2videoinfo.
21053 (grub_video_vbe_print_adapter_specific_info): New function.
21054 (grub_video_vbe_adapter): New fields iterate and
21055 print_adapter_specific_info.
21056 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
21057 All users updated.
21058 (grub_video_mode_info): New field mode_number.
21059 (grub_video_adapter): New fields iterate and
21060 print_adapter_specific_info.
21061
179503f5
TG
210622010-09-13 Tristan Gingold <gingold@free.fr>
210632010-09-13 Robert Millan <rmh.grub@aybabtu.com>
210642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21065
21066 * grub-core/commands/efi/lsefisystab.c: New file.
21067 * grub-core/commands/efi/lssal.c: Likewise.
21068 * grub-core/Makefile.core.def (lsacpi): New module.
21069 (lsefisystab): Likewise.
21070 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
21071 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
21072 (grub_efi_sal_system_table): New struct.
21073 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
21074 (grub_efi_sal_system_table_memory_descriptor): Likewise.
21075 (grub_efi_sal_system_table_platform_features): Likewise.
21076 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
21077 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
21078 (grub_efi_sal_system_table_ap_wakeup): Likewise.
21079 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
21080
cf9827de
VS
210812010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21082
21083 Support explicit user claim that a device is BIOS-visible.
21084
21085 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
21086 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
21087 * grub-core/kern/emu/hostdisk.c
21088 (convert_system_partition_to_system_disk): Support mdX.
21089 (find_system_device): New parameter add. All users updated.
21090 (grub_util_biosdisk_is_present): New function.
21091 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
21092 proto.
21093
53f0eb1f
VS
210942010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
21095
21096 Search hints support.
21097
21098 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
21099 All users updated.
21100
b23ffd70
YB
211012010-09-13 Yves Blusseau <blusseau@zetam.org>
21102
21103 Bash completion script for util commands
21104
21105 * Makefile.am: Add util/bash-completion.d directory
21106 * configure.ac: Likewise.
21107 * util/bash-completion.d/Makefile.am: New file.
21108 * util/bash-completion.d/grub-completion.bash.in: Likewise.
21109
d547dc28
VS
211102010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21111
21112 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
21113 (print_backlog): set backlog_ucs4 and backlog_glyphs.
21114 Reported by: Yves Blusseau.
21115
2fc8ccb9
VS
211162010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21117
21118 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
21119 partition size and offset.
21120
d8a84076
VS
211212010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21122
21123 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
21124
84fb3b3d
VS
211252010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21126
21127 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
21128
768ec2e2
VS
211292010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21130
21131 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
21132 (grub_xvasprintf): Likewise.
21133
4870900f
VS
211342010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21135
21136 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
21137
faca6bec
VS
211382010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21139
21140 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
21141 args ending with NULL.
21142
211432010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
21144
21145 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
21146 pointer.
21147
3c70f225
SJ
211482010-09-11 Szymon Janc <szymon@janc.net.pl>
21149
21150 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
21151
4df7996d
VS
211522010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21153
21154 Shutdown using ACPI.
21155
21156 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
21157 * grub-core/commands/acpihalt.c: New file.
21158 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
21159 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
21160 (grub_acpi_halt): New proto.
21161 (GRUB_ACPI_SLP_EN): New const.
21162 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
21163 (GRUB_ACPI_OPCODE_*): New enum.
21164 (GRUB_ACPI_EXTOPCODE_*): Likewise.
21165
126b4c32
TG
211662010-09-11 Tristan Gingold <gingold@free.fr>
211672010-09-11 Robert Millan <rmh.grub@aybabtu.com>
211682010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21169
21170 * commands/lsacpi.c: New file.
21171 * grub-core/Makefile.core.def (lsacpi): New module.
21172 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
21173 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
21174 (grub_acpi_madt_entry_header): New struct.
21175 (grub_acpi_madt): Likewise.
21176 (grub_acpi_madt_entry_interrupt_override): Likewise.
21177 (grub_acpi_madt_entry_sapic): Likewise.
21178 (grub_acpi_madt_entry_lsapic): Likewise.
21179 (grub_acpi_madt_entry_platform_int_source): Likewise.
21180 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
21181 (PRIuGRUB_UINT32_T): Likewise.
21182 (PRIxGRUB_UINT64_T): Likewise.
21183
1aa4fe88
VS
211842010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21185
21186 Implement loading palette on ieee1275_fb.
21187
21188 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
21189 (have_setcolors): Likewise.
21190 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
21191 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
21192 (grub_video_ieee1275_set_palette): Implement.
21193
25761e13
VS
211942010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
211952010-09-11 Colin Watson <cjwatson@ubuntu.com>
21196
21197 * util/grub-install.in (grub_partition): New variable.
21198 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
21199 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
21200 Fixes a bug reported by Yves Blusseau.
21201
050abaea
VS
212022010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21203
21204 Fix emu on mipsel.
21205
21206 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
21207 =grub_cpu_flush_cache on all mips and not only yeeloong.
21208 * configure.ac (COND_mips): New conditional.
21209 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
21210 platforms.
21211 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
21212 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
21213 [GRUB_LINKER_HAVE_INIT]: New function.
21214 (grub_emu_post_init): Likewise.
21215 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
21216 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
21217 * include/grub/cache.h (_mips): Include mips/cache.h.
21218 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
21219 LVM and RAID prototypes.
21220 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
21221 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
21222 function.
21223
5ed7d816
CW
212242010-09-10 Colin Watson <cjwatson@ubuntu.com>
21225
21226 * util/grub-install.in: Don't try to verify core.img until after
21227 running grub-mkimage to create it.
21228
90367e04
RM
212292010-09-10 Robert Millan <rmh@gnu.org>
21230
21231 * util/grub.d/10_hurd.in: Add misc readability checks.
21232 * util/grub.d/10_kfreebsd.in: Likewise.
21233 * util/grub.d/10_linux.in: Likewise.
21234
c452fa66
CW
212352010-09-10 Colin Watson <cjwatson@ubuntu.com>
21236
21237 * util/grub-install.in: ${imgext} won't be defined here until the
21238 install branch is merged. For the meantime, only verify core.img on
21239 i386-pc and sparc64-ieee1275 platforms.
21240
c38fe9f4
RM
212412010-09-10 Robert Millan <rmh@gnu.org>
21242
21243 Solaris support in grub_find_zpool_from_dir(). Thanks
21244 Seth Goldberg for referring to getextmntent() facility.
21245
21246 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
21247 `sys/mkdev.h'.
21248 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
21249 `<sys/mnttab.h>'.
21250 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
21251 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
21252 method for finding zpool name.
21253
905f7773
CW
212542010-09-10 Colin Watson <cjwatson@ubuntu.com>
21255
21256 grub-fstest needs the host and hostfs modules while other utilities
21257 actively require those modules to be absent, so grub-fstest needs
21258 its own initialisation and finalisation code.
21259
21260 * Makefile.am (grub_fstest.pp): New target.
21261 (grub_fstest_init.lst): Likewise.
21262 (grub_fstest_init.c): Likewise.
21263 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
21264
fb90b546
RM
212652010-09-10 Robert Millan <rmh@gnu.org>
21266
21267 * configure.ac: Check for `struct statfs.f_fstypename' and
21268 `struct statfs.f_mntfromname'.
21269
21270 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
21271 kFreeBSD-specific code.
21272
66d4bea5
RM
212732010-09-10 Robert Millan <rmh@gnu.org>
21274
21275 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
21276 on ZFS. Now non-main filesystems are supported as / too.
21277
b6a690ee
CW
212782010-09-09 Colin Watson <cjwatson@ubuntu.com>
21279
21280 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
21281 and grub-core/disk/host.c to ...
21282 (grub-fstest): ... here. Having the host disk implementation
21283 present confuses grub-probe and other utility programs.
21284
21285 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
21286 when writing to a file, not when writing to stdout.
21287
8901b00c 212882010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
21289
21290 * tests/partmap_test.in: New test for partitions.
21291 * Makefile.util.def: Rules for new test.
21292
7bf45fdd
RM
212932010-09-09 Robert Millan <rmh@gnu.org>
21294
21295 * util/grub-probe.c (probe): Fix a pair of unhandled error
21296 conditions.
21297
4dfbc574
RM
212982010-09-09 Robert Millan <rmh@gnu.org>
21299
21300 Basic Btrfs support (detection and UUID).
21301
21302 * grub-core/fs/btrfs.c: New file.
21303 * Makefile.util.def (library): Register btrfs.c.
21304 * grub-core/Makefile.core.def: Likewise.
21305
6b8e78ae
RM
213062010-09-08 Robert Millan <rmh@gnu.org>
21307
21308 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
21309 with (optional) parameters to specify device and relative path.
21310 * util/grub-install.in: Use is_path_readable_by_grub() to
21311 verify readability of a few critical files.
21312 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
21313 verify readability of grub.cfg.new.
21314
27f21a8b
VS
213152010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21316
21317 Split minix.mod into minix.mod and minix2.mod.
21318
21319 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
21320 * grub-core/Makefile.core.def (minix2): New module.
21321 * grub-core/fs/minix.c: Use definitions instead of runtime version
21322 checking.
21323 * grub-core/fs/minix2.c: New file.
21324
c0e53ea5
YB
213252010-09-08 Yves Blusseau <blusseau@zetam.org>
21326
21327 Add new --boot-directory option to replace --root-directory
21328
21329 * util/grub-install.in: Add new --boot-directory option
21330 * util/grub-reboot.in: Likewise.
21331 * util/grub-set-default.in: Likewise.
21332
b9fe6ea2
YB
213332010-09-08 Yves Blusseau <blusseau@zetam.org>
21334
21335 * util/grub-mkconfig.in: Use new variable.
21336
d87aedff
YB
213372010-09-08 Yves Blusseau <blusseau@zetam.org>
21338
21339 * configure.ac: Define some useful variables.
21340
e55e8495
VS
213412010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21342
21343 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21344 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
21345 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
21346 Use terminfo and don't use cursor-on/cursor-off unless it's known
21347 to work.
21348 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
21349 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
21350
6fa6d675
CW
213512010-09-08 Colin Watson <cjwatson@ubuntu.com>
21352
21353 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
21354 starts with "(,", fill the drive containing the loaded image in
21355 between those two characters, but expect that a full partition
21356 specification including partition map names will follow.
21357
92f2aef0
RM
213582010-09-08 Robert Millan <rmh@gnu.org>
21359
21360 * configure.ac: Remove `--enable-grub-fstest' option.
21361 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
21362
21363 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
21364 `grub-fstest' instead of `grub-probe' for readability verification.
21365 * util/grub-probe.c (probe): Remove readability verification kludge.
21366
99fd620d
RM
213672010-09-08 Robert Millan <rmh@gnu.org>
21368
21369 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
21370 initializing `GRUB_FS'.
21371
058e30ac 213722010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
21373
21374 Not command (!) support to GRUB script.
21375
21376 * tests/grub_script_not.in: New test.
21377 * Makefile.util.def: Rules for new test.
21378
21379 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21380 ! command as a special case.
21381 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
21382
b61d05ed 213832010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21384
058e30ac 21385 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
21386 grub_free.
b61d05ed 21387
4d69c786 213882010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21389
21390 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
21391
aa3119c4 213922010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21393
21394 * docs/grub.texi (Shell-like scripting): Documentation for break,
21395 continue, shift and return commands.
21396
db0f7e3d
VS
213972010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
21398
21399 Rename CD-ROM to cd on BIOS.
21400
21401 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
21402 "cd".
21403 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
21404
88b87c93
VS
214052010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21406
21407 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
21408 * util/grub-probe.c (main): Likewise.
21409 * util/i386/pc/grub-setup.c (main): Likewise.
21410 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21411 Reported and debugged by: alexxy
21412
294f324d
VS
214132010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21414
21415 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
21416 diagnostic info.
21417
d7ee3441
JS
214182010-09-05 Jo Shields <directhex@apebox.org>
21419
21420 * util/grub.d/30_os-prober.in: Add missing classes.
21421
d7e06c1f
VS
214222010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21423
21424 * docs/grub.texi (Theme file format): Document new position format.
21425
fc157e53
VS
214262010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21427
21428 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
21429 a table. Use @code instead of @verbatim.
21430
506e9a1c
CB
214312010-09-05 Colin D Bennett <colin@gibibit.com>
21432
21433 Gfxmenu documentation.
21434
21435 * docs/grub.texi (Theme file format): New chapter.
21436
f0aff67c
SJ
214372010-09-05 Szymon Janc <szymon@janc.net.pl>
21438
21439 * grub-core/Makefile.core.def (xzio): New module.
21440 * grub-core/io/xzio.c: New file.
21441 * grub-core/lib/xzembed/xz.h: New file (from xembed).
21442 * grub-core/lib/xzembed/xz_config.h: Likewise.
21443 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
21444 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
21445 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
21446 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
21447 * grub-core/lib/xzembed/xz_private.h: Likewise.
21448 * grub-core/lib/xzembed/xz_stream.h: Likewise.
21449 * include/grub/file.h (grub_file_filter_id): New compression filter
21450 GRUB_FILE_FILTER_XZIO.
21451
82a85062
VS
214522010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21453
21454 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
21455 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
21456 size.
21457
3579415d
VS
214582010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21459
21460 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
21461 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
21462
5124ae6d
VS
214632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21464
21465 Uncompressed checksum support.
21466
21467 * grub-core/commands/hashsum.c (options): Add option --uncompress.
21468 (check_list): New parameter uncompress.
21469 (grub_cmd_hashsum): Handle --uncompress.
21470
9aadb3d1
VS
214712010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21472
21473 Reintroduce testload.
21474
21475 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
21476 from here ...
21477 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
21478 (GRUB_MOD_INIT): New function.
21479 (GRUB_MOD_FINI): Likewise.
21480 * grub-core/Makefile.core.def (testload): New module.
21481
a17792c3
SJ
214822010-09-05 Szymon Janc <szymon@janc.net.pl>
21483
21484 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
21485 (uint8_t): New type.
21486 (uint16_t): Likewise.
21487 (uint32_t): Likewise.
21488 (uint64_t): Likewise.
21489
b81e40a3
SJ
214902010-09-05 Szymon Janc <szymon@janc.net.pl>
21491
21492 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
21493
fc2ef117
VS
214942010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21495
21496 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
21497 Made static.
21498 (grub_gzfile_open): Removed. All users updated.
21499 (GRUB_MOD_INIT): New function.
21500 (GRUB_MOD_FINI): Likewise.
21501 * grub-core/kern/file.c (grub_file_filters_all): New variable.
21502 (grub_file_filters_enabled): Likewise.
21503 (grub_file_open): Handle filters.
21504 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
21505 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
21506 * include/grub/file.h (grub_file_filter_id_t): New type.
21507 (grub_file_filter_t): Likewise.
21508 (grub_file_filters_all): New extern variable.
21509 (grub_file_filters_enabled): Likewise.
21510 (grub_file_filter_register): New inline function.
21511 (grub_file_filter_unregister): Likewise.
21512 (grub_file_filter_disable): Likewise.
21513 (grub_file_filter_disable_compression): Likewise.
21514 * include/grub/gzio.h: Removed.
21515
35ee15e0
BC
215162010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21517
21518 Filename expansion support for wildcards in GRUB script.
21519
21520 * tests/grub_script_expansion.in: New test.
21521 * Makefile.util.def: Rule for new test.
21522
21523 * grub-core/commands/wildcard.c: New file, implements filename
21524 expansion support for GRUB script.
21525 * grub-core/Makefile.core.def: Rule update for regexp.mod.
21526 * grub-core/script/argv.c: Cosmetic changes.
21527 * grub-core/script/execute.c (grub_script_arglist_to_argv):
21528 Refactored to perform wildcard expansion on arguments.
21529 * include/grub/script_sh.h (grub_script_wildcard_translator): New
21530 struct.
21531
21532 * tests/util/grub-shell.in: Fix quoting for read input.
21533
5f0c4aca
BC
215342010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21535
21536 Support for updating environment variables with matched substrings
21537 of regexp.
21538
21539 * tests/grub_cmd_regexp.in: New test.
21540 * Makefile.util.def: Rule for new test.
21541
21542 * grub-core/commands/regexp.c: New option -s to update environment
21543 variables with regexp matches.
21544
3759a35f
SJ
215452010-09-04 Szymon Janc <szymon@janc.net.pl>
21546
21547 * include/grub/file.h (grub_file): New member not_easly_seekable.
21548 (grub_file_seekable): New inline function.
21549 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
21550 easily seekable.
21551 (grub_gzio_open): Set not_easly_seekable.
21552 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
21553 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
21554
ed8c6dec
BC
215552010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21556
21557 Support for options to appear multiple times on cmdline.
21558
21559 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
21560 * grub-core/commands/extcmd.c: Support for repeatable option.
21561 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
21562 repeatable option support.
21563
21564 Refactor menuentry into a regular command.
21565
21566 * grub-core/commands/menuentry.c: New file, menuentry command
21567 implementation.
21568 * grub-core/Makefile.core.def: Rule update for normal.mod.
21569 * grub-core/normal/main.c: Moved menuentry creation to
21570 grub-core/commands/menuentry.c.
21571 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21572 (grub_menu_execute_entry_real): Removed.
21573 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21574 function.
21575 (grub_script_execute_menuentry): Removed.
21576 * grub-core/script/parser.y (menuentry): Removed.
21577 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21578 * grub-core/script/yylex.l (menuentry): Removed.
21579 * include/grub/menu.h (grub_menu_init): New prototype.
21580 (grub_menu_fini): New prototype.
21581 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21582 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21583 (grub_script_execute_sourcecode): New prototype.
21584
dacd0cf0
BC
215852010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21586
21587 "return" command for GRUB script functions.
21588
21589 * tests/grub_script_return.in: New test.
21590 * Makefile.util.def: Rules for new test.
21591
21592 * grub-core/script/execute.c (grub_script_return): New function.
21593 * grub-core/script/main.c: Register/unregister return commaond.
21594 * include/grub/script_sh.h (grub_script_return): New prototype.
21595
52e72f9d
BC
215962010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21597
21598 "setparams" command to update positional parameters.
21599
21600 * tests/grub_script_setparams.in: New test.
21601 * Makefile.util.def: Rules for new test.
21602
21603 * grub-core/script/argv.c (grub_script_argv_make): New function.
21604 * grub-core/script/execute.c (replace_scope): New function.
21605 (grub_script_setparams): New function.
21606 * grub-core/script/lexer.c: Remove unused variables.
21607 * grub-core/script/main.c: Register/unregister setparams command.
21608 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21609 (grub_script_setparams): New prototype.
21610
25b60c91
BC
216112010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21612
21613 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21614 grub_free order.
21615
37e7bf68
BC
216162010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21617
21618 Support for passing block of commands as an argument to extcmds.
21619
21620 * Makefile.util.def: Rules for new test.
21621 * tests/grub_script_blockarg.in: New test.
21622 * grub-core/tests/test_blockarg.c: New file, block argument
21623 command used in the test.
21624
21625 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21626 (grub_register_extcmd_prio): New function prototype.
21627 (grub_extcmd_dispatcher): New function prototype.
21628 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21629 type.
21630 * include/grub/script_sh.h (struct grub_script): New members
21631 `children', `next_siblings' and `refcnt' for block arguments and
21632 reference counting.
21633 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21634 (grub_script_arg): New member `script' for block argument.
21635 (grub_script_argv): New member `script' for block argument.
21636 (grub_parser_param): New member `scripts' for block argument.
21637 (grub_script_mem_free): New extern function prototype.
21638 (grub_script_ref): New function prototype.
21639 (grub_script_unref): New function prototype.
21640
21641 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21642 extcmd form to support block arguments.
21643 * grub-core/script/argv.c: Block arguments support.
21644 * grub-core/script/execute.c: Likewise.
21645 * grub-core/script/lexer.c: Likewise.
21646 * grub-core/script/main.c: Likewise.
21647 * grub-core/script/script.c: Likewise.
21648 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21649 non-terminals.
21650
21651 * grub-core/commands/acpi.c: Update extcmd implementations with
21652 grub_extcmd_context_t.
21653 * grub-core/commands/cat.c: Likewise.
21654 * grub-core/commands/echo.c: Likewise.
21655 * grub-core/commands/extcmd.c: Likewise.
21656 * grub-core/commands/hashsum.c: Likewise.
21657 * grub-core/commands/hdparm.c: Likewise.
21658 * grub-core/commands/help.c: Likewise.
21659 * grub-core/commands/hexdump.c: Likewise.
21660 * grub-core/commands/i386/cpuid.c: Likewise.
21661 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21662 * grub-core/commands/i386/pc/halt.c: Likewise.
21663 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21664 * grub-core/commands/iorw.c: Likewise.
21665 * grub-core/commands/keystatus.c: Likewise.
21666 * grub-core/commands/loadenv.c: Likewise.
21667 * grub-core/commands/ls.c: Likewise.
21668 * grub-core/commands/lspci.c: Likewise.
21669 * grub-core/commands/memrw.c: Likewise.
21670 * grub-core/commands/probe.c: Likewise.
21671 * grub-core/commands/search_wrap.c: Likewise.
21672 * grub-core/commands/setpci.c: Likewise.
21673 * grub-core/commands/sleep.c: Likewise.
21674 * grub-core/disk/loopback.c: Likewise.
21675 * grub-core/hello/hello.c: Likewise.
21676 * grub-core/loader/i386/bsd.c: Likewise.
21677 * grub-core/loader/xnu.c: Likewise.
21678 * grub-core/term/gfxterm.c: Likewise.
21679 * grub-core/term/serial.c: Likewise.
21680 * grub-core/tests/lib/functional_test.c: Likewise.
21681
888d1500
BC
216822010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21683
21684 Multi-line quoted strings support.
21685
21686 * grub-core/script/lexer.c (append_newline): Removed.
21687 (grub_script_lexer_yywrap): Refactored.
21688 (grub_script_lexer_init): Refactored.
21689 * grub-core/script/yylex.l (yywrap): New function.
21690 (grub_lexer_resplit): New function.
21691 (grub_lexer_unput): New function.
21692 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21693 and resplit.
21694 * tests/grub_script_echo1.in: Added few more testcases.
21695
dda060dd
VS
216962010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21697
21698 * grub-core/kern/misc.c: Don't add abort alias in utils.
21699 Reported by: echoline.
21700
6556eba9
BC
217012010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21702
21703 Add missing files into "make dist" tarball for other platforms.
21704
21705 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21706 * conf/Makefile.common (dist_noinst_DATA): New variable.
21707 * conf/Makefile.extra-dist: Added missing make dist files.
21708 * grub-core/Makefile.core.def: Likewise.
21709
c8e7bf5f
VS
217102010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21711
21712 Compress grub_prefix.
21713
21714 * grub-core/boot/i386/pc/lnxboot.S: Use
21715 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21716 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21717 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21718 GRUB_MACHINE_PREFIX_END. All users updated.
21719 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21720 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21721 + 0x40.
21722 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21723 * util/grub-mkimage.c (image_target_desc): Change data_end to
21724 prefix_end. All users updated.
21725
a7c00cdb
VS
217262010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21727
21728 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21729 value.
21730 (grub_openbsd_boot): Likewise.
21731 (grub_netbsd_boot): Likewise.
21732 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21733 (grub_xnu_boot): Likewise.
21734
9f915872
VS
217352010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21736
21737 * configure.ac: Clean LIBS variable after tests.
21738
efa1bee7
CW
217392010-09-02 Colin Watson <cjwatson@ubuntu.com>
21740
21741 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21742
61d720e5
VS
217432010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21744
21745 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21746 echo if libdevmapper will be used.
21747
ef8e0ec8
IT
217482010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21749
21750 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21751 constant for the same file.
21752
03e261d8
VS
217532010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21754
21755 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21756
c2a4eba6
CW
217572010-09-02 Colin Watson <cjwatson@ubuntu.com>
21758
21759 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21760 grub-core/*.pp.
21761
9056cbf3
CW
217622010-09-02 Colin Watson <cjwatson@ubuntu.com>
21763
21764 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21765 required by the boot protocol.
21766
21767 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21768 ebp and edi members.
21769 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21770 state.ebp and state.edi.
21771 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21772 %ebp and %edi according to grub_relocator32_ebp and
21773 grub_relocator32_edi respectively.
21774 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21775 and state.edi.
21776
529cc99a
VS
217772010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21778
21779 Add i386-pc-pxe image target.
21780
21781 * util/grub-mkimage.c (image_target_desc): New enum value
21782 IMAGE_I386_PC_PXE.
21783 (image_targets): New target i386-pc-pxe.
21784 (generate_image): Handle i386-pc-pxe image.
21785
9a093920
VS
217862010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21787
21788 Fix grub_pxe_scan.
21789
21790 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
21791 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
21792 All users updated.
21793 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
21794 (grub_pxe_pxenv): Correct type.
21795
f9cefc4e
CW
217962010-09-01 Colin Watson <cjwatson@ubuntu.com>
21797
21798 * NEWS: Document most of the important changes since 1.98.
21799
4066f57f
CW
218002010-09-01 Colin Watson <cjwatson@ubuntu.com>
21801
21802 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
21803 generated manual page) a little.
21804
da2891f9
CW
218052010-09-01 Colin Watson <cjwatson@ubuntu.com>
21806
21807 * docs/grub.texi: Add myself as an author.
21808
ad717fae
VS
218092010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21810
21811 * Makefile.util.def (libgrub.a): Add missing sunpc.
21812 Reported by: Seth Goldberg.
21813
eefe8abd
VS
218142010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21815
21816 Interrupt wrapping and code simplifications.
21817
9494ef9a
VS
21818 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
21819 x86_noieee1275 which are functionaly equivalent in this case.
21820 (grub-install): Make source on each platform explicit. Enable on
21821 all noemu.
21822 * gentpl.py (x86_efi_pc): Removed group.
21823 (x86_noefi): Likewise.
21824 (i386_noefi): Likewise.
21825 (x86_noieee1275): Likewise.
21826 (i386_noieee1275): Likewise.
21827 (i386_noefi_noieee1275): Likewise.
21828 (i386_pc_qemu_coreboot): Likewise.
21829 (i386_coreboot_multiboot): Likewise.
21830 (i386_pc_coreboot_multiboot_qemu): Likewise.
21831 (x86_noefi_mips): Likewise.
21832 (noieee1275): Likewise.
21833 (ieee1275_mips): Likewise.
21834 (noemu_noieee1275): Likewise.
21835 (cmos): New group.
21836 (usb): Likewise.
21837 (videoinkernel): Likewise.
21838 (videomodules): Likewise.
eefe8abd 21839 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
21840 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
21841 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
21842 include/grub/loader.h, include/grub/msdos_partition.h,
21843 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
21844 include/grub/machine/console.h, include/grub/machine/vga.h,
21845 include/grub/machine/vbe.h, include/grub/machine/init.h,
21846 include/grub/machine/kernel.h, include/grub/cpu/time.h,
21847 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 21848 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
21849 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21850 * grub-core/Makefile.core.def (kernel): Explicit the source for
21851 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21852 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21853 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21854 Use videoinkernel tag.
21855 (usb): Enable on all usb.
21856 (usbserial_common): Likewise.
21857 (usbserial_pl2303): Likewise.
21858 (usbserial_ftdi): Likewise.
21859 (uhci): Enable on all x86.
21860 (ohci): Enable on all pci.
21861 (cmostest): Enable on all CMOS.
21862 (acpi): Include commands/acpi.c on all platforms.
21863 (halt): Add relevant lib/*/halt.c.
21864 (hdparm): Enable on all pci.
21865 (lspci): Likewise.
21866 (usbtest): Enable on all usb.
21867 (ata): Enable on all pci.
21868 (ata_pthru): Likewise.
21869 (usbms): Enable on all usb.
21870 (usb_keyboard): Likewise.
21871 (font): Use tag videomodules.
21872 (bufio): Likewise.
21873 (datetime): Use tag cmos. Enable on all noemu.
21874 (mmap): Use tags common and x86.
21875 (gfxterm): Use tag videomodules.
21876 (bitmap): Likewise.
21877 (bitmap_scale): Likewise.
21878 (video_fb): Likewise.
21879 (video): Likewise.
21880 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21881 adjust padding accordingly. All users updated.
21882 (grub_ohci_transaction): Fix bad format specification.
21883 (GRUB_MOD_INIT): Add asserts for struct size.
21884 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21885 (grub_alloc_td): Likewise.
21886 (grub_free_queue): Likewise.
21887 (grub_uhci_transfer): Likewise.
21888 (grub_uhci_transaction): Fix bad format specification.
21889 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21890 (grub_usb_bulk_readwrite): Likewise.
21891 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21892 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21893 Made static.
21894 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21895 Made static.
21896 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21897 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21898 Transformed into C.
21899 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21900 Moved from here ...
21901 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21902 ... here. Transformed into C. Made static.
21903 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21904 Moved from here ...
21905 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21906 ... here. Transformed into C. Made static.
21907 * grub-core/kern/i386/pc/startup.S
21908 (grub_biosdisk_check_int13_extensions): Moved from here ...
21909 * grub-core/disk/i386/pc/biosdisk.c
21910 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21911 Made static.
21912 * grub-core/kern/i386/pc/startup.S
21913 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21914 * grub-core/disk/i386/pc/biosdisk.c
21915 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21916 Transformed into C. Made static.
21917 * grub-core/kern/i386/pc/startup.S
21918 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21919 * grub-core/disk/i386/pc/biosdisk.c
21920 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21921 Transformed into C. Made static.
21922 * grub-core/kern/i386/pc/startup.S
21923 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21924 * grub-core/disk/i386/pc/biosdisk.c
21925 (grub_biosdisk_get_diskinfo_standard): ... here.
21926 Transformed into C. Made static.
21927 * grub-core/kern/i386/pc/startup.S
21928 (grub_biosdisk_get_num_floppies): Moved from here ...
21929 * grub-core/disk/i386/pc/biosdisk.c
21930 (grub_biosdisk_get_num_floppies): ... here.
21931 Transformed into C. Made static.
21932 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21933 New function.
21934 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21935 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21936 Transformed into C. Made static.
21937 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21938 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21939 Transformed into C. Made static.
21940 * grub-core/kern/i386/ieee1275/init.c: Removed.
21941 * grub-core/kern/i386/misc.S: Likewise.
21942 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21943 Splitted from here ...
21944 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21945 Transformed into C. Made static. All users updated.
21946 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21947 Transformed into C. Made static. All users updated.
21948 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21949 Moved from here...
21950 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21951 Transformed into C. Made static. All users updated.
21952 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21953 Moved from here...
21954 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21955 Transformed into C. Made static. All users updated.
21956 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21957 Removed (replaced by C version).
21958 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21959 Moved from here...
21960 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21961 Transformed into C. Made static.
21962 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21963 Moved from here...
21964 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21965 ... here. Transformed into C.
21966 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21967 Moved from here...
21968 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21969 ... here. Transformed into C.
21970 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21971 Moved from here...
21972 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21973 ... here. Transformed into C. Made static.
21974 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21975 Moved from here...
21976 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21977 ... here. Transformed into C.
21ed554b
VS
21978 * grub-core/kern/i386/pc/startup.S
21979 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21980 * grub-core/video/i386/pc/vbe.c
21981 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
21982 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21983 Moved from here...
21984 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21985 ... here. Transformed into C.
21986 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21987 Moved from here...
21988 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21989 ... here. Transformed into C.
21990 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21991 Moved from here...
21992 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21993 ... here. Transformed into C.
21994 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21995 Moved from here...
21996 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21997 ... here. Transformed into C.
21998 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21999 Moved from here...
22000 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
22001 ... here. Transformed into C. Made static.
22002 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
22003 Moved from here...
22004 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
22005 ... here. Transformed into C. Made static.
22006 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
22007 Moved from here...
22008 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
22009 ... here. Transformed into C. Made static.
22010 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
22011 pxe_rm_entry as third argument.
22012 (grub_bios_interrupt): New function.
22013 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
22014 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
22015 of calling grub_stop.
22016 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
22017 * grub-core/lib/efi/halt.c (grub_halt): ...here.
22018 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
22019 * grub-core/lib/emu/halt.c (grub_halt): ... here.
22020 * grub-core/lib/i386/halt.c: Moved from here ...
22021 * grub-core/lib/i386/halt.c: ... here.
22022 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
22023 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
22024 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
22025 grub_stop_floppy.
22026 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
22027 * include/grub/i386/coreboot/init.h: Removed.
22028 * include/grub/i386/multiboot/init.h: Likewise.
22029 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
22030 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
22031 * include/grub/i386/pc/int.h: New file.
22032 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
22033 (grub_pxe_scan): Removed.
22034 (grub_pxe_call): Update prototype.
22035 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
22036 prototypes.
22037 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
22038 * include/grub/i386/qemu/init.h: Removed.
22039 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
22040 noreturn.
22041 (grub_halt): Likewise.
22042 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
22043 (grub_reboot): Likewise.
22044 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
22045 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
22046 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
22047
215dd471
RM
220482010-08-30 Robert Millan <rmh@gnu.org>
22049
22050 * NEWS: Document addition of ZFS support in `grub-install' and
22051 `grub-mkconfig'.
22052
ebd65b82
BC
220532010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
22054
22055 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
22056 dprintf output.
22057
11721d19
VS
220582010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22059
22060 Remove leftover embedding of font objects.
22061
22062 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
22063 * util/grub-install.in (font): Removed.
22064 * util/grub-mkimage.c (generate_image): Remove font support. All users
22065 updated.
22066
37837d4e
VS
220672010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22068
22069 Remove leftover embedding of font objects.
22070
22071 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
22072 * util/grub-install.in (font): Removed.
22073 * util/grub-mkimage.c (generate_image): Remove font support. All users
22074 updated.
22075
b4c1aae0
VS
220762010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22077
22078 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 22079 Reported by: Ian Turner
b4c1aae0 22080
8920a08d
VS
220812010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22082
22083 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
22084 timeout to avoid indefinite boot stalling.
22085
f21db033
VS
220862010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22087
22088 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
22089 (grub_env_write_color_highlight): Likewise.
22090
9a9de209
VS
220912010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22092
22093 * grub-core/normal/term.c (print_more): Return to normal and not
22094 to standard state after printing "---MORE---".
22095
3dca01d7
VS
220962010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
22097
22098 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
22099 Mask out the bit 0x80 since it has other meaning that specifiing color.
22100
0b986c40
VS
221012010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22102
22103 New relocator. Allows for more kernel support and more straightforward
22104 loader writing.
22105
22106 * Makefile.am (BOOTTARGET): New variable.
22107 (QEMU32): Likewise.
22108 (linux.init.x86_64): New target.
22109 (linux.init.i386): Likewise.
22110 (multiboot.elf): Likewise.
22111 (kfreebsd.elf): Likewise.
22112 (kfreebsd.aout): Likewise.
22113 (pc-chainloader.elf): Likewise.
22114 (pc-chainloader.bin): Likewise.
22115 (ntldr.elf): Likewise.
22116 (ntldr.bin): Likewise.
22117 (multiboot2.elf): Likewise.
22118 (kfreebsd.init.x86_64): Likewise.
22119 (kfreebsd.init.i386): Likewise.
22120 (knetbsd.init.i386): Likewise.
22121 (kopenbsd.init.i386): Likewise.
22122 (knetbsd.init.x86_64): Likewise.
22123 (kopenbsd.init.x86_64): Likewise.
22124 (linux-initramfs.i386): Likewise.
22125 (linux-initramfs.x86_64): Likewise.
22126 (kfreebsd-mfsroot.i386.img): Likewise.
22127 (knetbsd.image.i386): Likewise.
22128 (kopenbsd.image.i386): Likewise.
22129 (kopenbsd.image.x86_64): Likewise.
22130 (knetbsd.miniroot-image.i386.img): Likewise.
22131 (kfreebsd-mfsroot.x86_64.img): Likewise.
22132 (knetbsd.image.x86_64): Likewise.
22133 (knetbsd.miniroot-image.x86_64.img): Likewise.
22134 (kfreebsd-mfsroot.i386.gz): Likewise.
22135 (bootcheck-kfreebsd-i386): Likewise.
22136 (kfreebsd-mfsroot.x86_64.gz): Likewise.
22137 (bootcheck-kfreebsd-x86_64): Likewise.
22138 (knetbsd.miniroot-image.i386.gz): Likewise.
22139 (bootcheck-knetbsd-i386): Likewise.
22140 (bootcheck-kopenbsd-i386): Likewise.
22141 (bootcheck-kopenbsd-x86_64): Likewise.
22142 (knetbsd.miniroot-image.x86_64.gz): Likewise.
22143 (bootcheck-knetbsd-x86_64): Likewise.
22144 (bootcheck-linux-i386): Likewise.
22145 (bootcheck-linux-x86_64): Likewise.
22146 (bootcheck-linux16-i386): Likewise.
22147 (bootcheck-linux16-x86_64): Likewise.
22148 (bootcheck-multiboot): Likewise.
22149 (bootcheck-multiboot2): Likewise.
22150 (bootcheck-kfreebsd-aout): Likewise.
22151 (bootcheck-pc-chainloader): Likewise.
22152 (bootcheck-ntldr): Likewise.
22153 (CLEANFILES): Add new targets.
22154 (BOOTCHECKS): New variable.
22155 (.PHONY): Add bootchecks.
22156 (SUCCESSFUL_BOOT_STRING): New variable.
22157 (BOOTCHECK_TIMEOUT): Likewise.
22158 (bootcheck): New target
22159 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
22160 * configure.ac: Correct efiemu excuse.
22161 * docs/grub.texi (Supported kernels): New chapter.
22162 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
22163 include/grub/mm_private.h. Simplify inclusion of
22164 include/grub/boot.h, include/grub/loader.h
22165 and include/grub/msdos_partition.h
22166 (KERNEL_HEADER_FILES) [i386_coreboot]:
22167 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
22168 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
22169 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
22170 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
22171 include/grub/machine/loader.h.
22172 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
22173 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
22174 extra_dist.
22175 (pci.mod): Enable on i386-multiboot.
22176 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
22177 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
22178 i386-qemu.
22179 (relocator.mod): Rewritten.
22180 (aout.mod): Enable on all x86.
22181 (bsd.mod): Likewise.
22182 (ntldr.mod): New module.
22183 (linux.mod): Use loader/i386/linux.c on all x86.
22184 (xnu.mod): Enable on all x86.
22185 (vga_text.mod): disable on EFI and QEMU.
22186 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
22187 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
22188 * grub-core/efiemu/loadcore.c: Likewise.
22189 * grub-core/efiemu/main.c: Likewise.
22190 (grub_efiemu_exit_boot_services): Removed.
22191 (grub_efiemu_finish_boot_services): Likewise.
22192 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
22193 function.
22194 * grub-core/efiemu/i386/nocfgtables.c: New file.
22195 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
22196 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
22197 (grub_efi_finish_boot_services): Moved from here ...
22198 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
22199 Fille finish memory map and related data.
22200 (finish_mmap_buf): New variable.
22201 (grub_efi_uintn_t finish_mmap_size): Likewise.
22202 (grub_efi_uintn_t finish_key): Likewise.
22203 (grub_efi_uintn_t finish_desc_size): Likewise.
22204 (grub_efi_uint32_t finish_desc_version): Likewise.
22205 (grub_efi_is_finished): Likewise.
22206 (grub_efi_get_memory_map): Use saved memory map if EFI is already
22207 finished.
22208 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
22209 (grub_elf64_phdr_iterate): Likewise.
22210 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
22211 (grub_os_area_size): Likewise.
22212 (grub_machine_init): Don't reserve os area.
22213 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
22214 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
22215 * grub-core/kern/i386/loader.S: Removed.
22216 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
22217 (grub_os_area_size): Likewise.
22218 (grub_machine_init): Don't reserve os area.
22219 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
22220 Don't call grub_dl_unload_all.
22221 Don't include loader.S.
22222 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
22223 Declare the memory after _end as available.
22224 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 22225 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 22226 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
22227 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
22228 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
22229 * include/grub/mm_private.h (grub_mm_header): ... here.
22230 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
22231 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
22232 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
22233 (grub_mm_region): ..here. Removed addr. Added pre_size.
22234 All users updated.
22235 * grub-core/kern/mm.c (base): Renamed to ...
22236 (grub_mm_base): ... this. Made global.
22237 (grub_real_malloc): Alloc from end of region.
22238 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
22239 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
22240 * grub-core/kern/powerpc/cache_flush.S: ... here.
22241 * grub-core/lib/efi/relocator.c: New file.
22242 * grub-core/lib/i386/relocator.c: Rewritten.
22243 * grub-core/lib/i386/relocator16.S: New file.
22244 * grub-core/lib/i386/relocator32.S: Likewise.
22245 * grub-core/lib/i386/relocator64.S: Likewise.
22246 * grub-core/lib/i386/relocator_asm.S: Rewritten.
22247 * grub-core/lib/i386/relocator_common.S: New file.
22248 * grub-core/lib/ieee1275/relocator.c: Likewise.
22249 * grub-core/lib/mips/relocator.c: Rewritten.
22250 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
22251 stylistic adjustments.
22252 * grub-core/lib/powerpc/relocator.c: New file.
22253 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
22254 * grub-core/lib/relocator.c: Rewritten.
22255 * grub-core/lib/x86_64/relocator_asm.S: New file.
22256 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
22257 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
22258 (bsd_tag): New struct.
22259 (tags): New variable.
22260 (tags_last): Likewise.
22261 (netbsd_module): New struct.
22262 (netbsd_mods): New variable.
22263 (netbsd_mods_last): Likewise.
22264 (openbsd_opts): New parameter "serial".
22265 (OPENBSD_SERIAL_ARG): New definition.
22266 (netbsd_opts): New parameter "serial".
22267 (NETBSD_SERIAL_ARG): New definition.
22268 (grub_freebsd_add_meta): Reorganised into ...
22269 (grub_bsd_add_meta): ...this. All users updated.
22270 (grub_freebsd_add_mmap): Reorganised into ...
22271 (generate_e820_mmap): ...this...
22272 (grub_bsd_add_mmap): ...and this. All users updated.
22273 (grub_freebsd_list_modules): Use tags.
22274 (grub_netbsd_add_meta_module): New function.
22275 (grub_netbsd_list_modules): Likewise.
22276 (grub_freebsd_boot): Use relocator and finish EFI.
22277 (grub_openbsd_boot): Likewise.
22278 (grub_netbsd_setup_video): New function.
22279 (grub_netbsd_add_modules): Likewise.
22280 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
22281 and finish EFI.
22282 (grub_bsd_unload): Unload tags.
22283 (grub_bsd_load_aout): Use relocator.
22284 (grub_bsd_elf32_size_hook): New function.
22285 (grub_bsd_elf32_hook): Use relocator.
22286 (grub_bsd_elf64_size_hook): New function.
22287 (grub_bsd_elf64_hook): Use relocator.
22288 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
22289 (grub_bsd_load): Zero-out openbsd_ramdisk.
22290 (grub_bsd_load): Use relocator.
22291 (grub_cmd_openbsd): Support serial.
22292 (grub_cmd_netbsd): Support modules.
22293 (grub_cmd_freebsd_module): Use relocator.
22294 (grub_netbsd_module_load): New function.
22295 (grub_cmd_netbsd_module): Likewise.
22296 (grub_cmd_openbsd_ramdisk): Likewise.
22297 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
22298 kopenbsd_ramdisk.
22299 (GRUB_MOD_FINI): Unregister new commands.
22300 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
22301 (grub_freebsd_load_elfmodule_obj): Use relocator.
22302 (grub_freebsd_load_elfmodule): Likewise.
22303 (grub_freebsd_load_elf_meta): Likewise.
22304 (grub_netbsd_load_elf_meta): New function.
22305 (grub_openbsd_find_ramdisk): Likewise.
22306 * grub-core/loader/i386/bsd_helper.S: Removed.
22307 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
22308 * grub-core/loader/i386/bsd_trampoline.S: Removed.
22309 * grub-core/loader/i386/efi/linux.c: Likewise.
22310 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
22311 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
22312 (DEFAULT_VIDEO_MODE): Likewise.
22313 (real_mode_target): New variable.
22314 (prot_mode_target): Likewise.
22315 (initrd_mem_target): Likewise.
22316 (relocator): Likewise.
22317 (efi_mmap_buf): Likewise.
22318 (efi_mmap_size): Likewise.
22319 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
22320 (free_pages): Use relocator.
22321 (allocate_pages): Account for efi_mmap and use relocator. Return error.
22322 (grub_linux_setup_video): Return error.
22323 (grub_linux_trampoline_start): Removed.
22324 (grub_linux_trampoline_end): Likewise.
22325 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
22326 andd video parameters depending on firmware.
22327 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
22328 [GRUB_MACHINE_EFI]: Pass EFI parameters.
22329 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
22330 (grub_cmd_initrd): Use relocator.
22331 * grub-core/loader/i386/linux_trampoline.S: Removed.
22332 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
22333 (elf_sec_entsize): Likewise.
22334 (elf_sec_shstrndx): Likewise.
22335 (elf_sections): Likewise.
22336 (grub_multiboot_load): Use relocator.
22337 (grub_multiboot_get_mbi_size): Account for sections.
22338 (grub_multiboot_make_mbi): Use relocator and support sections.
22339 (grub_multiboot_add_elfsyms): New function.
22340 (grub_multiboot_free_mbi): Free sections.
22341 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
22342 (grub_linux_real_target): Likewise.
22343 (grub_linux_real_chunk): Likewise.
22344 (grub_linux16_prot_size): Likewise.
22345 (grub_linux16_boot): Use relocator.
22346 (grub_linux_unload): Unload relocator.
22347 (grub_cmd_linux): Use relocator.
22348 (grub_cmd_initrd): Likewise.
22349 * grub-core/loader/i386/pc/ntldr.c: New file.
22350 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
22351 Don't try to guess CPU frequency.
22352 (grub_xnu_set_video): Stretch bitmap.
22353 (grub_xnu_boot): Use relocator.
22354 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
22355 (grub_linux_unload): Free relocator.
22356 (grub_linux_load32): Use relocator.
22357 (grub_linux_load64): Likewise.
22358 (grub_cmd_initrd): Likewise.
22359 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
22360 (grub_multiboot_unload): Unload relocator.
22361 (grub_cmd_multiboot): Use relocator.
22362 (grub_cmd_module): Likewise.
22363 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
22364 Use relocator and support sections.
22365 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
22366 (elf_sec_entsize): Likewise.
22367 (elf_sec_shstrndx): Likewise.
22368 (elf_sections): Likewise.
22369 (grub_multiboot_load): Use relocator.
22370 (grub_multiboot_get_mbi_size): Account for sections.
22371 (grub_multiboot_make_mbi): Use relocator and support sections.
22372 (grub_multiboot_add_elfsyms): New function.
22373 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
22374 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
22375 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
22376 Prototype changed. All users updated.
22377 (grub_xnu_align_heap): Simplified.
22378 (grub_xnu_writetree_toheap): Likewise.
22379 (grub_xnu_unload): Unload relocator.
22380 (grub_cmd_xnu_kernel): Use relocator.
22381 (grub_cmd_xnu_kernel64): Likewise.
22382 (grub_xnu_register_memory): Simplified.
22383 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
22384 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
22385 EFI is finished.
22386 (grub_console_checkkey): Likewise.
22387 (grub_console_getkey): Likewise.
22388 (grub_console_getwh): Likewise.
22389 (grub_console_getxy): Likewise.
22390 (grub_console_gotoxy): Likewise.
22391 (grub_console_cls): Likewise.
22392 (grub_console_setcolorstate): Likewise.
22393 (grub_console_setcursor): Likewise.
22394 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
22395 * grub-core/tests/boot/kbsd.init-i386.S: New file.
22396 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
22397 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
22398 * grub-core/tests/boot/kernel-8086.S: Likewise.
22399 * grub-core/tests/boot/kernel-i386.S: Likewise.
22400 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
22401 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
22402 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
22403 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
22404 * grub-core/tests/boot/knetbsd.cfg: Likewise.
22405 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
22406 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
22407 * grub-core/tests/boot/linux.cfg: Likewise.
22408 * grub-core/tests/boot/linux.init-i386.S: Likewise.
22409 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
22410 * grub-core/tests/boot/linux16.cfg: Likewise.
22411 * grub-core/tests/boot/multiboot.cfg: Likewise.
22412 * grub-core/tests/boot/multiboot2.cfg: Likewise.
22413 * grub-core/tests/boot/ntldr.cfg: Likewise.
22414 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
22415 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
22416 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
22417 New definition.
22418 * include/grub/dl.h (grub_dl_unload_all): Removed.
22419 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
22420 (grub_efi_finish_boot_services): Change prototype.
22421 (grub_efi_is_finished): New variable.
22422 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
22423 Changed prototype.
22424 (grub_efiemu_finish_boot_services): Removed.
22425 (grub_machine_efiemu_init_tables): New prototype.
22426 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
22427 (grub_elf64_phdr_iterate): Likewise.
22428 * include/grub/i386/bsd.h: Include relocator.h.
22429 (freebsd_tag_header): New struct.
22430 (grub_openbsd_bios_mmap): Removed.
22431 (grub_unix_real_boot): Removed.
22432 (grub_freebsd_load_elfmodule32): Changed prototype.
22433 (grub_freebsd_load_elfmodule_obj64): Likewise.
22434 (grub_freebsd_load_elf_meta32): Likewise.
22435 (grub_freebsd_load_elf_meta64): Likewise.
22436 (grub_freebsd_add_meta): Removed.
22437 (grub_netbsd_load_elf_meta32): New prototype.
22438 (grub_netbsd_load_elf_meta64): Likewise.
22439 (grub_bsd_add_meta): Likewise.
22440 (grub_openbsd_ramdisk_descriptor): New struct.
22441 (grub_openbsd_find_ramdisk32): New prototype.
22442 (grub_openbsd_find_ramdisk64): Likewise.
22443 * include/grub/i386/coreboot/loader.h: Removed.
22444 * include/grub/i386/efi/loader.h: Likewise.
22445 * include/grub/i386/ieee1275/loader.h: Likewise.
22446 * include/grub/i386/linux.h (linux_kernel_header): Change void *
22447 to grub_uint32_t.
22448 * include/grub/i386/loader.h: Removed.
22449 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
22450 value.
22451 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
22452 (grub_phys_addr_t): New type.
22453 (grub_vtop): New inline function.
22454 (grub_map_memory): Likewise.
22455 (grub_unmap_memory): Likewise.
22456 * include/grub/i386/multiboot/loader.h: Removed.
22457 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
22458 (NETBSD_BTINFO_CONSOLE): New definition.
22459 (NETBSD_BTINFO_SYMTAB): Likewise.
22460 (NETBSD_BTINFO_MODULES): Likewise.
22461 (NETBSD_BTINFO_FRAMEBUF): Likewise.
22462 (grub_netbsd_bootinfo): New struct.
22463 (grub_netbsd_btinfo_common): Use explicit bitsize.
22464 (grub_netbsd_btinfo_mmap_entry): Removed.
22465 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
22466 (grub_netbsd_btinfo_bootdisk): New struct.
22467 (grub_netbsd_btinfo_symtab): Likewise.
22468 (grub_netbsd_btinfo_serial): Likewise.
22469 (grub_netbsd_btinfo_modules): Likewise.
22470 (grub_netbsd_btinfo_framebuf): Likewise.
22471 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
22472 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
22473 Likewise.
22474 (grub_openbsd_bootargs): Use explicit bitsize.
22475 (grub_openbsd_bootarg_console): New struct.
22476 (GRUB_OPENBSD_COM_MAJOR): New definition.
22477 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
22478 * include/grub/i386/pc/efiemu.h: Removed.
22479 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
22480 * include/grub/i386/qemu/loader.h: Removed.
22481 * include/grub/i386/relocator.h: Rewritten.
22482 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
22483 * include/grub/mips/memory.h: New file.
22484 * include/grub/mips/multiboot.h: Rewritten.
22485 * include/grub/mips/relocator.h: Rewritten.
22486 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
22487 (grub_vtop): New function.
22488 (grub_map_memory): Likewise.
22489 (grub_unmap_memory): Likewise.
22490 * include/grub/misc.h (ALIGN_DOWN): New definition.
22491 * include/grub/mm.h (grub_mm_check_real): New proto.
22492 (GRUB_MM_CHECK): New definition.
22493 * include/grub/mm_private.h: New file.
22494 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
22495 (grub_multiboot_get_mbi_size): Removed.
22496 (grub_multiboot_make_mbi): Change prottype.
22497 (grub_multiboot_set_accepts_video): New proto.
22498 (grub_multiboot_add_elfsyms): Likewise.
22499 (grub_multiboot_payload_eip): New variable.
22500 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
22501 New prototype.
22502 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
22503 New definition.
22504 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
22505 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
22506 * include/grub/powerpc/ieee1275/loader.h: Removed.
22507 * include/grub/powerpc/memory.h: New file.
22508 * include/grub/powerpc/relocator.h: Likewise.
22509 * include/grub/relocator.h: Likewise.
22510 * include/grub/relocator_private.h: Likewise.
22511 * include/grub/sparc64/ieee1275/loader.h: Removed.
22512 * include/grub/x86_64/memory.h: New file.
22513 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
22514 (grub_xnu_heap_malloc): Likewise.
22515 (grub_xnu_heap_real_start): Removed.
22516 (grub_xnu_heap_start): Likewise.
22517 (grub_xnu_relocator): New variable.
22518 (grub_xnu_heap_target_start): Likewise.
22519 * tests/util/grub-shell.in: Support non-pc.
22520 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 22521
5303b85d
VS
225222010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22523
22524 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
22525 on malloc error.
22526 (grub_bidi_logical_to_visual): Check that malloc succeded.
22527 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
22528 puts.
22529 (grub_xputs_normal): Likewise.
22530
d768d159
VS
225312010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22532
22533 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
22534 extra_dist.
22535
225362010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22537
22538 * grub-core/efiemu/runtime/efiemu.sh: Removed.
22539
5bf84df4
VS
225402010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22541
22542 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
22543
3626810e
VS
225442010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22545
22546 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
22547 dprintf.
22548
a7363f53
BC
225492010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
22550
22551 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
22552
902f75f6
VS
225532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22554
22555 * grub-core/normal/term.c (print_more): Fix a memory leak.
22556 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
22557 (grub_xputs_normal): Likewise.
22558
3c707967
VS
225592010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22560
22561 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
22562 the begining of the string
22563
2053cc07
VS
225642010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22565
22566 * grub-core/script/script.c (grub_script_parse): Free parsed on
22567 failure.
22568
46422ebf
VS
225692010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22570
22571 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22572 on failure.
22573
9e0fa3f6
VS
225742010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22575
22576 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22577 return.
22578
3393cf16
VS
225792010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22580
22581 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22582 (scroll_up): Fix a memory leak.
22583
b17540cb
VS
225842010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22585
22586 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22587 errors.
22588
67140446
VS
225892010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22590
22591 Handle USB pendrives exposed as floppies.
22592
22593 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22594 floppy.
22595 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22596 Check for partitions on all devices.
22597
e35e46fc
VS
225982010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22599
22600 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22601 (readkey): Likewise.
22602
d24c6190
BC
226032010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22604
22605 Multiple variable names support to "export" command.
22606
22607 * normal/context.c (grub_cmd_export): "export" command supports
22608 multiple variable names.
22609
04ddcc6a
ST
226102010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22611
22612 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22613 --target=drive output to Mach device name.
22614
0c8b61d8
BC
226152010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22616
22617 New Automake based build system for GRUB.
22618
22619 * ABOUT-NLS: New file.
22620 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22621 in Makefile.util.def file.
22622 * Makefile.util.def: New file. Autogen build definitions file for
22623 GRUB host utils.
22624 * conf/Makefile.common: New file. Common variables for GRUB host
22625 utils and target modules.
22626 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22627 * docs/Makefile.am: New file. Automake file for docs.
22628 * gentpl.py: New file. Python script to generate Autogen
22629 template.
22630 * grub-core/Makefile.am: New file. GRUB target modules' rules
22631 that doesn't fit in Makefile.core.def file.
22632 * grub-core/Makefile.core.def: New file. Autogen build
22633 definitions file for GRUB target modules.
22634 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22635 specific setjmp.S file.
22636 * po/Makefile.am: New file.
22637
22638 * .bzrignore: New ignores.
22639 * INSTALL: New requirements, without Ruby.
22640 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22641 * autogen.sh: Updated to invoke autogen as necessary.
22642 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22643 and defines for Automake conditionals.
22644 * geninit.sh: Refactoring.
22645
22646 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22647 necessary.
22648 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22649 New prototype.
22650
22651 * include/grub/test.h: Fix functional test modules' naming.
22652 * grub-core/tests/example_functional_test.c: Fix test module name.
22653
22654 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22655 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22656 * util/grub-editenv.c: Likewise.
22657 * util/grub-fstest.c: Likewise.
22658 * util/grub-mkdevicemap.c: Likewise.
22659 * util/grub-mkfont.c: Likewise.
22660 * util/grub-mkimage.c: Likewise.
22661 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22662 * util/grub-probe.c: Likewise.
22663 * util/grub-script-check.c: Likewise.
22664 * util/i386/pc/grub-setup.c: Likewise.
22665 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22666
22667 * tests/util/grub-shell.in: Fix override directory path.
22668 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22669 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22670
22671 * util/lvm.c: Update #includes.
22672 * util/raid.c: Likewise.
22673 * util/resolve.c: Likewise.
22674 * grub-core/bus/emu/pci.c: Likewise.
22675 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22676 * grub-core/lib/posix_wrap/string.h: Likewise.
22677 * grub-core/kern/emu/main.c: Likewise.
22678
22679 * grub-core/gensymlist.sh: New file. Script for generating kernel
22680 symbols file.
22681 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22682
22683 * grub-core/gentrigtables.c: Fix unused variable warnings.
22684
22685 * Makefile.in: Removed.
22686 * conf/any-emu.rmk: Removed.
22687 * conf/common.rmk: Removed.
22688 * conf/i386-coreboot.rmk: Removed.
22689 * conf/i386-efi.rmk: Removed.
22690 * conf/i386-ieee1275.rmk: Removed.
22691 * conf/i386-multiboot.rmk: Removed.
22692 * conf/i386-pc.rmk: Removed.
22693 * conf/i386-qemu.rmk: Removed.
22694 * conf/i386.rmk: Removed.
22695 * conf/mips-yeeloong.rmk: Removed.
22696 * conf/mips.rmk: Removed.
22697 * conf/powerpc-ieee1275.rmk: Removed.
22698 * conf/sparc64-ieee1275.rmk: Removed.
22699 * conf/tests.rmk: Removed.
22700 * conf/x86-efi.rmk: Removed.
22701 * conf/x86_64-efi.rmk: Removed.
22702 * gendistlist.sh: Removed.
22703 * geninitheader.sh: Removed.
22704 * genkernsyms.sh.in: Removed.
22705 * genmk.rb: Removed.
22706 * gensymlist.sh.in: Removed.
22707 * mkinstalldirs: Removed.
22708 * boot: Moved ...
22709 * grub-core/boot: ... to here.
22710 * bus: Moved ...
22711 * grub-core/bus: ... to here.
22712 * commands: Moved ...
22713 * grub-core/commands: ... to here.
22714 * disk: Moved ...
22715 * grub-core/disk: ... to here.
22716 * efiemu: Moved ...
22717 * grub-core/efiemu: ... to here.
22718 * font: Moved ...
22719 * grub-core/font: ... to here.
22720 * fs: Moved ...
22721 * grub-core/fs: ... to here.
22722 * gencmdlist.sh: Moved ...
22723 * grub-core/gencmdlist.sh: ... to here.
22724 * genemuinit.sh: Moved ...
22725 * grub-core/genemuinit.sh: ... to here.
22726 * genemuinitheader.sh: Moved ...
22727 * grub-core/genemuinitheader.sh: ... to here.
22728 * genfslist.sh: Moved ...
22729 * grub-core/genfslist.sh: ... to here.
22730 * genhandlerlist.sh: Moved ...
22731 * grub-core/genhandlerlist.sh: ... to here.
22732 * genmoddep.awk: Moved ...
22733 * grub-core/genmoddep.awk: ... to here.
22734 * genmodsrc.sh: Moved ...
22735 * grub-core/genmodsrc.sh: ... to here.
22736 * genpartmaplist.sh: Moved ...
22737 * grub-core/genpartmaplist.sh: ... to here.
22738 * genparttoollist.sh: Moved ...
22739 * grub-core/genparttoollist.sh: ... to here.
22740 * genterminallist.sh: Moved ...
22741 * grub-core/genterminallist.sh: ... to here.
22742 * gentrigtables.c: Moved ...
22743 * grub-core/gentrigtables.c: ... to here.
22744 * genvideolist.sh: Moved ...
22745 * grub-core/genvideolist.sh: ... to here.
22746 * gettext: Moved ...
22747 * grub-core/gettext: ... to here.
22748 * gfxmenu: Moved ...
22749 * grub-core/gfxmenu: ... to here.
22750 * gnulib: Moved ...
22751 * grub-core/gnulib: ... to here.
22752 * hello: Moved ...
22753 * grub-core/hello: ... to here.
22754 * hook: Moved ...
22755 * grub-core/hook: ... to here.
22756 * io: Moved ...
22757 * grub-core/io: ... to here.
22758 * kern: Moved ...
22759 * grub-core/kern: ... to here.
22760 * lib: Moved ...
22761 * grub-core/lib: ... to here.
22762 * loader: Moved ...
22763 * grub-core/loader: ... to here.
22764 * mmap: Moved ...
22765 * grub-core/mmap: ... to here.
22766 * normal: Moved ...
22767 * grub-core/normal: ... to here.
22768 * partmap: Moved ...
22769 * grub-core/partmap: ... to here.
22770 * parttool: Moved ...
22771 * grub-core/parttool: ... to here.
22772 * script: Moved ...
22773 * grub-core/script: ... to here.
22774 * term: Moved ...
22775 * grub-core/term: ... to here
22776 * tests/example_functional_test.c: Moved ...
22777 * grub-core/tests/example_functional_test.c: ... to here.
22778 * tests/lib/functional_test.c: Moved ...
22779 * grub-core/tests/lib/functional_test.c: ... to here.
22780 * tests/lib/test.c: Moved ...
22781 * grub-core/tests/lib/test.c: ... to here.
22782 * video: Moved ...
22783 * grub-core/video: ... to here.
22784
645586e6
BC
227852010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22786
22787 Replace --enable-grub-emu-modules with grub-emu-lite.
22788
22789 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
22790 cache.S.
22791
22792 * include/grub/emu/misc.h (grub_emu_init): New prototype.
22793 * kern/emu/full.c: New file. For grub-emu specific initialization.
22794 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
22795 * kern/emu/main.c: Call initialization function grub_emu_init.
22796
22797 * Makefile.in: Include grub-emu-lite in install.
22798 * commands/parttool.c: Use grub_no_autoload to differentiate
22799 between grub-emu and grub-emu-lite.
22800 * include/grub/misc.h: New variable grub_no_autoload.
22801
22802 * conf/any-emu.rmk: New rules for grub-emu-lite.
22803 * configure.ac: Remove --enable-grub-emu-modules.
22804 * genmk.rb: Cleanup unnecessary rules.
22805 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
22806
22807 * normal/main.c: Don't load list files on grub-emu-lite.
22808 * util/misc.c (grub_arch_sync_caches): Removed.
22809
f86a4030
CW
228102010-08-23 Colin Watson <cjwatson@ubuntu.com>
22811
22812 * kern/mips/startup.S (grub_prefix): Update comment to refer to
22813 grub-mkimage rather than grub-mkelfimage.
22814 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
22815
06776944
VS
228162010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
22817
22818 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
22819 a key after CapsLock or NumLock. It's just a qemu bug.
22820
df262419
VS
228212010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22822
22823 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
22824 needed by libusb wrapper.
22825
b40ea81b
ST
228262010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22827
22828 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
22829
dee50575
VS
228302010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22831
22832 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
22833 --nounzip is passed.
22834
fb1d7b79
VS
228352010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
22836
22837 USB hotunplugging and USB serial support.
22838
22839 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
22840 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
22841 (grub_uhci_transfer): Respect timeout and set *actual.
22842 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
22843 non-standard length.
22844 (grub_usb_device_attach): Autoload modules.
22845 (GRUB_MOD_INIT): Set grub_term_poll_usb.
22846 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
22847 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
22848 users updated.
22849 (grub_usb_add_hub): Fill nports and children.
22850 (attach_root_port): Receive hub instead of controller.
22851 All users updated. Fill hub->devices.
22852 (grub_usb_root_hub): Allocate hub->devices.
22853 (detach_device): New function.
22854 (poll_nonroot_hub): Fill children and detach devices.
22855 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22856 actual arguments. All users updated.
22857 (grub_usb_bulk_read_extended): New function.
22858 * bus/usb/serial/common.c: New file.
22859 * bus/usb/serial/ftdi.c: Likewise.
22860 * bus/usb/serial/pl2303.c: Likewise.
22861 * commands/terminal.c (handle_command): Support wildcard.
22862 * commands/usbtest.c: Output "Unknown" instead of empty string.
22863 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22864 (usbserial_common_mod_SOURCES): New variable.
22865 (usbserial_common_mod_CFLAGS): Likewise.
22866 (usbserial_common_mod_LDFLAGS): Likewise.
22867 (pkglib_MODULES): Add usbserial_pl2303.mod.
22868 (usbserial_pl2303_mod_SOURCES): New variable.
22869 (usbserial_pl2303_mod_CFLAGS): Likewise.
22870 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22871 (pkglib_MODULES): Add usbserial_ftdi.mod.
22872 (usbserial_ftdi_mod_SOURCES): New variable.
22873 (usbserial_ftdi_mod_CFLAGS): Likewise.
22874 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22875 (pkglib_MODULES): Add serial.mod.
22876 (serial_mod_SOURCES): New variable.
22877 (serial_mod_CFLAGS): Likewise.
22878 (serial_mod_LDFLAGS): Likewise.
22879 * conf/i386-pc.rmk: Likewise.
22880 * conf/mips-yeeloong.rmk: Likewise.
22881 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22882 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22883 * disk/usbms.c (first_available_slot): New variable.
22884 (grub_usbms_attach): Don't reuse free slots due to potential cache
22885 problems.
22886 * include/grub/serial.h: Moved to ..
22887 * include/grub/ns8250.h: ...this.
22888 * include/grub/serial.h: New file.
22889 * include/grub/term.h (grub_term_poll_usb): New variable.
22890 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22891 readkey. All users updated.
22892 (grub_terminfo_output_state): Pass term to put.
22893 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22894 (grub_usb_controller_dev): Add timeout and actual arguments to
22895 transfer. All users updated.
22896 (grub_usb_interface): New field detach_data.
22897 (grub_usb_device): New fields children and nports.
22898 (grub_usb_ep_type_t): New type.
22899 (grub_usb_get_ep_type): New function.
22900 (grub_usb_bulk_read_extended): Likewise.
22901 * include/grub/usbdesc.h (grub_usb_desc): New type.
22902 * include/grub/usbserial.h: New file.
22903 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22904 * kern/term.c (grub_term_poll_usb): New variable.
22905 (grub_getkey): Call grub_term_poll_usb if set.
22906 (grub_checkkey): Likewise.
22907 (grub_getkeystatus): Likewise.
22908 * term/serial.c: Moved controller-specific parts to ...
22909 * term/ns8250.c: ... here.
22910 * term/serial.c: Mostly rewritten.
22911 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22912 according to spec.
22913
21a313de
RM
229142010-08-20 Robert Millan <rmh@gnu.org>
22915
22916 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22917 a separate module and maybe other interesting combinations.
22918
22919 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22920 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22921 (kfreebsd_entry): Add generic filesystem module load routine.
22922 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22923
63c734a6
CW
229242010-08-20 Colin Watson <cjwatson@ubuntu.com>
22925
22926 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22927 "numcenter" (I misunderstood the purpose of this entry).
22928 * docs/grub.texi (sendkey): Likewise.
22929
c4d16542
CW
229302010-08-20 Colin Watson <cjwatson@ubuntu.com>
22931
22932 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22933 status flag options; simply omitting the option is equivalent and
22934 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22935 (keysym_table): Rename "num5numlock" to "numlock".
22936 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22937 can uniformly say that only the last of multiple `sendkey'
22938 invocations has any effect.
22939 * docs/grub.texi (sendkey): New section.
22940
93541d66
CW
229412010-08-19 Colin Watson <cjwatson@ubuntu.com>
22942
22943 * commands/i386/pc/sendkey.c (options): Fix three typos.
22944
b4ece5e1
VS
229452010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22946
22947 Implement sendkey support.
22948
22949 * commands/i386/pc/sendkey.c: New file.
22950 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22951 (sendkey_mod_SOURCES): New variable.
22952 (sendkey_mod_CFLAGS): Likewise.
22953 (sendkey_mod_LDFLAGS): Likewise.
22954
51f1f5af
CW
229552010-08-18 Colin Watson <cjwatson@ubuntu.com>
22956
22957 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22958 fix warnings from Autoconf.
22959
9da94e05
CW
229602010-08-18 Colin Watson <cjwatson@ubuntu.com>
22961
22962 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22963 to avoid false positives with some assemblers that output things
22964 like "someprefix_func" as part of their output.
22965
729a0f2e
RM
229662010-08-15 Robert Millan <rmh@gnu.org>
22967
22968 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22969 errors.
22970 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22971 grub_get_libzfs_handle() errors.
22972
f3710e08
RM
229732010-08-14 Robert Millan <rmh@gnu.org>
22974
22975 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22976 filesystem is not ZFS.
22977
7a3c13de
BC
229782010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22979
22980 Fix for misspelled color names defaulting to black/black (bug
22981 reported by Doug Nazar)
22982
22983 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22984 status to prototype.
22985 * normal/color.c (grub_parse_color_name_pair): Return failure
22986 status.
22987 (grub_env_write_color_normal): Ignore bad color names.
22988 (grub_env_write_color_highlight): Likewise.
22989 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22990
ab8ba50d
BC
229912010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22992
22993 "shift" command support to GRUB script.
22994
22995 * include/grub/script_sh.h (grub_script_shift): New prototype.
22996 * script/execute.c (grub_script_shift): New function.
22997 * script/main.c (grub_script_init): Register shift command.
22998 (grub_script_fini): Unregister shift command.
22999 * util/grub-script-check.c (grub_script_cmd_shift): New function.
23000
23001 * tests/grub_script_shift.in: New testcase.
23002 * conf/tests.rmk: Rules for new testcase.
23003
4d61999e
BC
230042010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23005
23006 "continue" command support to GRUB script.
23007
23008 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
23009 (grub_script_break): Continue support.
23010 * script/main.c (grub_script_init): Register continue command.
23011 (grub_script_fini): Unregister continue command.
23012
23013 * tests/grub_script_continue.in: New testcase.
23014 * conf/tests.rmk: Rules for new testcase.
23015
4df51e00
BC
230162010-08-12 BVK Chaitanya <bvk@dbook>
23017
23018 "break" command support to GRUB script.
23019
23020 * conf/common.rmk: Rule updates to grub-script-check.
23021 * include/grub/misc.h (grub_min): New function.
23022 * include/grub/script_sh.h (grub_script_init): New prototype.
23023 (grub_script_fini): New prototype.
23024 (grub_script_break): New prototype.
23025 * script/main.c (grub_script_init): New function.
23026 (grub_script_fini): New function.
23027 * script/execute.c (grub_script_break): New function.
23028 * normal/main.c: Calls to grub_script_{init,fini}.
23029 * util/grub-script-check.c (grub_script_break): New function.
23030
23031 * tests/grub_script_break.in: New testcase.
23032 * conf/tests.rmk: Rules for new test case.
23033
f12c8420
BC
230342010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23035
23036 Function parameters support to GRUB script.
23037
23038 * script/yylex.l (VARIABLE): Regular expression update.
23039 * script/function.c (grub_script_function_call): Moved ...
23040 * script/execute.c (grub_script_function_call): ... to here.
23041 (grub_script_execute_arglist_to_argv): Removed.
23042 (grub_script_arglist_to_argv): New function.
23043 * script/argv.c: New file.
23044 (grub_script_argv_free): New function.
23045 (grub_script_argv_next): Likewise.
23046 (grub_script_argv_append): Likewise.
23047 (grub_script_argv_split_append): Likewise.
23048 * include/grub/script_sh.h (grub_script_argv): New struct.
23049 (grub_script_argv_free): New function.
23050 (grub_script_argv_next): Likewise.
23051 (grub_script_argv_append): Likewise.
23052 (grub_script_argv_split_append): Likewise.
23053
23054 * conf/common.rmk (normal.mod): New source script/argv.c.
23055
23056 * tests/grub_script_echo1.in: More tests.
23057 * tests/grub_script_vars1.in: Likewise.
23058 * tests/grub_script_functions.in: New test case.
23059 * conf/tests.rmk: Rules for new testcase.
23060
8022b748
BC
230612010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
23062
23063 Remove grub_script_cmdblock struct.
23064
23065 * include/grub/script_sh.h: Remove grub_script_cmdblock.
23066 * script/parser.y: Likewise.
23067 * script/execute.c: Rename cmdblock suffix to cmdlist.
23068 * script/script.c: Likewise.
23069 * util/grub-script-check.c: Likewise.
23070
79a6ba61
YB
230712010-08-11 Yves Blusseau <blusseau@zetam.org>
23072
23073 * .bzrignore: add grub-macho2img
23074
d04b9414
VS
230752010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
23076
23077 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
23078
f947ab49
VS
230792010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
23080
23081 Remove the dump of sm712 initialisation sequence.
23082
23083 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
23084 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
23085 (GRUB_VGA_IO_MISC_WRITE): Likewise.
23086 (GRUB_VGA_CR_*): Added many registers.
23087 (GRUB_VGA_SR_*): Likewise.
23088 (GRUB_VGA_GR_*): Likewise.
23089 (grub_vga_write_arx): New function.
23090 (grub_video_hw_config): New struct.
23091 (grub_vga_set_geometry): New function.
23092 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
23093 GRUB_PCI_CLASS_SUBCLASS_VGA.
23094 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
23095 * video/sm712.c (grub_sm712_write_reg): New function
23096 (grub_sm712_read_reg): Likewise.
23097 (grub_sm712_sr_write): Likewise.
23098 (grub_sm712_gr_write): Likewise.
23099 (grub_sm712_cr_write): Likewise.
23100 (grub_sm712_write_arx): Likewise.
23101 (grub_sm712_cr_shadow_write): Likewise.
23102 (grub_sm712_write_dda_lookup): Likewise.
23103 (grub_video_sm712_setup): Initialise the video rather then
23104 blindly replay the dump.
23105 (main) [TEST]: Add a routine to be able to compile as standalone for
23106 tests.
23107 * video/sm712_init.c (sm712_init): Removed.
23108 (sm712_sr_seq1): New array.
23109 (sm712_sr_seq2): Likewise.
23110
f0206638
VS
231112010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23112
23113 * include/grub/vga.h: Add missing grub/pci.h include.
23114
2764da3b
YB
231152010-08-10 Yves Blusseau <blusseau@zetam.org>
23116
23117 * util/grub-macho2img.c (main): fix typo
23118
cf0c775e
VS
231192010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23120
23121 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
23122 (grub_vga_gr_read): Likewise.
23123 (grub_vga_cr_write): Likewise.
23124 (grub_vga_cr_read): Likewise.
23125 (grub_vga_sr_write): Likewise.
23126 (grub_vga_sr_read): Likewise.
23127 (grub_vga_palette_read): Likewise.
23128 (grub_vga_palette_write): Likewise.
23129 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
23130 (grub_sm712_sr_read): New function.
23131 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
23132 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
23133
07f360e9
RM
231342010-08-09 Robert Millan <rmh@gnu.org>
23135
23136 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
23137 out unused variables on non-ZFS build.
23138
346c2072
RM
231392010-08-08 Robert Millan <rmh@gnu.org>
23140
23141 Fix path generation for sub-filesystems in ZFS.
23142
23143 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
23144 missing slash.
23145
71175420
RM
231462010-08-08 Robert Millan <rmh@gnu.org>
23147
23148 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
23149
0d8286f3
RM
231502010-08-08 Robert Millan <rmh@gnu.org>
23151
23152 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
23153 exist, issue a proper error message (rely on `ls' for translated
23154 strings).
23155
55dd2924
RM
231562010-08-08 Robert Millan <rmh@gnu.org>
23157
23158 Fix grub-probe invocation.
23159
23160 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
23161
d3dd9e80
RM
231622010-08-04 Robert Millan <rmh@gnu.org>
23163
23164 * configure.ac: Remove checks for getfsstat() and getmntany().
23165 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
23166 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
23167 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
23168 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
23169 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
23170 function.
23171 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
23172 via find_mount_point_from_dir() and getfsstat() / getmntany().
23173
0de22aa9
RM
231742010-08-04 Robert Millan <rmh@gnu.org>
23175
23176 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23177 (grub_find_zpool_from_mount_point): Merge into ...
23178 (grub_find_zpool_from_dir): ... this.
23179 * kern/emu/misc.c: Likewise.
23180
23181 * kern/emu/misc.c
23182 (grub_make_system_path_relative_to_its_root): Replace
23183 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
23184 with grub_find_zpool_from_dir().
23185 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
23186
62858144
RM
231872010-08-04 Robert Millan <rmh@gnu.org>
23188
23189 Support OpenSolaris in ZFS device resolution.
23190
23191 * configure.ac: Check for getmntany().
23192 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
23193 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
23194 support.
23195
9dd6fd50
RM
231962010-08-03 Robert Millan <rmh@gnu.org>
23197
23198 Fix grub-emu build.
23199
23200 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
23201 * include/grub/emu/misc.h: ... here.
23202
23203 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
23204 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
23205
23206 * util/misc.c: Remove `<grub/util/libzfs.h>'.
23207 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
23208 (grub_get_libzfs_handle): Move to ...
23209 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
23210 (grub_get_libzfs_handle): ... here.
23211
c9f7ff97
BC
232122010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
23213
23214 * script/execute.c (grub_script_execute_cmdline): Check for NULL
23215 as command name case.
23216
a870a783
CW
232172010-08-02 Colin Watson <cjwatson@ubuntu.com>
23218
23219 * disk/raid.c (insert_array): Select unique numbers for named arrays
23220 as well, for use as keys in the disk cache.
23221
c7db243b
RM
232222010-08-01 Robert Millan <rmh@gnu.org>
23223
23224 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
23225 kFreeBSD device name, except on ZFS where the filesystem label is
23226 used.
23227 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
23228 `/boot/zfs/zpool.cache'.
23229 Set mountfrom kernel variable using ${kfreebsd_device}.
23230
f7abdefb
RM
232312010-08-01 Robert Millan <rmh@gnu.org>
23232
23233 Make it even harder to use uninitialized `libzfs_handle' (and
23234 make the interface a bit simpler).
23235
23236 * include/grub/util/misc.h (grub_util_init_libzfs)
23237 (libzfs_handle): Remove.
23238 (grub_get_libzfs_handle): New prototype.
23239
23240 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
23241 attribute.
23242 (grub_util_init_libzfs): Remove.
23243 (grub_get_libzfs_handle): New function.
23244
23245 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
23246 grub_get_libzfs_handle() to obtain a libzfs handle instead of
23247 accessing `libzfs_handle' directly.
23248
c882acc0
RM
232492010-08-01 Robert Millan <rmh@gnu.org>
23250
23251 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23252 (grub_find_zpool_from_mount_point): New function prototypes.
23253
23254 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23255 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23256
23257 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23258 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23259 `static' attribute.
23260
23261 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23262 finding zpool from mount point into ...
23263 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23264
23265 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23266 requested path is part of a ZFS pool, use
23267 grub_find_zpool_from_mount_point() to detect its filesystem name,
23268 and generate a path with `/fsname@path' syntax.
23269
8bfe31d8
CW
232702010-08-01 Colin Watson <cjwatson@ubuntu.com>
23271
23272 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
23273 (void) rather than () so that this is a proper prototype.
23274
553df63d
VS
232752010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23276
23277 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
23278
8687cf07
VS
232792010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23280
23281 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
23282 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
23283
ea9be8ea
CW
232842010-08-01 Colin Watson <cjwatson@ubuntu.com>
23285
23286 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
23287
6eea041a
CW
232882010-08-01 Colin Watson <cjwatson@ubuntu.com>
23289
23290 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
23291
2cfb45df
CW
232922010-08-01 Colin Watson <cjwatson@ubuntu.com>
23293
23294 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
23295 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
23296 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
23297 disable gfxpayload.
23298 (Shell-like scripting): Add real content.
23299 (Serial terminal): Suggest `terminal_input serial; terminal_output
23300 serial' rather than putting the two commands on separate lines,
23301 since console input will be inoperative after the first command.
23302 (menuentry): Document --class, --users, and --hotkey options.
23303 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
23304 Vladimir Serbinenko).
23305
7decd202
VS
233062010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
233072010-08-01 Colin Watson <cjwatson@ubuntu.com>
23308
23309 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
23310
c882acc0
RM
233112010-08-01 Robert Millan <rmh@gnu.org>
23312
23313 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23314 (grub_find_zpool_from_mount_point): New function prototypes.
23315
23316 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23317 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23318
23319 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23320 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23321 `static' attribute.
23322
23323 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23324 finding zpool from mount point into ...
23325 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23326
23327 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23328 requested path is part of a ZFS pool, use
23329 grub_find_zpool_from_mount_point() to detect its filesystem name,
23330 and generate a path with `/fsname@path' syntax.
23331
deb0caa3
RM
233322010-08-01 Robert Millan <rmh@gnu.org>
23333
23334 Prevent accidental use of uninitialized libzfs_handle.
23335
23336 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
23337 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
23338 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
23339
ce04ef47
CW
233402010-08-01 Colin Watson <cjwatson@ubuntu.com>
23341
23342 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
23343 util/grub.d/10_linux.in). Fixes Debian bug #591093.
23344
ebf53056
RM
233452010-08-01 Robert Millan <rmh@gnu.org>
23346
23347 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 23348
3710bb6b
RM
233492010-07-31 Robert Millan <rmh@gnu.org>
23350
23351 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
23352
8072efeb
RM
233532010-07-31 Robert Millan <rmh@gnu.org>
23354
23355 * kern/emu/misc.c: Add missing license header.
23356
3169f4c7
RM
233572010-07-31 Robert Millan <rmh@gnu.org>
23358
23359 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
23360
23361 * include/grub/util/libnvpair.h: Include `<config.h>'.
23362 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
23363 declaring libnvpair prototypes ourselves.
23364 * include/grub/util/libzfs.h: Include `<config.h>'.
23365 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
23366 declaring libzfs prototypes ourselves.
23367
23368 (libzfs_handle): Moved to ...
23369 * include/grub/util/misc.h (libzfs_handle): ... here.
23370 Include `<grub/util/libzfs.h>'.
23371
c9a00aee
RM
233722010-07-30 Robert Millan <rmh@gnu.org>
23373
23374 * include/grub/emu/misc.h: Add missing license header.
23375
a184f9c8
RM
233762010-07-30 Robert Millan <rmh@gnu.org>
23377
23378 Enable `grub-probe -t device' resolution on ZFS.
23379
23380 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
23381 * include/grub/util/libnvpair.h: New file.
23382 * include/grub/util/libzfs.h: New file.
23383
23384 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
23385 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
23386 `<grub/util/libnvpair.h>'.
23387 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
23388
23389 (find_mount_point_from_dir): New static function.
23390 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
23391 function.
23392 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
23393 find_root_device_from_libzfs() before ressorting to find_root_device().
23394
23395 * include/grub/util/misc.h (grub_util_init_libzfs): New function
23396 prototype.
23397 * util/misc.c: Include `<grub/util/libzfs.h>'.
23398 (grub_util_init_libzfs): New function.
23399 [HAVE_LIBZFS] (libzfs_handle): New global variable.
23400 [HAVE_LIBZFS] (fini_libzfs): New static function.
23401 (grub_util_init_libzfs): New function.
23402 * util/grub-probe.c (main): Call grub_util_init_libzfs().
23403
f7790cdd
RM
234042010-07-30 Robert Millan <rmh@gnu.org>
23405
23406 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
23407 (xmalloc, xrealloc, xstrdup, xasprintf): Add
23408 `warn_unused_result' attribute.
23409 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
23410 (grub_xasprintf, grub_xvasprintf): Likewise.
23411 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
23412
0806b63c
RM
234132010-07-29 Robert Millan <rmh@gnu.org>
23414
23415 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
23416 (probe): Handle `PRINT_FS_LABEL'.
23417 (main): Handle `-t fs_label'.
23418
9f841f5c
RM
234192010-07-29 Robert Millan <rmh@gnu.org>
23420
23421 * configure.ac: Remove grub-mkisofs checks.
23422
46371121
VS
234232010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23424
23425 * util/ieee1275/grub-install.in: Don't use empty grub_device.
23426 Reported by: Lennart Sorensen.
23427
234282010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23429
23430 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
23431 prior to terminal_input/terminal_output separation. It's been over 1.5
23432 years and those versions weren't widely deployed.
23433
a9600892
CW
234342010-07-22 Colin Watson <cjwatson@ubuntu.com>
23435
23436 * disk/raid.c (insert_array): Don't count named arrays when looking
23437 for unused array numbers.
697e053c 23438 Reported and tested by: Michael Guntsche.
a9600892 23439
c03507df
CW
234402010-07-20 Colin Watson <cjwatson@ubuntu.com>
23441
23442 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
23443 implementation of this so that grub-emu links again, with a note
23444 that this should support hotplugging in the future.
23445
b26f1c11
CW
234462010-07-20 Colin Watson <cjwatson@ubuntu.com>
23447
23448 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
23449
efc9d7f1
CW
234502010-07-20 Colin Watson <cjwatson@ubuntu.com>
23451
23452 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
23453 handle on failure.
23454 (grub_loopback_close): Remove empty function.
23455 (grub_loopback_dev): Remove close method.
23456
dd8ff5c9
CW
234572010-07-20 Colin Watson <cjwatson@ubuntu.com>
23458
23459 Disable EFI cursor when the EFI console becomes inactive.
23460
23461 * term/efi/console.c (grub_efi_console_init): New function.
23462 (grub_efi_console_fini): New function.
23463 (grub_console_term_output): Register init and fini methods.
23464
5e3bec67
VS
234652010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23466
23467 * tests/util/grub-shell-tester.in: Remove bashism and declare as
23468 sh script.
23469
afaec079
VS
234702010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23471
23472 * disk/loopback.c (grub_loopback): Replace filename with file.
23473 (delete_loopback): Handle new semantics.
23474 (grub_cmd_loopback): Likewise.
23475 (grub_loopback_iterate): Likewise.
23476 (grub_loopback_close): Likewise.
23477
a6a11f3c
VS
234782010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23479
23480 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
23481 with -p "".
23482 Reported by: Tito Keitel.
23483
64a638b0
VS
234842010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23485
23486 * docs/grub.texi (Naming convention): Document new naming convention.
23487
ab8ba957
VS
234882010-07-20 Vadim Solomin <vadic052@gmail.com>
234892010-07-20 Colin Watson <cjwatson@ubuntu.com>
23490
23491 Generate device.map in something closer to the old ordering.
23492
23493 * util/deviceiter.c (struct device): New declaration.
23494 (compare_file_names): Rename to ...
23495 (compare_devices): ... this. Sort by kernel name in preference to
23496 the stable by-id name, but keep the latter as a fallback comparison.
23497 Update header comment.
23498 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
23499 of `struct device' rather than of plain file names.
23500
a29d6a4b
TF
235012010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
23502
23503 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
23504 on i386.
23505
39d824e8
VS
235062010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23507
23508 * commands/acpi.c (setup_common_tables): Use sizeof instead of
23509 hardcoding size.
23510 (setv1table): Likewise.
23511
f058276b
FZ
235122010-07-20 Colin Watson <cjwatson@ubuntu.com>
23513
23514 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
23515 removing the homehost if present.
23516 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
23517 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
23518 removing the homehost if present.
23519 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
23520 if possible.
23521 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
23522
23523 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
23524 parameter. Set its pointer target to 0.
23525 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
23526 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
23527 `data_offset' value from the superblock for 1.x metadata.
23528 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
23529 data on the device.
23530 (insert_array): Record the start sector of data on the device.
23531 (grub_raid_register): Pass start_sector parameters to
23532 grub_raid_list->detect and insert_array.
23533 * include/grub/raid.h (struct grub_raid_array): Add start_sector
23534 member.
23535 (struct grub_raid): Add start_sector parameter to `detect'.
23536
23537 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
23538 __attribute__ ((packed)), leaving a comment.
23539 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
23540 (grub_mdraid_detect_09): ... here and ...
23541 (grub_mdraid_detect_1x): ... here.
23542
235432010-07-20 Peter Henn <peter.henn@web.de>
23544
23545 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
23546 chunk size and disk size, which are already given as sector counts
23547 as distinct from the 0.90 units. Fetch the correct device number
23548 from the role table instead of using the table index.
23549
235502010-07-20 Felix Zielcke <fzielcke@z-51.de>
23551
23552 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
23553 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
23554 (WriteMostly1): New macro.
23555 Set array->name to NULL for metadata format 0.90. Add support for
23556 metadata 1.x. Fix some comments.
23557 * disk/raid.c (): Add support for name based RAID arrays. Fix a
23558 few comments.
23559 * util/getroot.c (grub_util_get_grub_dev): Add support for
23560 /dev/md/name style devices.
23561
4b761da9
CW
235622010-07-20 Colin Watson <cjwatson@ubuntu.com>
23563
23564 * .bzrignore: Ignore 20_linux_xen.
23565
5771289a
CW
235662010-07-17 Colin Watson <cjwatson@ubuntu.com>
23567
23568 * util/import_unicode.py: Remove unnecessary imports.
23569
5dab68df
AN
235702010-07-17 Aleš Nesrsta <starous@volny.cz>
23571
23572 Hotplugging and USB hub support.
23573
23574 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23575 (grub_ohci): Likewise.
23576 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23577 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23578 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23579 (GRUB_OHCI_CTRL_EDS): Likewise.
23580 (GRUB_OHCI_BULK_EDS): Likewise.
23581 (GRUB_OHCI_TDS): Likewise.
23582 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23583 (grub_ohci_ed_phys2virt): New function.
23584 (grub_ohci_virt_to_phys): Likewise.
23585 (grub_ohci_td_phys2virt): Likewise.
23586 (grub_ohci_td_virt2phys): Likewise.
23587 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23588 attachment.
23589 (grub_ohci_find_ed): New function.
23590 (grub_ohci_alloc_td): Likewise.
23591 (grub_ohci_free_td): Likewise.
23592 (grub_ohci_free_tds): Likewise.
23593 (grub_ohci_transfer): Use previously allocated memory.
23594 (grub_ohci_portstatus): Reset status changed bit.
23595 (grub_ohci_detect_dev): Supply status changed.
23596 (grub_ohci_fini_hw): Free memory.
23597 (grub_ohci_restore_hw): Reallocate memory.
23598 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23599 Reset status change.
23600 (grub_uhci_detect_dev): Supply status_change.
23601 * bus/usb/usb.c (attach_hooks): New var.
23602 (grub_usb_device_attach): New function.
23603 (grub_usb_register_attach_hook_class): Likewise.
23604 (grub_usb_unregister_attach_hook_class): Likewise.
23605 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23606 (grub_usb_add_hub): Reset connection changed bit.
23607 (attach_root_port): New function.
23608 (grub_usb_root_hub): Likewise.
23609 (poll_nonroot_hub): Likewise.
23610 (grub_usb_poll_devices): Likewise.
23611 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23612 * disk/usbms.c (grub_usbms_open): Use device hooks.
23613 (grub_usbms_iterate) :Poll devices.
23614 (grub_usbms_finddevs): Split into ...
23615 (grub_usbms_attach): ... this ...
23616 (grub_usbms_attach): ... and this.
23617 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23618 in detect_dev.
23619 (grub_usb_interface): New fields attached and detach_hook.
23620 (grub_usb_attach_hook_class): New type.
23621 (grub_usb_attach_desc): New struct.
23622 (grub_usb_register_attach_hook_class): New function.
23623 (grub_usb_unregister_attach_hook_class): Likewise.
23624 (grub_usb_poll_devices): Likewise.
23625 (grub_usb_device_attach): Likewise.
23626 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23627 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23628
3222efaf
VS
236292010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23630
23631 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23632 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23633 delta determination style. Works with most NetBSD partitions too.
23634
139b714a
VS
236352010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23636
23637 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23638 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23639
986aad56
VS
236402010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23641
23642 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23643
99be513c
AB
236442010-07-14 Anton Blanchard <anton@samba.org>
23645
23646 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23647 ET_DYN files.
23648
18075f62
GS
236492010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23650
23651 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23652
8d9a5b15
GS
236532010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23654
23655 * kern/partition.c (grub_partition_check_containment): New function to
23656 check that a partition is physically contained in a parent. Since
23657 offsets are relative (and non-negative), this reduces to checking that
23658 the partition ends before its parent.
23659 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23660 (grub_partition_iterate): Likewise.
23661 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23662 comments.
23663 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23664 partitions that start before their parent, and add debug printfs.
23665
19563c25
CW
236662010-07-13 Colin Watson <cjwatson@ubuntu.com>
23667
23668 * Makefile.in (.SUFFIX): Spell correctly, as ...
23669 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23670 bare module name without `.mod', e.g. `test') tried to invoke a
23671 Modula-2 compiler.
23672
1a1f1e67
CW
236732010-07-13 Colin Watson <cjwatson@ubuntu.com>
23674
23675 * README: Point to the Info manual.
23676
811b0dca
JS
236772010-07-13 Jiro SEKIBA <jir@unicus.jp>
23678
23679 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23680 2nd superblock position from partition size.
23681
e4f4eafc
CW
236822010-07-10 Colin Watson <cjwatson@ubuntu.com>
23683
23684 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23685 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23686 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23687 outputs.
23688
4274c30f
VS
236892010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23690
23691 Restructure SCSI .id handling.
23692 Reported and tested by: Aleš Nesrsta.
23693
23694 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23695 (grub_atapi_dev): Changed .name to "ata". New field .id.
23696 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23697 (grub_usbms_dev): New field .id.
23698 * disk/scsi.c (grub_scsi_iterate): Generate name.
23699 (grub_scsi_open): Parse name.
23700 * include/grub/scsi.h (grub_make_scsi_id): New function.
23701 (grub_scsi_dev): Change iterate and open to number instead of naming
23702 busses. All users updated.
23703 (grub_scsi): Remove name. Add .bus.
23704
5bc24388
VS
237052010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23706
23707 * commands/help.c (grub_cmd_help): Fix a typo.
23708
249975ba
VS
237092010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23710
23711 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23712 Reported and tested by: Colin Watson.
23713
3eaac1a1
VS
237142010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23715
23716 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23717 in this context.
23718
becce1b1
VS
237192010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23720
23721 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23722
f7bf0918
CW
237232010-07-07 Colin Watson <cjwatson@ubuntu.com>
23724
23725 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23726 indentation.
23727
0b0f9620
CW
237282010-07-06 Colin Watson <cjwatson@ubuntu.com>
23729
23730 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23731 and disk/raid6_recover.c.
23732 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23733 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23734
1e545469
CW
237352010-07-06 Colin Watson <cjwatson@ubuntu.com>
23736
23737 * term/gfxterm.c (repaint_schedulded): Rename to ...
23738 (repaint_scheduled): ... this. Update all callers.
23739 (repaint_was_schedulded): Rename to ...
23740 (repaint_was_scheduled): ... this. Update all callers.
23741
5357687a
CW
237422010-07-06 Colin Watson <cjwatson@ubuntu.com>
23743
23744 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23745 which we expect to be handled by upper layers.
23746
29d7e783
BC
237472010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23748
23749 * bus/usb/usbhub.c: #include time.h header.
23750
37582066
CW
237512010-07-06 Colin Watson <cjwatson@ubuntu.com>
23752
23753 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23754 entry_name also for entries without stat blocks (e.g. ".."); fixes
23755 corruption of the first entry in a directory.
23756
c8c06953
CW
237572010-07-06 Colin Watson <cjwatson@ubuntu.com>
23758
23759 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23760 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23761 doesn't work otherwise.
23762
e75056f1
CW
237632010-07-05 Colin Watson <cjwatson@ubuntu.com>
23764
23765 * docs/grub.texi (Features): Update list of supported file systems.
23766 (GNU/Linux): Update for GRUB 2.
23767 (Serial terminal): Remove mention of --disable-serial, which was a
23768 GRUB Legacy configure option. Update instructions to use
23769 `terminal_input' and `terminal_output' rather than `terminal'.
23770 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23771 configuration' and `Installing GRUB using grub-install'.
23772 (Menu entry editor): Update for GRUB 2.
23773 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23774 Document new -a, -u, and -v options.
23775 (initrd): New section.
23776 (initrd16): New section.
23777 (linux): New section.
23778 (linux16): New section.
23779 (search): The `var' argument to `--set' is optional.
23780 (GRUB only offers a rescue shell): Go into a little more detail on
23781 drive ordering.
23782
5cf69151
CW
237832010-07-05 Colin Watson <cjwatson@ubuntu.com>
23784
23785 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
23786
e3f90044
CW
237872010-07-05 Colin Watson <cjwatson@ubuntu.com>
23788
23789 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
23790 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
23791
38d8f4f3
CW
237922010-07-05 Colin Watson <cjwatson@ubuntu.com>
23793
23794 * util/i386/pc/grub-setup.c (setup): Rename prefix to
23795 install_prefix, in line with install_dos_part and install_bsd_part.
23796 Add new prefix variable, which is copied to install_prefix after
23797 comparing core.img in memory with the one read from disk in the
23798 no-embedding case, and use that rather than overwriting
23799 install_prefix immediately when installing to a partition.
23800 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
23801 Bicakci.
23802
57ebd41e
GS
238032010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23804
23805 * configure.ac: Avoid == in test command, it's not portable.
23806 * util/grub.d/30_os-prober.in: Likewise.
23807
cb7f64b2
CW
238082010-07-04 Colin Watson <cjwatson@ubuntu.com>
23809
23810 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
23811
6b654bb0
GS
238122010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23813
23814 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
23815 multiple (top-level) partmaps.
23816
72a2026d
VS
238172010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23818
23819 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 23820 Reported by: Tino Keitel.
72a2026d 23821
df3eb88f
VS
238222010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23823
23824 Bidi and diacritics support.
23825
23826 * Makefile.in (widthspec.bin): New target.
23827 (widthspec.h): Likewise.
23828 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
23829 * autogen.sh: Generate unidata.c.
23830 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
23831 * commands/ls.c (grub_ls_list_devices): Likewise.
23832 (grub_ls_list_files): Likewise.
23833 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
23834 (grub_mini_cmd_lsmod): Likewise.
23835 * commands/read.c: Likewise.
23836 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
23837 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
23838 * lib/arg.c (grub_arg_show_help): Likewise.
23839 * lib/crypto.c (grub_password_get): Likewise.
23840 * normal/auth.c (grub_username_get): Likewise.
23841 * normal/misc.c (grub_normal_print_device_info): Likewise.
23842 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
23843 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
23844 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
23845 (normal/charset.c_DEPENDENCIES): New variable.
23846 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
23847 (pkglib_MODULES): Remove charset.mod.
23848 (charset_mod_SOURCES): Removed.
23849 (charset_mod_CFLAGS): Likewise.
23850 (charset_mod_LDFLAGS): Likewise.
23851 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23852 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23853 and term/tparm.c.
23854 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23855 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23856 (kernel_img_HEADERS): Add terminfo.h.
23857 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23858 Fill ->font. Reverse ascii bitmaps.
23859 (grub_font_get_xheight): New function.
23860 * font/font.c (grub_font_get_string_width): Moved from here ...
23861 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23862 * font/font.c (grub_font_draw_string): Moved from here ...
23863 * gfxmenu/font.c (grub_font_draw_string): ... here.
23864 * font/font.c (grub_font_dup_glyph): New function.
23865 (grub_font_blit_glyph): Likewise.
23866 (grub_font_blit_glyph_mirror): Likewise.
23867 (blit_comb): Likewise.
23868 (grub_font_construct_dry_run): Likewise.
23869 (grub_font_get_constructed_device_width): Likewise.
23870 (grub_font_construct_glyph): Likewise.
23871 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23872 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23873 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23874 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23875 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23876 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23877 (grub_font_get_xheight): New proto.
23878 (grub_font_get_constructed_device_width): Likewise.
23879 (grub_font_construct_glyph): Likewise.
23880 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23881 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23882 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23883 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23884 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23885 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23886 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23887 (grub_console_getcharwidth): Likewise.
23888 * include/grub/misc.h (grub_xputs): New proto.
23889 (grub_puts): Inlined.
23890 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23891 (grub_normal_get_line_counter): Removed.
23892 (grub_install_newline_hook): Likewise.
23893 (grub_normal_get_char_counter): New proto.
23894 (grub_normal_reset_more): Likewise.
23895 (grub_xputs_normal): Likewise.
23896 * include/grub/powerpc/ieee1275/console.h: Removed.
23897 * include/grub/sparc64/ieee1275/console.h: Likewise.
23898 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23899 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23900 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23901 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23902 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23903 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23904 (grub_term_input): Pass reference to self. All users updated.
23905 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23906 Pass reference to self. New fields normal_color, highlight_color and
23907 data. All users updated.
23908 (grub_putchar): Removed.
23909 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23910 (grub_unicode_estimate_width): New function.
23911 (grub_term_getcharwidth): Add defaults.
23912 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23913 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23914 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23915 (grub_cls): Remove EXPORT_FUNC.
23916 (grub_setcolorstate): Inline.
23917 (grub_newline_hook): Removed.
23918 * include/grub/terminfo.h: Rewritten. All users updated.
23919 * include/grub/unicode.h: New file.
23920 * include/grub/video.h (grub_video_signed_rect): New type.
23921 * kern/emu/console.c (grub_console_highlight_color): Removed.
23922 (grub_console_normal_color): Likewise.
23923 (grub_console_standard_color): Made static.
23924 (grub_ncurses_putchar): Remove mapping.
23925 (grub_ncurses_getcharwidth): Removed.
23926 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23927 (grub_ncurses_setcolor): Removed.
23928 (grub_ncurses_getcolor): Likewise.
23929 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23930 (grub_console_putchar): ... this.
23931 (grub_console_putchar): Handle argument difference.
23932 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23933 console_init_early and console_init_lately.
23934 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23935 * kern/misc.c (grub_puts): Removed.
23936 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23937 (grub_vsnprintf_real): Remove str = NULL support.
23938 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23939 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23940 * kern/term.c (grub_putcode): Renamed to ...
23941 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23942 (grub_putchar): Removed.
23943 (grub_xputs_dumb): New function.
23944 (grub_xputs): New variable.
23945 * lib/charset.c: Move from here ...
23946 * normal/charset.c: ... to here.
23947 (grub_ucs4_to_utf8): New function.
23948 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23949 (join_types): New variable.
23950 (unpack_join): New function.
23951 (bidi_types): New variable.
23952 (unpack_bidi): New function.
23953 (get_bidi_type): Likewise.
23954 (get_join_type): Likewise.
23955 (is_mirrored): Likewise.
23956 (grub_unicode_get_comb_type): Likewise.
23957 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23958 (is_type_after): Likewise.
23959 (grub_unicode_aglomerate_comb): Likewise.
23960 (bidi_line_wrap): Likewise.
23961 (grub_bidi_line_logical_to_visual): Likewise.
23962 (grub_bidi_logical_to_visual): Likewise.
23963 (grub_unicode_mirror_code): Likewise.
23964 (grub_unicode_shape_code): Likewise.
23965 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23966 Don't use grub_putchar.
23967 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23968 (grub_normal_reader_init): Likewise.
23969 (grub_xputs_saved): New variable.
23970 (GRUB_MOD_INIT): Set grub_xputs.
23971 (GRUB_MOD_FINI): Restore grub_xputs.
23972 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23973 (menu_init): Avoid printing gfxmenu error.
23974 (show_menu): Use grub_normal_get_char_counter.
23975 * normal/menu_entry.c (update_screen): Fix out-of-array.
23976 (complete): Avoid NULL dereferencing.
23977 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23978 * normal/menu_text.c (print_spaces): Removed.
23979 (grub_print_ucs4): Likewise.
23980 (grub_print_message_indented): Use grub_print_ucs4.
23981 (print_message): Use grub_putcode.
23982 (print_entry): Hanlde diacritics.
23983 * normal/term.c (term_state): New type.
23984 (grub_more_lines): Removed.
23985 (term_states): New variable.
23986 (grub_normal_line_counter): Renamed to ..
23987 (grub_normal_char_counter): ...this. All users updated.
23988 (grub_normal_get_line_counter): Renamed to ...
23989 (grub_normal_get_char_counter): ... this.
23990 (grub_normal_reset_more): New function.
23991 (process_newline): Removed.
23992 (print_more): New function.
23993 (grub_install_newline_hook): Removed.
23994 (map_code): New function.
23995 (grub_puts_terminal): Use grub_print_ucs4.
23996 (putglyph): New function.
23997 (putcode_real): Likewise.
23998 (grub_putcode): Use putcode_real.
23999 (get_maxwidth): New function.
24000 (get_startwidth): Likewise.
24001 (print_ucs4_terminal): Likewise.
24002 (find_term_state): Likewise.
24003 (put_glyphs_terminal): Likewise.
24004 (print_backlog): Likewise.
24005 (print_ucs4_real): Likewise.
24006 (grub_print_ucs4): Likewise.
24007 (grub_xputs_normal): Likewise.
24008 * term/efi/console.c (grub_console_putchar): Output diacritics.
24009 (grub_console_getcharwidth): Removed.
24010 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
24011 * term/gfxterm.c (clear_char): Free chars.
24012 (scroll_up): Avoid leaking memory.
24013 (grub_gfxterm_putchar): Support diacritics.
24014 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
24015 * term/i386/pc/console.c (grub_console_term_output): Declare as
24016 GRUB_TERM_CODE_TYPE_VGA.
24017 * term/i386/pc/vga.c (grub_vga_term): Declare as
24018 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
24019 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
24020 GRUB_TERM_CODE_TYPE_VGA.
24021 * term/i386/vga_common.c (map_char): Removed.
24022 (grub_console_putchar): Likewise.
24023 (grub_console_getcharwidth): Likewise.
24024 * term/ieee1275/ofconsole.c: Simplify using terminfo.
24025 (colors): Reordered to match terminfo.
24026 (grub_ofconsole_normal_color): Removed.
24027 (grub_ofconsole_writeesc): Likewise.
24028 (grub_ofconsole_highlight_color): Likewise.
24029 (grub_ofconsole_getcharwidth): Likewise.
24030 (grub_ofconsole_setcolorstate): Likewise.
24031 (grub_ofconsole_setcolor): Likewise.
24032 (grub_ofconsole_getcolor): Likewise.
24033 (grub_ofconsole_readkey): Renamed to ...
24034 (readkey): ... this. Remove escape sequence handling. Return -1 on no
24035 key.
24036 (grub_ofconsole_checkkey): Removed.
24037 (grub_ofconsole_getkey): Likewise.
24038 (grub_ofconsole_getxy): Likewise.
24039 (grub_ofconsole_gotoxy): Likewise.
24040 (grub_ofconsole_cls): Likewise.
24041 (grub_ofconsole_refresh): Likewise.
24042 (grub_ofconsole_terminfo_input): New struct.
24043 (grub_ofconsole_terminfo_output): Likewise.
24044 (grub_ofconsole_term_input): Use terminfo.
24045 (grub_ofconsole_term_output): Likewise.
24046 (grub_console_init): Split into ...
24047 (grub_console_init_early): ...this and ...
24048 (grub_console_init_lately): ...this. Use terminfo.
24049 (grub_ofconsole_putchar): Renamed to ...
24050 (put): ... this. Remove mapping.
24051 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
24052 * term/serial.c: Simplify using terminfo.
24053 (xpos): Removed.
24054 (ypos): Likewise.
24055 (keep_track): Likewise.
24056 (registered): Likewise.
24057 (input_buf): Likewise.
24058 (npending): Likewise.
24059 (serial_translate_key_sequence): Likewise.
24060 (fill_input_buf): Likewise.
24061 (grub_serial_checkkey): Likewise.
24062 (grub_serial_getkey): Likewise.
24063 (grub_serial_getxy): Likewise.
24064 (grub_serial_gotoxy): Likewise.
24065 (grub_serial_putchar): Likewise.
24066 (grub_serial_cls): Likewise.
24067 (grub_serial_setcolorstate): Likewise.
24068 (grub_serial_setcursor): Likewise.
24069 (serial_hw_init): Use serial_hw_fetch.
24070 (grub_serial_terminfo_input): New variable.
24071 (grub_serial_terminfo_output): Likewise.
24072 (grub_serial_term_input): Use terminfo.
24073 (grub_serial_term_output): Likewise.
24074 * term/terminfo.c (putstr): Use put.
24075 (grub_terminfo_all_free): New function
24076 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
24077 (grub_terminfo_output_register): New function.
24078 (grub_terminfo_output_unregister): Likewise.
24079 (grub_terminfo_getxy): Likewise.
24080 (grub_terminfo_readkey): Likewise.
24081 (grub_terminfo_checkkey): Likewise.
24082 (grub_terminfo_getkey): Likewise.
24083 (grub_terminfo_input_init): Likewise.
24084 (print_terminfo): Likewise.
24085 (grub_cmd_terminfo): Handle encoding.
24086 (grub_terminfo_gotoxy): Track position.
24087 (grub_terminfo_cls): Likewise.
24088 (grub_terminfo_putchar): Likewise.
24089 (grub_terminfo_setcolorstate): Handle colors
24090 (grub_terminfo_cursor_on): This ...
24091 (grub_terminfo_cursor_off): ... and this merged into ...
24092 (grub_terminfo_setcursor): ... this.
24093 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
24094 * unicode/ArabicShaping.txt: New file (imported from Unicode).
24095 * unicode/BidiMirroring.txt: Likewise.
24096 * unicode/UnicodeData.txt: Likewise.
24097 * unicode/COPYING: Likewise.
24098 * util/grub-editenv.c (grub_putchar): Removed.
24099 (grub_xputs_real): New function.
24100 (grub_xputs): New variable.
24101 * util/grub-fstest.c (grub_putchar): Removed.
24102 (grub_xputs_real): New function.
24103 (grub_xputs): New variable.
24104 * util/grub-mkdevicemap.c (grub_putchar): Removed.
24105 (grub_xputs_real): New function.
24106 (grub_xputs): New variable.
24107 * util/grub-probe.c (grub_putchar): Removed.
24108 (grub_xputs_real): New function.
24109 (grub_xputs): New variable.
24110 * util/grub-script-check.c (grub_putchar): Removed.
24111 (grub_xputs_real): New function.
24112 (grub_xputs): New variable.
24113 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
24114 (grub_xputs_real): New function.
24115 (grub_xputs): New variable.
24116 * util/import_unicode.py: New file.
24117 * util/grub-mkfont.c (ft_errmsgs): New array.
24118 (grub_glyph_info): Make bitmap a pointer.
24119 (file_formats): New type WIDTH_SPEC.
24120 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
24121 (options): Add width-spec.
24122 (help): Likewise.
24123 (add_char): Renamed to ...
24124 (add_glyph): ... this.
24125 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
24126 (glyph_replace): New type.
24127 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
24128 (add_char): New function.
24129 (add_subst): Likewise.
24130 (process_cursive): Likewise.
24131 (add_font): Handle GSUB.
24132 (write_font_width_spec): New function.
24133 (main): Sort glyphs.
24134 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
24135 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
24136 * kern/term.c (grub_cls): Moved from here...
24137 * normal/term.c (grub_cls): ... here.
24138
50f0bcda
CW
241392010-07-02 Colin Watson <cjwatson@ubuntu.com>
24140
24141 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
24142 suitable for using within the format argument of printf when
24143 converting grub_size_t.
24144 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
24145 "x" to convert grub_size_t arguments.
24146
40372103
VS
241472010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24148
24149 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
24150 too long captions.
24151 (list_get_minimal_size): Take selection box into account.
24152
942a10c7
VS
241532010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24154
24155 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
24156 NULL font.
24157
2bdb2892
CW
241582010-07-02 Colin Watson <cjwatson@ubuntu.com>
24159
24160 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
24161 devices when iterating over /dev/disk/by-id; they will be handled
24162 later if appropriate, which they aren't always (e.g. LVM).
24163
e03ed6c1
CW
241642010-07-02 Colin Watson <cjwatson@ubuntu.com>
24165
24166 * include/grub/misc.h (grub_reboot): Declare as noreturn.
24167 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
24168 fails.
24169 (grub_halt): Likewise.
24170 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
24171 reset-all fails.
24172 (grub_halt): Don't return, even if all of shut-down, power-off, and
24173 poweroff fail.
24174
47695765
CW
241752010-07-02 Colin Watson <cjwatson@ubuntu.com>
24176
24177 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
24178 arguments, not three.
24179
507736c8
CW
241802010-07-02 Colin Watson <cjwatson@ubuntu.com>
24181
24182 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
24183 * util/grub.d/10_linux.in: Use it to check for LVM, so that
24184 LVM-on-RAID is handled correctly.
24185
e3c8cd37
CW
241862010-07-02 Colin Watson <cjwatson@ubuntu.com>
24187
24188 * docs/grub.texi (Changes from GRUB Legacy): New section.
24189 (Future): Fix typo.
24190
8d4a2fec
CW
241912010-07-02 Colin Watson <cjwatson@ubuntu.com>
24192
24193 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
24194 grub.d/README accidentally ends up executable for one reason or
24195 another. Ignore it.
24196
1c4827be
VS
241972010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24198
24199 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
24200 (gpt_partition_map_iterate): Support non-512B sectors.
24201
d9a0c941
VS
242022010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24203
24204 * kern/efi/init.c (grub_efi_init): Disable watchdog.
24205 Tested by: Seth Goldberg.
24206
48f27e87
VS
242072010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24208
24209 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
24210 Properly align mbi.
24211 Reported by: Seth Goldberg.
24212
b0c4f956
VS
242132010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24214
24215 * util/grub-mkrescue.in: Avoid module duplication.
24216
105a2e8c
SF
242172010-07-01 Sean Finney <seanius@seanius.net>
24218
24219 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
24220
5944958c
SF
242212010-07-01 Sean Finney <seanius@seanius.net>
24222
24223 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
24224
242252010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24226
24227 * disk/lvm.c (grub_lvm_checkvalue): New function.
24228 (grub_lvm_check_flag): Likewise.
24229
b79889ba
RM
242302010-07-01 Robert Millan <rmh@gnu.org>
24231
24232 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
24233 Support 'p' as partition separator on kernel of FreeBSD (used
24234 with GPT labels).
24235 (grub_util_biosdisk_get_grub_dev): Likewise.
24236
ec1d04f1
VS
242372010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24238
24239 Yeeloong firmware port.
24240
24241 * boot/mips/yeeloong/fwstart.S: New file.
24242 * bus/cs5536.c (gpiodump): New const.
24243 (set_io_space): New function.
24244 (set_iod): Likewise.
24245 (set_p2d): Likewise.
24246 (grub_cs5536_init_geode): Likewise.
24247 * commands/mips/yeeloong/lsspd.c: New file.
24248 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
24249 (serial_mod_SOURCES): New variable.
24250 (serial_mod_CFLAGS): Likewise.
24251 (serial_mod_LDFLAGS): Likewise.
24252 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
24253 term/terminfo.c and term/tparm.c.
24254 (pkglib_IMAGES): Add fwstart.img.
24255 (fwstart_img_SOURCES): New variable.
24256 (fwstart_img_CFLAGS): Likewise.
24257 (fwstart_img_ASFLAGS): Likewise.
24258 (fwstart_img_LDFLAGS): Likewise.
24259 (fwstart_img_FORMAT): Likewise.
24260 (pkglib_MODULES): Add lsspd.mod.
24261 (lsspd_mod_SOURCES): New variable.
24262 (lsspd_mod_CFLAGS): Likewise.
24263 (lsspd_mod_LDFLAGS): Likewise.
24264 (pkglib_MODULES): Add halt.mod.
24265 (halt_mod_SOURCES): New variable.
24266 (halt_mod_CFLAGS): Likewise.
24267 (halt_mod_LDFLAGS): Likewise.
24268 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
24269 (serial_mod_SOURCES): Removed.
24270 (serial_mod_CFLAGS): Likewise.
24271 (serial_mod_LDFLAGS): Likewise.
24272 * disk/ata.c (check_device): New function.
24273 (grub_ata_device_initialize): Use check_device.
24274 (grub_ata_iterate): Recheck devices.
24275 (grub_ata_open): Likewise.
24276 (grub_atapi_iterate): Likewise.
24277 (grub_atapi_open): Likewise.
24278 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
24279 (GRUB_ATA_CH1_PORT1): Likewise.
24280 (GRUB_ATA_CH0_PORT2): Likewise.
24281 (GRUB_ATA_CH1_PORT2): Likewise.
24282 * include/grub/mips/loongson.h: New file.
24283 * include/grub/mips/yeeloong/ec.h: Likewise.
24284 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
24285 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
24286 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
24287 * include/grub/misc.h (grub_halt): Declare as noreturn.
24288 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
24289 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
24290 (UART_ENABLE_FIFO_TRIGGER1): New definition.
24291 (UART_ENABLE_DTRRTS): Likewise.
24292 (UART_ENABLE_MODEM): Removed.
24293 (UART_ENABLE_OUT2): New const.
24294 * include/grub/term.h (grub_term_register_input_active): New function.
24295 (grub_term_register_output_active): Likewise.
24296 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
24297 argument.
24298 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
24299 (init_pci): New function.
24300 (grub_machine_init): Execute platform init when firmware. Init serial.
24301 (grub_halt): Implement.
24302 (grub_exit): Likewise.
24303 (grub_reboot): Likewise.
24304 * term/serial.c (serial_hw_init): Update macros.
24305 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
24306 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
24307 (image_targets): New target mipsel-yeeloong-flash.
24308 (generate_image): Support IMAGE_YEELOONG_FLASH.
24309 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
24310 (grub_video_sm712_setup): Init card.
24311 (grub_video_sm712_set_palette): Removed.
24312 * video/sm712_init.c: New file.
24313
ff4a70d2
CW
243142010-06-30 Colin Watson <cjwatson@ubuntu.com>
24315
24316 * Makefile.in (install-local): Temporarily prepend $(builddir) to
24317 PATH when running help2man and then run it on the unadorned
24318 executable names, rather than passing $(builddir)/* paths to
24319 help2man. This avoids the build directory ending up in generated
24320 manual pages.
24321
1246efeb
CW
243222010-06-29 Colin Watson <cjwatson@ubuntu.com>
24323
24324 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
24325 to avoid accidents when debugging with 'sh -x'.
24326 * util/grub-mkrescue.in: Likewise.
24327 * util/grub.d/00_header.in: Likewise.
24328 * util/grub.d/10_hurd.in: Likewise.
24329 * util/grub.d/10_kfreebsd.in: Likewise.
24330 * util/grub.d/10_linux.in: Likewise.
24331 * util/grub.d/10_netbsd.in: Likewise.
24332 * util/grub.d/10_windows.in: Likewise.
24333 * util/grub.d/20_linux_xen.in: Likewise.
24334 * util/grub.d/30_os-prober.in: Likewise.
24335 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24336
1ba9b889
CW
243372010-06-29 Colin Watson <cjwatson@ubuntu.com>
24338
24339 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
24340 last character in the buffer.
24341 Reported by: Vladimir Serbinenko.
24342
dccaf99d
RM
243432010-06-29 Robert Millan <rmh@gnu.org>
24344
24345 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
24346 (Command-line and menu entry commands): Document `badram' command.
24347
d500ed12
RM
243482010-06-28 Robert Millan <rmh@gnu.org>
24349
24350 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
24351 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
24352 command using ${GRUB_BADRAM} as parameter.
24353
20bc84a6
CW
243542010-06-28 Colin Watson <cjwatson@ubuntu.com>
24355
24356 * docs/grub.texi (Device map): New section.
24357 (Themes): New section (stub).
24358 * Makefile.in (docs/grub.info): The info documentation now builds
24359 without errors. Make sure it stays that way.
24360
4045dee1
VS
243612010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24362
24363 Use normal parser for menu entries.
24364 Reported by: Thomas Frauendorfer
24365
24366 * include/grub/parser.h (grub_parser_execute): Don't export.
24367 * normal/menu.c (grub_menu_execute_entry_real): New function.
24368 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
24369
bca58c7b
CW
243702010-06-28 Colin Watson <cjwatson@ubuntu.com>
24371
24372 * docs/grub.texi (Embedded configuration): New section (replacing
24373 old "Preset Menu" stub).
24374 (Images): New section.
24375 (configfile): Note that any menu entries defined in `file' are shown
24376 immediately.
24377
dec53e63
JT
243782010-06-28 Josh Triplett <josh@joshtriplett.org>
24379
24380 * mmap/i386/pc/mmap_helper.S: Set CF on return.
24381
c06e40f7
CW
243822010-06-28 Colin Watson <cjwatson@ubuntu.com>
24383
24384 * util/grub-install.in: Add --debug-image= option.
24385
cb88052b
CW
243862010-06-28 Colin Watson <cjwatson@ubuntu.com>
24387
24388 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
24389 possible on Linux.
24390
24391 * util/deviceiter.c (check_device): Rename to ...
24392 (check_device_readable_unique): ... this. Update all callers.
24393 Maintain and check a list of which devices (by canonicalized name)
24394 have already been seen.
24395 (clear_seen_devices): New function.
24396 (compare_file_names) [__linux__]: New function.
24397 (grub_util_iterate_devices): Clear the list of seen devices on exit
24398 and (just in case) on entry.
24399 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
24400 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
24401 seen-devices list, superseded by general code in check_device.
24402
bbe34652
CW
244032010-06-28 Colin Watson <cjwatson@ubuntu.com>
24404
24405 * commands/cat.c (options): New variable.
24406 (grub_cmd_cat): Parse options. If the --dos option is given, print
24407 DOS-style "\r\n" line endings as simple newlines (Debian bug
24408 #586358).
24409 (GRUB_MOD_INIT): Use extcmd.
24410 (GRUB_MOD_FINI): Likewise.
24411 * docs/grub.texi (cat): Document --dos.
24412
412e09f3
VS
244132010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24414
24415 XEN with Linux grub-mkconfig support.
24416
24417 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
24418 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
24419 GRUB_CMDLINE_XEN_DEFAULT.
24420 * util/grub.d/20_linux_xen.in: New file.
24421
53f3ef38 244222010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
24423
24424 Initialise VGA video on qemu ourselves.
24425
24426 * boot/i386/qemu/boot.S: Don't call 0xc000.
24427 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
24428 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
24429 (kernel_img_HEADERS): Add pci.h.
24430 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
24431 * configure.ac: Force unifont on qemu and yeeloong.
24432 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
24433 (grub_vga_palette_write): Use correct register.
24434 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
24435 Call grub_qemu_init_cirrus.
24436 * kern/i386/qemu/init.c: New file.
24437 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
24438
24439 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
24440
c75be4fb
PR
244412010-06-26 Pavel Roskin <proski@gnu.org>
24442
24443 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
24444 13.
24445
d8034603
CW
244462010-06-26 Colin Watson <cjwatson@ubuntu.com>
24447
24448 * docs/grub.texi (Simple configuration): Explain that
24449 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
24450 set to `true' to disable their respective recovery entries, not
24451 merely set.
24452
3fa06487
CW
244532010-06-26 Colin Watson <cjwatson@ubuntu.com>
24454
24455 Make the `source' command slightly faster.
24456
24457 * normal/main.c (grub_normal_execute): Don't re-read list files when
24458 nested.
24459
e9b29642
CW
244602010-06-23 Colin Watson <cjwatson@ubuntu.com>
24461
24462 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
24463 field position and mask size to red fields from mode_info, not
24464 green.
24465 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
24466 Remove redundant tag->common.framebuffer_type assignment.
24467 Reported by: Seth Goldberg.
24468
e726542f
CW
244692010-06-23 Colin Watson <cjwatson@ubuntu.com>
24470
24471 Sync up other versions of the Linux loader with Robert Millan's
24472 change of 2010-01-09, "Make loader output a bit more user-friendly".
24473
24474 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
24475 grub_dprintf().
24476 (grub_cmd_linux): Likewise.
24477 (grub_cmd_initrd): Likewise.
24478 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
24479 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24480
d6e98a17
CW
244812010-06-21 Colin Watson <cjwatson@ubuntu.com>
24482
24483 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
24484 larger than MEMORY_MAP_SIZE.
24485
14d3f08e
BC
244862010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
24487
24488 Fix parallel build.
24489
24490 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
24491 dependency.
24492 * script/parser.y: #include grub_script.tab.h header.
24493
4f9613a3
VS
244942010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24495
24496 Support >3GiB and <16MiB RAM in i386-qemu.
24497
24498 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
24499 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
24500 (grub_lower_mem): Removed.
24501 (grub_upper_mem): Likewise.
24502 (mem_size): Made static.
24503 (above_4g): New variable.
24504 (grub_machine_mmap_init): Detect small mem_size and above_4g.
24505 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
24506 support.
24507
05e51879
VS
245082010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24509
24510 Cirrus 5446 and Bochs video cards support.
24511
24512 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
24513 video_bochs.mod
24514 (video_cirrus_mod_SOURCES): New variable.
24515 (video_cirrus_mod_CFLAGS): Likewise.
24516 (video_cirrus_mod_LDFLAGS): Likewise.
24517 (video_bochs_mod_SOURCES): Likewise.
24518 (video_bochs_mod_CFLAGS): Likewise.
24519 (video_bochs_mod_LDFLAGS): Likewise.
24520 * include/grub/vga.h: New file.
24521 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
24522 (grub_video_fb_set_page_t): New type.
24523 (grub_video_fb_setup): New prototype.
24524 (grub_video_fb_swap_buffers): Likewise.
24525 (grub_video_fb_get_info_and_fini): Likewise.
24526 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
24527 (CRTC_DATA_PORT): Likewise.
24528 (CRTC_CURSOR): Likewise.
24529 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24530 (CRTC_CURSOR_ADDR_LOW): Likewise.
24531 (CRTC_CURSOR_DISABLE): Likewise.
24532 (update_cursor): Use grub_vga_cr_write.
24533 (grub_vga_text_setcursor): Likewise.
24534 * video/bochs.c: New file.
24535 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
24536 (palette): Likewise.
24537 (palette_size): Likewise.
24538 (framebuffer): New variable.
24539 (grub_video_fb_init): Use 'framebuffer'.
24540 (grub_video_fb_fini): Likewise.
24541 (grub_video_fb_get_info): Likewise.
24542 (grub_video_fb_get_palette): Likewise.
24543 (grub_video_fb_set_palette): Likewise.
24544 (grub_video_fb_set_viewport): Likewise.
24545 (grub_video_fb_get_viewport): Likewise.
24546 (grub_video_fb_map_color): Likewise.
24547 (grub_video_fb_map_rgb): Likewise.
24548 (grub_video_fb_map_rgba): Likewise.
24549 (grub_video_fb_unmap_color): Likewise.
24550 (grub_video_fb_unmap_color_int): Likewise.
24551 (grub_video_fb_fill_rect): Likewise.
24552 (grub_video_fb_blit_bitmap): Likewise.
24553 (grub_video_fb_blit_render_target): Likewise.
24554 (grub_video_fb_scroll): Likewise.
24555 (grub_video_fb_create_render_target): Likewise.
24556 (grub_video_fb_doublebuf_blit_init): Likewise.
24557 (grub_video_fb_set_active_render_target): Handle doublebuffering.
24558 (doublebuf_pageflipping_update_screen): New function.
24559 (doublebuf_pageflipping_init): Likewise.
24560 (grub_video_fb_setup): Likewise.
24561 (grub_video_fb_swap_buffers): Likewise.
24562 (grub_video_fb_get_info_and_fini): Likewise.
24563 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
24564 All users updated.
24565 (doublebuf_pageflipping_commit): Restructured into ...
24566 (doublebuf_pageflipping_set_page): ... this.
24567 (doublebuf_pageflipping_update_screen): Removed.
24568 (doublebuf_pageflipping_init): Likewise.
24569 (double_buffering_init): Likewise.
24570 (grub_video_vbe_setup): Use grub_video_fb_setup.
24571 (grub_video_vbe_swap_buffers): Removed.
24572 (grub_video_vbe_set_active_render_target): Likewise.
24573 (grub_video_vbe_get_active_render_target): Likewise.
24574 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24575 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24576 grub_video_fb_set_active_render_target and
24577 grub_video_fb_get_active_render_target.
24578 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24579 (SEQUENCER_DATA_PORT): Likewise.
24580 (MAP_MASK_REGISTER): Likewise.
24581 (CRTC_ADDR_PORT): Likewise.
24582 (CRTC_DATA_PORT): Likewise.
24583 (START_ADDR_HIGH_REGISTER): Likewise.
24584 (START_ADDR_LOW_REGISTER): Likewise.
24585 (GRAPHICS_ADDR_PORT): Likewise.
24586 (GRAPHICS_DATA_PORT): Likewise.
24587 (READ_MAP_REGISTER): Likewise.
24588 (INPUT_STATUS1_REGISTER): Likewise.
24589 (INPUT_STATUS1_VERTR_BIT): Likewise.
24590 (get_map_mask): Use grub_vga_sr_read.
24591 (set_map_mask): Use grub_vga_sr_write.
24592 (set_read_map): Use grub_vga_gr_write.
24593 (set_start_address): Use grub_vga_cr_write.
24594 * video/sm712.c (framebuffer): Remove leftover fields.
24595
4321c64a
CW
245962010-06-20 Colin Watson <cjwatson@ubuntu.com>
24597
24598 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24599 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24600 instead. Replace the gfxterm backend check with a check that
24601 ${GRUB_PREFIX}/video.lst is non-empty.
24602 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24603 again.
24604 (load_video): New generated function. Call it before loading
24605 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24606 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24607 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24608 * docs/grub.texi (Simple configuration): Document
24609 GRUB_VIDEO_BACKEND.
24610
246112010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24612
24613 Use video functions in linux and xnu loaders.
24614
24615 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24616 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24617 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24618 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24619 loader/i386/pc/linux.c.
24620 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24621 (find_line_len): Removed.
24622 (find_framebuf): Likewise.
24623 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24624 * loader/i386/efi/xnu.c: Removed.
24625 * loader/i386/pc/xnu.c: Moved from here...
24626 * loader/i386/xnu.c: ...here.
24627
24628 Enable priorities in video drivers.
24629
24630 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24631 (grub_video_adapter): New field prio.
24632 (grub_video_register): Respect prio when inserting.
24633 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24634 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24635 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24636 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24637 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24638 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24639 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24640
24641 Fix SDL driver ID.
24642
24643 * include/grub/video.h (grub_video_driver_id_t): New value
24644 GRUB_VIDEO_DRIVER_SDL.
24645 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24646
7d24e434
CW
246472010-06-17 Colin Watson <cjwatson@ubuntu.com>
24648
24649 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24650 argument to printf.
24651 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24652
c88a83f6
CW
246532010-06-17 Colin Watson <cjwatson@ubuntu.com>
24654
24655 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24656 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24657
094dfb69
CW
246582010-06-17 Colin Watson <cjwatson@ubuntu.com>
24659
24660 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24661 directly, and recommend grub-install instead.
24662 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24663
2164da6b
CW
246642010-06-17 Colin Watson <cjwatson@ubuntu.com>
24665
24666 Fix i386-pc prefix handling with nested partitions (Debian bug
24667 #585068). Note that the case where the core image is booted using
24668 multiboot and relocated from its original location still requires
24669 more work.
24670
24671 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24672 with "(,", fill the boot drive in between those two characters, but
24673 expect that a full partition specification including partition map
24674 names will follow.
24675 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24676 specified, write a prefix without the drive name but including a
24677 full partition specification.
24678
044e2e60
CW
246792010-06-16 Colin Watson <cjwatson@ubuntu.com>
24680
24681 * util/grub-mkconfig.in: Ignore non-option arguments, for
24682 compatibility with older versions (before 2010-06-12) which did the
24683 same. In particular, this makes it easier to ship an update-grub
24684 wrapper which is compatible with that used with GRUB Legacy (Debian
24685 bug #586056).
24686
5591324f
GS
246872010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24688
24689 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24690 for manual page generation.
24691
662e24d5
GS
246922010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24693
24694 * po/POTFILES: Remove leftover commands/handler.c.
24695
8d70754e
CW
246962010-06-14 Colin Watson <cjwatson@ubuntu.com>
24697
24698 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24699 left this script non-functional.
24700
41160e2e
CW
247012010-06-14 Colin Watson <cjwatson@ubuntu.com>
24702
24703 * docs/man/grub-emu.h2m: New file.
24704
b5309cc1
CW
247052010-06-13 Colin Watson <cjwatson@ubuntu.com>
24706
24707 * docs/grub.texi (Commands): Document reduced command set in rescue
24708 mode.
24709 (cpuid): New section.
24710
fcb2d090
GS
247112010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24712
24713 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24714 new partition naming style.
24715 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24716
96e5c556
BC
247172010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24718
24719 Add "-o grub.iso" like cmdline options support.
24720
24721 * util/grub-install.in: Improve cmdline option parsing.
24722 * util/grub-mkconfig.in: Likewise.
24723 * util/grub-mkrescue.in: Likewise.
24724 * util/grub-reboot.in: Likewise.
24725 * util/grub-set-default.in: Likewise.
24726 * util/i386/efi/grub-install.in: Likewise.
24727 * util/ieee1275/grub-install.in: Likewise.
24728 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24729
c16be99b
CW
247302010-06-12 Colin Watson <cjwatson@ubuntu.com>
24731
24732 * .bzrignore: Ignore 41_custom.
24733
ce08a9fb
TS
247342010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24735
24736 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24737
7beac90c
CW
247382010-06-12 Colin Watson <cjwatson@ubuntu.com>
24739
24740 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24741 prototype declarations.
24742
24743 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24744 generating fs, partmap, and video lists.
24745 * include/grub/fs.h (grub_fs_register): Omit prototype if
24746 GRUB_LST_GENERATOR is defined.
24747 * include/grub/partition.h (grub_partition_map_register): Likewise.
24748 * include/grub/video.h (grub_video_register): Likewise.
24749
1c8f0f8d
JM
247502010-06-12 Javier Martín <lordhabbit@gmail.com>
24751
24752 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24753
a6085973
TS
247542010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24755
24756 * util/grub-mkrescue.in: Support --xorriso argument.
24757
25c56d29
VS
247582010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24759
24760 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24761 Suggested by: Thomas Schmitt.
24762
e03e4b24
VS
247632010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24764
24765 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24766 Suggested by: Thomas Schmitt.
24767
57711df6
VS
247682010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24769
24770 custom.cfg support.
24771
24772 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24773 * util/grub.d/41_custom.in: New file.
24774
ee62c427
CW
247752010-06-12 Colin Watson <cjwatson@ubuntu.com>
24776
24777 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24778 been merged back into normal.
24779
283af07a
CW
247802010-06-11 Colin Watson <cjwatson@ubuntu.com>
24781
24782 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24783 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
24784
56a0d956
CW
247852010-06-11 Colin Watson <cjwatson@ubuntu.com>
24786
24787 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
24788 when generating manual pages.
24789 * docs/man/grub-bin2h.h2m: New file.
24790 * docs/man/grub-editenv.h2m: New file.
24791 * docs/man/grub-fstest.h2m: New file.
24792 * docs/man/grub-install.h2m: New file.
24793 * docs/man/grub-macho2img.h2m: New file.
24794 * docs/man/grub-mkconfig.h2m: New file.
24795 * docs/man/grub-mkdevicemap.h2m: New file.
24796 * docs/man/grub-mkfont.h2m: New file.
24797 * docs/man/grub-mkimage.h2m: New file.
24798 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
24799 * docs/man/grub-mkrelpath.h2m: New file.
24800 * docs/man/grub-mkrescue.h2m: New file.
24801 * docs/man/grub-ofpathname.h2m: New file.
24802 * docs/man/grub-pe2elf.h2m: New file.
24803 * docs/man/grub-probe.h2m: New file.
24804 * docs/man/grub-reboot.h2m: New file.
24805 * docs/man/grub-script-check.h2m: New file.
24806 * docs/man/grub-set-default.h2m: New file.
24807 * docs/man/grub-setup.h2m: New file.
24808
3a37e322
VS
248092010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
24810
24811 Use FOR_* macros instead of *_iterate whenever possible.
24812
24813 * commands/handler.c: Removed.
24814 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
24815 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
24816 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24817 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
24818 (grub_probe_SOURCES): Remove kern/parser.c.
24819 (util/grub-script-check.c_DEPENDENCIES): Removed.
24820 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
24821 and grub_script_check_init.c.
24822 (grub_script_check_init.lst): Removed.
24823 (grub_script_check_init.h): Likewise.
24824 (grub_script_check_init.c): Likewise.
24825 (pkglib_MODULES): Remove handler.mod and sh.mod.
24826 (handler_mod_SOURCES): Removed.
24827 (handler_mod_CFLAGS): Likewise.
24828 (handler_mod_LDFLAGS): Likewise.
24829 (normal_mod_SOURCES): Remove normal/handler.c.
24830 Add script/main.c, script/script.c, script/execute.c,
24831 script/function.c, script/lexer.c, grub_script.tab.c
24832 and grub_script.yy.c.
24833 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24834 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24835 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
24836 (grub_setup_SOURCES): Remove kern/parser.c.
24837 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24838 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
24839 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24840 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24841 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24842 (grub_setup_SOURCES): Remove kern/parser.c.
24843 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24844 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
24845 * include/grub/command.h (grub_command_iterate): Removed.
24846 (FOR_COMMANDS): New macro.
24847 * include/grub/dl.h (grub_dl): New member next.
24848 (grub_dl_iterate): Removed.
24849 (grub_dl_head): New variable declaration.
24850 (FOR_DL_MODULES): New macro.
24851 * include/grub/fs.h: Include list.h.
24852 (grub_fs): Make next first element.
24853 (grub_fs_list): New variable declaration.
24854 (grub_fs_register): Make inline.
24855 (grub_fs_unregister): Likewise.
24856 (grub_fs_iterate): Removed.
24857 (FOR_FILESYSTEMS): New macro.
24858 * include/grub/handler.h: Removed.
24859 * include/grub/list.h (grub_list_hook_t): Removed.
24860 (grub_list_test_t): Likewise.
24861 (grub_list_pop): Likewise.
24862 (grub_list_iterate): Likewise.
24863 (grub_list_insert): Likewise.
24864 (FOR_LIST_ELEMENTS): New macro.
24865 * include/grub/parser.h (grub_parser_class): Removed.
24866 (grub_parser_register): Likewise.
24867 (grub_parser_unregister): Likewise.
24868 (grub_parser_get_current): Likewise.
24869 (grub_parser_set_current): Likewise.
24870 (grub_register_rescue_parser): Likewise.
24871 (grub_rescue_parse_line): New function.
24872 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24873 * include/grub/script_sh.h (grub_script_function_list): New variable
24874 declaration.
24875 (FOR_SCRIPT_FUNCTIONS): New macro.
24876 (grub_script_function_iterate): Removed.
24877 (grub_normal_parse_line): New prototype.
24878 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24879 (FOR_DISABLED_TERM_INPUTS): Likewise.
24880 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24881 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24882 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24883 element.
24884 (grub_video_register): Inline.
24885 (grub_video_unregister): Likewise.
24886 (grub_video_adapter_list): New variable declaration.
24887 (grub_video_iterate): Removed.
24888 (FOR_VIDEO_ADAPTERS): New macro.
24889 * kern/dl.c (grub_dl_list): Removed. All users updated.
24890 (grub_dl_iterate): Removed.
24891 * kern/fs.c (grub_fs_list): Make global.
24892 (grub_fs_register): Removed.
24893 (grub_fs_unregister): Likewise.
24894 (grub_fs_iterate): Likewise.
24895 * kern/handler.c: Removed.
24896 * kern/list.c (grub_list_pop): Removed.
24897 (grub_list_iterate): Likewise.
24898 (grub_list_insert): Likewise.
24899 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24900 (grub_prio_list_insert): Don't use grub_list_insert.
24901 * kern/main.c (grub_register_rescue_parser): Don't call
24902 grub_register_rescue_parser.
24903 * kern/parser.c (grub_parser_class): Removed.
24904 (grub_parser_execute): Use grub_rescue_parse_line.
24905 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24906 (grub_rescue_parser): Removed.
24907 (grub_register_rescue_parser): Likewise.
24908 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24909 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24910 (grub_auth_check_authentication): Likewise.
24911 * normal/completion.c (iterate_command): Removed.
24912 (grub_normal_do_completion): Use FOR_COMMANDS.
24913 * normal/handler.c: Removed.
24914 * normal/main.c (read_config_file): Remove parser changing.
24915 (grub_normal_execute): Don't call read_handler_list.
24916 (grub_normal_read_line_real): Statically allocate prompt.
24917 (grub_cmdline_run): Use grub_normal_parse_line.
24918 (GRUB_MOD_FINI): Don't call free_handler_list.
24919 * normal/menu_entry.c (run): Likewise.
24920 * script/function.c (grub_script_function_list): Make global.
24921 (grub_script_function_iterate): Removed.
24922 * script/main.c (grub_normal_parse_line): Make global.
24923 (grub_sh_parser): Removed.
24924 (GRUB_MOD_INIT): Likewise.
24925 (GRUB_MOD_FINI): Likewise.
24926 * tests/lib/functional_test.c (grub_functional_test): Use
24927 FOR_LIST_ELEMENTS.
24928 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24929 (grub_test_run): Use FOR_LIST_ELEMENTS.
24930 * tests/lib/unit_test.c (main): Likewise.
24931 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24932 grub_list_pop.
24933 * util/grub-fstest.c (grub_term_input_class): Removed.
24934 (grub_term_output_class): Likewise.
24935 * util/grub-probe.c: Likewise.
24936 * util/i386/pc/grub-setup.c: Likewise.
24937 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24938 * util/grub-script-check.c (main): Don't call grub_init_all and
24939 grub_fini_all.
24940 * video/video.c (grub_video_adapter_list): Make global.
24941 (grub_video_register): Removed.
24942 (grub_video_unregister): Likewise.
24943 (grub_video_iterate): Likewise.
24944
6289c3a7
VS
249452010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24946
24947 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24948 reported by Henrique Ferreiro.
24949
91460247
RM
249502010-06-09 Robert Millan <rmh@gnu.org>
24951
24952 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24953 ones, when both are available.
24954
0ea7c4f9
GS
249552010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24956
24957 Make --version uniform and avoid hard-coded program name.
24958
24959 * util/grub-mkimage.c (main): Use `program_name' instead of
24960 hard-coded string.
24961 * util/i386/pc/grub-setup.c (main): Likewise.
24962 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24963 * util/grub-install.in: Save the basename of $0 in $self, and use the
24964 latter in informational messages. Use the same format for --version
24965 as the binary programs.
24966 * util/grub-mkconfig.in: Likewise.
24967 * util/grub-mkrescue.in: Likewise.
24968 * util/grub-reboot.in: Likewise.
24969 * util/grub-set-default.in: Likewise.
24970 * util/i386/efi/grub-install.in: Likewise.
24971 * util/ieee1275/grub-install.in: Likewise.
24972 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24973
e8a6f3b6
GS
249742010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24975
24976 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24977 embedding area. Use <= instead of == when checking for non-emptiness.
24978
f4d095d7
GS
249792010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24980
24981 * configure.ac: Add `.' to the directories searched for unifont.
24982
50e532ca
CW
249832010-06-08 Colin Watson <cjwatson@ubuntu.com>
24984
24985 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24986 grub_script.yy.h.
24987
d39f3dec
CW
249882010-06-08 Colin Watson <cjwatson@ubuntu.com>
24989
24990 * docs/grub.texi (History): Expand to cover GRUB 2.
24991 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24992 commands, not `terminal'.
24993 (serial): Likewise.
24994 (terminal_input): New section.
24995 (terminal_output): New section.
24996 (uppermem): New section (stub).
24997 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24998
6ef0ddb4
CW
249992010-06-08 Colin Watson <cjwatson@ubuntu.com>
25000
25001 * docs/grub.texi (Security): Menu entries are unrestricted by
25002 default, not restricted to superusers as I had previously thought.
25003 Reword to account for this.
25004
e0f4c438
CW
250052010-06-07 Colin Watson <cjwatson@ubuntu.com>
25006
25007 * kern/emu/misc.c (device_mapper_null_log): New function.
25008 (grub_device_mapper_supported): New function.
25009 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
25010 prototype.
25011 * kern/emu/hostdisk.c (find_partition_start): Check whether
25012 device-mapper is supported before trying to use it.
25013 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
25014
da908200
CW
250152010-06-07 Colin Watson <cjwatson@ubuntu.com>
25016
25017 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
25018 (File name syntax): Likewise.
25019 (help): --all is no longer supported in GRUB 2. Be more precise
25020 about pattern matching.
25021
fb55c3ac
CW
250222010-06-07 Colin Watson <cjwatson@ubuntu.com>
25023
25024 * normal/completion.c (grub_normal_do_completion): When completing
25025 arguments to "set" and the current word contains an equals sign,
25026 skip to after the equals sign before starting completion.
25027
258c2573
CW
250282010-06-07 Colin Watson <cjwatson@ubuntu.com>
25029
25030 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
25031
ee75515e
CW
250322010-06-07 Colin Watson <cjwatson@ubuntu.com>
25033
25034 * docs/grub.texi (Network): New section.
25035 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
25036 `(nd)' as in GRUB Legacy.
25037 (pxe_unload): New section.
25038
a6a700aa
CW
250392010-06-07 Colin Watson <cjwatson@ubuntu.com>
25040
25041 * docs/grub.texi (Troubleshooting): `echo' is not usually available
25042 in the rescue shell, so recommend using `set' instead. Thanks,
25043 Jordan Uggla.
25044
4003dd38
CW
250452010-06-07 Colin Watson <cjwatson@ubuntu.com>
25046
25047 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
25048 (password): New section.
25049 (password_pbkdf2): New section.
25050 (search): New section.
25051 (Security): New section.
25052 (Troubleshooting): New section, currently very incomplete.
25053 (Invoking grub-mkpasswd-pbkdf2): New section.
25054 (Internals): New section, currently very incomplete.
25055
e1cbcc40
CW
250562010-06-07 Colin Watson <cjwatson@ubuntu.com>
25057
25058 * util/grub.d/00_header.in: Add some more quoting (of
25059 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
25060 work again.
25061 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
25062
db8fa1ad
CW
250632010-06-07 Colin Watson <cjwatson@ubuntu.com>
25064
25065 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
25066 to `count', fixing variable shadowing that broke the -c option.
25067
250682010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
25069
25070 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
25071 in case they contain spaces.
25072
f28a9212
CW
250732010-06-04 Colin Watson <cjwatson@ubuntu.com>
25074
25075 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
25076 "part_" to partmap module names, in line with grub-install.
25077 Reported by: Jindřich Makovička (Debian bug #584426).
25078
9cdfe32f
CW
250792010-06-04 Colin Watson <cjwatson@ubuntu.com>
25080
25081 * util/grub-mkimage.c: Make target-related error messages slightly
25082 more helpful; -O talks about "format". Explicitly point to the use
25083 of -O if no target is specified.
25084 Reported by: Didier Raboud (Debian bug #584415).
25085
795b593a
CW
250862010-06-03 Colin Watson <cjwatson@ubuntu.com>
25087
25088 * INSTALL: Document several build requirements for optional features
25089 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
25090
9d9b5833
GS
250912010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
25092
25093 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
25094 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
25095 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
25096
0819fec8
CW
250972010-06-02 Colin Watson <cjwatson@ubuntu.com>
25098
25099 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
25100 Thanks to Jordan Uggla for spotting this.
25101
49396b4f
VS
251022010-06-02 Aleš Nesrsta <starous@volny.cz>
25103
25104 Finally make USB usable.
25105
25106 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
25107 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
25108 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
25109 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
25110 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
25111 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
25112 (GRUB_OHCI_FSMPS): Likewise.
25113 (GRUB_OHCI_PERIODIC_START): Likewise.
25114 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
25115 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
25116 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
25117 (GRUB_OHCI_SET_PORT_RESET): Likewise.
25118 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
25119 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
25120 (grub_ohci_transaction): Likewise.
25121 (grub_ohci_transfer): Improve condition detection algorithms.
25122 Handle toggle property. Program the transactions correctly.
25123 Improve error handling. Various important fixups.
25124 (grub_ohci_portstatus): Put register writes in right order.
25125 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
25126 (grub_uhci_transfer): Don't show "failed" message on success.
25127 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
25128 array.
25129 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
25130 determine its size.
25131 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
25132 before initialization is completed. Use IN direction for empty
25133 transfers. Use last_trans and compute toggle.
25134 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
25135 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
25136 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
25137 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
25138 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
25139 (grub_usb_device): Increase toggle to 256.
25140 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
25141 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
25142 GRUB_USBMS_SUBCLASS_SFF8070.
25143 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
25144 (grub_scsi_inquiry): New member page and alloc_length.
25145 (grub_scsi_request_sense): New structure.
25146 (grub_scsi_request_sense_data): Likewise.
25147 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
25148 control.
25149 * disk/scsi.c (grub_scsi_request_sense): New function.
25150 (grub_scsi_test_unit_ready): Likewise.
25151 (grub_scsi_inquiry): Fill new fields.
25152 (grub_scsi_read_capacity): Likewise.
25153 (grub_scsi_read10): Add request sense at the end.
25154 (grub_scsi_read12): Likewise.
25155 (grub_scsi_write10): Likewise.
25156 (grub_scsi_write12): Likewise.
25157 (grub_scsi_open): Add Test Unit Ready.
25158 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
25159 Support additional subclasses. Con't clear halt yet. Activate the
25160 proper config. Calculate LUNs correctly.
25161 (grub_usbms_transfer): Various important fixups.
25162
251632010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25164
25165 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
25166 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
25167 (grub_ohci_fini_hw): New function.
25168 (grub_ohci_restore_hw): Likewise.
25169 (GRUB_MOD_INIT(ohci)): Register preboot hook.
25170 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
25171 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
25172
251732010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25174
25175 Dedicated DMA allocations.
25176
25177 * bus/pci.c (grub_memalign_dma32): New function
25178 (grub_dma_free): Likewise.
25179 (grub_dma_get_virt): Likewise.
25180 (grub_dma_get_phys): Likewise.
25181 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
25182 (grub_ohci_pci_iter): Use dma32_alloc.
25183 (grub_ohci_transfer): Likewise.
25184 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
25185 (grub_usb_bulk_readwrite): Likewise.
25186 * include/grub/pci.h: Add declarations.
25187
251882010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25189
25190 CS5536 support.
25191
25192 * bus/cs5536.c: New file.
25193 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
25194 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
25195 (cs5536_mod_SOURCES): New variable.
25196 (cs5536_mod_CFLAGS): Likewise.
25197 (cs5536_mod_LDFLAGS): Likewise.
25198 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
25199 machine/pci.h.
25200 (kernel_img_SOURCES): Add bus/cs5536.c.
25201 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
25202 usb_keyboard.mod.
25203 (usb_mod_SOURCES): New variable.
25204 (usb_mod_CFLAGS): New variable.
25205 (usb_mod_LDFLAGS): New variable.
25206 (usbtest_mod_SOURCES): New variable.
25207 (usbtest_mod_CFLAGS): New variable.
25208 (usbtest_mod_LDFLAGS): New variable.
25209 (ohci_mod_SOURCES): New variable.
25210 (ohci_mod_CFLAGS): New variable.
25211 (ohci_mod_LDFLAGS): New variable.
25212 (usbms_mod_SOURCES): New variable.
25213 (usbms_mod_CFLAGS): New variable.
25214 (usbms_mod_LDFLAGS): New variable.
25215 (usb_keyboard_mod_SOURCES): New variable.
25216 (usb_keyboard_mod_CFLAGS): New variable.
25217 (usb_keyboard_mod_LDFLAGS): New variable.
25218 * include/grub/smbus.h: New file.
25219 * include/grub/cs5536.h: New file.
25220
0b35b2a9
CW
252212010-06-02 Colin Watson <cjwatson@ubuntu.com>
25222
25223 * util/grub.d/00_header.in: Add safety check to make sure that
25224 ${locale_dir} exists before trying to probe it.
25225
ca0afd5b
CW
252262010-06-02 Colin Watson <cjwatson@ubuntu.com>
25227
25228 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
25229 per the GNU Coding Standards; this is now too obscure to be worth
25230 documenting.
25231 (QNX): Likewise.
25232 (chainloader): Remove cross-reference to `SCO UnixWare'.
25233
1c41aa78
CW
252342010-06-02 Colin Watson <cjwatson@ubuntu.com>
25235
25236 * docs/grub.texi (Chain-loading): New section.
25237 (DOS/Windows): New section, borrowed from GRUB Legacy with details
25238 adjusted for GRUB 2.
25239 (SCO UnixWare): Likewise.
25240 (QNX): Likewise.
25241 (chainloader): Add reference to `Block list syntax'.
25242 (drivemap): New section.
25243 (parttool): New section.
25244
bb8ea0f5
CW
252452010-06-02 Colin Watson <cjwatson@ubuntu.com>
25246
25247 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
25248 the grub shell'.
25249 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
25250 (Installing GRUB using grub-install): Remove reference to the grub
25251 shell; mention `grub-mkimage' and `grub-setup' instead.
25252 (Invoking grub-install): Likewise.
25253 (Interface): Add reference to `Menu entry editor'.
25254 (serial): Remove `--device' option.
25255
288dd6ed
CW
252562010-06-02 Colin Watson <cjwatson@ubuntu.com>
25257
25258 * docs/grub.texi (Configuration): New section, documenting
25259 configuration file generation using grub-mkconfig. I've left a slot
25260 for documenting the full shell scripting format but have not yet
25261 started on writing that up.
25262 (Invoking grub-mkconfig): New section.
25263
34c9f0e9
CW
252642010-06-02 Colin Watson <cjwatson@ubuntu.com>
25265
25266 * docs/grub.texi (direntry): Remove grub-terminfo reference.
25267 (GNU GRUB manual): Likewise.
25268 (General commands): Update description of `terminfo' for GRUB 2.
25269
9121567e
CW
252702010-06-02 Colin Watson <cjwatson@ubuntu.com>
25271
25272 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
25273 (GRUB_MOD_INIT): Fix capitalisation.
25274 * docs/grub.texi (Command-line and menu entry commands): Document
25275 gettext and gptsync commands.
25276
ab631611
CW
252772010-06-02 Colin Watson <cjwatson@ubuntu.com>
25278
25279 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
25280 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
25281
bde4a9ac
CW
252822010-06-01 Colin Watson <cjwatson@ubuntu.com>
25283
25284 Add btrfs probing support, currently only in the single-device case.
25285
25286 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
25287 function.
25288 (grub_guess_root_device): Call find_root_device_from_mountinfo
25289 before looking in /dev.
25290
b1d17e10
VS
252912010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25292
25293 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
25294 GRUB_DISK_SIZE_UNKNOWN.
25295 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
25296
dfbfe004
JS
252972010-05-31 Jiro SEKIBA <jir@unicus.jp>
25298
25299 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
25300 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
25301 corrupted or not synced properly.
25302
c2ffc8e9
VS
253032010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25304
25305 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
25306 Reported by: Seth Goldberg.
25307
56293166
VS
253082010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25309
25310 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
25311 addition of dest.
25312 Reported by: Seth Goldberg.
25313
7620e7de
VS
253142010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25315
25316 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
25317 Reported by: Seth Goldberg.
25318
c837af3f
VS
253192010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25320
25321 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
25322 64-bit address as signed on MIPS.
25323
c7c75cf4
CW
253242010-05-28 Colin Watson <cjwatson@ubuntu.com>
25325
25326 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
25327 to the empty string.
25328
fa4b8490
BC
253292010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
25330
25331 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
25332
25333 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
25334 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
25335 * kern/misc.c (__enable_execute_stack): Disable on
25336 GRUB_MACHINE_EMU.
25337
a33075b9
CW
253382010-05-28 Colin Watson <cjwatson@ubuntu.com>
25339
25340 Make grub-probe work with symbolic links under /dev/mapper as well
25341 as with real block devices. The Linux world seems to be (at best)
25342 in transition here, and GRUB shouldn't get caught in the middle.
25343
25344 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
25345 /dev/mapper.
25346
d8708134
CW
253472010-05-27 Colin Watson <cjwatson@ubuntu.com>
25348
25349 * util/grub-script-check.c (main): Ensure defined behaviour on empty
25350 input files (in which case exit zero).
25351
db2102a0
CW
253522010-05-27 Colin Watson <cjwatson@ubuntu.com>
25353
25354 * kern/emu/misc.c (canonicalize_file_name): realpath can still
25355 return NULL for various reasons even if it has a maximum-length
25356 buffer: for example, there might be a symlink loop, or the path
25357 might exceed PATH_MAX. If this happens, return NULL.
25358
5fdba519
RM
253592010-05-27 Robert Millan <rmh@gnu.org>
25360
25361 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
25362 partmap module to handle cross-partmap setups.
25363 Reported by Orestes Mas. Gràcies!
25364
d1d368e4
CW
253652010-05-27 Colin Watson <cjwatson@ubuntu.com>
25366
25367 * util/grub-mkrescue.in: Initialise override_dir rather than
25368 assuming that it's unset or empty in the environment.
25369
95ac3c73
GS
253702010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
25371
25372 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
25373 variable index into p_index to suppress a warning with -Wshadow.
25374
7d8c0213
BC
253752010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
25376
25377 * INSTALL: Added flex >= 2.5.35 requirement.
25378
db4d5813
VS
253792010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25380
25381 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
25382
f24f4300
VS
253832010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25384
25385 cmostest support.
25386
25387 * commands/i386/cmostest.c: New file.
25388 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
25389 (cmostest_mod_SOURCES): New variable.
25390 (cmostest_mod_CFLAGS): Likewise.
25391 (cmostest_mod_LDFLAGS): Likewise.
25392 * conf/i386-pc.rmk: Likewise.
25393 * docs/grub.texi (Vendor power-on keys): New section.
25394 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
25395 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
25396 and GRUB_BUTTON_CMOS_ADDRESS.
25397 * util/grub.d/00_header.in: Handle powering-on by separate button.
25398
ad603f61
VS
253992010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25400
25401 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
25402 Removed drawing_scrollbar argument. All users updated
25403 Fixes #29792.
25404 Reported by Jo Shields
25405
3ecb080a
VS
254062010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25407
25408 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
25409 buffer since gfxterm handles double repaint.
25410
5f2316c1
VS
254112010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25412
25413 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
25414 * term/gfxterm.c (real_scroll): Likewise.
25415
9a25f885
VS
254162010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25417
25418 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
25419 before calling BIOS.
25420
39fbb79a
VS
254212010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25422
25423 * include/grub/i18n.h: Always enable grub_gettext.
25424
228cfa97
VS
254252010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25426
25427 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
25428 partition naming style.
25429
21717c8f
CW
254302010-05-21 Colin Watson <cjwatson@ubuntu.com>
25431
25432 * util/grub-mkconfig.in: Fix handling of -o so that it works when
25433 not the first option.
25434
c0f48e65
CW
254352010-05-20 Colin Watson <cjwatson@ubuntu.com>
25436
25437 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
25438
96779aec
CW
254392010-05-20 Colin Watson <cjwatson@ubuntu.com>
25440
25441 * util/misc.c: Move inclusion of <limits.h> to ...
25442 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
25443
fa9d256e
GS
254442010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
25445
25446 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
25447 Fix merge error in NetBSD code.
25448 (find_partition_start) [__NetBSD__]: Likewise.
25449
123b7a85
BC
254502010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
25451
25452 Fix grub-mkrescue usage unit testing.
25453
25454 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
25455
74276c0d
CF
254562010-05-18 Christian Franke <franke@computer.org>
25457
25458 * util/grub.d/10_windows.in: Use path names instead of
25459 drive letters to prevent warning from Cygwin 1.7.
25460 Add drivemap command to menuentry if needed.
25461
c4f7b523
ST
254622010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
25463
25464 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
25465 gnumach and gnumach.gz.
25466
95b97950
VS
254672010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25468
25469 * include/grub/i18n.h (gettext): Inline instead of using #define.
25470 (grub_gettext): Likewise.
25471 (_): Likewise.
25472
01b8d2d7
VS
254732010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25474
25475 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
25476 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
25477 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
25478 (main): Add a slash after pkglibdirroot.
25479
654e1d1e
VS
254802010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25481
25482 * util/grub-install.in: Add missing "in" keyword.
25483
26966aeb
VS
254842010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25485
25486 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
25487 Reported by: Seth Goldberg.
25488
75006747
VS
254892010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25490
25491 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
25492
74cbf5bd
CW
254932010-05-18 Colin Watson <cjwatson@ubuntu.com>
25494
25495 * configure.ac: Check for Linux device-mapper support.
25496
25497 * util/hostdisk.c (device_is_mapped): New function.
25498 (find_partition_start): New function, partly broken out from
25499 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
25500 device-mapper support added.
25501 (linux_find_partition): Use find_partition_start.
25502 (convert_system_partition_to_system_disk): Add `st' argument.
25503 Support Linux /dev/mapper/* devices if device-mapper support is
25504 available; only DM-RAID devices are understood at present.
25505 (find_system_device): Add `st' argument. Pass it to
25506 convert_system_partition_to_system_disk.
25507 (grub_util_biosdisk_get_grub_dev): Pass stat result to
25508 find_system_device and convert_system_partition_to_system_disk. Use
25509 find_partition_start.
25510
25511 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
25512 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
25513 * util/deviceiter.c [__linux__]: Define MINOR.
25514 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
25515 * util/mkdevicemap.c (grub_putchar): New function.
25516 (grub_getkey): New function.
25517 (grub_refresh): New function.
25518 (main): Set debug=all if -v -v is used.
25519
355b51e9
CW
255202010-05-18 Colin Watson <cjwatson@ubuntu.com>
25521
25522 Fix build with non-GNU libcs.
25523
25524 * util/misc.c (canonicalize_file_name): Move to ...
25525 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
25526 grub_make_system_path_relative_to_its_root.
25527
7fb5c25f
CW
255282010-05-18 Colin Watson <cjwatson@ubuntu.com>
25529
25530 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
25531 we handle finding grub-mkimage. Default to finding grub-mkimage in
25532 ${bindir} with program_transform_name applied, and provide a
25533 --grub-mkimage option to override this.
25534
1d3293d6
VS
255352010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25536
25537 Remove grub-mkisofs.
25538
25539 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
25540 (grub_mkisofs_SOURCES): Removed.
25541 (grub_mkisofs_CFLAGS): Removed.
25542 * util/mkisofs/defaults.h: Removed.
25543 * util/mkisofs/eltorito.c: Likewise.
25544 * util/mkisofs/exclude.h: Likewise.
25545 * util/mkisofs/hash.c: Likewise.
25546 * util/mkisofs/include/: Likewise.
25547 * util/mkisofs/include/fctldefs.h: Likewise.
25548 * util/mkisofs/include/mconfig.h: Likewise.
25549 * util/mkisofs/include/prototyp.h: Likewise.
25550 * util/mkisofs/include/statdefs.h: Likewise.
25551 * util/mkisofs/iso9660.h: Likewise.
25552 * util/mkisofs/joliet.c: Likewise.
25553 * util/mkisofs/match.c: Likewise.
25554 * util/mkisofs/match.h: Likewise.
25555 * util/mkisofs/mkisofs.c: Likewise.
25556 * util/mkisofs/mkisofs.h: Likewise.
25557 * util/mkisofs/msdos_partition.h: Likewise.
25558 * util/mkisofs/multi.c: Likewise.
25559 * util/mkisofs/name.c: Likewise.
25560 * util/mkisofs/rock.c: Likewise.
25561 * util/mkisofs/tree.c: Likewise.
25562 * util/mkisofs/write.c: Likewise.
25563
5dde9afe
VS
255642010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25565
25566 Unify grub-mkimage accross platforms.
25567
25568 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
25569 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
25570 (grub_mkelfimage_SOURCES): Removed.
25571 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25572 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25573 (bin_UTILITIES): Add grub-mkimage.
25574 (grub_mkimage_SOURCES): New variable.
25575 (kernel_img_HEADERS): Remove machine/kernel.h.
25576 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25577 (pkglib_PROGRAMS): Add kernel.img.
25578 (kernel_img_HEADERS): Add machine/kernel.h.
25579 (kernel_img_FORMAT): Removed.
25580 (bin_UTILITIES): Remove grub-mkimage.
25581 (grub_mkimage_SOURCES): Removed.
25582 (grub_mkimage_CFLAGS): Likewise.
25583 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25584 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25585 (pkglib_PROGRAMS): Add kernel.img.
25586 (bin_UTILITIES): Remove grub-mkimage.
25587 (grub_mkimage_SOURCES): Removed.
25588 (grub_mkimage_CFLAGS): Likewise.
25589 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25590 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25591 (pkglib_PROGRAMS): Add kernel.img.
25592 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25593 (pkglib_PROGRAMS): Add kernel.img.
25594 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25595 (grub_mkimage_SOURCES): Removed.
25596 (grub_mkimage_CFLAGS): Likewise.
25597 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25598 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25599 (pkglib_PROGRAMS): Add kernel.img.
25600 (bin_UTILITIES): Remove grub-mkimage.
25601 (grub_mkimage_SOURCES): Removed.
25602 (grub_mkimage_CFLAGS): Likewise.
25603 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25604 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25605 (grub_mkimage_SOURCES): Removed.
25606 (grub_mkimage_CFLAGS): Likewise.
25607 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25608 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25609 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25610 (grub_pe32_optional_header): ... this.
25611 (grub_pe64_optional_header): ... and this. All users updated.
25612 (GRUB_PE32_PE32_MAGIC): Split into ..
25613 (GRUB_PE32_PE32_MAGIC): .. this.
25614 (GRUB_PE32_PE64_MAGIC): .. and this.
25615 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25616 * include/grub/elf.h (PT_GNU_STACK): New definition.
25617 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25618 * include/grub/i386/efi/kernel.h: Likewise.
25619 * include/grub/i386/kernel.h: Likewise.
25620 * include/grub/i386/pc/kernel.h: Likewise.
25621 * include/grub/i386/qemu/boot.h: Likewise.
25622 * include/grub/mips/kernel.h: Likewise.
25623 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25624 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25625 * include/grub/powerpc/kernel.h: Likewise.
25626 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25627 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25628 * include/grub/sparc64/kernel.h: Likewise.
25629 * include/grub/x86_64/efi/kernel.h: Likewise.
25630 * include/grub/x86_64/kernel.h: Likewise.
25631 * include/grub/offsets.h: New file.
25632 * include/grub/kernel.h (grub_module_info): Split into ...
25633 (grub_module_info32): ... this.
25634 (grub_module_info64): ... and this.
25635 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25636 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25637 (grub_boot_blocklist): Moved from here ...
25638 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25639 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25640 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25641 * include/grub/types.h (grub_target_to_host16): Removed.
25642 (grub_target_to_host32): Likewise.
25643 (grub_target_to_host64): Likewise.
25644 (grub_host_to_target16): Likewise.
25645 (grub_host_to_target32): Likewise.
25646 (grub_host_to_target64): Likewise.
25647 (grub_host_to_target_addr): Likewise.
25648
25649 Support grub-mkrescue for efi, coreboot and qemu.
25650
25651 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25652 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25653 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25654 * util/grub-mkrawimage.c: Moved from here ...
25655 * util/grub-mkimage.c: ... here. All users updated.
25656 (ALIGN_ADDR): Use image_target.
25657 (TARGET_NO_FIELD): New const.
25658 (image_target_desc): New type.
25659 (image_targets): New array.
25660 (grub_target_to_host64): Use image_target.
25661 (grub_target_to_host32): Likewise.
25662 (grub_target_to_host16): Likewise.
25663 (grub_host_to_target64): Likewise.
25664 (grub_host_to_target32): Likewise.
25665 (grub_host_to_target16): Likewise.
25666 (grub_host_to_target_addr): Likewise.
25667 (generate_image): Handle multiimage.
25668 (main): Require -O parameter. All users updated.
25669 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25670 util/efi/grub-mkimage.c
25671 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25672 New option --rom-directory.
25673 Use xorriso.
25674 * util/i386/efi/grub-mkimage.c: Removed.
25675 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25676 (grub_target_to_host32): Likewise.
25677 (grub_target_to_host64): Likewise.
25678 (grub_host_to_target16): Likewise.
25679 (grub_host_to_target32): Likewise.
25680 (grub_host_to_target64): Likewise.
25681 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25682 (grub_target_to_host32): Likewise.
25683 (grub_target_to_host64): Likewise.
25684 (grub_host_to_target16): Likewise.
25685 (grub_host_to_target32): Likewise.
25686 (grub_host_to_target64): Likewise.
25687
f4fc97d0
BC
256882010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25689
25690 Source tree is reorganized for emu build.
25691
25692 * include/grub/util/console.h: Move from here...
25693 * include/grub/emu/console.h: ...to here.
25694 * include/grub/util/getroot.h: Move from here...
25695 * include/grub/emu/getroot.h: ...to here.
25696 * include/grub/util/hostdisk.h: Move from here...
25697 * include/grub/emu/hostdisk.h: ...to here.
25698 * util/console.c: Move from here...
25699 * kern/emu/console.c: ...to here.
25700 * util/getroot.c: Move from here...
25701 * kern/emu/getroot.c: ...to here.
25702 * util/grub-emu.c: Move from here...
25703 * kern/emu/main.c: ...to here.
25704 * util/hostdisk.c: Move from here...
25705 * kern/emu/hostdisk.c: ...to here.
25706 * util/hostfs.c: Move from here...
25707 * kern/emu/hostfs.c: ...to here.
25708 * util/mm.c: Move from here...
25709 * kern/emu/mm.c: ...to here.
25710 * util/pci.c: Move from here...
25711 * bus/emu/pci.c: ...to here.
25712 * util/sdl.c: Move from here...
25713 * video/emu/sdl.c: ...to here.
25714 * util/time.c: Move from here...
25715 * kern/emu/time.c: ...to here.
25716 * util/usb.c: Move from here...
25717 * bus/usb/emu/usb.c: ...to here.
25718
25719 * include/grub/emu/misc.h: New header for grub-emu functions.
25720 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25721
25722 * conf/any-emu.rmk: Rule updates for above renames.
25723 * conf/common.rmk: Likewise.
25724 * conf/i386-pc.rmk: Likewise.
25725 * conf/i386-qemu.rmk: Likewise.
25726 * conf/mips.rmk: Likewise.
25727 * conf/sparc64-ieee1275.rmk: Likewise.
25728 * conf/x86-efi.rmk: Likewise.
25729
25730 * disk/lvm.h: #include updates for above renames.
25731 * util/grub-mkrelpath.c: Likewise.
25732 * util/grub-probe.c: Likewise.
25733 * util/i386/pc/grub-setup.c: Likewise.
25734 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25735 * kern/emu/console.c: Likewise.
25736 * kern/emu/getroot.c: Likewise.
25737 * kern/emu/hostdisk.c: Likewise.
25738 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25739
25740 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25741 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25742 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25743 * util/misc.c: Remove grub-emu functions.
25744
cced9145
VS
257452010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25746
25747 Fix gfxmenu crash.
25748 Reported by: Thorsten Grützmacher.
25749
25750 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25751 timeout hook.
25752 (circprog_set_property): Register and unregister timeout hook.
25753 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25754 (label_destroy): Free template. and unregister hook.
25755 (label_set_state): New function.
25756 (label_set_property): Handle templates and hooks.
25757 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25758 timeout hook.
25759 (progress_bar_set_property): Register and unregister timeout hook.
25760 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25761 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25762 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25763 (update_timeout_visit): Removed.
25764 (update_timeouts): New function.
25765 (redraw_timeouts): Likewise.
25766 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25767 (grub_gfxmenu_clear_timeout): Likewise.
25768 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25769 (grub_gfxmenu_timeout_notify): Likewise.
25770 (grub_gfxmenu_timeout_notifications): New external variable.
25771 (grub_gfxmenu_timeout_register): New function.
25772 (grub_gfxmenu_timeout_unregister): Likewise.
25773
c6e5caab
VS
257742010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25775
25776 Transform (broken) vga terminal into (working) vga video driver.
25777
25778 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25779 video/i386/pc/vga.c.
25780 * include/grub/video.h (grub_video_driver_id):
25781 Add GRUB_VIDEO_DRIVER_VGA.
25782 * term/i386/pc/vga.c: Renamed to ...
25783 * video/i386/pc/vga.c: ...this
25784 (DEBUG_VGA): Removed.
25785 (CHAR_WIDTH): Likewise.
25786 (CHAR_HEIGHT): Likewise.
25787 (TEXT_WIDTH): Likewise.
25788 (TEXT_HEIGHT): Likewise.
25789 (DEFAULT_FG_COLOR): Likewise.
25790 (DEFAULT_BG_COLOR): Likewise.
25791 (colored_char): Likewise.
25792 (xpos): Likewise.
25793 (ypos): Likewise.
25794 (cursor_state): Likewise.
25795 (fg_color): Likewise.
25796 (bg_color): Likewise.
25797 (text_buf): Likewise.
25798 (page): Likewise.
25799 (font): Likewise.
25800 (framebuffer): New variable.
25801 (set_read_map): Disabled.
25802 (setup): New variable.
25803 (is_target): Likewise.
25804 (grub_vga_mod_init): Likewise.
25805 (grub_vga_mod_fini): Likewise.
25806 (check_vga_mem): Likewise.
25807 (write_char): Likewise.
25808 (write_cursor): Likewise.
25809 (scroll_up): Likewise.
25810 (grub_vga_putchar): Likewise.
25811 (grub_vga_getcharwidth): Likewise.
25812 (grub_vga_getwh): Likewise.
25813 (grub_vga_getxy): Likewise.
25814 (grub_vga_gotoxy): Likewise.
25815 (grub_vga_cls): Likewise.
25816 (grub_vga_setcolorstate): Likewise.
25817 (grub_vga_setcursor): Likewise.
25818 (grub_video_vga_init): New function.
25819 (grub_video_vga_setup): Likewise.
25820 (grub_video_vga_fini): Likewise.
25821 (update_target): Likewise.
25822 (grub_video_vga_blit_bitmap): Likewise.
25823 (grub_video_vga_blit_render_target): Likewise.
25824 (grub_video_vga_set_active_render_target): Likewise.
25825 (grub_video_vga_get_active_render_target): Likewise.
25826 (grub_video_vga_swap_buffers): Likewise.
25827 (grub_video_vga_set_palette): Likewise.
25828 (grub_video_vga_get_info_and_fini): Likewise.
25829 (grub_vga_term): Removed.
25830 (grub_video_vga_adapter): New variable.
25831 (GRUB_MOD_INIT): Register a video driver instead of terminal.
25832 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
25833
2bf61a98
VS
258342010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25835
25836 * video/readers/jpeg.c: Indented.
25837
09ddcd11
VS
258382010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25839
25840 Various jpeg cleanups.
25841
25842 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
25843 (grub_jpeg_decode_quan_table): Use sizeof.
25844 (grub_jpeg_decode_du): Use ARRAY_SIZE.
25845
e5507505
PH
258462010-05-05 Peter Hurley <No e-mail available> (tiny change)
25847
25848 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
25849 tables. Ignore non-last ac bit.
25850 (grub_jpeg_decode_quan_table): Likewise.
25851
7e720a9b
VS
258522010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25853
25854 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25855 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25856 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25857 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25858 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25859 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25860
a7fc080b
VS
258612010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25862
25863 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25864 error.
25865
2bf6012d
VS
258662010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25867
25868 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25869
265d68cd
VS
258702010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25871
25872 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25873 condition.
25874
258752010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
25876
25877 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25878 part.
25879
265d68cd 258802010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
25881
25882 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25883 pointers.
25884
265d68cd 258852010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
25886
25887 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25888
d1b61374
CF
258892010-05-01 Christian Franke <franke@computer.org>
25890
25891 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25892 Remove broken Cygwin path conversion.
25893 * util/misc.c: [__CYGWIN__] Add include and define.
25894 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25895 for Cygwin 1.7.
25896 (make_system_path_relative_to_its_root): Simplify loop, replace early
25897 return by break.
25898 [__CYGWIN__] Add conversion to win32 path.
25899 Include "/" case in trailing slash removal.
25900
3558c6e9
VS
259012010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25902
25903 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25904 Reported by: Seth Goldberg
25905
f5f3ff93
VS
259062010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25907
25908 * commands/help.c (grub_cmd_help): Fix a typo.
25909 Reported by: Seth Goldberg
25910
d8b5cd40
VS
259112010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25912
25913 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25914 name and add N_.
25915 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25916 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25917 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25918 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25919 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25920 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25921 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25922 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25923 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25924 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25925 * normal/context.c (GRUB_MOD_INIT): Likewise.
25926 * normal/main.c (GRUB_MOD_INIT): Likewise.
25927 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25928 * term/serial.c (GRUB_MOD_INIT): Likewise.
25929 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25930
88c14915
VS
259312010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25932
25933 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25934 extra == 0.
25935
165134bc
VS
259362010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25937
25938 * commands/iorw.c: New file.
25939 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25940 (iorw_mod_SOURCES): New variable.
25941 (iorw_mod_CFLAGS): Likewise.
25942 (iorw_mod_LDFLAGS): Likewise.
25943
c5ac9b32
VS
259442010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25945
25946 Hotkey support
25947
25948 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25949 * normal/main.c (hotkey_aliases): New variable.
25950 (grub_normal_add_menu_entry): Parse "--hotkey".
25951 * normal/menu_text.c (run_menu): Handle hotkeys.
25952
ce60689c
VS
259532010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25954
25955 * kern/i386/coreboot/init.c (grub_machine_init): Call
25956 grub_machine_mmap_init on qemu.
25957
0359d006
VS
259582010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25959
25960 * boot/i386/qemu/boot.S: Add a missing .code16.
25961
7819a456
VS
259622010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25963
25964 Use LBIO on coreboot.
25965
25966 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25967 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25968 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25969 New declaration.
25970 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25971 grub_machine_mmap_init on coreboot.
25972 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25973 GRUB_LINUXBIOS_MEMBER_LINK.
25974 (grub_machine_mmap_iterate): Fix declaration.
25975 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25976
7210dca9
VS
259772010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25978
25979 Split coreboot and multiboot ports.
25980
25981 * conf/i386-multiboot.rmk: New file.
25982 * configure.ac: Add multiboot port.
25983 * include/grub/i386/multiboot/boot.h: New file.
25984 * include/grub/i386/multiboot/console.h: Likewise.
25985 * include/grub/i386/multiboot/init.h: Likewise.
25986 * include/grub/i386/multiboot/kernel.h: Likewise.
25987 * include/grub/i386/multiboot/loader.h: Likewise.
25988 * include/grub/i386/multiboot/memory.h: Likewise.
25989 * include/grub/i386/multiboot/serial.h: Likewise.
25990 * include/grub/i386/multiboot/time.h: Likewise.
25991 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25992 * loader/multiboot.c: Likewise.
25993 * loader/multiboot_mbi2.c: Likewise.
25994 * util/grub-mkrescue.in: Generate multiboot rescue.
25995
6f8aaf68
VS
259962010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25997
3080f7a7
VS
25998 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25999
260002010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
26001
26002 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
26003
26004 * commands/terminal.c (abstract_terminal): New struct.
26005 (handle_command): New function. Based on grub_cmd_terminal_input.
26006 (grub_cmd_terminal_input): Use handle_command.
26007 (grub_cmd_terminal_output): Use handle_command.
26008
a8ebb841
BC
260092010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
26010
26011 Fix comment handling.
26012
26013 * tests/grub_script_comments.in: New testcase.
26014 * conf/tests.rmk: Rules for new testcase.
26015 * script/yylex.l: Updated flex rules.
26016
bb06ba08
ST
260172010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
26018
26019 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
26020 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
26021 if argc is 1.
bb06ba08 26022
cc9d2425
VS
260232010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
26024
26025 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
26026 autogen issues.
26027
460d8402
CF
260282010-04-26 Christian Franke <franke@computer.org>
26029
26030 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
26031 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
26032 (grub_get_prefix): Remove function.
26033 * util/grub-emu.c (main): Replace grub_get_prefix () call by
26034 make_system_path_relative_to_its_root ().
26035 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
26036
553c01f9
CF
260372010-04-24 Christian Franke <franke@computer.org>
26038
26039 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
26040 (kernel_img_LDFLAGS): Remove -static-libgcc.
26041
2aec1692
CF
260422010-04-24 Christian Franke <franke@computer.org>
26043
26044 * configure.ac: Do not CHECK_BSS_START_SYMBOL
26045 and CHECK_END_SYMBOL if grub-emu is built.
26046 Unset TARGET_OBJ2ELF if grub-emu is built
26047 without module support.
26048
f67dc308
JS
260492010-04-24 Jiro SEKIBA <jir@unicus.jp>
26050
26051 Nilfs2 support.
26052
26053 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
26054 (grub_fstest_SOURCES): Likewise.
26055 (pkglib_MODULES): Add nilfs2.mod.
26056 (nilfs2_mod_SOURCES): New variable.
26057 (nilfs2_mod_CFLAGS): Likewise.
26058 (nilfs2_mod_LDFLAGS): Likewise.
26059 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
26060 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
26061 * fs/nilfs2.c: New file.
26062
4ba8d354
VS
260632010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
26064
26065 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
26066 is not supported.
26067
0d2c20c6
GS
260682010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
26069
26070 Add grub-mkconfig support for NetBSD.
26071
26072 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
26073 * util/grub-mkconfig.in: export new NetBSD specific variables.
26074 * po/POTFILES-shell: added 10_netbsd.in.
26075 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
26076
bc4a2d83
BC
260772010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
26078
26079 Fix emu build with grub-emu-pci and grub-emu-modules.
26080
26081 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
26082 functions.
26083 * include/grub/libpciaccess.h: New file.
26084 * conf/any-emu.rmk: Update kernel headers for emu build.
26085
f48c87aa
VS
260862010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26087
26088 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
26089
18959385
VS
260902010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
26091
26092 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
26093
0037de3f
VS
260942010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26095
26096 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
26097 Retrieve chosen/bootpath if bootpath isn't hardcoded.
26098 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
26099 util/ieee1275/ofpath.c.
26100 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
26101 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
26102 * include/grub/sparc64/ieee1275/boot.h
26103 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
26104 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
26105 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
26106 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
26107 const char *.
26108 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
26109 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
26110 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
26111 install.
26112
38e55e90
GS
261132010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
26114
26115 * util/grub-mkconfig.in: Corrected two == equality tests.
26116 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
26117 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
26118 expect a number appended to it.
26119 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
26120 expects a number appended to it.
26121
a9e6ff28
VS
261222010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26123
26124 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
26125
0b830b8f
VS
261262010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26127
26128 * util/hostdisk.c (make_device_name): Change to new partition naming.
26129
0973daeb
VS
261302010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
26131
26132 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
26133
460d8402 261342010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
26135
26136 * Makefile.in: Add missing localedir setting.
26137
0b456309
CW
261382010-04-14 Colin Watson <cjwatson@ubuntu.com>
26139
26140 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
26141 mistake in r2156. Noticed by Anthony Fok.
26142
26143 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
26144 @localedir@.
26145 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26146
08f46d62
BC
261472010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
26148
26149 Fix a spurious, uninitialized variable warning.
26150
26151 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
26152 Initialize variable, shdr.
26153 (grub_freebsd_load_elfmodule): Likewise.
26154 (grub_freebsd_load_elf_meta): Likewise.
26155
8c4a72d4
BC
261562010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
26157
26158 Fix for escaped dollar in double quoted strings.
26159
26160 * script/yylex.l: Updated flex rules.
26161 * conf/tests.rmk: Rule for new testcase.
26162 * tests/grub_script_dollar.in: New testcase.
26163
ce44826e
CPE
261642010-04-13 Carles Pina i Estany <carles@pina.cat>
261652010-04-13 Colin Watson <cjwatson@ubuntu.com>
26166
26167 Enclose all translated strings in grub.cfg in single quotes, and
26168 escape them appropriately (Ubuntu bug #552921).
26169
26170 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
26171 * util/grub.d/10_hurd.in: Use it.
26172 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26173 * util/grub.d/10_linux.in (linux_entry): Likewise.
26174
4b0cd8f8
VS
261752010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26176
26177 Fix cygwin compilation.
26178
26179 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
26180 * include/grub/misc.h (__register_frame_info)
26181 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
26182 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26183 * kern/misc.c (__register_frame_info)
26184 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
26185 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26186
01fcf061
VS
261872010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26188
26189 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
26190
5d04b11e
VS
261912010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26192
26193 Unify libgcc processing.
26194
26195 * Makefile.in (kernel_img_LDFLAGS): New variable.
26196 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
26197 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
26198 overwriting.
26199 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
26200 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
26201 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
26202 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
26203 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
26204 overwriting. Remove -lgcc and -static-libgcc
26205 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
26206 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26207 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26208 (kernel_img_LDFLAGS): Append instead of overwriting.
26209 Remove -lgcc and -static-libgcc
26210 * conf/sparc64-ieee1275.rmk: Likewise.
26211 * include/grub/powerpc/libgcc.h: Move to ...
26212 * include/grub/libgcc.h: .. this.
26213 * include/grub/libgcc.h: Don't export most of the function on x86.
26214 (__bswapsi2): New export.
26215 (__bswapdi2): Likewise.
26216 * include/grub/mips/libgcc.h: Removed.
26217 * include/grub/sparc64/libgcc.h: Likewise.
26218
b7f3ac29
VS
262192010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26220
26221 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
26222 disk_info_msg (conflicts with gettexting into languages with cases).
26223
2c7031b1
GS
262242010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
26225
26226 Add grub-probe support for NetBSD.
26227
26228 * util/getroot.c (find_root_device): Convert block device to
26229 character device on NetBSD.
26230 * util/probe.c (probe): Require character device on NetBSD.
26231 * util/hostdisk.c: NetBSD specific headers.
26232 (configure_device_driver): new function to tune device driver
26233 parameters (currently only for NetBSD floppy driver).
26234 (grub_util_biosdisk_open): NetBSD specific code (get disk size
26235 via disklabel ioctl).
26236 (open_device): call configure_device_driver on NetBSD.
26237 (convert_system_partition_to_system_disk): NetBSD specific code.
26238 (device_is_wholedisk): Likewise.
26239 (grub_util_biosdisk_get_grub_dev): Likewise.
26240 (make_device_name): Fixed a typo in bsd_part_str.
26241 * configure.ac: check for opendisk() and getrawpartition() on
26242 NetBSD and set LIBUTIL.
26243 * Makefile.in: add LIBUTIL to LIBS.
26244
f516290c
BC
262452010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26246
26247 Documentation fix.
26248
26249 * util/grub-script-check.c: Better help message.
26250
d8dcc0df
BC
262512010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26252
26253 Fix FreeBSD build.
26254
26255 * configure.ac: Flex version check.
26256 * conf/common.rmk: Add -Wno-error to sh.mod.
26257 * script/yylex.l: Remove all #pragma.
26258
6734334a
VS
262592010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26260
26261 * include/grub/util/misc.h (canonicalise_file_name): Add missing
26262 prototype.
26263 Reported by: Seth Goldberg.
26264
daea6abd
VS
262652010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26266
26267 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
26268 Rename "module" to "module2".
26269 Reported by: Seth Goldberg.
26270
f2fd9d2b
VS
262712010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26272
26273 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
26274 EXPORT_FUNC.
26275 Reported by: Seth Goldberg.
26276
be124579
VS
262772010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26278
26279 * lib/posix_wrap/locale.h: Add missing file.
26280 Reported by: Seth Goldberg.
26281
ef5da797
VS
262822010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26283
26284 grub-emu module load support.
26285
26286 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
26287 NO_DYNAMIC_MODULES switched to this.
26288 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
26289 (CFLAGS): Likewise.
26290 * conf/any-emu.rmk: Generate symlist.
26291 (kernel_img_HEADERS): Add util/datetime.h.
26292 (kernel_img_HEADERS) [sdl]: Add sdl.h.
26293 (kernel_img_HEADERS) [libusb]: Add libusb.h.
26294 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
26295 kern/$(target_cpu)/cache.S.
26296 * configure.ac (grub-emu-modules): New option.
26297 * genmk.rb: Handle multiple source lists.
26298 * include/grub/sdl.h: New file.
26299 * include/grub/libusb.h: Likewise.
26300 * util/grub-emu.c (main): Hanle (host) root.
26301 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
26302 GRUB_ERR_UNKNOWN_DEVICE.
26303 * util/misc.c: Move mm functions to ...
26304 * util/mm.c: ... here. All users updated.
26305
47822096
VS
263062010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26307
26308 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
26309 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
26310 missing files.
26311 (maintainer-clean): Remove libgcrypt-grub.
26312
5d7e7445
VS
263132010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26314
26315 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
26316
25f4e252
EC
263172010-04-09 EFI Coder <eficoder@hotmail.com>
26318
26319 * normal/menu_text.c (print_message): Clean up the message and show
26320 the Fn information when on EFI
26321 * term/efi/console.c (grub_console_checkkey): Add F4 support.
26322
027de555
VS
263232010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26324
26325 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
26326 All users updated.
26327 * normal/crypto.c (read_crypto_list): Likewise.
26328 * normal/dyncmd.c (read_command_list): Likewise.
26329 * normal/term.c (read_terminal_list): Likewise.
26330 * normal/main.c (read_lists): Use explicit prefix.
26331 (read_lists_hook): Use read_lists.
26332 (grub_normal_execute): Likewise.
26333
47779711
VS
263342010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26335
26336 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
26337 Reported by: Thomas Schmitt.
26338 Add -no-emul-boot to grub-mkisofs parameters.
26339
1118c32e
VS
263402010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26341
26342 * font/font.c: Indented.
26343
7d652447
BC
263442010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26345
26346 Elif support to GRUB script (by Deepak Vankadaru).
26347
26348 * tests/grub_script_if.in: New testcase.
26349 * conf/tests.rmk: Rule for new testcase.
26350 * script/parser.y: Grammar rules for elif.
26351
34bb22df
BC
263522010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26353
26354 While and until loops support to GRUB script.
26355
26356 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
26357 (grub_script_create_cmdwhile): New function prototype.
26358 (grub_script_execute_cmdwhile): New function prototype.
26359 * script/execute.c (grub_script_execute_cmdwhile): New function.
26360 * script/parser.y (command): New commands.
26361 (whilecmd): New grammar rule.
26362 (untilcmd): New grammar rule.
26363 * script/script.c (grub_script_create_cmdwhile): New function.
26364 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
26365 function.
26366
26367 * tests/grub_script_while1.in: New testcase.
26368 * conf/tests.rmk: Rule for new testcase.
26369
e215d8e0
VS
263702010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26371
26372 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
26373 as *.jpg.
26374
d7c43ba1
MV
263752010-04-09 Mario Vazquez <mariovazq@gmail.com>
26376
26377 GRUB_BACKGROUND support.
26378
26379 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
26380 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
26381
d64795c0
VS
263822010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26383
26384 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 26385 Idea by: Mario Vazquez
d64795c0
VS
26386
26387 * util/grub.d/00_header.in: Load pf2 and image modules.
26388
f267f83a
VS
263892010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26390
26391 grub-mkconfig multiple terminal support.
26392
26393 * util/grub-mkconfig.in: Handle multiple terminals correctly.
26394 * util/grub.d/00_header.in: Likewise.
26395
b7841ceb
VS
263962010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26397
26398 * Makefile.in: Specify files explicitly instead of using $< and $@ since
26399 we use cd $(srcdir).
26400
df60998c
CW
264012010-04-08 Colin Watson <cjwatson@ubuntu.com>
26402
26403 * util/grub.d/10_linux.in: Only use the first word of
26404 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
26405 spaces in GRUB_DISTRIBUTOR.
26406 * util/grub.d/10_kfreebsd.in: Likewise.
26407 * util/grub.d/10_hurd.in: Likewise.
26408
fa09c82e
BC
264092010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
26410
14e18ae3 26411 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
26412
26413 * tests/util/grub-shell.in: Remove -serial stdio option.
26414
daf892b3
BC
264152010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
26416
26417 POSIX header file wrappers.
26418
26419 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
26420 equivalents.
26421 * lib/posix_wrap/ctype.h: Likewise.
26422 * lib/posix_wrap/errno.h: Likewise.
26423 * lib/posix_wrap/langinfo.h: Likewise.
26424 * lib/posix_wrap/limits.h: Likewise.
26425 * lib/posix_wrap/localcharset.h: Likewise.
26426 * lib/posix_wrap/stdint.h: Likewise.
26427 * lib/posix_wrap/stdio.h: Likewise.
26428 * lib/posix_wrap/stdlib.h: Likewise.
26429 * lib/posix_wrap/string.h: Likewise.
26430 * lib/posix_wrap/sys/types.h: Likewise.
26431 * lib/posix_wrap/unistd.h: Likewise.
26432 * lib/posix_wrap/wchar.h: Likewise.
26433 * lib/posix_wrap/wctype.h: Likewise.
26434 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
26435 (grub_script.yy.h): Likewise.
26436 * script/yylex.l: Remove POSIX emulation #defines.
26437 * Makefile.in (POSIX_CFLAGS): New variable.
26438 (GNULIB_UTIL_CFLAGS): Likewise.
26439
26440 Regexp support.
26441
26442 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
26443 (regexp_mod_SOURCES): New variable.
26444 (regexp_mod_CFLAGS): Likewise.
26445 (regexp_mod_LDFLAGS): Likewise.
26446 * commands/regexp.c: New file.
26447 * gnulib/regcomp.c: New file. Imported from gnulib.
26448 * gnulib/regex.c: Likewise.
26449 * gnulib/regex_internal.c: Likewise.
26450 * gnulib/regex_internal.h: Likewise.
26451 * gnulib/regexec.c: Likewise.
26452 * gnulib/regex.h: Likewise.
26453
974ac4f7
VS
264542010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26455
26456 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
26457 unsupported video mode types.
26458
2622c3ff
VS
264592010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26460
26461 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
26462
064cb524
VS
264632010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26464
26465 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
26466 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
26467
a8c3b552
VS
264682010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
26469
26470 Remove unused grub_vga_get_font.
26471
26472 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
26473 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
26474
187bbe3d
GS
264752010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26476
26477 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
26478 * include/grub/misc.h: Likewise.
26479
b9396631
GS
264802010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26481
26482 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
26483 for which failure is fatal.
26484
50479feb
GS
264852010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26486
26487 * util/grub-install.in: Use mkdir -p to create grub directory.
26488 * util/i386/efi/grub-install.in: Likewise.
26489 * util/ieee1275/grub-install.in: Likewise.
26490
b1654fdf
GS
264912010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26492
26493 * Makefile.in (LEX): new variable.
26494
bd5a6415
GS
264952010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26496
26497 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
26498 `=' and added double quotes on operands of this equality test.
26499
3db3a82b
VS
265002010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26501
26502 * Makefile.in (uninstall): Remove a leftover debug echo.
26503 Reported by: Grégoire Sutre
26504
38023412
VS
265052010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26506
26507 MIPS multiboot2 support.
26508
26509 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
26510 (multiboot2_mod_SOURCES): New variable.
26511 (multiboot2_mod_CFLAGS): Likewise.
26512 (multiboot2_mod_LDFLAGS): Likewise.
26513 (multiboot2_mod_ASFLAGS): Likewise.
26514 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
26515 definition.
26516 (MULTIBOOT_ENTRY_REGISTER): Likewise.
26517 (MULTIBOOT_MBI_REGISTER): Likewise.
26518 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
26519 (MULTIBOOT_ELF32_MACHINE): Likewise.
26520 (MULTIBOOT_ELF64_MACHINE): Likewise.
26521 * include/grub/mips/multiboot.h: New file.
26522 * include/grub/video.h (grub_video_driver_id): New type
26523 GRUB_VIDEO_DRIVER_SM712.
26524 (grub_video_get_info_and_fini): Export.
26525 (grub_video_get_palette): Likewise.
26526 (grub_video_get_driver_id): Likewise.
26527 * include/multiboot2.h: Resynced with spec.
26528 * loader/i386/multiboot.c: Moved from here ...
26529 * loader/multiboot.c: ... here. All users updated.
26530 (grub_multiboot_boot): Use platform-specific macros.
26531 * loader/i386/multiboot_elfxx.c: Moved from here ...
26532 * loader/multiboot_elfxx.c: ... here. All users updated.
26533 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
26534 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
26535 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
26536
47674667
VS
265372010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
26538
26539 Import gnulib argp module.
26540
26541 * gnulib/argp-ba.c: New file.
26542 * gnulib/argp-eexst.c: Likewise.
26543 * gnulib/argp-fmtstream.c: Likewise.
26544 * gnulib/argp-fmtstream.h: Likewise.
26545 * gnulib/argp-fs-xinl.c: Likewise.
26546 * gnulib/argp-help.c: Likewise.
26547 * gnulib/argp-namefrob.h: Likewise.
26548 * gnulib/argp-parse.c: Likewise.
26549 * gnulib/argp-pin.c: Likewise.
26550 * gnulib/argp-pv.c: Likewise.
26551 * gnulib/argp-pvh.c: Likewise.
26552 * gnulib/argp-version-etc.c: Likewise.
26553 * gnulib/argp-version-etc.h: Likewise.
26554 * gnulib/argp-xinl.c: Likewise.
26555 * gnulib/argp.h: Likewise.
26556
495442ed
VS
265572010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26558
26559 * kern/device.c (grub_device_iterate): Clear errors after failed
26560 opening device.
26561
f9fd65df
VS
265622010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26563
26564 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
26565 returned by firmware.
26566
af09641e
VS
265672010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
26568
26569 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
26570 compilation on coreboot and qemu
26571
016883a5
VS
265722010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26573
26574 * include/multiboot2.h: Resync with spec.
26575
f97e1f7d
VS
265762010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26577
26578 Multiboot2 tag support
26579
26580 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26581 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26582 Remove loader/multiboot_loader.c.
26583 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26584 (grub_multiboot2_real_boot): Likewise.
26585 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26586 (grub_get_multiboot_mmap_count): New proto.
26587 (grub_fill_multiboot_mmap): Likewise.
26588 (grub_multiboot_set_video_mode): Likewise.
26589 (grub_multiboot_set_console): Likewise.
26590 (grub_multiboot_load): Likewise.
26591 (grub_multiboot_load_elf): Likewise.
26592 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26593 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26594 * include/multiboot.h: Resynced with specification.
26595 * include/multiboot2.h: Resynced with specification.
26596 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26597 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26598 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26599 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26600 users updated.
26601 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26602 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26603 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26604 Removed.
26605 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26606 Moved from here...
26607 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26608 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26609 Moved from here...
26610 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26611 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26612 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26613 All users updated.
26614 * loader/i386/multiboot_mbi2.c: New file.
26615
3506b90b
VS
266162010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26617
26618 Resync with gnulib.
26619
26620 * Makefile.in (GNULIB_CFLAGS): New variable.
26621 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26622 (grub_script_check_CFLAGS): New variable.
26623 * gnulib/alloca.h: Resync with gnulib.
26624 * gnulib/error.c: Likewise.
26625 * gnulib/error.h: Likewise.
26626 * gnulib/fnmatch.c: Likewise.
26627 * gnulib/fnmatch_loop.c: Likewise.
26628 * gnulib/getdelim.c: Likewise.
26629 * gnulib/getline.c: Likewise.
26630 * gnulib/getopt.c: Likewise.
26631 * gnulib/getopt1.c: Likewise.
26632 * gnulib/getopt_int.h: Likewise.
26633 * gnulib/gettext.h: Likewise.
26634 * gnulib/progname.c: Likewise.
26635 * gnulib/progname.h: Likewise.
26636
394a3120
GS
266372010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26638
26639 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26640 which is the case with --disabled-nls.
26641
26642 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26643 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26644 * util/misc.c: Likewise.
26645 * util/mkisofs/mkisofs.c: Likewise.
26646 * util/mkisofs/mkisofs.h: Likewise.
26647
969d1c78
VS
266482010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26649
26650 Simplify Apple CC support.
26651
26652 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26653 Add 0 byte at the end not to have a symbol with empty target.
26654 * mmap/i386/pc/mmap_helper.S: Likewise.
26655 * genmk.rb: Ignore errors 2030 and 2050.
26656 * kern/i386/pc/startup.S: Use LOCAL when possible.
26657
8d2977bb
BC
266582010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26659
26660 Testcase and the fix for final semicolon on cmdline.
26661
26662 * tests/grub_script_final_semicolon.in: New testcase.
26663 * conf/tests.rmk: Rules for the new testcase.
26664 * script/parser.y: Grammar fix.
26665
a7bd6915
BC
266662010-03-26 BVK Chaitanya <bvk@localhost>
26667
26668 Blank lines testcase for GRUB script.
26669
26670 * tests/grub_script_blanklines.in: New testcase.
26671 * conf/tests.rmk: Rules for the new testcase.
26672
e4ff6628
VS
266732010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26674
26675 Don't use __FILE__.
26676
26677 * genmk.rb: Add -DGRUB_FILE to all C targets.
26678 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26679 * include/grub/list.h: Likewise.
26680 * include/grub/misc.h: Likewise.
26681 * include/grub/mm.h: Likewise.
26682 * include/grub/test.h: Likewise.
26683 * kern/mm.c: Likewise.
26684 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26685
6a5cf6b6
VS
266862010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26687
26688 Sunpc partitions support.
26689
26690 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26691 (grub_fstest_SOURCES): Likewise.
26692 (pkglib_MODULES): Add part_sunpc.mod.
26693 (part_sunpc_mod_SOURCES): New variable.
26694 (part_sunpc_mod_CFLAGS): Likewise.
26695 (part_sunpc_mod_LDFLAGS): Likewise.
26696 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26697 * partmap/sunpc.c: New file.
26698
746d9045
BC
266992010-03-26 BVK Chaitanya <bvk@localhost>
26700
26701 For loop support to GRUB script.
26702
26703 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26704 (grub_script_create_cmdfor): New function prototype.
26705 (grub_script_execute_cmdfor): New function prototype.
26706 * script/execute.c (grub_script_execute_cmdfor): New function.
26707 * script/parser.y (command): New for command.
26708 (forcmd): New grammar rule.
26709 * script/script.c (grub_script_create_cmdfor): New function.
26710 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26711 function.
26712 * tests/grub_script_for1.in: New testcase.
26713 * conf/tests.rmk: Rules for new testcase.
26714
18486b18
VS
267152010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26716
26717 Nested partitions
26718
26719 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26720 'partition' is NULL, grub_partition_get_start already does that.
26721 * commands/loadenv.c (check_blocklists): Likewise.
26722 (write_blocklists): Likewise.
26723 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26724 (grub_fstest_SOURCES): Likewise.
26725 (pkglib_MODULES): Add part_bsd.mod.
26726 (part_bsd_mod_SOURCES): New variable.
26727 (part_bsd_mod_CFLAGS): Likewise.
26728 (part_bsd_mod_LDFLAGS): Likewise.
26729 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26730 (grub_emu_SOURCES): Likewise.
26731 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26732 * include/grub/bsdlabel.h: New file.
26733 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26734 'get_name'.
26735 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26736 (grub_partition_map_list): New variable.
26737 (grub_partition_map_register): Inline.
26738 (grub_partition_map_unregister): Likewise.
26739 (FOR_PARTITION_MAPS): New macro.
26740 (grub_partition_map_iterate): Removed.
26741 (grub_partition_get_start): Handle nested partitions.
26742 * include/grub/msdos_partition.h: Remove bsd-related entries.
26743 (grub_pc_partition): Remove.
26744 * kern/disk.c (grub_disk_close): Free partition data.
26745 (grub_disk_adjust_range): Handle nested partitions.
26746 * kern/partition.c (grub_partition_map_probe): New function.
26747 (grub_partition_probe): Parse name to number, handle subpartitions.
26748 (get_partmap): New function.
26749 (grub_partition_iterate): Handle subpartitions.
26750 (grub_partition_get_name): Likewise.
26751 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26752 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26753 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26754 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26755 Set 'number'.
26756 (acorn_partition_map_probe): Remove.
26757 (acorn_partition_map_get_name): Likewise.
26758 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26759 Set 'number'.
26760 Set 'index' to 0 since there can be only one partition entry per sector.
26761 (amiga_partition_map_probe): Remove.
26762 (amiga_partition_map_get_name): Likewise.
26763 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26764 Set 'number'.
26765 Set 'offset' and 'index' to real positions of partitions.
26766 (apple_partition_map_probe): Remove.
26767 (apple_partition_map_get_name): Likewise.
26768 * partmap/bsdlabel.c: New file.
26769 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26770 Set 'number'.
26771 Allocate 'data' so it can be correctly freed.
26772 Set 'index' to offset inside sector.
26773 (gpt_partition_map_probe): Remove.
26774 (gpt_partition_map_get_name): Likewise.
26775 * partmap/msdos.c (grub_partition_parse): Remove.
26776 (pc_partition_map_iterate): Don't force raw access.
26777 Set 'number'.
26778 Make 'ext_offset' a local variable.
26779 (pc_partition_map_probe): Remove.
26780 (pc_partition_map_get_name): Remove.
26781 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26782 Set 'number'.
26783 (sun_partition_map_probe): Remove.
26784 (sun_partition_map_get_name): Likewise.
26785 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
26786 (grub_pcpart_type): Likewise.
26787 * util/hostdisk.c (open_device): Handle new numbering scheme.
26788 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
26789 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
26790 * util/grub-probe.c (probe_partmap): Handle nested paritions.
26791 * util/grub-install.in: Insert all subpartition modules.
26792 * util/ieee1275/grub-install.in: Likewise.
26793
a3940f88
AG
267942010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
26795
26796 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
26797 grammar.
26798
21b99926 267992010-03-24 Colin Watson <cjwatson@ubuntu.com>
26800
26801 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
26802
bed1d352
CW
268032010-03-21 Colin Watson <cjwatson@ubuntu.com>
26804
26805 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
26806 match where 'make install' puts them.
26807 * util/i386/efi/grub-install.in: Likewise.
26808
c9f58427
CW
268092010-03-19 Colin Watson <cjwatson@ubuntu.com>
26810
26811 * .bzrignore: Add gentrigtables, grub-script-check,
26812 grub_script_check_init.c, grub_script_check_init.h, and
26813 trigtables.c.
26814
f84afb27
VS
268152010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
26816
26817 * kern/parser.c: Indented.
26818
ed0e3d30
VS
268192010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26820
26821 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
26822
0ea81d98
VS
268232010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26824
26825 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
26826 alpha_mask_size == 0 case.
26827
0cdc2a09
BC
268282010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
26829
26830 GRUB shell lexer and parser improvements.
26831
26832 * conf/any-emu.rmk: Build rule updates.
26833 * conf/common.rmk: Likewise.
26834 * conf/i386-coreboot.rmk: Likewise.
26835 * conf/i386-efi.rmk: Likewise.
26836 * conf/i386-ieee1275.rmk: Likewise.
26837 * conf/i386-pc.rmk: Likewise.
26838 * conf/powerpc-ieee1275.rmk: Likewise.
26839 * conf/x86_64-efi.rmk: Likewise.
26840
26841 * configure.ac: Configure check for flex.
26842
26843 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
26844 types.
26845 (grub_lexer_param): Struct member updates.
26846 (grub_parser_param): Likewise.
26847 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
26848 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
26849 (grub_script_lexer_init): Prototype update.
26850 (grub_script_lexer_record_start): Likewise.
26851 (grub_script_lexer_record_stop): Likewise.
26852 (grub_script_lexer_yywrap): New function prototype.
26853 (grub_script_lexer_fini): Likewise.
26854 (grub_script_execute_argument_to_string): Removed by...
26855 (grub_script_execute_argument_to_argv): ...better version.
26856
26857 * script/execute.c (ROUND_UPTO): New macro.
26858 (grub_script_execute_cmdline): Out of memory fixes.
26859 (grub_script_execute_menuentry): Likewise.
26860 (grub_script_execute_argument_to_string): Removed. Update all
26861 users by...
26862 (grub_script_execute_argument_to_argv): ...better version.
26863 * script/function.c (grub_script_function_create): Use
26864 grub_script_execute_argument_to_argv instead of
26865 grub_script_execute_argument_to_string.
26866
26867 * script/lexer.c (check_varstate): Removed.
26868 (check_textstate): Removed.
26869 (grub_script_lexer_record_start): Likewise.
26870 (grub_script_lexer_record_stop): Likewise.
26871 (recordchar): Replaced with...
26872 (grub_script_lexer_record): ...new function.
26873 (nextchar): Removed.
26874 (grub_script_lexer_init): Rewritten.
26875 (grub_script_yylex): Rewritten.
26876 (append_newline): New function.
26877 (grub_script_lexer_yywrap): New function.
26878 (grub_script_lexer_fini): New function.
26879 (grub_script_yyerror): Sets error flag.
26880
26881 * script/yylex.l: New file.
26882 (grub_lexer_yyfree): Wrapper for flex yyffre.
26883 (grub_lexer_yyalloc): Likewise.
26884 (grub_lexer_yyrealloc): Likewise.
26885 * script/parser.y: Refactored.
26886
26887 * script/script.c (grub_script_arg_add): Out of memory fixes.
26888 (grub_script_add_arglist): Likewise.
26889 (grub_script_create_cmdline): Likewise.
26890 (grub_script_create_cmdmenu): Likewise.
26891 (grub_script_add_cmd): Likewise.
26892 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26893 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26894 unnecessary code.
26895
26896 * tests/grub_script_echo1.in: New testcase.
26897 * tests/grub_script_vars1.in: New testcase.
26898 * tests/grub_script_echo_keywords.in: New testcase.
26899
1d63a066
VS
269002010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26901
26902 Remove some redundancy in build system.
26903
26904 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26905 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26906 (TARGET_LDFLAGS): Add -nostdlib.
26907 (TARGET_IMG_LDFLAGS): Likewise.
26908 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26909 anything since mmap isn't available.
26910 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26911 Add util/time.c.
26912 (pkglib_MODULES): Remove reboot.mod.
26913 (reboot_mod_SOURCES): Removed.
26914 (reboot_mod_CFLAGS): Likewise.
26915 (reboot_mod_LDFLAGS): Likewise.
26916 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26917 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26918 (DEFSYMFILES): Add kernel_syms.lst.
26919 (kernel_img_HEADERS): Add common headers.
26920 (symlist.c): New target.
26921 (kernel_syms.lst): Likewise.
26922 (pkglib_MODULES): Add memdisk.mod.
26923 (memdisk_mod_SOURCES): New variable.
26924 (memdisk_mod_CFLAGS): Likewise.
26925 (memdisk_mod_LDFLAGS): Likewise.
26926 (pkglib_MODULES): Add reboot.mod.
26927 (reboot_mod_SOURCES): New variable.
26928 (reboot_mod_CFLAGS): Likewise.
26929 (reboot_mod_LDFLAGS): Likewise.
26930 (pkglib_MODULES): Add date.mod.
26931 (date_mod_SOURCES): New variable.
26932 (date_mod_CFLAGS): Likewise.
26933 (date_mod_LDFLAGS): Likewise.
26934 (pkglib_MODULES): Add datehook.mod.
26935 (datehook_mod_SOURCES): New variable.
26936 (datehook_mod_CFLAGS): Likewise.
26937 (datehook_mod_LDFLAGS): Likewise.
26938 (pkglib_MODULES): Add lsmmap.mod.
26939 (lsmmap_mod_SOURCES): New variable.
26940 (lsmmap_mod_CFLAGS): Likewise.
26941 (lsmmap_mod_LDFLAGS): Likewise.
26942 (pkglib_MODULES): Add boot.mod.
26943 (boot_mod_SOURCES): New variable.
26944 (boot_mod_CFLAGS): Likewise.
26945 (boot_mod_LDFLAGS): Likewise.
26946 * conf/i386-coreboot.rmk: Removed redundant parts.
26947 * conf/i386-ieee1275.rmk: Likewise.
26948 * conf/i386-pc.rmk: Likewise.
26949 * conf/mips-yeeloong.rmk: Likewise.
26950 * conf/mips.rmk: Likewise.
26951 * conf/powerpc-ieee1275.rmk: Likewise.
26952 * conf/sparc64-ieee1275.rmk: Likewise.
26953 * conf/x86_64-efi.rmk: Likewise.
26954 * conf/i386-coreboot.rmk: Moved qemu parts ..
26955 * conf/i386-qemu.rmk: ... here
26956 * conf/i386-efi.rmk: Moved common parts to...
26957 * conf/x86-efi.rmk: ... here.
26958 * conf/i386.rmk: Added modules common to all x86 variants.
26959 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26960 * disk/memdisk.c: Remove grub/machine/kernel.h.
26961 * gensymlist.sh.in: Include symbol.h.
26962 * hook/datehook.c: Correct module name.
26963 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26964 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26965 * include/grub/i386/efi/serial.h: New file.
26966 * include/grub/x86_64/efi/serial.h: Likewise.
26967 * util/time.c: Likewise.
26968 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26969
463ac55f
CK
269702010-03-14 Colin King <colin.king@ubuntu.com>
269712010-03-14 Colin Watson <cjwatson@ubuntu.com>
26972
26973 Shrink the pre-partition-table part of boot.img by eight bytes.
26974
26975 * boot/i386/pc/boot.S (ERR): New macro.
26976 (chs_mode): Use ERR.
26977 (geometry_error): Likewise.
26978 (hd_probe_error): Remove. This is only used once, so we wrwite
26979 it inline instead.
26980 (read_error): Instead of printing read_error_string, just set up
26981 %si and fall through to ...
26982 (error_message): ... this new function, also used by ERR.
26983
08e46ede
CW
269842010-03-14 Colin Watson <cjwatson@ubuntu.com>
26985
26986 Speed up consecutive hostdisk operations on the same device.
26987
26988 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26989 (grub_util_biosdisk_open): Initialise disk->data.
26990 (struct linux_partition_cache): New structure.
26991 (linux_find_partition): Cache partition start positions; these are
26992 expensive to compute on every read and write.
26993 (open_device): Cache open file descriptor in disk->data, so that we
26994 don't have to reopen it and flush the buffer cache for consecutive
26995 operations on the same device.
26996 (grub_util_biosdisk_close): New function.
26997 (grub_util_biosdisk_dev): Set `close' member.
26998
26999 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
27000 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
27001 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
27002 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
27003 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
27004
4a6d2d06
VS
270052010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27006
27007 Compile parts of grub-emu as modules.
27008
27009 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
27010 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
27011 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
27012 (all-local): Add $(GRUB_EMU).
27013 (install-local): Install $(GRUB_EMU).
27014 (uninstall): Uninstall $(GRUB_EMU).
27015 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
27016 * kern/dl.c: Likewise.
27017 * commands/sleep.c: Not include machine/time.h.
27018 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
27019 (COMMON_CFLAGS): Likewise.
27020 (sbin_UTILITIES): Remove grub-emu.
27021 (grub_emu_SOURCES): Removed.
27022 (kernel_img_RELOCATABLE): New variable.
27023 (pkglib_PROGRAMS): Add kernel.img.
27024 (kernel_img_SOURCES): New variable
27025 (kernel_img_CFLAGS): Likewise.
27026 (kernel_img_LDFLAGS): Likewise.
27027 (TARGET_NO_STRIP): Likewise.
27028 (TARGET_NO_DYNAMIC_MODULES): Likewise.
27029 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
27030 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
27031 (grub-emu): New target.
27032 (GRUB_EMU): New variable.
27033 * configure.ac: Whitelist -emu as possible x86_64 architecture.
27034 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
27035 * loader/xnu.c: Likewise.
27036 * include/grub/pci.h: Likewise.
27037 * genemuinit.sh: New file.
27038 * genemuinitheader.sh: Likewise.
27039 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
27040 Support TARGET_NO_DYNAMIC_MODULES.
27041 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
27042 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
27043 * disk/loopback.c: Likewise.
27044 * font/font_cmd.c: Likewise.
27045 * partmap/acorn.c: Likewise.
27046 * partmap/amiga.c: Likewise.
27047 * partmap/apple.c: Likewise.
27048 * partmap/gpt.c: Likewise.
27049 * partmap/msdos.c: Likewise.
27050 * partmap/sun.c: Likewise.
27051 * parttool/msdospart.c: Likewise.
27052 * term/gfxterm.c: Likewise.
27053 * video/bitmap.c: Likewise.
27054 * video/readers/jpeg.c: Likewise.
27055 * video/readers/png.c: Likewise.
27056 * video/readers/tga.c: Likewise.
27057 * video/video.c: Likewise.
27058 * util/grub-emu.c (read_command_list): Removed.
27059 (main): Don't call util_init_nls.
27060 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
27061 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
27062
91fdd2ed
VS
270632010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27064
27065 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
27066 date.mod, datehook.mod.
27067 (datetime_mod_SOURCES): New variable.
27068 (datetime_mod_CFLAGS): Likewise.
27069 (datetime_mod_LDFLAGS): Likewise.
27070 (date_mod_SOURCES): Likewise.
27071 (date_mod_CFLAGS): Likewise.
27072 (date_mod_LDFLAGS): Likewise.
27073 (datehook_mod_SOURCES): Likewise.
27074 (datehook_mod_CFLAGS): Likewise.
27075 (datehook_mod_LDFLAGS): Likewise.
27076 * conf/sparc64-ieee1275.rmk: Likewise.
27077 * lib/ieee1275/datetime.c: New file.
27078
873ccae6
VS
270792010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27080
27081 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
27082 (ieee1275_fb_mod_SOURCES): New variable.
27083 (ieee1275_fb_mod_CFLAGS): Likewise.
27084 (ieee1275_fb_mod_LDFLAGS): Likewise.
27085 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
27086 New proto.
27087 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
27088 (HEAP_MAX_ADDR): Likewise.
27089 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
27090 type.
27091 Correct stop condition.
27092 (grub_ieee1275_devices_iterate): New function.
27093 * video/ieee1275.c: New file.
27094
601c97c0
VS
270952010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
27096
27097 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
27098
27099 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
27100 as scratch.
27101 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
27102 SCRATCH_PAD_DISKBOOT as scratch.
27103 (bootit): Pass Openfirmware pointer in %o4.
27104 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
27105 of 0x200000.
27106 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
27107 with util/grub-mkrawimage.c.
27108 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
27109 * include/grub/aout.h (AOUT_MID_SUN): New definition.
27110 (grub_aout_get_type) [GRUB_UTIL]: Removed.
27111 (grub_aout_load) [GRUB_UTIL]: Likewise.
27112 * include/grub/kernel.h (grub_modules_get_end): New proto.
27113 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
27114 (SCRATCH_PAD_BOOT): New definition.
27115 (SCRATCH_PAD_DISKBOOT): Likewise.
27116 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
27117 * include/grub/sparc64/ieee1275/ieee1275.h
27118 (grub_ieee1275_original_stack): New variable
27119 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27120 New definition
27121 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
27122 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
27123 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
27124 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
27125 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
27126 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
27127 (grub_platform_image_format_t): New type.
27128 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
27129 * kern/main.c (grub_modules_get_end)
27130 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
27131 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
27132 (codestart): Switch stacks.
27133 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
27134 variable.
27135 (grub_heap_init): Use grub_modules_get_end.
27136 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
27137 stack.
27138 * util/grub-mkrawimage.c (generate_image): Support sparc64.
27139 (main): Likewise.
27140 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
27141
d68b491e
TG
271422010-03-14 Thorsten Glaser <tg@mirbsd.org>
27143
27144 * util/grub-mkrescue.in: Base ISO UUID on UTC.
27145
4e02ed50
MK
271462010-03-08 Matt Kraai <kraai@ftbfs.org>
27147
27148 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
27149 bug #559005).
27150
1f15fc1e
VS
271512010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
27152
27153 * genmoddep.awk: Output all missing symbols and not only first.
27154
fce5d8ff
VS
271552010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27156
27157 * NEWS: Put the date of 1.98 release.
27158
d1e8a02f
VS
271592010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27160
27161 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
27162 ft2build.h.
27163
696fd607
VS
271642010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27165
27166 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
27167 completition in the middle of string.
27168
33e2e6f3
VS
271692010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27170
27171 * util/grub-mkrescue.in: Use mktemp with explicit template.
27172
b1f6d291
VS
271732010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27174
27175 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
27176
2ac227c7
VS
271772010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27178
27179 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
27180 right pointer.
27181
8f9a632b
VS
271822010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27183
27184 Fix FreeBSD compilation.
27185
27186 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
27187 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
27188
60b03859
VS
271892010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27190
27191 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
27192
48a5a769
VS
271932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27194
27195 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
27196
3ab4bd77
VS
271972010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27198
27199 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
27200
d116e0d8
RM
272012010-03-04 Robert Millan <rmh.grub@aybabtu.com>
27202
27203 Support relative image path in theme file.
27204
27205 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
27206 (image_set_property): Handle theme_dir and relative path.
27207
c7ef54aa
VS
272082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27209
27210 * configure.ac: Alias amd64 to x86_64.
27211
fcee14ed
VS
272122010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27213
27214 * NEWS: mention multiboot on EFI.
27215
d0780363
VS
272162010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27217
27218 * kern/main.c (grub_load_modules): Handle errors from init functions of
27219 embeded modules.
27220
41168ea4
VS
272212010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27222
27223 * normal/autofs.c (autoload_fs_module): Handle errors.
27224
b54d93ac
VS
272252010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27226
27227 Disable linux.mod on qemu-mips since it's not functional and leads
27228 to compilation failure.
27229
27230 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
27231 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
27232 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
27233 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
27234 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
27235 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
27236 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
27237 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
27238 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
27239 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
27240 Reported by: BVK Chaitanya
27241
fc8345da
JU
272422010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
27243
27244 * INSTALL: Add gettext as a dependency and add qemu to a new section
27245 "Prerequisites for make-check".
27246
4760f979
CF
272472010-03-04 Christian Franke <franke@computer.org>
27248
27249 * util/grub-pe2elf.c: Add missing include "progname.h".
27250
f209b5b2
VS
272512010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27252
27253 * normal/crypto.c (read_crypto_list): Fix a typo.
27254 Reported by: Seth Goldberg.
27255
b4b7be98
VS
272562010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27257
27258 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 27259 Reported by: Seth Goldberg.
b4b7be98 27260
c0ee0385
VS
272612010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27262
27263 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
27264 ascii.bitmaps.
27265
a8efbf64
VS
272662010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27267
27268 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 27269 Reported by: Seth Goldberg.
a8efbf64 27270
08dcd913
VS
272712010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27272
27273 * util/i386/efi/grub-install.in: Copy gettext files.
27274
c4d0b332
VS
272752010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27276
27277 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
27278
c6f2fe52
VS
272792010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27280
27281 Wait for user entry basing on presence of output rather than on errors.
27282
27283 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
27284 (grub_install_newline_hook): Likewise.
27285 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
27286 * normal/menu.c (show_menu): Check line_counter to determine presence
27287 of output.
27288 * normal/term.c (grub_normal_line_counter): New variable.
27289 (grub_normal_get_line_counter): New function.
27290 (grub_install_newline_hook): Likewise.
27291
5382b1e4
VS
272922010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27293
27294 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
27295
5519963b
VS
272962010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27297
27298 * configure.ac: Update version to 1.98.
27299
72b28631
VS
273002010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
27301
27302 * util/grub.d/10_linux.in (linux_entry): Don't default to
27303 gfxpayload=keep if Linux doesn't support video handover.
27304
c140a180
VS
273052010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
27306
27307 Don't compile video modules on yeeloong since video subsystem is part
27308 of kernel.
27309
27310 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
27311 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
27312 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
27313 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
27314 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
27315 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
27316 * include/grub/bitmap_scale.h: Likewise.
27317 * include/grub/bufio.h: Likewise.
27318 * include/grub/font.h: Likewise.
27319 * include/grub/gfxterm.h: Likewise.
27320 * include/grub/video.h: Likewise.
27321 * include/grub/vbe.h: Don't include video_fb.h.
27322 * video/i386/pc/vbe.c: Include video_fb.h.
27323 * commands/i386/pc/vbetest.c: Include video.h.
27324
a0ca21c2
CW
273252010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
27326
27327 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
27328 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
27329 default entry if GRUB_SAVEDEFAULT=true. This allows using
27330 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
27331 saving a new default on every boot.
27332
4a8a763c
VS
273332010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27334
27335 * normal/crypto.c (read_crypto_list): Fix a memory leak.
27336 * normal/term.c (read_terminal_list): Likewise.
27337 * normal/main.c (grub_normal_init_page): Likewise.
27338 (grub_normal_read_line_real): Likewise.
27339
607ffde2
VS
273402010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27341
27342 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
27343 memory leak.
27344 Reported by: Seth Goldberg.
27345
2b8fa975
CW
273462010-02-24 Joey Korkames <joey+lists@kidfixit.com>
27347
27348 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
27349 duplicate declaration of `start'.
27350
618307dd
VS
273512010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27352
27353 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
27354 filename.
27355 Reported by: Georgy Buranov
27356
7dd05b96 273572010-02-20 Carles Pina i Estany <carles@pina.cat>
27358
27359 * util/grub-mkrawimage.c (usage): Change string formatting to
27360 improve gettext.
27361
d1484a42
MRA
273622010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
27363
27364 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
27365 backspace keys.
27366
42b1d186
VS
273672010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27368
27369 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
27370 Reported by: Michael Suchanek.
27371
273722010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
27373
27374 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
27375 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
27376
d9f31a41
VS
273772010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
27378
27379 Remove any reference to non-free fonts.
27380
27381 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
27382 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
27383 uses non-free components.
27384 * font/font.c (grub_font_get_name): Remove example name.
27385 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
27386 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
27387 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
27388 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
27389
2793c71e
GB
273902010-02-16 Georgy Buranov <gburanov@gmail.com>
27391
27392 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
27393
402e3779
VS
273942010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27395
27396 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
27397 Double divisor.
27398 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
27399 features.
27400 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
27401
0dd1e0dd
VS
274022010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27403
27404 * gensymlist.sh.in: Use TARGET_CC instead of CC.
27405
6fa7cfce
ST
274062010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27407
27408 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
27409 * docs/grub.texi (Command-line and menu entry commands): Document play
27410 command.
27411
37c8483b
ST
274122010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27413
27414 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
27415 parse arguments as inline tempo and notes. Move code for playing notes
27416 to...
27417 (play): ... new function.
27418
14da0fb7
ST
274192010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27420
27421 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
27422 grub_uint16_t instead of short.
27423 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
27424 disk from little endian to cpu endianness.
27425
04459e70
ST
274262010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27427
27428 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
27429 GRUB_TICKS_PER_SECOND instead of 120.
27430
a0876943
VS
274312010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27432
27433 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
27434 escape sequence after \e.
27435
e29f95dc
VS
274362010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27437
27438 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
27439 non-ASCII characters.
27440
d27859b2
VS
274412010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27442
27443 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
27444 set root in single quotes to prevent \, from being unescaped.
27445
bc028f2f
VS
274462010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27447
27448 Prevent unknown commands from stopping menuentry execution.
27449
27450 * script/execute.c (grub_script_execute_cmdline): Print error after
27451 unknown command.
27452
095f5f82
VS
274532010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27454
27455 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
27456 Reported by: Pavel Pisa.
27457
8c717950
VS
274582010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27459
27460 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
27461
904935c3
VS
274622010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27463
27464 Merge grub_ieee1275_map_physical into grub_map and rename to
27465 grub_ieee1275_map
27466
27467 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
27468 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
27469 Remove.
27470 * kern/ieee1275/openfw.c (grub_map): Rename to ...
27471 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
27472 necessary.
27473 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
27474
5b59a4e3
VS
274752010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27476
27477 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
27478 opening and not after.
27479
69e137e8
VS
274802010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27481
27482 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
27483 constants.
27484
2c0fcc36
VS
274852010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27486
27487 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
27488 (alloc_phys): Use ALIGN_UP instead of align_addr.
27489
8c6052ce
VS
274902010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27491
27492 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
27493
17cec782
VS
274942010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27495
27496 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
27497
e0128bbd
VS
274982010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27499
27500 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
27501 verbose dprintf.
27502
ca62070b
VS
275032010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27504
27505 Fix over-4GiB seek on sparc64.
27506
27507 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
27508 Replace pos_i and pos_lo with pos. All users updated.
27509 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27510 New constant.
27511 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27512 Likewise.
27513 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
27514 and pos_lo.
27515
bdca2607
VS
275162010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27517
27518 * util/grub-mkrawimage.c (main): Call set_program_name.
27519
da278c4d
VS
275202010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27521
27522 Properly align 64-bit targets.
27523
27524 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
27525 (generate_image): Use ALIGN_ADDR.
27526
b274d734
VS
275272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27528
27529 Properly create cross-endian images.
27530
27531 * include/grub/types.h (grub_host_to_target_addr): New macro
27532 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
27533
82da2062
VS
275342010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27535
27536 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
27537
7cae4377
VS
275382010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27539
27540 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
27541
27542 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
27543 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
27544 (grub_linux_boot): Divide by 64K when on VESA.
27545
65a533e7
VS
275462010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27547
27548 Support GRUB_GFXPAYLOAD_LINUX.
27549
27550 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
27551 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
27552
dd01d397
VS
275532010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27554
27555 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
27556 to show messages instead of discarding them.
27557 Process errors after executing command and not before. Keep old method
27558 too as precaution.
27559
660960d6
VS
275602010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
27561
27562 * configure.ac: Check for ft2build.h.
27563
62509f04
VS
275642010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27565
27566 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
27567
473df63d
VS
275682010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27569
27570 * genkernsyms.sh.in: Use TARGET_CC.
27571
c98d2a13
CW
275722010-02-07 Colin Watson <cjwatson@ubuntu.com>
27573
27574 * NEWS: Update.
27575
6e14234c
VS
275762010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27577
27578 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
27579 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27580 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 27581
b255e9cf
YB
275822010-02-07 Yves Blusseau <blusseau@zetam.org>
27583
6e14234c 27584 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 27585
98e6959d
VS
275862010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27587
27588 Fix warnings in grub-emu when compiling with maximum warning options.
27589
27590 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27591 (grub_arch_modules_addr): Return 0 and not NULL.
27592 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 27593 (xstrdup): Use newstr instead of dup.
f88d801b
VS
27594 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27595 of disk to dsk to avoid shadowing.
74e4934e
VS
27596 (find_free_slot): Fix prototype.
27597 * util/getroot.c (grub_util_is_dmraid): Make static.
27598 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27599 Add missing prototype.
27600 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 27601
74e31b5c
VS
276022010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27603
27604 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27605 appropriately.
27606
6b2ad14b
VS
276072010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27608
27609 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27610 code out.
27611
8f891adc
VS
276122010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27613
27614 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27615 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27616 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27617 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27618 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27619 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27620
74b45184
VS
276212010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27622
27623 * include/grub/err.h (grub_err_printf): Don't export.
27624
a4bced77
VS
276252010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27626
27627 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27628
007d0695
VS
276292010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27630
27631 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27632 * kern/misc.c (grub_gettext_dummy): Make static.
27633
b6c0d9c2
VS
276342010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27635
27636 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27637 by non-valid ones.
27638 * kern/term.c (grub_putchar): Likewise.
27639
f51a90d0
VS
276402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27641
27642 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27643 buggy hook call and memory leak.
27644
6846cec5
VS
276452010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27646
27647 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27648
468d69fe
VS
276492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27650
27651 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27652
51906b8c
VS
276532010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27654
27655 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27656 modevar.
27657 Return grub_errno on allocation error.
27658
09706ce5
VS
276592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27660
27661 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27662
911df80c
YB
276632010-02-06 Yves Blusseau <blusseau@zetam.org>
27664
27665 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27666 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27667
3746a6bc
VS
276682010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27669
27670 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27671 non-pxe disk.
27672 (grub_pxefs_open): Likewise.
27673
09706ce5
VS
276742010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27675
27676 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27677 * util/grub.d/10_kfreebsd.in: Likewise.
27678 * util/grub.d/10_linux.in: Likewise.
27679
7cc192d9
VS
276802010-02-06 Colin D Bennett <colin@gibibit.com>
27681
27682 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27683 (gfxmenu_mod_SOURCES): New variable.
27684 (gfxmenu_mod_CFLAGS): Likewise.
27685 (gfxmenu_mod_LDFLAGS): Likewise.
27686 * include/grub/term.h (grub_term_set_current_output): Declare
27687 argument as const.
27688 * docs/gfxmenu-theme-example.txt: New file.
27689 * gfxmenu/gfxmenu.c: Likewise.
27690 * gfxmenu/gui_box.c: Likewise.
27691 * gfxmenu/gui_canvas.c: Likewise.
27692 * gfxmenu/gui_circular_progress.c: Likewise.
27693 * gfxmenu/gui_image.c: Likewise.
27694 * gfxmenu/gui_label.c: Likewise.
27695 * gfxmenu/gui_list.c: Likewise.
27696 * gfxmenu/gui_progress_bar.c: Likewise.
27697 * gfxmenu/gui_string_util.c: Likewise.
27698 * gfxmenu/gui_util.c: Likewise.
27699 * gfxmenu/icon_manager.c: Likewise.
27700 * gfxmenu/model.c: Likewise.
27701 * gfxmenu/named_colors.c: Likewise.
27702 * gfxmenu/theme_loader.c: Likewise.
27703 * gfxmenu/view.c: Likewise.
27704 * gfxmenu/widget-box.c: Likewise.
27705 * include/grub/gfxmenu_model.h: Likewise.
27706 * include/grub/gfxmenu_view.h: Likewise.
27707 * include/grub/gfxwidgets.h: Likewise.
27708 * include/grub/gui.h: Likewise.
27709 * include/grub/gui_string_util.h: Likewise.
27710 * include/grub/icon_manager.h: Likewise.
27711
277122010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27713
27714 Agglomerate scrolling in gfxterm.
27715
27716 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27717 (grub_virtual_screen_setup): Initialise 'total_screen'.
27718 (write_char): Split to ...
27719 (paint_char): ... this ...
27720 (write_char): ... and this.
27721 (paint_char): Handle delayed scrolling.
27722 (draw_cursor): Likewise.
27723 (scroll_up): Split to ...
27724 (real_scroll): ... this ...
27725 (scroll_up): ... and this.
27726 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27727 characters.
27728 (grub_gfxterm_refresh): Call real_scroll.
27729
277302010-02-06 Colin D Bennett <colin@gibibit.com>
27731
27732 * include/grub/misc.h (grub_iscntrl): New inline function.
27733 (grub_isalnum): Likewise.
27734 (grub_strtol): Likewise.
27735
277362010-02-06 Colin D Bennett <colin@gibibit.com>
27737
27738 * normal/menu_text.c (get_entry_number): Move from here ...
27739 * normal/menu.c (get_entry_number): ... moved here.
27740 * include/grub/menu.h (grub_menu_get_default_entry_index):
27741 New prototype.
27742 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27743 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27744 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27745 (grub_menu_viewer_should_return): Likewise.
27746 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27747 * normal/menu_text.c (run_menu): Enable menu switching.
27748 * normal/menu_viewer.c (should_return): New variable.
27749 (menu_viewer_changed): Likewise.
27750 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27751 (grub_menu_viewer_should_return): New function.
27752 (menuviewer_write_hook): Likewise.
27753 (grub_menu_viewer_init): Likewise.
27754
277552010-02-06 Colin D Bennet <colin@gibibit.com>
277562010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27757
27758 Support for gfxterm in a window.
27759
27760 * include/grub/gfxterm.h: New file.
27761 * include/grub/video.h (struct grub_video_rect): New declaration.
27762 (grub_video_rect_t): Likewise.
27763 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27764 (refcount): New variable.
27765 (render_target): Likewise.
27766 (window): Likewise.
27767 (repaint_callback): Likewise.
27768 (grub_virtual_screen_setup): Use 'render_target'.
27769 (init_window): New function.
27770 (grub_gfxterm_init_window): Likewise.
27771 (grub_gfxterm_init): Check reference counter.
27772 Use init_window.
27773 (destroy_window): New function.
27774 (grub_gfxterm_destroy_window): Likewise.
27775 (grub_gfxterm_fini): Check reference counter.
27776 Use destroy_window.
27777 (redraw_screen_rect): Restore viewport.
27778 Use 'render_target' and 'window'.
27779 Call 'repaint_callback'.
27780 (write_char): Use 'render_target'.
27781 (draw_cursor): Likewise.
27782 (scroll_up): Restore viewport.
27783 Use 'render_target' and 'window'.
27784 Call 'repaint_callback'.
27785 (grub_gfxterm_cls): Likewise.
27786 (grub_gfxterm_refresh): Use 'window'.
27787 (grub_gfxterm_set_repaint_callback): New function.
27788 (grub_gfxterm_background_image_cmd): Use 'window'.
27789 (grub_gfxterm_get_term): New function.
27790 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
27791
277922010-02-06 Colin D Bennett <colin@gibibit.com>
27793
27794 Bitmap scaling support.
27795
27796 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
27797 (bitmap_scale_mod_SOURCES): New variable.
27798 (bitmap_scale_mod_CFLAGS): Likewise.
27799 (bitmap_scale_mod_LDFLAGS): Likewise.
27800 * include/grub/bitmap_scale.h: New file.
27801 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
27802 (background_image_cmd_options): New variable.
27803 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
27804 (cmd): Rename and change type to ...
27805 (background_image_cmd_handle): ... this. All users updated.
27806 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
27807 * video/bitmap_scale.c: New file.
27808
278092010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27810
27811 SDL support.
27812
27813 * Makefile.in (LIBSDL): New variable.
27814 (enable_grub_emu_sdl): Likewise.
27815 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
27816 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
27817 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
27818 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
27819 * util/sdl.c: New file.
27820
278212010-02-06 Colin D Bennett <colin@gibibit.com>
278222010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27823
27824 Double buffering support.
27825
27826 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
27827 * include/grub/video.h: Update comment.
27828 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
27829 New type.
27830 (grub_video_fb_doublebuf_blit_init): New prototype.
27831 * term/gfxterm.c (scroll_up): Support double buffering.
27832 (grub_gfxterm_refresh): Likewise.
27833 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
27834 (grub_video_fb_doublebuf_blit_init): Likewise.
27835 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
27836 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
27837 'displayed_page', 'render_page' and 'update_screen'.
27838 (grub_video_vbe_fini): Free offscreen buffer.
27839 (doublebuf_pageflipping_commit): New function.
27840 (doublebuf_pageflipping_update_screen): Likewise.
27841 (doublebuf_pageflipping_init): Likewise.
27842 (double_buffering_init): Likewise.
27843 (grub_video_vbe_setup): Enable doublebuffering.
27844 (grub_video_vbe_swap_buffers): Implement.
27845 (grub_video_vbe_set_active_render_target): Handle double buffering.
27846 (grub_video_vbe_get_active_render_target): Likewise.
27847 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
27848 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
27849 (grub_video_vbe_enable_double_buffering): Likewise.
27850 (grub_video_vbe_swap_buffers): Use update_screen.
27851 (grub_video_set_mode): Use double buffering.
27852
278532010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27854
27855 * maintainance/gentrigtables.py: Remove.
27856 * lib/trig.c: Likewise.
27857
27858 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27859
27860 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27861 `trigtables.c'.
27862 (trigtables.c): New rule.
27863 (gentrigtables): Likewise.
27864 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27865
278662010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27867
27868 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27869 integer constants.
27870
278712010-02-06 Colin D Bennet <colin@gibibit.com>
27872
27873 Trigonometry support.
27874
27875 * include/grub/trig.h: New file.
27876 * lib/trig.c: Likewise.
27877 * maintainance/gentrigtables.py: Likewise.
27878 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27879 (trig_mod_SOURCES): New variable.
27880 (trig_mod_CFLAGS): Likewise.
27881 (trig_mod_LDFLAGS): Likewise.
27882
5562834e
VS
278832010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27884
27885 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27886 disk devices.
27887
4f8528fc
VS
278882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27889
27890 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27891 error.
27892
2b4068e9
VS
278932010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27894
27895 * util/hostdisk.c (open_device): Don't use partition device when reading
27896 before the partition.
27897 (grub_util_biosdisk_read): Don't read from partition and before the
27898 partition in single operation.
27899 (grub_util_biosdisk_write): Don't write to partition and before the
27900 partition in single operation.
27901
399f6e4d
TL
279022010-02-03 Torsten Landschoff <torsten@debian.org>
27903
27904 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27905 last sectors.
27906
996649b0
VS
279072010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27908
27909 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27910 CDROM reads.
27911 (grub_biosdisk_write): Refuse to write to CDROM.
27912
3b205d4d
VS
279132010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27914
27915 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27916
61e89d9d
VS
279172010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27918
27919 * font/font.c (find_glyph): Check that bmp_idx is available before
27920 using it.
27921 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27922 with (font == NULL).
27923
bf7fcba2
CS
279242010-01-28 Christian Schmitt <chris@ilovelinux.de>
27925
27926 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27927
f45d2663
BC
279282010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27929
27930 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27931 * util/grub-script-check.c (getline): Fix empty lines case.
27932
ec1444e6
RM
279332010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27934
27935 * Makefile.in (check): Exit with fail status when one of the tests
27936 fails.
27937 * tests/example_functional_test.c (example_test): Fix reversed assert.
27938 * tests/example_unit_test.c (example_test): Likewise.
27939
2e1cb9bb
CW
279402010-01-28 Colin Watson <cjwatson@ubuntu.com>
27941
27942 * util/grub.d/10_linux.in: This script does not use any of the
27943 contents of gettext.sh, only the external command `gettext', so stop
27944 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27945 the same prefix as GRUB.)
27946 * util/grub.d/10_kfreebsd.in: Likewise.
27947
63533ab0
VS
279482010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27949
27950 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27951 of the line.
27952
989e1f93
VS
279532010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27954
27955 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27956 last sectors.
27957
e709ebe2
VS
279582010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27959
27960 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27961 having a 4KiB and not 32KiB buffer size.
27962
27dea7ed
RM
279632010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27964
27965 * util/hostfs.c: Include `<errno.h>'.
27966 (grub_hostfs_read): Handle errors from fseeko() and fread().
27967
67667b9c
RM
279682010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27969
27970 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27971 loop when using read hooks on files whose size isn't sector-aligned.
27972
c294d9d8
RM
279732010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27974
27975 Remove unused parameter.
27976
27977 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27978 (grub_iso9660_open): Remove initialization of `data->length'.
27979
af75a9f1
RM
279802010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27981
27982 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27983 memleak conditions.
27984
254e2ce5 279852010-01-27 Carles Pina i Estany <carles@pina.cat>
27986
27987 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27988 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27989
b510928c 279902010-01-26 Carles Pina i Estany <carles@pina.cat>
27991
27992 * util/bin2h.c (usage): Fix warning (space after backslash).
27993
aa2f9dd2 279942010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 27995
27996 * font/font.c: Include `grub/fontformat.h.
27997 Remove font file format constants.
27998 (grub_font_load): Use the new macros.
27999 * include/grub/fontformat.h: New file.
28000 * util/grub-mkfont.c: Include `grub/fontformat.c'.
28001 (write_font_pf2): Use the new macros.
28002
94e7e712
RM
280032010-01-26 Robert Millan <rmh.grub@aybabtu.com>
28004
28005 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
28006 does.
28007
3973a59a
RM
280082010-01-26 Robert Millan <rmh.grub@aybabtu.com>
28009
28010 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
28011
28012 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
28013 (_start): Macroify `0x7F'.
28014
28015 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
28016 (make_install_device): Use "(pxe)" as fallback prefix when booting
28017 via PXE.
28018
42e0cba3
GS
280192010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
28020
28021 * configure.ac: Reset LIBS after check for libgcc symbols.
28022
847effd8
CW
280232010-01-25 Colin Watson <cjwatson@ubuntu.com>
28024
28025 * util/hostdisk.c (open_device): Add trailing newline to debug
28026 message.
28027
ea4a7e35
GS
280282010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
28029
28030 * configure.ac: Check for `limits.h'.
28031 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
28032
67951a53
RM
280332010-01-24 Robert Millan <rmh.grub@aybabtu.com>
28034
28035 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
28036 capitalize error strings.
28037
c273d4ce
ST
280382010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
28039
28040 * util/grub.d/10_hurd.in: Add a recovery mode.
28041
69be5b74
VS
280422010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
28043
28044 * configure.ac: Check for libgcc symbols with -nostdlib.
28045
fc9e5810
BC
280462010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
28047
28048 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
28049
4b358c0a
VS
280502010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
28051
28052 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
28053 stack since heap may be unavailable at that point.
28054 (grub_ofconsole_gotoxy): Likewise.
28055
454fcd1c
VS
280562010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
28057
28058 * configure.ac: Check for _restgpr_14_x.
28059 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
28060 and _savegpr_* prototypes.
28061
566863ca
RM
280622010-01-22 Robert Millan <rmh.grub@aybabtu.com>
28063
28064 Use generic grub_reboot() for i386-efi.
28065
28066 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
28067 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
28068 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
28069
bf86e59a
VS
280702010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
28071
28072 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
28073 presence of "prefix" variable as it breaks when normal.mod is
28074 embedded.
28075
d645e0f8
VS
280762010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28077
28078 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
28079 stack since heap is unavailable at that point.
28080
f9ab2e25
VS
280812010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28082
28083 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
28084 (grub_freebsd_bootinfo): Rewritten.
28085 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
28086
01fc7054
VS
280872010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
28088
28089 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
28090
caab4fd6
RM
280912010-01-21 Robert Millan <rmh.grub@aybabtu.com>
28092
28093 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
28094 domain now.
28095
67eb1427
FZ
280962010-01-20 Felix Zielcke <fzielcke@z-51.de>
28097
28098 * util/misc.c (make_system_path_relative_to_its_root): Change the work
28099 around for handling "/" to the correct fix. Fix a memory leak. Use
28100 xstrdup instead of strdup.
28101
a9ed4ff3
VS
281022010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28103
28104 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
28105
281062010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
28107
28108 Optimise glyph lookup by Basic Multilingual Plane lookup array.
28109
28110 * font/font.c (struct grub_font): New member 'bmp_idx'.
28111 (font_init): Initialise 'bmp_idx'.
28112 (load_font_index): Fill 'bmp_idx'.
28113 (find_glyph): Make inline. Use bmp_idx for BMP characters.
28114
48209f4f
VS
281152010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28116
28117 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
28118 unnecessary calls.
28119
9f0a4bb7
VS
281202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28121
28122 Move context handling out of the kernel.
28123
28124 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
28125 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
28126 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
28127 * conf/i386-efi.rmk: Likewise.
28128 * conf/i386-ieee1275.rmk: Likewise.
28129 * conf/i386-pc.rmk: Likewise.
28130 * conf/powerpc-ieee1275.rmk: Likewise.
28131 * conf/sparc64-ieee1275.rmk: Likewise.
28132 * conf/x86_64-efi.rmk: Likewise.
28133 * include/grub/env.h: Include grub/menu.h.
28134 (grub_env_var_type): Removed.
28135 (grub_env_var): Replaced field 'type' with 'global'.
28136 (grub_env_find): New prototype.
28137 (grub_env_context_open): Remove EXPORT_FUNC.
28138 (grub_env_context_close): Likewise.
28139 (grub_env_export): Likewise.
28140 (grub_env_set_data_slot): Removed.
28141 (grub_env_get_data_slot): Likewise.
28142 (grub_env_unset_data_slot): Likewise.
28143 (grub_env_unset_menu): New prototype.
28144 (grub_env_set_menu): Likewise.
28145 (grub_env_get_menu): Likewise.
28146 * include/grub/env_private.h: New file.
28147 * include/grub/normal.h (grub_context_init): New prototype.
28148 (grub_context_fini): Likewise.
28149 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
28150 * normal/context.c (grub_cmd_export): ... to here.
28151 * kern/env.c: Include env_private.h.
28152 (HASHSZ): Moved to include/grub/env_private.h.
28153 (grub_env_context): Likewise.
28154 (grub_env_sorted_var): Likewise.
28155 (current_context): Renamed from this ...
28156 (grub_current_context): ...to this. 'static' removed. All users updated.
28157 (grub_env_find): Removed 'static'.
28158 (grub_env_context_open): Moved to normal/context.c.
28159 (grub_env_context_close): Likewise.
28160 (grub_env_export): Likewise.
28161 (mangle_data_slot_name): Removed.
28162 (grub_env_set_data_slot): Likewise.
28163 (grub_env_get_data_slot): Likewise.
28164 (grub_env_unset_data_slot): Likewise.
28165 * kern/main.c (grub_set_root_dev): Don't export root.
28166 It will be done later.
28167 (grub_main): Don't export prefix.
28168 It will be done later.
28169 * normal/context.c: New file.
28170 * normal/main.c (free_menu): Use grub_env_unset_menu.
28171 (grub_normal_add_menu_entry): Use grub_env_get_menu.
28172 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
28173 (GRUB_MOD_INIT(normal)): Call grub_context_init.
28174 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
28175
8dd35b8c
VS
281762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28177
28178 setpci support.
28179
28180 * commands/setpci.c: New file.
28181 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
28182 (setpci_mod_SOURCES): New variable.
28183 (setpci_mod_CFLAGS): Likewise.
28184 (setpci_mod_LDFLAGS): Likewise.
28185
449193d5
VS
281862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28187
28188 Byte-addressable PCI configuration space.
28189
28190 * bus/pci.c (grub_pci_make_address): Use byte address instead of
28191 dword address.
28192 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
28193 GRUB_PCI_REG_CACHELINE.
28194 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
28195 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
28196 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
28197 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
28198 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
28199 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
28200 grub_pci_make_address.
28201 (lock_rom_area): Likewise.
28202 * commands/lspci.c (grub_lspci_iter): Use macroses
28203 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
28204 of grub_pci_make_address.
28205 * disk/ata.c (grub_ata_pciinit): Likewise.
28206 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
28207 (GRUB_PCI_REG_VENDOR): Likewise.
28208 (GRUB_PCI_REG_DEVICE): Likewise.
28209 (GRUB_PCI_REG_COMMAND): Likewise.
28210 (GRUB_PCI_REG_STATUS): Likewise.
28211 (GRUB_PCI_REG_REVISION): Likewise.
28212 (GRUB_PCI_REG_CLASS): Likewise.
28213 (GRUB_PCI_REG_CACHELINE): Likewise.
28214 (GRUB_PCI_REG_LAT_TIMER): Likewise.
28215 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
28216 (GRUB_PCI_REG_BIST): Likewise.
28217 (GRUB_PCI_REG_ADDRESSES): Likewise.
28218 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28219 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28220 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28221 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28222 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28223 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28224 (GRUB_PCI_REG_CIS_POINTER): Likewise.
28225 (GRUB_PCI_REG_SUBVENDOR): Likewise.
28226 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
28227 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
28228 (GRUB_PCI_REG_CAP_POINTER): Likewise.
28229 (GRUB_PCI_REG_IRQ_LINE): Likewise.
28230 (GRUB_PCI_REG_IRQ_PIN): Likewise.
28231 (GRUB_PCI_REG_MIN_GNT): Likewise.
28232 (GRUB_PCI_REG_MAX_LAT): Likewise.
28233 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
28234 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
28235 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 28236 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
28237 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
28238 space.
28239
96d73208
RM
282402010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28241
28242 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
28243 can be reliably determined to be supported.
28244
d4484482
RM
282452010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28246
28247 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
28248 that VESA is supported.
28249 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
28250 supported.
28251
00308ecf
VS
282522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28253
28254 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
28255
f66924a4
RM
282562010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28257
28258 * util/misc.c (make_system_path_relative_to_its_root): Work around
28259 special-casing of "/", as previous incarnation of this routine did.
28260
cbca0ada
VS
282612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28262
28263 Fix any-emu compilation.
28264
28265 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
28266 * grub_bin2h_SOURCES: New variable.
28267
34a66d99
RM
282682010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28269
28270 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
28271
94fabf58
RM
282722010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28273
28274 * util/grub.d/00_header.in: Fix handling of locale_dir.
28275
02cf98ca
VS
282762010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28277
28278 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
28279 as possible unifont location (Gentoo).
28280 Reported by: Alexander Brüning
28281
327dbcd7
VS
282822010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28283
28284 Don't try to generate lists for kernel.img.
28285
28286 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
28287 (pkglib_MODULES): Remove kernel.img.
28288 (kernel_img_EXPORTS): Removed.
28289 (kernel_img_RELOCATABLE): New variable.
28290 * conf/x86_64-efi.rmk: Likewise.
28291 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
28292
ca467290
VS
282932010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28294
28295 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
28296 grub_xasprintf or grub_snprintf.
28297 (grub_vsprintf): Likewise.
28298 (grub_snprintf): New proto.
28299 (grub_vsnprintf): Likewise.
28300 (grub_xasprintf): Likewise.
28301 (grub_xvasprintf): Likewise.
28302 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
28303 (grub_sprintf): Removed.
28304 (grub_vsnprintf): New function.
28305 (grub_snprintf): Likewise.
28306 (grub_xvasprintf): Likewise.
28307 (grub_xasprintf): Likewise.
28308 (grub_vsprintf): Renamed to ...
28309 (grub_vsnprintf_real): ...this. New argument max_len.
28310
aca655fd
BC
283112010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
28312
28313 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
28314 fix grub-script-check warning.
28315
7ee92c32
VS
283162010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28317
28318 * include/grub/font.h (grub_font_load): Fix prototype.
28319
f80927ca
VS
283202010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28321
28322 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
28323
119c50ea
VS
283242010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28325
28326 * include/grub/x86_64/at_keyboard.h: New file.
28327
47d5f3c1
VS
283282010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28329
28330 * loader/mips/linux.c: Include missing grub/i18n.h.
28331
55ff5266
RM
283322009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28333
28334 * normal/menu.c (notify_execution_failure): Clarify error message.
28335
c893cc87
RM
283362009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28337
28338 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
28339 return value (and revert all return statements). Update users.
28340
917dd370
CW
283412010-01-20 Dan Merillat <debian@dan.merillat.org>
28342
28343 * kern/device.c (grub_device_iterate): Allocate new part_ent
28344 structure based on sizeof (*p) rather than sizeof (p->next), to
28345 account for structure padding.
28346
28347 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
28348 disk is NULL, which might happen for LVM physical volumes with no
28349 LVM signature.
28350
d4a4ee57
RM
283512009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28352
28353 * loader/mips/linux.c (grub_cmd_initrd)
28354 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
28355
283562009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28357
28358 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
28359 (grub_video_video_init, grub_video_bitmap_init)
28360 (grub_font_manager_init, grub_term_gfxterm_init)
28361 (grub_at_keyboard_init): New extern declarations.
28362 (grub_machine_init): Initialize gfxterm and at_keyboard.
28363
28364 * kern/main.c (grub_main): Revert grub_printf delay kludge.
28365
28366 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
28367 `gfxterm.mod' into core image.
28368
28369 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28370 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28371 (kernel_img_FORMAT): Copy to ...
28372
28373 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28374 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28375 (kernel_img_FORMAT): ... here, and ...
28376
28377 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28378 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28379 (kernel_img_FORMAT): ... here.
28380
28381 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
28382 and input (at_keyboard) terminals in kernel.
28383 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
28384
28385 (pkglib_MODULES): Remove `pci.mod'.
28386 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
28387 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
28388 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
28389 (at_keyboard_mod_LDFLAGS): Remove variables.
28390
283912010-01-11 Felix Zielcke <fzielcke@z-51.de>
28392
28393 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
28394
283952009-12-10 Robert Millan <rmh.grub@aybabtu.com>
28396
28397 * include/grub/mips/libgcc.h: Only export symbols for functions
28398 that libgcc provides.
28399
284002009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
28401
28402 MIPS support.
28403
28404 * bus/bonito.c: New file.
28405 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
28406 GRUB_PCI_NUM_DEVICES.
28407 * term/i386/pc/serial.c: Move to ...
28408 * term/serial.c: ... here. All users updated.
28409 * util/i386/pc/grub-mkimage.c: Move to ...
28410 * util/grub-mkrawimage.c: ... here. All users updated.
28411 * term/i386/pc/at_keyboard.c: Move to ...
28412 * term/at_keyboard.c: ... here. All users updated.
28413 * conf/mips-qemu-mips.rmk: New file.
28414 * conf/mips-yeeloong.rmk: Likewise.
28415 * conf/mips.rmk: Likewise.
28416 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
28417 mipsel-qemu-mips.
28418 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
28419 to port addresses.
28420 (grub_ata_pciinit): Support CS5536.
28421 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
28422 * font/font_cmd.c (loadfont_command): Open file before passing it to
28423 grub_font_load.
28424 (pseudo_file_read): New function.
28425 (pseudo_file_close): Likewise.
28426 (pseudo_fs): New structure.
28427 (load_font_module): New function.
28428 (GRUB_MOD_INIT(font_manager)): Load embedded font.
28429 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
28430 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
28431 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
28432 * include/grub/i386/at_keyboard.h: Split into ...
28433 * include/grub/at_keyboard.h: ... this ...
28434 * include/grub/i386/at_keyboard.h: ... and this.
28435 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
28436 New prototype.
28437 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
28438 updated.
28439 (grub_elf64_size): Likewise.
28440 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
28441 filename.
28442 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
28443 * include/grub/i386/coreboot/serial.h: Rewritten.
28444 * include/grub/i386/ieee1275/serial.h: Include
28445 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
28446 * include/grub/i386/pc/serial.h: Moved from here ...
28447 * include/grub/serial.h: ... to here. All users updated.
28448 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
28449 (GRUB_PCI_NUM_BUS): Likewise.
28450 (GRUB_PCI_NUM_DEVICES): Likewise.
28451 (grub_pci_device_map_range): Add missing volatile keyword.
28452 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
28453 * include/grub/mips/at_keyboard.h: New file.
28454 * include/grub/mips/cache.h: Likewise.
28455 * include/grub/mips/io.h: Likewise.
28456 * include/grub/mips/kernel.h: Likewise.
28457 * include/grub/mips/libgcc.h: Likewise.
28458 * include/grub/mips/pci.h: Likewise.
28459 * include/grub/mips/qemu-mips/boot.h: Likewise.
28460 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28461 * include/grub/mips/qemu-mips/loader.h: Likewise.
28462 * include/grub/mips/qemu-mips/memory.h: Likewise.
28463 * include/grub/mips/qemu-mips/serial.h: Likewise.
28464 * include/grub/mips/qemu-mips/time.h: Likewise.
28465 * include/grub/mips/relocator.h: Likewise.
28466 * include/grub/mips/time.h: Likewise.
28467 * include/grub/mips/types.h: Likewise.
28468 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
28469 * include/grub/mips/yeeloong/boot.h: Likewise.
28470 * include/grub/mips/yeeloong/kernel.h: Likewise.
28471 * include/grub/mips/yeeloong/loader.h: Likewise.
28472 * include/grub/mips/yeeloong/memory.h: Likewise.
28473 * include/grub/mips/yeeloong/pci.h: Likewise.
28474 * include/grub/mips/yeeloong/serial.h: Likewise.
28475 * include/grub/mips/yeeloong/time.h: Likewise.
28476 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
28477 * kern/elf.c (grub_elf32_size): New parameter. All users
28478 updated.
28479 (grub_elf64_size): Likewise.
28480 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
28481 Load modules before saying "Welcome to GRUB!".
28482 Call grub_refresh after saying "Welcome to GRUB!".
28483 * kern/mips/cache.S: New file.
28484 * kern/mips/cache_flush.S: Likewise.
28485 * kern/mips/dl.c: Likewise.
28486 * kern/mips/init.c: Likewise.
28487 * kern/mips/qemu-mips/init.c: Likewise.
28488 * kern/mips/startup.S: Likewise.
28489 * kern/mips/yeeloong/init.c: Likewise.
28490 * kern/term.c (grub_putcode): Handle NULL terminal.
28491 (grub_getcharwidth): Likewise.
28492 (grub_getkey): Likewise.
28493 (grub_checkkey): Likewise.
28494 (grub_getkeystatus): Likewise.
28495 (grub_getxy): Likewise.
28496 (grub_getwh): Likewise.
28497 (grub_gotoxy): Likewise.
28498 (grub_cls): Likewise.
28499 (grub_setcolorstate): Likewise.
28500 (grub_setcolor): Likewise.
28501 (grub_getcolor): Likewise.
28502 (grub_refresh): Likewise.
28503 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
28504 (write_jump): Add hatch nop.
28505 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
28506 * lib/mips/setjmp.S: New file.
28507 * loader/mips/linux.c: Likewise.
28508 * term/i386/pc/at_keyboard.c: Move from here ...
28509 * term/at_keyboard.c: ... to here.
28510 * term/i386/pc/serial.c: Moved from here ...
28511 * term/serial.c: ... to here. All users updated.
28512 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
28513 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
28514 (serial_translate_key_sequence): Avoid deadlock.
28515 (grub_serial_getkey): Handle backspace.
28516 (grub_serial_putchar): Fix newline handling.
28517 * util/i386/pc/grub-mkimage.c: Move from here ...
28518 * util/grub-mkrawimage.c: ... to here. All users updated.
28519 (generate_image): New parameters 'font_path' and 'format'.
28520 Support embedding font.
28521 Use grub_host_to_target* instead of grub_cpu_to_le*.
28522 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
28523 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
28524 (options): New option "--font".
28525 (usage): Likewise.
28526 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
28527 (main): Handle "--font".
28528 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
28529 (grub_virtual_screen_setup): Set bg_color_display.
28530 (redraw_screen_rect): Use bg_color_display instead of incorrect
28531 bg_color.
28532 (grub_gfxterm_cls): Likewise.
28533 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
28534 Support embedding config file.
28535 (add_segments): Likewise.
28536 (options): New option "--config".
28537 (main): Handle "--config".
28538 * video/sm712.c: New file.
28539
25c2b5b3
RM
285402010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28541
28542 Fix parallel builds.
28543
28544 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
28545 font.c depend on ascii.h).
28546
285472010-01-12 Carles Pina i Estany <carles@pina.cat>
28548
28549 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
28550
285512010-01-11 Carles Pina i Estany <carles@pina.cat>
28552
28553 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
28554 By default: disabled.
28555 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
28556 parameter.
28557
285582010-01-10 Carles Pina i Estany <carles@pina.cat>
28559
28560 * font/font.c: Update copyright years.
28561 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
28562
285632010-01-10 Carles Pina i Estany <carles@pina.cat>
28564
28565 * font/font.c: Include `ascii.h'.
28566 (ASCII_BITMAP_SIZE): New macro.
28567 (ascii_font_glyph): Define.
28568 (ascii_glyph_lookup): New function.
28569 (grub_font_get_string_width): Change comment. If glyph not found, use
28570 ascii_glyph_lookup.
28571 (grub_font_get_glyph_with_fallback): If glyph not available returns
28572 ascii_glyph_lookup.
28573 * util/grub-mkfont.c (file_formats): New enum.
28574 (options): Add `ascii-bitmaps' new option.
28575 (usage): Add `asii-bitmaps' new option.
28576 (write_font_ascii_bitmap): New function.
28577 (write_font): Rename to ...
28578 (write_font_p2): ... this. Remove print_glyphs call.
28579 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28580 used. Call print_glyphs.
28581 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28582
285832010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28584
28585 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28586 (grub_bin2h_SOURCES): New variable.
28587 * util/bin2h.c: New file.
28588
915fc1b8
VS
285892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28590
28591 * include/multiboot.h: Resynced with spec.
28592 * include/multiboot2.h: Likewise.
28593 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28594 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28595
9444b678
RM
285962010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28597
28598 * include/grub/term.h (grub_term_register_input,
28599 grub_term_register_output): Check return of terminal init()
28600 routines, and abort if errors are raised.
28601
28602 * commands/terminal.c: Update copyright year.
28603
cba98e8d
RM
286042010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28605
28606 * commands/terminal.c (grub_cmd_terminal_input)
28607 (grub_cmd_terminal_output): Check return of terminal init()
28608 routines, and abort if errors are raised.
28609
6f7db5d6
VS
286102010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28611
28612 * include/grub/i386/bsd.h: Fix include pathes.
28613
262bff8d
VS
286142010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28615
28616 Add missing *BSD copyright headers.
28617
28618 * include/grub/aout.h: Add BSD licence.
28619 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28620 * include/grub/i386/freebsd_linker.h: ... here,
28621 * include/grub/i386/freebsd_reboot.h: ... here,
28622 * include/grub/i386/netbsd_bootinfo.h: ... here,
28623 * include/grub/i386/netbsd_reboot.h: ... here,
28624 * include/grub/i386/openbsd_bootarg.h: ... here,
28625 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28626 licence to each file.
28627
b2cab848
RM
286282010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28629
28630 * acinclude.m4: Remove `nop' assembly instruction; it's not
28631 implemented by all architectures.
28632
2cb6be4b
RM
286332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28634
28635 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28636 ELILO. This is no longer necessary.
28637
a2eaee15
BC
286382010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28639
28640 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28641
28642 * util/grub-script-check.c: grub-script-check tool.
28643 * conf/common.rmk: Make rules for grub-script-check.
28644
88d17012
RM
286452010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28646
28647 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28648 spotting it back in 2008. Shame on me for forgetting he did.
28649
28650 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28651
8040619d
RM
286522010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28653
28654 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28655 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28656 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28657 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28658 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28659 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28660
a0c2a0f6
RM
286612010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28662
28663 * include/grub/test.h: Add license header.
28664 * tests/example_functional_test.c: Likewise.
28665 * tests/example_unit_test.c: Likewise.
28666 * tests/lib/functional_test.c: Likewise.
28667 * tests/lib/test.c: Likewise.
28668 * tests/lib/unit_test.c: Likewise.
28669
b0b13907
VS
286702010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28671
28672 Use flag-based instead of hook-based video mode selection and "auto"
28673 keyword.
28674
28675 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28676 (grub_video_set_mode): Changed prototype. All users updated.
28677 (grub_video_check_mode_flag): New inline function.
28678 * video/video.c (parse_modespec): New function.
28679 (grub_video_set_mode): Parse flags and keywords.
28680
ea379330 286812010-01-17 Carles Pina i Estany <carles@pina.cat>
28682
28683 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28684 fprintf call.
28685
e15c215e
FZ
286862010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28687
28688 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28689
409ae1c9 286902010-01-16 Carles Pina i Estany <carles@pina.cat>
28691
28692 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28693 string.
28694 * util/grub-emu.c (usage): Likewise.
28695 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28696 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28697 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28698 * util/i386/pc/grub-setup.c (usage): Likewise.
28699
70a14d3d 287002010-01-16 Carles Pina i Estany <carles@pina.cat>
28701
28702 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28703 the message.
28704 (grub_util_info): Likewise.
28705 (grub_util_error): Likewise.
28706 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28707 and/or new lines in `grub_util_warna', `grub_util_info',
28708 `grub_util_error' calls.
28709 * util/getroot.c: Likewise.
28710 * util/grub-editenv.c: Likewise.
28711 * util/grub-emu.c: Likewise.
28712 * util/grub-fstest.c: Likewise.
28713 * util/grub-mkdevicemap.c: Likewise.
28714 * util/grub-mkfont.c: Likewise.
28715 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28716 * util/grub-mkrelpath.c: Likewise.
28717 * util/grub-pe2elf.c: Likewise.
28718 * util/grub-probe.c: Likewise.
28719 * util/hostdisk.c: Likewise.
28720 * util/i386/efi/grub-mkimage.c: Likewise.
28721 * util/i386/pc/grub-mkimage.c: Likewise.
28722 * util/i386/pc/grub-setup.c: Likewise.
28723 * util/ieee1275/ofpath.c: Likewise.
28724 * util/mkisofs/eltorito.c: Likewise.
28725 * util/mkisofs/rock.c: Likewise.
28726 * util/mkisofs/write.c: Likewise.
28727 * util/raid.c: Likewise.
28728 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28729 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28730
a0b766fc
VS
287312010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28732
28733 Enable multiboot on non-pc.
28734
28735 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28736 multiboot.mod and multiboot2.mod to ...
28737 * conf/i386.rmk (pkglib_MODULES): ... here.
28738 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28739 Moved to ...
28740 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28741 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28742 Moved to ...
28743 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28744 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28745 Moved to ...
28746 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28747 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28748 Moved to ...
28749 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28750 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28751 relocator.mod.
28752 (ata_mod_SOURCES): Removed.
28753 (ata_mod_CFLAGS): Likewise.
28754 (ata_mod_LDFLAGS): Likewise.
28755 (relocator_mod_SOURCES): Removed.
28756 (relocator_mod_CFLAGS): Likewise.
28757 (relocator_mod_ASFLAGS): Likewise.
28758 (relocator_mod_LDFLAGS): Likewise.
28759 Include i386.mk.
28760 * include/grub/x86_64/multiboot.h: New file.
28761 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28762 Terminate EFI.
28763
884ade56
VS
287642010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28765
28766 Video multiboot support.
28767
28768 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28769 New prototype.
28770 * include/multiboot.h: Resynced with multiboot specification.
28771 * include/multiboot2.h: Likewise.
28772 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28773 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28774 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28775 (HAS_VGA_TEXT): Likewise.
28776 (accepts_video): New variable.
28777 (grub_multiboot_set_accepts_video): New function.
28778 (grub_multiboot_get_mbi_size): Account for video structures.
28779 (set_video_mode): New function.
28780 (retrieve_video_parameters): Likewise.
28781 (grub_multiboot_make_mbi): Fill video fields.
28782
0d90e8a6
VS
287832010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28784
28785 Video driver ids.
28786
28787 * include/grub/video.h (grub_video_driver_id): New type.
28788 (grub_video_adapter): New member 'id'. All users updated.
28789 (grub_video_get_driver_id): New proto.
28790 * video/video.c (grub_video_get_driver_id): New function.
28791
5c71db1b 287922010-01-14 Carles Pina i Estany <carles@pina.cat>
28793
28794 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
28795 `var=val'.
28796
cca15b52 287972010-01-14 Carles Pina i Estany <carles@pina.cat>
28798
28799 * normal/cmdline.c (print_completion): Gettextizze.
28800
c586fbb2 288012001-01-14 Carles Pina i Estany <carles@pina.cat>
28802
28803 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
28804
ba2f6848 288052010-01-14 Carles Pina i Estany <carles@pina.cat>
28806
28807 * gettext/gettext.c (grub_gettext_translate): Push and pop
28808 grub_errno.
28809 (grub_gettext_delete_list): Change comment style.
28810 * kern/err.c (grub_error): Gettextizze.
28811 (grub_fatal): Gettextizze.
28812
0a46429a
RM
288132010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28814
28815 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
28816 (grub_linux16_real_boot): ... this.
28817 * kern/i386/loader.S: Likewise.
28818 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
28819 (grub_linux16_boot): New function. Switches to text mode and calls
28820 grub_linux16_real_boot().
28821
28822 * loader/i386/bsd.c: Include `<grub/video.h>'.
28823 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
28824 text mode before calling grub_unix_real_boot().
28825
28826 * loader/i386/multiboot.c: Include `<grub/video.h>'.
28827 (grub_multiboot_boot): Switch to text mode before calling
28828 grub_relocator32_boot().
28829
28830 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
28831 (grub_chainloader_boot): Switch to text mode before calling
28832 grub_chainloader_real_boot().
28833
d6f93a66
RM
288342010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
288352010-01-05 Colin Watson <cjwatson@ubuntu.com>
28836
28837 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
28838 non-empty value.
28839
288402010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
288412010-01-05 Colin Watson <cjwatson@ubuntu.com>
28842
28843 * util/grub.d/00_header.in: Define a "savedefault" function for use
28844 in menu entries.
28845 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
28846
288472010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
288482010-01-05 Colin Watson <cjwatson@ubuntu.com>
28849
28850 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28851 saved_entry if boot_once is unset.
28852 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28853 previous saved entry (i.e. grub-reboot).
28854
288552009-12-08 Colin Watson <cjwatson@ubuntu.com>
28856
28857 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28858
288592009-12-08 Colin Watson <cjwatson@ubuntu.com>
28860
28861 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28862 `var=val'.
28863 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28864
288652009-12-08 Colin Watson <cjwatson@ubuntu.com>
28866
28867 * util/grub-reboot.in: Fix --version output.
28868 * util/grub-set-default.in: Likewise.
28869
288702009-12-08 Colin Watson <cjwatson@ubuntu.com>
28871
28872 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28873 blocks.
28874
288752009-12-08 Colin Watson <cjwatson@ubuntu.com>
28876
28877 * util/grub.d/00_header.in: Quote the value assigned to `default',
28878 in case it contains spaces.
28879
288802009-12-08 Colin Watson <cjwatson@ubuntu.com>
28881
28882 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28883 `save_default_entry' call from the macosx case to the linux case.
28884
288852009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
288862009-10-25 Colin Watson <cjwatson@ubuntu.com>
28887
28888 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28889 in `chosen' environment variable.
28890 * normal/menu_text.c (get_entry_number): Check if the variable
28891 matches the title of a menu entry.
28892 (run_menu): Pass menu to get_entry_number.
28893
28894 * util/grub-reboot.in: New file.
28895 * util/grub-set-default.in: New file.
28896 * conf/common.rmk (grub-reboot): New utility.
28897 (grub-set-default): New utility.
28898
28899 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28900 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28901 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28902 move it to `saved_entry' for the next boot. Load environment on
28903 initialisation.
28904 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28905 * util/grub.d/10_hurd.in: Likewise.
28906 * util/grub.d/10_linux.in (linux_entry): Likewise.
28907 * util/grub.d/10_windows.in: Likewise.
28908 * util/grub.d/30_os-prober.in: Likewise.
28909
28910 * util/grub-install.in: Create environment block.
28911 * util/i386/efi/grub-install.in: Likewise.
28912 * util/ieee1275/grub-install.in: Likewise.
28913 * util/sparc64/ieee1275/grub-install.in: Likewise.
28914
0934d184
BC
289152010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28916
28917 Unit testing framework for GRUB.
28918
28919 * Makefile.in: Test framework build rules for 'make check'.
28920 * conf/tests.rmk: Build rules for individual tests and framework.
28921
28922 * include/grub/test.h: Header file for whitebox tests.
28923 * tests/lib/functional_test.c: Framework support for whitebox
28924 functional tests.
28925 * tests/lib/test.c: Common whitebox testing code for unit and
28926 functional tests.
28927 * tests/lib/unit_test.c: Framework support for whitebox unit
28928 tests.
28929
28930 * tests/util/grub-shell-tester.in: Support utility for grub-script
28931 tests.
28932 * tests/util/grub-shell.in: Utility to execute grub-script
28933 commands in a Qemu instance.
28934
28935 * tests/example_functional_test.c: Example whitebox functional
28936 test.
28937 * tests/example_grub_script_test.in: Example grub-script test.
28938 * tests/example_scripted_test.in: Example scripted test.
28939 * tests/example_unit_test.c: Example whitebox unit test.
28940
9c4ffeeb
VS
289412010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28942
28943 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28944 Add loader/i386/multiboot_mbi.c.
28945 (multiboot2_mod_SOURCES): Likewise.
28946 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28947 (multiboot2_mod_SOURCES): Likewise.
28948 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28949 (grub_multiboot_make_mbi): Likewise.
28950 (grub_multiboot_free_mbi): Likewise.
28951 (grub_multiboot_init_mbi): Likewise.
28952 (grub_multiboot_add_module): Likewise.
28953 (grub_multiboot_set_bootdev): Likewise.
28954 * loader/i386/multiboot.c (mbi): Removed.
28955 (mbi_dest): Likewise.
28956 (alloc_mbi): New variable.
28957 (grub_multiboot_payload_size): Removed. All users updated.
28958 (grub_multiboot_pure_size): New variable.
28959 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28960 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28961 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28962 (grub_fill_multiboot_mmap): Likewise.
28963 (grub_multiboot_get_bootdev): Likewise.
28964 (grub_multiboot): Use multiboot_mbi functions.
28965 * loader/i386/multiboot_mbi.c: New file.
28966
17383dfe
VS
289672010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28968
28969 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28970 it would result in module crash.
28971
c1f28820
VS
289722010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28973
28974 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28975 (grub_ofconsole_getwh): Split to ...
28976 (grub_ofconsole_getwh): ... this.
28977 (grub_ofconsole_dimensions): ...and this.
28978 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28979
58655a16
RM
289802010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28981
28982 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28983
10891398
VS
289842010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28985
28986 * loader/i386/pc/multiboot2.c: Removed stalled file.
28987
0b8a223c
VS
289882010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28989
28990 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28991 Reported by: Grégoire Sutre
28992
92ab12b0
RM
289932010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28994
28995 * util/misc.c (canonicalize_file_name): New function.
28996 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28997 instead of realpath().
28998
a788afb6
CW
289992010-01-11 Colin Watson <cjwatson@ubuntu.com>
29000
29001 * util/grub-install.in (usage): Clarify meaning of --root-directory,
29002 and make it clearer that it's optional. Based on confusion
29003 witnessed on IRC.
29004
ffa8e3d2
VS
290052010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
29006
29007 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
29008 in premature implicit newline.
29009
e9060a9d
VS
290102010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
29011
29012 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
29013 which resulted in garbled command line at the end of screen.
29014
f0d0c0b7
RM
290152010-01-10 Robert Millan <rmh.grub@aybabtu.com>
29016
29017 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
29018 initialization with similar approach as with other Linux loaders.
29019
0e60bae7
RM
290202010-01-10 Robert Millan <rmh.grub@aybabtu.com>
29021
29022 Fix i386-ieee1275 build.
29023
29024 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
29025 and grub_term_height() for video_{width,height} initialization.
29026
290272010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
29028
29029 Fix grub-emu build.
29030
29031 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
29032
cdb3f378
RM
290332010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
290342010-01-09 Robert Millan <rmh.grub@aybabtu.com>
29035
29036 Support for multiple terminals.
29037
29038 * Makefile.in (pkglib_DATA): terminal.lst.
29039 (terminal.lst): New target.
29040 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
29041 (GRUB_MOD_INIT(handler)): Likewise.
29042 (GRUB_MOD_FINI(handler)): Likewise.
29043 * commands/help.c (grub_cmd_help): Handle multiple terminals.
29044 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
29045 * commands/sleep.c (do_print): Use grub_term_restore_pos.
29046 (grub_cmd_sleep): Use grub_term_save_pos.
29047 * commands/terminal.c: New file.
29048 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
29049 commands/terminal.c and lib/charset.c.
29050 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
29051 (pkglib_MODULES): Add terminal.mod.
29052 (terminal_mod_SOURCES): New variable.
29053 (terminal_mod_CFLAGS): Likewise.
29054 (terminal_mod_LDFLAGS): Likewise.
29055 * genhandlerlist.sh: Don't handle terminals.
29056 * genmk.rb: Generate terminal-*.lst.
29057 * genterminallist.sh: New file.
29058 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
29059 (grub_is_valid_utf8): Likewise.
29060 (grub_utf8_to_ucs4_alloc): Likewise.
29061 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
29062 (grub_menu_register_viewer): Changed argument.
29063 (grub_menu_try_text): New proto.
29064 (grub_gfxmenu_try_hook): New declaration.
29065 * include/grub/normal.h (grub_normal_exit_level): New declaration.
29066 (grub_menu_init_page): Additional argument term.
29067 (grub_normal_init_page): Likewise.
29068 (grub_cmdline_get): Arguments simplified.
29069 (grub_utf8_to_ucs4_alloc): Removed.
29070 (grub_print_ucs4): Additional argument term.
29071 (grub_getstringwidth): Likewise.
29072 (grub_print_message_indented): Likewise.
29073 (grub_menu_text_register_instances): New proto.
29074 (grub_show_menu): Likewise.
29075 (read_terminal_list): Likewise.
29076 (grub_set_more): Likewise.
29077 * include/grub/parser.h: Include handler.h.
29078 * include/grub/reader.h: Rewritten.
29079 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
29080 (GRUB_TERM_WIDTH): Changed to function.
29081 (GRUB_TERM_HEIGHT): Likewise.
29082 (GRUB_TERM_BORDER_WIDTH): Likewise.
29083 (GRUB_TERM_BORDER_HEIGHT): Likewise.
29084 (GRUB_TERM_NUM_ENTRIES): Likewise.
29085 (GRUB_TERM_ENTRY_WIDTH): Likewise.
29086 (GRUB_TERM_CURSOR_X): Likewise.
29087 (grub_term_input_class): Likewise.
29088 (grub_term_output_class): Likewise.
29089 (grub_term_outputs_disabled): New declaration.
29090 (grub_term_inputs_disabled): Likewise.
29091 (grub_term_outputs): Likewise.
29092 (grub_term_inputs): Likewise.
29093 (grub_term_register_input): Rewritten.
29094 (grub_term_register_output): Likewise.
29095 (grub_term_unregister_input): Likewise.
29096 (grub_term_unregister_output): Likewise.
29097 (FOR_ACTIVE_TERM_INPUTS): New macro.
29098 (FOR_DISABLED_TERM_INPUTS): Likewise.
29099 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
29100 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
29101 * include/grub/terminfo.h: Add oterm argument to all protypes.
29102 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
29103 Use grub_rescue_run.
29104 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
29105 All users updated.
29106 * kern/reader.c: Removed. All users updated.
29107 * kern/rescue_reader.c (grub_rescue_init): Removed.
29108 (grub_rescue_reader): Likewise.
29109 (grub_register_rescue_reader): Likewise.
29110 (grub_rescue_run): New function based on kern/reader.c.
29111 * kern/term.c: Adapted for multiterm.
29112 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
29113 (grub_is_valid_utf8): Likewise.
29114 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
29115 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
29116 right terminal.
29117 * loader/i386/linux.c (grub_linux_boot): Likewise.
29118 * normal/auth.c (grub_username_get): New function.
29119 (grub_auth_check_authentication): Use grub_username_get.
29120 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
29121 * normal/color.c: Adapt for multiterm.
29122 * normal/main.c (read_config_file): Don't use grub_reader_loop.
29123 (grub_normal_init_page): Additional argument term.
29124 (read_lists): Call read_terminal_lists.
29125 (grub_enter_normal_mode): Call grub_cmdline_run.
29126 Handle grub_normal_exit_level.
29127 (grub_cmd_normal): Make reentrant.
29128 (grub_cmd_normal_exit): New function.
29129 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
29130 * normal/menu.c: Adapt for multiterm.
29131 * normal/menu_entry.c: Likewise.
29132 * normal/menu_text.c: Likewise.
29133 * normal/menu_viewer.c: Removed. All users updated.
29134 * normal/term.c: New file.
29135 * util/console.c: Change order of includes to workaround a bug in
29136 ncurses headers.
29137 * term/terminfo.c: New argument oterm on all exported functions.
29138 All users updated.
29139 * util/grub-editenv.c (grub_term_input_class): Removed.
29140 (grub_term_output_class): Likewise.
29141
1a064917
RM
291422010-01-09 Robert Millan <rmh.grub@aybabtu.com>
29143
29144 Make loader output a bit more user-friendly.
29145
29146 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
29147 is being loaded. Likewise for the Hurd.
29148
29149 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
29150 that kernel of FreeBSD ${version} is being loaded.
29151
29152 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
29153 grub_dprintf().
29154 (grub_cmd_initrd): Likewise.
29155 * util/grub.d/10_linux.in (linux_entry): Print message indicating
29156 that Linux ${version} is being loaded. Likewise for initrd.
29157
5ce0a83a 291582010-01-09 Carles Pina i Estany <carles@pina.cat>
29159
29160 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
29161
809bbfeb 291622010-01-08 Carles Pina i Estany <carles@pina.cat>
29163
29164 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
29165 (GRUB_MOD_INIT): Gettextizze.
29166 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
29167 (GRUB_MOD_INIT): Gettextizze.
29168 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
29169 (grub_cmd_linux): Capitalise Linux.
29170 (GRUB_MOD_INIT): Gettextizze.
29171 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
29172 (grub_cmd_linux): Capitalise Linux.
29173 (GRUB_MOD_INIT): Gettextizze.
29174 * loader/i386/linux.c: Include `<grub/i18n.h>'.
29175 (grub_cmd_linux): Capitalise Linux.
29176 (GRUB_MOD_INIT): Gettextizze.
29177 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
29178 (GRUB_MOD_INIT): Gettextizze.
29179 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
29180 (grub_cmd_linux): Capitalise Linux.
29181 (GRUB_MOD_INIT): Gettextizze.
29182 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
29183 (grub_cpu_xnu_init): Gettextizze.
29184 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
29185 (GRUB_MOD_INIT): Gettextizze.
29186 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
29187 (GRUB_MOD_INIT): Gettextizze.
29188 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
29189 (grub_linux_load64): Capitalise Linux.
29190 (GRUB_MOD_INIT): Gettextizze.
29191 * loader/xnu.c: Include `<grub/i18n.h>'.
29192 (GRUB_MOD_INIT): Gettextizze.
29193 * po/POTFILES: Add `loader/efi/appleloader.c',
29194 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
29195 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
29196 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
29197 `loader/i386/xnu.c', `loader/multiboot_loader.c',
29198 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
29199 and `loader/xnu.c'.
29200
b394b2ca
RM
292012010-01-08 Robert Millan <rmh.grub@aybabtu.com>
29202
29203 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
29204
292052010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
29206
29207 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
29208 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
29209 * util/mkisofs/mkisofs.c (main): Readjust --version output.
29210
bc8b32b3
RM
292112010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29212
29213 Reset Multiboot 2 support. New loader implements the draft in
29214 /branches/multiboot2 and shares as much code as possible with the
29215 production Multiboot 1 implementation.
29216
29217 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
29218 * loader/multiboot2.c: Likewise.
29219 * loader/i386/multiboot_helper.S: Likewise.
29220 * include/multiboot2.h: Replace with latest version from the draft
29221 in /branches/multiboot2.
29222
29223 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
29224 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
29225 and `loader/multiboot2.c'.
29226 (pkglib_MODULES): Add `multiboot2.mod'.
29227 (multiboot2_mod_SOURCES): New variable.
29228 (multiboot2_mod_LDFLAGS): Likewise.
29229 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
29230
29231 * conf/i386-pc.rmk: Likewise.
29232
29233 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29234 (multiboot_mod_SOURCES): Remove variable.
29235 (multiboot_mod_LDFLAGS): Likewise.
29236 (multiboot_mod_CFLAGS): Likewise.
29237
29238 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
29239 `<multiboot2.h>' instead of `<multiboot.h>'.
29240 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
29241 (MULTIBOOT_HEADER_MAGIC): New macros.
29242
29243 * loader/multiboot_loader.c (module_version_status): Remove variable.
29244 (find_multi_boot2_header): Remove function.
29245 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
29246 logic. Always check for the Multiboot version we're compiling for.
29247 (grub_cmd_module_loader): Likewise.
29248 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
29249 command instead of `multiboot'.
29250
5d2c52b8
RM
292512010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29252
29253 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
29254 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
29255 all users.
29256
53108d92
RM
292572010-01-07 Robert Millan <rmh.grub@aybabtu.com>
292582010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29259
29260 Fix breakage introduced with previous commit.
29261
29262 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
29263 commands.
29264 * normal/handler.c (read_handler_list): Revert part of previous commit
29265 affecting this file.
29266 * normal/main.c (read_lists): Move read_handler_list() call back to ...
29267 (grub_normal_execute): ... here.
29268
e2e936b2
RM
292692010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29270
29271 Merge prefix-redefinition-fix branch.
29272
29273 * normal/autofs.c (read_fs_list): Make function capable of being
29274 run multiple times, gracefuly replacing the previous data
29275 structures.
29276 * normal/dyncmd.c (read_command_list): Likewise.
29277 * normal/handler.c (read_handler_list): Likewise.
29278 * normal/main.c (read_lists): New function. Calls all the
29279 list reading functions.
29280 (grub_normal_execute): Use read_lists() instead of calling all
29281 list reading functions explicitly. Register read_lists() as a
29282 variable hook attached to ${prefix}.
29283
607a3701
VS
292842010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29285
29286 Merge crypto branch.
29287
29288 * Makefile.in (pkglib_DATA): Add crypto.lst.
29289 (crypto.lst): New target.
29290 * commands/hashsum.c: New file.
29291 * commands/password.c (check_password): Use grub_crypto_memcmp.
29292 * commands/password_pbkdf2.c: New file.
29293 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
29294 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
29295 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
29296 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
29297 -I$(srcdir)/lib/libgcrypt_wrap.
29298 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
29299 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
29300 password_pbkdf2.mod.
29301 (crypto_mod_SOURCES): New variable.
29302 (crypto_mod_CFLAGS): Likewise.
29303 (crypto_mod_LDFLAGS): Likewise.
29304 (hashsum_mod_SOURCES): New variable.
29305 (hashsum_mod_CFLAGS): Likewise.
29306 (hashsum_mod_LDFLAGS): Likewise.
29307 (pbkdf2_mod_SOURCES): New variable.
29308 (pbkdf2_mod_CFLAGS): Likewise.
29309 (pbkdf2_mod_LDFLAGS): Likewise.
29310 (password_pbkdf2_mod_SOURCES): New variable.
29311 (password_pbkdf2_mod_CFLAGS): Likewise.
29312 (password_pbkdf2_mod_LDFLAGS): Likewise.
29313 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
29314 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
29315 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
29316 Include conf/gcry.rmk.
29317 * include/grub/auth.h: Rewritten.
29318 * include/grub/crypto.h: New file.
29319 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
29320 * include/grub/normal.h (read_crypto_list): New prototype.
29321 * lib/crypto.c: New file.
29322 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29323 * lib/pbkdf2.c: Likewise.
29324 * normal/auth.c (grub_auth_strcmp): Removed.
29325 (grub_iswordseparator): Likewise.
29326 (grub_auth_strword): Likewise.
29327 (is_authenticated): Use grub_strword.
29328 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
29329 and grub_strword. Pass entered password to authentication callback.
29330 * normal/crypto.c: New file.
29331 * normal/main.c: Call read_crypto_list.
29332 * util/grub-mkpasswd-pbkdf2.c: New file.
29333 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
29334
42841caa
VS
293352010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
29336
29337 Fix descent and ascent calculation.
29338
29339 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
29340 (options): New option "asce".
29341 (usage): Likewise.
29342 (add_char): Ignore invalid glyphs for descent calculation.
29343 Calculate ascent from actual content.
29344 (print_glyphs): Use 'asce'.
29345 (write_font): Likewise. Allow ascent override.
29346 (main): Handle "asce" option.
29347
e7730de7 293482010-01-06 Carles Pina i Estany <carles@pina.cat>
29349
29350 * kern/err.c: Include `<grub/i18n.h>'.
29351 (grub_print_error): Add full stop. Gettextizze.
29352 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
29353 (grub_bsd_load_elf): Capitalise ELF.
29354 (grub_cmd_freebsd_loadenv): Add `s' in error string.
29355 (grub_cmd_freebsd_module): Likewise.
29356 (grub_cmd_freebsd_module_elf): Likewise.
29357 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
29358
40e3a41f 293592010-01-06 Carles Pina i Estany <carles@pina.cat>
29360
29361 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
29362 * commands/search_file.c (HELP_MESSAGE): New macro.
29363 * commands/search_label.c (HELP_MESSAGE): Likewise.
29364 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
29365 * po/POTFILES: Add `commands/search_file.c',
29366 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
29367 `commands/search.c'.
29368
83507e68
RM
293692010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29370
29371 * config.rpath: Update from Gnulib.
29372
465c787b
YB
293732010-01-05 Yves Blusseau <blusseau@zetam.org>
29374
29375 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
29376
6581dd3a
YB
293772010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
29378
29379 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
29380
3bff18c5
CW
293812010-01-05 Colin Watson <cjwatson@ubuntu.com>
29382
29383 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
29384 arguments to fread so that we get a return value in bytes, rather
29385 than something that will normally be rounded down to 0.
29386 Adjust error handling to avoid producing garbage when size_t is not
29387 the same size as long long.
29388
a1368118
CW
293892010-01-05 Colin Watson <cjwatson@ubuntu.com>
29390
29391 * util/mkisofs/write.c (padblock_write): Check return value of
29392 fread.
29393
7c302978
RM
293942010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29395
29396 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
29397 floppy images now.
29398
29399 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
29400
e33ace06
RM
294012010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29402
29403 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
29404 instead of manual alignment.
29405 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
29406 verbose). Avoid attempts to read past end of the device
29407 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
29408 but GRUB_DISK_CACHE_SIZE may exceed that).
29409
4b856776
RM
294102010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29411
29412 * commands/crc.c (grub_cmd_crc): Abort on read errors.
29413 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
29414 it to upper layer.
29415
52c2d97f
VS
294162010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29417
29418 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
29419 New constant.
29420 (grub_efi_piwg_device_path): New structure
29421 (grub_efi_piwg_device_path_t): New type.
29422 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
29423 (devpath_1): Transform to a structure. All users updated.
29424 (devpath_2): Likewise.
29425 (devpath_3): Likewise.
29426 (devpath_4): Likewise.
29427 (devpath_5): Likewise.
29428
98ff6a54
VS
294292010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29430
29431 * loader/efi/appleloader.c: Restored. Update all users.
29432
3a73dcb6
RM
294332010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29434
29435 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
29436
29437 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
29438 (struct boot_blocklist): Move from here ...
29439 * include/grub/i386/pc/boot.h [ASM_FILE]
29440 (struct grub_boot_blocklist): ... to here. Update all users.
29441 (setup): Only initialize `start' member of `first_block'
29442 structure. Add assert() calls to verify the other members.
29443
29444 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
29445 (generate_image): Fix broken blocklist length initialization.
29446 Add assert() call to verify blocklist `segment' field.
29447
ab0eeb0c
RM
294482010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29449
29450 * loader/efi/appleloader.c: Remove. Update all users.
29451
58bc8bd5
RM
294522010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29453
29454 * boot/i386/pc/boot.S: Update copyright year.
29455 * boot/i386/pc/cdboot.S: Likewise.
29456 * boot/i386/pc/diskboot.S: Likewise.
29457 * boot/i386/pc/lnxboot.S: Likewise.
29458 * boot/i386/pc/pxeboot.S: Likewise.
29459 * bus/pci.c: Likewise.
29460 * commands/cmp.c: Likewise.
29461 * commands/help.c: Likewise.
29462 * commands/hexdump.c: Likewise.
29463 * commands/i386/pc/halt.c: Likewise.
29464 * commands/i386/pc/play.c: Likewise.
29465 * commands/i386/pc/vbeinfo.c: Likewise.
29466 * commands/ls.c: Likewise.
29467 * commands/test.c: Likewise.
29468 * disk/dmraid_nvidia.c: Likewise.
29469 * disk/i386/pc/biosdisk.c: Likewise.
29470 * disk/ieee1275/nand.c: Likewise.
29471 * disk/ieee1275/ofdisk.c: Likewise.
29472 * disk/lvm.c: Likewise.
29473 * disk/raid.c: Likewise.
29474 * disk/raid6_recover.c: Likewise.
29475 * disk/scsi.c: Likewise.
29476 * fs/affs.c: Likewise.
29477 * fs/cpio.c: Likewise.
29478 * fs/ext2.c: Likewise.
29479 * fs/hfs.c: Likewise.
29480 * fs/iso9660.c: Likewise.
29481 * fs/ntfs.c: Likewise.
29482 * fs/sfs.c: Likewise.
29483 * fs/udf.c: Likewise.
29484 * fs/ufs.c: Likewise.
29485 * fs/xfs.c: Likewise.
29486 * gencmdlist.sh: Likewise.
29487 * genmk.rb: Likewise.
29488 * include/grub/disk.h: Likewise.
29489 * include/grub/efi/api.h: Likewise.
29490 * include/grub/efi/efi.h: Likewise.
29491 * include/grub/efi/pe32.h: Likewise.
29492 * include/grub/elf.h: Likewise.
29493 * include/grub/fs.h: Likewise.
29494 * include/grub/i386/at_keyboard.h: Likewise.
29495 * include/grub/i386/pc/memory.h: Likewise.
29496 * include/grub/i386/pc/vbe.h: Likewise.
29497 * include/grub/i386/pci.h: Likewise.
29498 * include/grub/i386/tsc.h: Likewise.
29499 * include/grub/ieee1275/ieee1275.h: Likewise.
29500 * include/grub/ntfs.h: Likewise.
29501 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29502 * include/grub/sparc64/libgcc.h: Likewise.
29503 * include/grub/symbol.h: Likewise.
29504 * include/grub/types.h: Likewise.
29505 * include/multiboot2.h: Likewise.
29506 * io/gzio.c: Likewise.
29507 * kern/device.c: Likewise.
29508 * kern/disk.c: Likewise.
29509 * kern/efi/efi.c: Likewise.
29510 * kern/efi/mm.c: Likewise.
29511 * kern/elf.c: Likewise.
29512 * kern/file.c: Likewise.
29513 * kern/i386/dl.c: Likewise.
29514 * kern/i386/pc/init.c: Likewise.
29515 * kern/i386/pc/startup.S: Likewise.
29516 * kern/ieee1275/ieee1275.c: Likewise.
29517 * kern/ieee1275/init.c: Likewise.
29518 * kern/main.c: Likewise.
29519 * kern/mm.c: Likewise.
29520 * kern/powerpc/dl.c: Likewise.
29521 * kern/sparc64/dl.c: Likewise.
29522 * kern/x86_64/dl.c: Likewise.
29523 * lib/hexdump.c: Likewise.
29524 * loader/efi/appleloader.c: Likewise.
29525 * loader/i386/ieee1275/linux.c: Likewise.
29526 * loader/i386/pc/chainloader.c: Likewise.
29527 * loader/i386/pc/linux.c: Likewise.
29528 * loader/i386/pc/multiboot2.c: Likewise.
29529 * loader/ieee1275/multiboot2.c: Likewise.
29530 * loader/multiboot2.c: Likewise.
29531 * loader/multiboot_loader.c: Likewise.
29532 * loader/powerpc/ieee1275/linux.c: Likewise.
29533 * normal/completion.c: Likewise.
29534 * normal/menu_entry.c: Likewise.
29535 * partmap/apple.c: Likewise.
29536 * util/grub.d/10_hurd.in: Likewise.
29537 * util/hostfs.c: Likewise.
29538 * video/readers/png.c: Likewise.
29539
e2d70b5c
CW
295402010-01-03 Colin Watson <cjwatson@ubuntu.com>
29541
29542 * include/grub/misc.h (GNUC_PREREQ): New macro.
29543 (ATTRIBUTE_ERROR): New macro.
29544 * include/grub/list.h (grub_bad_type_cast_real): Use
29545 ATTRIBUTE_ERROR.
29546
a173283f 295472010-01-03 Carles Pina i Estany <carles@pina.cat>
29548
29549 * normal/menu_text.c (print_message): Change messages.
29550
7fa7ff74 295512010-01-03 Carles Pina i Estany <carles@pina.cat>
29552
29553 * normal/menu_entry.c (store_completion): Gettextizze.
29554
136d24f6 295552010-01-03 Carles Pina i Estany <carles@pina.cat>
29556
29557 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
29558
f936862e 295592010-01-03 Carles Pina i Estany <carles@pina.cat>
29560
29561 * po/POTFILES: Sort correctly.
29562
29c44ad1 295632010-01-03 Carles Pina i Estany <carles@pina.cat>
29564
29565 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
29566 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
29567 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
29568 full stop.
29569 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
29570 summary. Gettextizze the strings.
29571 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29572 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29573 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29574 full stop.
29575 (GRUB_MOD_INIT): Remove command name from summary.
29576 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29577 summary.
29578 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29579 * term/i386/pc/serial.c (options): Add full stops.
29580 (GRUB_MOD_INIT): Remove command name from the summary.
29581
77a79592 295822010-01-03 Carles Pina i Estany <carles@pina.cat>
29583
29584 * commands/acpi.c: Gettextizze help strings and/or options. Include
29585 `grub/i18n.h' if needed.
29586 * commands/blocklist.c: Likewise.
29587 * commands/boot.c: Likewise.
29588 * commands/cat.c: Likewise.
29589 * commands/cmp.c: Likewise.
29590 * commands/configfile.c: Likewise.
29591 * commands/crc.c: Likewise.
29592 * commands/date.c: Likewise.
29593 * commands/echo.c: Likewise.
29594 * commands/efi/fixvideo.c: Likewise.
29595 * commands/efi/loadbios.c: Likewise.
29596 * commands/gptsync.c: Likewise.
29597 * commands/halt.c: Likewise.
29598 * commands/handler.c: Likewise.
29599 * commands/hdparm.c: Likewise.
29600 * commands/hexdump.c: Likewise.
29601 * commands/i386/cpuid.c: Likewise.
29602 * commands/i386/pc/drivemap.c: Likewise.
29603 * commands/i386/pc/halt.c: Likewise.
29604 * commands/i386/pc/pxecmd.c: Likewise.
29605 * commands/i386/pc/vbeinfo.c: Likewise.
29606 * commands/i386/pc/vbetest.c: Likewise.
29607 * commands/ieee1275/suspend.c: Likewise.
29608 * commands/keystatus.c: Likewise.
29609 * commands/loadenv.c: Likewise.
29610 * commands/ls.c: Likewise.
29611 * commands/lsmmap.c: Likewise.
29612 * commands/lspci.c: Likewise.
29613 * commands/memrw.c: Likewise.
29614 * commands/minicmd.c: Likewise.
29615 * commands/parttool.c: Likewise.
29616 * commands/password.c: Likewise.
29617 * commands/probe.c: Likewise.
29618 * commands/read.c: Likewise.
29619 * commands/reboot.c: Likewise.
29620 * commands/search.c: Likewise.
29621 * commands/sleep.c: Likewise.
29622 * commands/test.c: Likewise.
29623 * commands/true.c: Likewise.
29624 * commands/usbtest.c: Likewise.
29625 * commands/videotest.c: Likewise.
29626 * commands/xnu_uuid.c: Likewise.
29627 * disk/loopback.c: Likewise.
29628 * hello/hello.c: Likewise.
29629 * loader/i386/bsd.c: Likewise.
29630 * term/i386/pc/serial.c: Likewise.
29631 * po/POTFILES: Add new files.
29632
da8d5c53
CW
296332010-01-02 Colin Watson <cjwatson@ubuntu.com>
29634
29635 * term/i386/pc/at_keyboard.c
29636 (keyboard_controller_wait_untill_ready): Rename to ...
29637 (keyboard_controller_wait_until_ready): ... this. Update all users.
29638
33937904 296392010-01-01 Carles Pina i Estany <carles@pina.cat>
29640
29641 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29642 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29643 string using string width.
29644 * normal/menu_text.c (grub_print_message_indented): Use
29645 grub_print_spaces and not print_spaces.
29646 (print_timeout): Likewise.
29647 (print_spaces): Move to...
29648 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29649
3fd3b8d8
RM
296502010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29651
29652 Import from Gnulib.
29653
29654 * gnulib/getdelim.c: New file.
29655 * gnulib/getline.c: Likewise.
29656
33433555
VS
296572009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29658
29659 * include/grub/list.h (grub_assert_fail): Removed.
29660 (grub_bad_type_cast_real): New function.
29661 (grub_bad_type_cast): New macro.
29662 (GRUB_AS_LIST): Use grub_bad_type_cast.
29663 (GRUB_AS_LIST_P): Likewise.
e44721e8 29664 (GRUB_AS_NAMED_LIST): Likewise.
33433555 29665 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 29666 (GRUB_AS_PRIO_LIST): Likewise.
33433555 29667 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 29668 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 29669
f5a51306
VS
296702009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29671
29672 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29673 Fix syntax error.
29674
90d1e879
RM
296752009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29676
29677 * configure.ac: Check for TARGET_CFLAGS initialization before we
29678 initialize it ourselves (sigh).
29679 Move a few modifications to TARGET_CFLAGS to be unconditional
29680 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29681 eh_frame)
29682
29683 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29684 * term/i386/pc/at_keyboard.c
29685 (keyboard_controller_wait_untill_ready): Likewise.
29686 (keyboard_controller_led): Rename `led_status' paramter to avoid
29687 name conflict.
29688
465b5a81 296892009-12-28 Carles Pina i Estany <carles@pina.cat>
29690
29691 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29692 quotes.
29693
c181849b
VS
296942009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29695
29696 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29697
9c8739a4
VS
296982009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29699
29700 * normal/menu_text.c (grub_print_message_indented): Prevent
29701 past-the-end-of-array dereference.
29702
3e74249c
VS
297032009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29704
29705 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29706 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29707
64fd18ed 297082009-12-27 Carles Pina i Estany <carles@pina.cat>
29709
29710 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29711 * normal/main.c (grub_normal_read_line): Remove a space from the
29712 default prompt.
29713
714af9b9 297142009-12-27 Carles Pina i Estany <carles@pina.cat>
29715
29716 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29717 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29718 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29719 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29720 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29721 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29722 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29723
82f3e412 297242009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 29725
29726 * video/readers/jpeg.c (cmd): Declare.
29727 (grub_cmd_jpegtest): Use `grub_command_t' type.
29728 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29729 Assign to `cmd'.
29730 (GRUB_MOD_FINI): Use `cmd' to unregister.
29731 * video/readers/png.c (cmd): Declare.
29732 (grub_cmd_pngtest): Use `grub_command_t' type.
29733 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29734 Assign to `cmd'.
29735 (GRUB_MOD_FINI): Use `cmd' to unregister.
29736 * video/readers/tga.c (cmd): Declare.
29737 (grub_cmd_tgatest): Use `grub_command_t' type.
29738 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29739 Assign to `cmd'.
29740 (GRUB_MOD_FINI): Use `cmd' to unregister.
29741
82f3e412 297422009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 29743
29744 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29745 stops.
29746 * kern/corecmd.c (grub_register_core_commands): Likewise.
29747 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29748 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29749 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29750 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29751 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29752 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29753 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29754 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29755 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29756 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29757 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29758 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29759 * normal/handler.c (insert_handler): Likewise.
29760 * normal/main.c (GRUB_MOD_INIT): Likewise.
29761 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29762
fdcdbb66 297632009-12-26 Carles Pina i Estany <carles@pina.cat>
29764
29765 * commands/help.c (grub_cmd_help): Print the command name before the
29766 summary.
29767 (GRUB_MOD_INIT): Remove command name from the summary.
29768 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 29769 string as summary.
fdcdbb66 29770 * lib/arg.c (find_long): Print the command name before the summary.
29771 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29772 summary.
29773 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29774 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29775 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29776 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29777 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29778 * commands/date.c (GRUB_MOD_INIT): Likewise.
29779 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29780 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29781 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29782 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29783 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
29784 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
29785 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
29786 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
29787 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29788 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
29789 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
29790 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
29791 * commands/ls.c (GRUB_MOD_INIT): Likewise.
29792 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29793 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29794 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29795 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
29796 * commands/password.c (GRUB_MOD_INIT): Likewise.
29797 * commands/probe.c (GRUB_MOD_INIT): Likewise.
29798 * commands/read.c (GRUB_MOD_INIT): Likewise.
29799 * commands/search.c (GRUB_MOD_INIT): Likewise.
29800 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
29801 * commands/test.c (GRUB_MOD_INIT): Likewise.
29802 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
29803 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29804 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29805 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
29806 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29807 * lib/arg.c (GRUB_MOD_INIT): Likewise.
29808 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
29809 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29810 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29811 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29812 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29813 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
29814 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
29815 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
29816
9c288be2
VS
298172009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29818
29819 Use search command for preliminar UUID search.
29820
29821 * commands/search.c: Split into ...
29822 * commands/search_wrap.c: ...this
29823 * commands/search.c: ...and this.
29824 * commands/search_file.c: New file.
29825 * commands/search_label.c: New file.
29826 * commands/search_uuid.c: New file.
29827 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
29828 Add commands/search_wrap.c, commands/search_file.c,
29829 commands/search_label.c and commands/search_uuid.c.
29830 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
29831 (search_mod_SOURCES): Set to commands/search_wrap.c.
29832 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
29833 search_label.mod.
29834 (search_fs_file_mod_SOURCES): New variable.
29835 (search_fs_file_mod_CFLAGS): Likewise.
29836 (search_fs_file_mod_LDFLAGS): Likewise.
29837 (search_label_mod_SOURCES): Likewise.
29838 (search_label_mod_CFLAGS): Likewise.
29839 (search_label_mod_LDFLAGS): Likewise.
29840 (search_fs_uuid_mod_SOURCES): New variable.
29841 (search_fs_uuid_mod_CFLAGS): Likewise.
29842 (search_fs_uuid_mod_LDFLAGS): Likewise.
29843 (fs_file_mod_SOURCES): Removed.
29844 (fs_file_mod_CFLAGS): Likewise.
29845 (fs_file_mod_LDFLAGS): Likewise.
29846 (fs_uuid_mod_SOURCES): Removed.
29847 (fs_uuid_mod_CFLAGS): Likewise.
29848 (fs_uuid_mod_LDFLAGS): Likewise.
29849 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29850 Set to util/grub-install.in.
29851 * disk/fs_file.c: Removed.
29852 * disk/fs_uuid.c: Likewise.
29853 * include/grub/search.h: New file.
29854 * util/grub-install.in: Handle sparc64.
29855 Create and use load.cfg.
29856 * util/sparc64/ieee1275/grub-install.in: Removed.
29857
db943399
VS
298582009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29859
29860 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29861 Ignore return status if CF is cleared.
29862 (grub_biosdisk_get_diskinfo_standard): Likewise.
29863
3fdae612
RM
298642009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29865
29866 * term/i386/pc/at_keyboard.c
29867 (keyboard_controller_wait_untill_ready): New function.
29868 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29869 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29870 for keyboard polling, rather than duplicate the same loop. This
29871 saves a few bytes in code size.
29872
7ebaa2b4
VS
298732009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29874
29875 Support for (pxe[:server[:gateway]]) syntax and
29876 use environment variable for PXE.
29877
29878 * commands/i386/pc/pxecmd.c (options): Removed.
29879 (print_ip): Removed.
29880 (grub_cmd_pxe): Removed
29881 (grub_cmd_pxe_unload): New function.
29882 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29883 (grub_pxe_your_ip): Made static.
29884 (grub_pxe_default_server_ip): Likewise.
29885 (grub_pxe_default_gateway_ip): Likewise.
29886 (grub_pxe_blksize): Likewise.
29887 (parse_ip): New function.
29888 (grub_pxe_open): Support server and gateway specification.
29889 (grub_pxe_close): Free disk->data.
29890 (grub_pxefs_open): Use disk->data.
29891 (grub_pxefs_read): Likewise.
29892 (grub_env_write_readonly): New function.
29893 (set_mac_env): Likewise.
29894 (set_env_limn_ro): Likewise.
29895 (parse_dhcp_vendor): Likewise.
29896 (grub_pxe_detect): Set the environment variables.
29897 (set_ip_env): New function.
29898 (write_ip_env): Likewise.
29899 (grub_env_write_pxe_default_server): Likewise.
29900 (grub_env_write_pxe_default_gateway): Likewise.
29901 (grub_env_write_pxe_blocksize): Likewise.
29902 (GRUB_MOD_INIT(pxe)): Set environment variables.
29903 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29904 (grub_pxe_mac_addr_t): ... this. All users updated.
29905 (grub_pxe_your_ip): Removed.
29906 (grub_pxe_server_ip): Likewise.
29907 (grub_pxe_gateway_ip): Likewise.
29908 (grub_pxe_blksize): Likewise.
29909
ec5f98ab 299102009-12-25 Carles Pina i Estany <carles@pina.cat>
29911
29912 * commands/help.c: Include `<grub/i18n.h>'.
29913 (grub_cmd_help): Gettextizze.
29914 (GRUB_MOD_INIT): Likewise.
29915 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29916 (GRUB_MOD_INIT): Gettextizze.
29917 * commands/search.c: Include `<grub/i18n.h>'.
29918 (options): Gettextizze.
29919 (GRUB_MOD_INIT): Gettextizze.
29920 * lib/arg.c: Include `<grub/i18n.h>'.
29921 (help_options): Gettextizze.
29922 (find_long): Likewise.
29923 (grub_arg_show_help): Likewise.
29924 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29925 (read_command_list): Gettextizze.
29926 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 29927 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 29928
22815526
RM
299292009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29930
29931 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29932 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29933 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29934 (led_status): New variable.
29935 (keyboard_controller_led): New function.
29936 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29937 update led status for caps lock, num lock and scroll lock.
29938
0ad46fd7
FZ
299392009-12-25 Felix Zielcke <fzielcke@z-51.de>
29940
29941 * util/hostdisk.c (open_device): Fix a comment.
29942
d0e158c2
RM
299432009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29944
29945 * util/grub-install.in (host_os): New variable.
29946 * util/i386/efi/grub-install.in (host_os): Likewise.
29947
401c0ad6
RM
299482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29949
29950 * util/mkisofs/write.c (padblock_write): Abort when given an
29951 excedingly large embed image, instead of silently truncating it.
29952
d14d3370
RM
299532009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29954
29955 * include/multiboot.h: Indentation fixes.
29956
eeed10b4
RM
299572009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29958
29959 * include/multiboot.h (struct multiboot_aout_symbol_table)
29960 (struct multiboot_elf_section_header_table): New structure
29961 declarations (stolen from GRUB Legacy).
29962 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29963 table information.
29964
29965 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29966 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29967 type aliases.
29968
681c70ab
RM
299692009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29970
29971 * include/multiboot.h: Make comments src2texi-friendly.
29972
e4d47d8d
RM
299732009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29974
29975 For consistency with [multiboot]/docs/boot.S.
29976
29977 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29978 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29979 (MULTIBOOT_MAGIC2): Rename from this ...
29980 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29981
a0b70bda
RM
299822009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29983
29984 * include/multiboot.h: Remove `<grub/types.h>'.
29985 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29986 types. Update all users.
29987
61ba42be 299882009-12-25 Carles Pina i Estany <carles@pina.cat>
29989
29990 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29991 `couldn't' and `can not' by `cannot'.
29992 * commands/i386/pc/drivemap.c: Likewise.
29993 * disk/ata.c: Likewise.
29994 * disk/ieee1275/nand.c: Likewise.
29995 * fs/affs.c: Likewise.
29996 * fs/fat.c: Likewise.
29997 * fs/hfs.c: Likewise.
29998 * fs/hfsplus.c: Likewise.
29999 * fs/iso9660.c: Likewise.
30000 * fs/jfs.c: Likewise.
30001 * fs/minix.c: Likewise.
30002 * fs/reiserfs.c: Likewise.
30003 * fs/sfs.c: Likewise.
30004 * fs/udf.c: Likewise.
30005 * fs/ufs.c: Likewise.
30006 * fs/xfs.c: Likewise.
30007 * loader/powerpc/ieee1275/linux.c: Likewise.
30008 * loader/sparc64/ieee1275/linux.c: Likewise.
30009 * util/grub-probe.c: Likewise.
30010 * util/misc.c: Likewise.
30011
7fd0baee 300122009-12-24 Carles Pina i Estany <carles@pina.cat>
30013
30014 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
30015 grub_errno calls.
30016 * commands/acpi.c: Likewise.
30017 * commands/blocklist.c: Likewise.
30018 * commands/efi/loadbios.c: Likewise.
30019 * commands/i386/pc/drivemap.c: Likewise.
30020 * commands/loadenv.c: Likewise.
30021 * commands/memrw.c: Likewise.
30022 * commands/password.c: Likewise.
30023 * commands/videotest.c: Likewise.
30024 * disk/ata.c: Likewise.
30025 * disk/ata_pthru.c: Likewise.
30026 * disk/dmraid_nvidia.c: Likewise.
30027 * disk/ieee1275/nand.c: Likewise.
30028 * disk/ieee1275/ofdisk.c: Likewise.
30029 * disk/loopback.c: Likewise.
30030 * disk/lvm.c: Likewise.
30031 * disk/mdraid_linux.c: Likewise.
30032 * disk/raid.c: Likewise.
30033 * disk/raid6_recover.c: Likewise.
30034 * disk/scsi.c: Likewise.
30035 * efiemu/main.c: Likewise.
30036 * efiemu/mm.c: Likewise.
30037 * efiemu/pnvram.c: Likewise.
30038 * efiemu/symbols.c: Likewise.
30039 * font/font.c: Likewise.
30040 * fs/cpio.c: Likewise.
30041 * fs/hfsplus.c: Likewise.
30042 * fs/iso9660.c: Likewise.
30043 * fs/jfs.c: Likewise.
30044 * fs/minix.c: Likewise.
30045 * fs/ntfs.c: Likewise.
30046 * fs/ntfscomp.c: Likewise.
30047 * fs/reiserfs.c: Likewise.
30048 * fs/ufs.c: Likewise.
30049 * fs/xfs.c: Likewise.
30050 * gettext/gettext.c: Likewise.
30051 * include/grub/auth.h: Likewise.
30052 * kern/elf.c: Likewise.
30053 * kern/file.c: Likewise.
30054 * kern/ieee1275/init.c: Likewise.
30055 * kern/ieee1275/mmap.c: Likewise.
30056 * kern/ieee1275/openfw.c: Likewise.
30057 * kern/powerpc/dl.c: Likewise.
30058 * kern/sparc64/dl.c: Likewise.
30059 * lib/arg.c: Likewise.
30060 * loader/i386/bsd.c: Likewise.
30061 * loader/i386/bsdXX.c: Likewise.
30062 * loader/i386/efi/linux.c: Likewise.
30063 * loader/i386/efi/xnu.c: Likewise.
30064 * loader/i386/ieee1275/linux.c: Likewise.
30065 * loader/i386/linux.c: Likewise.
30066 * loader/i386/multiboot.c: Likewise.
30067 * loader/i386/pc/linux.c: Likewise.
30068 * loader/i386/pc/multiboot2.c: Likewise.
30069 * loader/i386/xnu.c: Likewise.
30070 * loader/ieee1275/multiboot2.c: Likewise.
30071 * loader/macho.c: Likewise.
30072 * loader/machoXX.c: Likewise.
30073 * loader/multiboot2.c: Likewise.
30074 * loader/multiboot_loader.c: Likewise.
30075 * loader/powerpc/ieee1275/linux.c: Likewise.
30076 * loader/sparc64/ieee1275/linux.c: Likewise.
30077 * loader/xnu.c: Likewise.
30078 * loader/xnu_resume.c: Likewise.
30079 * mmap/i386/pc/mmap.c: Likewise.
30080 * normal/menu_viewer.c: Likewise.
30081 * partmap/acorn.c: Likewise.
30082 * partmap/amiga.c: Likewise.
30083 * partmap/apple.c: Likewise.
30084 * script/lexer.c: Likewise.
30085 * term/gfxterm.c: Likewise.
30086 * term/i386/pc/serial.c: Likewise.
30087 * term/i386/pc/vga.c: Likewise.
30088 * term/ieee1275/ofconsole.c: Likewise.
30089 * term/terminfo.c: Likewise.
30090 * video/bitmap.c: Likewise.
30091 * video/efi_gop.c: Likewise.
30092 * video/efi_uga.c: Likewise.
30093 * video/fb/video_fb.c: Likewise.
30094 * video/i386/pc/vbe.c: Likewise.
30095 * video/readers/tga.c: Likewise.
30096 * video/video.c: Likewise.
30097
0ad46fd7 300982009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
30099
30100 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
30101 * commands/lspci.c: Likewise.
30102 * commands/probe.c: Likewise.
30103 * commands/xnu_uuid.c: Likewise.
30104 * conf/i386-coreboot.rmk: Likewise.
30105 * conf/i386-efi.rmk: Likewise.
30106 * conf/i386-ieee1275.rmk: Likewise.
30107 * conf/i386-pc.rmk: Likewise.
30108 * conf/powerpc-ieee1275.rmk: Likewise.
30109 * conf/sparc64-ieee1275.rmk: Likewise.
30110 * conf/x86_64-efi.rmk: Likewise.
30111 * fs/i386/pc/pxe.c: Likewise.
30112 * gettext/gettext.c: Likewise.
30113 * include/grub/efi/graphics_output.h: Likewise.
30114 * include/grub/i386/pc/memory.h: Likewise.
30115 * kern/env.c: Likewise.
30116 * kern/i386/qemu/startup.S: Likewise.
30117 * lib/i386/pc/biosnum.c: Likewise.
30118 * lib/i386/relocator.c: Likewise.
30119 * lib/i386/relocator_asm.S: Likewise.
30120 * lib/relocator.c: Likewise.
30121 * loader/i386/bsd.c: Likewise.
30122 * loader/i386/multiboot.c: Likewise.
30123 * loader/i386/pc/chainloader.c: Likewise.
30124 * loader/i386/xnu.c: Likewise.
30125 * loader/xnu.c: Likewise.
30126 * normal/main.c: Likewise.
30127 * normal/menu_text.c: Likewise.
30128 * util/getroot.c: Likewise.
30129 * util/grub-mkconfig_lib.in: Likewise.
30130 * util/grub.d/00_header.in: Likewise.
30131 * util/i386/pc/grub-mkimage.c: Likewise.
30132 * util/mkisofs/eltorito.c: Likewise.
30133 * util/mkisofs/exclude.h: Likewise.
30134 * util/mkisofs/hash.c: Likewise.
30135 * util/mkisofs/iso9660.h: Likewise.
30136 * util/mkisofs/joliet.c: Likewise.
30137 * util/mkisofs/mkisofs.c: Likewise.
30138 * util/mkisofs/mkisofs.h: Likewise.
30139 * util/mkisofs/multi.c: Likewise.
30140 * util/mkisofs/name.c: Likewise.
30141 * util/mkisofs/rock.c: Likewise.
30142 * util/mkisofs/tree.c: Likewise.
30143 * util/mkisofs/write.c: Likewise.
30144 * video/efi_gop.c: Likewise.
30145
009ec743
VS
301462009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
30147
30148 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
30149 size counting.
30150
0ad46fd7 301512009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
30152
30153 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
30154 * genmk.rb (class SCRIPT): Modify the target file instead of source.
30155
d3d30ea0
VS
301562009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30157
30158 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
30159 (GRUB_MOD_INIT(memrw)): Update help line.
30160
a34f5c70
VS
301612009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30162
30163 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
30164 Use grub_extcmd_t. All users updated.
30165 (options): New variable.
30166 (grub_cmd_read): Restructure for readability. Support "-v" option.
30167 (grub_cmd_write): Restructure for readability.
30168
0ad46fd7 301692009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
30170
30171 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
30172
0ad46fd7 301732009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
30174
30175 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
30176 with the actual contents of the correspondending make variable.
30177 * util/grub-mkrescue.in (pkglib_DATA): New variable.
30178 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
30179 specifying `*.lst' and `efiemu??.o'
30180
0ad46fd7 301812009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
30182
30183 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
30184 after function name.
30185 Noticed by Rene Engelhard <rene@debian.org>.
30186
dc77a799
VS
301872009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30188
30189 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
30190 (options): New variable.
30191 (iospace): Likewise.
30192 (grub_lspci_iter): List IO spaces if "-i" was given.
30193 (grub_cmd_lspci): Parse options.
30194 (GRUB_MOD_INIT(lspci)): Use extcmd.
30195 (GRUB_MOD_FINI(lspci)): Likewise.
30196
0ad46fd7 301972009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
30198
30199 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
30200 `function' keyword.
30201 Patch by Tony Mancill <tmancill@debian.org>.
30202
b5d5993b
VS
302032009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30204
30205 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
30206 (grub_uhci_portstatus): Likewise.
30207 (grub_uhci_portstatus): Add necessary delay.
11d18281 30208 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 30209
941903f2 302102009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 30211
941903f2 30212 * commands/acpi.c (options): Fix capitalizations and/or full stops.
30213 (GRUB_MOD_INIT): Likewise.
30214 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 30215 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
30216 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 30217 * commands/efi/loadbios.c (enable_rom_area): Likewise.
30218 (enable_rom_area): Likewise.
30219 (GRUB_MOD_INIT): Likewise.
30220 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
30221 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
30222 * commands/handler.c (GRUB_MOD_INIT): Likewise.
30223 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
30224 * commands/hexdump.c (options): Likewise.
30225 * commands/i386/cpuid.c (options): Likewise.
30226 (GRUB_MOD_INIT): Likewise.
30227 * commands/i386/pc/drivemap.c (options): Likewise.
30228 (GRUB_MOD_INIT): Likewise.
30229 * commands/i386/pc/halt (options): Likewise.
30230 (GRUB_MOD_INIT): Likewise.
30231 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
30232 * commands/i386/pc/pxecmd.c (options): Likewise.
30233 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
30234 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
30235 * commands/keystatus.c (options): Likewise.
30236 (GRUB_MOD_INIT): Likewise.
30237 * commands/loadenv.c (options): Likewise.
30238 * commands/ls.c (options): Likewise.
30239 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
30240 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
30241 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
30242 * commands/parttool.c (helpmsg): Likewise.
30243 * commands/probe.c (options): Likewise.
30244 * commands/read.c (GRUB_MOD_INIT): Likewise.
30245 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
30246 * commands/search.c (options): Likewise.
30247 * commands/sleep.c (options): Likewise.
30248 * commands/test.c (GRUB_MOD_INIT): Likewise.
30249 * commands/true.c (GRUB_MOD_INIT): Likewise.
30250 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
30251 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
30252 * lib/arg.c (help_options): Likewise.
e9bbb4e7 30253 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
30254 `$(XGETTEXT)'.
98a50553 30255 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 30256
0ad46fd7 302572009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 30258
ef3c2c3a 30259 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
30260 instead of specifying them explicit.
30261
7922f68b
RM
302622009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30263
30264 * NEWS: Add grub-probe support for GNU/Hurd.
30265
537ce47f
RM
302662009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30267
30268 * NEWS: gettext was added after 1.97.
30269
9b214e3a
RM
302702009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30271
30272 * util/mkisofs/msdos_partition.h: New file (based on
30273 include/grub/msdos_partition.h).
30274 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
30275 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
30276 (ld_options, main): Recognize --protective-msdos-label.
30277 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
30278 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
30279 (padblock_write): If `use_protective_msdos_label' is set, patch a
30280 protective DOS-style label in the output image.
30281
30282 * util/grub-mkrescue.in: Use --protective-msdos-label.
30283
e9309813
RM
302842009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30285
30286 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
30287 boot.
30288
0ae56929
RM
302892009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30290
30291 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
30292 variables.
30293 (ld_options, main): Recognize `--embedded-boot'.
30294 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
30295 declarations.
30296 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
30297 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
30298 (padblock_write): Likewise. Rewrite to support embedded boot image.
30299
30300 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
30301 for BIOS-based disk boot instead of only ElTorito.
30302
b15937b1
RM
303032009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30304
30305 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
30306 build (not needed for bootstrap).
30307
52cc3ce0
RM
303082009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30309
30310 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
30311 from i386-pc build (not needed for bootstrap).
30312 Rewrite a pair of strings.
30313
36f5ff04
RM
303142009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30315
30316 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
30317
973c6c85 303182009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
30319
30320 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
30321
05d21547
AB
303222009-12-21 Andreas Born <futur.andy@googlemail.com>
30323
30324 * kern/env.c (grub_env_context_open): Mark exported variable for
30325 reexport.
30326
0175d51f
AB
303272009-12-21 Andreas Born <futur.andy@googlemail.com>
30328
30329 * kern/env.c (grub_env_export): Create nonexistent variables before
30330 exporting.
30331
7f39d92f 303322009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 30333
7f39d92f 30334 * include/grub/auth.h: Include `<grub/i18n.h>'.
30335 (GRUB_GET_PASSWORD): Gettextizze string.
30336 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
30337 menu_text.c.
30338 (grub_utf8_to_ucs4_alloc): Fix indentation.
30339 (grub_print_ucs4): Likewise.
30340 (grub_getstringwidth): Likewise.
30341 (print_message_indented): New declaration.
30342 * normal/auth.c: Include `<grub/i18n.h>'.
30343 (grub_auth_check_authentication): Gettexttize string.
30344 * normal/cmdline.c: Include `<grub/i18n.h>'.
30345 (grub_cmdline_get): Gettextizze.
30346 * normal/color.c: Include `<grub/i18n.h>'.
30347 (grub_parse_color_name_pair): Gettexttize strings.
30348 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
30349 string (use `print_message_indented').
30350 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
30351 `include/grub/normal.h'.
30352 (print_message_indented): Renamed to ...
30353 (grub_print_message_indented): ... this. Remove `static' qualifer (now
30354 used in normal/main.c).
30355 (print_message): Use `grub_print_message_indented' instead of
30356 `print_message_indented'.
30357 (print_timeout): Likewise.
30358 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
30359 (grub_normal_print_device_info): Gettexttize strings.
30360 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
30361
3041d898
VS
303622009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30363
30364 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
30365 of arguments. Return number of tokens and not arguments. All users
30366 updated.
30367
de15bf8e
VS
303682009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30369
30370 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
30371 non-MSDOS paritions.
30372
e0a6ca52
VS
303732009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
30374
30375 * include/grub/types.h (UNUSED): Removed since it conflicts with
30376 NetBSD headers. All users changed to direct __attribute__ ((unused)).
30377 Reported by Grégoire Sutre.
30378
b99518d1 303792009-12-19 Carles Pina i Estany <carles@pina.cat>
30380
30381 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
30382 (grub_print_ucs4_alloc): Likewise.
30383 (grub_getstringwidth): Likewise.
30384 * normal/main.c (grub_normal_init_page): Gettextize version string.
30385 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
30386 (getstringwidth): Renamed to ...
30387 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
30388 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
30389 (grub_print_ucs4): Remove `static' qualifer (now used in
30390 normal/main.c).
30391 * po/POTFILES: Add normal/main.c.
30392
bfd5e52b 303932009-12-19 Carles Pina i Estany <carles@pina.cat>
30394
30395 * normal/menu_text.c (STANDARD_MARGIN): New macro.
30396 (print_message_indented): Add `margin_left' and `margin_right'
30397 parameters.
30398 (print_message): Update `print_message_indented' calls. Adds '\n' to the
30399 strings.
30400 (print_timeout): Use `print_message_indented' to print the message.
30401 Deletes `second_stage' parameter.
30402 (run_menu): Update `print_timeout' calls.
30403
5a1ad2b9
VS
304042009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30405
30406 Fix console palette on OpenFirmware.
30407
30408 * term/ieee1275/ofconsole.c (MAX): Removed.
30409 (colors): Redone based on VGA palette.
30410 (grub_ofconsole_setcolor): Discard brightness bit since only 8
30411 colors are supported.
30412 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
30413
b045f00a
VS
304142009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30415
30416 Fix potential EfiEmu double prepare.
30417
30418 * efiemu/main.c (prepared): New variable
30419 (grub_efiemu_unload): Set prepare to '0'.
30420 (grub_efiemu_prepare): Return if already prepared. Set prepared.
30421
30422 set_virtual_address_map support.
30423
30424 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
30425 prototype.
30426 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
30427 prototype.
30428 (grub_efiemu_crc32): Likewise.
30429 (grub_efiemu_crc64): Likewise.
30430 (grub_efiemu_set_virtual_address_map): Likewise.
30431 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
30432 New definition.
30433 (grub_autoefi_set_virtual_address_map): Likewise.
30434 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
30435 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
30436 Restructure flow to accomodate it.
30437 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
30438 (grub_efiemu_crc): Recompute CRC32.
30439 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
30440 (efiemu_ptv_relocated): ... this. Made global. All users updated.
30441 * efiemu/symbols.c (relocated_handle): New variable.
30442 (grub_efiemu_free_syms): Free relocated_handle.
30443 (grub_efiemu_alloc_syms): Allocate relocated_handle.
30444 (grub_efiemu_write_sym_markers): New function.
30445 (grub_efiemu_set_virtual_address_map): Likewise.
30446
30447 Newer XNU parameters.
30448
30449 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
30450 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
30451 (grub_xnu_fill_devicetree): New prototype.
30452 (grub_xnu_heap_real_start): New variable.
30453 * loader/xnu.c (get_name_ptr): New function.
30454 (grub_xnu_load_driver): Fill namelen and name.
30455
30456 64-bit xnu support.
30457
30458 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
30459 and 'loader/macho64.c'.
30460 * conf/i386-pc.rmk: Likewise.
30461 * conf/x86_64-efi.rmk: Likewise.
30462 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
30463 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
30464 * include/grub/macho.h (grub_macho_segment64): New structure.
30465 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
30466 (grub_macho_size32): ... to this.
30467 (grub_macho32_get_entry_point): Renamed from ...
30468 (grub_macho_get_entry_point32): ... to this.
30469 (grub_macho_contains_macho64): New prototype.
30470 (grub_macho_size64): Likewise.
30471 (grub_macho_get_entry_point64): Likewise.
30472 (grub_macho32_load): Renamed from ...
30473 (grub_macho_load32): ... to this.
30474 (grub_macho32_filesize): Renamed from ...
30475 (grub_macho_filesize32): ... to this.
30476 (grub_macho32_readfile): Renamed from ...
30477 (grub_macho_readfile32): ... to this.
30478 (grub_macho_filesize64): New prototype.
30479 (grub_macho_readfile64): Likewise.
30480 (grub_macho_parse32): Likewise.
30481 (grub_macho_parse64): Likewise.
30482 * loader/macho.c: Split into ...
30483 * loader/machoXX.c: ... and this. Replace 32 with XX.
30484 * loader/macho32.c: New file.
30485 * loader/macho64.c: Likewise.
30486 * loader/xnu.c (grub_xnu_is_64bit): New variable.
30487 (grub_cmd_xnu_kernel): Make 32-bit only.
30488 (grub_cmd_xnu_kernel64): New function.
30489 (grub_xnu_load_driver): Support Mach-O 64.
30490 (grub_cmd_xnu_mkext): Likewise.
30491 * util/grub.d/30_os-prober.in (osx_entry): New function.
30492 Generate entries for 64-bit boot too.
30493
30494 Eliminate ad-hoc tree format in XNU and EfiEmu.
30495
30496 * efiemu/main.c (grub_efiemu_prepare): Update comment.
30497 * efiemu/pnvram.c: Rewritten to use environment variables.
30498 All users updated.
30499
30500 Inline utf16_to_utf8.
30501
30502 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
30503 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
30504 All users updated.
30505 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
30506
30507 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
30508 * commands/usbtest.c (grub_usb_get_string): ... move here.
30509 (usb_print_str): Fix error handling.
30510 * include/grub/usb.h (grub_usb_get_string): Remove.
30511
30512 UTF-8 to UTF-16 transformation.
30513
30514 * conf/common.rmk (pkglib_MODULES): Add charset.mod
30515 (charset_mod_SOURCES): New variable.
30516 (charset_mod_CFLAGS): Likewise.
30517 (charset_mod_LDFLAGS): Likewise.
30518 * include/grub/utf.h: New file.
30519 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
30520
30521 Support for device properties.
30522
30523 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
30524 (grub_xnu_devprop_device_header): Likewise.
30525 (grub_xnu_devprop_device_descriptor): Likewise.
30526 (grub_xnu_devprop_add_device): New prototype.
30527 (grub_xnu_devprop_remove_device): Likewise.
30528 (grub_xnu_devprop_remove_property): Likewise.
30529 (grub_xnu_devprop_add_property_utf8): Likewise.
30530 (grub_xnu_devprop_add_property_utf16): Likewise.
30531 (grub_cpu_xnu_init): Likewise.
30532 (grub_cpu_xnu_fini): Likewise.
30533 (grub_cpu_xnu_unload): Likewise.
30534 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
30535 (property_descriptor): Likewise.
30536 (devices): New variable.
30537 (grub_xnu_devprop_remove_property): New function.
30538 (grub_xnu_devprop_add_device): Likewise.
30539 (grub_xnu_devprop_remove_device): Likewise.
30540 (grub_xnu_devprop_add_property): Likewise.
30541 (grub_xnu_devprop_add_property_utf8): Likewise.
30542 (grub_xnu_devprop_add_property_utf16): Likewise.
30543 (hextoval): Likewise.
30544 (grub_cpu_xnu_fill_devprop): Likewise.
30545 (grub_cmd_devprop_load): Likewise.
30546 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
30547 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
30548 (cmd_devprop_load): New variable.
30549 (grub_cpu_xnu_init): New function.
30550 (grub_cpu_xnu_fini): Likewise.
30551 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
30552 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
30553 (grub_cmd_xnu_devtree): Likewise.
30554 (hextoval): New function.
30555 (unescape): Likewise.
30556 (grub_xnu_fill_devicetree): Likewise.
30557
30558 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
30559 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
30560
0945f181
VS
305612009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30562
30563 Workaround for broken ATI VBE.
30564
30565 * video/i386/pc/vbe.c (last_set_mode): New variable.
30566 (grub_vbe_set_video_mode): Set 'last_set_mode'.
30567 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
30568 (grub_video_vbe_setup): Don't check for reserved flag.
30569
0ad46fd7 305702009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
30571
30572 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30573 the `find' command.
30574
c179ebe4
VS
305752009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30576
30577 UUID support for HFS.
30578
30579 * fs/hfs.c (grub_hfs_uuid): New function.
30580 (grub_hfs_fs): New value .uuid.
30581 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30582
0ad46fd7 305832009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
30584
30585 Fix a segfault with parsing unknown long options.
30586
30587 * util/grub-mkrelpath.c (options): Zero terminate it.
30588
c4a3e41a
CPE
305892009-12-13 Carles Pina i Estany <carles@pina.cat>
30590
30591 * include/grub/misc.h (grub_puts): New declaration.
30592 (grub_puts_): Likewise.
a22008a6 30593 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
30594 (grub_puts_): Likewise.
30595
2e8a7602
RM
305962009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30597
30598 * util/grub-probe.c (probe): Improve error message.
30599
b50b77b9
RM
306002009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30601
30602 * loader/i386/multiboot_elfxx.c
30603 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30604 initialization.
30605
306062009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30607
30608 Relocator framework
30609
30610 * loader/i386/xnu_helper.S: Removed. All users updated.
30611 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30612 (relocator_mod_SOURCES): New variable.
30613 (relocator_mod_CFLAGS): Likewise.
30614 (relocator_mod_LDFLAGS): Likewise.
30615 (relocator_mod_ASFLAGS): Likewise.
30616 * conf/x86_64.rmk: Likewise.
30617 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30618 (grub_multiboot_payload_entry_offset): Likewise.
30619 (grub_multiboot_forward_relocator): Likewise.
30620 (grub_multiboot_forward_relocator_end): Likewise.
30621 (grub_multiboot_backward_relocator): Likewise.
30622 (grub_multiboot_backward_relocator_end): Likewise.
30623 (grub_multiboot_payload_eip): New variable.
30624 (grub_multiboot_payload_orig): Likewise.
30625 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30626 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30627 * include/grub/i386/memory.h
30628 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30629 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30630 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30631 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30632 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30633 * include/grub/i386/relocator.h: New file.
30634 * include/grub/x86_64/relocator.h: Likewise.
30635 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30636 (XNU_RELOCATOR): New macro.
30637 (grub_xnu_launcher_start): Remove.
30638 (grub_xnu_launcher_end): Likewise.
30639 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30640 (grub_xnu_heap_real_start): Remove.
30641 (grub_xnu_heap_start): Change to void *. All users updated.
30642 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30643 * lib/i386/relocator.c: New file.
30644 * lib/i386/relocator_asm.S: Likewise.
30645 * lib/i386/relocator_backward.S: Likewise.
30646 * lib/mips/relocator.c: Likewise.
30647 * lib/mips/relocator_asm.S: Likewise.
30648 * lib/relocator.c: Likewise.
30649 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30650 (entry): Removed.
30651 (playground): Likewise.
30652 (grub_multiboot_payload_orig): New variable.
30653 (grub_multiboot_payload_dest): Likewise.
30654 (grub_multiboot_payload_size): Likewise.
30655 (grub_multiboot_payload_eip): Likewise.
30656 (grub_multiboot_payload_esp): Likewise.
30657 (grub_multiboot_boot): Use grub_relocator32_boot.
30658 (grub_multiboot_unload): Free relocators.
30659 (grub_multiboot): Setup stack. Use relocators.
30660 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30661 (grub_multiboot_load_elfXX): Use relocators.
30662 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30663 (grub_multiboot_payload_size): Likewise.
30664 (grub_multiboot_payload_dest): Likewise.
30665 (grub_multiboot_payload_entry_offset): Likewise.
30666 (grub_multiboot_forward_relocator): Likewise.
30667 (grub_multiboot_backward_relocator): Likewise.
30668 (grub_multiboot_real_boot): Likewise.
30669 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30670 (grub_xnu_entry_point): Likewise.
30671 (grub_xnu_arg1): Likewise.
30672 (grub_xnu_stack): Likewise.
30673 (grub_xnu_launch): Removed.
30674 (grub_xnu_boot_resume): New function.
30675 (grub_xnu_boot): Use relocators.
30676 * loader/i386/xnu_helper.S: Removed.
30677 * loader/xnu.c (grub_xnu_heap_start): New variable.
30678 (grub_xnu_heap_size): Likewise.
30679 (grub_xnu_heap_malloc): Use relocators.
30680 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30681
29eb90c6
VS
306822009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30683
30684 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30685 anything.
30686
31027430
CPE
306872009-12-13 Carles Pina i Estany <carles@pina.cat>
30688
30689 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30690 GRUB_ERR_NONE before calling grub_env_set.
30691
dc0c71d9
RM
306922009-12-12 Robert Millan <rmh@aybabtu.com>
30693
30694 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30695 * genmk.rb (video): New variable.
30696 (CLEANFILES, VIDEOFILES): Add #{video}.
30697 (#{video}): New target rule.
30698 * genvideolist.sh: New file.
30699 * Makefile.in (pkglib_DATA): Add video.lst.
30700 (video.lst): New target rule.
30701 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30702 `video.lst'.
30703 * util/grub.d/30_os-prober.in: Replace `vbe' with
30704 ${GRUB_VIDEO_BACKEND}.
30705
2a4bfcf0
RM
307062009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30707
30708 * THANKS: Add David Miller.
30709
2a3aa4d5
RM
307102009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30711
30712 libpciaccess support.
30713
30714 * Makefile.in (LIBPCIACCESS): New variable.
30715 (enable_grub_emu_pci): Likewise.
30716 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30717 util/pci.c and commands/lspci.c.
30718 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30719 * configure.ac (grub-emu-pci): New option.
30720 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30721 (grub_pci_device_unmap_range): Likewise.
30722 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30723 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30724 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30725 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30726 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30727 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30728 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30729 * include/grub/pciutils.h: New file.
30730 * util/pci.c: Likewise.
30731
0ad46fd7 307322009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
30733
30734 * util/misc.c: Don't include <errno.h> twice.
30735
0ad46fd7 307362009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
30737
30738 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30739 name in an error message.
30740 (grub_biosdisk_rw): Likewise.
30741
2e59983c
VS
307422009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30743
30744 Eliminate NTFS 4Gib barrier.
30745
30746 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30747 (read_run_data): Likewise.
30748 (grub_ntfs_read_run_list): Likewise.
30749 (grub_ntfs_read_block): Likewise.
30750 (grub_ntfs_iterate_dir): Likewise.
30751 (read_mft): Likewise.
30752 (read_data): Likewise.
30753 Use COM_LOG_LEN.
30754 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30755 to avoid 64-bit division
30756 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30757 (grub_ntfs_rlst): Use grub_disk_addr_t.
30758
71ee178a
VS
307592009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30760
30761 Eliminate grub-fstest 4Gib barrier.
30762
30763 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30764 (read_file): Fix error reporting.
30765
2520d4b8
VS
307662009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30767
30768 Eliminate hexdump 4Gib barrier.
30769
30770 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30771 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30772
e1f27065
VS
307732009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30774
30775 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30776 Fixes amarsh bug.
30777
1a0f7f45
RM
307782009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30779
30780 Remove miscellaneous files in distclean target.
30781
30782 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30783
c631d9fb
CW
307842009-12-09 Colin Watson <cjwatson@ubuntu.com>
30785
30786 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
30787 if they're already set. This resolves the conflict between my
30788 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
30789 fixing the --grub-probe option again.
30790 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
30791 change on 2009-10-06, so that we now once again source
30792 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30793
7c7b6106
RM
307942009-12-08 Robert Millan <rmh.grub@aybabtu.com>
30795
30796 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
30797 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
30798 `util/devicemap.c'.
30799
e3069ec1
CPE
308002009-12-08 Carles Pina i Estany <carles@pina.cat>
30801
30802 * include/grub/misc.h (grub_printf_): New declaration.
30803 * kern/misc.c (grub_printf_): New definition.
30804 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
30805 instead of `grub_printf' and `_'.
30806 * normal/menu_entry.c (store_completion): Likewise.
30807 (run): Likewise.
30808 (grub_menu_entry_run): Likewise.
30809 * normal/menu_text.c (grub_wait_after_message): Likewise.
30810 (notify_booting): Likewise.
30811 (notify_fallback): Likewise.
30812 (notify_execution_failure): Likewise.
30813
d6ceebf1
CW
308142009-12-07 Colin Watson <cjwatson@ubuntu.com>
30815
30816 * configure.ac: Check for vasprintf.
30817 * util/misc.c (asprintf): Move allocation from here ...
30818 (vasprintf): ... to here. New function.
30819 (xasprintf): New function.
30820 * include/grub/util/misc.h (vasprintf, xasprintf): Add
30821 prototypes.
30822 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
30823 * util/grub-mkfont.c (write_font): Likewise.
30824 * util/grub-probe.c (probe): Likewise.
30825 * util/hostdisk.c (make_device_name): Likewise.
30826
de6daa8b
DM
308272009-12-06 David S. Miller <davem@sunset.davemloft.net>
30828
30829 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
30830 anything even prefixed with 'cdrom' as a cdrom.
30831
0ad46fd7 308322009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
30833
30834 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
30835 mount points.
30836
98d3dc02
CPE
308372009-12-05 Carles Pina i Estany <carles@pina.cat>
30838
30839 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
30840 grub_gettext_msg_list.
30841 (grub_gettext_gettranslation_from_position): Return const char *
30842 and not char *.
a2c1332b 30843 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
30844 returns from the list if existing there.
30845 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
30846 (grub_gettext_delete_list): Delete the list.
30847 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
30848 lang environment variable is changed.
30849 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30850
b283f108
VS
308512009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30852
30853 Rename kernel.mod to kernel.img.
30854
30855 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30856 (kernel_mod_EXPORTS): Rename to ...
30857 (kernel_img_EXPORTS): ... this.
30858 (kernel_mod_SOURCES): Rename to ...
30859 (kernel_img_SOURCES): ... this.
30860 (kernel_mod_HEADERS): Rename to ...
30861 (kernel_img_HEADERS): ... this. All users updated.
30862 (kernel_mod_CFLAGS): Rename to ...
30863 (kernel_img_CFLAGS): ... this.
30864 (kernel_mod_ASFLAGS): Rename to ...
30865 (kernel_img_ASFLAGS): ... this.
30866 (kernel_mod_LDFLAGS): Rename to ...
30867 (kernel_img_LDFLAGS): ... this.
30868 * conf/x86_64-efi.rmk: Likewise.
30869 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30870 (read_kernel_image): ... this. All users updated.
30871 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30872
69055f8a
CPE
308732009-12-05 Carles Pina i Estany <carles@pina.cat>
30874
30875 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30876 (print_spaces): New function.
30877 (grub_print_ucs4): New function.
30878 (getstringwidth): New function.
30879 (print_message_indented): New function.
30880 (print_message): Gettexttize strings using print_message_indented.
30881 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30882 width.
30883 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 30884 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
30885 Gettextize.
30886 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30887 string.
30888 (run): Likewise.
30889 (grub_menu_entry_run): Likewise.
30890 * PO/POTFILES: Add normal/menu_entry.c.
30891
f616f51c
VS
308922009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30893
30894 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30895
57bbe3be
CPE
308962009-12-05 Carles Pina i Estany <carles@pina.cat>
30897
30898 * util/grub-install.in: Install gettext .mo files.
30899 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30900
013d67a1
CPE
309012009-12-05 Carles Pina i Estany <carles@pina.cat>
30902
30903 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30904 grub_dprintf.
30905
fb954db0
RM
309062009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30907
30908 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30909 non-firmware-dependant one in realmode.S takes precedence.
30910
6b8474f8
RM
309112009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30912
30913 * commands/halt.c: Replace misc arch-specific headers with
30914 `<grub/misc.h>'.
30915 * commands/reboot.c: Likewise.
30916 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30917 `<grub/misc.h>'.
30918 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30919 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30920 (kernel_img_SOURCES): ... to here.
30921
30922 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30923 * include/grub/i386/pc/init.h: Likewise.
30924 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30925 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30926
30927 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30928
30929 * include/grub/i386/halt.h: Remove.
30930 * include/grub/i386/reboot.h: Likewise.
30931
30932 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30933
4b2e6ca2
DM
309342009-12-03 David S. Miller <davem@sunset.davemloft.net>
30935
30936 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30937 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30938 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30939 "progname.h"
30940 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30941 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30942 (usage): Add missing comma in printf.
30943
5239348f
RM
309442009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30945
30946 Use the same reboot approach on i386 coreboot and qemu as we do on
30947 BIOS.
30948
30949 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30950 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30951 * kern/i386/reboot.c: Remove.
30952 * include/grub/i386/reboot.h (grub_reboot): Export function.
30953 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30954 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30955 0xf000:0xfff0 instead of 0xffff:0x0000.
30956 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30957 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30958
ef34cbd4
RM
309592009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30960
30961 Fix $srcdir != $objdir build.
30962
30963 * Makefile.in (po/%.po): Rewrite as ...
30964 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30965
dc9837ea
ST
309662009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30967
30968 Fix GNU/Hurd grub-install crash.
30969 * util/grub-probe.c (probe): Try to access `path' only when it is not
30970 NULL.
30971
2f857f98
VS
309722009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30973
30974 Correct module naming.
30975
30976 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30977 (GRUB_MOD_INIT(efi_uga)): ... to this
30978 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30979 (GRUB_MOD_FINI(efi_uga)): ... to this
30980 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30981 (GRUB_MOD_INIT(efi_gop)): ... to this
30982 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30983 (GRUB_MOD_FINI(efi_gop)): ... to this
30984
c5448046
RM
309852009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30986
30987 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30988 translatable.
30989 (usage): Translate `arg' strings using gettext().
30990 Thanks to Jordi Mallach for the suggestion.
30991
c85184ad
VS
309922009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30993
30994 GOP support. Based on patch from Bean
30995 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30996
30997 * video/efi_gop.c: New file.
30998 * include/grub/efi/graphics_output.h: Likewise.
30999 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
31000 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
31001 variables.
31002 * conf/x86_64-efi.rmk: Likewise.
31003
8a4c48d8
VS
310042009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
31005
31006 Rename efi_fb to efi_uga.
31007
31008 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
31009 'efi_uga.mod'.
31010 (efi_fb_mod_SOURCES): Rename this ...
31011 (efi_uga_mod_SOURCES): ... to this.
31012 (efi_fb_mod_CFLAGS): Rename this ...
31013 (efi_uga_mod_CFLAGS): ... to this.
31014 (efi_fb_mod_LDFLAGS): Rename this ...
31015 (efi_uga_mod_LDFLAGS): ... to this.
31016 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
31017 'efi_uga.mod'.
31018 (efi_fb_mod_SOURCES): Rename this ...
31019 (efi_uga_mod_SOURCES): ... to this.
31020 (efi_fb_mod_CFLAGS): Rename this ...
31021 (efi_uga_mod_CFLAGS): ... to this.
31022 (efi_fb_mod_LDFLAGS): Rename this ...
31023 (efi_uga_mod_LDFLAGS): ... to this.
31024 * video/efi_fb.c: Move this ...
31025 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
31026
fb6c1a7b
RM
310272009-11-27 Robert Millan <rmh.grub@aybabtu.com>
31028
31029 * po/README: New file. Explain our PO file workflow.
31030
3bc7896c
RM
310312009-11-27 Robert Millan <rmh.grub@aybabtu.com>
31032
31033 * po/ChangeLog: Remove. Move relevant entries back to ...
31034 * ChangeLog: ... here.
31035 * po/ca.po: Remove (now handled by TLP).
31036 * po/id.po: Likewise.
31037 * po/zh_CN.po: Likewise.
31038 * Makefile.in (LINGUAS): Initialize in a way that supports
31039 empty set.
31040
9ed4841d
RM
310412009-11-27 Robert Millan <rmh.grub@aybabtu.com>
31042
31043 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
31044 reliing on po/LINGUAS.
31045 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
31046 (po/%.po): ... this.
31047
0ad46fd7 310482009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
31049
31050 * util/i386/efi/grub-mkimage.c: Include "progname.h".
31051 (main): Use `program_name' instead of nonexistent `progname'.
31052
e30dd392
FZ
310532009-11-26 Felix Zielcke <fzielcke@z-51.de>
31054
31055 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31056 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
31057
7656de4f
RM
310582009-11-26 Robert Millan <rmh.grub@aybabtu.com>
31059
31060 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
31061 commit.
31062 * conf/i386-efi.rmk: Likewise.
31063 * conf/i386-ieee1275.rmk: Likewise.
31064 * conf/powerpc-ieee1275.rmk: Likewise.
31065 * conf/sparc64-ieee1275.rmk: Likewise.
31066 * conf/x86_64-efi.rmk: Likewise.
31067
db77c4d4
FZ
310682009-11-26 Felix Zielcke <fzielcke@z-51.de>
31069
31070 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
31071
a755bb04
FZ
310722009-11-26 Felix Zielcke <fzielcke@z-51.de>
31073
31074 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
31075
8a4c07fd
RM
310762009-11-26 Robert Millan <rmh.grub@aybabtu.com>
31077
31078 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
31079 (grub_mkdevicemap_SOURCES): New variable.
31080 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
31081 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
31082 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
31083 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
31084 (grub_mkdevicemap_SOURCES): Remove.
31085 * conf/i386-efi.rmk: Likewise.
31086 * conf/i386-ieee1275.rmk: Likewise.
31087 * conf/i386-pc.rmk: Likewise.
31088 * conf/powerpc-ieee1275.rmk: Likewise.
31089 * conf/sparc64-ieee1275.rmk: Likewise.
31090 * conf/x86_64-efi.rmk: Likewise.
31091 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
31092 (usage): Fix strings to use `program_name'.
31093 (main): Initialize gettext.
31094 * util/grub-editenv.c: Likewise.
31095 * util/grub-emu.c: Likewise.
31096 * util/grub-fstest.c: Likewise.
31097 * util/grub-mkdevicemap.c: Likewise.
31098 * util/grub-mkfont.c: Likewise.
31099 * util/grub-mkrelpath.c: Likewise.
31100 * util/grub-pe2elf.c: Likewise.
31101 * util/grub-probe.c: Likewise.
31102 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
31103 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
31104 * util/sparc64/ieee1275/grub-setup.c: Likewise.
31105
31106 * util/misc.c: Include `"progname.h"'.
31107 (progname): Remove variable.
31108 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
31109
6f61ed55
FZ
311102009-11-25 Felix Zielcke <fzielcke@z-51.de>
31111
31112 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
31113 printf and print a newline after the menuentry header line.
31114 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
31115
f022876b
FZ
311162009-11-25 Felix Zielcke <fzielcke@z-51.de>
31117
31118 autoconf >= 2.60 support $(localedir).
31119
31120 * INSTALL: Note that autoconf 2.60 is required.
31121 * configure.ac (AC_PREREQ): Bump to 2.60.
31122 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
31123 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
31124
6717926e
YB
311252009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
31126
31127 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
31128 aclocal is run.
31129
08806a54
RM
311302009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31131
31132 * normal/main.c (grub_normal_read_line): Fix off-by-one
31133 buffer overflow.
31134
13b33fba
RM
311352009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31136
31137 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
31138 "parser.grub" in grub_command_execute() call.
31139
4a8572e9
CPE
311402009-11-24 Carles Pina i Estany <carles@pina.cat>
31141
31142 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
31143 * conf/i386-efi.rmk: Likewise.
31144 * conf/i386-ieee1275.rmk: Likewise.
31145 * conf/i386-pc.rmk: Likewise.
31146 * conf/powerpc-ieee1275.rmk: Likewise.
31147 * conf/sparc64-ieee1275.rmk: Likewise.
31148 * conf/x86_64-efi.rmk: Likewise.
31149 * gettext/gettex.c: Include <grub/i18n.h>.
31150 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
31151 here ...
31152 * include/grub/i18n.h: ... to here
31153 * include/grub/i18n.h: ... to here.
31154 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 31155 (grub_gettext_dummy): Move above user.
4a8572e9 31156
bee48093
FZ
311572009-11-24 Felix Zielcke <fzielcke@z-51.de>
31158
31159 * util/Makefile.in (install-local): Convert a `for' into a normal
31160 shell expansion.
31161
a031e91c
RM
311622009-11-24 Robert Millan <rmh.grub@aybabtu.com>
31163
31164 * autogen.sh: Add automake call.
31165 * config.guess: Remove.
31166 * config.sub: Likewise.
31167 * install-sh: Likewise.
31168
26bec39d
FZ
311692009-11-24 Felix Zielcke <fzielcke@z-51.de>
31170
31171 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
31172
8e2532fd
FZ
311732009-11-24 Felix Zielcke <fzielcke@z-51.de>
31174
31175 * util/Makefile.in (install-local): Convert a make `$(foreach)'
31176 function to a normal shell `for'.
31177
fefa1b7d
FZ
311782009-11-24 Felix Zielcke <fzielcke@z-51.de>
31179
31180 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31181
4501250b
FZ
311822009-11-24 Felix Zielcke <fzielcke@z-51.de>
31183
31184 * util/grub-mkrelpath.c: New file.
31185 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
31186 (grub_mkrelpath_SOURCES): New variable.
31187 * include/grub/util/misc.h: New function prototype.
31188 * util/misc.c (make_system_path_relative_to_its_root): New function.
31189
31190 * util/grub-mkconfig_lib.in (bindir): New variable.
31191 (grub_mkrelpath): Likewise.
31192 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
31193
31194 * util/probe.c (probe): Make the file path relative to its root.
31195 Change a info message to use the GRUB path. Enable again the
31196 check if we can read the file with GRUB facilities.
31197
31198 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
31199 to its root.
31200
11d9778b
FZ
312012009-11-24 Felix Zielcke <fzielcke@z-51.de>
31202
31203 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
31204 platform.
31205
4465287d
FZ
312062009-11-24 Felix Zielcke <fzielcke@z-51.de>
31207
31208 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
31209 strncmp().
31210
62b47f22
FZ
312112009-11-24 Felix Zielcke <fzielcke@z-51.de>
31212
31213 * util/getroot.c (grub_util_is_dmraid): New function.
31214 (grub_util_get_dev_abstraction): Treat dmraid and multipath
31215 devices as normal ones, not as LVM.
31216
1eafb9b9 312172009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
31218
31219 * conf/common.rmk: Add grub-gettext_lib target and updates
31220 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
31221 LDFLAGS.
31222 * gettext/gettext.c: New file. (Reads mo files).
31223 * include/grub/file.h (grub_file_pread): New prototype.
31224 * include/grub/i18n.h (_): New prototype.
31225 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
31226 prototypes.
31227 * kern/misc.c (grub_gettext_dummy): New function.
31228 * normal/menu_text.c: Include <grub/i18n.h>.
31229 * normal/menu_text.c (print_timeout): Gettexttize string.
31230 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
31231 * po/POTFILES: Add `normal/menu_text.c'.
31232 * po/ca.po: Add new translations.
c3ea6bd4
CPE
31233 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
31234 gettext module and defines locale_dir and lang in grub.cfg.
31235 * NEWS: Add gettext support.
31236
0fdb2568
RM
312372009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31238
31239 * util/hostdisk.c: Include `<grub/i18n.h>'.
31240 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
31241 (make_device_name): Rewrite using asprintf.
31242 (convert_system_partition_to_system_disk): Replace 0 with NULL.
31243 (find_system_device): If a device is not found, generate one just
31244 by reusing the OS path name.
31245 (read_device_map): Make it permissible for device.map not to exist.
31246
f515aa62
RM
312472009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31248
31249 * script/sh/execute.c: Move from here ...
31250 * script/execute.c: ... to here. Update all users.
31251 * script/sh/function.c: Move from here ...
31252 * script/function.c: ... to here. Update all users.
31253 * script/sh/lexer.c: Move from here ...
31254 * script/lexer.c: ... to here. Update all users.
31255 * script/sh/main.c: Move from here ...
31256 * script/main.c: ... to here. Update all users.
31257 * script/sh/parser.y: Move from here ...
31258 * script/parser.y: ... to here. Update all users.
31259 * script/sh/script.c: Move from here ...
31260 * script/script.c: ... to here. Update all users.
31261
f84b481b
RM
312622009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31263
31264 * configure.ac: Detect all `emu' platforms. Define
31265 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
31266 --enable-grub-emu logic. Disable include/grub/machine
31267 symlink on `emu' platforms.
31268
31269 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
31270 * gensymlist.sh.in: Likewise.
31271
31272 * include/grub/i386/coreboot/machine.h: Remove file.
31273 * include/grub/i386/efi/machine.h: Likewise.
31274 * include/grub/i386/ieee1275/machine.h: Likewise.
31275 * include/grub/i386/pc/machine.h: Likewise.
31276 * include/grub/i386/qemu/machine.h: Likewise.
31277 * include/grub/powerpc/ieee1275/machine.h: Likewise.
31278 * include/grub/sparc64/ieee1275/machine.h: Likewise.
31279 * include/grub/x86_64/efi/machine.h: Likewise.
31280
31281 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
31282 * commands/halt.c: Likewise.
31283 * commands/reboot.c: Likewise.
31284 * include/grub/autoefi.h: Likewise.
31285 * include/grub/i386/at_keyboard.h: Likewise.
31286 * include/grub/i386/kernel.h: Likewise.
31287 * include/grub/i386/loader.h: Likewise.
31288 * include/grub/i386/pc/memory.h: Likewise.
31289 * kern/dl.c: Likewise.
31290 * kern/i386/coreboot/init.c: Likewise.
31291 * loader/i386/bsd.c: Likewise.
31292 * loader/i386/linux.c: Likewise.
31293 * loader/multiboot_loader.c: Likewise.
31294 * term/i386/pc/serial.c: Likewise.
31295 * term/usb_keyboard.c: Likewise.
31296
31297 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
31298 `<grub/machine/machine.h>'
31299 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
31300 * util/misc.c: Remove `<grub/machine/machine.h>' and
31301 `<grub/machine/time.h>'.
31302
31303 * Makefile.in (enable_grub_emu): Remove variable.
31304 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
31305
31306 * conf/any-emu.rmk: New file.
31307 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
31308 (grub_emu_init.c): Move from here ...
31309 * conf/any-emu.rmk: ... to here.
31310
31311 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
31312 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
31313 * conf/any-emu.rmk: ... to here.
31314
4efeab03
RM
313152009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31316
31317 * include/grub/parser.h (grub_parser_register): Document need
31318 of `name' parameter.
31319 * normal/main.c (grub_normal_read_line): Simplify prompt string.
31320 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
31321 "sh" to "grub".
31322
ea1dd8bf
RM
313232009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31324
31325 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
31326 `$(XGETTEXT)'.
31327 * include/grub/i18n.h (N_): New macro.
31328 * util/mkisofs/mkisofs.h: Likewise.
31329 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
31330 around N_().
31331 (usage): Use gettext() to translate help strings when printing them.
31332
0c140626
RM
313332009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31334
31335 Based on patch from Bean
31336 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
31337
31338 * video/efi_fb.c: New file.
31339 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
31340 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
31341 variables.
31342 * conf/x86_64-efi.rmk: Likewise.
31343
87d58298
RM
313442009-11-22 Robert Millan <rmh.grub@aybabtu.com>
31345
31346 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
31347 * util/i386/pc/grub-setup.c: Likewise.
31348
994cc3a3
ST
313492009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
31350
31351 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
31352 <hurd/fs.h>
31353 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
31354 file_get_storage_info to implement grub_guess_root_device.
31355
26a61d6a
FZ
313562009-11-21 Felix Zielcke <fzielcke@z-51.de>
31357
31358 * Makefile.in (target): Use make's builtin $(shell) function
31359 instead of calling directly $(SHELL) to create the locale directories,
31360 inside the $(foreach) function.
31361
74ff1dd5
FZ
313622009-11-21 Felix Zielcke <fzielcke@z-51.de>
31363
31364 * util/grub-mkrescue.in: Print an error and usage if output option
31365 has not been given.
31366
0b787d0e
FZ
313672009-11-21 Felix Zielcke <fzielcke@z-51.de>
31368
31369 Patch from Loïc Minier <loic.minier@ubuntu.com>.
31370 * util/grub.d/30_os-prober.in: Cope with Linux entries where
31371 root and /boot are on different devices.
31372
1164b270
RM
313732009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31374
31375 Fix build for srcdir != objdir.
31376
31377 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
31378 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
31379 $(srcdir).
31380 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
31381 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
31382 reference for input.
31383
13774a2f
RM
313842009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31385
31386 * util/grub-mkrescue.in: Use source directory direcly (without copiing
31387 or hardlinking it). Remove -J option, Joliet is not compatible with
31388 multiple source directories.
31389
efda854e
RM
313902009-11-21 Carles Pina i Estany <carles@pina.cat>
313912009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31392
31393 * util/grub-mkrescue.in: Recognize `--override-directory' option.
31394 (process_input_dir): New function. Process an arbitrary input
31395 directory.
31396 Misc adjustments to support both "override mode" and system-wide mode.
31397
6c09890c
FZ
313982009-11-20 Felix Zielcke <fzielcke@z-51.de>
31399
31400 * configure.ac (UNIFONT_BDF): Rename to ...
31401 (FONT_SOURCE): ... this. Update all users.
31402
a797824f
FZ
314032009-11-20 Felix Zielcke <fzielcke@z-51.de>
31404
31405 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
31406 to the list of unifont files to look for.
31407
cd4f42b0
RM
314082009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31409
31410 Patch from Joe Auricchio <jauricchio@gmail.com>
31411 * commands/minicmd.c (grub_mini_cmd_clear): New function.
31412 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
31413 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
31414
393c783d
FZ
314152009-11-19 Felix Zielcke <fzielcke@z-51.de>
31416
31417 * Makefile.in (install-local): Add a missing backslash.
31418
b2f1e327
FZ
314192009-11-19 Felix Zielcke <fzielcke@z-51.de>
31420
31421 * include/grub/x86_64/io.h: New file.
31422
f577f7a0
RM
314232009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31424
31425 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
31426 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
31427 Include `"progname.h"'.
31428 (main): Initialize gettext.
31429 * util/i386/pc/grub-setup.c: Gettexttize.
31430 * util/i386/pc/grub-mkimage.c: Likewise.
31431
31432 * Makefile.in (po/*.po): Redefine as ...
31433 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
31434
3bc7896c
RM
31435 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
31436
c37943b6
RM
314372009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31438
31439 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
31440 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
31441 (program_name): Remove.
31442 (main): Initialize gettext support.
6323f705
RM
31443 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
31444 Include `<libintl.h>'.
31445 (_): New macro.
c37943b6
RM
31446
31447 * util/mkisofs/eltorito.c: Gettexttize.
31448 * util/mkisofs/joliet.c: Likewise.
31449 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
31450 * util/mkisofs/multi.c: Likewise.
31451 * util/mkisofs/rock.c: Likewise.
31452 * util/mkisofs/tree.c: Likewise.
31453 * util/mkisofs/write.c: Likewise.
31454
3bc7896c
RM
31455 * po/POTFILES: Update with new files.
31456
5ce77c6e
RM
314572009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31458
31459 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
31460 * util/mkisofs/iso9660.h: Likewise.
31461 * util/mkisofs/joliet.c: Likewise.
31462 * util/mkisofs/mkisofs.c: Likewise.
31463 * util/mkisofs/mkisofs.h: Likewise.
31464 * util/mkisofs/rock.c: Likewise.
31465 * util/mkisofs/tree.c: Likewise.
31466 * util/mkisofs/write.c: Likewise.
31467
31468 * util/mkisofs/eltorito.c (rcsid): Remove.
31469 * util/mkisofs/hash.c: Likewise.
31470 * util/mkisofs/joliet.c: Likewise.
31471 * util/mkisofs/name.c: Likewise.
31472 * util/mkisofs/rock.c: Likewise.
31473 * util/mkisofs/tree.c: Likewise.
31474 * util/mkisofs/write.c: Likewise.
31475
1dabbc77
RM
314762009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31477
31478 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
31479 instead of static allocation.
31480 * util/mkisofs/match.h: Likewise.
31481
633877cb
RM
314822009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31483
3bc7896c
RM
31484 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
31485 and `util/grub.d/10_linux.in'.
633877cb
RM
31486 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
31487 translatable Shell files.
31488
af1c0c85
RM
314892009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31490
31491 * Makefile.in ($(srcdir)/aclocal.m4): New target.
31492
769ae37b
RM
314932009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31494
31495 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 31496 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
31497 * util/grub.d/10_kfreebsd.in (bindir): New variable.
31498 Add gettext initialization.
31499 (kfreebsd_entry): Make menuentry output translatable.
31500
315012009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31502
31503 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
31504 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
31505 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
31506 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
31507 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 31508 * po/LINGUAS: New file.
769ae37b
RM
31509
315102009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31511
31512 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
31513 other things).
31514 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
31515 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
31516 bindtextdomain() calls for gettext initialization.
31517
315182009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31519
31520 * gnulib/progname.c: New file (imported from Gnulib).
31521 * gnulib/progname.h: Likewise.
31522 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31523 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
31524 (usage): Replace `progname' with `program_name'.
31525 (main): Use set_program_name() for program name initialization.
31526
315272009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31528
31529 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
31530 from here ...
31531 * Makefile.in (CPPFLAGS): ... to here.
31532
315332009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31534
31535 * aclocal.m4: Move from here ...
31536 * acinclude.m4: ... to here.
31537 * autogen.sh: Add call to `aclocal'.
31538 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
31539
315402009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31541
31542 * Makefile.in (CLEANFILES): Add `po/*.mo'.
31543 (LINGUAS): New variable.
31544 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
31545 (install-local): Install MO files.
31546 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
31547 * include/grub/i18n.h: New file.
3bc7896c
RM
31548 * po/POTFILES: New file.
31549 * po/ca.po: New file.
769ae37b
RM
31550 * util/grub.d/10_linux.in (bindir): New variable.
31551 Add gettext initialization.
31552 (linux_entry): Make menuentry output translatable.
31553 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
31554 (usage): Make --help output translatable.
31555 (main): Initialize gettext.
31556
02c0a6ad
RM
315572009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31558
31559 * import_gcry.py: New file (written by Vladimir with minor
31560 adjustments).
31561 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
31562 ciphers.
31563 * INSTALL: Document that Python is required for bootstrap.
31564
315652009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31566
31567 Import ciphers from libgcrypt 1.4.4.
31568
31569 * lib/libgcrypt/cipher/ChangeLog
31570 * lib/libgcrypt/cipher/ac.c
31571 * lib/libgcrypt/cipher/arcfour.c
31572 * lib/libgcrypt/cipher/bithelp.h
31573 * lib/libgcrypt/cipher/blowfish.c
31574 * lib/libgcrypt/cipher/camellia-glue.c
31575 * lib/libgcrypt/cipher/camellia.c
31576 * lib/libgcrypt/cipher/camellia.h
31577 * lib/libgcrypt/cipher/cast5.c
31578 * lib/libgcrypt/cipher/cipher.c
31579 * lib/libgcrypt/cipher/crc.c
31580 * lib/libgcrypt/cipher/des.c
31581 * lib/libgcrypt/cipher/dsa.c
31582 * lib/libgcrypt/cipher/ecc.c
31583 * lib/libgcrypt/cipher/elgamal.c
31584 * lib/libgcrypt/cipher/hash-common.c
31585 * lib/libgcrypt/cipher/hash-common.h
31586 * lib/libgcrypt/cipher/hmac-tests.c
31587 * lib/libgcrypt/cipher/md.c
31588 * lib/libgcrypt/cipher/md4.c
31589 * lib/libgcrypt/cipher/md5.c
31590 * lib/libgcrypt/cipher/primegen.c
31591 * lib/libgcrypt/cipher/pubkey.c
31592 * lib/libgcrypt/cipher/rfc2268.c
31593 * lib/libgcrypt/cipher/rijndael-tables.h
31594 * lib/libgcrypt/cipher/rijndael.c
31595 * lib/libgcrypt/cipher/rmd.h
31596 * lib/libgcrypt/cipher/rmd160.c
31597 * lib/libgcrypt/cipher/rsa.c
31598 * lib/libgcrypt/cipher/seed.c
31599 * lib/libgcrypt/cipher/serpent.c
31600 * lib/libgcrypt/cipher/sha1.c
31601 * lib/libgcrypt/cipher/sha256.c
31602 * lib/libgcrypt/cipher/sha512.c
31603 * lib/libgcrypt/cipher/tiger.c
31604 * lib/libgcrypt/cipher/twofish.c
31605 * lib/libgcrypt/cipher/whirlpool.c
31606
af2f93ac
RM
316072009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31608
31609 Fix build for systems without error().
31610
31611 * gnulib/error.c: New file (imported from Gnulib).
31612 * gnulib/error.h: Likewise.
31613 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31614 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31615 (this variable is now used by error()).
31616
73fb3dd5
FZ
316172009-11-16 Felix Zielcke <fzielcke@z-51.de>
31618
814f5e96
FZ
31619 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31620 instead of relying that char is signed.
73fb3dd5 31621
a691ca33
VS
316222009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31623
31624 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31625 blocksize different from specified.
31626 (grub_pxefs_read): Likewise.
31627
2af8f0f4
FZ
316282009-11-16 Felix Zielcke <fzielcke@z-51.de>
31629
31630 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31631
31632 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31633 (grub_ata_readwrite): Likewise. Update 2 format strings.
31634 (grub_atapi_read): Likewise.
31635
31636 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31637 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31638 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31639 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31640 (ata_mod_LDFLAGS): Move from here ...
31641 * conf/i386.rmk: ... to here ...
31642 * conf/x86_64-efi.rmk: ... and here.
31643 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31644 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31645
83bdecaf
RM
316462009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31647
31648 Relicense multiboot.h, with RMS' blessing.
31649
31650 * include/multiboot.h: Change to X11 license.
31651
fd6fd3d7
RM
316522009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31653
31654 Support --version in grub-mkisofs.
31655
31656 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31657 (OPTION_VERSION): New macro.
31658 (ld_options): Recognize --version.
31659 (usage): Move `program_name' from here ...
31660 (program_name): ... to here. Add `static' qualifier.
31661 (main): Recognize `OPTION_VERSION'.
31662
16a88c49
FZ
316632009-11-15 Felix Zielcke <fzielcke@z-51.de>
31664
31665 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31666 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31667
a4158476
RM
316682009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31669
31670 Fix help2man generation for mkisofs.
31671
31672 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31673 (usage): Send output to stdout (rather than stderr).
31674
fc2208b0
RM
316752009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31676
31677 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31678 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31679 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31680 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31681 (bin_SCRIPTS): Add `grub-mkfloppy'.
31682 (grub_mkfloppy_SOURCES): New variable.
31683
31684 * util/grub-mkrescue.in: New file.
31685 * util/i386/pc/grub-mkfloppy.in: New file.
31686
31687 * util/i386/coreboot/grub-mkrescue.in: Remove.
31688 * util/i386/pc/grub-mkrescue.in: Remove.
31689
8d0edf4a
RM
316902009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31691
31692 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31693 from here ...
31694 * include/multiboot.h (struct multiboot_header): ... to here. Update
31695 all users.
31696 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31697 from here ...
31698 * include/multiboot.h (struct multiboot_info): ... to here. Update
31699 all users.
31700 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31701 from here ...
31702 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31703 Update all users.
31704 * include/grub/multiboot.h (struct grub_mod_list): Move
31705 from here ...
31706 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31707 Update all users.
31708
a73f5969
RM
317092009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31710
31711 * include/multiboot2.h (multiboot_word): Rename from this ...
31712 (multiboot2_word): ... to this. Update all users.
31713 (multiboot_header): Rename from this ...
31714 (multiboot2_header): ... to this. Update all users.
31715 (multiboot_tag_header): Rename from this ...
31716 (multiboot2_tag_header): ... to this. Update all users.
31717 (multiboot_tag_start): Rename from this ...
31718 (multiboot2_tag_start): ... to this. Update all users.
31719 (multiboot_tag_name): Rename from this ...
31720 (multiboot2_tag_name): ... to this. Update all users.
31721 (multiboot_tag_module): Rename from this ...
31722 (multiboot2_tag_module): ... to this. Update all users.
31723 (multiboot_tag_memory): Rename from this ...
31724 (multiboot2_tag_memory): ... to this. Update all users.
31725 (multiboot_tag_unused): Rename from this ...
31726 (multiboot2_tag_unused): ... to this. Update all users.
31727 (multiboot_tag_end): Rename from this ...
31728 (multiboot2_tag_end): ... to this. Update all users.
31729
1c8927f0
RM
317302009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31731
31732 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31733 this platform we should support Multiboot1 first.
31734
31735 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31736 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31737 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31738
6e1e0d89
RM
317392009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31740
31741 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31742 of write calls (converting them to fwrite() if they aren't already).
31743 (get_torito_desc): Likewise.
31744 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31745
7f2b34d8
RM
317462009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31747
31748 * util/i386/pc/grub-install.in: Move from here ...
31749 * util/grub-install.in: ... to here. Update all users.
31750
c0ef3311
CW
317512009-11-11 Colin Watson <cjwatson@ubuntu.com>
31752
31753 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31754
e1f240ff
RM
317552009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31756
31757 Support for El Torito without floppy emulation.
31758
31759 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31760 (init_boot_catalog): Improve error handling.
31761 (get_torito_desc): Don't use floppy emulation unless requested by
31762 user. Patch boot information table when requested via
31763 `-boot-info-table'.
31764 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31765 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31766 (use_boot_info_table): New variables.
31767 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31768 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31769 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31770 `--eltorito-emul-floppy'.
31771 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31772 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31773 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31774 (use_boot_info_table, get_731): New prototypes.
31775 * util/mkisofs/write.c (get_731): New function.
31776
af7d4de5
FZ
317772009-11-11 Felix Zielcke <fzielcke@z-51.de>
31778
31779 Fix the generation of the man page.
31780
31781 * util/pc/i386/grub-install.in: Source
31782 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31783
2c55dbc0
RM
317842009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31785
31786 Large file support for grub-mkisofs.
31787
31788 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
31789 * util/mkisofs/mkisofs.c (next_extent, last_extent)
31790 (session_start): Upgrade type to `uint64_t'. Update all users.
31791 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
31792 (struct directory_entry): Upgrade type of `starting_block' and
31793 `size' to `uint64_t'. Update all users.
31794 (struct deferred): Remove unused structure.
31795 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
31796 Update all users.
31797 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
31798 file is larger than `UINT32_MAX'.
31799 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
31800 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
31801 return value.
31802 (struct deferred_write): Upgrade type of `extent' and `size' to
31803 `uint64_t'. Update all users.
31804 (last_extent_written): Upgrade type to `uint64_t'. Update all
31805 users.
31806 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
31807 Update all users. Upgrade type of `remain' to `int64_t' and
31808 `use' to `size_t'. Use error() to handle fread() errors.
31809 (write_files): Rely on write_one_file() rather than calling
31810 xfwrite() directly.
31811
6a9cead5
FZ
318122009-11-09 Felix Zielcke <fzielcke@z-51.de>
31813
31814 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
31815
4825d790
RM
318162009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31817
31818 * util/mkisofs/fnmatch.c: Remove.
31819 * util/mkisofs/getopt1.c: Likewise.
31820 * util/mkisofs/getopt.c: Likewise.
31821 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
31822 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
31823 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
31824 `gnulib/getopt1.c' and `gnulib/getopt.c'.
31825 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
31826
31827 * configure.ac: Detect `mingw32msvc' host_os.
31828 Check for lstat(), getuid() and getgid().
31829
31830 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
31831 instances of `u_char' with `uint8_t'.
31832
31833 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
31834 [!HAVE_GETUID] (getuid): New function (stub).
31835 [!HAVE_GETGID] (getgid): Likewise.
31836 [!HAVE_LSTAT] (lstat): Likewise.
31837 [!S_IROTH] (S_IROTH): New macro (dummy).
31838 [!S_IRGRP] (S_IRGRP): Likewise.
31839
84b860d8
RM
318402009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31841
31842 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
31843 conditional expression).
31844
66e9b712
RM
318452009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31846
31847 Import from Gnulib.
31848
31849 * gnulib/fnmatch.c: New file.
31850 * gnulib/fnmatch.h: Likewise.
31851 * gnulib/fnmatch_loop.c: Likewise.
31852 * gnulib/getopt.c: Likewise.
31853 * gnulib/getopt.h: Likewise.
31854 * gnulib/getopt1.c: Likewise.
31855 * gnulib/getopt_int.h: Likewise.
31856 * gnulib/gettext.h: Likewise.
31857
34f4a5b0
RM
318582009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31859
31860 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31861 * normal/handler.c (read_handler_list): Likewise.
31862
ac451143
RM
318632009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31864
31865 Misc cleanup.
31866
31867 * kern/command.c (grub_register_command_prio): Use
31868 grub_zalloc() instead of explicitly zeroing data.
31869 * kern/list.c: Include `<grub/mm.h>'.
31870 (grub_named_list_find): Replace `0' with `NULL'.
31871 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31872 (fs_module_list): Change type to `grub_named_list_t'. Update all
31873 users.
31874 * normal/dyncmd.c (read_command_list): Add space between function
31875 call and parenthesis.
31876 * normal/handler.c (read_handler_list): Likewise.
31877
4089b167
RM
318782009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31879
31880 * normal/auth.c (punishment_delay): Moved from here ...
31881 (grub_auth_strcmp): ... to here (inside function).
31882
325f5037
RM
318832009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31884
31885 * include/grub/list.h (struct grub_named_list): Remove `const'
31886 qualifier from `name'.
31887 (struct grub_prio_list): Likewise.
31888
7aea29a3
RM
318892009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31890
31891 * normal/auth.c: Include `<grub/time.h>'.
31892 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31893
3fd6f044
RM
318942009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31895
31896 * normal/auth.c (punishment_delay): New variable.
31897 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31898 (grub_auth_check_authentication): Punish failed login attempts with
31899 an incremental (2^N) delay.
31900
a4cd68e4
RM
319012009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31902
31903 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31904 path with $(srcdir).
31905
7ad12f43
VS
319062009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31907
31908 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31909
c1129f03
RM
319102009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31911
31912 * util/i386/coreboot/grub-mkrescue.in: New file.
31913 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31914 variables.
31915
31916 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31917 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31918 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31919 requirements.
31920 * util/mkisofs/defaults.h: New file.
31921 * util/mkisofs/eltorito.c: Likewise.
31922 * util/mkisofs/exclude.h: Likewise.
31923 * util/mkisofs/fnmatch.c: Likewise.
31924 * util/mkisofs/getopt.c: Likewise.
31925 * util/mkisofs/getopt1.c: Likewise.
31926 * util/mkisofs/hash.c: Likewise.
31927 * util/mkisofs/include/fctldefs.h: Likewise.
31928 * util/mkisofs/include/mconfig.h: Likewise.
31929 * util/mkisofs/include/prototyp.h: Likewise.
31930 * util/mkisofs/include/statdefs.h: Likewise.
31931 * util/mkisofs/iso9660.h: Likewise.
31932 * util/mkisofs/joliet.c: Likewise.
31933 * util/mkisofs/match.c: Likewise.
31934 * util/mkisofs/match.h: Likewise.
31935 * util/mkisofs/mkisofs.c: Likewise.
31936 * util/mkisofs/mkisofs.h: Likewise.
31937 * util/mkisofs/multi.c: Likewise.
31938 * util/mkisofs/name.c: Likewise.
31939 * util/mkisofs/rock.c: Likewise.
31940 * util/mkisofs/tree.c: Likewise.
31941 * util/mkisofs/write.c: Likewise.
31942
ec8bb77d
VS
319432009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31944
31945 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31946 being insecure.
31947
3716b12c
RM
319482009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31949
31950 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31951 `grub-mkimage' (and use $0 when possible).
31952
b97b7b91
RM
319532009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31954
31955 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31956 error message for excessively large memory map.
31957
04114812
RM
319582009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31959
31960 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31961 executable bit.
31962
e4eb2373
RM
319632009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31964
31965 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31966 message for coreboot users.
31967
c926e1d5 319682009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31969
31970 Fix build with GNU gold.
31971
31972 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31973 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31974 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31975 link addresses.
31976 * aclocal.m4: Likewise.
31977
86e5b1db 319782009-11-04 Felix Zielcke <fzielcke@z-51.de>
31979
31980 * configure.ac (AC_PREREQ): Bump to 2.59d.
31981 * INSTALL: Make it more clear when Autoconf and Ruby are
31982 needed and when to run `./autogen.sh'.
31983
246cd78f 319842009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31985
31986 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31987 OSes.
31988
4f9dfb37 319892009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31990
31991 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31992
b82bd5e1 319932009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31994
31995 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31996 giving it to GNU Mach.
31997
ff1a9bca 319982009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31999
32000 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
32001 GNU partition number to get internal GRUB partition number.
32002
61697d9c 320032009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
32004
32005 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
32006 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
32007
a50569e1 320082009-11-01 Robert Millan <rmh.grub@aybabtu.com>
32009
32010 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
32011 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
32012 case.
32013
5b153867 320142009-11-01 Felix Zielcke <fzielcke@z-51.de>
32015
32016 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
32017
d9e2cd70 320182009-10-30 Robert Millan <rmh.grub@aybabtu.com>
32019
32020 Fix build problem.
32021
32022 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
32023 `-isystem=$(srcdir)/include'.
32024
805111a4 320252009-10-30 Robert Millan <rmh.grub@aybabtu.com>
32026
32027 * util/i386/pc/grub-install.in: Remove hint that device.map should be
32028 checked (grub-install doesn't currently rely on it).
32029
fa6e945f 320302009-10-29 Robert Millan <rmh.grub@aybabtu.com>
32031
32032 Revert SVN r2660.
32033
32034 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
32035 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
32036 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
32037 * conf/i386-ieee1275.rmk: Likewise.
32038 * conf/i386-pc.rmk: Likewise.
32039 * conf/powerpc-ieee1275.rmk: Likewise.
32040 * conf/sparc64-ieee1275.rmk: Likewise.
32041 * conf/x86_64-efi.rmk: Likewise.
32042
cee15086 320432009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32044
32045 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
32046
95b9239e 320472009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32048
32049 * include/grub/misc.h: Stop checking for APPLE_CC.
32050
2ed19dfd 320512009-10-28 Robert Millan <rmh.grub@aybabtu.com>
32052
32053 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
32054 doesn't cause an infinite call loop.
32055
fdcdde19 320562009-10-28 Felix Zielcke <fzielcke@z-51.de>
32057
32058 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
32059 strings.
32060
cefabfe1 320612009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32062
32063 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
32064 variable.
32065 * Makefile.in: Likewise.
32066
ed96ab6d 320672009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32068
32069 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
32070
0579b753 320712009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32072
32073 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
32074
478df409 320752009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32076
32077 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
32078
083d1679 320792009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32080
32081 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
32082 from here ...
32083 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
32084
5947ae32 320852009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32086
32087 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
32088 in $(MAKEINFO) invocation. This makes it clear in output that
32089 errors are being ignored.
32090
94180ff6 320912009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32092
32093 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
32094 from here ...
32095 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
32096 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
32097 * conf/i386-ieee1275.rmk: Likewise.
32098 * conf/i386-pc.rmk: Likewise.
32099 * conf/powerpc-ieee1275.rmk: Likewise.
32100 * conf/sparc64-ieee1275.rmk: Likewise.
32101 * conf/x86_64-efi.rmk: Likewise.
32102
9031b03a 321032009-10-26 Colin Watson <cjwatson@ubuntu.com>
32104
32105 * util/grub-editenv.c (main): If only a command is given, use
32106 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
32107 (usage): FILENAME is now optional and has a default.
32108
e4f6809b 321092009-10-26 Colin Watson <cjwatson@ubuntu.com>
32110
32111 Improve grub-mkconfig performance when there are several menu
32112 entries on a single filesystem.
32113
32114 * util/grub.d/10_linux.in (linux_entry): Cache the output of
32115 prepare_grub_to_access_device.
32116 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32117 * util/grub.d/30_os-prober.in: Likewise.
32118
67937d4d 321192009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32120
32121 * util/grub.d/10_freebsd.in: Remove.
32122 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
32123 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
32124
ee3756cc 321252009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32126
5c35048e 32127 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 32128
4dea1c6f 321292009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32130
32131 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
32132 grub_util_error() call.
32133
042484d7 321342009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32135
32136 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
32137 `reserved_first_sector' member.
32138 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
32139 `reserved_first_sector' to 1.
32140 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
32141 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
32142 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
32143 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
32144 filesystems which begin at first sector.
32145 (options): New option --skip-fs-probe.
32146 (main): Handle --skip-fs-probe and pass it to setup().
32147
d64448a7 321482009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32149
32150 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
32151 (memset): Fix function prototype.
32152
508d42ec 321532009-10-25 Robert Millan <rmh.grub@aybabtu.com>
321542009-10-25 Vasily Averin <vvs@parallels.com>
32155
32156 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
32157 `dirent.direntlen == 0'.
32158
b240e30c 321592009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32160
32161 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
32162 `cpio'.
32163 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
32164
346e7fbe 321652009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32166
32167 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
32168 `__trampoline_setup' and `__ucmpdi2'.
32169 * include/grub/powerpc/libgcc.h: Only export symbols for functions
32170 that libgcc provides.
32171
cdb308b0 321722009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32173
32174 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
32175 * include/grub/sparc64/libgcc.h (memset): Likewise.
32176 * include/grub/misc.h (memset, memcmp): New function prototypes.
32177
fb26abc2 321782009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32179
32180 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
32181 `cpio'.
32182 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
32183
f6693890 321842009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32185
32186 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
32187 * docs/grub.cfg: Compensate for recent change in multiboot
32188 loader (since 2009-08-14 it won't pass filename to payload).
32189 * util/grub.d/10_hurd.in: Likewise.
32190
0933cdc0 321912009-10-21 Felix Zielcke <fzielcke@z-51.de>
32192
32193 * config.guess: Update to latest version from config git
32194 repository.
32195 * config.sub: Likewise.
32196
3b2fe8c2 321972009-10-20 Robert Millan <rmh.grub@aybabtu.com>
32198
32199 Fix build on sparc64.
32200
32201 * configure.ac: Perform checks for libgcc symbols before
32202 adding `-nostdlib' to LDFLAGS.
32203
46695a62 322042009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32205
32206 Let user specify OpenBSD root device.
32207
32208 * loader/i386/bsd.c (openbsd_root): New variable.
32209 (openbsd_opts): New option 'root'.
32210 (OPENBSD_ROOT_ARG): New macro.
32211 (grub_openbsd_boot): Use 'openbsd_root'.
32212 (grub_cmd_openbsd): Fill 'openbsd_root'.
32213
d2b6b7fc 322142009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32215
32216 * NEWS: Misc adjustments.
32217
421bd7ac 322182009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32219
32220 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
32221
f1d29d87 322222009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32223
32224 * configure.ac: Bump version to 1.97.
32225
6f3cd880 322262009-10-16 Colin Watson <cjwatson@ubuntu.com>
32227
32228 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
32229 -mno-3dnow on x86 architectures. Some toolchains enable these
32230 features by default, but they rely on registers that aren't enabled
32231 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
32232
035f7122 322332009-10-15 Robert Millan <rmh.grub@aybabtu.com>
32234
32235 Make entry text a bit more readable.
32236
32237 * util/grub.d/10_linux.in: Add `with' before `Linux'.
32238
44998e58 322392009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32240
32241 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
32242
cd2851b3 322432009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32244
32245 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
32246 operations.
32247
c6f3b249 322482009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32249
32250 * configure.ac: Add missing dollar.
32251
6b5886ba 322522009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32253
32254 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
32255
32256 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
32257 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
32258 exports.
32259 * include/grub/sparc64/libgcc.h: Likewise. Use
32260 preprocessor conditionals.
32261
e9d66f6d 322622009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32263
32264 * conf/common.rmk (grub-dumpbios): Remove rule.
32265 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
32266 * util/grub-dumpbios.in: Remove file.
32267
9155bc17 322682009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32269
32270 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
32271 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
32272
32273 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
32274 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
32275 users.
32276
32277 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
32278 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
32279 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
32280 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
32281 users.
32282
bf7f7a18 322832009-10-12 Robert Millan <rmh.grub@aybabtu.com>
32284
32285 * term/tparm.c: Switch to GPLv3.
32286
86564c26 322872009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32288
32289 * include/grub/i386/cpuid.h: Add header protection.
32290
5c936493 322912009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32292
32293 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
32294
32295 * include/grub/i386/cpuid.h: New file.
32296 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
32297 (has_longmode): Rename to ...
32298 (grub_cpuid_has_longmode): ... this. Update all users. Remove
32299 `static' attribute.
32300 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
32301 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
32302 on a CPU that doesn't implement AMD64 instruction set.
32303
186e7cf2 323042009-10-06 Colin Watson <cjwatson@ubuntu.com>
32305
32306 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
32307 that version.texi is rebuilt on version number changes.
32308
83b65c4a 323092009-10-06 Colin Watson <cjwatson@ubuntu.com>
32310
32311 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
32312 Fixes bug #27602.
32313
d244281c 323142009-10-06 Colin Watson <cjwatson@ubuntu.com>
32315
32316 * util/i386/pc/grub-install.in: Source
32317 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
32318 that the --grub-probe option will work.
32319 * util/sparc64/ieee1275/grub-install.in: Likewise.
32320
da25306d 323212009-10-05 Robert Millan <rmh.grub@aybabtu.com>
32322
32323 * configure.ac: Bump version to 1.97~beta4.
32324
e8ee83c0 323252009-10-03 Robert Millan <rmh.grub@aybabtu.com>
32326
32327 Resync grub-mkdevicemap in x86_64-efi.
32328
32329 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
32330 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
32331 `util/devicemap.c'.
32332
50dcabcf 323332009-10-01 Colin Watson <cjwatson@ubuntu.com>
32334
32335 * util/grub-editenv.c (create_envblk_file): Write new block with a
32336 .new suffix and then rename it into place, to ensure atomic
32337 creation.
32338
0e51c3a7 323392009-09-28 Robert Millan <rmh.grub@aybabtu.com>
32340
32341 Do not automatically install headers.
32342
32343 * Makefile.in (include_DATA): Remove. Update all users.
32344
31299a95 323452009-09-26 Robert Millan <rmh.grub@aybabtu.com>
32346
32347 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
32348 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
32349
32350 * util/osdetect.lua: Remove.
32351 * script/lua/lauxlib.c: Likewise.
32352 * script/lua/ldebug.c: Likewise.
32353 * script/lua/grub_main.c: Likewise.
32354 * script/lua/lauxlib.h: Likewise.
32355 * script/lua/ldebug.h: Likewise.
32356 * script/lua/ltablib.c: Likewise.
32357 * script/lua/liolib.c: Likewise.
32358 * script/lua/lstrlib.c: Likewise.
32359 * script/lua/lualib.h: Likewise.
32360 * script/lua/ldo.c: Likewise.
32361 * script/lua/ldump.c: Likewise.
32362 * script/lua/ldo.h: Likewise.
32363 * script/lua/loslib.c: Likewise.
32364 * script/lua/lundump.c: Likewise.
32365 * script/lua/grub_lib.c: Likewise.
32366 * script/lua/ldblib.c: Likewise.
32367 * script/lua/lundump.h: Likewise.
32368 * script/lua/lmem.c: Likewise.
32369 * script/lua/grub_lib.h: Likewise.
32370 * script/lua/lmathlib.c: Likewise.
32371 * script/lua/lstate.c: Likewise.
32372 * script/lua/ltm.c: Likewise.
32373 * script/lua/lvm.c: Likewise.
32374 * script/lua/lmem.h: Likewise.
32375 * script/lua/lstate.h: Likewise.
32376 * script/lua/ltm.h: Likewise.
32377 * script/lua/ltable.c: Likewise.
32378 * script/lua/lvm.h: Likewise.
32379 * script/lua/llex.c: Likewise.
32380 * script/lua/lgc.c: Likewise.
32381 * script/lua/grub_lua.h: Likewise.
32382 * script/lua/loadlib.c: Likewise.
32383 * script/lua/lfunc.c: Likewise.
32384 * script/lua/lopcodes.c: Likewise.
32385 * script/lua/lparser.c: Likewise.
32386 * script/lua/ltable.h: Likewise.
32387 * script/lua/llex.h: Likewise.
32388 * script/lua/lgc.h: Likewise.
32389 * script/lua/lfunc.h: Likewise.
32390 * script/lua/lbaselib.c: Likewise.
32391 * script/lua/lopcodes.h: Likewise.
32392 * script/lua/lparser.h: Likewise.
32393 * script/lua/lzio.c: Likewise.
32394 * script/lua/linit.c: Likewise.
32395 * script/lua/lobject.c: Likewise.
32396 * script/lua/llimits.h: Likewise.
32397 * script/lua/lstring.c: Likewise.
32398 * script/lua/lzio.h: Likewise.
32399 * script/lua/lapi.c: Likewise.
32400 * script/lua/lcode.c: Likewise.
32401 * script/lua/lua.h: Likewise.
32402 * script/lua/lobject.h: Likewise.
32403 * script/lua/lstring.h: Likewise.
32404 * script/lua/lapi.h: Likewise.
32405 * script/lua/lcode.h: Likewise.
32406 * script/lua/luaconf.h: Likewise.
32407
cb8a2c38 324082009-09-26 Colin Watson <cjwatson@ubuntu.com>
32409
32410 * docs/grub.texi (Command-line and menu entry commands): Document
32411 date and echo commands.
32412
6b9b6276 324132009-09-24 Pavel Roskin <proski@gnu.org>
32414
32415 * include/grub/kernel.h (struct grub_module_header): Remove
32416 `grub_module_header_types'. Make `type' unsigned. Make `size'
32417 32-bit on all platforms.
32418 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
32419 8-bit field. Use grub_host_to_target32() for `size'.
32420 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
32421 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
32422 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
32423
4e5a02a7 324242009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32425
32426 Fix "lost keypress" bug in at_keyboard.
32427
32428 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
32429 Checks for readyness of input buffer (without flushing it).
32430 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
32431 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
32432
c6dcedf6 324332009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32434
32435 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
32436 size check within GRUB_MACHINE_PCBIOS section.
32437
74c958b1 324382009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32439
32440 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
32441 return value.
32442 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
32443 KEYBOARD_ISREADY check.
32444 (grub_at_keyboard_checkkey): Rename to ...
32445 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
32446 Remove gratuitous cast.
32447
ff420223 324482009-09-23 Colin Watson <cjwatson@ubuntu.com>
32449
32450 * configure.ac: Call AC_PROG_MKDIR_P.
32451 * Makefile.in (docs/stamp-vti): Create docs directory. Create
32452 version.texi in $(builddir) rather than $(srcdir).
32453 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
32454 to makeinfo's @include search path.
32455
d96875df 324562009-09-23 Felix Zielcke <fzielcke@z-51.de>
32457
32458 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
32459
9b3f8365 324602009-09-23 Felix Zielcke <fzielcke@z-51.de>
32461
32462 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
32463 for `*.dpkg-new'.
32464
c44c90db 324652009-09-21 Colin Watson <cjwatson@ubuntu.com>
32466
32467 Build info documentation. Some code borrowed from Automake.
32468
32469 * configure.ac: Check for makeinfo.
32470 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
32471 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
32472 docs/version.texi.
32473 (MOSTLYCLEANFILES): Add vti.tmp.
32474 (docs/version.texi, docs/stamp-vti): Update automatically.
32475 (docs/grub.info): Build info documentation. Use --force and ignore
32476 errors for now.
32477 (all-local): Add $(INFOS).
32478 (install-local): Install info files.
32479 (uninstall): Uninstall info files.
32480 * docs/version.texi: Remove from revision control. This file is
32481 automatically generated on build now.
32482 * gendistlist.sh: Add `*.info'.
32483
e0b37bb5 324842009-09-21 Felix Zielcke <fzielcke@z-51.de>
32485
32486 * kern/term.c: Fix indentation.
32487
5a78865b 324882009-09-21 Felix Zielcke <fzielcke@z-51.de>
32489
32490 * util/hostdisk.c: Fix a comment.
32491
dace7e8a 324922009-09-20 Robert Millan <rmh.grub@aybabtu.com>
32493
32494 Fix regression introduced in r2539.
32495
32496 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
32497 to 0xA1.
32498
a83d079b 324992009-09-19 Colin Watson <cjwatson@ubuntu.com>
32500
32501 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 32502 os-prober. Under normal operation, it does not print anything to
32503 stderr; if it does, we need to debug it, and throwing away stderr
32504 makes that excessively difficult.
a83d079b 32505
be94a509 325062009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
32507
32508 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
32509
63f745e8 325102009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32511
32512 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
32513 AC_LANG_PROGRAM from autoconf.
32514 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
32515 prototypes (fixes warning).
32516
32517 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
32518 `--disable-werror' was used.
32519
bbb2a70f 325202009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32521
32522 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
32523 uninitialized `lastaddr'.
32524
77c24f1d 325252009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
32526
0f0b8c87 32527 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 32528
07197f23 325292009-09-14 Colin Watson <cjwatson@ubuntu.com>
32530
32531 * commands/test.c (get_fileinfo): Return immediately if
32532 grub_fs_probe fails.
32533
dabf1798 325342009-09-14 José Martínez <xosemp@gmail.com>
32535
32536 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
32537
d52109a7 325382009-09-14 Colin Watson <cjwatson@ubuntu.com>
32539
32540 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
32541 output.
32542
56532179 325432009-09-13 Robert Millan <rmh.grub@aybabtu.com>
32544
32545 * configure.ac: Remove --enable-grub-pe2elf. Only build
32546 grub-pe2elf when needed by the build system itself.
32547 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
32548
8ef070f5 325492009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32550
32551 * configure.ac: Bump version to 1.97~beta3.
32552 * docs/version.texi: Likewise.
32553
61229557 325542009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32555
32556 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
32557 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
32558 from here ...
32559 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
32560 (grub_linux_setup_video): ... to here (with some adjustments).
32561
5c9f8d84 325622009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32563
32564 Fix memory corruption issue (spotted by Colin Watson).
32565
32566 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
32567 causing returned size to be stored in an incorrect memory location.
32568 Fix use of uninitialized value when storing the returned size.
32569
e8f5d6e9 325702009-09-12 Yves Blusseau <blusseau@zetam.org>
32571
32572 Change clean rules to properly remove files
32573
32574 * genmk.rb: add new clean rules
32575 * Makefile.in (clean): add the new targets
32576 (mostlyclean): likewise
32577
cda2a409 325782009-09-11 Colin Watson <cjwatson@ubuntu.com>
32579
32580 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32581 to grub_uint64_t.
32582 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32583 non-resident files.
32584
86695375 325852009-09-11 Colin Watson <cjwatson@ubuntu.com>
32586
32587 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32588 part of bug #27349.
32589
8aa1541a 325902009-09-10 Felix Zielcke <fzielcke@z-51.de>
32591
32592 * util/grub-mkconfig.in: Make the created config mode 400 and
32593 print a warning if it fails.
32594
48d9bb0a 325952009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32596
32597 * util/grub.d/40_custom.in: Ask user to type custom entries below
32598 comment, rather than below 'exec tail' line.
32599
3b0521be 326002009-09-10 Colin Watson <cjwatson@ubuntu.com>
32601
32602 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32603 visible in grub.cfg.
32604
50051d55 326052009-09-10 Colin Watson <cjwatson@ubuntu.com>
32606
32607 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32608 file.
32609
c0d34387 326102009-09-10 Felix Zielcke <fzielcke@z-51.de>
32611
32612 * docs/grub.cfg: Add an example menu entry for memtest86+.
32613
80a608f3 326142009-09-09 Felix Zielcke <fzielcke@z-51.de>
32615
a2094832 32616 * config.guess: Update to latest version from config git.
80a608f3 32617 * config.sub: Likewise.
32618
99423078 326192009-09-08 Colin Watson <cjwatson@ubuntu.com>
32620
32621 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32622 unknown-command case. Fixes bug #27320.
32623
44454e4c 326242009-09-08 Felix Zielcke <fzielcke@z-51.de>
32625
32626 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32627 `help' if the command exists.
32628
e30d87ad 326292009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32630
32631 * INSTALL: Require GCC 4.1.3 or later.
32632
9a86f1ec 326332009-09-06 Yves Blusseau <blusseau@zetam.org>
32634
32635 * Makefile.in (RMKFILES): add i386-qemu.rmk
32636 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32637 $(srcdir)/stamp-h.in
32638
7f26d466 326392009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32640
32641 * util/grub-probe.c (probe): Comment out buggy codepath, which
32642 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32643 should be re-enabled after 1.97.
32644
3a613259 326452009-09-05 Felix Zielcke <fzielcke@z-51.de>
32646
32647 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32648 find searches for.
32649
197f76c7 326502009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32651
32652 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32653 unnecessary calls to grub_error.
32654
70ba68ce 326552009-09-04 Colin Watson <cjwatson@ubuntu.com>
32656
32657 * NEWS: Mention `keystatus' and Unicode fonts.
32658
4ff0d7a4 326592009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32660
32661 * configure.ac: Bump version to 1.97~beta2.
32662 * docs/version.texi: Likewise.
32663
77c55a87 326642009-09-03 Colin Watson <cjwatson@ubuntu.com>
32665
32666 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32667 containing unwind information in some cases where it previously did
32668 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32669 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32670 discussion.
32671
f79572cd 326722009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32673
32674 Embedding loadenv module into grub-emu
32675
32676 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32677 commands/loadenv.c
32678 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32679 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32680 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32681 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32682 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32683 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32684
93a81088 326852009-09-03 Magnus Granberg <zorry@ume.nu>
32686
32687 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32688 include -fPIE in the default specs.
32689 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32690 to TARGET_CFLAGS.
32691
160034b2 326922009-09-03 Felix Zielcke <fzielcke@z-51.de>
32693
32694 * INSTALL: Note that GNU Bison 2.3 or later is required.
32695
087c07c4 326962009-09-03 Colin Watson <cjwatson@ubuntu.com>
32697
32698 * kern/i386/pc/startup.S: Fix typo.
32699
cbf978c0 327002009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32701
32702 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32703 according to GCS.
32704
327052009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 32706
32707 * docs/grub.texi (Naming convention): Describe one-based partition
32708 numbering.
32709 (Device syntax): Likewise.
32710 (File name syntax): Likewise.
32711 (Block list syntax): Likewise.
32712 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32713 menu.lst.
32714 (File name syntax): Likewise.
32715 (Command-line and menu entry commands): Document acpi, blocklist,
32716 crc, export, insmod, keystatus, ls, set, and unset commands.
32717
f3e8cdfd 327182009-09-02 Colin Watson <cjwatson@ubuntu.com>
32719
32720 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32721 to avoid implying that only one of --shift, --ctrl, or --alt may be
32722 used.
32723
c0bc232b 327242009-09-02 Colin Watson <cjwatson@ubuntu.com>
32725
32726 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32727 rather than comparing against S_IFREG, which will almost never work.
32728
aa0f752d 327292009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32730
32731 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32732 (write_blocklists): Likewise.
32733
ecb3166a 327342009-09-01 Colin Watson <cjwatson@ubuntu.com>
32735
32736 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32737 argument to grub_printf.
32738
c403a125 327392009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 32740
32741 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 32742 non GNU test.
31aba781 32743
b5e7312c 327442009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32745
32746 * kern/file.c (grub_file_read): Spelling fix
32747
fe00f472 327482009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32749
32750 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32751 loading of headers in some cases.
32752
cc55302e 327532009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32754
32755 * configure.ac: Bump version to 1.97~beta1.
32756 * docs/version.texi: Likewise.
32757
5c90cdd2 327582009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 32759
32760 * include/grub/i386/xnu.h: Add license header.
32761 include grub/err.h explicitly.
32762
c90edae4 327632009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32764
32765 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32766 to `ufs' in the vfs.root.mountfrom kernel parameter.
32767
d8888b5c 327682009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32769
32770 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32771
32772 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32773 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32774
32775 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32776 `ARRAY_SIZE' macro.
32777
6f07b921 327782009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32779
32780 * kern/file.c (grub_file_read): Check offset.
32781 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32782 * fs/jfs.c (grub_jfs_read_file): Likewise.
32783 * fs/ntfs.c (grub_ntfs_read): Likewise.
32784 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
32785 * fs/minix.c (grub_minix_read_file): Correct offset check.
32786 * fs/ufs.c (grub_ufs_read_file): Likewise.
32787
b4f34077 327882009-08-28 Colin Watson <cjwatson@ubuntu.com>
32789
32790 * term/i386/pc/console.c (bios_data_area): Cast
32791 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
32792
e7c69859 327932009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32794
32795 1-bit optimised blitters.
32796
32797 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
32798 prototype.
32799 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32800 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32801 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32802 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32803 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32804 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32805 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
32806 function.
32807 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32808 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32809 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32810 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32811 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32812 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32813 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
32814 when possible.
32815 * video/video.c (grub_video_get_blit_format): Return
32816 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
32817
a57da43f 328182009-08-28 Colin Watson <cjwatson@ubuntu.com>
32819
32820 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
32821 the first argument to grub_printf.
32822
4cbe67e5 328232009-08-28 Colin Watson <cjwatson@ubuntu.com>
328242009-08-28 Robert Millan <rmh.grub@aybabtu.com>
32825
32826 Add `getkeystatus' terminal method. Add a new `keystatus' command
32827 to query it.
32828
32829 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
32830 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
32831 modifier key bitmasks.
32832 (struct grub_term_input): Add `getkeystatus' member.
32833 (grub_getkeystatus): Add prototype.
32834 * kern/term.c (grub_getkeystatus): New function.
32835
32836 * include/grub/i386/pc/memory.h
32837 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
32838 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
32839 Data Area layout.
32840 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
32841 (grub_console_term_input): Set `getkeystatus' member.
32842 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
32843 constants.
32844 (grub_usb_keyboard_getreport): Likewise.
32845 (grub_usb_keyboard_checkkey): Likewise.
32846 (grub_usb_keyboard_getkeystatus): New function.
32847 (grub_usb_keyboard_term): Set `getkeystatus' member.
32848
32849 * commands/keystatus.c: New file.
32850 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32851 (keystatus_mod_SOURCES): New variable.
32852 (keystatus_mod_CFLAGS): Likewise.
32853 (keystatus_mod_LDFLAGS): Likewise.
32854 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32855 commands/keystatus.c.
32856 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32857 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32858 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32859 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32860 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32861 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 32862
6e2a9085 328632009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32864
32865 Split befs.mod and afs.mod into *_be.mod and *.mod
32866
32867 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32868 (grub_fstest_SOURCES): Likewise.
32869 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32870 (afs_be_mod_SOURCES): New variable.
32871 (afs_be_mod_CFLAGS): Likewise.
32872 (afs_be_mod_LDFLAGS): Likewise.
32873 (befs_be_mod_SOURCES): Likewise.
32874 (befs_be_mod_CFLAGS): Likewise.
32875 (befs_be_mod_LDFLAGS): Likewise.
32876 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32877 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32878 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32879 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32880 (grub_emu_SOURCES): Likewise.
32881 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32882 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32883 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32884 * fs/afs_be.c: New file.
32885 * fs/befs_be.c: New file.
32886 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32887 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32888 (U16): Replaced with ...
32889 (grub_afs_to_cpu16): ...this. All users updated.
32890 (U32): Replaced with ...
32891 (grub_afs_to_cpu32): ...this. All users updated.
32892 (U64): Replaced with ...
32893 (grub_afs_to_cpu64): ...this. All users updated.
32894 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32895 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 32896 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 32897 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32898 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32899 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32900 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32901 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32902 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32903 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32904 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32905
32a71655 329062009-08-26 Bean <bean123ch@gmail.com>
32907
32908 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32909 64-bit number.
32910 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32911 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32912 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32913
552bf6c5 329142009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32915
32916 NetBSD memory map support.
32917
32918 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32919 (grub_netbsd_btinfo_mmap_header): New structure.
32920 (grub_netbsd_btinfo_mmap_entry): Likewise.
32921 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32922
1ae2078c 329232009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32924
32925 Enable bsd.mod on coreboot.
32926
32927 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32928 (bsd_mod_SOURCES): New variable.
32929 (bsd_mod_CFLAGS): Likewise.
32930 (bsd_mod_LDFLAGS): Likewise.
32931 (bsd_mod_ASFLAGS): Likewise.
32932 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32933 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32934
beefc598 329352009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32936
32937 Cleanup NetBSD root support.
32938
32939 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32940 grub_bsd_get_device.
32941 Fix typo.
32942
3b76e68b 329432009-08-25 Felix Zielcke <fzielcke@z-51.de>
32944
32945 * util/grub.d/00_header.in: Move check for the video backend of
32946 gfxterm from here ...
32947 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32948 a suitable video backend.
32949
aea664ea 329502009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32951
32952 Fix breakage in grub-setup.
32953
32954 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32955 "msdos_partition_map".
32956
ff747d50 329572009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32958
32959 Fix breakage in normal/auth.c.
32960
32961 * normal/auth.c (grub_iswordseparator): New function.
32962
e7e1f93f 329632009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32964
32965 Authentication support.
32966
32967 * commands/password.c: New file.
32968 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32969 (password_mod_SOURCES): New variable.
32970 (password_mod_CFLAGS): Likewise.
32971 (password_mod_LDFLAGS): Likewise.
32972 (normal_mod_SOURCES): Add normal/auth.c.
32973 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32974 normal/auth.c.
32975 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32976 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32977 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32978 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32979 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32980 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32981 * include/grub/auth.h: New file.
32982 * include/grub/err.h (grub_err_t): New enum value
32983 GRUB_ERR_ACCESS_DENIED.
32984 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32985 'users'.
32986 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32987 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32988 users updated.
32989 * normal/auth.c: New file.
32990 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32991 (grub_cmdline_run): Don't allow to go to command line without
32992 authentication.
32993 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32994 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32995 menuentry without superuser rights.
32996 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32997 user isn't a superuser.
32998
70f1161d 329992009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33000
33001 Save space by inlining misc.c functions.
33002
33003 * kern/misc.c (grub_iswordseparator): Made static.
33004 * kern/misc.c (grub_strcat): Moved from here ...
33005 * include/grub/misc.h (grub_strcat): ... here. Inlined.
33006 * kern/misc.c (grub_strncat): Moved from here ...
33007 * include/grub/misc.h (grub_strncat): ... here. Inlined.
33008 * kern/misc.c (grub_strcasecmp): Moved from here ...
33009 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
33010 * kern/misc.c (grub_strncasecmp): Moved from here ...
33011 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
33012 * kern/misc.c (grub_isalpha): Moved from here ...
33013 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
33014 * kern/misc.c (grub_isdigit): Moved from here ...
33015 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
33016 * kern/misc.c (grub_isgraph): Moved from here ...
33017 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
33018 * kern/misc.c (grub_tolower): Moved from here ...
33019 * include/grub/misc.h (grub_tolower): ... here. Inlined.
33020
48e40bff 330212009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33022
33023 * script/sh/function.c (grub_script_function_find): Cut error message
33024 not to flood terminal.
33025 * script/sh/lexer.c (grub_script_yylex): Remove command line length
33026 limit.
33027 * script/sh/script.c (grub_script_arg_add): Duplicate string.
33028
c385bfc3 330292009-08-24 Colin Watson <cjwatson@ubuntu.com>
33030
33031 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
33032 `report' grub_uint8_t *.
33033 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
33034 Use a 50-millisecond timeout rather than just repeating
33035 grub_usb_keyboard_getreport 50 times.
33036 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
33037
2d21e3e8 330382009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33039
33040 Rename *_partition_map to part_*
33041
33042 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
33043 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
33044 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
33045 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
33046 All users updated.
33047 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
33048 All users updated.
33049 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
33050 * util/grub-probe.c (probe_partmap): Don't transform partition name
33051 to get module name.
33052
dd103c4e 330532009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33054
33055 Fix OpenBSD and NetBSD support.
33056
33057 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
33058 memory address conflict.
33059 (OPENBSD_MMAP_ACPI): New definition.
33060 (OPENBSD_MMAP_NVS): Likewise.
33061 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
33062 and OPENBSD_MMAP_NVS.
33063 Add memory map terminator
33064 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 33065 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 33066
16c84d74 330672009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33068
33069 Let user specify NetBSD root device.
33070
33071 * loader/i386/bsd.c (netbsd_root): New variable.
33072 (netbsd_opts): New option 'root'.
33073 (NETBSD_ROOT_ARG): New macro.
33074 (grub_netbsd_boot): Use 'netbsd_root'.
33075 (grub_bsd_unload): Free 'netbsd_root'.
33076 (grub_cmd_netbsd): Fill 'netbsd_root'.
33077
adb29902 330782009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33079
33080 Support for 64-bit NetBSD.
33081
33082 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
33083 point when booting non-FreeBSD.
33084
f5ae9f74 330852009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
33086
33087 Support --no-smp and --no-acpi for NetBSD.
33088
33089 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
33090 (NETBSD_AB_NOACPI): Likewise.
33091 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
33092 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
33093
de74f136 330942009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33095
33096 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
33097 errors.
33098 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
33099 errors. Call grub_error when needed.
33100
e9a925da 331012009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33102
33103 * commands/search.c (search_fs): Try searching without autoload first.
33104 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
33105 filesystem module explicitly for faster booting.
33106
5174302b 331072009-08-23 Colin Watson <cjwatson@ubuntu.com>
33108
33109 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
33110
c8c80635 331112009-08-23 Colin Watson <cjwatson@ubuntu.com>
33112
33113 * util/grub.d/30_os-prober.in: Disable os-prober if
33114 `GRUB_DISABLE_OS_PROBER' was set to true.
33115
71acf5e5 331162009-08-23 Robert Millan <rmh.grub@aybabtu.com>
33117
33118 * partmap/pc.c: Rename to ...
33119 * partmap/msdos.c: ... this. Update all users.
33120 (grub_pc_partition_map): Rename to ...
33121 (grub_msdos_partition_map): ... this. Update all users.
33122
33123 * parttool/pcpart.c: Rename to ...
33124 * parttool/msdospart.c: ... this. Update all users.
33125
33126 * include/grub/pc_partition.h: Rename to ...
33127 * include/grub/msdos_partition.h: ... this. Update all users.
33128 (grub_pc_partition_bsd_entry): Rename to ...
33129 (grub_msdos_partition_bsd_entry): ... this. Update all users.
33130 (grub_pc_partition_disk_label): Rename to ...
33131 (grub_msdos_partition_disk_label): ... this. Update all users.
33132 (grub_pc_partition_entry): Rename to ...
33133 (grub_msdos_partition_entry): ... this. Update all users.
33134 (grub_pc_partition_mbr): Rename to ...
33135 (grub_msdos_partition_mbr): ... this. Update all users.
33136 (grub_pc_partition): Rename to ...
33137 (grub_msdos_partition): ... this. Update all users.
33138 (grub_pc_partition_is_empty): Rename to ...
33139 (grub_msdos_partition_is_empty): ... this. Update all users.
33140 (grub_pc_partition_is_extended): Rename to ...
33141 (grub_msdos_partition_is_extended): ... this. Update all users.
33142 (grub_pc_partition_is_bsd): Rename to ...
33143 (grub_msdos_partition_is_bsd): ... this. Update all users.
33144
33145 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
33146 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
33147 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
33148 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
33149 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
33150 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
33151 (gpt_mod_LDFLAGS): Rename to ...
33152 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
33153 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
33154 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
33155 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
33156 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
33157 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
33158 (part_gpt_mod_LDFLAGS): ... this.
33159 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
33160 `pcpart.mod' to `msdospart.mod'.
33161 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
33162 to ...
33163 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
33164 (msdospart_mod_LDFLAGS): ... this.
33165
c11fded5 331662009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33167
33168 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
33169 (openbsd_opts): Likewise.
33170 (netbsd_opts): Likewise.
33171 (freebsd_flags): Added 0 terminator.
33172 (openbsd_flags): Likewise.
33173 (netbsd_flags): Likewise.
33174 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
33175 (grub_cmd_freebsd): Transformed into extended command.
33176 (grub_cmd_openbsd): Likewise.
33177 (grub_cmd_netbsd): Likewise.
33178 (cmd_freebsd): Changed type to grub_extcmd_t.
33179 (cmd_openbsd): Likewise.
33180 (cmd_netbsd): Likewise.
33181 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
33182 grub_cmd_openbsd as extended commands.
33183 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
33184 cmd_netbsd and cmd_openbsd
33185
11d1c769 331862009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
33187
33188 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
33189
7a9094e5 331902009-08-21 Pavel Roskin <proski@gnu.org>
33191
5496c37e 33192 * Makefile.in (install-local): When checking if a file is in the
33193 build directory, use "test -e" to detect symlinks.
33194
7a9094e5 33195 * Makefile.in (install-local): Remove all files in
33196 $(DESTDIR)$(pkglibdir) before installing new files there.
33197
e53cea11 331982009-08-18 Felix Zielcke <fzielcke@z-51.de>
33199
33200 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
33201 grub-mkelfimage.
33202
9aced544 332032009-08-18 Felix Zielcke <fzielcke@z-51.de>
33204
33205 * util/grub-mkconfig.in: Don't use gfxterm by default if not
33206 explicitly specified by the user.
33207
b7da6bab 332082009-08-18 Pavel Roskin <proski@gnu.org>
33209
33210 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
33211 grub_uint8_t pointer for data.
33212 * include/grub/fbutil.h (struct grub_video_fbblit_info):
33213 Likewise.
33214 * video/fb/fbutil.c: Remove unnecessary casts.
33215
19f1b335 332162009-08-17 Michal Suchanek <hramrach@centrum.cz>
33217
33218 VBE cleanup.
33219
33220 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
33221 (grub_vbe_set_video_mode): Save active mode info
33222 only after setting the mode.
33223 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
33224 second argument.
33225
2f467aa9 332262009-08-17 Michal Suchanek <hramrach@centrum.cz>
33227
33228 Rename variables for clarity.
33229
33230 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
33231 (active_vbe_mode_info): ... this. All users updated.
33232 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
33233 All users updated.
33234 (initial_mode): Rename to ...
33235 (initial_vbe_mode): ... this. All users updated.
33236 (mode_in_use): Rename to ..
33237 (vbe_mode_in_use): ... this. All users updated.
33238 (mode_list): Rename to ..
33239 (vbe_mode_list): ... this. All users updated.
33240 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
33241 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
33242 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
33243 'mode_list_size' to 'vbe_mode_list_size'.
33244 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
33245 'best_mode_info' to 'best_vbe_mode_info' and
33246 'best_mode' to 'best_vbe_mode'
33247
6025fcd7 332482009-08-17 Michal Suchanek <hramrach@centrum.cz>
33249
33250 Remove duplicate grub_video_fb_get_video_ptr.
33251
33252 * include/grub/fbutil.h (get_data_ptr): Rename to ...
33253 (grub_video_fb_get_video_ptr): ... this.
33254 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
33255 * video/fb/fbutil.c: Add comment about addressing.
33256 (get_data_ptr): Rename to ...
33257 (grub_video_fb_get_video_ptr): ... this. All users updated.
33258 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
33259
cc8c6faf 332602009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33261
33262 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
33263 grub_dprintf() that was just added.
33264
08aa61f0 332652009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33266
33267 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
33268 (DEFAULT_VIDEO_MODE): Remove macros.
33269 (grub_linux_boot): Remove assumption that Linux has FB support,
33270 and use "text" as default video mode.
33271
7cef4f75 332722009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
33273
33274 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
33275 grub_dprintf.
33276 * fs/fat.c (grub_fat_read_data): Likewise.
33277
e1f39873 332782009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33279
33280 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
33281 payload.
33282 (grub_module): Likewise.
33283
c166d79e 332842009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33285
33286 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
33287 mbi->cmdline but free playground.
33288
c60cee8e 332892009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33290
33291 Handle group offset on UFS1.
33292
33293 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
33294 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
33295
c0d8b5d4 332962009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33297
33298 Split ufs.mod into ufs1.mod and ufs2.mod.
33299
33300 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
33301 (grub_fstest_SOURCES): Likewise.
33302 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
33303 (ufs_mod_SOURCES): Remove.
33304 (ufs_mod_CFLAGS): Likewise.
33305 (ufs_mod_LDFLAGS): Likewise.
33306 (ufs1_mod_SOURCES): New variable.
33307 (ufs1_mod_CFLAGS): Likewise.
33308 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 33309 (ufs2_mod_SOURCES): New variable.
33310 (ufs2_mod_CFLAGS): Likewise.
33311 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 33312 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
33313 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33314 Likewise.
33315 (grub_emu_SOURCES): Likewise.
33316 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33317 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33318 (grub_setup_SOURCES): Likewise.
33319 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33320 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
33321 (grub_setup_SOURCES): Likewise.
33322 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33323 Likewise.
33324 * fs/ufs2.c: New file.
33325 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
33326
d3539132 333272009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33328
33329 Framebuffer split.
33330
33331 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
33332 subsystem at the end.
33333 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
33334 (video_fb_mod_SOURCES): New variable.
33335 (video_fb_mod_CFLAGS): Likewise.
33336 (video_fb_mod_LDFLAGS): Likewise.
33337 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
33338 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
33339 * video/i386/pc/vbeblit.c: Moved from here ...
33340 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
33341 * video/i386/pc/vbefill.c: Moved from here ...
33342 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
33343 * video/i386/pc/vbeutil.c: Moved from here ...
33344 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
33345 * include/grub/i386/pc/vbeblit.h: Moved from here ...
33346 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
33347 * include/grub/i386/pc/vbefill.h: Moved from here ...
33348 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
33349 * include/grub/i386/pc/vbeutil.h: Moved from here ...
33350 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
33351 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
33352 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
33353 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
33354 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
33355 (grub_video_adapter): Added 'get_info_and_fini'.
33356 (grub_video_get_info_and_fini): New prototype.
33357 (grub_video_set_mode): make modestring const char *.
33358 * loader/i386/linux.c (grub_linux_setup_video): Use
33359 grub_video_get_info_and_fini.
33360 (grub_linux_boot): Move modesetting just before booting.
33361 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
33362 grub_video_get_info_and_fini.
33363 * video/i386/pc/vbe.c: Moved framebuffer part ...
33364 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
33365 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
33366 grub_video_fbstd_colors and grub_video_fb_set_palette.
33367 (grub_video_vbe_init): Clear 'framebuffer' variable and use
33368 grub_video_fb_init.
33369 (grub_video_vbe_fini): Use grub_video_fb_fini.
33370 (grub_video_vbe_setup): Use framebuffer.render_target instead of
33371 render_target and use grub_video_fb_set_active_render_target and
33372 grub_video_fb_set_palette.
33373 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
33374 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
33375 (grub_video_vbe_adapter): Use framebuffer.
33376 * video/video.c (grub_video_get_info_and_fini): New function.
33377 (grub_video_set_mode): Make modestring const char *.
33378 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
33379 values are already initialised.
33380
d404ee56 333812009-08-14 Pavel Roskin <proski@gnu.org>
33382
33383 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
33384 ABS and APPLE_CC.
33385 * boot/i386/pc/diskboot.S: Likewise.
33386 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
33387 sectors allow compilation on MacOSX.
33388 * conf/i386-pc.rmk: Enable unconditional compilation of
33389 lnxboot.img.
33390
9a10df16 333912009-08-13 Colin Watson <cjwatson@ubuntu.com>
33392
33393 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
33394 * util/grub.d/00_header.in: Enter interruptible sleep if
33395 GRUB_HIDDEN_TIMEOUT is set.
33396
be3c9ca7 333972009-08-13 Yves Blusseau <blusseau@zetam.org>
33398
33399 * include/grub/symbol.h: Add the LOCAL macro.
33400 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
33401 starting with "L_".
33402
1f9e557e 334032009-08-13 Pavel Roskin <proski@gnu.org>
33404
9ca62843 33405 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
33406 any modern compilers we support.
33407
1f9e557e 33408 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
33409 Use local labels starting with "L_" so that Apple assembler
33410 knows they are local.
33411
81623db6 334122009-08-10 Robert Millan <rmh.grub@aybabtu.com>
33413
33414 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
33415 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
33416 (bsd_kernel_types): ... this enum.
33417
33418 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
33419 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
33420 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
33421
33422 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
33423 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
33424 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
33425 messages.
33426
f5d35e7a 334272009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33428
33429 * util/grub-dumpdevtree: Moved from here ...
33430 * util/i386/efi/grub-dumpdevtree: ... to here.
33431 (hexify): New function. Converts a string to its hex version.
33432 Generate hex versions of "efi" and "device-properties" by calling
33433 hexify() on the ASCII strings rather than by hardcoding numbers.
33434
d1e1d527 334352009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33436
33437 * fs/jfs.c: Update copyright year.
33438
1ebbe064 334392009-08-08 Felix Zielcke <fzielcke@z-51.de>
33440
33441 * util/grub.d/00_header.in: Fix a comment.
33442 * util/grub.d/10_linux.in: Likewise.
33443 * util/grub.d/10_windows.in: Likewise.
33444 * util/grub.d/10_hurd.in: Likewise.
33445
a78c8d24 334462009-08-08 Felix Zielcke <fzielcke@z-51.de>
33447
33448 * util/grub-mkconfig.in: Allow the user to specify the used font
33449 with GRUB_FONT.
33450
29a6b9e8 334512009-08-08 Pavel Roskin <proski@gnu.org>
33452
b5f16cc4 33453 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
33454 available, xfs.mod needs it now.
33455
2f5cb827 33456 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
33457 the "g" modifier in sed when the intention is to strip something
33458 once. This fixes comparison of kernels with multiple dashes.
33459
29a6b9e8 33460 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
33461 on it. Add missing space before closing bracket. Fix
33462 misleading formatting.
33463
892a3d98 334642009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33465
33466 * docs/grub.texi: Major overhaul. Remove all sections that are
33467 specific to GRUB Legacy, or mostly composed of Legacy-specific
33468 information.
33469
ed94253f 334702009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33471
33472 * docs/version.texi: New file. Provides version information for
33473 grub.texi.
33474
126d6628 334752009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33476
33477 * docs/grub.texi: Update CVS information to SVN.
33478 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
33479
998b5aa9 334802009-08-07 Felix Zielcke <fzielcke@z-51.de>
33481
33482 * util/grub-mkconfig.in: Remove a wrong `fi'.
33483
818e094a 334842009-08-07 Felix Zielcke <fzielcke@z-51.de>
33485
33486 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
33487 (grub_jfs_uuid): New function.
33488 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
33489
b969c52f 334902009-08-07 Felix Zielcke <fzielcke@z-51.de>
33491
33492 * util/grub-mkconfig_lib.in (font_path): Move the functionality
33493 of it to ...
33494 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
33495 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
33496
7a4894cc 334972009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33498
33499 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
33500 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
33501 Update all users.
33502
33503 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
33504 not just "vmlinu[zx]".
33505 Moved from here ...
33506 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
33507 all users.
33508
33509 * util/grub.d/10_linux.in (find_latest): Moved from here ...
33510 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
33511 all users.
33512
4e2171f8 335132009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33514
33515 * util/grub.d/10_freebsd.in: Use an absolute device path for
33516 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
33517
6dcfcb32 335182009-08-06 Felix Zielcke <fzielcke@z-51.de>
33519
33520 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
33521 handling of multiple abstraction modules.
33522
f56a8756 335232009-08-04 Robert Millan <rmh.grub@aybabtu.com>
33524
33525 Fix a bug resulting in black screen when loading Linux using a
33526 packed video mode.
33527
33528 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
33529 function.
33530
33531 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
33532 (grub_vbe_bios_getset_dac_palette_width): New function.
33533 (grub_vbe_bios_get_dac_palette_width)
33534 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
33535 grub_vbe_bios_getset_dac_palette_width()).
33536
33537 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
33538 check for return status.
33539 (grub_vbe_get_video_mode_info): When getting information for a packed
33540 mode (<= 8 bpp), obtain DAC palette width using
33541 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
33542 {red,green,blue}_mark_size.
33543
222671b2 335442009-08-04 Felix Zielcke <fzielcke@z-51.de>
33545
ecb1a6d9 33546 * commands/search.c (options): Fix help output to match actual code.
222671b2 33547
f84114f5 335482009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
33549
33550 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
33551 of homegrown code.
33552
bd288a20 335532009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 33554
33555 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
33556 on XFS or ReiserFS.
33557
8aab5e25 335582009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33559
33560 Support Apple partition map with sector size different from 512 bytes.
33561
33562 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
33563 (apple_partition_map_iterate): Respect 'aheader.blocksize'
33564 and 'apart.partmap_size'.
33565
6ad6258a 335662009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
335672009-08-01 Robert Millan <rmh.grub@aybabtu.com>
33568
33569 Fix cpuid command.
33570
33571 * commands/i386/cpuid.c (options): New variable.
33572 (grub_cmd_cpuid): Return real error.
33573 (GRUB_MOD_INIT(cpuid)): Declare options.
33574
67459bc6 335752009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33576
33577 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33578 valid.
33579
fbc6ab54 335802009-07-31 Bean <bean123ch@gmail.com>
33581
33582 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33583 log2_inode.
33584 (grub_fshelp_node): Move inode field to the end.
33585 (grub_xfs_data): Remove inode field.
33586 (grub_xfs_inode_block): Calculate inode size using sblock.
33587 (grub_xfs_inode_offset): Likewise.
33588 (grub_xfs_read_inode): Calculate inode size using sblock.
33589 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33590 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33591 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33592 to match inode size.
33593 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33594 not accessible when data is null.
33595 (grub_xfs_open): Likewise.
33596
f45d6cfc 335972009-07-31 Bean <bean123ch@gmail.com>
33598
33599 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33600 Don't change pv->disk if it's already set.
33601
33602 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33603 (grub_raid_register): ... here.
33604 (grub_raid_rescan): Removed.
33605
33606 * include/grub/raid.h (grub_raid_rescan): Removed.
33607
33608 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33609 (fstest): Replace grub_raid_rescan with module fini function followed
33610 by init function.
33611
33612 * util/grub-probe.c: Add include file <grub/raid.h>.
33613 (probe_raid_level): New function.
33614 (probe): Detect abstraction by walking the disk device, support two
33615 level of abstraction (LVM on RAID) when detecting partition map.
33616
24443b5a 336172009-07-31 Pavel Roskin <proski@gnu.org>
33618
33619 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33620 to grub_zalloc(), it was erroneous.
33621 Reported by Bean <bean123ch@gmail.com>
33622
a275d9e7 336232009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33624
33625 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 33626 embedding zone, not only the first one.
a275d9e7 33627
56c5a47f 336282009-07-29 Joe Auricchio <jauricchio@gmail.com>
33629
33630 * term/gfxterm.c (clear_char): New function.
33631 (grub_virtual_screen_setup): Use clear_char.
33632 (scroll_up): Likewise.
33633 (grub_virtual_screen_cls): Likewise.
33634
67bb323a 336352009-07-29 Felix Zielcke <fzielcke@z-51.de>
33636
33637 * util/deviceiter.c (get_acceleraid_disk_name): New static
33638 function.
33639 (grub_util_iterate_devices): Handle Accelraid devices.
33640 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33641
388a7c75 336422009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33643
33644 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33645 separator for the suggested gfxpayload string (';' collides with the
33646 parser and needs escaping).
33647
3bb7abcf 336482009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33649
33650 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33651 Clear direction flag before jumping to OS.
33652 (grub_multiboot2_real_boot): Likewise.
33653
2ddd36d7 336542009-07-28 Felix Zielcke <fzielcke@z-51.de>
33655
33656 * util/i386/pc/grub-install: Fix parsing of --disk-module
33657 option.
33658
c521b62b 336592009-07-28 Felix Zielcke <fzielcke@z-51.de>
33660
33661 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33662 when embedding.
33663
880e0a0c 336642009-07-26 Felix Zielcke <fzielcke@z-51.de>
33665
33666 * util/grub-mkconfig.in (package_version): New variable.
33667 Use it do display the version.
33668
2366e356 336692009-07-25 Felix Zielcke <fzielcke@z-51.de>
33670
33671 * kern/file.c (grub_file_open): Revert to previous check with
33672 grub_errno.
33673
7ad8c80e 336742009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33675
33676 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33677 from help line. It's out of sync with code.
33678
72b9658b 336792009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33680
33681 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33682 entries on failed boot.
33683
77435277 336842009-07-25 Felix Zielcke <fzielcke@z-51.de>
33685
33686 * kern/file.c (grub_file_open): Fix an error check.
33687
fcaa8b21 336882009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33689
35d16c74 33690 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33691 partition map couldn't be identified.
fcaa8b21 33692
48904cd1 336932009-07-23 Pavel Roskin <proski@gnu.org>
33694
ef3c317f 33695 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33696 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33697 case of little endian words becomes just an optimization.
33698 Respect const modifier.
ad8ea1f4 33699 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 33700
48904cd1 33701 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33702 to avoid loss of upper bits if align is unsigned and shorter
33703 than addr.
33704
260c9a89 337052009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33706
33707 UUID support for UFS
33708
33709 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33710 (grub_ufs_uuid): New function.
33711 (grub_ufs_fs): add .uuid
33712
f76ce889 337132009-07-21 Pavel Roskin <proski@gnu.org>
33714
33715 * kern/dl.c (grub_dl_check_header): Make static.
33716
6a6cbcaf 337172009-07-21 Felix Zielcke <fzielcke@z-51.de>
33718
33719 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33720 add drivemap for Vista. It breaks Windows 7.
33721
cffcddb2 337222009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33723
33724 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33725 128 bytes
33726
1ef44b80 337272009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33728
33729 Add BFS support
33730
33731 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33732 (grub_fstest_SOURCES): Likewise.
33733 (pkglib_MODULES): Add befs.mod.
33734 (befs_mod_SOURCES): New variable.
33735 (befs_mod_CFLAGS): Likewise.
33736 (befs_mod_LDFLAGS): Likewise.
33737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33738 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33739 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33740 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33741 (grub_setup_SOURCES): Likewise.
33742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33744 (grub_setup_SOURCES): Likewise.
33745 * fs/befs.c: New file.
33746 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33747 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33748 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33749 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33750 (B_KEY_INDEX_ALIGN): New declaration.
33751 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33752 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33753 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33754 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33755 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33756 (grub_afs_mount) [MODE_BFS]: Likewise.
33757 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33758 (grub_afs_fs): Use GRUB_AFS_FSNAME
33759 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33760 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33761 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33762 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33763
4f253044 337642009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33765
33766 * util/getroot.c (find_root_device): Add support for MacOSX.
33767 * util/hostdisk.c: Likewise.
33768
57a55913 337692009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33770
33771 * font/font.c (find_glyph): Check whether a font is present to avoid
33772 segmentation fault.
75421ca9 33773
337742009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 33775
33776 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33777
e98cd0c2 337782009-07-20 Pavel Roskin <proski@gnu.org>
33779
33780 * configure.ac: Trim excessively wordy excuses.
33781
1d2d169a 337822009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33783
33784 Add symlink, mtime and label support to AtheFS.
33785
33786 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
33787 (grub_afs_iterate_dir): Handle symlinks.
33788 (grub_afs_open): Use grub_afs_read_symlink.
33789 (grub_afs_dir): Likewise.
33790 Pass mtime.
33791 (grub_afs_label): New function.
33792 (grub_afs_fs): Add grub_afs_label.
33793 (grub_afs_read_symlink): New function.
33794
186f3189 337952009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33796
33797 Fix AtheFS support.
33798
33799 * fs/afs.c: Fix comments style.
33800 (grub_afs_blockrun): Declare as packed.
33801 (grub_afs_datastream): Likewise.
33802 (grub_afs_bnode): Likewise.
33803 (grub_afs_btree): Likewise.
33804 (grub_afs_sblock): Likewise.
33805 Declare `name' as char.
33806 (grub_afs_inode): Declare as packed.
33807 Change void *vnode to grub_uint32_t unused.
33808 (grub_afs_iterate_dir): Check that key_size is positive.
33809 (grub_afs_mount): Don't read superblock twice.
75421ca9 33810 (grub_afs_dir): Don't free node in case of error,
186f3189 33811 grub_fshelp_find_file already handles this.
33812 (grub_afs_open): Likewise.
33813
5680109e 338142009-07-19 Pavel Roskin <proski@gnu.org>
33815
33816 * Makefile.in: Remove LIBLZO and enable_lzo.
33817 * conf/i386-pc.rmk: Remove lzo support.
33818 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
33819 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
33820 support.
33821 * kern/i386/pc/lzo1x.S: Remove.
33822 * kern/i386/pc/startup.S: Remove lzo support.
33823 * util/i386/pc/grub-mkimage.c: Likewise.
33824
ac70fa32 338252009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
33826
33827 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
33828 * fs/xfs.c (grub_xfs_dir): Likewise.
33829 * fs/afs.c (grub_afs_dir): Likewise.
33830 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
33831 (grub_iso9660_open): Likewise.
33832 * fs/jfs.c (grub_jfs_open): Likewise.
33833 * fs/ext2.c (grub_ext2_dir): Likewise.
33834 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
33835 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 33836
eab58da2 338372009-07-16 Pavel Roskin <proski@gnu.org>
33838
d2838156 33839 * configure.ac: Never add "-c" to CFLAGS.
33840
55c70904 33841 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
33842
43e6200c 33843 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
33844 grub_cv_cc_efiemu should be used.
33845
ce7a733d 33846 * configure.ac: Typo fixes.
33847
eab58da2 33848 * kern/mm.c (grub_zalloc): New function.
33849 (grub_debug_zalloc): Likewise.
33850 * include/grub/mm.h: Declare grub_zalloc() and
33851 grub_debug_zalloc().
33852 * util/misc.c (grub_zalloc): New function.
33853 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33854 instead of grub_malloc(), remove unneeded initializations.
33855 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33856 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33857 * commands/parttool.c (grub_cmd_parttool): Likewise.
33858 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33859 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33860 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33861 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33862 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33863 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33864 (grub_cmd_efiemu_pnvram): Likewise.
33865 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33866 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33867 (grub_iso9660_iterate_dir): Likewise.
33868 * fs/jfs.c (grub_jfs_opendir): Likewise.
33869 * fs/ntfs.c (list_file): Likewise.
33870 (grub_ntfs_mount): Likewise.
33871 * kern/disk.c (grub_disk_open): Likewise.
33872 * kern/dl.c (grub_dl_load_core): Likewise.
33873 * kern/elf.c (grub_elf_file): Likewise.
33874 * kern/env.c (grub_env_context_open): Likewise.
33875 (grub_env_set): Likewise.
33876 (grub_env_set_data_slot): Likewise.
33877 * kern/file.c (grub_file_open): Likewise.
33878 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33879 * loader/i386/multiboot.c (grub_module): Likewise.
33880 * loader/xnu.c (grub_xnu_create_key): Likewise.
33881 (grub_xnu_create_value): Likewise.
33882 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33883 (read_config_file): Likewise.
33884 * normal/menu_entry.c (make_screen): Likewise.
33885 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33886 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33887 * script/sh/script.c (grub_script_parse): Likewise.
33888 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33889 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33890 * video/readers/png.c (grub_png_output_byte): Likewise.
33891 (grub_video_reader_png): Likewise.
33892
830afef7 338932009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 33894
33895 Enable all targets that can be built by default
33896
830afef7 33897 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 33898 grub-mkfont and grub-fstest if they can be built
33899
ee293aee 339002009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33901
33902 Fix hang and segmentation fault in grub-emu-usb
33903
33904 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33905 * util/usb.c (grub_libusb_devices): likewise
33906 (grub_libusb_init): rename to ...
33907 (GRUB_MOD_INIT (libusb)):...this
33908 (grub_libusb_fini): rename to ..
33909 (GRUB_MOD_FINI (libusb)):...this
33910 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33911 * include/grub/disk.h (grub_raid_init): removed, it's useless
33912 (grub_raid_fini): likewise
33913 (grub_lvm_init): likewise
33914 (grub_lvm_fini): likewise
33915 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33916 by grub_init_all
33917
94414221 339182009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33919
33920 Fix libusb
33921
33922 * Makefile.in (LIBUSB): new macro
33923 * genmk.rb (Utility/print_tail): new method
33924 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33925 (top level): call util.print_tail at the end.
33926
59ade63d 339272009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33928
33929 Make FreeBSD accept zpool.cache
33930
33931 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33932 type is /boot/zfs/zpool.cache
33933
a58da8c7 339342009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33935
33936 Fix 64-bit efiemu
33937
33938 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33939 correct wrong typedef
33940 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33941
20591577 339422009-07-15 Pavel Roskin <proski@gnu.org>
33943
560ca572 33944 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33945 * kern/disk.c (struct grub_disk_cache): Likewise.
33946
e8e8e4fd 33947 * commands/probe.c (options): Typo fix.
33948
fde24e10 33949 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33950 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33951 accordingly.
33952 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33953
379c54c1 33954 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33955 the end of "Error" to make the message more readable.
33956
7bd8f5bf 33957 * boot/i386/pc/boot.S (kernel_segment): Remove.
33958 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33959 for destination.
33960
40b132c5 33961 * boot/i386/pc/boot.S (boot_version): Remove.
33962 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33963 Remove.
33964
20591577 33965 * include/grub/i386/pc/boot.h: Sort all offsets.
33966 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33967 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33968 * boot/i386/pc/boot.S: Assert location of every offset listed in
33969 include/grub/i386/pc/boot.h.
33970
2df32b2c 339712009-07-13 Pavel Roskin <proski@gnu.org>
33972
44b5d879 33973 * include/grub/i386/coreboot/machine.h: Rename
33974 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33975 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33976 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33977
17dc3751 33978 * kern/dl.c: Force native word size to suppress warnings when
33979 compiling grub-emu.
33980
2df32b2c 33981 * kern/device.c (grub_device_iterate): Change struct part_ent to
33982 hold the name, not a pointer to it. Use one grub_malloc() per
33983 partition, not two. Free partition_name if grub_malloc() fails.
33984 Set ents to NULL only before grub_partition_iterate() is called.
33985
75c59f59 339862009-07-11 Bean <bean123ch@gmail.com>
33987
33988 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33989 childname.
33990
0ae1bf88 339912009-07-10 Bean <bean123ch@gmail.com>
339922009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33993
33994 * kern/ieee1275/openfw.c (grub_children_iterate)
33995 (grub_devalias_iterate): Fix size evaluation for property or path
33996 strings, which was broken since r2132.
33997
8279cade 339982009-07-07 Pavel Roskin <proski@gnu.org>
33999
7d8a52d3 34000 * commands/search.c (search_file): Merge into ...
34001 (search_fs): ... this. Accept search type as argument.
34002 (grub_cmd_search): Pass search type to search_fs().
34003
25f9a05a 34004 * include/grub/util/console.h: New file.
34005 * util/console.c: Use it instead of grub/machine/console.h.
34006 * util/grub-emu.c: Likewise.
34007
8279cade 34008 * lib/arg.c (find_long_option): Remove.
34009 (find_long): Add `len' argument, make `s' const char *.
34010 (grub_arg_parse): Parse long options in place, not in a
34011 temporary buffer.
34012
4a11b60f 340132009-07-06 Pavel Roskin <proski@gnu.org>
34014
99f68041 34015 * commands/search.c (search_fs): Fix potential NULL pointer
34016 dereference.
34017
4a11b60f 34018 * commands/search.c (search_fs): Replace QUID macro with quid_fn
34019 function pointer.
34020
e110f4de 340212009-07-06 Daniel Mierswa <impulze@impulze.org>
34022
34023 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
34024 comparison.
34025
46eeb6a2 340262009-07-05 Pavel Roskin <proski@gnu.org>
34027
bab74958 34028 * include/grub/i386/linux.h (struct linux_kernel_params):
34029 Restore padding3, it's still needed.
34030
46eeb6a2 34031 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
34032 FreeBSD.
34033 * util/osdetect.lua: Likewise.
34034
b4a1dc79 340352009-07-05 Bean <bean123ch@gmail.com>
34036
34037 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
34038
34039 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
34040 (grub_lua_getenv): Likewise.
34041 (grub_lua_setenv): Likewise.
34042 (save_errno): New function.
34043 (push_result): Likewise.
34044 (grub_lua_enum_device): Likewise.
34045 (grub_lua_enum_file): Likewise.
34046 (grub_lua_file_open): Likewise.
34047 (grub_lua_file_close): Likewise.
34048 (grub_lua_file_seek): Likewise.
34049 (grub_lua_file_read): Likewise.
34050 (grub_lua_file_getline): Likewise.
34051 (grub_lua_file_getsize): Likewise.
34052 (grub_lua_file_getpos): Likewise.
34053 (grub_lua_file_eof): Likewise.
34054 (grub_lua_file_exist): Likewise.
34055 (grub_lua_add_menu): Likewise.
34056
34057 * script/lua/grub_lua.h (isupper): New inline function.
34058 (islower): Likewise.
34059 (ispunct): Likewise.
34060 (isxdigit): Likewise.
34061 (strcspn): Change to normal function.
34062 (strpbkr): New function declaration.
34063 (memchr): Likewise.
34064
34065 * script/lua/grub_main.c (scan_str): New function.
34066 (strcspn): Likewise.
34067 (strpbrk): Likewise.
34068 (memchr): Likewise.
34069
34070 * script/lua/linit.c (lualibs): Enable the string library.
34071
34072 * util/osdetect.lua: New file.
34073
2da92295 340742009-07-04 Robert Millan <rmh.grub@aybabtu.com>
34075
34076 * include/grub/i386/linux.h (struct linux_kernel_params): Add
34077 `capabilities' member.
34078
b2582ec9 340792009-07-02 Pavel Roskin <proski@gnu.org>
34080
34081 * genparttoollist.sh: Add missing newline at the end.
34082
32622956 340832009-07-01 Pavel Roskin <proski@gnu.org>
34084
87a7339e 34085 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
34086
d23af54e 34087 * util/hostdisk.c (open_device): Remove `const' from
34088 `sysctl_size', as sysctlbyname() can change it (in this case it
34089 doesn't actually happen).
34090
c94b18a9 34091 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
34092 using signed long int constants.
34093
c6cd3ef0 34094 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
34095 constant to avoid a warning on FreeBSD.
34096
0df63420 34097 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
34098 where it's needed.
34099
999577f1 34100 * Makefile.in: Install include/grub/machine symlink.
34101
6f41557f 34102 * Makefile.in: When installing symlinks, use "cp -fR", which
34103 works on FreeBSD and MacOSX.
34104 From Yves Blusseau <cl7m42e02@sneakemail.com>
34105
c8d22988 34106 * kern/dl.c (grub_dl_resolve_symbol): Make static.
34107 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
34108
1b96e952 34109 * util/misc.c: Move grub_reboot() and grub_halt() ...
34110 * util/grub-emu.c: ... here. Make main_env static.
34111 * include/grub/util/misc.h: Remove main_env.
34112
2ef0084d 34113 * kern/mm.c: Use correct format to print size_t.
34114
32622956 34115 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
34116 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
34117 * kern/powerpc/dl.c: Likewise.
34118 * kern/sparc64/dl.c: Likewise.
34119 * kern/x86_64/dl.c: Likewise.
34120
3f7f0cd0 341212009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34122
34123 Fix grub-emu build on sparc64-ieee1275.
34124
75421ca9 34125 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 34126 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
34127
211d06b5 341282009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34129
34130 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
34131 (grub_reboot, grub_halt): New functions.
34132
34133 * util/i386/pc/misc.c: Delete. Update all users.
34134 * util/sparc64/ieee1275/misc.c: Likewise.
34135 * util/powerpc/ieee1275/misc.c: Likewise.
34136
aaf53e3c 341372009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34138
34139 * conf/i386.rmk (setjmp_mod_SOURCES)
34140 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
34141 * conf/common.rmk (setjmp_mod_SOURCES)
34142 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
34143 to use $(target_cpu).
34144 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
34145 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
34146 * conf/powerpc-ieee1275.rmk: Likewise.
34147 * conf/sparc64-ieee1275.rmk: Likewise.
34148
34149 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
34150 $(target_cpu) for kern/$(target_cpu)/dl.c.
34151 * conf/i386-efi.rmk: Likewise.
34152 * conf/i386-ieee1275.rmk: Likewise.
34153 * conf/x86_64-efi.rmk: Likewise.
34154 * conf/i386-coreboot.rmk: Likewise.
34155 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
34156 $(target_cpu) for kern/$(target_cpu)/dl.c and for
34157 kern/$(target_cpu)/cache.S.
34158 * conf/sparc64-ieee1275.rmk: Likewise.
34159
a337130b 341602009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34161
34162 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
34163 type to `grub_uint8_t', and adjust `padding9' accordingly.
34164
c6fe4d53 341652009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34166
b09db61d 34167 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
34168
c6fe4d53 34169 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
34170 assembly in final jump, using register constraints.
34171
b09db61d 34172 (grub_linux_boot): For text mode, initialize `have_vga' using
34173 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
34174
34175 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
34176 right before the final jump.
34177
34178 Set `video_mode' to 0x3.
34179
34180 Document initialization of `video_page', `video_mode' and
34181 `video_ega_bx'.
34182
28333ad0 341832009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34184
34185 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
34186 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 34187 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 34188
02164e1b 341892009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34190
34191 Fix build on Debian / sparc.
34192
34193 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
34194
18b6c557 341952009-06-28 Pavel Roskin <proski@gnu.org>
34196
85f2aab6 34197 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
34198 fix a warning.
34199
18b6c557 34200 * util/grub.d/10_linux.in: Match SUSE style initrd names.
34201
ad760f81 342022009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34203
34204 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
34205 `err'.
34206
87a4623b 342072009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34208
34209 Revert r2338.
34210
34211 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
34212 file can't be opened. grub_file_open() is already supposed to set
75421ca9 34213 grub_errno / grub_errmsg appropriately.
87a4623b 34214 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34215
8231fb77 342162009-06-27 Pavel Roskin <proski@gnu.org>
342172009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34218
34219 * include/grub/dl.h: Include grub/elf.h.
34220 (struct grub_dl): Add symtab field.
34221 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
34222 GRUB_MODULES_MACHINE_READONLY.
34223 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
34224 of the header for read-only modules.
34225 (grub_dl_unload): Free mod->symtab for read-only modules.
34226 * kern/i386/dl.c: Use mod->symtab.
34227 * kern/powerpc/dl.c: Likewise.
34228 * kern/sparc64/dl.c: Likewise.
34229 * kern/x86_64/dl.c: Likewise.
34230
34231 * conf/i386-qemu.rmk: New file.
34232 * kern/i386/qemu/startup.S: Likewise.
34233 * kern/i386/qemu/mmap.c: Likewise.
34234 * boot/i386/qemu/boot.S: Likewise.
34235 * include/grub/i386/qemu/time.h: Likewise.
34236 * include/grub/i386/qemu/serial.h: Likewise.
34237 * include/grub/i386/qemu/kernel.h: Likewise.
34238 * include/grub/i386/qemu/console.h: Likewise.
34239 * include/grub/i386/qemu/boot.h: Likewise.
34240 * include/grub/i386/qemu/init.h: Likewise.
34241 * include/grub/i386/qemu/machine.h: Likewise.
34242 * include/grub/i386/qemu/loader.h: Likewise.
34243 * include/grub/i386/qemu/memory.h: Likewise.
34244
34245 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
34246 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
34247 [qemu] (pkglib_IMAGES): Add `boot.img'.
34248 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
34249 [qemu] (boot_img_FORMAT): New variables.
34250 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
34251 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
34252 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
34253 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
34254 [qemu] (kernel_img_FORMAT): New variables.
34255
34256 * configure.ac: Recognise `i386-qemu'.
34257
34258 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
34259 (for no compression).
34260 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
34261 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
34262 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
34263 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
34264 ifdefs).
34265
97fe384e 342662009-06-27 Pavel Roskin <proski@gnu.org>
34267
34268 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
34269 read.
34270 * efiemu/prepare32.c: Likewise.
34271 * efiemu/prepare64.c: Likewise.
34272
c402ab17 342732009-06-26 Pavel Roskin <proski@gnu.org>
34274
34275 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
34276 * include/grub/elf.h: Define symbols without "32" or "64" based
34277 on GRUB_TARGET_WORDSIZE.
34278 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
34279 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
34280 ELF definitions.
34281 * efiemu/loadcore64.c: Likewise.
34282 * loader/i386/bsd32.c: Likewise.
34283 * loader/i386/bsd64.c: Likewise.
34284 * kern/dl.c: Remove own ELF definitions.
34285 * util/i386/efi/grub-mkimage.c: Likewise.
34286
9bbdfd4d 342872009-06-23 Robert Millan <rmh.grub@aybabtu.com>
34288
34289 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
34290 segment 0x0 unconditionally, because the reference generated by
34291 GAS is an absolute address.
34292
a42ce6e9 342932009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34294
34295 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
34296 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
34297
c952cf92 342982009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34299
34300 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
34301 indexes. Check for -f explicitly.
cc3752ad 34302 (search_file): Improve error message.
34303 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 34304
132a0a59 343052009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34306
34307 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
34308 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
34309
387a140c 343102009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34311
34312 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
34313 * conf/i386-ieee1275.rmk: Likewise.
34314 * conf/i386-coreboot.rmk: Likewise.
34315
34316 * kern/i386/pc/startup.S (grub_stop): Remove function.
34317 * kern/i386/ieee1275/startup.S: Likewise.
34318 * kern/i386/coreboot/startup.S: Likewise.
34319 * kern/i386/misc.S (grub_stop): New function.
34320
41da9665 343212009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34322
34323 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
34324 * kern/i386/realmode.S (real_to_prot): ... to here.
34325
bf337234 343262009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34327
34328 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
34329 with `kernel.img'.
34330 (kernel_elf_SOURCES): Rename to ...
34331 (kernel_img_SOURCES): ... this.
34332 (kernel_elf_HEADERS): Rename to ...
34333 (kernel_img_HEADERS): ... this. Update all users.
34334 (kernel_elf_ASFLAGS): Rename to ...
34335 (kernel_img_ASFLAGS): ... this.
34336 (kernel_elf_CFLAGS): Rename to ...
34337 (kernel_img_CFLAGS): ... this.
34338 (kernel_elf_LDFLAGS): Rename to ...
34339 (kernel_img_LDFLAGS): ... this.
34340 * conf/i386-coreboot.rmk: Likewise.
34341 * conf/powerpc-ieee1275.rmk: Likewise.
34342
34343 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
34344 with "kernel.img".
34345
f52196ff 343462009-06-21 Pavel Roskin <proski@gnu.org>
34347
c3cee413 34348 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
34349 to match nested functions.
34350 * loader/sparc64/ieee1275/linux.c: Likewise.
34351
f52196ff 34352 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
34353
58750afc 343542009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34355
34356 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
34357 all i386 platforms.
34358
15355c7d 343592009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34360
34361 Fix asm file handling on ELF, and remove workarounds.
34362
34363 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 34364 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 34365 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
34366 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
34367
3f3ec72b 343682009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
34369
34370 Load BSD ELF modules
34371
34372 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
34373 and loader/i386/bsd64.c
34374 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
34375 (FREEBSD_MODTYPE_ELF_MODULE): New definition
34376 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
34377 (grub_freebsd_load_elfmodule32): New declaration
34378 (grub_freebsd_load_elfmoduleobj64): Likewise
34379 (grub_freebsd_load_elf_meta32): Likewise
34380 (grub_freebsd_load_elf_meta64): Likewise
34381 (grub_freebsd_add_meta): Likewise
34382 (grub_freebsd_add_meta_module): Likewise
34383 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
34384 (grub_freebsd_add_meta_module): Likewise and move module-specific
34385 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
34386 (grub_cmd_freebsd): Add elf-kernel specific parts
34387 based on grub_freebsd_add_meta_module
34388 (grub_cmd_freebsd_module): Add type parsing moved from
34389 grub_freebsd_add_meta_module
34390 (grub_cmd_freebsd_module_elf): New function
34391 (cmd_freebsd_module_elf): New variable
34392 (GRUB_MOD_INIT): Register freebsd_module_elf
34393 * loader/i386/bsd32.c: New file
34394 * loader/i386/bsd64.c: Likewise
34395 * loader/i386/bsdXX.c: Likewise
34396 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
34397 (grub_elf64_load): Likewise
34398 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
34399 All users updated
34400 (grub_elf64_load_hook_t): Likewise
34401
0db15301 344022009-06-21 Colin Watson <cjwatson@ubuntu.com>
34403
34404 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
34405 variable.
34406 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
34407 don't write a menu entry for recovery mode.
34408
546796c1 344092009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34410
34411 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
34412 after it's no longer needed.
34413
cd7310d5 344142009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34415
34416 * include/grub/i386/loader.h (grub_linux_prot_size)
34417 (grub_linux_tmp_addr, grub_linux_real_addr)
34418 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
34419 GRUB_MACHINE_PCBIOS.
34420 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
34421 common grub_util_info() call to ...
34422 (generate_image): ... here.
34423 Fix use of uninitialized memory, comparison of signed with
34424 unsigned integers and memory leak.
34425 Remove bogus module address message.
34426
ab32d3b5 344272009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
34428
34429 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
34430 grub_raid_register
34431 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
34432
024ef597 344332009-06-19 Pavel Roskin <proski@gnu.org>
34434
34435 * configure.ac: Remove stray AC_MSG_CHECKING.
34436
3ac72b51 344372009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
34438
34439 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 34440
e14cd814 344412009-06-18 Pavel Roskin <proski@gnu.org>
34442
34443 * conf/common.rmk: Add fs_file.mod.
34444 * disk/fs_file.c: New file.
34445 * include/grub/disk.h (enum grub_disk_dev_id): Add
34446 GRUB_DISK_DEVICE_FILE_ID.
34447
26586d98 344482009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34449
34450 Fix build with Apple's toolchain. Part 2
34451
34452 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
34453 a fake start
34454
26de2bcd 344552009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34456
34457 Fix build with Apple's toolchain. Part 1
34458
34459 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
34460 for long calls
34461 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 34462 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 34463 Apple's toolchain
34464
09b3490b 344652009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34466
34467 Fix warnings
34468
34469 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
34470 (decomp_block): initialize ch
34471 use grub_memcpy instead of memcpy
34472
c22a006a 344732009-06-17 Pavel Roskin <proski@gnu.org>
34474
d3638678 34475 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
34476 version, use declarations needed to use vga_text as the startup
34477 console.
34478
c22a006a 34479 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
34480 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
34481 the kernel.
34482 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
34483 and grub_at_keyboard_fini(), it's done on module load and
34484 unload.
34485
05b129e0 344862009-06-17 Felix Zielcke <fzielcke@z-51.de>
34487
34488 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
34489 file can't be found.
34490 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34491
cf24ed9e 344922009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34493
34494 Fix newline handling
34495
34496 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 34497 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 34498 (grub_script_yylex): don't segfault on unterminated script
34499 newline terminates command and variable
34500
74aa8e4b 345012009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34502
34503 avoid double grub_adjust_range call. Bug reported by David Simner
34504
34505 * kern/disk.c (grub_disk_write): change to raw disk access before
34506 calling disk_read
34507
1bd265f3 345082009-06-17 Colin Watson <cjwatson@ubuntu.com>
34509
34510 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
34511 spaces, for the benefit of help2man.
34512 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34513
a2d08c06 345142009-06-16 Pavel Roskin <proski@gnu.org>
34515
34516 * kern/i386/halt.c: Include grub/machine/init.h.
34517 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
34518
b97bcb19 345192009-06-16 Felix Zielcke <fzielcke@z-51.de>
34520
34521 * util/grub.d/30_os-prober.in: Use ${root} in the generated
34522 drivemap menuentry.
34523
0644f96c 345242009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
34525
34526 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
34527 `echo' command.
34528
3ef17a2e 345292009-06-16 Pavel Roskin <proski@gnu.org>
34530
34531 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
34532 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
34533 save %dx, we only need %dl and we never change it.
34534 * boot/i386/pc/cdboot.S: Don't set the root drive.
34535 * boot/i386/pc/pxeboot.S: Likewise.
34536 * include/grub/i386/pc/boot.h: Remove
34537 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
34538 GRUB_BOOT_MACHINE_DRIVE_CHECK.
34539 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
34540 * kern/i386/pc/init.c (make_install_device): Remove references
34541 to grub_root_drive.
34542 * kern/i386/pc/startup.S: Likewise.
34543 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
34544
693fe637 345452009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34546
34547 xnu_uuid command
34548
34549 * commands/xnu_uuid.c: new file
34550 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
34551 (xnu_uuid_mod_SOURCES): new variable
34552 (xnu_uuid_mod_CFLAGS): likewise
34553 (xnu_uuid_mod_LDFLAGS): likewise
34554 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34555 * conf/i386-ieee1275.rmk: likewise
34556 * conf/i386-pc.rmk: likewise
34557 * conf/powerpc-ieee1275.rmk: likewise
34558 * conf/sparc64-ieee1275.rmk: likewise
34559 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
34560
c9da87d0 345612009-06-16 Pavel Roskin <proski@gnu.org>
34562
34563 * configure.ac: Avoid '==' in test command, it's not portable.
34564
9c6f4596 345652009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34566
34567 Probe command
34568
34569 * commands/probe.c: new file
34570 * conf/common.rmk (pkglib_MODULES): add probe.mod
34571 (probe_mod_SOURCES): new variable
34572 (probe_mod_CFLAGS): likewise
34573 (probe_mod_LDFLAGS): likewise
34574 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34575 * conf/i386-ieee1275.rmk: likewise
34576 * conf/i386-pc.rmk: likewise
34577 * conf/powerpc-ieee1275.rmk: likewise
34578 * conf/sparc64-ieee1275.rmk: likewise
34579
70b7f9fd 345802009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34581
34582 Fix handling of string like \"hello\" and "a
34583 b"
34584
34585 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34586 (grub_script_yylex): fix parsing of quoting, escaping and newline
34587
71c79a6b 345882009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34589
dd74360c 34590 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 34591 handling
dd74360c 34592
0644f96c 345932009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 34594
34595 * util/grub-mkconfig.in: Fix parsing of --output option.
34596
e40893c3 345972009-06-12 Pavel Roskin <proski@gnu.org>
34598
34599 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34600 genmk.rb don't need to be generated or installed.
34601
3a1acfe2 346022009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34603
34604 * commands/i386/pc/drivemap_int13h.S: add more comments
34605
3a4575d4 346062009-06-11 Pavel Roskin <proski@gnu.org>
34607
0658e928 34608 * Makefile.in (uninstall): Uninstall manuals.
34609
ca0388f0 34610 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34611 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34612 and update-grub_lib in two places.
34613 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34614
e3b27c39 34615 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34616 a compiler warning.
34617
3a4575d4 34618 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34619 `entry_lo' to fix variable shadowing.
34620
af1f4f55 346212009-06-11 Christian Franke <franke@computer.org>
34622
34623 * kern/misc.c (__enable_execute_stack): Add missing return type
34624 to prevent gcc warning.
34625
5225e649 346262009-06-11 Felix Zielcke <fzielcke@z-51.de>
34627
34628 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34629
7d83bd47 346302009-06-11 Pavel Roskin <proski@gnu.org>
34631
c1cb63ba 34632 * Makefile.in: Don't rely on any scripts being executable.
34633 Always use $(SHELL) to run shell scripts.
34634
7d83bd47 34635 * configure.ac: Always define ___main if using -nostdlib. This
34636 fixes tests on Cygwin.
34637
948f48e7 346382009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34639
34640 UDF fix
34641
7d83bd47 34642 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 34643 is in bytes and not in blocks
7d83bd47 34644
8ada9bc1 346452009-06-11 Pavel Roskin <proski@gnu.org>
34646
34647 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34648 warning.
34649
25ad2323 346502009-06-11 Felix Zielcke <fzielcke@z-51.de>
34651
34652 * util/grub.d/30_os-prober.in: Fix a comment. Source
34653 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34654 to set the root device. Place drivemap command in the generated
34655 chain entry.
34656
e65acb0c 346572009-06-11 Pavel Roskin <proski@gnu.org>
34658
34659 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34660 have long been resolved.
34661
f285fe2d 346622009-06-11 Colin Watson <cjwatson@ubuntu.com>
34663
bd47b0b5 34664 * util/grub.d/10_linux.in: Capitalise "Linux".
34665
f285fe2d 34666 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34667
a0c62e4e 346682009-06-11 Pavel Roskin <proski@gnu.org>
34669
b6783cb2 34670 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34671 fix a gcc warning and ensure that the function won't ever exit.
34672
dde032e8 34673 * kern/i386/ieee1275/init.c: Add missing prototype for
34674 grub_stop_floppy().
34675
22cd079d 34676 * loader/ieee1275/multiboot2.c [__i386__]: Include
34677 grub/cpu/multiboot.h.
34678
a0c62e4e 34679 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34680 casts to short - they are not portable and cause warnings. Fix
34681 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34682
63963d17 346832009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34684
34685 Drivemap fixes
34686
34687 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34688 new function
34689 (grub_get_root_biosnumber_saved): new variable
34690 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34691 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 34692 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 34693 %dx after the call if necessary
34694 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34695 (boot_mod_SOURCES): remove
34696 (boot_mod_CFLAGS): remove
34697 (boot_mod_LDFLAGS): remove
34698 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34699 (boot_mod_SOURCES): new variable
34700 (boot_mod_CFLAGS): likewise
34701 (boot_mod_LDFLAGS): likewise
34702 * conf/i386-efi.rmk: likewise
34703 * conf/i386-ieee1275.rmk: likewise
34704 * conf/i386-pc.rmk: likewise
34705 * conf/powerpc-ieee1275.rmk: likewise
34706 * conf/sparc64-ieee1275.rmk: likewise
34707 * conf/x86_64-efi.rmk: likewise
34708 * include/grub/i386/pc/biosnum.h: new file
34709 * lib/i386/pc/biosnum.c: likewise
34710 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34711 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34712 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 34713
33abf7ae 347142009-06-10 Pavel Roskin <proski@gnu.org>
34715
5ac35b35 34716 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34717 Use separate variables. Read only the file size at the end, but
34718 not the checksum that we don't use.
34719
5c5215d5 34720 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34721 Adjust all callers.
34722
27d5fef7 34723 * kern/ieee1275/openfw.c: Remove libc includes.
34724 * kern/ieee1275/cmain.c: Likewise.
34725 * include/grub/ieee1275/ieee1275.h: Likewise.
34726
33abf7ae 34727 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34728 compiler warnings.
34729
19d50c2b 347302009-06-10 Felix Zielcke <fzielcke@z-51.de>
34731
34732 * Makefile.in: Remove all trailing whitespace.
34733 * conf/i386-pc.rmk: Likewise.
34734 * conf/powerpc-ieee1275.rmk: Likewise.
34735 * conf/sparc64-ieee1275.rmk: Likewise.
34736 * docs/grub.texi: Likewise.
34737 * docs/texinfo.tex: Likewise.
34738 * disk/fs_uuid.c: Likewise.
34739 * disk/lvm.c: Likewise.
34740 * disk/scsi.c: Likewise.
34741 * disk/ata.c: Likewise.
34742 * disk/ieee1275/ofdisk.c: Likewise.
34743 * disk/i386/pc/biosdisk.c: Likewise.
34744 * disk/host.c: Likewise.
34745 * disk/raid.c: Likewise.
34746 * disk/efi/efidisk.c: Likewise.
34747 * disk/usbms.c: Likewise.
34748 * disk/memdisk.c: Likewise.
34749 * disk/loopback.c: Likewise.
34750 * kern/powerpc/dl.c: Likewise.
34751 * kern/device.c: Likewise.
34752 * kern/dl.c: Likewise.
34753 * kern/sparc64/dl.c: Likewise.
34754 * kern/ieee1275/ieee1275.c: Likewise.
34755 * kern/term.c: Likewise.
34756 * kern/fs.c: Likewise.
34757 * kern/i386/dl.c: Likewise.
34758 * kern/i386/pc/startup.S: Likewise.
34759 * kern/i386/pc/init.c: Likewise.
34760 * kern/i386/pc/mmap.c: Likewise.
34761 * kern/i386/pc/lzo1x.S: Likewise.
34762 * kern/i386/ieee1275/init.c: Likewise.
34763 * kern/i386/realmode.S: Likewise.
34764 * kern/i386/tsc.c: Likewise.
34765 * kern/partition.c: Likewise.
34766 * kern/corecmd.c: Likewise.
34767 * kern/file.c: Likewise.
34768 * kern/efi/efi.c: Likewise.
34769 * kern/efi/init.c: Likewise.
34770 * kern/efi/mm.c: Likewise.
34771 * kern/main.c: Likewise.
34772 * kern/err.c: Likewise.
34773 * kern/env.c: Likewise.
34774 * kern/disk.c: Likewise.
34775 * kern/generic/millisleep.c: Likewise.
34776 * kern/generic/rtc_get_time_ms.c: Likewise.
34777 * kern/misc.c: Likewise.
34778 * kern/parser.c: Likewise.
34779 * genmk.rb: Likewise.
34780 * configure.ac: Likewise.
34781 * boot/i386/pc/diskboot.S: Likewise.
34782 * boot/i386/pc/pxeboot.S: Likewise.
34783 * boot/i386/pc/boot.S: Likewise.
34784 * boot/i386/pc/lnxboot.S: Likewise.
34785 * boot/i386/pc/cdboot.S: Likewise.
34786 * parttool/pcpart.c: Likewise.
34787 * video/readers/tga.c: Likewise.
34788 * video/video.c: Likewise.
34789 * video/bitmap.c: Likewise.
34790 * lib/envblk.c: Likewise.
34791 * lib/i386/setjmp.S: Likewise.
34792 * fs/xfs.c: Likewise.
34793 * fs/afs.c: Likewise.
34794 * fs/fat.c: Likewise.
34795 * fs/ntfs.c: Likewise.
34796 * fs/udf.c: Likewise.
34797 * fs/affs.c: Likewise.
34798 * fs/iso9660.c: Likewise.
34799 * fs/hfs.c: Likewise.
34800 * fs/fshelp.c: Likewise.
34801 * fs/ext2.c: Likewise.
34802 * fs/jfs.c: Likewise.
34803 * fs/reiserfs.c: Likewise.
34804 * fs/hfsplus.c: Likewise.
34805 * fs/minix.c: Likewise.
34806 * fs/cpio.c: Likewise.
34807 * fs/sfs.c: Likewise.
34808 * fs/ufs.c: Likewise.
34809 * efiemu/prepare.c: Likewise.
34810 * efiemu/loadcore_common.c: Likewise.
34811 * efiemu/runtime/efiemu.sh: Likewise.
34812 * efiemu/runtime/efiemu.S: Likewise.
34813 * efiemu/runtime/efiemu.c: Likewise.
34814 * efiemu/pnvram.c: Likewise.
34815 * efiemu/main.c: Likewise.
34816 * efiemu/i386/pc/cfgtables.c: Likewise.
34817 * efiemu/i386/loadcore64.c: Likewise.
34818 * efiemu/i386/loadcore32.c: Likewise.
34819 * efiemu/loadcore.c: Likewise.
34820 * efiemu/symbols.c: Likewise.
34821 * efiemu/mm.c: Likewise.
34822 * include/grub/autoefi.h: Likewise.
34823 * include/grub/datetime.h: Likewise.
34824 * include/grub/term.h: Likewise.
34825 * include/grub/hfs.h: Likewise.
34826 * include/grub/lvm.h: Likewise.
34827 * include/grub/i386/tsc.h: Likewise.
34828 * include/grub/i386/linux.h: Likewise.
34829 * include/grub/i386/xnu.h: Likewise.
34830 * include/grub/i386/efiemu.h: Likewise.
34831 * include/grub/i386/pc/biosdisk.h: Likewise.
34832 * include/grub/i386/pc/memory.h: Likewise.
34833 * include/grub/i386/pc/vbe.h: Likewise.
34834 * include/grub/parttool.h: Likewise.
34835 * include/grub/video.h: Likewise.
34836 * include/grub/memory.h: Likewise.
34837 * include/grub/fs.h: Likewise.
34838 * include/grub/partition.h: Likewise.
34839 * include/grub/xnu.h: Likewise.
34840 * include/grub/efi/api.h: Likewise.
34841 * include/grub/efi/pe32.h: Likewise.
34842 * include/grub/efi/memory.h: Likewise.
34843 * include/grub/multiboot.h: Likewise.
34844 * include/grub/usbdesc.h: Likewise.
34845 * include/grub/multiboot2.h: Likewise.
34846 * include/grub/acpi.h: Likewise.
34847 * include/grub/efiemu/efiemu.h: Likewise.
34848 * include/grub/disk.h: Likewise.
34849 * include/grub/ieee1275/ieee1275.h: Likewise.
34850 * include/grub/net.h: Likewise.
34851 * include/grub/machoload.h: Likewise.
34852 * include/grub/macho.h: Likewise.
34853 * include/multiboot.h: Likewise.
34854 * genmoddep.awk: Likewise.
34855 * normal/main.c: Likewise.
34856 * normal/menu_entry.c: Likewise.
34857 * normal/menu_viewer.c: Likewise.
34858 * normal/completion.c: Likewise.
34859 * normal/cmdline.c: Likewise.
34860 * normal/misc.c: Likewise.
34861 * normal/datetime.c: Likewise.
34862 * bus/usb/usbtrans.c: Likewise.
34863 * bus/usb/ohci.c: Likewise.
34864 * bus/usb/uhci.c: Likewise.
34865 * bus/usb/usb.c: Likewise.
34866 * mmap/efi/mmap.c: Likewise.
34867 * mmap/i386/pc/mmap_helper.S: Likewise.
34868 * mmap/i386/pc/mmap.c: Likewise.
34869 * mmap/i386/mmap.c: Likewise.
34870 * mmap/i386/uppermem.c: Likewise.
34871 * mmap/mmap.c: Likewise.
34872 * commands/acpi.c: Likewise.
34873 * commands/echo.c: Likewise.
34874 * commands/blocklist.c: Likewise.
34875 * commands/loadenv.c: Likewise.
34876 * commands/usbtest.c: Likewise.
34877 * commands/boot.c: Likewise.
34878 * commands/parttool.c: Likewise.
34879 * commands/search.c: Likewise.
34880 * commands/cat.c: Likewise.
34881 * commands/i386/pc/play.c: Likewise.
34882 * commands/i386/pc/drivemap.c: Likewise.
34883 * commands/i386/pc/vbeinfo.c: Likewise.
34884 * commands/i386/pc/acpi.c: Likewise.
34885 * commands/i386/pc/vbetest.c: Likewise.
34886 * commands/ls.c: Likewise.
34887 * commands/cmp.c: Likewise.
34888 * commands/test.c: Likewise.
34889 * commands/efi/acpi.c: Likewise.
34890 * commands/gptsync.c: Likewise.
34891 * commands/help.c: Likewise.
34892 * partmap/amiga.c: Likewise.
34893 * partmap/apple.c: Likewise.
34894 * partmap/acorn.c: Likewise.
34895 * partmap/pc.c: Likewise.
34896 * partmap/sun.c: Likewise.
34897 * partmap/gpt.c: Likewise.
34898 * script/sh/lexer.c: Likewise.
34899 * script/sh/function.c: Likewise.
34900 * font/font.c: Likewise.
34901 * font/font_cmd.c: Likewise.
34902 * loader/powerpc/ieee1275/linux.c: Likewise.
34903 * loader/efi/chainloader.c: Likewise.
34904 * loader/multiboot_loader.c: Likewise.
34905 * loader/macho.c: Likewise.
34906 * loader/i386/multiboot.c: Likewise.
34907 * loader/i386/linux.c: Likewise.
34908 * loader/i386/pc/linux.c: Likewise.
34909 * loader/i386/pc/multiboot2.c: Likewise.
34910 * loader/i386/pc/chainloader.c: Likewise.
34911 * loader/i386/pc/xnu.c: Likewise.
34912 * loader/i386/bsd_trampoline.S: Likewise.
34913 * loader/i386/efi/linux.c: Likewise.
34914 * loader/i386/multiboot_elfxx.c: Likewise.
34915 * loader/i386/bsd_helper.S: Likewise.
34916 * loader/i386/bsd.c: Likewise.
34917 * loader/i386/linux_trampoline.S: Likewise.
34918 * loader/i386/xnu_helper.S: Likewise.
34919 * loader/i386/xnu.c: Likewise.
34920 * loader/i386/bsd_pagetable.c: Likewise.
34921 * loader/i386/multiboot_helper.S: Likewise.
34922 * loader/xnu.c: Likewise.
34923 * loader/xnu_resume.c: Likewise.
34924 * io/gzio.c: Likewise.
34925 * term/efi/console.c: Likewise.
34926 * term/terminfo.c: Likewise.
34927 * term/ieee1275/ofconsole.c: Likewise.
34928 * term/i386/pc/serial.c: Likewise.
34929 * term/i386/pc/vesafb.c: Likewise.
34930 * term/i386/pc/vga.c: Likewise.
34931 * term/usb_keyboard.c: Likewise.
34932 * term/gfxterm.c: Likewise.
34933 * aclocal.m4: Likewise.
34934 * util/lvm.c: Likewise.
34935 * util/grub.d/30_os-prober.in: Likewise.
34936 * util/grub.d/10_hurd.in: Likewise.
34937 * util/console.c: Likewise.
34938 * util/grub-macho2img.c: Likewise.
34939 * util/grub-probe.c: Likewise.
34940 * util/hostfs.c: Likewise.
34941 * util/i386/pc/grub-mkimage.c: Likewise.
34942 * util/i386/pc/grub-setup.c: Likewise.
34943 * util/i386/efi/grub-mkimage.c: Likewise.
34944 * util/grub-mkconfig.in: Likewise.
34945 * util/raid.c: Likewise.
34946 * util/resolve.c: Likewise.
34947 * util/grub-mkdevicemap.c: Likewise.
34948 * util/grub-emu.c: Likewise.
34949 * util/getroot.c: Likewise.
34950 * util/hostdisk.c: Likewise.
34951 * util/usb.c: Likewise.
34952 * util/grub-editenv.c: Likewise.
34953 * util/misc.c: Likewise.
34954
d2d49665 349552009-06-10 Felix Zielcke <fzielcke@z-51.de>
34956
34957 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34958 `genparttoollist.sh'.
34959 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34960 Add `*.sh' to the list find searches for and change `mdate.sh'
34961 to `mdate-sh'.
34962
fe052e37 349632009-06-10 Pavel Roskin <proski@gnu.org>
34964
2763ac18 34965 * include/grub/multiboot2.h: Provide compatibility defines for
34966 multiboot2.h.
34967 * include/multiboot2.h: Include stdint.h only if needed, using
34968 angle brackets.
34969 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34970 grub/multiboot2.h.
34971 * loader/ieee1275/multiboot2.c: Likewise.
34972 * loader/multiboot2.c: Likewise.
34973 * loader/multiboot_loader.c: Likewise.
34974
437e6adc 34975 * configure.ac: Use -nostdlib when probing for the target. It
34976 should not be required to have libc for the target.
34977
06a6836c 34978 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34979 they fail without libc headers for the target.
34980 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34981 exports.
34982 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34983 preprocessor conditionals.
34984
fe052e37 34985 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34986 build system doesn't need to be aware of the tar.c internals.
34987
afd22553 349882009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 34989
afd22553 34990 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 34991
6b787c4f 349922009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34993
34994 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34995 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34996
349972009-06-09 Felix Zielcke <fzielcke@z-51.de>
34998
34999 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 35000 aren't available if ata.mod gets used.
6b787c4f 35001
473d1e45 350022009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 35003
473d1e45 35004 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 35005 initialising controller.
473d1e45 35006 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 35007
255a27d4 350082009-06-08 Felix Zielcke <fzielcke@z-51.de>
35009
35010 * util/i386/pc/grub-install.in: Add a parameter --disk-module
35011 to choose between ata and biosdisk module on i386-pc.
35012
473d1e45 350132009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 35014
d55842d8 35015 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
35016 Subclass and Programming Interface fields in terms of the 3 byte
35017 Class Code register.
35018 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
35019
fa5db0b1 35020 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
35021 interface is OHCI. Add grub_dprintf for symmetry with
35022 bus/usb/uhci.c.
35023 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
35024 interface is UHCI. Add interf variable for programming
35025 interface. Print interface with class/subclass.
35026
c0947beb 35027 * bus/usb/ohci.c: Set interf with correct field.
35028
69da8877 35029 * bus/usb/uhci.c: Remove unneeded doubled lines.
35030 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
35031 Remove whitespace inside comment.
35032
9e172e30 350332009-06-08 Robert Millan <rmh.grub@aybabtu.com>
35034
35035 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
35036 as fallback an equivalent option without depth.
35037
de65ee2b 350382009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
35039
35040 Not fail if unable to retrieve C/H/S on LBA disks
35041
473d1e45 35042 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 35043 if unable to retrieve C/H/S on LBA disks
35044
b57ea2c9 350452009-06-08 Pavel Roskin <proski@gnu.org>
35046
35047 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
35048 about aliasing.
35049
af361263 350502009-06-08 Felix Zielcke <fzielcke@z-51.de>
35051
35052 * Makefile.in (uninstall): Remove all $lib_DATA files.
35053
4c9ec6b3 350542009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
35055
35056 Bugfix: install on partitionless device
35057
35058 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
35059 is a whole disk
35060
e76fc924 350612009-06-08 Felix Zielcke <fzielcke@z-51.de>
35062
35063 * Makefile.in (uninstall): Remove all $include_DATA files.
35064
ba5a0d05 350652009-06-08 Felix Zielcke <fzielcke@z-51.de>
35066
35067 * commands/true.c: New file. Implement the true and false commands.
35068 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
35069 (true_mod_SOURCES): New variable.
35070 (true_mod_CFLAGS): Likewise.
35071 (true_mod_LDFLAGS): Likewise.
35072
c8048e32 350732009-06-05 Colin D Bennett <colin@gibibit.com>
35074
35075 Optimized font character lookup using binary search instead of linear
35076 search. Fonts now are required to have the character index ordered by
35077 code point.
35078
35079 * font/font.c (load_font_index): Verify that fonts have ordered
35080 character indices.
35081 (find_glyph): Use binary search instead of linear search to find a
35082 character in a font.
35083
408305be 350842009-06-05 Michael Scherer <misc@mandriva.org>
35085
35086 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
35087 uses case sensitive btree.
35088 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
35089 only for case insensitive filesystems.
35090
8ee1e0d9 350912009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
35092
35093 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
35094 * conf/common.rmk (search_mod_CFLAGS): likewise
35095
a9966eb1 350962009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35097
473d1e45 35098 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 35099 compensate a compiler bug
35100
9e7100fb 351012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35102
473d1e45 35103 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 35104 instead of '\b'
473d1e45 35105
ede21d71 351062009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35107
35108 Definitions for creating asm symbols with Apple's CC
35109
35110 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
35111 [APPLE_CC] (VARIABLE): likewise
35112
9dbf7653 351132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35114
35115 Disable lnxboot.img when compiled
35116 with Apple's CC
35117
35118 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
35119 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
35120 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
35121 [! APPLE_CC] (CODE_LENG): skip
35122 [! APPLE_CC] (setup_sects): likewise
35123 [! APPLE_CC]: skip filling
473d1e45 35124
e93cdc3d 351252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35126
35127 Address in trampolines based on 32-bit registers when compiled
35128 with Apple's CC
35129
473d1e45 35130 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 35131 for addresses
35132 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
35133
6c688477 351342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35135
35136 Avoid aliases when compiling with Apple's CC for PCBIOS machine
35137
35138 * kern/misc.c [APPLE_CC] (memcpy): new function
35139 [APPLE_CC] (memmove): likewise
35140 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 35141 (memcpy): define alias conditionally on !APPLE_CC
6c688477 35142 (memset): likewise
35143 (abort): likewise
35144 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
35145 APPLE_CC are defined
35146 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
35147 (grub_assert_fail): make prototype conditional
35148
e37ffc5c 351492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35150
35151 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
35152
473d1e45 35153 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
35154 grub-macho2img
e37ffc5c 35155 (CLEANFILES): add grub-macho2img
35156 (grub_macho2img_SOURCES): new variable
35157 * kern/i386/pc/startup.S (bss_start): new variable
35158 (bss_end): likewise
35159 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
35160 * util/grub-macho2img.c: new file
35161
cf00df31 351622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35163
35164 Use objconv when compiling with Apple's CC
35165
35166 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
35167 (efiemu64.o): likewise
35168 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
35169 when compiling with Apple's CC
35170 (efiemu64_s.o): likewise
35171 * configure.ac: check for objconv when compiling with Apple's CC
35172 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 35173
d119a20c 351742009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35175
35176 Define segment as well as section when compiling with
35177 Apple's CC
35178
35179 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
35180 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
35181 (efiemu_convert_pointer): likewise
35182 (efiemu_set_virtual_address_map): likewise
35183 (efiemu_convert_pointer): likewise
35184 (efiemu_getcrc32): likewise
35185 (init_crc32_table): likewise
35186 (reflect): likewise
35187 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
35188 (GRUB_MOD_DEP): likewise
473d1e45 35189
c8600122 351902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35191
35192 Allow a compilation without -mcmodel=large
35193
35194 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
35195 when compiled without -mcmodel=large
473d1e45 35196 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 35197 without -mcmodel=large
473d1e45 35198 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 35199 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 35200
e8df1d4e 352012009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35202
35203 Remove nested functions in efiemu core
35204
35205 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 35206
cc6c3ac1 352072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35208
35209 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
35210
35211 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
35212 temporary storage
473d1e45 35213 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
35214 using Apple's CC
cc6c3ac1 35215 (grub_cpu_is_tsc_supported): likewise
35216 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 35217
3e325901 352182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35219
35220 Absolute addressing through constant with Apple's cc
35221
35222 * kern/i386/pc/startup.S: Define necessary constants
35223 and address through it when using ABS with Apple's CC
35224 * boot/i386/pc/diskboot.S: likewise
35225 * boot/i386/pc/boot.S: likewise
35226 * boot/i386/pc/lnxboot.S: likewise
35227 * boot/i386/pc/cdboot.S: likewise
35228 * mmap/i386/pc/mmap_helper.S: likewise
35229 * commands/i386/pc/drivemap_int13h.S: likewise
35230
2b167a72 352312009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35232
35233 Check if compiler is apple cc
35234
35235 * Makefile.in (ASFLAGS): new variable
35236 (TARGET_ASFLAGS): likewise
35237 (TARGET_MODULE_FORMAT): likewise
35238 (TARGET_APPLE_CC): likewise
35239 (OBJCONV): likewise
35240 (TARGET_IMG_CFLAGS): likewise
35241 (TARGET_CPPFLAGS): add includedir
35242 * configure.ac: call grub_apple_cc and grub_apple_target_cc
35243 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
35244 Check for linker script only if compiler isn't Apple's CC
35245 (TARGET_MODULE_FORMAT): set
35246 (TARGET_APPLE_CC): likewise
35247 (TARGET_ASFLAGS): likewise
35248 (ASFLAGS): likewise
35249 Check for objcopy only if compiler isn't Apple's CC
35250 Check for BSS symbol only if compiler isn't Apple's CC
35251 * genmk.rb: adapt nm options if we use Apple's utils
35252 * aclocal.m4 (grub_apple_cc): new test
35253 (grub_apple_target_cc): likewise
473d1e45 35254
fb14123e 352552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35256
35257 Simplify sed expressions and improve awk
35258
35259 * Makefile.in (install-local): simplify sed expression
35260 * gencmdlist.sh: likewise
35261 * genmoddep.awk: avoid adding module as a dependency of itself
35262
5b889789 352632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35264
35265 Add missing start symbols
35266
35267 * boot/i386/pc/boot.S: add start
fb14123e 35268 * boot/i386/pc/pxeboot.S: likewise
473d1e45 35269
fd2bf2e3 352702009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35271
35272 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 35273
35274 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 35275 (relocate_addresses): consider both r_addend and value at offset
35276 (make_mods_section): zerofill modinfo and header
35277 (convert_elf): write prefix here
473d1e45 35278
5389763d 352792009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35280
35281 Use .asciz instead of .string
35282
35283 * i386/pc/diskboot.S: use .asciz instead of .string
35284 * i386/pc/boot.S: likewise
35285 * include/grub/dl.h (GRUB_MOD_DEP): likewise
35286 (GRUB_MOD_NAME): likewise
473d1e45 35287
3eb5ed4e 352882009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35289
35290 gfxpayload support
35291
35292 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
35293 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
35294 (grub_video_setup): remove
35295 (grub_video_set_mode): new prototype
35296 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
35297 (vid_mode): remove
35298 (linux_vesafb_res): compile only on PCBIOS
35299 (grub_linux_boot): support gfxpayload
35300 * loader/i386/pc/xnu.c (video_hook): new function
35301 (grub_xnu_set_video): support gfxpayload
35302 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
35303 (DEFAULT_VIDEO_HEIGHT): likewise
35304 (DEFAULT_VIDEO_FLAGS): likewise
35305 (DEFAULT_VIDEO_MODE): new definition
35306 (video_hook): new function
35307 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 35308 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 35309 loading xnu
35310 * video/video.c (grub_video_setup): removed
473d1e45 35311 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 35312 grub_video_setup
35313
4b0e1143 353142009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35315
35316 Avoid calling biosdisk in drivemap
35317
35318 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
35319 (revparse_biosdisk): likewise
35320 (list_mappings): derive name from id directly
35321 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 35322
fda6cb98 353232009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35324
35325 Script fixes
35326
35327 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
35328 (grub_lexer_param): add tokenonhold
35329 (grub_script_create_cmdline): remove cmdline. All callers updated
35330 (grub_script_function_create): make functionname
35331 grub_script_arg. All callers updated
35332 (grub_script_execute_argument_to_string): new prototype
35333 * kern/parser.c (state_transitions): reorder
35334 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 35335 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 35336 make global
35337 (grub_script_execute_cmdline): use new format
35338 * script/sh/function.c (grub_script_function_create): make functionname
35339 grub_script_arg. All callers updated
473d1e45 35340 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 35341 (grub_script_yylex): remove
35342 (grub_script_yylex2): renamed to ...
35343 (grub_script_yylex): ...renamed
35344 parse the expressions like a${b}c
35345 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
35346 (GRUB_PARSER_TOKEN_VAR): remove
35347 (GRUB_PARSER_TOKEN_NAME): likewise
35348 ("if"): declare as typeless
35349 ("while"): likewise
35350 ("function"): likewise
35351 ("else"): likewise
35352 ("then"): likewise
35353 ("fi"): likewise
35354 (text): remove
35355 (argument): likewise
35356 (script): accept empty scripts and make exit on error
35357 (arguments): use GRUB_PARSER_TOKEN_ARG
35358 (function): likewise
35359 (command): move error handling to script
35360 (menuentry): move grub_script_lexer_ref before
473d1e45 35361 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 35362 argument. All callers updated
35363
f4448a07 353642009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35365
35366 Prevent GRUB from probing floppies during boot.
35367
35368 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
35369 * commands/search.c (options): Add --no-floppy.
35370 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
35371 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
35372 --no-floppy when searching for UUIDs.
35373
2bf5885a 353742009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35375
35376 Simplify the code duplication in commands/search.c.
35377
35378 * commands/search.c (search_label, search_fs_uuid): Merge into ...
35379 (search_fs): ... this. Update all users.
35380
f6fd460a 353812009-06-03 Felix Zielcke <fzielcke@z-51.de>
35382
35383 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
35384
cbb3c83e 353852009-05-28 Pavel Roskin <proski@gnu.org>
35386
57788cfd 35387 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
35388 Remove the original symlink explicitly.
35389
cbb3c83e 35390 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
35391 just one slash. That's how grub_fshelp_find_file() does it.
35392
cd0d5e30 353932009-05-26 Pavel Roskin <proski@gnu.org>
35394
f0f8bbe2 35395 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
35396 to `str'.
35397
cd0d5e30 35398 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
35399 possibly unused.
35400
8c2cab51 354012009-05-25 Christian Franke <franke@computer.org>
35402
35403 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
35404 register.
35405 (grub_atapi_identify): Add wait after drive select.
35406 (grub_ata_identify): Do more strict status register check before
35407 calling grub_atapi_identify (). Suppress error message if status
35408 register is 0x00 after command failure. Add status register
35409 check after PIO read to avoid bogus identify due to stuck DRQ.
35410 Thanks to Pavel Roskin for testing.
35411 (grub_device_initialize): Remove unsafe status register check.
35412 Thanks to 'phcoder' for problem report and patch.
35413 Prevent sign extension in debug message.
35414
230c0ad6 354152009-05-23 Colin D Bennett <colin@gibibit.com>
35416
35417 Cleaned up `include/grub/normal.h'. Grouped prototypes by
35418 definition file, and functions defined in `normal/menu.c' have had
35419 their prototypes moved to `include/grub/menu.h' for consistency.
35420
35421 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
35422 from normal.h.
35423 (grub_menu_get_entry): Likewise.
35424 (grub_menu_get_timeout): Likewise.
35425 (grub_menu_set_timeout): Likewise.
35426 (grub_menu_execute_entry): Likewise.
35427 (grub_menu_execute_with_fallback): Likewise.
35428 (grub_menu_entry_run): Likewise.
35429
35430 * include/grub/normal.h: Re-ordered and grouped function
35431 prototypes by file that the function is defined in.
35432 (grub_menu_execute_callback): Removed; moved to menu.h.
35433 (grub_menu_get_entry): Likewise.
35434 (grub_menu_get_timeout): Likewise.
35435 (grub_menu_set_timeout): Likewise.
35436 (grub_menu_execute_entry): Likewise.
35437 (grub_menu_execute_with_fallback): Likewise.
35438 (grub_menu_entry_run): Likewise.
35439 (grub_menu_addentry): Renamed from this ...
35440 (grub_normal_add_menu_entry): ... to this.
35441
35442 * normal/main.c (grub_menu_addentry): Renamed from this ...
35443 (grub_normal_add_menu_entry): ... to this.
35444
35445 * script/sh/execute.c (grub_script_execute_menuentry): Update
35446 reference to renamed grub_menu_addentry function.
35447
861f03a5 354482009-05-23 Felix Zielcke <fzielcke@z-51.de>
35449
35450 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
35451
96b1619a 354522009-05-22 Pavel Roskin <proski@gnu.org>
35453
bf6a5fb2 35454 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
35455 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
35456 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
35457 compiling for the i386 targets, but not for the utilities.
35458
96b1619a 35459 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
35460 to grub_uint8_t.
35461 (grub_root_drive): Likewise.
35462 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
35463 remove alignment.
35464 (grub_root_drive): Change size to byte.
35465 (grub_start_addr): Remove.
35466 (grub_end_addr): Likewise.
35467 (grub_apm_bios_info): Likewise.
35468
b729776b 354692009-05-21 Felix Zielcke <fzielcke@z-51.de>
35470
35471 * normal/i386: Remove.
35472 * normal/powerpc: Likewise.
35473 * normal/sparc64: Likewise.
35474 * normal/x86_64: Likewise.
35475
0a15ce80 354762009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
35477
35478 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 35479 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 35480 * loader/i386/xnu_helper.S: Likewise
d6da58e6 35481
33db9015 354822009-05-18 Colin D Bennett <colin@gibibit.com>
35483
d6da58e6 35484 Display error messages when parsing a Lua statement fails.
35485 Previously, executing a syntactically invalid statement like
35486 ")foo" or "bar;" would silently fail.
33db9015 35487
35488 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 35489 (grub_lua_parse_line): Improved reporting of Lua parser and
35490 execution errors.
33db9015 35491
46422c89 354922009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35493
35494 Remove -Werror which causes build to fail on some systems
35495
35496 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
35497 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
35498 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 35499
22f53a96 355002009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35501
35502 trampoline for linux on 64-bit platform
35503
18f547ad 35504 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
35505 loader/i386/efi/linux_trampoline.S
35506 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 35507 declaration
d6da58e6 35508 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
35509 here
22f53a96 35510 * loader/i386/linux_trampoline.S: moved here
d6da58e6 35511 * loader/i386/efi/linux.c (allocate_pages): reserve space for
35512 trampoline
22f53a96 35513 (jumpvector): removed
35514 (grub_linux_trampoline_start): new declaration
35515 (grub_linux_trampoline_end): likewise
35516 (grub_linux_boot): use trampoline when on 64-bit platform
35517 * loader/i386/linux.c: likewise
35518
cb5a0f40 355192009-05-16 Pavel Roskin <proski@gnu.org>
35520
35521 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
35522 const to avoid a warning.
35523 (grub_lua_setenv): Likewise.
35524 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
35525 lmsg to fix a warning.
35526
334f2c28 355272009-05-16 Felix Zielcke <fzielcke@z-51.de>
35528
35529 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 35530 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35531 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
35532 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35533 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35534 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35535 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35536 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 35537
59e5d3ec 355382009-05-16 Felix Zielcke <fzielcke@z-51.de>
35539
35540 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
35541
9d87a1ba 355422009-05-16 Bean <bean123ch@gmail.com>
35543
35544 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
35545 (lua_mod_SOURCES): New variable.
35546 (lua_mod_CFLAGS): Likewise.
35547 (lua_mod_LDFLAGS): Likewise.
35548
35549 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
35550 (setjmp_mod_SOURCES): New variable.
35551 (setjmp_mod_CFLAGS): Likewise.
35552 (setjmp_LDFLAGS): Likewise.
35553
35554 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
35555 (setjmp_mod_SOURCES): New variable.
35556 (setjmp_mod_CFLAGS): Likewise.
35557 (setjmp_LDFLAGS): Likewise.
35558
35559 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35560 (setjmp_mod_SOURCES): New variable.
35561 (setjmp_mod_CFLAGS): Likewise.
35562 (setjmp_LDFLAGS): Likewise.
35563
35564 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35565 (setjmp_mod_SOURCES): New variable.
35566 (setjmp_mod_CFLAGS): Likewise.
35567 (setjmp_LDFLAGS): Likewise.
35568
35569 * normal/i386/setjmp.S: Moved from here ...
35570 * lib/i386/setjmp.S: ... Moved here
35571 * normal/x86_64/setjmp.S: Moved from here ...
35572 * lib/x86_64/setjmp.S: ... Moved here
35573 * normal/powerpc/setjmp.S: Moved from here ...
35574 * lib/powerpc/setjmp.S: ... Moved here
35575 * normal/sparc64/setjmp.S: Moved from here ...
35576 * lib/sparc64/setjmp.S: ... Moved here
35577
35578 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35579 returns_twice in mingw.
35580
35581 * script/lua/grub_lib.c: New file.
35582 * script/lua/grub_lib.h: Likewise.
35583 * script/lua/grub_lua.h: Likewise.
35584 * script/lua/grub_main.c: Likewise.
35585 * script/lua/lapi.c: Likewise.
35586 * script/lua/lapi.h: Likewise.
35587 * script/lua/lauxlib.c: Likewise.
35588 * script/lua/lauxlib.h: Likewise.
35589 * script/lua/lbaselib.c: Likewise.
35590 * script/lua/lcode.c: Likewise.
35591 * script/lua/lcode.h: Likewise.
35592 * script/lua/ldblib.c: Likewise.
35593 * script/lua/ldebug.c: Likewise.
35594 * script/lua/ldebug.h: Likewise.
35595 * script/lua/ldo.c: Likewise.
35596 * script/lua/ldo.h: Likewise.
35597 * script/lua/ldump.c: Likewise.
35598 * script/lua/lfunc.c: Likewise.
35599 * script/lua/lfunc.h: Likewise.
35600 * script/lua/lgc.c: Likewise.
35601 * script/lua/lgc.h: Likewise.
35602 * script/lua/linit.c: Likewise.
35603 * script/lua/liolib.c: Likewise.
35604 * script/lua/llex.c: Likewise.
35605 * script/lua/llex.h: Likewise.
35606 * script/lua/llimits.h: Likewise.
35607 * script/lua/lmathlib.c: Likewise.
35608 * script/lua/lmem.c: Likewise.
35609 * script/lua/lmem.h: Likewise.
35610 * script/lua/loadlib.c: Likewise.
35611 * script/lua/lobject.c: Likewise.
35612 * script/lua/lobject.h: Likewise.
35613 * script/lua/lopcodes.c: Likewise.
35614 * script/lua/lopcodes.h: Likewise.
35615 * script/lua/loslib.c: Likewise.
35616 * script/lua/lparser.c: Likewise.
35617 * script/lua/lparser.h: Likewise.
35618 * script/lua/lstate.c: Likewise.
35619 * script/lua/lstate.h: Likewise.
35620 * script/lua/lstring.c: Likewise.
35621 * script/lua/lstring.h: Likewise.
35622 * script/lua/lstrlib.c: Likewise.
35623 * script/lua/ltable.c: Likewise.
35624 * script/lua/ltable.h: Likewise.
35625 * script/lua/ltablib.c: Likewise.
35626 * script/lua/ltm.c: Likewise.
35627 * script/lua/ltm.h: Likewise.
35628 * script/lua/lua.h: Likewise.
35629 * script/lua/luaconf.h: Likewise.
35630 * script/lua/lualib.h: Likewise.
35631 * script/lua/lundump.c: Likewise.
35632 * script/lua/lundump.h: Likewise.
35633 * script/lua/lvm.c: Likewise.
35634 * script/lua/lvm.h: Likewise.
35635 * script/lua/lzio.c: Likewise.
35636 * script/lua/lzio.h: Likewise.
35637
5e898c9d 356382009-05-16 Bean <bean123ch@gmail.com>
35639
35640 * include/grub/kernel.h (grub_module_header_types): Add type
35641 OBJ_TYPE_CONFIG.
35642
35643 * kern/main.c (grub_load_config): New function.
35644 (grub_main): Call grub_load_config to read boot config.
35645
35646 * grub-mkimage (generate_image): New parameter config_path.
35647 (options): New option --config.
35648 (main): Parse --config option, and pass it to generate_image.
35649
cf353a47 356502009-05-14 Christian Franke <franke@computer.org>
35651
35652 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35653 This fixes build on Cygwin.
35654
3834887f 356552009-05-14 Pavel Roskin <proski@gnu.org>
35656
35657 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35658 jump. This saves two bytes, so the typical case of 2 swapped
35659 drives would fit 32 bytes.
35660
8090fc01 356612009-05-13 Pavel Roskin <proski@gnu.org>
35662
ac963883 35663 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35664 grub_uint32_t to avoid a warning.
35665
8090fc01 35666 * loader/i386/linux.c (allocate_pages): When assigning
35667 real_mode_mem, cast through grub_size_t to fix a warning. The
35668 code already makes sure that the value would fit a pointer.
35669 (grub_linux_setup_video): Cast render_target->data to
35670 grub_size_t to fix a warning.
35671
18f547ad 356722009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 35673
35674 * commands/i386/pc/drivemap.c: New file - implement drivemap
35675 command.
35676 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35677 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35678
6f6a8b28 356792009-05-13 Pavel Roskin <proski@gnu.org>
35680
35681 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35682 embedding_area_exists.
35683
15fbf4c4 356842009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35685
35686 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35687 it easier to understand / work with.
59978c8a 35688 Improve warning messages for cases where there's no embedding area,
35689 or when it is too small (or core.img too large).
15fbf4c4 35690
238e871f 356912009-05-13 Pavel Roskin <proski@gnu.org>
35692
0ab3a9a4 35693 * loader/i386/pc/multiboot2.c: Add necessary includes for
35694 grub_multiboot2_real_boot().
35695
a2c8c5f8 35696 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35697 PX record is always little-endian. We only need the lower 2
35698 bytes of the mode.
35699
faec96af 35700 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35701 facilitate code reuse.
35702 (grub_cpio_mount): Use "struct head", not a char buffer. This
35703 fixes a warning reported by gcc 4.4.
35704
238e871f 35705 * kernel/disk.c (grub_disk_read): Use void pointer for the
35706 buffer.
35707 (grub_disk_write): Use const void pointer for the buffer.
35708 Adjust all callers. Remove unnecessary casts.
35709
901d2f0c 357102009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35711
35712 * util/i386/pc/grub-install.in: Update copyright year.
35713
18f547ad 357142009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 35715
35716 gptsync
35717
35718 * commands/gptsync.c: new file
35719 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35720 (gptsync_mod_SOURCES): new variable
35721 (gptsync_mod_CFLAGS): likewise
35722 (gptsync_mod_LDFLAGS): likewise
18f547ad 35723 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 35724 new definition
35725 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35726 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35727 * conf/i386-ieee1275.rmk: likewise
35728 * conf/i386-pc.rmk: likewise
35729 * conf/powerpc-ieee1275.rmk: likewise
35730
b4ba690a 357312009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35732
35733 Fixed grub-emu
35734
35735 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35736 (grub_dl_ref): likewise
35737
317e1a44 357382009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35739
35740 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35741 split in two functions (one for msdos and one for gpt).
35742
041b8094 357432009-05-08 Pavel Roskin <proski@gnu.org>
35744
752473c2 35745 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35746 not modified.
35747
041b8094 35748 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35749 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35750 Initialize them with -1. Add sanity check for bad1. Eliminate
35751 nerr variable.
35752
172800ce 357532009-05-08 David S. Miller <davem@davemloft.net>
35754
35755 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35756
29aa5e81 357572009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35758
35759 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 35760 existence.
29aa5e81 35761
96613b62 357622009-05-05 Felix Zielcke <fzielcke@z-51.de>
35763
35764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 35765 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 35766
eef73c8a 357672009-05-05 David S. Miller <davem@davemloft.net>
35768
35769 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35770
119494b5 357712009-05-05 Pavel Roskin <proski@gnu.org>
35772
35773 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35774 of grub_dl_ref() and grub_dl_unref().
35775 * commands/parttool.c: Remove preprocessor conditionals around
35776 grub_dl_ref() and grub_dl_unref().
35777 * fs/affs.c: Likewise.
35778 * fs/afs.c: Likewise.
35779 * fs/cpio.c: Likewise.
35780 * fs/ext2.c: Likewise.
35781 * fs/fat.c: Likewise.
35782 * fs/hfs.c: Likewise.
35783 * fs/hfsplus.c: Likewise.
35784 * fs/iso9660.c: Likewise.
35785 * fs/jfs.c: Likewise.
35786 * fs/minix.c: Likewise.
35787 * fs/ntfs.c: Likewise.
35788 * fs/reiserfs.c: Likewise.
35789 * fs/sfs.c: Likewise.
35790 * fs/udf.c: Likewise.
35791 * fs/ufs.c: Likewise.
35792 * fs/xfs.c: Likewise.
35793 * include/grub/dl.h: Likewise.
35794 * loader/xnu.c: Likewise.
35795
de5fd76e 357962009-05-04 Pavel Roskin <proski@gnu.org>
35797
35798 * commands/acpi.c: Remove unused variable my_mod.
35799 * partmap/amiga.c: Likewise.
35800 * partmap/apple.c: Likewise.
35801 * partmap/gpt.c: Likewise.
35802 * partmap/pc.c: Likewise.
35803 * partmap/sun.c: Likewise.
35804 * term/gfxterm.c: Likewise.
35805 * term/i386/pc/vesafb.c: Likewise.
35806 * term/i386/pc/vga.c: Likewise.
35807
983598ad 358082009-05-04 David S. Miller <davem@davemloft.net>
35809
35810 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
35811 pointer args to grub_ieee1275_get_property().
35812
8aadec43 35813 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
35814
9554b15e 35815 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
35816 devices, and do not traverse down under controller nodes.
35817
67e23c90 35818 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
35819 (grub_ofdisk_open): Use it to un-escape "," characters.
35820 * kern/disk.c (find_part_sep): New.
35821 (grub_disk_open): Use it to find the first non-escaped ','
35822 character in the disk name.
35823 * util/ieee1275/devicemap.c (escape_of_path): New.
35824 (grub_util_emit_devicemap_entry): Use it.
35825 * util/sparc64/ieee1275/grub-install.in: Update script to
35826 strip partition specifiers properly by not triggering on
35827 '\' escaped ',' characters.
35828
74bfdd2f 358292009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35830
35831 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
35832 to 0x300.
35833 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
35834 resolutions.
35835 (linux_vesafb_modes): Add a lot of additional modes to the list (based
35836 on documentation from Wikipedia).
35837
4241d2b1 358382009-05-04 Pavel Roskin <proski@gnu.org>
35839
35840 * disk/ata.c: Spelling fixes.
35841 * disk/raid.c: Likewise.
35842 * disk/usbms.c: Likewise.
35843 * disk/dmraid_nvidia.c: Likewise.
35844 * kern/ieee1275/openfw.c: Likewise.
35845 * kern/ieee1275/init.c: Likewise.
35846 * kern/ieee1275/cmain.c: Likewise.
35847 * boot/i386/pc/cdboot.S: Likewise.
35848 * video/readers/png.c: Likewise.
35849 * video/i386/pc/vbe.c: Likewise.
35850 * fs/udf.c: Likewise.
35851 * fs/hfs.c: Likewise.
35852 * fs/reiserfs.c: Likewise.
35853 * efiemu/runtime/efiemu.c: Likewise.
35854 * efiemu/main.c: Likewise.
35855 * efiemu/mm.c: Likewise.
35856 * include/grub/elf.h: Likewise.
35857 * include/grub/xnu.h: Likewise.
35858 * include/grub/usbdesc.h: Likewise.
35859 * include/grub/usb.h: Likewise.
35860 * include/grub/script_sh.h: Likewise.
35861 * include/grub/lib/LzmaEnc.h: Likewise.
35862 * include/grub/efiemu/efiemu.h: Likewise.
35863 * include/grub/command.h: Likewise.
35864 * normal/menu.c: Likewise.
35865 * normal/main.c: Likewise.
35866 * normal/datetime.c: Likewise.
35867 * bus/usb/uhci.c: Likewise.
35868 * mmap/i386/uppermem.c: Likewise.
35869 * mmap/mmap.c: Likewise.
35870 * commands/acpi.c: Likewise.
35871 * commands/test.c: Likewise.
35872 * partmap/apple.c: Likewise.
35873 * font/font.c: Likewise.
35874 * loader/sparc64/ieee1275/linux.c: Likewise.
35875 * loader/macho.c: Likewise.
35876 * loader/i386/bsd_trampoline.S: Likewise.
35877 * loader/i386/bsd.c: Likewise.
35878 * loader/xnu.c: Likewise.
35879 * term/i386/pc/vesafb.c: Likewise.
35880 * term/usb_keyboard.c: Likewise.
35881 * util/resolve.c: Likewise.
35882 * util/getroot.c: Likewise.
35883
0cfc0083 358842009-05-04 Felix Zielcke <fzielcke@z-51.de>
35885
35886 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35887
7c1d00cd 358882009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35889
35890 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35891 build error.
35892
b01f0548 358932009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35894
35895 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35896 parameter only available on BIOS.
35897
ecc3eb22 358982009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35899
35900 Removed wrong semicolon in declaration
35901
35902 * grub/misc.h (grub_dprintf): remove semicolon
35903
112972a9 359042009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35905
35906 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35907 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35908 is done by grub_cmd_linux() now).
35909 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35910 restore video to text mode.
35911 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35912 indicates lack of "vga=" parameter. "vga=0" is mapped to
35913 `GRUB_LINUX_VID_MODE_NORMAL'.
35914
afd5c115 359152009-05-04 Felix Zielcke <fzielcke@z-51.de>
35916
35917 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35918 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35919 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 35920 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 35921 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35922 `grub_script.tab.c'.
35923
35924 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35925 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35926 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35927 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35928 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35929
faa517ce 35930 * Makefile.in: Remove duplicated 2008 in Copyright line.
35931
ae0c0bdc 359322009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35933
473d1e45 35934 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 35935 unconditionally.
35936 * include/grub/util/misc.h (grub_util_warn): New declaration.
35937
35938 * util/i386/pc/grub-install.in: Understand --force and pass it down
35939 to grub-setup.
35940
35941 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35942 down to setup().
35943 (setup): Improve error messages and add warnings when requested to
35944 install in odd layouts. Refuse to install using blocklists unless
35945 --force was set.
35946
18f547ad 359472009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 35948
35949 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35950
6d260daa 359512009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35952
35953 Updated copyright year
35954
35955 * fs/hfsplus.c: updated copyright year
18f547ad 35956
69f853f8 359572009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35958
35959 HFS+ UUID
35960
18f547ad 35961 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 35962 in the space previously used by unused3
35963 (grub_hfsplus_uuid): new function
35964 (grub_hfsplus_fs): added uuid field
35965
4c402e73 359662009-05-03 Pavel Roskin <proski@gnu.org>
35967
35968 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35969 suppress warnings. It's no longer needed.
35970 * disk/host.c: Likewise.
35971 * disk/ata_pthru.c: Likewise.
35972 * disk/loopback.c: Likewise.
35973 * hook/datehook.c: Likewise.
35974 * parttool/pcpart.c: Likewise.
35975 * fs/i386/pc/pxe.c: Likewise.
35976 * fs/ntfscomp.c: Likewise.
35977 * efiemu/main.c: Likewise.
35978 * mmap/mmap.c: Likewise.
35979 * commands/crc.c: Likewise.
35980 * commands/hexdump.c: Likewise.
35981 * commands/hdparm.c: Likewise.
35982 * commands/acpi.c: Likewise.
35983 * commands/echo.c: Likewise.
35984 * commands/minicmd.c: Likewise.
35985 * commands/blocklist.c: Likewise.
35986 * commands/memrw.c: Likewise.
35987 * commands/loadenv.c: Likewise.
35988 * commands/usbtest.c: Likewise.
35989 * commands/lsmmap.c: Likewise.
35990 * commands/boot.c: Likewise.
35991 * commands/parttool.c: Likewise.
35992 * commands/configfile.c: Likewise.
35993 * commands/search.c: Likewise.
35994 * commands/ieee1275/suspend.c: Likewise.
35995 * commands/cat.c: Likewise.
35996 * commands/i386/pc/pxecmd.c: Likewise.
35997 * commands/i386/pc/play.c: Likewise.
35998 * commands/i386/pc/halt.c: Likewise.
35999 * commands/i386/pc/vbeinfo.c: Likewise.
36000 * commands/i386/pc/vbetest.c: Likewise.
36001 * commands/lspci.c: Likewise.
36002 * commands/date.c: Likewise.
36003 * commands/handler.c: Likewise.
36004 * commands/ls.c: Likewise.
36005 * commands/test.c: Likewise.
36006 * commands/cmp.c: Likewise.
36007 * commands/efi/loadbios.c: Likewise.
36008 * commands/efi/fixvideo.c: Likewise.
36009 * commands/halt.c: Likewise.
36010 * commands/help.c: Likewise.
36011 * commands/reboot.c: Likewise.
36012 * hello/hello.c: Likewise.
36013 * script/sh/main.c: Likewise.
36014 * loader/xnu.c: Likewise.
36015 * term/terminfo.c: Likewise.
36016 * term/i386/pc/serial.c: Likewise.
36017 * term/usb_keyboard.c: Likewise.
36018
515b5079 360192009-05-03 David S. Miller <davem@davemloft.net>
36020
36021 * normal/menu.c: Include grub/parser.h
36022
dfc31a22 360232009-05-03 Pavel Roskin <proski@gnu.org>
36024
2fee74f1 36025 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
36026 not char*.
36027 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
36028 Suggested by Javier Martín <lordhabbit@gmail.com>
36029
dfc31a22 36030 * util/i386/pc/grub-mkrescue.in: Allow for the case when
36031 efiemu??.o doesn't exist.
36032 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
36033 copying.
36034
18f547ad 360352009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 36036
36037 FreeBSD 64-bit support
36038
18f547ad 36039 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 36040 and loader/i386/bsd_trampoline.S
36041 (bsd_mod_ASFLAGS): new variable
36042 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
36043 (FREEBSD_MODTYPE_KERNEL64): likewise
36044 (grub_bsd64_trampoline_start): likewise
36045 (grub_bsd64_trampoline_end): likewise
36046 (grub_bsd64_trampoline_selfjump): likewise
36047 (grub_bsd64_trampoline_gdt): likewise
36048 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
36049 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
36050 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
36051 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 36052 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 36053 of "attrib" member
36054 * loader/i386/bsd_pagetable.c: new file
36055 * loader/i386/bsd_trampoline.S: likewise
36056 * loader/i386/bsd.c (ALIGN_QWORD): new macro
36057 (ALIGN_VAR): likewise
36058 (entry_hi): new variable
36059 (kern_end_mdofs): likewise
36060 (is_64bit): likewise
36061 (grub_freebsd_add_meta): use ALIGN_VAR
36062 (grub_e820_mmap): new declaration
36063 (grub_freebsd_add_mmap): new function
36064 (grub_freebsd_add_meta_module): support 64 bit kernels
36065 (grub_freebsd_list_modules): use ALIGN_VAR
36066 (gdt_descriptor): new declaration
36067 (grub_freebsd_boot): support 64 bit kernels
36068 (grub_bsd_elf64_hook): new function
36069 (grub_bsd_load_elf): support elf64
36070
038c5720 360712009-05-03 Bean <bean123ch@gmail.com>
36072
36073 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
36074 after we get the result of if statement.
36075
fc45fb58 360762009-05-03 Bean <bean123ch@gmail.com>
36077
36078 * Makefile.in (enable_efiemu): New variable.
36079
36080 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
36081 set.
36082 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
36083 path.
36084 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
36085 path, add -mno-red-zone option.
36086 (efiemu64_s.o): Likewise.
36087 (efiemu64.o): Use macro $^ for source file.
36088
36089 * configure.ac (--enable-efiemu): New option.
36090
bbee0f2b 360912009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
36092
36093 xnu support
36094
36095 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
36096 (pkglib_MODULES): add xnu.mod
36097 (xnu_mod_SOURCES): new variable
36098 (xnu_mod_CFLAGS): likewise
36099 (xnu_mod_LDFLAGS): likewise
36100 (xnu_mod_ASFLAGS): likewise
36101 * conf/i386-pc.rmk: likewise
36102 * conf/x86_64-efi.rmk: likewise
7dd4a573 36103 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 36104 new declaration
36105 * include/grub/i386/macho.h: new file
36106 * include/grub/i386/xnu.h: likewise
36107 * include/grub/macho.h: likewise
36108 * include/grub/machoload.h: likewise
36109 * include/grub/x86_64/macho.h: likewise
36110 * include/grub/x86_64/xnu.h: likewise
36111 * include/grub/xnu.h: likewise
36112 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
36113 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
36114 * loader/i386/efi/xnu.c: new file
36115 * loader/i386/pc/xnu.c: likewise
36116 * loader/i386/xnu.c: likewise
36117 * loader/i386/xnu_helper.S: likewise
36118 * loader/macho.c: likewise
36119 * loader/xnu.c: likewise
36120 * loader/xnu_resume.c: likewise
36121 * util/grub-dumpdevtree: likewise
36122 * include/grub/i386/pit.h: include grub/err.h
36123 (grub_pit_wait): export
36124 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 36125
5caf964d 361262009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36127
36128 Efiemu
7dd4a573 36129
5caf964d 36130 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 36131 _linux_efi, linux_efi.
36132 new files in grub-emu
5caf964d 36133 new targets efiemu32.o and efiemu64.o
36134 * loader/linux_normal_efiemu.c: likewise
36135 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 36136 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 36137 files to copy
36138 * include/grub/autoefi.h: new file
7dd4a573 36139 * include/grub/i386/efiemu.h: likewise
5caf964d 36140 * include/grub/i386/pc/efiemu.h: likewise
36141 * include/grub/efi/api.h: add LL suffix when necessary
36142 new definitions relating to tables
36143 * include/grub/efiemu/efiemu.h: new file
36144 * include/grub/efiemu/runtime.h: likewise
36145 * efiemu/prepare.c: likewise
36146 * efiemu/loadcore_common.c: likewise
36147 * efiemu/loadcore64.c: likewise
36148 * efiemu/runtime/efiemu.sh: likewise
36149 * efiemu/runtime/efiemu.S: likewise
36150 * efiemu/runtime/efiemu.c: likewise
36151 * efiemu/runtime/config.h: likewise
36152 * efiemu/prepare32.c: likewise
36153 * efiemu/main.c: likewise
36154 * efiemu/modules/pnvram.c: likewise
36155 * efiemu/modules/i386: likewise
36156 * efiemu/modules/i386/pc: likewise
36157 * efiemu/modules/acpi.c: likewise
36158 * efiemu/i386/pc/cfgtables.c: likewise
36159 * efiemu/i386/loadcore64.c: likewise
36160 * efiemu/i386/loadcore32.c: likewise
36161 * efiemu/prepare64.c: likewise
36162 * efiemu/loadcore.c: likewise
36163 * efiemu/symbols.c: likewise
36164 * efiemu/mm.c: likewise
36165 * efiemu/loadcore32.c: likewise
7dd4a573 36166
361672009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 36168
36169 ACPI spoofing
36170
36171 * commands/acpi.c: new file
36172 * commands/i386/pc/acpi.c: likewise
36173 * commands/efi/acpi.c: likewise
36174 * include/grub/acpi.h: likewise
36175 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
36176 (acpi_mod_SOURCES): new variable
36177 (acpi_mod_CFLAGS): likewise
36178 (acpi_mod_LDFLAGS): likewise
36179 * conf/i386-efi.rmk: likewise
36180 * conf/x86_64-efi.rmk: likewise
36181
7dd4a573 361822009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 36183
36184 Missing part from mmap patch
36185
36186 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
36187 (grub_mmap_unregister)
36188 (grub_mmap_free_and_unregister): use grub_mmap_register
36189
7dd4a573 361902009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 36191
36192 Mmap services
36193
36194 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
36195 * loader/i386/linux.c (find_mmap_size): likewise
36196 (allocate_pages): likewise
36197 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
36198 (grub_fill_multiboot_mmap): likewise
36199 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
36200 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
36201 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
36202 (OPENBSD_MMAP_RESERVED): likewise
36203 * include/grub/i386/pc/memory.h: include grub/memory.h
36204 (grub_lower_mem): removed
36205 (grub_upper_mem): likewise
36206 (GRUB_MACHINE_MEMORY_ACPI): new definition
36207 (GRUB_MACHINE_MEMORY_NVS): likewise
36208 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
36209 (GRUB_MACHINE_MEMORY_HOLE): likewise
36210 (grub_machine_mmap_register): likewise
36211 (grub_machine_mmap_unregister): likewise
36212 (grub_machine_get_upper): likewise
36213 (grub_machine_get_lower): likewise
36214 (grub_machine_get_post64): likewise
36215 * include/grub/i386/efi/memory.h: new file
36216 * include/grub/x86_64/efi/memory.h: likewise
36217 * include/grub/efi/memory.h: likewise
36218 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
36219 (mmap_mod_SOURCES): new variable
36220 (mmap_mod_LDFLAGS): likewise
36221 (mmap_mod_ASFLAGS): likewise
36222 * conf/i386-coreboot.rmk: likewise
36223 * conf/i386-ieee1275.rmk: likewise
36224 * conf/i386-efi.rmk: likewise
36225 * conf/x86_64-efi.rmk: likewise
36226 * include/grub/types.h (UINT_TO_PTR): new macro
36227 (PTR_TO_UINT32): likewise
36228 (PTR_TO_UINT64): likewise
36229 * include/grub/memory.h: new file
36230 * mmap/i386/pc/mmap.c: likewise
36231 * mmap/i386/pc/mmap_helper.S: likewise
36232 * mmap/i386/uppermem.c: likewise
36233 * mmap/mmap.c: likewise
36234 * mmap/efi/mmap.c: likewise
7dd4a573 36235 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 36236 grub_upper_mem
36237 * kern/i386/pc/init.c (grub_lower_mem): removed variable
36238 (grub_upper_mem): likewise
36239 (grub_machine_init): don't use grub_upper_mem,
36240 make grub_lower_mem local
36241 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
36242 grub_mmap_iterate and grub_mmap_get_upper
36243 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
36244
d558e6b5 362452009-05-02 Bean <bean123ch@gmail.com>
36246
36247 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
36248 script/sh/parser.y.
36249 (pkglib_MODULES): Add normal.mod and sh.mod.
36250 (normal_SOURCES): New variable.
36251 (normal_mod_CFLAGS): Likewise.
36252 (normal_mod_LDFLAGS): Likewise.
36253 (sh_mod_SOURCES): Likewise.
36254 (sh_mod_CFLAGS): Likewise.
36255 (sh_mod_LDFLAGS): Likewise.
36256
36257 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
36258 script/sh/lexer.c_DEPENDENCIES.
36259 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
36260 kern/rescue_reader.c and kern/rescue_parser.c.
36261 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
36262 (grub_emu_SOURCES): Change source files.
36263 (pkglib_MODULES): Remove normal.mod.
36264 (normal_SOURCES): Removed.
36265 (normal_mod_CFLAGS): Likewise.
36266 (normal_mod_LDFLAGS): Likewise.
36267 * conf/i386-coreboot.rmk: Likewise.
36268 * conf/i386-efi.rmk: Likewise.
36269 * conf/i386-ieee1276.rmk: Likewise.
36270 * conf/powerpc-ieee1275.rmk: Likewise.
36271 * conf/sparc64-ieee1275.rmk: Likewise.
36272 * conf/x86_64-efi.rmk: Likewise.
36273
36274 * include/grub/command.h (grub_command_execute): New inline function.
36275
36276 * include/grub/menu.h (grub_menu_entry): Removed commands field.
36277
36278 * include/grub/normal.h: Remove <grub/setjmp.h>.
36279 (grub_fs_module_list): Moved to normal/autofs.c.
36280 (grub_exit_env): Removed.
36281 (grub_command_execute): Likewise.
36282 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
36283 parameter script.
36284 (read_command_list): New function declaration.
36285 (read_fs_list): Likewise.
36286
36287 * include/parser.h: Include <grub/reader.h>.
36288 (grub_parser_split_cmdline): Change type of getline parameter.
36289 (grub_parser): New structure.
36290 (grub_parser_class): New variable.
36291 (grub_parser_execute): New function declaration.
36292 (grub_register_rescue_parser): Likewise.
36293 (grub_parser_register): New inline function.
36294 (grub_parser_unregister): Likewise.
36295 (grub_parser_get_current): Likewise.
36296 (grub_parser_set_current): Likewise.
36297
36298 * include/grub/reader.h: New file.
36299 * kern/reader.c: Likewise.
36300 * kern/rescue_parser.c: Likewise.
36301 * kern/rescue_reader.c: Likewise.
36302 * normal/autofs.c: Likewise.
36303 * normal/dyncmd.c: Likewise.
36304
36305 * include/grub/rescue.h: Removed.
36306 * normal/command.h: Likewise.
36307
36308 * include/grub/script.h: Moved to ...
36309 * include/grub/script_sh.h: ... Moved here.
36310 * normal/execute.c: Moved to ...
36311 * script/sh/execute.c: ... Moved here.
36312 * normal/function.c: Moved to ...
36313 * script/sh/function.c: ... Moved here.
36314 * normal/lexer.c: Moved to ...
36315 * script/sh/lexer.c: ... Moved here.
36316 * normal/parser.y: Moved to ...
36317 * script/sh/parser.y: ... Moved here.
36318 * normal/script.c: Moved to ...
36319 * script/sh/script.c: ... Moved here.
36320
36321 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
36322 <grub/reader.h>.
36323 (grub_exit_env): Removed.
36324 (fs_module_list): Moved to normal/autofs.c.
36325 (grub_file_getline): Don't handle comment here.
36326 (free_menu): Skip removed field entry->commands.
36327 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
36328 script parameter.
36329 (read_config_file): Removed nested parameter, change getline function.
36330 (grub_enter_normal_mode): Removed.
36331 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
36332 (read_command_list): Likewise.
36333 (autoload_fs_module): Moved to normal/autofs.c.
36334 (read_fs_list): Likewise.
36335 (reader_nested): New variable.
36336 (grub_normal_execute): Run parser.sh to switch to sh parser.
36337 (grub_cmd_rescue): Removed.
36338 (cmd_normal): Removed.
36339 (grub_cmd_normal): Unregister itself at the beginning. Don't register
36340 rescue command.
36341 (grub_cmdline_run): New function.
36342 (grub_normal_reader_init): Likewise.
36343 (grub_normal_read_line): Likewise.
36344 (grub_env_write_pager): Likewise.
36345 (cmdline): New variable.
36346 (grub_normal_reader): Likewise.
36347 (GRUB_MOD_INIT): Register normal reader and set as current, register
36348 pager hook, register normal command with grub_register_command_prio,
36349 so that it won't show up in command.lst.
36350 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
36351 grub_fs_autoload_hook.
36352
36353 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
36354 (grub_menu_execute_entry): Replace grub_script_execute with
36355 grub_parser_execute, change parameter to grub_command_execute.
36356
36357 * normal/menu_text.c: Remove <grub/script.h>.
36358
36359 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
36360 and <grub/parser.h>.
36361 (run): Change editor_getline to use new parser interface. Change
36362 parameter to grub_command_execute.
36363
36364 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
36365 <grub/reader.h> and <grub/parser.h>.
36366 (grub_load_normal_mode): Execute normal command.
36367 (grub_main): Call grub_register_core_commands,
36368 grub_register_rescue_parser and grub_register_rescue_reader, use
36369 grub_reader_loop to enter input loop.
36370
7dd4a573 36371 * kern/parser.c (grub_parser_split_cmdline): Change type of
36372 getline parameter.
d558e6b5 36373 (grub_parser_class): New variable.
36374 (grub_parser_execute): New function.
36375
36376 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
36377 * loader/multiboot2.c: Likewise.
36378 * loader/sparc64/ieee1275/linux.c: Likewise.
36379
36380 * util/grub-emu.c (read_command_list): New dummy function.
36381
18db813d 363822009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36383
36384 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
36385 count to 16 for CCISS and IDA.
36386
6c67de15 363872009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36388
36389 * normal/menu_text.c (grub_wait_after_message): Print a newline
36390 after waiting for user input.
36391
36392 * loader/i386/linux.c: Include `<grub/normal.h>'.
36393 (grub_cmd_linux): Improve the error message about `ask' mode, by
36394 waiting for user input so it's not missed (we can do this, since
36395 user requested interaction).
36396
d9dc87b0 363972009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36398
36399 Added missing lst to grub-mkrescue
36400
36401 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
36402 and ${input_dir}/parttool.lst
36403
ac8a2baa 364042009-04-30 David S. Miller <davem@davemloft.net>
36405
ad22a610 36406 * util/hostdisk.c (device_is_wholedisk): New function.
36407 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
36408 zero only if device_is_wholedisk() returns true.
36409
6966215d 36410 * util/hostdisk.c (convert_system_partition_to_system_disk):
36411 Handle virtual disk devices named /dev/vdiskX as found on sparc
36412 and powerpc.
36413
ac8a2baa 36414 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
36415 lettered partition specifier is found, convert to numbered.
36416
979b4fb4 364172009-04-29 David S. Miller <davem@davemloft.net>
36418
e2bf39b2 36419 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
36420 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36421
3c64e104 36422 * normal/command.c: Add missing newline at end of file.
36423
979b4fb4 36424 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
36425 warnings.
36426 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
36427 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
36428 grub_ofdisk_read): Likewise, and deal similarly with the fact that
36429 ihandles have a 32-bit type but need to be stored in a "void *".
36430
136d9f82 364312009-04-28 Pavel Roskin <proski@gnu.org>
36432
9459c306 36433 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
36434 not disk. Adjust all dependencies.
2e08a26a 36435 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 36436 grub_disk_close().
36437
136d9f82 36438 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
36439 parent's partition, don't copy it by reference, as it gets freed
36440 on close.
36441
7dd4a573 364422009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 36443
36444 Preboot hooks support
36445
36446 * commands/boot.c (struct grub_preboot_t): new declaration
36447 (preboots_head): new variable
36448 (preboots_tail): likewise
36449 (grub_loader_register_preboot_hook): new function
36450 (grub_loader_unregister_preboot_hook): likewise
36451 (grub_loader_set): launch preboot hooks
36452 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
36453 (grub_loader_register_preboot_hook): new declaration
36454 (grub_loader_unregister_preboot_hook): likewise
36455
5af922b5 364562009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
36457
36458 Warning fix
36459
7dd4a573 36460 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 36461 calling grub_dprintf
36462
a5562c30 364632009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
36464
36465 Bug and warning fixes
36466
7dd4a573 36467 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 36468 declaration
36469 * commands/test.c (test_parse): fixed bug with file tests and corrected
36470 declaration of find_file
36471
4006f85c 364722009-04-26 Pavel Roskin <proski@gnu.org>
36473
36474 * Makefile.in: Don't install empty manual pages if help2man is
36475 missing. Use help2man option for output, not shell redirection.
36476
5c77c3de 364772009-04-26 David S. Miller <davem@davemloft.net>
36478
36479 * util/grub-mkdevicemap.c (make_device_map): Add missing
36480 NESTED_FUNC_ATTR to process_device().
36481
033b10a8 364822009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36483
36484 Test command
36485
36486 * commands/test.c: rewritten to use bash-like test
36487
e4343593 364882009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36489
36490 Parttool autoloading and improvements
36491
7dd4a573 36492 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 36493 (parttool.lst): new target
36494 * genmk.rb: generate parttool-*
36495 (CLEANFILES): add #{parttool}
36496 (PARTTOOLFILES): new variable
36497 * genparttoollist.sh: new file
7dd4a573 36498 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 36499 (grub_pcpart_type): likewise
36500 * commands/parttool.c (helpmsg): new variable
36501 (grub_cmd_parttool): output help if not enough arguments are supplied
36502 autoload modules
36503 (GRUB_MOD_INIT(parttool)): use helpmsg
36504
0d312500 365052009-04-24 David S. Miller <davem@davemloft.net>
36506
7dd4a573 36507 Avoiding opening same device multiple times in device iterator.
0d312500 36508
36509 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 36510 and use it to build a list of partitions in iterate_disk() and
0d312500 36511 iterate_partition().
36512
ac20caff 36513 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
36514 on disk->data.
36515
0dcf7495 36516 * disk/ieee1275/nand.c (grub_nand_iterate): Return
36517 grub_devalias_iterate() result instead of unconditional 0.
36518 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
36519 Also, capture hook return value, either directly or via
36520 grub_children_iterate(), and propagate to caller.
36521 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
36522 grub_children_iterate): Return value is now 'int' instead of
36523 'grub_err_t'.
36524 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
36525 like a proper iterator, stopping when hooks return non-zero.
36526 (grub_devalias_iterate): Likewise.
36527
c8c08833 365282009-04-23 David S. Miller <davem@davemloft.net>
36529
36530 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
36531
f01005a8 365322009-04-22 David S. Miller <davem@davemloft.net>
36533
36534 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
36535 is larger than address_cells, use that value for address_cells too.
36536
4e8269da 36537 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
36538 IEEE1275_MAX_PATH_LEN): Define.
36539 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
36540 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
36541 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
36542 'devtype'. Explicitly NULL terminate devalias expansion.
36543
a1447506 36544 * util/sparc64/ieee1275/misc.c: New file.
36545 * util/sparc64/ieee1275/grub-setup.c: New file.
36546 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
36547 * util/sparc64/ieee1275/grub-mkimage.c: New file.
36548 * util/sparc64/ieee1275/grub-install.in: New file.
36549 * util/ieee1275/ofpath.c: New file.
36550 * util/ieee1275/devicemap.c: New file.
36551 * util/devicemap.c: New file.
36552 * util/deviceiter.c: New file.
36553 * kern/sparc64/ieee1275/init.c: New file.
36554 * include/grub/util/ofpath.h: New file.
36555 * include/grub/util/deviceiter.h: New file.
36556 * util/grub-mkdevicemap.c: Include deviceiter.h.
36557 Implement using grub_util_emit_devicemap_entry and
36558 grub_util_iterate_devices.
36559 * conf/i386-corebook.rmk: Build util/deviceiter.c and
36560 util/devicemap.c into grub-mkdevicemap
36561 * conf/i386-efi.rmk: Likewise.
36562 * conf/i386-ieee1275.rmk: Likewise.
36563 * conf/i386-pc.rmk: Likewise.
36564 * conf/powerpc-ieee1275.rmk: Likewise.
36565 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
36566 images and installation utilities. Build kernel as image
36567 instead of as elf binary. Use common rules as much as possible.
36568
7dd4a573 365692009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 36570
36571 Correct GPT definition
36572
7dd4a573 36573 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 36574 of "attrib" member
36575
c6c5219f 365762009-04-19 Felix Zielcke <fzielcke@z-51.de>
36577
36578 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36579
0552ff9f 365802009-04-19 David S. Miller <davem@davemloft.net>
36581
36582 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36583 (grub_rescue_cmd_linux): Rename to...
36584 (grub_cmd_linux): and fix prototype.
36585 (grub_rescue_cmd_initrd): Rename to...
36586 (grub_cmd_initrd): and fix prototype.
36587 (cmd_linux, cmd_initrd): New.
36588 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36589 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36590
d1a282fc 365912009-04-17 Pavel Roskin <proski@gnu.org>
36592
07c5039f 36593 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36594 format.
36595 (grub_ohci_transfer): Likewise.
36596
b012002d 36597 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36598
1bc09c35 36599 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36600 return without a value. Fix inconsistent indentation.
36601
e0ff9126 36602 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36603 match struct grub_fs.
36604
d1a282fc 36605 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36606 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36607 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36608 * commands/lspci.c (grub_lspci_iter): Likewise.
36609
a96df3f2 366102009-04-16 Bean <bean123ch@gmail.com>
36611
36612 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36613 value.
36614
41bb0fe9 366152009-04-15 Pavel Roskin <proski@gnu.org>
36616
36617 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36618 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36619 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36620 definitions.
36621
596c6970 366222009-04-15 Felix Zielcke <fzielcke@z-51.de>
36623
36624 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 36625 that no multiple data or metadata areas are supported and `Unknown
596c6970 36626 metadata header'.
36627
7dd4a573 366282009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 36629
36630 Move loader out of the kernel
36631
36632 * kern/loader.c: moved to ...
36633 * commands/boot.c: ... moved here
36634 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36635 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36636 * include/grub/kernel.h (grub_machine_fini): export
36637 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36638 (grub_loader_set): likewise
36639 (grub_loader_unset): likewise
36640 (grub_loader_boot): likewise
36641 * conf/common.rmk: new module boot.mod
36642 (pkglib_MODULES): add boot.mod
36643 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36644 (grub_emu_SOURCES): likewise
36645 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36646 (grub_emu_SOURCES): likewise
36647 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36648 (grub_emu_SOURCES): likewise
36649 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36650 (grub_emu_SOURCES): likewise
36651 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36652 (grub_emu_SOURCES): likewise
7dd4a573 36653 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36654 (grub_emu_SOURCES): likewise
0d5d5653 36655 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 36656 (grub_emu_SOURCES): likewise
0d5d5653 36657
7dd4a573 366582009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 36659
36660 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 36661
5999d619 36662 * kern/misc.c (grub_itoa): Removed function
36663 (grub_ltoa): likewise
36664 (grub_vsprintf): use grub_lltoa
36665
7dd4a573 366662009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 36667
36668 Restore grub-emu
36669
36670 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36671 * conf/i386-coreboot.rmk: likewise
36672 * conf/i386-ieee1275.rmk: likewise
36673 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36674
20318222 366752009-04-15 Felix Zielcke <fzielcke@z-51.de>
36676
36677 * INSTALL: Add that `./autogen.sh' needs to be run before
36678 `./configure.'.
36679
d05f0df3 366802009-04-14 Bean <bean123ch@gmail.com>
36681
36682 * Makefile.in (pkglib_DATA): Add handler.lst.
36683 (handler.lst): New rule.
36684
36685 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36686 * conf/i386-coreboot.rmk: Likewise.
36687 * conf/i386-ieee1275.rmk: Likewise.
36688 * conf/i386-efi.rmk: Likewise.
36689 * conf/x86_64-efi.rmk: Likewise.
36690 * conf/powerpc-ieee1275.rmk: Likewise.
36691 * conf/sparc64-ieee1275.rmk: Likewise.
36692
36693 * genhandlerlist.sh: New file.
36694
36695 * genmk.rb: Add rules to generate handler.lst.
36696
36697 * include/grub/normal.h (grub_file_getline): New function definition.
36698 (read_handler_list): Likewise.
36699 (free_handler_list): Likewise.
36700
36701 * include/grub/term.h (grub_term_register_input): Add name parameter
36702 for auto generation of handler.lst.
36703 (grub_term_register_output): Likewise.
36704
36705 * normal/handler.c: New file.
36706
36707 * normal/main.c (get_line): Renamed to grub_file_getline.
36708 (read_config_file): Use the newly renamed grub_file_getline.
36709 (read_command_list): Likewise.
36710 (read_fs_list): Likewise.
36711 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36712 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36713
36714 * term/efi/console.c (grub_console_init): Add name parameter for auto
36715 generation of handler.lst.
36716 * term/gfxterm.c: Likewise.
36717 * term/i386/pc/at_keyboard.c: Likewise.
36718 * term/i386/pc/console.c: Likewise.
36719 * term/i386/pc/serial.c: Likewise.
36720 * term/i386/pc/vesafb.c: Likewise.
36721 * term/i386/pc/vga.c: Likewise.
36722 * term/i386/pc/vga_text.c: Likewise.
36723 * term/ieee1275/ofconsole.c: Likewise.
36724 * term/usb_keyboard.c: Likewise.
36725
33c846be 367262009-04-14 Bean <bean123ch@gmail.com>
36727
36728 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36729 properly with null character.
36730
4484e01e 367312009-04-14 Felix Zielcke <fzielcke@z-51.de>
36732
36733 * configure: Remove.
36734 * config.h.in: Likewise.
f93d668e 36735 * stamp-h.in: Likewise.
4484e01e 36736 * DISTLIST: Likewise.
36737 * conf/common.mk: Likewise.
36738 * conf/i386-coreboot.mk: Likewise.
36739 * conf/i386-efi.mk: Likewise.
36740 * conf/i386-ieee1275.mk: Likewise.
36741 * conf/i386.mk: Likewise.
36742 * conf/i386-pc.mk: Likewise.
36743 * conf/powerpc-ieee1275.mk: Likewise.
36744 * conf/sparc64-ieee1275.mk: Likewise.
36745 * conf/x86_64-efi.mk: Likewise.
36746
36747 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36748 develop on GRUB.
36749
7dd4a573 367502009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 36751 David S. Miller <davem@davemloft.net>
36752
36753 * util/hostdisk.c (make_device_name): Fix buffer length
36754 calculations.
36755
e25b5a8c 367562009-04-14 Felix Zielcke <fzielcke@z-51.de>
36757
36758 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36759 <sys/param.h> and <sys/sysctl.h>.
36760 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36761 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36762 opening the device and reset them afterwards.
36763
1f1f580c 367642009-04-13 Pavel Roskin <proski@gnu.org>
36765
36766 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36767 Reported by John Stanley <jpsinthemix@verizon.net>
36768
7ebc2d6b 367692009-04-13 Robert Millan <rmh@aybabtu.com>
36770
36771 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 36772 that name for menuentries when appropriate.
7ebc2d6b 36773
d8ba3667 367742009-04-13 Felix Zielcke <fzielcke@z-51.de>
36775
36776 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36777
cba416eb 367782009-04-13 Robert Millan <rmh@aybabtu.com>
36779
36780 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36781 to Linux, simply abort telling the user it's no longer supported.
36782
a547a745 367832009-04-13 Felix Zielcke <fzielcke@z-51.de>
36784
36785 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 36786 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 36787 `freebsd_loadenv' only when devices.hints exist.
36788
232a769c 367892009-04-13 Pavel Roskin <proski@gnu.org>
36790
36791 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
36792
c3012039 367932009-04-13 Felix Zielcke <fzielcke@z-51.de>
36794
36795 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
36796 partition number.
36797 (grub_drive): Likewise.
36798
234022fe 367992009-04-13 David S. Miller <davem@davemloft.net>
36800
36801 * kern/sparc64/ieee1275/ieee1275.c: New file.
36802 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
36803 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
36804 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
36805 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
36806 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
36807 grub_ieee1275_alloc_physmem): Declare new exported functions.
36808
d8e1836c 36809 * include/grub/sparc64/ieee1275/loader.h: New file.
36810 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36811 * include/grub/sparc64/kernel.h: Likewise.
36812 * loader/sparc64/ieee1275/linux.c: Likewise.
36813
96bd81ec 36814 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
36815 (grub_fstest_SOURCES): Likewise.
36816
6a4737e5 36817 * util/hostdisk.c (make_device_name): Do not make any assumptions
36818 about the length of drive names.
36819
1d7a72fd 36820 * kern/dl.c (grub_dl_load_file): Close file immediately when
36821 we are done using it.
36822
56bc2471 368232009-04-12 David S. Miller <davem@davemloft.net>
36824
36825 * kern/misc.c (grub_ltoa): Fix cast when handling negative
36826 values. Noticed by Pavel Roskin.
36827
df38d0bb 36828 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
36829 target compiler.
7dd4a573 36830
e382e93a 36831 * genmk.rb: Add more flexible image type specification, also
36832 pass --strip-unneeded to objcopy.
36833 * conf/i386-pc.rmk: Use *_FORMAT.
36834 * conf/i386-pc.mk: Rebuilt.
36835
f5dbbca9 36836 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
36837 (OFDISK_HASH_SZ): Define.
36838 (ofdisk_hash): New hash table.
36839 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
36840 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
36841 instead of device phandle which is not unique.
36842
91c88b12 36843 * kern/sparc64/ieee1275/init.c: Delete, replace with...
36844 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
36845 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
36846 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
36847 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
36848 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
36849 GRUB_KERNEL_MACHINE_DATA_END): Define.
36850 (grub_kernel_image_size, grub_total_module_size): Declare.
36851
5b5d4aa5 368522009-04-12 Pavel Roskin <proski@gnu.org>
36853
7dd4a573 36854 * configure.ac: Change the logic when we check for target tools.
36855 Do it when the target is specified and it's different from the
36856 specified value of the host.
5b5d4aa5 36857
c91e1793 368582009-04-11 Felix Zielcke <fzielcke@z-51.de>
36859
36860 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36861 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36862 GNU/kFreeBSD. Check if a device is a character device. Use
36863 DIOCGMEDIASIZE to get the size.
36864 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36865 support for GNU/kFreeBSD.
36866 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36867 is a character device instead of a block device. Add support for
36868 FreeBSD device names.
36869
36870 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36871 is a character device instead of a block device.
36872
36873 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36874 is a character device instead of a block device.
36875
b1ac8644 368762009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36877
36878 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36879 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36880 FreeBSD. Check if a device is a character device. Use
36881 DIOCGMEDIASIZE to get the size.
36882 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36883 support for FreeBSD.
36884 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36885 is a character device instead of a block device. Add support for
36886 FreeBSD device names.
36887
36888 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36889 a character device instead of a block device.
36890 (grub_util_check_char_device): New function.
36891
36892 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36893 a character device instead of a block device.
36894
36895 * include/grub/util/getroot.h (grub_util_check_char_device): New
36896 prototype.
36897
a3f7515a 368982009-04-11 David S. Miller <davem@davemloft.net>
36899
36900 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36901 static libgcc.
36902 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36903 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36904 function, if present.
36905 (__bswapdi2): Likewise.
36906
0d44993d 36907 * include/grub/sparc64/ieee1275/boot.h: New file.
36908 * boot/sparc64/ieee1275/boot.S: Likewise.
36909 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36910
ed3d2bc2 36911 * kern/misc.c (grub_ltoa): New function.
36912 (grub_vsprintf): Use it to format 'long' integers.
36913
d3bfb59c 369142009-04-10 David S. Miller <davem@davemloft.net>
36915
36916 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36917 slots are of type grub_ieee1275_cell_t.
36918 (grub_nand_read): Likewise.
36919 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36920 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36921 macros are used to compare values in arg/ret block of the call.
36922 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36923 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36924 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36925 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36926 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36927 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36928 grub_ieee1275_close, grub_ieee1275_set_property,
36929 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36930 grub_ieee1275_cell_t.
36931 * kern/ieee1275/openfw.c (grub_map): Likewise.
36932 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36933 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36934
450e2238 36935 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36936 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36937 (grub_devalias_iterate): Likewise.
36938
7dd4a573 369392009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 36940
36941 UFS improvements
36942
36943 * fs/ufs.c (INODE_NBLOCKS): new definition
36944 (struct grub_ufs_dirent): added fields for non-BSD dirents
36945 (grub_ufs_get_file_block): fixed double indirect handling
36946 (grub_ufs_lookup_symlink): use more robust way to determine whether
36947 symlink is inline
36948 (grub_ufs_find_file): support for non-BSD dirents
36949 (grub_ufs_dir): support for non-BSD dirents
36950
e7e6862a 369512009-04-10 Bean <bean123ch@gnail.com>
36952
36953 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36954 attribute, otherwise the size would be wrong for i386 platform.
36955
36956 * include/grub/pci.h (grub_pci_read_word): New inline function.
36957 (grub_pci_read_byte): Likewise.
36958 (grub_pci_write): Likewise.
36959 (grub_pci_write_word): Likewise.
36960 (grub_pci_write_byte): Likewise.
36961
36962 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36963
36964 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36965 (find_framebuf): Scan pci to locate the frame buffer address.
36966
36967 * commands/efi/fixvideo.c: New file.
36968
36969 * commands/efi/loadbios.c: Likewise.
36970
36971 * commands/memrw.c: Likewise.
36972
36973 * util/grub-dumpbios.in: Likewise.
36974
36975 * conf/common.rmk (grub-dumpbios): New utility.
36976 (pkglib_MODULES): New module memrw.mod.
36977 (memrw_mod_SOURCE): New macro.
36978 (memrw_mod_CFLAGS): Likewise.
36979 (memrw_mod_LDFLAGS): Likewise.
36980
7dd4a573 36981 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36982 fixvideo.mod.
36983 (loadbios_mod_SOURCE): New macro.
36984 (loadbios_mod_CFLAGS): Likewise.
36985 (loadbios_mod_LDFLAGS): Likewise.
36986 (fixvideo_mod_SOURCE): Likewise.
36987 (fixvideo_mod_CFLAGS): Likewise.
36988 (fixvideo_mod_LDFLAGS): Likewise.
36989
7dd4a573 36990 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36991 fixvideo.mod.
36992 (loadbios_mod_SOURCE): New macro.
36993 (loadbios_mod_CFLAGS): Likewise.
36994 (loadbios_mod_LDFLAGS): Likewise.
36995 (fixvideo_mod_SOURCE): Likewise.
36996 (fixvideo_mod_CFLAGS): Likewise.
36997 (fixvideo_mod_LDFLAGS): Likewise.
36998
af63ada2 369992009-04-08 Felix Zielcke <fzielcke@z-51.de>
37000
37001 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
37002
c2cdde70 370032009-04-07 David S. Miller <davem@davemloft.net>
37004
37005 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
37006 support for R_SPARC_OLO10 relocations. Fix compile warning for
37007 R_SPARC_WDISP30 case.
ea3f72cf 37008 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 37009
761319cf 370102009-04-06 Pavel Roskin <proski@gnu.org>
37011
1007d1f5 37012 * include/grub/misc.h (ARRAY_SIZE): New macro.
37013 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
37014 New macro.
37015 * loader/i386/linux.c (allocate_pages): Use free_pages().
37016 (grub_linux_unload): Don't use free_pages().
37017 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
37018 wrong index. Treat all other modes as text modes.
37019 (grub_cmd_linux): Initialize vid_mode unconditionally to
37020 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
37021
761319cf 37022 * commands/help.c (print_command_help): Use cmd->prio, not
37023 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
37024
ea761d40 370252009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 37026
ea761d40 37027 Parttool
37028
37029 * parttool/pcpart.c: new file
37030 * commands/parttool.c: likewise
37031 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
37032 (parttool_mod_SOURCES): new variable
37033 (parttool_mod_CFLAGS): likewise
37034 (parttool_mod_LDFLAGS): likewise
37035 (pcpart_mod_SOURCES): likewise
37036 (pcpart_mod_CFLAGS): likewise
37037 (pcpart_mod_LDFLAGS): likewise
7dd4a573 37038 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 37039 and parttool/pcpart.c
37040 * conf/i386-efi.rmk: likewise
37041 * conf/i386-ieee1275.rmk: likewise
37042 * conf/i386-pc.rmk: likewise
37043 * conf/powerpc-ieee1275.rmk: likewise
37044 * conf/sparc64-ieee1275.rmk: likewise
37045 * conf/x86_64-ieee1275.rmk: likewise
37046
05aaebfb 370472009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
37048
37049 Support for mtime and further expandability of dir command
37050
37051 * include/grub/lib/datetime.h: moved to ...
7dd4a573 37052 * include/grub/datetime.h: ... moved here and added
05aaebfb 37053 declaration of grub_unixtime2datetime. All users updated
7dd4a573 37054 * include/grub/fs.h: new syntax for dir and mtime functions in
37055 struct grub_fs
05aaebfb 37056 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
37057 and GRUB_FSHELP_FLAGS_MASK
37058 * commands/ls.c (grub_ls_list_files): Write mtime in long format
37059 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
37060 (grub_ext2_mtime): new function
37061 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
37062 (grub_hfsplus_mtime): new function
37063 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
37064 (GRUB_UFS_ATTR_FILE): likewise
37065 (GRUB_UFS_ATTR_LNK): likewise
37066 (struct grub_ufs_sblock): new fields mtime
37067 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
37068 all users updated
37069 (grub_ufs_dir): mtime support
37070 (grub_ufs_mtime): new function
37071 * fs/affs.c (grub_affs_dir): use new dir syntax
37072 * fs/afs.c (grub_afs_dir): likewise
37073 * fs/cpio.c (grub_cpio_dir): likewise
37074 * fs/fat.c (grub_fat_find_dir): likewise
37075 * fs/hfs.c (grub_hfs_dir): likewise
37076 * fs/iso9660.c (grub_iso9660_dir): likewise
37077 * fs/jfs.c (grub_jfs_dir): likewise
37078 * fs/minix.c (grub_minix_dir): likewise
37079 * fs/ntfs.c (grub_ntfs_dir): likewise
37080 * fs/reiserfs.c (grub_reiserfs_dir): likewise
37081 * fs/sfs.c (grub_sfs_dir): likewise
37082 * fs/xfs.c (grub_xfs_dir): likewise
37083 * util/hostfs.c (grub_hostfs_dir): likewise
37084 * lib/datetime.c: moved to ...
37085 * normal/datetime.c: ... moved here
37086 (grub_unixtime2datetime): new function
37087 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 37088 * normal/completion.c (iterate_dir): use new dir syntax
37089 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 37090 last modification time of a volume
7dd4a573 37091 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 37092 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 37093 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 37094 (normal_mod_SOURCES): likewise
37095 (datetime_mod_SOURCES): Removed lib/datetime.c
37096 * conf/i386-efi.rmk: likewise
7dd4a573 37097 * conf/i386-ieee1275.rmk: likewise
05aaebfb 37098 * conf/i386-pc.rmk: likewise
37099 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 37100 * conf/sparc64-ieee1275.rmk: likewise
37101 * conf/x86_64-efi.rmk: likewise
05aaebfb 37102
8a7e1a14 371032009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
37104
37105 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 37106
37107 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 37108 on grub_fat_find_dir
37109 (grub_fat_find_dir): use grub_fat_iterate_dir
37110 (grub_fat_label): likewise
37111
04186a9c 371122009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
37113
7dd4a573 37114 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 37115 and command.h
37116 remove extraneous kernel_elf_HEADERS
37117
da4c0bb6 371182009-04-04 Bean <bean123ch@gnail.com>
37119
37120 * include/grub/util/misc.h: Add dummy function fsync for mingw.
37121
37122 * util/misc.c: Likewise.
37123
54ad9555 371242009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37125
37126 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
37127 instead of grub_printf.
37128
7a6bf9f2 371292009-04-03 Robert Millan <rmh@aybabtu.com>
37130
37131 * loader/i386/linux.c (grub_linux_setup_video): Fill
37132 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
37133 values from `mode info' structure instead of hardcoded
37134 values.
37135
3fcc2083 371362009-04-01 Pavel Roskin <proski@gnu.org>
37137
37138 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
37139 unused now.
37140 * genmk.rb: Likewise.
37141 * configure.ac: Likewise.
37142
5ec9740b 371432009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
37144
37145 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
37146 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
37147
5270cec8 371482009-04-01 David S. Miller <davem@davemloft.net>
37149
37150 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 37151 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 37152 (grub_setjmp): Mark with 'returns_twice' attribute.
37153 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
37154 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
37155 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
37156
9c3dd854 371572009-04-01 Robert Millan <rmh@aybabtu.com>
37158
37159 Reapply fix from 2008-07-28 which was accidentally reverted; also
37160 perform the same fix to a similar check in same function.
37161
37162 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37163 with the same number are found, just use issue a warning with
37164 grub_dprintf(), as this error has been reported to be non-fatal.
37165
0d818b7e 371662009-03-31 Pavel Roskin <proski@gnu.org>
37167
37168 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
37169 for cross-compilation.
37170
95646d92 371712009-03-30 Robert Millan <rmh@aybabtu.com>
37172
37173 Fix i386-ieee1275 build.
37174
37175 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
37176 Remove declaration.
37177
6a003ed1 371782009-03-30 Pavel Roskin <proski@gnu.org>
37179
37180 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
37181 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
37182 zero-terminated, rely only on the strlen value. Fix comparison
37183 of strings differing in length.
37184
92f33540 371852009-03-30 Robert Millan <rmh@aybabtu.com>
37186
37187 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
37188 checking for abi version. Improve error messages on BIOS to notify
37189 user about `linux16' command.
37190
a8c48fd5 371912009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
37192
f968172e 37193 Leak fixes
a8c48fd5 37194
f968172e 37195 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
37196 in case of collision
37197 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 37198
9c323f09 371992009-03-29 Robert Millan <rmh@aybabtu.com>
37200
37201 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
37202 set `vid_mode' accordingly.
37203 (grub_linux_boot): Process `vid_mode' and set video mode.
37204
ae68f423 372052009-03-29 Robert Millan <rmh@aybabtu.com>
37206
37207 * util/grub.d/10_linux.in (linux_entry): New function.
37208 Factorize generation of Linux boot entries.
37209
5709cfc4 372102009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
37211
37212 Make the format of Environment Block plain text. The boot loader
37213 part is not tested well yet.
7dd4a573 37214
5709cfc4 37215 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
37216 (buffer): Removed.
37217 (envblk): Likewise.
37218 (usage): Remove "info" and "clear". Add "unset". Update the
37219 description of "set", as this does not delete variables any
37220 longer.
37221 (create_envblk_file): Complete rewrite.
37222 (open_envblk_file): Likewise.
37223 (cmd_info): Removed.
37224 (cmd_list): Likewise.
37225 (cmd_set): Likewise.
37226 (cmd_clear): Likewise.
37227 (list_variables): New function.
37228 (write_envblk): Likewise.
37229 (set_variables): Likewise.
37230 (unset_variables): Likewise.
37231 (main): Complete rewrite.
37232
37233 * commands/loadenv.c (buffer): Removed.
37234 (envblk): Likewise.
37235 (open_envblk_file): New function.
37236 (read_envblk_file): Complete rewrite.
37237 (grub_cmd_load_env): Likewise.
37238 (grub_cmd_list_env): Likewise.
37239 (struct blocklist): New struct.
37240 (free_blocklists): New function.
37241 (check_blocklists): Likewise.
37242 (write_blocklists): Likewise.
37243 (grub_cmd_save_env): Complete rewrite.
37244
37245 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
37246 a plain text signature.
37247 (GRUB_ENVBLK_MAXLEN): Removed.
37248 (struct grub_envblk): Complete rewrite.
37249 (grub_envblk_find): Removed.
37250 (grub_envblk_insert): Likewise.
37251 (grub_envblk_open): New prototype.
37252 (grub_envblk_set): Likewise.
37253 (grub_envblk_delete): Put const to VALUE.
37254 (grub_envblk_iterate): Put const to NAME and VALUE.
37255 (grub_envblk_close): New prototype.
37256 (grub_envblk_buffer): New inline function.
37257 (grub_envblk_size): Likewise.
37258
37259 * lib/envblk.c: Include grub/mm.h.
37260 (grub_env_find): Removed.
37261 (grub_envblk_open): New function.
37262 (grub_envblk_close): Likewise.
37263 (escaped_value_len): Likewise.
37264 (find_next_line): Likewise.
37265 (grub_envblk_insert): Removed.
37266 (grub_envblk_set): New function.
37267 (grub_envblk_delete): Complete rewrite.
37268 (grub_envblk_iterate): Likewise.
37269
a9368fd3 372702009-03-28 Robert Millan <rmh@aybabtu.com>
37271
37272 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
37273 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
37274 variables. Use 16-bit loader.
37275 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
37276 loader.
37277 * kern/i386/loader.S (grub_linux_boot): Rename to ...
37278 (grub_linux16_boot): ... this. Update all users.
37279 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
37280 (grub_linux_boot): ... this. Update all users.
37281
37282 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
37283 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
37284 commands to `linux16' and `initrd16'.
37285 (GRUB_MOD_FINI(linux)): Rename to ...
37286 (GRUB_MOD_FINI(linux16)): ... this.
37287
e4dd5a7e 372882009-03-24 Pavel Roskin <proski@gnu.org>
37289
37290 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
37291 not just for compilation.
37292
c04d6e05 372932009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
37294
37295 Move multiboot helper out of kernel
37296
37297 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
37298 `loader/i386/multiboot_helper.S'.
37299 * conf/i386-coreboot.rmk: Likewise
37300 * conf/i386-ieee1275.rmk: Likewise
37301
37302 * kern/i386/loader.S: Move multiboot helpers from here...
37303 * loader/i386/multiboot_helper.S: ...moved here
37304 * include/grub/i386/loader.h: Move declarations of multiboot
37305 helpers from here...
37306 * include/grub/i386/multiboot.h: ...moved here
37307 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
37308
42a5b3fc 373092009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37310
37311 * kern/env.c (grub_env_context_open): Added an argument to specify
37312 whether a new context inherits exported variables from current
37313 one. This is useful when making a sandbox to interpret a config
37314 file.
37315 All callers updated.
37316
37317 * include/grub/env.h (grub_env_context_open): Updated the prototype.
37318
b28bbc4e 373192009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37320
37321 * kern/env.c (grub_env_context_close): Fix memory leaks.
37322
f04f02e4 373232009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37324
37325 * normal/main.c (grub_normal_execute): Added an argument
37326 BATCH to specify if an interactive interface should be provided
37327 after reading a config file.
37328 All callers updated.
37329 (read_command_list): Prevent being executed twice.
37330 (read_fs_list): Likewise.
37331
42a5b3fc 37332 * include/grub/normal.h (grub_normal_execute): Updated the
37333 prototype.
f04f02e4 37334
41473ac2 373352009-03-22 Pavel Roskin <proski@gno.org>
37336
fbc00b0c 37337 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
37338 _start.
37339 * kern/i386/pc/startup.S: Likewise.
37340 * kern/i386/efi/startup.S: Likewise.
37341 * kern/i386/ieee1275/startup.S: Likewise.
37342 * kern/i386/coreboot/startup.S: Likewise.
37343 * kern/x86_64/efi/startup.S: Likewise.
37344
41473ac2 37345 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
37346 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
37347 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
37348
2274cc8f 373492009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
37350
37351 Bugfixes in multiboot for bugs uncovered by solaris kernel.
37352
37353 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
37354 limit detection.
37355 Use vaddr of correct segment for entry_point.
37356
b1b797cb 373572009-03-21 Bean <bean123ch@gmail.com>
37358
37359 * commands/blocklist.c: Add include file <grub/command.h>, remove
37360 <grub/normal.h> and <grub/arg.h>.
37361 (grub_cmd_blocklist): Use the new command interface.
37362 (GRUB_MOD_INIT): Likewise.
37363 (GRUB_MOD_FINI): Likewise.
37364 * commands/boot.c: Likewise.
37365 * commands/cat.c: Likewise.
37366 * commands/cmp.c: Likewise.
37367 * commands/configfile.c: Likewise.
37368 * commands/crc.c: Likewise.
37369 * commands/echo.c: Likewise.
37370 * commands/halt.c: Likewise.
37371 * commands/handler.c: Likewise.
37372 * commands/hdparm.c: Likewise.
37373 * commands/help.c: Likewise.
37374 * commands/hexdump.c: Likewise.
37375 * commands/loadenv.c: Likewise.
37376 * commands/ls.c: Likewise.
37377 * commands/lsmmap.c: Likewise.
37378 * commands/lspci.c: Likewise.
37379 * commands/loadenv.c: Likewise.
37380 * commands/read.c: Likewise.
37381 * commands/reboot.c: Likewise.
37382 * commands/search.c: Likewise.
37383 * commands/sleep.c: Likewise.
37384 * commands/test.c: Likewise.
37385 * commands/usbtest.c: Likewise.
37386 * commands/videotest.c: Likewise.
37387 * commands/i386/cpuid.c: Likewise.
37388 * commands/i386/pc/halt.c: Likewise.
37389 * commands/i386/pc/play.c: Likewise.
37390 * commands/i386/pc/pxecmd.c: Likewise.
37391 * commands/i386/pc/vbeinfo.c: Likewise.
37392 * commands/i386/pc/vbetest.c: Likewise.
37393 * commands/ieee1275/suspend.c: Likewise.
37394 * disk/loopback.c: Likewise.
37395 * font/font_cmd.c: Likewise.
37396 * hello/hello.c: Likewise.
37397 * loader/efi/appleloader.c: Likewise.
37398 * loader/efi/chainloader.c: Likewise.
37399 * loader/i386/bsd.c: Likewise.
37400 * loader/i386/efi/linux.c: Likewise.
37401 * loader/i386/ieee1275/linux.c: Likewise.
37402 * loader/i386/linux.c: Likewise.
37403 * loader/i386/pc/chainloader.c: Likewise.
37404 * loader/i386/pc/linux.c: Likewise.
37405 * loader/powerpc/ieee1275/linux.c: Likewise.
37406 * loader/multiboot_loader.c: Likewise.
37407 * term/gfxterm.c: Likewise.
37408 * term/i386/pc/serial.c: Likewise.
37409 * term/terminfo.c: Likewise.
37410
37411 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
37412 * term/i386/pc/vga.c: Likewise.
37413 * video/readers/jpeg.c: Likewise.
37414 * video/readers/png.c: Likewise.
37415 * video/readers/tga.c: Likewise.
37416
37417 * util/grub-fstest (cmd_loopback): Removed.
37418 (cmd_blocklist): Likewise.
37419 (cmd_ls): Likewise.
37420 (grub_register_command): Likewise.
37421 (grub_unregister_command): Likewise.
37422 (execute_command): Use grub_command_find to locate command and execute
37423 it.
37424
37425 * include/grub/efi/chainloader.h: Removed.
37426 * loader/efi/chainloader_normal.c: Likewise.
37427 * loader/i386/bsd_normal.c: Likewise.
37428 * loader/i386/pc/chainloader_normal.c: Likewise.
37429 * loader/i386/pc/multiboot_normal.c: Likewise.
37430 * loader/linux_normal.c: Likewise.
37431 * loader/multiboot_loader_normal.c: Likewise.
37432 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37433
37434 * gencmdlist.sh: Scan new registration command grub_register_extcmd
37435 and grub_register_command_p1.
37436
37437 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
37438 kern/command.c, lib/arg.c and commands/extcmd.c.
37439 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
37440 (minicmd_mod_SOURCES): New variable.
37441 (minicmd_mod_CFLAGS): Likewise.
37442 (minicmd_mod_LDFLAGS): Likewise.
37443 (extcmd_mod_SOURCES): Likewise.
37444 (extcmd_mod_CFLAGS): Likewise.
37445 (extcmd_mod_LDFLAGS): Likewise.
37446 (boot_mod_SOURCES): Removed.
37447 (boot_mod_CFLAGS): Likewise.
37448 (boot_mod_LDFLAGS): Likewise.
37449
37450 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
37451 kern/corecmd.c.
37452 (kernel_img_HEADERS): Add command.h.
37453 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
37454 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
37455 and lib/arg.c.
37456 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
37457 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
37458 remove the corresponding normal mode command.
37459 (normal_mod_SOURCES): Remove normal/arg.c.
37460 * conf/i386-coreboot.rmk: Likewise.
37461 * conf/i386-efi.rmk: Likewise.
37462 * conf/i386-ieee1275.rmk: Likewise.
37463 * conf/powerpc-ieee1275.rmk: Likewise.
37464 * conf/x86_64-efi.rmk: Likewise.
37465
37466 * include/grub/arg.h: Move from here ...
37467 * include/grub/lib/arg.h: ... to here.
37468
37469 * normal/arg.c: Move from here ...
37470 * lib/arg.c: ... to here.
37471
37472 * commands/extcmd.c: New file.
37473 * commands/minicmd.c: Likewise.
37474 * include/grub/command.h: Likewise.
37475 * include/grub/extcmd.h: Likewise.
37476 * kern/command.c: Likewise.
37477 * kern/corecmd.c: Likewise.
37478
37479 * kern/list.c (grub_list_iterate): Return int instead of void.
37480 (grub_list_insert): New function.
37481 (grub_prio_list_insert): Likewise.
37482
37483 * kern/rescue.c (grub_rescue_command): Removed.
37484 (grub_rescue_command_list): Likewise.
37485 (grub_rescue_register_command): Likewise.
37486 (grub_rescue_unregister_command): Likewise.
37487 (grub_rescue_cmd_boot): Move to minicmd.c
37488 (grub_rescue_cmd_help): Likewise.
37489 (grub_rescue_cmd_info): Likewise.
37490 (grub_rescue_cmd_boot): Likewise.
37491 (grub_rescue_cmd_testload): Likewise.
37492 (grub_rescue_cmd_dump): Likewise.
37493 (grub_rescue_cmd_rmmod): Likewise.
37494 (grub_rescue_cmd_lsmod): Likewise.
37495 (grub_rescue_cmd_exit): Likewise.
37496 (grub_rescue_print_devices): Moved to corecmd.c.
37497 (grub_rescue_print_files): Likewise.
37498 (grub_rescue_cmd_ls): Likewise.
37499 (grub_rescue_cmd_insmod): Likewise.
37500 (grub_rescue_cmd_set): Likewise.
37501 (grub_rescue_cmd_unset): Likewise.
7d074e3c 37502 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 37503 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 37504 commands, remove grub_rescue_register_command calls.
b1b797cb 37505
7d074e3c 37506 * normal/command.c (grub_register_command): Removed.
b1b797cb 37507 (grub_unregister_command): Likewise.
37508 (grub_command_find): Likewise.
37509 (grub_iterate_commands): Likewise.
37510 (rescue_command): Likewise.
37511 (export_command): Moved to corecmd.c.
37512 (set_command): Removed.
37513 (unset_command): Likewise.
37514 (insmod_command): Likewise.
37515 (rmmod_command): Likewise.
37516 (lsmod_command): Likewise.
37517 (grub_command_init): Likewise.
37518
37519 * normal/completion.c (iterate_command): Use cmd->prio to check for
37520 active command.
37521 (complete_arguments): Use grub_extcmd_t structure to find options.
37522 (grub_normal_do_completion): Change function grub_iterate_commands to
37523 grub_command_iterate.
37524
37525 * normal/execute.c (grub_script_execute_cmd): No need to parse
37526 argument here.
37527
37528 * normal/main.c (grub_dyncmd_dispatcher): New function.
37529 (read_command_list): Register unload commands as dyncmd.
37530 (grub_cmd_normal): Use new command interface, register rescue,
37531 unregister normal at entry, register normal, unregister rescue at exit.
37532
37533 * include/grub/list.h (grub_list_test_t): New type.
37534 (grub_list_iterate): Return int instead of void.
37535 (grub_list_insert): New function.
37536 (GRUB_AS_NAMED_LIST_P): New macro.
37537 (GRUB_AS_PRIO_LIST): Likewise.
37538 (GRUB_AS_PRIO_LIST_P): Likewise.
37539 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
37540 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
37541 (grub_prio_list): New structure.
37542 (grub_prio_list_insert): New function.
37543 (grub_prio_list_remove): New inline function.
37544
37545 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
37546 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
37547 (GRUB_COMMAND_FLAG_MENU): Likewise.
37548 (GRUB_COMMAND_FLAG_BOTH): Likewise.
37549 (GRUB_COMMAND_FLAG_TITLE): Likewise.
37550 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
37551 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
37552 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
37553 (grub_command): Likewise.
37554 (grub_register_command): Likewise.
37555 (grub_command_find): Likewise.
37556 (grub_iterate_commands): Likewise.
37557 (grub_command_init): Likewise.
37558 (grub_arg_parse): Likewise.
37559 (grub_arg_show_help): Likewise.
37560
37561 * include/grub/rescue.h (grub_rescue_register_command): Removed.
37562 (grub_rescue_unregister_command): Likewise.
37563
37564 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
37565 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
37566 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
37567
37568 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
37569 grub_rescue_cmd_initrd.
37570 * include/grub/i386/loader.h: Likewise.
37571 * include/grub/x86_64/loader.h: Likewise.
37572
37573 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37574
1f4147aa 375752009-03-21 Bean <bean123ch@gmail.com>
37576
37577 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37578 instead of stat in mingw environment.
37579
37580 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37581
37582 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37583
37584 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37585 AC_CONFIG_LINKS.
37586
2156d5ba 375872009-03-21 Bean <bean123ch@gmail.com>
37588
37589 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37590 out of range error.
37591
177b82ca 375922009-03-18 Michel Dänzer <michel@daenzer.net>
37593
37594 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37595 checking inode flags for EXT4_EXTENTS_FLAG.
37596
14aad807 375972009-03-18 Robert Millan <rmh@aybabtu.com>
37598
37599 * loader/i386/linux.c: Include `<grub/video.h>' and
37600 `<grub/i386/pc/vbe.h>'..
37601 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37602 (grub_linux32_boot): Attempt to configure video settings with
37603 grub_linux_setup_video().
37604 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37605 to avoid grub_console_fini() which would step out of graphical mode
37606 unconditionally.
37607
8cf83a27 376082009-03-14 Robert Millan <rmh@aybabtu.com>
37609
37610 Fix build on powerpc.
37611 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37612
40164e75 376132009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37614
37615 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37616 background image command.
37617
c58bc32a 376182009-03-12 Colin D Bennett <colin@gibibit.com>
37619
37620 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37621 (grub_gfxterm_putchar): Extract pairs of identical calls to
37622 draw_cursor out of conditional blocks.
37623
5415144a 376242009-03-11 Pavel Roskin <proski@gnu.org>
37625
37626 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37627 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37628
6394042e 376292009-03-11 Robert Millan <rmh@aybabtu.com>
37630
37631 * loader/i386/multiboot_elfxx.c
37632 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37633
b7b50e5f 376342009-03-11 Felix Zielcke <fzielcke@z-51.de>
37635
37636 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37637 `kern/handler.c'.
37638
1ca7fc96 376392009-03-11 Robert Millan <rmh@aybabtu.com>
37640
37641 * loader/i386/multiboot.c (code_size): New variable.
37642 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 37643 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 37644 4-byte alignment to MBI and others by increasing
7d074e3c 37645 `boot_loader_name_length' appropriately.
1ca7fc96 37646
37647 * loader/i386/multiboot_elfxx.c
37648 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37649
a83ea1d2 376502009-03-09 Felix Zielcke <fzielcke@z-51.de>
37651
37652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37653 `fs/ext2.c'.
37654
aa9f3bff 376552009-03-08 Robert Millan <rmh@aybabtu.com>
37656
37657 Make loader/i386/linux.c usable on i386-pc again.
37658
37659 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37660 memory to heap.
37661 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37662 `#error' stanza.
37663
d8b3b60e 376642009-03-07 Bean <bean123ch@gmail.com>
37665
37666 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37667 allocation.
37668
b362c9e9 376692009-03-06 Robert Millan <rmh@aybabtu.com>
37670
37671 Fix display issue on terminals with screen size other than 80x25
37672 (e.g. gfxterm with resolution higher than 640x480).
37673
37674 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 37675 position relative to the center of the terminal instead of relying
b362c9e9 37676 on a hardcoded offset.
37677
9304eef1 376782009-03-04 Robert Millan <rmh@aybabtu.com>
37679
37680 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37681 installed.
37682
37683 * Makefile.in (host_kernel): New variable.
37684 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37685 scripts instead of just the windows one.
37686 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37687
eabc95fb 376882009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 37689
37690 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37691 `kern/handler.c'.
37692 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37693 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37694 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37695 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37696 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37697 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37698
ceb1223c 376992009-03-04 Felix Zielcke <fzielcke@z-51.de>
37700
37701 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37702 or if there's no space for the disk label and print the partition number on a
37703 invalid magic.
37704
4910684a 377052009-03-04 Felix Zielcke <fzielcke@z-51.de>
37706
37707 * util/misc.c: Include <time.h>.
37708 (grub_millisleep): New function.
37709
7e9ca17a 377102009-03-04 Bean <bean123ch@gmail.com>
37711
37712 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37713 another option -mno-red-zone.
37714
37715 * commands/handler.c: Change module description.
37716
37717 * kern/handler.c: Add missing space at the end of description line.
37718
37719 * kern/list.c: Likewise.
37720
f501677c 377212009-03-03 Robert Millan <rmh@aybabtu.com>
37722
37723 Move more components to the relocation area, and fix mbi pointer
37724 handling to use the destination rather than the origin (thanks to
37725 Vladimir Serbinenko for spotting).
37726
37727 * loader/i386/multiboot.c (mbi_dest): New variable.
37728 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37729 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37730 relocation area.
37731
9902d047 377322009-03-01 Bean <bean123ch@gmail.com>
37733
50fb7002 37734 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 37735 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37736 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37737 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37738
37739 * loader/i386/efi/linux.c (acpi_guid): New variable.
37740 (acpi_guid): Likewise.
37741 (EBDA_SEG_ADDR): New constant.
37742 (LOW_MEM_ADDR): Likewise.
37743 (FAKE_EBDA_SEG): Likewise.
37744 (fake_bios_data): New function.
37745 (grub_linux_boot): Call fake_bios_data.
37746
71b9f361 377472009-03-01 Bean <bean123ch@gmail.com>
37748
37749 * commands/terminal.c: Removed.
37750
37751 * commands/handler.c: New file.
37752
37753 * include/grub/list.h: Likewise.
37754
37755 * include/grub/handler.h: Likewise.
37756
37757 * kern/list.c: Likewise.
37758
37759 * kern/handler.c: Likewise.
37760
37761 * kern/term.h: Include header file <grub/handler.h>.
37762 (grub_term_input): Move next field to the beginning.
37763 (grub_term_output): Likewise.
37764 (grub_term_input_class): New variable.
37765 (grub_term_output_class): Likewise.
37766 (grub_term_register_input): Changed to inline function.
37767 (grub_term_register_output): Likewise.
37768 (grub_term_unregister_input): Likewise.
37769 (grub_term_unregister_output): Likewise.
37770 (grub_term_set_current_input): Likewise.
37771 (grub_term_set_current_output): Likewise.
37772 (grub_term_get_current_input): Likewise.
37773 (grub_term_get_current_output): Likewise.
37774 (grub_term_iterate_input): Removed.
37775 (grub_term_iterate_output): Likewise.
37776
37777 * kern/term.c (grub_term_list_input): Removed.
37778 (grub_term_list_output): Likewise.
37779 (grub_term_input_class): New variable.
37780 (grub_term_output_class): Likewise.
50fb7002 37781 (grub_cur_term_input): Change variable as macro.
71b9f361 37782 (grub_cur_term_output): Likewise.
37783 (grub_term_register_input): Removed.
37784 (grub_term_register_output): Likewise.
37785 (grub_term_unregister_input): Likewise.
37786 (grub_term_unregister_output): Likewise.
37787 (grub_term_set_current_input): Likewise.
37788 (grub_term_set_current_output): Likewise.
37789 (grub_term_iterate_input): Likewise.
37790 (grub_term_iterate_output): Likewise.
37791 (grub_term_get_current_input): Likewise.
37792 (grub_term_get_current_output): Likewise.
37793
37794 * util/grub-editenv.c: Include header file <grub/handler.h>.
37795 (grub_term_get_current_input): Removed.
37796 (grub_term_get_current_output): Likewise.
37797 (grub_term_input_class): New variable.
50fb7002 37798 (grub_term_output_class): Likewise.
71b9f361 37799
37800 * util/grub-fstest.c (grub_term_get_current_input): Removed.
37801 (grub_term_get_current_output): Likewise.
37802 (grub_term_input_class): New variable.
50fb7002 37803 (grub_term_output_class): Likewise.
71b9f361 37804
37805 * util/grub-probe.c (grub_term_get_current_input): Removed.
37806 (grub_term_get_current_output): Likewise.
37807 (grub_term_input_class): New variable.
50fb7002 37808 (grub_term_output_class): Likewise.
71b9f361 37809
37810 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
37811 (grub_term_get_current_output): Likewise.
37812 (grub_term_input_class): New variable.
50fb7002 37813 (grub_term_output_class): Likewise.
71b9f361 37814
37815 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
37816 (terminal_mod_SOURCES): Likewise.
37817 (terminal_mod_CFLAGS): Likewise.
37818 (terminal_mod_LDFLAGS): Likewise.
37819
37820 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
37821 handler.c.
37822 (kernel_img_SOURCES): Add list.c and handler.c.
37823 (kernel_img_HEADERS): Add list.h and handler.h.
37824
37825 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37826 handler.c.
37827 (kernel_mod_SOURCES): Add list.c and handler.c.
37828 (kernel_mod_HEADERS): Add list.h and handler.h.
37829
37830 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
37831 handler.c.
37832 (kernel_elf_SOURCES): Add list.c and handler.c.
37833 (kernel_elf_HEADERS): Add list.h and handler.h.
37834
37835 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37836 handler.c.
37837 (kernel_elf_SOURCES): Add list.c and handler.c.
37838 (kernel_elf_HEADERS): Add list.h and handler.h.
37839
37840 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37841 handler.c.
37842 (kernel_mod_SOURCES): Add list.c and handler.c.
37843 (kernel_mod_HEADERS): Add list.h and handler.h.
37844
37845 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37846 handler.c.
37847 (kernel_elf_SOURCES): Add list.c and handler.c.
37848 (kernel_elf_HEADERS): Add list.h and handler.h.
37849
8a31787f 378502009-02-27 Robert Millan <rmh@aybabtu.com>
37851
37852 Factorize elf32 / elf64 code in Multiboot loader. This will
37853 prevent it from getting out of sync again.
37854
37855 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37856 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37857 grub_multiboot_load_elf64): Move from here ...
37858 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37859 grub_multiboot_load_elf): ... to here (new file).
37860
51cd3dfc 378612009-02-27 Robert Millan <rmh@aybabtu.com>
37862
37863 * util/grub.d/10_linux.in: Rename "single-user mode" to
37864 "recovery mode".
37865
6e8c9c3a 378662009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37867
37868 Don't leak in SCSI code.
37869 * disk/scsi.c (grub_scsi_close): free `scsi'.
37870
4b6bf4f9 378712009-02-27 Robert Millan <rmh@aybabtu.com>
37872
37873 * loader/i386/pc/multiboot.c: Move from here ...
37874 * loader/i386/multiboot.c: ... to here. Update all users.
37875
b9413424 378762009-02-27 Robert Millan <rmh@aybabtu.com>
37877
37878 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37879 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37880
50fb7002 378812009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 37882
37883 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37884 b-tree.
37885
8cc50345 378862009-02-27 Robert Millan <rmh@aybabtu.com>
37887
37888 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37889 `0x' qualifier as 0 when base is specified as parameter).
37890
6e09b8b7 378912009-02-24 Bean <bean123ch@gmail.com>
37892
37893 * configure.ac: Check for -mcmodel=large in x86_64 target.
37894
37895 * include/grub/efi/api.h (efi_call_10): New macro.
37896 (efi_wrap_10): New function.
37897
37898 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37899 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37900 (GRUB_PE32_REL_BASED_LOW): Likewise.
37901 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37902 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37903 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37904 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37905 (GRUB_PE32_REL_BASED_REL): Likewise.
37906 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37907 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37908 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37909
37910 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37911 issue.
37912
37913 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37914 (efi_wrap_10): New function.
37915
37916 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37917
37918 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37919 MB/MBP model (NV chipset).
37920 (devdata_devs): Add devpath_5 to the list.
37921
37922 * load/i386/efi/linux.c (video_base): Remove variable.
37923 (RGB_MASK): New macro.
37924 (RGB_MAGIC): Likewise.
37925 (LINE_MIN): Likewise.
37926 (LINE_MAX): Likewise.
37927 (FBTEST_STEP): Likewise.
37928 (FBTEST_COUNT): Likewise.
37929 (fb_list): New variable.
37930 (grub_find_video_card): Remove function.
37931 (find_framebuf): New function.
37932 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37933 line length.
37934
37935 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37936 problem for x86_64.
37937
74b21bee 379382009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37939
37940 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37941
37942 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37943 coding tool name.
37944
a455f472 379452009-02-22 Robert Millan <rmh@aybabtu.com>
37946
37947 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37948 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37949 in our relocation, instead of using it directly from heap. Also
37950 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37951
6374daf3 379522009-02-21 Robert Millan <rmh@aybabtu.com>
37953
37954 Implement USB keyboard support (based on patch by Marco Gerards)
37955
37956 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37957 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37958 (usb_keyboard_mod_LDFLAGS): New variables.
37959
37960 * term/usb_keyboard.c: New file.
37961
8fa4ea70 379622009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37963
37964 Corrected wrong declaration
37965
37966 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37967
353976ac 379682009-02-14 Christian Franke <franke@computer.org>
37969
37970 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37971 (grub_lspci_iter): Print class code and programming interface byte.
37972
6aa1169b 379732009-02-14 Christian Franke <franke@computer.org>
37974
37975 * gendistlist.sh: Ignore `.svn' directories.
37976
265372ca 379772009-02-14 Felix Zielcke <fzielcke@z-51.de>
37978
37979 * fs/fat.c: Add 2009 to Copyright line.
37980
9ff516f3 379812009-02-14 Christian Franke <franke@computer.org>
37982
37983 * commands/hdparm.c: New file. Provides `hdparm' command
37984 which sends ATA commands via grub_disk_ata_pass_through ().
37985
37986 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37987
37988 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37989 and <grub/cpu/io.h> to include/grub/ata.h.
37990 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37991 (GRUB_CDROM_SECTOR_SIZE): Remove.
37992 (GRUB_ATA_*): Move to include/grub/ata.h.
37993 (GRUB_ATAPI_*): Likewise.
37994 (enum grub_ata_commands): Likewise.
37995 (enum grub_ata_timeout_milliseconds): Likewise.
37996 (struct grub_ata_device): Likewise.
37997 (grub_ata_regset): Likewise.
37998 (grub_ata_regget): Likewise.
37999 (grub_ata_regset2): Likewise.
38000 (grub_ata_regget2): Likewise.
38001 (grub_ata_check_ready): Likewise.
38002 (grub_ata_wait_not_busy): Remove static, exported in
38003 include/grub/ata.h.
38004 (grub_ata_wait_drq): Likewise.
38005 (grub_ata_pio_read): Likewise.
38006
38007 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
38008 function for hdparm.mod.
38009
38010 * include/grub/ata.h: New file, contains declarations from
38011 disk/ata.c.
38012 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
38013
38014 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
38015 (grub_disk_ata_pass_through): New exported variable.
38016
38017 * kern/disk.c (grub_disk_ata_pass_through): New variable.
38018
772e23da 380192009-02-13 Colin D Bennett <colin@gibibit.com>
38020
38021 Support multiple fallback entries, and provide an API to support
38022 executing default+fallback menu entries. Renamed the `terminal' menu
38023 viewer to `text'.
38024
38025 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
38026 variable declaration.
38027 (grub_menu_execute_callback): New structure declaration.
38028 (grub_menu_execute_callback_t): New typedef.
38029 (grub_menu_execute_with_fallback): New function declaration.
38030 (grub_menu_get_entry): Likewise.
38031 (grub_menu_get_timeout): Likewise.
38032 (grub_menu_set_timeout): Likewise.
38033
38034 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
38035
38036 * normal/menu.c (grub_wait_after_message): Moved to
38037 `normal/menu_text.c'.
38038 (draw_border): Likewise.
38039 (print_message): Likewise.
38040 (print_entry): Likewise.
38041 (print_entries): Likewise.
38042 (grub_menu_init_page): Likewise.
38043 (get_entry_number): Likewise.
38044 (print_timeout): Likewise.
38045 (run_menu): Likewise.
38046 (grub_menu_execute_entry): Likewise.
38047 (show_text_menu): Likewise.
38048 (get_and_remove_first_entry_number): New function.
38049 (grub_menu_execute_with_fallback): Likewise.
38050 (get_entry): Renamed to ...
38051 (grub_menu_get_entry): .. this and made it global.
38052 (get_timeout): Renamed to ...
38053 (grub_menu_get_timeout): ... this and made it global.
38054 (set_timeout): Renamed to ...
38055 (grub_menu_set_timeout): ... this and made it global.
38056 (grub_normal_terminal_menu_viewer): Renamed to ...
38057 (grub_normal_text_menu_viewer): ... this.
38058
38059 * normal/menu_text.c: New file. Extracted text-menu-specific code
38060 from normal/menu.c.
38061
38062 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
38063 (normal_mod_SOURCES): Likewise.
38064
38065 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38066 (normal_mod_SOURCES): Likewise.
38067
38068 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38069 (normal_mod_SOURCES): Likewise.
38070
38071 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
38072 (normal_mod_SOURCES): Likewise.
38073
38074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38075 (normal_mod_SOURCES): Likewise.
38076
38077 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38078 (normal_mod_SOURCES): Likewise.
38079
38080 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38081 (normal_mod_SOURCES): Likewise.
38082
16ac430e 380832009-02-11 Robert Millan <rmh@aybabtu.com>
38084
38085 * util/grub.d/00_header.in: Update old reference to `font' command.
38086
06ff20fc 380872009-02-10 Felix Zielcke <fzielcke@z-51.de>
38088
38089 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
38090
38091 Based on patch from Javier Martín.
38092
96da9407 380932009-02-09 Felix Zielcke <fzielcke@z-51.de>
38094
38095 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 38096 to avoid false positives with FAT.
96da9407 38097 (grub_fstest_SOURCES): Likewise.
38098 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38099 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38100 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38101 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38102 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38103 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38104
6dca6fe4 381052009-02-09 Felix Zielcke <fzielcke@z-51.de>
38106
06ff20fc 38107 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 38108 bpb.version_specific.fat12_or_fat16.fstype and
38109 bpb.version_specific.fat32.fstype.
38110
2550c62f 381112009-02-08 Robert Millan <rmh@aybabtu.com>
38112
be110b30 38113 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 38114
56978920 381152009-02-08 Robert Millan <rmh@aybabtu.com>
38116
38117 * Makefile.in (host_os, host_cpu): New variables.
38118 (target_os): Remove. Update all users.
38119
d64399b5 381202009-02-08 Marco Gerards <marco@gnu.org>
38121
38122 * Makefile.in (enable_grub_emu_usb): New variable.
38123 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
38124 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
38125 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
38126 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
38127 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
38128 `usbtest.mod' and `usbms.mod'.
38129 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
38130 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
38131 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
38132 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
38133 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
38134 variables.
38135
38136 * disk/usbms.c: New file.
38137
38138 * include/grub/usb.h: Likewise.
38139
38140 * include/grub/usbtrans.h: Likewise.
38141
38142 * include/grub/usbdesc.h: Likewise.
38143
38144 * bus/usb/usbtrans.c: Likewise.
38145
38146 * bus/usb/ohci.c: Likewise.
38147
38148 * bus/usb/uhci.c: Likewise.
38149
38150 * bus/usb/usbhub.c: Likewise.
38151
38152 * bus/usb/usb.c: Likewise.
38153
38154 * commands/usbtest.c: Likewise.
38155
38156 * util/usb.c: Likewise.
50fb7002 38157
d64399b5 38158 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
38159
38160 * configure.ac: Test for libusb presence.
50fb7002 38161
d64399b5 38162 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
38163
2b40d6bb 381642009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
38165
38166 * kern/mm.c: Add more comments.
38167
73a4ce81 381682009-02-08 Robert Millan <rmh@aybabtu.com>
38169
38170 Patch from Javier Martín.
38171 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
38172 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
38173
f821ce59 381742009-02-08 Robert Millan <rmh@aybabtu.com>
38175
38176 * fs/cpio.c: Split tar functionality to ...
38177 * fs/tar.c: ... here (new file). Update all users.
38178
aebfc4b0 381792009-02-07 Robert Millan <rmh@aybabtu.com>
38180
38181 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
38182 backward-incompatible features.
38183
38184 Based on patch from Javier Martín, with some adjustments.
38185
50fb7002 381862009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 38187
38188 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
38189
0bb5115e 381902009-02-07 Robert Millan <rmh@aybabtu.com>
38191
38192 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
38193 position of `disk/lvm.c' to ensure grub_init_all() always picks it
38194 after the RAID stuff.
38195
38a0f8e7 381962009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
38197
50fb7002 38198 Fixes problem when running vbetest command as reported by
38a0f8e7 38199 Vladimir Serbinenko <phcoder@gmail.com>.
38200
38201 * (grub_vbe_set_video_mode): Fixed problem with text modes.
38202
3143cc1c 382032009-02-04 Felix Zielcke <fzielcke@z-51.de>
38204
38205 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
38206 /dev/md/NpN style mdraid devices.
38207
9cba6fce 382082009-02-03 Felix Zielcke <fzielcke@z-51.de>
38209
38210 * util/unifont2pff.rb: Remove.
38211
e507a2c1 382122009-02-03 Felix Zielcke <fzielcke@z-51.de>
38213
38214 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
38215 `#'.
38216
d2c2b4cd 382172009-02-03 Felix Zielcke <fzielcke@z-51.de>
38218
38219 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
38220 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38221 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38222 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38224 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38225 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38226
b4315fb0 382272009-02-02 Christian Franke <franke@computer.org>
38228
38229 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
38230
de3aa260 382312009-02-01 Felix Zielcke <fzielcke@z-51.de>
38232
7c3ff286 38233 * INSTALL: Note that we now require at least autoconf 2.59 and
38234 that LZO is optional.
de3aa260 38235
825a182b 382362009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38237
38238 Base on patch on bug #24154 created by Tomas Tintera
38239 <trosos@seznam.cz>.
38240
38241 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
38242
a69ef770 382432009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38244
7c3ff286 38245 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 38246 <bero@arklinux.org>.
38247
38248 * normal/parser.y (script_init): Add missing semicolon.
38249
6fa42fa6 382502009-01-31 Colin D Bennett <colin@gibibit.com>
38251
7c3ff286 38252 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 38253 (free_menu_entry_classes): Added.
38254 (grub_normal_menu_addentry): Added class property handling.
38255 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
38256 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
38257
38258 * normal/menu_viewer.c: New file.
38259
38260 * normal/menu.c (run_menu_entry): Renamed to ...
38261 (grub_menu_execute_entry): ... this and made it as global.
38262 (grub_menu_run): Renamed to ...
38263 (show_text_menu): ... this and made it local.
38264 (show_text_menu): Adapt to new function names.
38265 (grub_normal_terminal_menu_viewer): New global variable.
38266
38267 * include/grub/menu.h: New file.
38268
38269 * include/grub/menu_viewer.h: New file.
38270
38271 * include/grub/normal.h: Added include to grub/menu.h.
38272 (grub_menu_entry): Moved to include/grub/menu.h.
38273 (grub_menu_entry_t): Likewise.
38274 (grub_menu): Likewise.
38275 (grub_menu_t): Likewise.
38276 (grub_normal_terminal_menu_viewer): Added.
38277 (grub_menu_execute_entry): Likewise.
38278 (grub_menu_run): Removed.
38279
38280 * DISTLIST: Added include/grub/menu.h.
38281 Added include/grub/menu_viewer.h.
38282 Added normal/menu_viewer.c.
38283
382842009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
38285
38286 * normal/execute.c (grub_script_execute_menuentry): Changed to use
38287 arglist for menutitle arguments.
38288
38289 * normal/main.c (grub_normal_menu_addentry): Likewise.
38290
38291 * normal/parser.y (menuentry): Likewise.
38292
38293 * normal/script.c (grub_script_create_cmdmenu): Likewise.
38294
38295 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
38296 (grub_script_create_cmdmenu): Likewise.
38297
38298 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
38299
38300 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
38301 changes.
38302
38303 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
38304
38305 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
38306
38307 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
38308
38309 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38310
38311 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38312
38313 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38314
56192c23 383152009-01-30 Christian Franke <franke@computer.org>
38316
38317 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
38318 in option help text.
38319
d72521b3 383202009-01-27 Pavel Roskin <proski@gnu.org>
38321
38322 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
38323
994b5e84 383242009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38325
38326 * commands/lsmmap.c: Add include to grub/machine/memory.h.
38327
38328 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
38329
38330 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
38331 unregister function.
38332
6a7eab2c 383332009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38334
38335 * disk/scsi.c (grub_scsi_read): Fix sign problem.
38336
38337 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
38338
38339 * util/grub-mkfont.c (usage): Fix typo.
38340
38341 * util/elf/grub-mkimage.c (load_modules): Fix warning.
38342
1806b56e 383432009-01-26 Daniel Mierswa <impulze@impulze.org>
38344
3fb18f09 38345 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
38346
336e1fb9 38347 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
38348
1806b56e 38349 * kern/misc.c (grub_strcasecmp): New function.
38350 (grub_strcasecmp): Use grub_size_t instead of int for length.
38351 Fix return value.
38352 * include/grub/misc.h: Update function prototypes.
38353
580b2a0f 383542009-01-26 Robert Millan <rmh@aybabtu.com>
38355
38356 * configure.ac: Fix cross-compilation check.
ef257b36 38357
d31c24f1 383582009-01-22 Christian Franke <franke@computer.org>
38359
38360 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
38361 (precision) digit string. Allow `.format2' without `format1' (width).
38362 Limit input chars for `%s' output to `format2' if specified. This is
38363 compatible with standard printf ().
38364
3138b44c 383652009-01-22 Christian Franke <franke@computer.org>
38366
38367 * disk/ata.c (grub_ata_wait_status): Replace by ...
38368 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
38369 other status bits may be invalid while BSY is asserted.
38370 (grub_ata_check_ready): New function.
38371 (grub_ata_cmd): Removed.
38372 (grub_ata_wait_drq): New function.
38373 (grub_ata_strncpy): Remove inline.
38374 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
38375 and error check now done by grub_ata_wait_drq ().
38376 (grub_ata_pio_write): Likewise.
38377 (grub_atapi_identify): Set DEV before check for !BSY. Use
38378 grub_ata_wait_drq () to wait for data.
38379 (grub_ata_device_initialize): Add status register check to
38380 detect missing SATA slave devices. Add debug messages.
38381 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
38382 (grub_atapi_packet): Set DEV before check for !BSY. Replace
38383 transfer loop by grub_ata_pio_write ().
38384 (grub_ata_identify): Set DEV before check for !BSY. Use
38385 grub_ata_wait_drq () to wait for data.
ef257b36 38386 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 38387 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
38388 read/write in one loop. Fix invalid command on write. Fix incomplete
38389 command on (size % batch) == 0. Add missing error check after write of
38390 last block. Add debug messages.
38391 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
38392
59a64ef6 383932009-01-19 Christian Franke <franke@computer.org>
38394
38395 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
38396 (GRUB_ATAPI_IREASON_*): Likewise.
38397 (grub_ata_pio_write): Fix timeout error return.
38398 (grub_atapi_identify): Add grub_ata_wait () after cmd.
38399 (grub_atapi_wait_drq): New function.
38400 (grub_atapi_packet): New parameter `size'.
38401 Use grub_atapi_wait_drq () and direct write instead of
38402 grub_ata_pio_write ().
38403 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
38404 reads the number of bytes requested by the device for each DRQ
38405 assertion.
38406 (grub_atapi_write): Remove old implementation, return not
38407 implemented instead.
38408
1cfe20b3 384092009-01-19 Christian Franke <franke@computer.org>
38410
38411 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
38412 of 512 to calculate data size.
38413 (grub_scsi_read12): Likewise.
38414 (grub_scsi_write10): Likewise.
38415 (grub_scsi_write12): Likewise.
38416 (grub_scsi_read): Adjust size according to blocksize.
38417 Add checks for invalid blocksize and unaligned transfer.
38418
bee5fe5d 384192009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
38420
38421 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
38422
ef257b36 38423 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 38424 width glyphs.
38425
3e643f8c 384262009-01-19 Robert Millan <rmh@aybabtu.com>
38427
38428 * config.guess: Update to latest version from config git.
38429 * config.sub: Likewise.
38430
4fa80998 384312009-01-17 Felix Zielcke <fzielcke@z-51.de>
38432
38433 * Makefile.in: Change font compilation to use new grub-mkfont instead
38434 of java version.
38435
38436 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
38437 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
38438 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38439 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38440 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
38441 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
38442 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
38443 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
38444 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38445
7086085b 384462009-01-16 Christian Franke <franke@computer.org>
38447
38448 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
38449 (enum grub_ata_timeout_milliseconds): New enum.
38450 (grub_ata_wait_status): Add parameter milliseconds.
38451 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
38452 recovery from timed-out commands.
38453 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
38454 return grub_errno instead of REG_ERROR.
38455 (grub_ata_pio_write): Add parameter milliseconds.
38456 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
38457 Pass milliseconds to grub_ata_wait_status () and
38458 grub_ata_pio_read ().
38459 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
38460 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
38461 grub_ata_wait_status (). Fix IDENTIFY timeout check.
38462 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
38463 It is not suitable for device detection, because DEV bit is ignored,
38464 the command may run too long, and not all devices set the signature
38465 properly.
38466 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
38467 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
38468 Fix device selection, DEV bit must be set first to address the registers
38469 of the correct device.
38470 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
38471 grub_ata_pio_read/write ().
38472 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
38473 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
38474
4a412913 384752009-01-13 Carles Pina i Estany <carles@pina.cat>
38476
38477 * util/grub-editenv.c (main): Use fseeko(), not fseek().
38478
7795c55e 384792009-01-13 Bean <bean123ch@gmail.com>
d913988c 38480
38481 * util/grub-mkfont.c (write_font): forget to remove some debug code.
38482
7795c55e 384832009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 38484
38485 * Makefile.in: (enable_grub_mkfont): New variable.
38486 (freetype_cflags): Likewise.
38487 (freetype_libs): Likewise.
38488
38489 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
38490 (grub_mkfont_SOURCES): New variable.
38491 (grub_mkfont_CFLAGS): Likewise.
38492 (grub_mkfont_LDFLAGS): Likewise.
38493
38494 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
38495 library if `--enable-grub-mkfont' is requested.
38496 (enable_grub_mkfont): New variable.
38497 (freetype_cflags): Likewise.
38498 (freetype_libs): Likewise.
38499
38500 * util/grub-mkfont.c: New file.
38501
093af1fe 385022009-01-12 Christian Franke <franke@computer.org>
38503
38504 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
38505 mode check. Fix setting of compat_use[].
38506
f36cc108 385072009-01-10 Robert Millan <rmh@aybabtu.com>
38508
38509 Update a few copyright years which we forgot to do in 2008 (only for
38510 files whose changes made in 2008 were copyright-significant)
38511
38512 * Makefile.in: Add 2008 to Copyright line.
38513 * disk/ieee1275/ofdisk.c: Likewise.
38514 * disk/efi/efidisk.c: Likewise.
38515 * kern/dl.c: Likewise.
38516 * kern/sparc64/ieee1275/init.c: Likewise.
38517 * kern/mm.c: Likewise.
38518 * kern/efi/mm.c: Likewise.
38519 * boot/i386/pc/boot.S: Likewise.
38520 * genfslist.sh: Likewise.
38521 * fs/iso9660.c: Likewise.
38522 * fs/hfs.c: Likewise.
38523 * fs/jfs.c: Likewise.
38524 * fs/minix.c: Likewise.
38525 * fs/ufs.c: Likewise.
38526 * gensymlist.sh.in: Likewise.
38527 * genkernsyms.sh.in: Likewise.
38528 * include/grub/misc.h: Likewise.
38529 * include/grub/types.h: Likewise.
38530 * include/grub/symbol.h: Likewise.
38531 * include/grub/elf.h: Likewise.
38532 * include/grub/kernel.h: Likewise.
38533 * include/grub/disk.h: Likewise.
38534 * include/grub/dl.h: Likewise.
38535 * include/grub/i386/linux.h: Likewise.
38536 * include/grub/i386/pc/biosdisk.h: Likewise.
38537 * include/grub/efi/api.h: Likewise.
38538 * include/grub/efi/pe32.h: Likewise.
38539 * include/grub/util/misc.h: Likewise.
38540 * normal/execute.c: Likewise.
38541 * normal/arg.c: Likewise.
38542 * normal/completion.c: Likewise.
38543 * normal/lexer.c: Likewise.
38544 * normal/parser.y: Likewise.
38545 * normal/misc.c: Likewise.
38546 * commands/i386/pc/vbeinfo.c: Likewise.
38547 * commands/hexdump.c: Likewise.
38548 * commands/terminal.c: Likewise.
38549 * commands/ls.c: Likewise.
38550 * commands/help.c: Likewise.
38551 * partmap/pc.c: Likewise.
38552 * loader/efi/chainloader.c: Likewise.
38553 * loader/multiboot_loader.c: Likewise.
38554 * loader/i386/pc/multiboot2.c: Likewise.
38555 * term/efi/console.c: Likewise.
38556 * term/i386/pc/serial.c: Likewise.
38557 * util/lvm.c: Likewise.
38558 * util/console.c: Likewise.
38559 * util/i386/efi/grub-mkimage.c: Likewise.
38560 * util/raid.c: Likewise.
38561
7f02114b 385622009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
38563
38564 * commands/videotest.c: Removed include to grub/machine/memory.h.
38565
38566 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
38567 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
38568 (video_mod_SOURCES): Removed.
38569 (video_mod_CFLAGS): Likewise.
38570 (video_mod_LDFLAGS): Likewise.
38571 (gfxterm_mod_SOURCES): Likewise.
38572 (gfxterm_mod_CFLAGS): Likewise.
38573 (gfxterm_mod_LDFLAGS): Likewise.
38574 (videotest_mod_SOURCES): Likewise.
38575 (videotest_mod_CFLAGS): Likewise.
38576 (videotest_mod_LDFLAGS): Likewise.
38577 (bitmap_mod_SOURCES): Likewise.
38578 (bitmap_mod_CFLAGS): Likewise.
38579 (bitmap_mod_LDFLAGS): Likewise.
38580 (tga_mod_SOURCES): Likewise.
38581 (tga_mod_CFLAGS): Likewise.
38582 (tga_mod_LDFLAGS): Likewise.
38583 (jpeg_mod_SOURCES): Likewise.
38584 (jpeg_mod_CFLAGS): Likewise.
38585 (jpeg_mod_LDFLAGS): Likewise.
38586 (png_mod_SOURCES): Likewise.
38587 (png_mod_CFLAGS): Likewise.
38588 (png_mod_LDFLAGS): Likewise.
38589
38590 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38591 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38592 (video_mod_SOURCES): Added.
38593 (video_mod_CFLAGS): Likewise.
38594 (video_mod_LDFLAGS): Likewise.
38595 (videotest_mod_SOURCES): Likewise.
38596 (videotest_mod_CFLAGS): Likewise.
38597 (videotest_mod_LDFLAGS): Likewise.
38598 (bitmap_mod_SOURCES): Likewise.
38599 (bitmap_mod_CFLAGS): Likewise.
38600 (bitmap_mod_LDFLAGS): Likewise.
38601 (tga_mod_SOURCES): Likewise.
38602 (tga_mod_CFLAGS): Likewise.
38603 (tga_mod_LDFLAGS): Likewise.
38604 (jpeg_mod_SOURCES): Likewise.
38605 (jpeg_mod_CFLAGS): Likewise.
38606 (jpeg_mod_LDFLAGS): Likewise.
38607 (png_mod_SOURCES): Likewise.
38608 (png_mod_CFLAGS): Likewise.
38609 (png_mod_LDFLAGS): Likewise.
38610 (gfxterm_mod_SOURCES): Likewise.
38611 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 38612 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 38613
38614 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38615 grub/machine/console.h.
38616
644fff97 386172009-01-04 Jerone Young <jerone@gmail.com>
38618
38619 Make on screen instructions clearer
38620
38621 Based on patch created by Jidanni <jidanni@jidanni.org>
38622
38623 * normal/menu.c: print clearer instructions on the screen
38624
1e901a75 386252009-01-02 Colin D Bennett <colin@gibibit.com>
38626
38627 New font engine.
34c44600 38628
1e901a75 38629 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38630 build system and fixed gfxterm.c to work with different sized fonts.
38631
38632 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 38633
1e901a75 38634 * configure: Re-generated.
34c44600 38635
1e901a75 38636 * DISTLIST: Removed font/manager.c.
38637 Added font/font.c.
38638 Added font/font_cmd.c.
34c44600 38639
1e901a75 38640 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38641 compilation.
34c44600 38642
1e901a75 38643 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 38644
38645 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 38646
38647 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 38648
1e901a75 38649 * normal/menu.c: Likewise.
34c44600 38650
1e901a75 38651 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38652 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 38653
1e901a75 38654 * include/grub/font.h: Replaced with new file.
34c44600 38655
1e901a75 38656 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38657 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38658 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38659 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38660 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 38661 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 38662 fg_red, fg_green, fg_blue, fg_alpha.
38663 (grub_video_adapter): Removed blit_glyph.
34c44600 38664 (grub_video_blit_glyph): Removed.
38665
1e901a75 38666 * font/manager.c: Removed file.
34c44600 38667
38668 * font/font.c: New file.
38669
1e901a75 38670 * font/font_cmd.c: Likewise.
34c44600 38671
1e901a75 38672 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 38673
1e901a75 38674 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38675 (grub_video_vbe_map_rgba): Likewise.
38676 (grub_video_vbe_unmap_color_int): Likewise.
38677 (grub_video_vbe_blit_glyph): Removed.
38678 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 38679
1e901a75 38680 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38681 (get_pixel): Likewise.
34c44600 38682 (set_pixel): Likewise.
38683
1e901a75 38684 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 38685
1e901a75 38686 * term/gfxterm.c: Adapted to new font engine.
34c44600 38687
1e901a75 38688 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 38689
1e901a75 38690 * term/i386/pc/vga.c: Likewise.
34c44600 38691
1e901a75 38692 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 38693
1e901a75 38694 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 38695
1e901a75 38696 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38697
1e901a75 38698 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38699
1e901a75 38700 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 38701
1e901a75 38702 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 38703
1e901a75 38704 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 38705
1e901a75 38706 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 38707
1e901a75 38708 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38709
38710 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 38711
1e901a75 38712 * util/grub-mkconfig_lib.in: Changed font extension.
38713
278922e8 387142008-12-28 Felix Zielcke <fzielcke@z-51.de>
38715
38716 * util/getroot.c (grub_util_get_grub_dev): Add support for
38717 /dev/md/dNNpNN style partitionable mdraid devices.
38718
3ced05cf 387192008-12-12 Alex Smith <alex@alex-smith.me.uk>
38720
38721 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38722 at a time limit of the PXE TFTP API correctly.
38723 (grub_pxefs_close): Likewise.
38724
7fd0ee30 387252008-11-29 Robert Millan <rmh@aybabtu.com>
38726
34c44600 38727 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 38728 grub_ata_device_initialize() calls.
38729
34c44600 387302008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 38731
38732 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38733 iteration failed.
38734 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38735
89313780 387362008-11-28 Robert Millan <rmh@aybabtu.com>
38737
38738 Fix build on powerpc-ieee1275. Based on patch created by
38739 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38740 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38741 `kern/ieee1275/mmap.c'.
38742 * include/grub/powerpc/ieee1275/memory.h: New file.
38743
15257703 38744 Provide grub-install on coreboot.
38745 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38746 (grub_install_SOURCES): New variable.
38747 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38748 usable on coreboot.
38749
9fc5388a 387502008-11-25 Felix Zielcke <fzielcke@z-51.de>
38751
38752 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38753 to `grub_term_input_t'.
38754 (grub_term_get_current_output): Change return type to
38755 `grub_term_output_t'.
38756
bc3a2f31 387572008-11-22 Robert Millan <rmh@aybabtu.com>
38758
34c44600 38759 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 38760 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38761 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38762 grub_vga_text_cls().
38763
80fc88f2 38764 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 38765 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 38766
cbf36fd3 38767 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38768 to 0x200000 (avoids trouble with some OFW implementations, and matches
38769 with the one in Yaboot).
38770 Reported by Manoel Abranches
38771
73e8e268 387722008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 38773
38774 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38775 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38776
73e8e268 38777 * util/grub-mkconfig_lib.in (grub_warn): New function.
38778 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38779 warnings, to obtain consistent formatting.
38780 * util/grub.d/00_header.in: Likewise.
38781 * util/update-grub_lib.in: Likewise.
38782
e94045a1 38783 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 38784 Move comment text to `#error' stanza.
e94045a1 38785
79d29fd7 38786 Harmonize ieee1275's grub_available_iterate() with the generic
38787 grub_machine_mmap_iterate() interface (fixes a recently-introduced
38788 build problem on i386-ieee1275):
38789 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
38790 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
38791 parameter `type'. Update all users of this function.
38792 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38793 `kern/ieee1275/mmap.c'.
38794 * kern/ieee1275/init.c
38795 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
38796 with ...
38797 (grub_machine_mmap_iterate): ... this.
38798 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
38799 return type to `grub_err_t'. Update all implementations of this
38800 function prototype.
38801 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
38802 Likewise.
38803
60d6b16e 38804 Add `lsmmap' command (lists firmware-provided memory map):
38805 * commands/lsmmap.c: New file.
38806 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
38807 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
38808 variables.
38809 * conf/powerpc-ieee1275.rmk: Likewise.
38810 * conf/i386-coreboot.rmk: Likewise.
38811 * conf/i386-ieee1275.rmk: Likewise.
38812
ebaaf49b 388132008-11-19 Robert Millan <rmh@aybabtu.com>
38814
38815 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 38816 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
38817 constraints to initrd allocation (based on code from
38818 loader/i386/pc/linux.c). Without them, initrd was allocated too high
38819 for Linux to find it.
ebaaf49b 38820
dfab719f 388212008-11-14 Robert Millan <rmh@aybabtu.com>
38822
38823 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
38824 order to cope with duplicate slashes.
38825
10fc3eb9 388262008-11-14 Robert Millan <rmh@aybabtu.com>
38827
38828 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
38829 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
38830 don't want to mess with lower memory, because it is used in the Linux
38831 loader.
38832
38833 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 38834 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 38835 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
38836 is in our heap (probably as a result of it being corrupted during
2f2a3442 38837 decompression). Add #error instance with comment to explain why this
38838 loader isn't currently usable on PC/BIOS.
10fc3eb9 38839
e2e07847 388402008-11-14 Robert Millan <rmh@aybabtu.com>
38841
38842 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 38843 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 38844
fe8e8d69 388452008-11-12 Robert Millan <rmh@aybabtu.com>
38846
38847 Make loader/i386/linux.c buildable on i386-pc (although disabled).
38848
38849 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38850 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38851 from here ...
38852 * include/grub/i386/pc/memory.h: ... to here.
38853
976b07d0 388542008-11-12 Robert Millan <rmh@aybabtu.com>
38855
38856 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38857 split).
38858
38859 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38860 (grub_console_cur_color, grub_console_real_putchar)
38861 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38862 (grub_console_setcolorstate, grub_console_setcolor)
38863 (grub_console_getcolor): Move from here ...
38864 * include/grub/i386/vga_common.h: ... to here (new file).
38865
38866 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38867 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38868 `<grub/i386/io.h>'.
38869 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38870 `<grub/i386/vga_common.h>'.
38871
76679cd3 388722008-11-12 Robert Millan <rmh@aybabtu.com>
38873
38874 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38875 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38876 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38877 variables.
38878 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38879 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38880
38881 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38882 grub_console_init() with call to grub_vga_text_init().
38883 (grub_machine_fini): Replace call to
38884 grub_console_fini() with call to grub_vga_text_fini() and
38885 grub_at_keyboard_fini().
38886
38887 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38888 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38889 (grub_console_setcolorstate, grub_console_setcolor)
38890 (grub_console_getcolor): New function prototypes.
38891
38892 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38893 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38894 (grub_vga_text_setcursor): Static-ize.
38895 (grub_vga_text_term): New structure.
38896 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38897
38898 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38899 (grub_console_cur_color, grub_console_standard_color)
38900 (grub_console_normal_color, grub_console_highlight_color)
38901 (map_char, grub_console_putchar, grub_console_getcharwidth)
38902 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38903 (grub_console_getcolor): Move from here ...
38904 * term/i386/vga_common.c: ... to here (same function names).
38905
95b841d3 389062008-11-12 Robert Millan <rmh@aybabtu.com>
38907
38908 Use newly-added Multiboot support in coreboot.
38909
38910 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38911 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38912
38913 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38914 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38915 (codestart): Store the MBI in `startup_multiboot_info' when we're
38916 being loaded using Multiboot.
38917
38918 * kern/i386/coreboot/init.c (grub_machine_init): Move
38919 grub_at_keyboard_init() call to beginning of function (useful for
38920 debugging). Call grub_machine_mmap_init() before attempting to use
38921 grub_machine_mmap_iterate().
38922 (grub_lower_mem, grub_upper_mem): Move from here ...
38923 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38924 here (new file).
38925
38926 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38927 function prototype.
38928
761ca975 389292008-11-12 Robert Millan <rmh@aybabtu.com>
38930
38931 Fix a regression introduced by the at_keyboard.mod split. Because
38932 some terminals are default on some platforms and non-default on
38933 others, the first terminal being registered determines which is
38934 going to be default.
38935
38936 * kern/term.c (grub_term_register_input): If this is the first
38937 terminal being registered, set it as the current one.
38938 (grub_term_register_output): Likewise.
38939
38940 * term/efi/console.c (grub_console_init): Do not call
38941 grub_term_set_current_output() or grub_term_set_current_input().
38942 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38943 * term/i386/pc/console.c (grub_console_init): Likewise.
38944 (grub_console_fini): Do not call grub_term_set_current_input()
38945 (but leave grub_term_set_current_output() to restore text mode).
38946
6c529df7 389472008-11-10 Robert Millan <rmh@aybabtu.com>
38948
38949 * util/grub.d/00_header.in: Add backward compatibility check for
38950 versions of terminal.mod that don't understand `terminal_input' or
38951 `terminal_output'.
38952
132e4113 389532008-11-09 Robert Millan <rmh@aybabtu.com>
38954
38955 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38956 `terminal_input' / `terminal_output', not `terminal'.
38957
ac293d50 389582008-11-08 Robert Millan <rmh@aybabtu.com>
38959
38960 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 38961 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 38962
0025933a 389632008-11-08 Robert Millan <rmh@aybabtu.com>
38964
38965 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 38966 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 38967 members. Update all users.
38968 * util/console.c (grub_ncurses_term): Split in ...
38969 (grub_ncurses_term_input): ... this, and ...
38970 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 38971 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 38972
37c86336 389732008-11-08 Robert Millan <rmh@aybabtu.com>
38974
38975 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38976 (PKGDATA): Add $(pkgdata_SRCDIR).
38977 (pkglib_BUILDDIR): New variable.
38978 (pkgdata_SRCDIR): New variable.
38979 (build_env.mk): New target.
38980 (include_DATA): New variable.
38981 (install-local): Install $(include_DATA) files in $(includedir).
38982
b6c15a2d 389832008-11-07 Pavel Roskin <proski@gnu.org>
38984
d99d46f1 38985 * gendistlist.sh: Use C locale for sorting to ensure consistent
38986 output on all systems.
38987
b6c15a2d 38988 * util/grub.d/00_header.in: Remove incorrect space before
38989 "serial".
38990
c32ee8c9 389912008-11-07 Robert Millan <rmh@aybabtu.com>
38992
38993 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38994 per specification.
38995 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38996 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38997 (based on find_multi_boot1_header).
38998 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38999 using find_multi_boot2_header(), and abort if neither Multiboot or
39000 Multiboot headers were found.
39001
651c29b7 390022008-11-07 Robert Millan <rmh@aybabtu.com>
39003
39004 Modularize at_keyboard.mod:
39005
39006 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
39007 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
39008 (at_keyboard_mod_LDFLAGS): New variables.
39009
39010 Actual terminal split:
39011
39012 * include/grub/term.h (struct grub_term): Split in ...
39013 (struct grub_term_input): ... this, and ...
39014 (struct grub_term_output): ... this. Update all users.
39015 (grub_term_set_current): Split in ...
39016 (grub_term_set_current_input): ... this, and ...
39017 (grub_term_set_current_output): ... this.
39018 (grub_term_get_current): Split in ...
39019 (grub_term_get_current_input): ... this, and ...
39020 (grub_term_get_current_output): ... this.
39021 (grub_term_register): Split in ...
39022 (grub_term_register_input): ... this, and ...
39023 (grub_term_register_output): ... this.
39024 (grub_term_unregister): Split in ...
39025 (grub_term_unregister_input): ... this, and ...
39026 (grub_term_unregister_output): ... this.
39027 (grub_term_iterate): Split in ...
39028 (grub_term_iterate_input): ... this, and ...
39029 (grub_term_iterate_output): ... this.
39030
39031 * kern/term.c (grub_term_list): Split in ...
39032 (grub_term_list_input): ... this, and ...
39033 (grub_term_list_output): ... this. Update all users.
39034 (grub_cur_term): Split in ...
39035 (grub_cur_term_input): ... this, and ...
39036 (grub_cur_term_output): ... this. Update all users.
39037 (grub_term_set_current): Split in ...
39038 (grub_term_set_current_input): ... this, and ...
39039 (grub_term_set_current_output): ... this.
39040 (grub_term_get_current): Split in ...
39041 (grub_term_get_current_input): ... this, and ...
39042 (grub_term_get_current_output): ... this.
39043 (grub_term_register): Split in ...
39044 (grub_term_register_input): ... this, and ...
39045 (grub_term_register_output): ... this.
39046 (grub_term_unregister): Split in ...
39047 (grub_term_unregister_input): ... this, and ...
39048 (grub_term_unregister_output): ... this.
39049 (grub_term_iterate): Split in ...
39050 (grub_term_iterate_input): ... this, and ...
39051 (grub_term_iterate_output): ... this.
39052
39053 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
39054 a check for input and one for output (and only attempt to get keys
39055 from user when input works).
39056
39057 * util/grub-probe.c (grub_term_get_current): Split in ...
39058 (grub_term_get_current_input): ... this, and ...
39059 (grub_term_get_current_output): ... this.
39060 * util/grub-fstest.c: Likewise.
39061 * util/i386/pc/grub-setup.c: Likewise.
39062 * util/grub-editenv.c: Likewise.
39063
39064 Portability adjustments:
39065
39066 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
39067 `term/i386/pc/at_keyboard.c'.
39068 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
39069 grub_keyboard_controller_init() (now handled by terminal .init).
39070 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
39071 grub_at_keyboard_init().
39072 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
39073 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
39074 at_keyboard.mod via input terminal interface).
39075 * include/grub/i386/coreboot/console.h: Convert into a stub for
39076 `<grub/i386/pc/console.h>'.
39077
39078 Migrate full terminals to new API:
39079
39080 * term/efi/console.c (grub_console_term): Split into ...
39081 (grub_console_term_input): ... this, and ...
39082 (grub_console_term_output): ... this. Update all users.
39083 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
39084 (grub_ofconsole_init): Split into ...
39085 (grub_ofconsole_init_input): ... this, and ...
39086 (grub_ofconsole_init_output): ... this.
39087 (grub_ofconsole_term): Split into ...
39088 (grub_ofconsole_term_input): ... this, and ...
39089 (grub_ofconsole_term_output): ... this. Update all users.
39090 * term/i386/pc/serial.c (grub_serial_term): Split into ...
39091 (grub_serial_term_input): ... this, and ...
39092 (grub_serial_term_output): ... this. Update all users.
39093 * term/i386/pc/console.c (grub_console_term): Split into ...
39094 (grub_console_term_input): ... this, and ...
39095 (grub_console_term_output): ... this. Update all users.
39096 (grub_console_term_input): Only enable it on PC/BIOS platform.
39097 (grub_console_init): Remove grub_keyboard_controller_init() call.
39098
39099 Migrate input terminals to new API:
39100
39101 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
39102 `i386' and `i386/pc' to enable build on x86_64 (this driver is
39103 i386-specific anyway).
39104 (grub_console_checkkey): Rename to ...
39105 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
39106 users.
39107 (grub_keyboard_controller_orig): New variable.
39108 (grub_console_getkey): Rename to ...
39109 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
39110 users.
39111 (grub_keyboard_controller_init): Static-ize. Save original
39112 controller value so that it can be restored ...
39113 (grub_keyboard_controller_fini): ... here (new function).
39114 (grub_at_keyboard_term): New structure.
39115 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
39116 functions.
39117
39118 Migrate output terminals to new API:
39119
39120 * term/i386/pc/vga.c (grub_vga_term): Change type to
39121 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39122 members. Update all users.
39123 * term/gfxterm.c (grub_video_term): Change type to
39124 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39125 members. Update all users.
39126 * include/grub/i386/pc/console.h (grub_console_checkkey)
39127 (grub_console_getkey): Do not export (no longer needed by gfxterm,
39128 etc).
39129
39130 Migrate `terminal' command and userland tools to new API:
39131
39132 * commands/terminal.c (grub_cmd_terminal): Split into ...
39133 (grub_cmd_terminal_input): ... this, and ...
39134 (grub_cmd_terminal_output): ... this.
39135 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
39136 `terminal_input' and `terminal_output'.
39137 * util/grub.d/00_header.in: Adjust `terminal' calls to new
39138 `terminal_input' / `terminal_output' API.
39139 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
39140 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
39141 provided ${GRUB_TERMINAL}, convert it).
39142
96e5d876 391432008-11-04 Robert Millan <rmh@aybabtu.com>
39144
39145 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
39146 for FreeBSD.
39147 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
39148
556f3775 391492008-11-03 Bean <bean123ch@gmail.com>
39150
39151 * kern/elf.c (grub_elf32_load): Revert to previous code.
39152 (grub_elf64_load): Likewise.
39153
39154 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
39155
926b9823 391562008-11-01 Robert Millan <rmh@aybabtu.com>
39157
39158 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
39159 (TARGET_CPPFLAGS): Likewise.
39160 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
39161
1432e958 391622008-11-01 Carles Pina i Estany <carles@pina.cat>
39163
39164 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
39165
dba3f844 391662008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 39167
39168 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
39169 addition of objects until the code is not going to be able to fail.
39170
dba3f844 391712008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 39172
39173 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
39174 (add a missing NULL check, and correct them by moving the pointer
39175 operations after the actual check).
39176
7ab28c21 391772008-10-29 Robert Millan <rmh@aybabtu.com>
39178
39179 * util/i386/pc/grub-install.in: Handle empty string as output from
39180 make_system_path_relative_to_its_root().
39181
1b7748eb 391822008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
39183
39184 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
39185 circular metadata worst case scenario. If the metadata is circular
39186 then copy the wrap in place.
39187 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
39188 project lib/format_text/layout.h
39189 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
39190
c9618ab2 391912008-10-03 Felix Zielcke <fzielcke@z-51.de>
39192
7a36edca 39193 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 39194
bf981c62 391952008-10-03 Felix Zielcke <fzielcke@z-51.de>
39196
39197 * util/update-grub_lib.in: Mention filename in warning message.
39198
6d994591 391992008-09-29 Felix Zielcke <fzielcke@z-51.de>
39200
39201 * NEWS: Update for rename of update-grub to grub-mkconfig.
39202
18ade780 392032008-09-29 Felix Zielcke <fzielcke@z-51.de>
39204
39205 * util/update-grub_lib.in: Copy to ...
39206 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 39207 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 39208 * util/update-grub.in: Rename to ...
39209 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
39210 option. Add `--output' option to allow users to specify the generated
39211 configuration file. Default to stdout.
39212 (update_grub_dir): Rename to ...
39213 (grub_mkconfig_dir): ... this.
39214 (grub_cfg): Default to an empty string.
39215 * conf/common.rmk (update-grub): Rename to ...
39216 (grub-mkconfig): ... this.
39217 (update-grub_lib): Copy to ...
39218 (grub-mkconfig_lib): ... this.
39219 (update-grub_SCRIPTS): Copy to ...
39220 (grub-mkconfig_SCRIPTS): ... this. Update all users.
39221 (update-grub_DATA): Rename to ...
39222 (grub-mkconfig_DATA): ... this.
39223
556ce6ac 392242008-09-28 Robert Millan <rmh@aybabtu.com>
39225
39226 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
39227 to `modified'. Add the real `created' field.
39228 (grub_iso9660_uuid): Use `modified' rather than `created' for
39229 constructing the UUID.
39230
392312008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 39232
39233 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
39234 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
39235
92274e85 392362008-09-28 Bean <bean123ch@gmail.com>
39237
39238 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
39239 Thanks to Christian Franke for finding this bug.
39240
add6f17a 392412008-09-25 Robert Millan <rmh@aybabtu.com>
39242
39243 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
39244 instances of grub_util_get_disk_name() (see previous commit).
39245
d2a367b8 392462008-09-25 Robert Millan <rmh@aybabtu.com>
39247
39248 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
39249 `util/i386/get_disk_name.c'.
39250 * conf/i386-efi.rmk: Likewise.
39251 * conf/x86_64-efi.rmk: Likewise.
39252 * conf/i386-coreboot.rmk: Likewise.
39253 * conf/i386-ieee1275.rmk: Likewise.
39254 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
39255 `util/ieee1275/get_disk_name.c'.
39256 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
39257 * util/ieee1275/get_disk_name.c: Remove file.
39258 * util/i386/get_disk_name.c: Remove file.
39259 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
39260 "hd%d" for device.map entries, rather than using
39261 grub_util_get_disk_name().
39262
81a06771 392632008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 39264
39265 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
39266 warning.
39267 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
39268
5a004279 392692008-09-24 Carles Pina i Estany <carles@pina.cat>
39270
39271 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
39272 Changed to 0x5100.
39273 (GRUB_TERM_PPAGE): Changed to 0x4900.
39274
397093d3 392752008-09-24 Robert Millan <rmh@aybabtu.com>
39276
39277 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
39278 macros (they were i386-pc specific).
39279 * include/grub/sparc64/ieee1275/console.h: Likewise.
39280 * include/grub/efi/console.h: Likewise.
39281
a91b6c7c 392822008-09-22 Bean <bean123ch@gmail.com>
39283
39284 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
39285 resident and in attribute list.
39286
39287 * include/grub/ntfs.h (BMP_LEN): Removed.
39288
c40fd116 392892008-09-22 Bean <bean123ch@gmail.com>
39290
81a06771 39291 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 39292 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
39293
39294 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
39295 error occurs, as grub_disk_open will call grub_disk_close, which will
39296 call p->close (scsi).
39297
81a06771 392982008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 39299
39300 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
39301 (AC_PREREQ): Bumped to 2.59.
39302 (AC_TRY_COMPILE): Replace obsolete macro with ...
39303 (AC_COMPILE_IFELSE): ... this.
39304 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
39305 (AC_LINK_IFELSE): ... this.
39306
5dc43410 393072008-09-21 Felix Zielcke <fzielcke@z-51.de>
39308
39309 * autogen.sh: Add a call to `gendistlist.sh'.
39310
9035dce4 393112008-09-19 Christian Franke <franke@computer.org>
39312
39313 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
39314 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
39315 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
39316 Export __enable_execute_stack() to modules.
39317 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
39318 New function.
39319
7fd75377 393202008-09-09 Felix Zielcke <fzielcke@z-51.de>
39321
040030b3 39322 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
39323 Sort the list.
39324
393252008-09-09 Felix Zielcke <fzielcke@z-51.de>
39326
39327 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 39328 #include <grub/util/hostdisk.h>.
39329
89d5ffcf 393302008-09-08 Robert Millan <rmh@aybabtu.com>
39331
39332 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
39333 segments when their filesz is zero (grub_file_read() interprets
81a06771 39334 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 39335 Use `lowest_segment' rather than 0 for calculating the current
39336 segment load address.
39337
40da438f 393382008-09-08 Robert Millan <rmh@aybabtu.com>
39339
39340 * util/hostdisk.c (open_device): Replace a grub_util_info() call
39341 with grub_dprintf("hostdisk", ...), as it was so verbose that it
39342 clobbered useful information.
39343
ddbf5556 393442008-09-08 Robert Millan <rmh@aybabtu.com>
39345
39346 * include/grub/util/biosdisk.h: Move to ...
39347 * include/grub/util/hostdisk.h: ... here. Update all users.
39348 * util/biosdisk.c: Move to ...
39349 * util/hostdisk.c: ... here. Update all users.
39350
783d0f48 393512008-09-07 Robert Millan <rmh@aybabtu.com>
39352
39353 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
39354 variables.
39355 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
39356 and length can be stored directly in the `mbi->mmap_addr' and
39357 `mbi->mmap_length' struct fields.
39358
548e2ea5 393592008-09-07 Robert Millan <rmh@aybabtu.com>
39360
39361 * conf/i386.rmk: New file. Provides declaration for building
39362 `cpuid.mod'.
39363 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
39364 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
39365 variables.
39366 Include `conf/i386.mk'.
39367 * conf/i386-efi.rmk: Likewise.
39368 * conf/x86_64-efi.rmk: Likewise.
39369 * conf/i386-coreboot.rmk: Likewise.
39370 * conf/i386-ieee1275.rmk: Likewise.
39371
0ea85a37 393722008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
39373
39374 Based on patch created by Colin D Bennett <colin@gibibit.com>.
39375 Adds optimization support for BGR based modes.
39376
39377 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
39378 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39379 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39380 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39381 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39382 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39383 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39384 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39385 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39386 (grub_video_i386_vbeblit_index_index): Likewise.
39387 (grub_video_i386_vbeblit_replace_directN): Added.
39388 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39389 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39390 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39391 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39392 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39393 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 39394 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 39395 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39396 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39397 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39398 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39399 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39400 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
39401
39402 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
39403 (grub_video_i386_vbefill_R8G8B8): Likewise.
39404 (grub_video_i386_vbefill_index): Likewise.
39405 (grub_video_i386_vbefill_direct32): Added.
39406 (grub_video_i386_vbefill_direct24): Likewise.
39407 (grub_video_i386_vbefill_direct16): Likewise.
39408 (grub_video_i386_vbefill_direct8): Likewise.
39409
81a06771 39410 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 39411 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
39412 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
39413 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
39414 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
39415 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 39416
0ea85a37 39417 * video/video.c (grub_video_get_blit_format): Updated to use new
39418 blit formats. Added handling for 16 bit color modes.
81a06771 39419
39420 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 39421 fillers.
39422 (common_blitter): Updated to use new blitters.
39423
39424 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
39425 Removed.
39426 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39427 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39428 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39429 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39430 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39431 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39432 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39433 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39434 (grub_video_i386_vbeblit_index_index): Likewise.
39435 (grub_video_i386_vbeblit_replace_directN): Added.
39436 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39437 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39438 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39439 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39440 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39441 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
39442 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
39443 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39444 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39445 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39446 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39447 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39448 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 39449
0ea85a37 39450 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
39451 (grub_video_i386_vbefill_R8G8B8): Likewise.
39452 (grub_video_i386_vbefill_index): Likewise.
39453 (grub_video_i386_vbefill_direct32): Added.
39454 (grub_video_i386_vbefill_direct24): Likewise.
39455 (grub_video_i386_vbefill_direct16): Likewise.
39456 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 39457
0ea85a37 39458 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
39459 types.
81a06771 39460
0ea85a37 39461 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
39462 types.
81a06771 39463
0ea85a37 39464 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
39465 blitter types.
81a06771 39466
0ea85a37 39467 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
39468 types.
39469
e8a83df6 394702008-09-06 Felix Zielcke <fzielcke@z-51.de>
39471
39472 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
39473 RAID level 1.
39474
6bcd8ee5 394752008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 39476
6bcd8ee5 39477 * fs/iso9660.c (grub_iso9660_date): New structure.
39478 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
39479 (grub_iso9660_uuid): New function.
c375ae58 39480
59261157 394812008-09-05 Bean <bean123ch@gmail.com>
39482
39483 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
39484
39485 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
39486 insensitive bit for names in Win32 and Win32 & DOS namespace.
39487
39488 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
39489
39490 * include/grub/types.h (LONG_MAX): Likewise.
39491
58b6645a 394922008-09-04 Felix Zielcke <fzielcke@z-51.de>
39493
4ee55921 39494 * util/getroot.c: Include <config.h>.
39495 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
39496 add support for /dev/md/N devices and handle LVM double dash escaping.
39497
394982008-09-04 Felix Zielcke <fzielcke@z-51.de>
39499
39500 * config.guess: Update to latest version from config git.
39501 * config.sub: Likewise.
58b6645a 39502
9124f65d 395032008-09-03 Robert Millan <rmh@aybabtu.com>
39504
39505 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
39506 `disk->total_sectors'.
39507
81a06771 395082008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 39509
39510 * include/grub/normal.h: Fixed incorrect comment for
39511 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
39512
81a06771 395132008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 39514
39515 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
39516 values with defines.
39517
39518 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
39519 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
39520 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
39521 (GRUB_VBE_MODEATTR_COLOR): Likewise.
39522 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
39523 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
39524 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
39525 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
39526 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
39527 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
39528 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
39529 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
39530 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
39531 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
39532 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
39533 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
39534 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
39535 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
39536 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
39537
93d5cbf8 395382008-08-31 Robert Millan <rmh@aybabtu.com>
39539
39540 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
39541 declaration.
39542 (grub_multiboot): Fix a few warnings.
39543
21751d50 395442008-08-31 Robert Millan <rmh@aybabtu.com>
39545
39546 * loader/i386/pc/multiboot.c: Update comment not to say that
39547 boot_device support is unimplemented.
39548
e27a75c5 395492008-08-31 Robert Millan <rmh@aybabtu.com>
39550
39551 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
39552 or memory map support are unimplemented.
39553
81a06771 395542008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 39555
39556 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
39557
81a06771 395582008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 39559
39560 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
39561 total video memory in 'vbeinfo' output; show color format details for
39562 each video mode.
39563
7c5d8d95 395642008-08-30 Pavel Roskin <proski@gnu.org>
39565
39566 * util/genmoddep.c: Remove for real this time.
39567 * DISTLIST: Remove util/genmoddep.c.
39568
4cebd25a 395692008-08-30 Robert Millan <rmh@aybabtu.com>
39570
39571 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39572 as required by Multiboot spec (it was already 4-byte aligned, but
39573 only by chance).
39574
b497a269 395752008-08-29 Pavel Roskin <proski@gnu.org>
39576
e3925185 39577 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39578 * kern/powerpc/ieee1275/startup.S: ... this.
39579 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39580 * DISTLIST: Likewise.
39581
b497a269 39582 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39583 grub/cpu/kernel.h. Add start label for consistency with other
39584 platforms. Add grub_prefix immediately after start. Add jump
39585 to the code after grub_prefix.
39586 * include/grub/powerpc/kernel.h: Provide valid values for
39587 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39588
6e5a42fe 395892008-08-29 Bean <bean123ch@gmail.com>
39590
39591 * configure.ac: Change host_os to cygwin for mingw.
39592 (asprintf): New check for function.
39593
39594 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39595 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39596
39597 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 39598 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 39599 sync, sleep and grub_util_get_disk_size for mingw.
39600
39601 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39602 to get size in mingw.
39603 (open_device): Use flag O_BINARY if it's defined.
39604 (find_root_device): Add dummy code for mingw.
39605
39606 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39607 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39608 (get_scsi_disk_name): Return 0 for mingw.
39609
39610 * util/hostfs.c: #include <grub/util/misc.h>.
39611 (grub_hostfs_open): Use "rb" flag to open file, use
39612 grub_util_get_disk_size to get disk size for mingw.
39613
39614 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39615 (asprintf): New function if HAVE_ASPRINTF is not set.
39616 (sync): New function for mingw.
39617 (sleep): Likewise.
39618 (grub_util_get_disk_size): Likewise.
39619
ab3f2673 396202008-08-28 Pavel Roskin <proski@gnu.org>
39621
39622 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39623 kern/time.c.
39624
1c282483 396252008-08-28 Robert Millan <rmh@aybabtu.com>
39626
39627 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39628
678e849c 396292008-08-28 Robert Millan <rmh@aybabtu.com>
39630
39631 Change find_grub_drive() syntax so it doesn't prevent it from
39632 detecting NULL names as errors.
39633
39634 * util/biosdisk.c (find_grub_drive): Move free slot search code
39635 from here ...
39636 (find_free_slot): ... to here.
39637 (read_device_map): Use find_free_slot() to search for free slots.
39638
965c75ca 396392008-08-27 Marco Gerards <marco@gnu.org>
39640
39641 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39642 (scsi_mod_SOURCES): New variable.
39643 (scsi_mod_CFLAGS): Likewise
39644 (scsi_mod_LDFLAGS): Likewise.
39645
39646 * disk/scsi.c: New file.
39647
39648 * include/grub/scsi.h: Likewise.
39649
39650 * include/grub/scsicmd.h: Likewise.
39651
39652 * disk/ata.c: Include <grub/scsi.h>.
39653 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39654 instead.
39655 (grub_ata_iterate): Skip ATAPI devices.
39656 (grub_ata_open): Only handle ATAPI devices.
39657 (struct grub_atapi_read): Removed.
39658 (grub_atapi_readsector): Likewise.
39659 (grub_ata_read): No longer handle ATAPI devices.
39660 (grub_ata_write): Likewise.
39661 (grub_atapi_iterate): New function.
39662 (grub_atapi_read): Likewise.
39663 (grub_atapi_write): Likewise.
39664 (grub_atapi_open): Likewise.
39665 (grub_atapi_close): Likewise.
39666 (grub_atapi_dev): New variable.
39667 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39668 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39669
39670 * include/grub/disk.h (enum grub_disk_dev_id): Add
39671 `GRUB_DISK_DEVICE_SCSI_ID'.
39672
c07ae501 396732008-08-26 Robert Millan <rmh@aybabtu.com>
39674
39675 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39676 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39677 descriptive.
39678
5ed20adc 396792008-08-23 Bean <bean123ch@gmail.com>
39680
39681 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39682 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39683 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39684 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39685 dm_nv.mod.
39686 (raid5rec_mod_SOURCES): New macro.
39687 (raid5rec_mod_CFLAGS): Likewise.
39688 (raid5rec_mod_LDFLAGS): Likewise.
39689 (raid6rec_mod_SOURCES): Likewise.
39690 (raid6rec_mod_CFLAGS): Likewise.
39691 (raid6rec_mod_LDFLAGS): Likewise.
39692 (mdraid_mod_SOURCES): Likewise.
39693 (mdraid_mod_CFLAGS): Likewise.
39694 (mdraid_mod_LDFLAGS): Likewise.
39695 (dm_nv_mod_SOURCES): Likewise.
39696 (dm_nv_mod_CFLAGS): Likewise.
39697 (dm_nv_mod_LDFLAGS): Likewise.
39698
39699 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39700 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39701 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39702
39703 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39704 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39705
39706 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39707
39708 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39709
39710 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39711
39712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39713
39714 * disk/raid5_recover.c: New file.
39715
39716 * disk/raid6_recover.c: Likewise.
39717
39718 * disk/mdraid_linux.c: Likewise.
39719
39720 * disk/dmraid_nvidia.c: Likewise.
39721
39722 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39723 ULONG_MAX.
39724
39725 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39726 calculate the size of raid device.
39727 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39728 different layout of raid5.
39729 (grub_raid_scan_device): Remove code specific to mdraid.
39730 (grub_raid_list): New variable.
39731 (free_array): New function.
39732 (grub_raid_register): Likewise.
39733 (grub_raid_unregister): Likewise.
39734 (grub_raid_rescan): Likewise.
39735 (GRUB_MOD_INIT): Don't iterate device here.
39736 (GRUB_MOD_FINI): Use free_array to release resource.
39737
39738 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39739 (grub_raid5_recover_func_t): New function variable type.
39740 (grub_raid6_recover_func_t): Likewise.
39741 (grub_raid5_recover_func): New variable.
39742 (grub_raid6_recover_func): Likewise.
39743 (grub_raid_register): New function.
39744 (grub_raid_unregister): Likewise.
39745 (grub_raid_rescan): Likewise.
39746 (grub_raid_block_xor): Likewise.
39747
39748 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39749 (CMD_CRC): New macro.
39750 (part): Removed.
39751 (read_file): Handle device as well as file.
39752 (cmd_crc): New function.
39753 (fstest): Handle multiple disks.
39754 (options): Remove part, raw and long, add root and diskcount.
39755 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 39756 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 39757 add handling for the new options, support multiple disks.
39758
39759 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39760
29c18915 397612008-08-23 Bean <bean123ch@gmail.com>
39762
39763 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39764
39765 * genfslist.sh: Ignore kernel.mod.
39766
39767 * genpartmaplist.sh: Likewise.
39768
8415f261 397692008-08-23 Robert Millan <rmh@aybabtu.com>
39770
39771 * util/getroot.c (find_root_device): Skip anything that starts with
39772 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39773
d5a7dc5b 397742008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 39775
d5a7dc5b 39776 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39777 * util/grub.d/00_header.in: Allow the administrator to change default
39778 gfxmode via ${GRUB_GFXMODE}.
39779
380cfbb4 397802008-08-21 Felix Zielcke <fzielcke@z-51.de>
39781
39782 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39783
c9baafe7 397842008-08-21 Robert Millan <rmh@aybabtu.com>
39785
39786 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
39787 loader.
39788 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
39789 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
39790
e290bef2 397912008-08-20 Carles Pina i Estany <carles@pina.cat>
39792
39793 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
39794 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
39795
f9dbfc96 397962008-08-19 Robert Millan <rmh@aybabtu.com>
39797
39798 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
39799 (struct grub_virtual_screen): Remove `cursor_color'.
39800 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
39801 initialization.
39802 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
39803
dd6bd6ab 398042008-08-18 Robert Millan <rmh@aybabtu.com>
39805
39806 Unify (identical) linux_normal.c files.
39807 * loader/i386/efi/linux_normal.c: Move from here ...
39808 * loader/linux_normal.c: ... to here. Update all users.
39809 * loader/i386/pc/linux_normal.c: Delete. Update all users.
39810 * loader/i386/ieee1275/linux_normal.c: Likewise.
39811
7f42f83e 398122008-08-18 Robert Millan <rmh@aybabtu.com>
39813
39814 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
39815 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
39816 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
39817 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
39818 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
39819 New macros.
39820 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
39821 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
39822 (GRUB_LINUX_CL_END_OFFSET): ... to here.
39823 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
39824 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
39825 (GRUB_EFI_CL_END_OFFSET): Rename to ...
39826 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
39827 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
39828 Initialize `params->video_cursor_x' and `params->video_cursor_y'
39829 portably using grub_getxy().
39830 Replace `-EFI' with `-bzImage' in boot message.
39831
38487ddb 398322008-08-17 Robert Millan <rmh@aybabtu.com>
39833
39834 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
39835
deceb3ec 398362008-08-17 Robert Millan <rmh@aybabtu.com>
39837
39838 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
39839
39840 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
39841 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
39842 (grub_machine_mmap_iterate): New function declaration.
39843 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
39844 structure.
39845 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
39846 macros.
39847
39848 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
39849 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39850 Move e820 parsing from here ...
39851 * kern/i386/pc/mmap.c: New file.
39852 (grub_machine_mmap_iterate): ... to here.
39853
39854 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39855 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39856 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39857 (grub_available_iterate): Redeclare to return `void', and redeclare
39858 its hook to use grub_uint64_t as addr and size parameters, and rename
39859 to ...
39860 (grub_machine_mmap_iterate): ... this. Update all users.
39861
39862 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39863 to make it more readable. Rename to ...
39864 (grub_machine_mmap_iterate): ... this.
39865
39866 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39867 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39868 (grub_multiboot): Allocate an extra region after the payload, and fill
39869 it with a Multiboot memory map. Adjust a.out loader to calculate size
39870 with the extra space.
39871 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39872 with the extra space.
39873
f8aa0f43 398742008-08-17 Carles Pina i Estany <carles@pina.cat>
39875
9807deb9 39876 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 39877
605f5bb6 398782008-08-17 Felix Zielcke <fzielcke@z-51.de>
39879
39880 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39881 mdate-sh to the list `find' searches for.
39882 * DISTLIST: Regenerated.
39883
210db6c6 398842008-08-16 Felix Zielcke <fzielcke@z-51.de>
39885
39886 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39887 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 39888 genmoddep.awk, gensymlist.sh.in.
39889 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 39890 * DISTLIST: Regenerated.
48cdbfd4 39891 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 39892
1082b929 398932008-08-16 Robert Millan <rmh@aybabtu.com>
39894
39895 * disk/raid.c (grub_raid_init): Handle/report errors set by
39896 grub_device_iterate().
39897 * disk/lvm.c (grub_lvm_init): Likewise.
39898
42ce5170 398992008-08-15 Bean <bean123ch@gmail.com>
39900
39901 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39902 and datehook.mod.
39903 (datetime_mod_SOURCES): New macro.
39904 (datetime_mod_CFLAGS): Likewise.
39905 (datetime_mod_LDFLAGS): Likewise.
39906 (date_mod_SOURCES): Likewise.
39907 (date_mod_CFLAGS): Likewise.
39908 (date_mod_LDFLAGS): Likewise.
39909 (datehook_mod_SOURCES): Likewise.
39910 (datehook_mod_CFLAGS): Likewise.
39911 (datehook_mod_LDFLAGS): Likewise.
39912
39913 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39914 and datehook.mod.
39915 (datetime_mod_SOURCES): New macro.
39916 (datetime_mod_CFLAGS): Likewise.
39917 (datetime_mod_LDFLAGS): Likewise.
39918 (date_mod_SOURCES): Likewise.
39919 (date_mod_CFLAGS): Likewise.
39920 (date_mod_LDFLAGS): Likewise.
39921 (datehook_mod_SOURCES): Likewise.
39922 (datehook_mod_CFLAGS): Likewise.
39923 (datehook_mod_LDFLAGS): Likewise.
39924
39925 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39926 and datehook.mod.
39927 (datetime_mod_SOURCES): New macro.
39928 (datetime_mod_CFLAGS): Likewise.
39929 (datetime_mod_LDFLAGS): Likewise.
39930 (date_mod_SOURCES): Likewise.
39931 (date_mod_CFLAGS): Likewise.
39932 (date_mod_LDFLAGS): Likewise.
39933 (datehook_mod_SOURCES): Likewise.
39934 (datehook_mod_CFLAGS): Likewise.
39935 (datehook_mod_LDFLAGS): Likewise.
39936
39937 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39938 and datehook.mod.
39939 (datetime_mod_SOURCES): New macro.
39940 (datetime_mod_CFLAGS): Likewise.
39941 (datetime_mod_LDFLAGS): Likewise.
39942 (date_mod_SOURCES): Likewise.
39943 (date_mod_CFLAGS): Likewise.
39944 (date_mod_LDFLAGS): Likewise.
39945 (datehook_mod_SOURCES): Likewise.
39946 (datehook_mod_CFLAGS): Likewise.
39947 (datehook_mod_LDFLAGS): Likewise.
39948
39949 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39950 and datehook.mod.
39951 (datetime_mod_SOURCES): New macro.
39952 (datetime_mod_CFLAGS): Likewise.
39953 (datetime_mod_LDFLAGS): Likewise.
39954 (date_mod_SOURCES): Likewise.
39955 (date_mod_CFLAGS): Likewise.
39956 (date_mod_LDFLAGS): Likewise.
39957 (datehook_mod_SOURCES): Likewise.
39958 (datehook_mod_CFLAGS): Likewise.
39959 (datehook_mod_LDFLAGS): Likewise.
39960
39961 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39962
39963 * commands/date.c: New file.
39964
39965 * hook/datehook.c: Likewise.
39966
39967 * include/grub/lib/datetime.h: Likewise.
39968
39969 * include/grub/i386/cmos.h: Likewise.
39970
39971 * lib/datetime.c: Likewise.
39972
39973 * lib/i386/datetime.c: Likewise.
39974
39975 * lib/efi/datetime.c: Likewise.
39976
0e9242da 399772008-08-14 Robert Millan <rmh@aybabtu.com>
39978
39979 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39980 (grub_mkelfimage_SOURCES): New variable.
39981 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39982
39983 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39984 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39985 * conf/powerpc-ieee1275.rmk: Likewise.
39986 * conf/i386-ieee1275.rmk: Likewise.
39987
39988 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39989 * kern/i386/coreboot/init.c: Likewise.
39990
39991 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39992 with `<grub/cpu/kernel.h>'.
39993 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39994 to ...
39995 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39996 * kern/i386/coreboot/startup.S: Likewise.
39997
39998 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39999 (GRUB_MOD_GAP): Remove.
40000 * include/grub/powerpc/kernel.h: New file.
40001 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
40002 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
40003 * include/grub/i386/kernel.h: New file.
40004 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
40005 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
40006 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
40007
40008 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
40009 `grub-mkelfimage'.
40010 Use --directory when invoking grub_mkimage.
40011
40012 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
40013 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
40014 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
40015 and GRUB_KERNEL_CPU_PREFIX.
40016
b86408f8 400172008-08-14 Felix Zielcke <fzielcke@z-51.de>
40018
d5e619ca 40019 * include/grub/err.h (grub_err_printf): New function prototype.
40020 * util/misc.c (grub_err_printf): New function.
40021 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
40022 grub_printf.
40023 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 40024
7161f0e0 400252008-08-13 Robert Millan <rmh@aybabtu.com>
40026
40027 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
40028
a1967522 400292008-08-13 Robert Millan <rmh@aybabtu.com>
40030
40031 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
40032 boot entry.
40033
371458b5 400342008-08-12 Robert Millan <rmh@aybabtu.com>
40035
40036 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
40037 of the relocation code from here ...
40038 (grub_multiboot): ... to here.
40039 (forward_relocator, backward_relocator): Move from here ...
40040 * kern/i386/loader.S (grub_multiboot_forward_relocator)
40041 (grub_multiboot_backward_relocator): ... to here.
40042 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
40043 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
40044 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
40045 (grub_multiboot_forward_relocator_end)
40046 (grub_multiboot_backward_relocator)
40047 (grub_multiboot_backward_relocator_end): New variables.
40048
05f9452b 400492008-08-12 Bean <bean123ch@gmail.com>
40050
40051 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
40052
20024ab0 400532008-08-11 Robert Millan <rmh@aybabtu.com>
40054
40055 * kern/i386/linuxbios/startup.S: Move from here ...
40056 * kern/i386/coreboot/startup.S: ... to here.
40057
40058 * kern/i386/linuxbios/init.c: Move from here ...
40059 * kern/i386/coreboot/init.c: ... to here.
40060
40061 * kern/i386/linuxbios/table.c: Move from here ...
40062 * kern/i386/coreboot/mmap.c: ... to here.
40063
40064 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
40065
e352e9cd 400662008-08-11 Robert Millan <rmh@aybabtu.com>
40067
40068 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
40069 errors. Leave it to the upper layer to handle them.
40070
2d05bc6a 400712008-08-09 Christian Franke <franke@computer.org>
40072
40073 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
40074 * conf/common.rmk: Install `grub-pe2elf' only if requested.
40075 Install `grub.d/10_windows' only on Cygwin.
40076 * configure.ac: Add subst of `target_os'.
40077 Check `target_os' also before setting TARGET_OBJ2ELF.
40078 Add `--enable-grub-pe2elf'.
40079
042bd419 400802008-08-08 Robert Millan <rmh@aybabtu.com>
40081
40082 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
40083 (grub_last_time): Change type to grub_uint64_t.
40084 (grub_disk_open): Migrate code from to using grub_get_time_ms().
40085 (grub_disk_close): Likewise.
40086
40087 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
40088 (run_menu): Migrate code from to using grub_get_time_ms().
40089
40090 * util/misc.c (grub_get_time_ms): New function.
40091
7f280db5 400922008-08-08 Marco Gerards <marco@gnu.org>
40093
40094 * disk/ata.c (grub_ata_regget): Change return type to
40095 `grub_uint8_t'.
40096 (grub_ata_regget2): Likewise.
40097 (grub_ata_wait_status): New function.
40098 (grub_ata_wait_busy): Removed function, updated all users to use
40099 `grub_ata_wait_status'.
40100 (grub_ata_wait_drq): Likewise.
40101 (grub_ata_cmd): New function.
40102 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
40103 error handling.
40104 (grub_ata_pio_write): Add error handling.
40105 (grub_atapi_identify): Likewise.
40106 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
40107 handling.
40108 (grub_ata_identify): Use `grub_ata_cmd' and improve error
40109 handling. Actually use the detected registers. Reorder the
40110 detection logic such that it is easier to read.
40111 (grub_ata_pciinit): Do not assign the same ID to each controller.
40112 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
40113 handling.
40114 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
40115
40116 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
40117
1fbc5e66 401182008-08-08 Marco Gerards <marco@gnu.org>
40119
40120 * NEWS: Update.
40121
819ce6c0 401222008-08-07 Bean <bean123ch@gmail.com>
40123
40124 * include/grub/x86_64/pci.h: New file.
40125
5c41d44d 401262008-08-07 Christian Franke <franke@computer.org>
40127
40128 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
40129 (TIMER2_GATE): Likewise.
40130 (grub_pit_wait): Add enable/disable of the timer2 gate
40131 bit of port 0x61. This fixes a possible infinite loop.
40132
5ebc275d 401332008-08-07 Bean <bean123ch@gmail.com>
40134
40135 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
40136 kern/i386/tsc.c and kern/i386/pit.c.
40137
40138 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
40139 x86_64 platform.
40140
40141 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
40142 <grub/i386/tsc.h>.
40143
40144 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
40145
e383b3d0 401462008-08-07 Bean <bean123ch@gmail.com>
40147
40148 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
40149
40150 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
40151
40152 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
40153 multiple inclusion. Add #include <grub/types.h>.
40154
1cbb58ac 401552008-08-06 Christian Franke <franke@computer.org>
40156
40157 * conf/common.rmk: Build and install `10_windows'.
40158 * util/grub.d/10_windows.in: New script.
40159
337f5a1e 401602008-08-06 Pavel Roskin <proski@gnu.org>
40161
40162 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
40163
057bc4ac 401642008-08-06 Robert Millan <rmh@aybabtu.com>
40165
40166 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
40167 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
40168
2b99f123 401692008-08-06 Bean <bean123ch@gmail.com>
40170
40171 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
40172 (grub_pxefs_fs_int): Remove dummy definition.
40173 (grub_pxefs_open): Use data->block_size to store the current block
40174 size setting.
40175 (grub_pxefs_read): Use block size stored in data->block_size. As the
40176 value of grub_pxe_blksize can be changed after the file is opened.
40177
9f0234cb 401782008-08-06 Bean <bean123ch@gmail.com>
40179
40180 * fs/i386/pc/pxe.c (curr_file): new variable.
40181 (grub_pxefs_open): Simply the handling of pxe file system. Don't
40182 require the dummy internal file system anymore.
40183 (grub_pxefs_read): Removed.
40184 (grub_pxefs_close): Likewise.
40185 (grub_pxefs_fs_int): Likewise.
40186 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
40187 connection when we switch file.
40188 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
40189
a55d42e0 401902008-08-06 Robert Millan <rmh@aybabtu.com>
40191
40192 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
40193 `halt.mod'.
40194 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
40195 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
40196
40197 * kern/i386/halt.c: New file.
40198 * kern/i386/reboot.c: Likewise.
40199 * include/grub/i386/reboot.h: Likewise.
40200 * include/grub/i386/halt.h: Likewise.
40201
40202 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
40203 Include `<grub/cpu/halt.h>'.
40204 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
40205 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
40206
40207 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
40208 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
40209 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
40210 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
40211 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
40212 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
40213 from here ...
40214 * include/grub/i386/at_keyboard.h: ... to here.
40215
24371d26 402162008-08-05 Robert Millan <rmh@aybabtu.com>
40217
40218 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
40219 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
40220 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
40221 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40222 `kern/generic/millisleep.c'.
40223
40224 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
40225 instead of grub_get_rtc().
40226 (grub_tsc_init): Initialize `tsc_boot_time'.
40227
40228 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
40229 (grub_machine_init): Use grub_tsc_init() rather than
40230 installing an RTC-based handler via grub_install_get_time_ms().
40231
40232 * kern/i386/pit.c: New file.
40233 * include/grub/i386/pit.h: Likewise.
40234
9e7007b3 402352008-08-05 Bean <bean123ch@gmail.com>
40236
40237 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
40238
40239 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
40240 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
40241 (pxe_mod_SOURCES): New macro.
40242 (pxe_mod_CFLAGS): Likewise.
40243 (pxe_mod_LDFLAGS): Likewise.
40244 (pxecmd_mod_SOURCES): Likewise.
40245 (pxecmd_mod_CFLAGS): Likewise.
40246 (pxecmd_mod_LDFLAGS): Likewise.
40247
40248 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
40249 (grub_pxe_call): Likewise.
40250
40251 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
40252
40253 * commands/i386/pc/pxecmd.c: New file.
40254
9f0234cb 40255 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 40256
40257 * include/grub/i386/pc/pxe.h: Likewise.
40258
6977d49f 402592008-08-05 Bean <bean123ch@gmail.com>
40260
40261 * util/console.c (grub_console_cur_color): New variable.
40262 (grub_console_standard_color): Likewise.
40263 (grub_console_normal_color): Likewise.
40264 (grub_console_highlight_color): Likewise.
40265 (color_map): Likewise.
40266 (use_color): Likewise.
40267 (NUM_COLORS): New macro.
40268 (grub_ncurses_setcolorstate): Handle color properly.
40269 (grub_ncurses_setcolor): Don't change color here, just remember the
40270 settings, color will be set in grub_ncurses_setcolorstate.
40271 (grub_ncurses_getcolor): New function.
40272 (grub_ncurses_init): Initialize color pairs.
40273 (grub_ncurses_term): New member grub_ncurses_getcolor.
40274
9c2ff3ee 402752008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 40276
9c2ff3ee 40277 High resolution timer support. Implemented for x86 CPUs using TSC.
40278 Extracted generic grub_millisleep() so it's linked in only as needed.
40279 This requires a Pentium compatible CPU; if the RDTSC instruction is
40280 not supported, then it falls back on the generic grub_get_time_ms()
40281 implementation that uses the machine's RTC.
40282
40283 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
40284 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40285 `kern/generic/millisleep.c'.
40286
40287 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
40288 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
40289
40290 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
40291 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
40292
40293 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40294
40295 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40296 `kern/generic/millisleep.c'.
40297
40298 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40299
40300 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
40301
40302 * kern/generic/rtc_get_time_ms.c: New file.
40303
40304 * kern/generic/millisleep.c: New file.
337f5a1e 40305
9c2ff3ee 40306 * kern/misc.c: Don't include
40307 <kern/time.h> anymore.
40308 (grub_millisleep_generic): Removed.
40309
40310 * commands/sleep.c (grub_interruptible_millisleep): Uses
40311 grub_get_time_ms() instead of grub_get_rtc().
40312
40313 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
40314 function.
40315 (grub_cpu_is_cpuid_supported): New inline function.
40316 (grub_cpu_is_tsc_supported): New inline function.
40317 (grub_tsc_init): New function prototype.
40318 (grub_tsc_get_time_ms): New function prototype.
40319
40320 * kern/i386/tsc.c (grub_get_time_ms): New file.
40321
40322 * include/grub/time.h: Include <grub/types.h.
40323 (grub_millisleep_generic): Removed.
40324 (grub_get_time_ms): New prototype.
40325 (grub_install_get_time_ms): New prototype.
40326 (grub_rtc_get_time_ms): New prototype.
40327
40328 * kern/time.c (grub_get_time_ms): New function.
40329 (grub_install_get_time_ms): New function.
40330
40331 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
40332 <grub/time.h> anymore.
40333 (grub_millisleep): Removed.
40334 (grub_machine_init): Call grub_tsc_init.
40335
40336 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
40337 get_time_ms() implementation.
40338
40339 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
40340 (ieee1275_get_time_ms): New function.
40341 (grub_machine_init): Install get_time_ms() implementation.
40342
40343 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
40344 (grub_machine_init): Call grub_tsc_init().
40345 (grub_millisleep): Removed.
bf06a93f 40346
9c2ff3ee 40347 * kern/ieee1275/init.c (grub_millisleep): Removed.
40348 (grub_machine_init): Install ieee1275_get_time_ms()
40349 implementation.
40350 (ieee1275_get_time_ms): New function.
40351 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
40352 real work.
40353
9ec92aaf 403542008-08-05 Marco Gerards <marco@gnu.org>
40355
40356 * disk/ata.c: Include <grub/pci.h>.
40357 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
40358 (grub_ata_initialize): Rewritten.
40359 (grub_ata_device_initialize): New function.
40360
8d23f507 403612008-08-04 Pavel Roskin <proski@gnu.org>
40362
40363 * kern/main.c: Include grub/mm.h.
40364
5e15ee3d 403652008-08-04 Robert Millan <rmh@aybabtu.com>
40366
40367 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
40368 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
40369 corruption problem).
40370
a9053f8f 403712008-08-04 Robert Millan <rmh@aybabtu.com>
40372
40373 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
40374 warnings introduced in my last commit.
40375
dd19c7d7 403762008-08-03 Robert Millan <rmh@aybabtu.com>
40377
40378 Make PCI available on all i386 architectures.
40379
40380 * include/grub/i386/pc/pci.h: Move from here ...
40381 * include/grub/i386/pci.h: ... to here.
40382
40383 * include/grub/i386/pc/pci.h: Remove.
40384 * include/grub/i386/efi/pci.h: Remove.
40385 * include/grub/x86_64/efi/pci.h: Remove.
40386
40387 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
40388 `<grub/cpu/pci.h>'.
40389
40390 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
40391 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
40392 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
40393
40394 * conf/i386-ieee1275.rmk: Likewise.
40395
e14a6184 403962008-08-03 Robert Millan <rmh@aybabtu.com>
40397
40398 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
40399 (grub_console_setcursor): Make it possible to set cursor off.
40400
52768e37 404012008-08-03 Robert Millan <rmh@aybabtu.com>
40402
40403 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
40404 of modules instead of assuming which platform provides what.
40405 * util/update-grub.in: Likewise.
40406
2d52f57f 404072008-08-03 Robert Millan <rmh@aybabtu.com>
40408
40409 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
40410 instead of `grub_install_dos_part' to determine whether a drive needs
40411 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 40412 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 40413
2a5cd121 404142008-08-02 Robert Millan <rmh@aybabtu.com>
40415
40416 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
40417
93808428 404182008-08-02 Robert Millan <rmh@aybabtu.com>
40419
40420 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
40421 of informational grub_dprintf() calls.
40422
3bd0a12a 404232008-08-02 Robert Millan <rmh@aybabtu.com>
40424
40425 * disk/memdisk.c (memdisk_size): Don't initialize.
40426 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
40427
40428 * include/grub/i386/pc/kernel.h
40429 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
40430 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
40431 (grub_memdisk_image_size, grub_arch_memdisk_addr)
40432 (grub_arch_memdisk_size): Remove.
40433
40434 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
40435 field (was only used to transfer a constant). Add `type' field to
40436 support multiple module types.
40437 (grub_module_iterate): New function.
40438
40439 * kern/device.c (grub_device_open): Do not hide error messages
40440 when grub_disk_open() fails. Use grub_print_error() instead.
40441
40442 * kern/i386/pc/init.c (grub_arch_modules_addr)
40443 (grub_arch_memdisk_size): Remove functions.
40444 (grub_arch_modules_addr): Return the module address in high memory
40445 (now that it isn't copied anymore).
40446
40447 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
40448 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
40449 decompression routine (grub_total_module_size already includes that
40450 now). Don't copy modules back to low memory.
40451
40452 * kern/main.c: Include `<grub/mm.h>'.
40453 (grub_load_modules): Split out (and use) ...
40454 (grub_module_iterate): ... this function, which iterates through
40455 module objects and runs a hook.
40456 Comment out grub_mm_init_region() call, as it would cause non-ELF
40457 modules to be overwritten.
40458
40459 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
40460 the memdisk image in its own region, make it part of the module list.
40461 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
40462 (main): Parse --memdisk|-m option, and pass user-provided path as
40463 parameter to generate_image().
40464 (add_segments): Pass `memdisk_path' down to load_modules().
40465 (load_modules): Embed memdisk image in module section when requested.
40466 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
40467 `header.type' instead of `header.offset'.
40468
40469 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
40470 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
40471 (memdisk_mod_LDFLAGS): New variables.
40472 * conf/i386-coreboot.rmk: Likewise.
40473 * conf/i386-ieee1275.rmk: Likewise.
40474
a927cc73 404752008-08-02 Robert Millan <rmh@aybabtu.com>
40476
40477 * loader/i386/pc/multiboot.c (playground, forward_relocator)
40478 (backward_relocator): New variables. Used to allocate and relocate
40479 the payload, respectively.
40480 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 40481 address, install the appropriate relocator code in each bound of
a927cc73 40482 the payload, and set the entry point such that
40483 grub_multiboot_real_boot() will jump to one of them.
40484
40485 * kern/i386/loader.S (grub_multiboot_payload_size)
40486 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40487 (grub_multiboot_payload_entry_offset): New variables.
40488 (grub_multiboot_real_boot): Set cpu context to what the relocator
40489 expects, and jump to the relocator instead of the payload.
40490
40491 * include/grub/i386/loader.h (grub_multiboot_payload_size)
40492 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40493 (grub_multiboot_payload_entry_offset): Export.
40494
b15d8a0c 404952008-08-01 Bean <bean123ch@gmail.com>
40496
40497 * normal/menu_entry.c (editor_getline): Don't return the original
40498 string as result, as it will be released by lexer once it has done
40499 using it.
40500
cdfb3d22 405012008-08-01 Robert Millan <rmh@aybabtu.com>
40502
40503 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
40504 within menuentries, not before them.
40505 util/grub.d/10_hurd.in: Likewise.
40506
9175e93d 405072008-08-01 Bean <bean123ch@gmail.com>
40508
40509 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
40510 (bufio_mod_SOURCES): New macro.
40511 (bufio_mod_CFLAGS): Likewise.
40512 (bufio_mod_LDFLAGS): Likewise.
40513
40514 * include/grub/bufio.h: New file.
40515
40516 * io/bufio.c: Likewise.
40517
40518 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
40519 (grub_video_reader_png): Use grub_buffile_open to open file.
40520
40521 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
40522 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
40523
40524 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
40525 (grub_video_reader_tga): Use grub_buffile_open to open file.
40526
40527 * font/manager.c: Include <grub/bufio.h>.
40528 (add_font): Use grub_buffile_open to open file.
40529
3d8383e7 405302008-07-31 Robert Millan <rmh@aybabtu.com>
40531
40532 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
40533 ELF segments, use a macro for arbitrarily accessing any of them instead
40534 of preparing a pointer that allows access to one at a time.
40535 (grub_multiboot_load_elf64): Likewise.
40536
16e641b6 405372008-07-31 Bean <bean123ch@gmail.com>
40538
40539 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
40540 GRUB_KERNEL_MACHINE_DATA_END.
40541
59198b72 405422008-07-30 Robert Millan <rmh@aybabtu.com>
40543
40544 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
40545 Increase from 0x50 to 0x60.
40546 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
40547 use UUIDs to identify the root drive for them. If that's not
40548 possible, abort.
40549 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
40550 check, for cross-disk installs.
40551
ae88bca3 405522008-07-30 Robert Millan <rmh@aybabtu.com>
40553
40554 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
40555 is non-empty, use it to set the `prefix' environment variable instead
40556 of the usual approach.
40557 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
40558 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
40559 environment variable instead of dummy make_install_device().
40560
40561 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
40562 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 40563 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 40564
40565 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
40566 New variable reference.
40567 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
40568 New macro. Defines offset of `grub_prefix' within startup.S (relative
40569 to `start').
40570 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40571 section within startup.S (relative to `start').
40572 * include/grub/i386/coreboot/kernel.h: Likewise.
40573
40574 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40575 Overwrite grub_prefix with its contents, at the beginning of the
40576 first segment.
40577 (main): Understand -p|--prefix.
40578
14f41dd1 405792008-07-30 Robert Millan <rmh@aybabtu.com>
40580
40581 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40582
4ca049a3 405832008-07-30 Robert Millan <rmh@aybabtu.com>
40584
40585 * term/i386/pc/vga_text.c (grub_console_cls): Use
40586 grub_console_gotoxy() to go back to beginning of the screen.
40587 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40588
2921d337 405892008-07-29 Christian Franke <franke@computer.org>
40590
40591 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40592 Add conversion of emulated mount points on Cygwin.
40593
b609876d 405942008-07-29 Christian Franke <franke@computer.org>
40595
40596 * util/update-grub.in: Add a check for admin
40597 group on Cygwin.
40598 Remove old `grub.cfg.new' before creation.
40599 Add `-f' to `mv' to handle the different filesystem
40600 semantics of Windows.
40601
e93e4679 406022008-07-29 Bean <bean123ch@gmail.com>
40603
40604 * normal/main.c (get_line): Fix buffer overflow bug.
40605
41694fd0 406062008-07-28 Robert Millan <rmh@aybabtu.com>
40607
40608 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40609 (struct grub_apple_header): New struct. Describes the layout of
40610 the partmap header.
40611 (apple_partition_map_iterate): Check the header magic as well as the
40612 partition magic (which was already being checked).
40613
cfd0b4e6 406142008-07-28 Pavel Roskin <proski@gnu.org>
40615
40616 * genmk.rb: Add a warning to the beginning of the output that
40617 it's a generated file and should not be edited.
40618
93cce016 406192008-07-28 Robert Millan <rmh@aybabtu.com>
40620
40621 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40622 with the same number are found, just use issue a warning with
40623 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 40624
cd1df915 406252008-07-27 Robert Millan <rmh@aybabtu.com>
40626
40627 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40628 information.
40629
b70a8427 406302008-07-27 Bean <bean123ch@gmail.com>
40631
40632 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40633 (grub_fat_find_dir): Ignore case when comparing filename.
40634
8f5e379f 406352008-07-27 Bean <bean123ch@gmail.com>
40636
40637 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40638 smallino, as it's more descriptive, and i8count can be confused with
40639 the other field count.
40640 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40641 inode type.
40642
a85cd5a0 406432008-07-27 Bean <bean123ch@gmail.com>
40644
40645 * commands/crc.c: New file.
40646
40647 * lib/crc.c: Likewise.
40648
40649 * include/grub/lib/crc.h: Likewise.
40650
40651 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40652
40653 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40654 (hexdump): Move this function to ...
40655
40656 * lib/hexdump.c: ... here.
40657
40658 * include/grub/hexdump.h: Renamed to ...
40659
40660 * include/grub/lib/hexdump.h: ... this.
40661
40662 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40663
40664 * util/grub-editenv.c: Likewise.
40665
40666 * include/envblk.h: Renamed to ...
40667
40668 * include/lib/envblk.h: ... this.
40669
40670 * util/envblk.c: Renamed to ...
40671
40672 * lib/envblk.c: ... this.
40673
40674 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40675 lib/hexdump.c.
40676 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40677 (pkglib_MODULES): Add crc.mod.
40678 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40679 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40680 (crc_mod_SOURCES): New macro.
40681 (crc_mod_CFLAGS): Likewise.
40682 (crc_mod_LDFLAGS): Likewise.
40683
40684 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40685
40686 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40687
40688 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40689
40690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40691
40692 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40693
c298def0 406942008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 40695
40696 * commands/help.c: Include <grub/term.h>.
40697 (TERM_WIDTH): Removed. Updated all users.
40698
cc349fb3 406992008-07-27 Pavel Roskin <proski@gnu.org>
40700
40701 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40702 spurious warnings about a comment within a comment.
40703
9051607e 407042008-07-25 Robert Millan <rmh@aybabtu.com>
40705
40706 * util/getroot.c (find_root_device): Skip devices that match
40707 /dev/dm-[0-9]. This lets the real device be found for any type of
40708 abstraction (LVM, EVMS, RAID..).
40709 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40710 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40711 device is found first, find_root_device() will now skip it.
40712
01453bfc 407132008-07-24 Pavel Roskin <proski@gnu.org>
40714
40715 * include/grub/types.h: Use __builtin_bswap32() and
40716 __builtin_bswap64() with gcc 4.3 and newer.
40717
6af9849f 407182008-07-24 Christian Franke <franke@computer.org>
40719
3a0fa256 40720 * util/i386/pc/grub-install.in: If `--debug' is specified,
40721 pass `--verbose' to grub-setup.
40722 Abort script if make_system_path_relative_to_its_root() fails.
40723
7810e747 407242008-07-24 Bean <bean123ch@gmail.com>
40725
40726 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40727 variable `target_platform' should be `platform'.
40728
42290e17 407292008-07-24 Bean <bean123ch@gmail.com>
40730
51cc5193 40731 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 40732 (grub_png_init_fixed_block): New function.
40733 (grub_png_decode_image_data): Handle fixed huffman code compression.
40734
2a8a80e4 407352008-07-24 Bean <bean123ch@gmail.com>
40736
40737 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40738 (grub_pe2elf_SOURCES): New macro.
40739 (CLEANFILES): Add grub-pe2elf.
40740
40741 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40742 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40743 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40744 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40745 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40746 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40747 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40748 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40749 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40750 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40751 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40752 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40753 (GRUB_PE32_DT_FUNCTION): Likewise.
40754 (GRUB_PE32_REL_I386_DIR32): Likewise.
40755 (GRUB_PE32_REL_I386_REL32): Likewise.
40756 (grub_pe32_symbol): New structure.
40757 (grub_pe32_reloc): Likewise.
40758
40759 * util/grub-pe2elf.c: New file.
40760
40761 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40762 start symbol in non pc platform.
40763
40764 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40765
40766 The following patches are from Christian Franke.
40767
40768 * include/grub/dl.h: Remove .previous, gas supports this only
40769 for ELF format.
40770
40771 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40772 Remove .type, gas supports this only for ELF format.
40773
40774 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40775 nullbytes in symbol table. This fixes an infinite loop if table is
40776 zero filled.
40777
40778 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40779 TARGET_IMG_LDFLAGS and EXEEXT.
40780
40781 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40782 TARGET_IMG_LDFLAGS_AC.
40783 (grub_CHECK_STACK_ARG_PROBE): New function.
40784
40785 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
40786
40787 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
40788
40789 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
40790 to set TARGET_IMG_LD* accordingly.
40791 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
40792 Add call to grub_CHECK_STACK_ARG_PROBE.
40793 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
40794
40795 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
40796
40797 * genmk.rb: Add EXEEXT to CLEANFILES.
40798
12ccdb75 407992008-07-23 Robert Millan <rmh@aybabtu.com>
40800
40801 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
40802 define the codes for arrows and lines used for the menu).
40803 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
40804 as well.
40805
40806 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
40807 fonts, because the latter are too slow.
40808
18eeaf04 408092008-07-21 Bean <bean123ch@gmail.com>
40810
40811 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
40812 a20. Run keyboard test last, as it will cause macbook to halt.
40813
b095e2ad 408142008-07-18 Pavel Roskin <proski@gnu.org>
40815
40816 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
40817 load foreign architecture modules correctly anyway. Keep
40818 support for loading host architecture modules, whether we
40819 compile them or not.
40820
737feb35 408212008-07-17 Pavel Roskin <proski@gnu.org>
40822
3f4ce737 40823 * configure.ac: Use -m32 or -m64 regardless of whether we had to
40824 change target_cpu. The compiler default can mismatch target_cpu
40825 in any case.
40826
4ad2d049 40827 * disk/efi/efidisk.c: Fix format warnings on x86_64.
40828 * kern/efi/efi.c: Likewise.
40829
f6130a12 40830 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
40831 target compiler is functional.
40832 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
40833 are set up.
40834
58393a2d 40835 * configure.ac: Default to efi platform for x86_64-apple. Allow
40836 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
40837 adjustments from the rest, only do them if target is not
40838 explicitly given. Merge other adjustments with the final sanity
40839 check. Remove an extraneous check for supported CPU. Be
40840 specific which CPU and which platform is not supported.
40841
737feb35 40842 * configure.ac: Default to pc platform for x86_64.
40843
546f966a 408442008-07-17 Robert Millan <rmh@aybabtu.com>
40845
40846 Partial LinuxBIOS -> Coreboot rename.
40847
40848 * conf/i386-linuxbios.rmk: Renamed to ...
40849 * conf/i386-coreboot.rmk: ... this.
40850 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40851 * configure.ac: Accept "coreboot" as input platform (but maintain
40852 compatibility with "linuxbios").
40853 * include/grub/i386/linuxbios: Renamed to ...
40854 * include/grub/i386/coreboot: ... this.
40855
20011694 408562008-07-17 Bean <bean123ch@gmail.com>
40857
40858 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 40859 (appleldr_mod_SOURCE): New variable.
20011694 40860 (appleldr_mod_CFLAGS): Likewise.
40861 (appleldr_mod_LDFLAGS): Likewise.
40862 (pci_mod_SOURCES): Likewise.
40863 (pci_mod_CFLAGS): Likewise.
40864 (pci_mod_LDFLAGS): Likewise.
40865 (lspci_mod_SOURCES): Likewise.
40866 (lspci_mod_CFLAGS): Likewise.
40867 (lspci_mod_LDFLAGS): Likewise.
40868
40869 * conf/x86_64-efi.rmk: New file.
40870
40871 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40872 macro.
40873 (grub_efidisk_write): Likewise.
40874
40875 * include/efi/api.h (efi_call_0): New macro.
40876 (efi_call_1): Likewise.
40877 (efi_call_2): Likewise.
40878 (efi_call_3): Likewise.
40879 (efi_call_4): Likewise.
40880 (efi_call_5): Likewise.
40881 (efi_call_6): Likewise.
40882
40883 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40884 grub_rescue_cmd_chainloader.
40885
40886 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40887 (grub_pe32_optional_header): Change some fields based on i386 or
40888 x86_64 platform.
40889 (GRUB_PE32_PE32_MAGIC): Likewise.
40890
40891 * include/grub/efi/uga_draw.h: New file.
40892
40893 * include/grub/elf.h (STN_ABS): New constant.
40894 (R_X86_64_NONE): Relocation constant for x86_64.
40895 (R_X86_64_64): Likewise.
40896 (R_X86_64_PC32): Likewise.
40897 (R_X86_64_GOT32): Likewise.
40898 (R_X86_64_PLT32): Likewise.
40899 (R_X86_64_COPY): Likewise.
40900 (R_X86_64_GLOB_DAT): Likewise.
40901 (R_X86_64_JUMP_SLOT): Likewise.
40902 (R_X86_64_RELATIVE): Likewise.
40903 (R_X86_64_GOTPCREL): Likewise.
40904 (R_X86_64_32): Likewise.
40905 (R_X86_64_32S): Likewise.
40906 (R_X86_64_16): Likewise.
40907 (R_X86_64_PC16): Likewise.
40908 (R_X86_64_8): Likewise.
40909 (R_X86_64_PC8): Likewise.
40910
40911 * include/grub/i386/efi/pci.h: New file.
40912
40913 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40914 Change it value based on platform.
40915 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40916 (GRUB_E820_RAM): Likewise.
40917 (GRUB_E820_RESERVED): Likewise.
40918 (GRUB_E820_ACPI): Likewise.
40919 (GRUB_E820_NVS): Likewise.
40920 (GRUB_E820_EXEC_CODE): Likewise.
40921 (GRUB_E820_MAX_ENTRY): Likewise.
40922 (grub_e820_mmap): New structure.
40923 (linux_kernel_header): Change the efi field according to different
40924 kernel version, also field from linux_kernel_header.
40925
40926 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40927
40928 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40929 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40930 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40931 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40932 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40933 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40934 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40935 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40936 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40937 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40938
40939 * include/grub/x86_64/efi/kernel.h: New file.
40940
40941 * include/grub/x86_64/efi/loader.h: Likewise.
40942
40943 * include/grub/x86_64/efi/machine.h: Likewise.
40944
40945 * include/grub/x86_64/efi/pci.h: Likewise.
40946
40947 * include/grub/x86_64/efi/time.h: Likewise.
40948
40949 * include/grub/x86_64/linux.h: Likewise.
40950
40951 * include/grub/x86_64/setjmp.h: Likewise.
40952
40953 * include/grub/x86_64/time.h: Likewise.
40954
40955 * include/grub/x86_64/types.h: Likewise.
40956
40957 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40958 GRUB_TARGET_SIZEOF_VOID_P.
40959
40960 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40961 (grub_efi_locate_handle): Likewise.
40962 (grub_efi_open_protocol): Likewise.
40963 (grub_efi_set_text_mode): Likewise.
40964 (grub_efi_stall): Likewise.
40965 (grub_exit): Likewise.
40966 (grub_reboot): Likewise.
40967 (grub_halt): Likewise.
40968 (grub_efi_exit_boot_services): Likewise.
40969 (grub_get_rtc): Likewise.
40970
40971 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40972 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40973 (grub_efi_allocate_pages): Wrap efi calls.
40974 (grub_efi_free_pages): Wrap efi calls.
40975 (grub_efi_get_memory_map): Wrap efi calls.
40976
40977 * kern/x86_64/dl.c: New file.
40978
40979 * kern/x86_64/efi/callwrap.S: Likewise.
40980
40981 * kern/x86_64/efi/startup.S: Likewise.
40982
40983 * loader/efi/appleloader.c: Likewise.
40984
40985 * loader/efi/chainloader.c (cmdline): New variable.
40986 (grub_chainloader_unload): Wrap efi calls.
40987 (grub_chainloader_boot): Likewise.
40988 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40989 command line.
40990
40991 * loader/efi/chainloader_normal.c (chainloader_command):
40992 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40993 command line.
40994
40995 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40996 method.
40997 (grub_e820_add_region): New function.
40998 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40999 booting.
41000 (grub_find_video_card): New function.
41001 (grub_linux_setup_video): New function.
41002 (grub_rescue_cmd_linux): Probe for video information.
41003
41004 * normal/x86_64/setjmp.S: New file.
41005
41006 * term/efi/console.c (map_char): New function.
41007 (grub_console_putchar): Map unicode char.
41008 (grub_console_checkkey): Wrap efi calls.
41009 (grub_console_getkey): Likewise.
41010 (grub_console_getwh): Likewise.
41011 (grub_console_gotoxy): Likewise.
41012 (grub_console_cls): Likewise.
41013 (grub_console_setcolorstate): Likewise.
41014 (grub_console_setcursor): Likewise.
41015
41016 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
41017
59652a20 410182008-07-16 Pavel Roskin <proski@gnu.org>
41019
ef294055 41020 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
41021 format strings.
41022
59652a20 41023 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
41024 pointer, not an integer. This fixes a warning and prevents
41025 precision loss on 64-bit systems.
41026 (relocate_addresses): Remove unneeded cast.
41027
afc3b5d7 410282008-07-15 Pavel Roskin <proski@gnu.org>
41029
506b2b3e 41030 * kern/i386/ieee1275/init.c: Include grub/cache.h.
41031
62ead89c 41032 * term/ieee1275/ofconsole.c: Disable code unused on i386.
41033
c4cd51d7 41034 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
41035 Fix comparison between signed and unsigned.
41036
0d3d8f28 41037 * include/grub/i386/ieee1275/console.h: Declare
41038 grub_console_init() and grub_console_fini().
41039
8804b286 41040 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
41041 It's empty and unused.
41042
ee01cf35 41043 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
41044 beginning to avoid warnings with some compilers.
41045
afc3b5d7 41046 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
41047 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
41048
e4e8eaa5 410492008-07-14 Pavel Roskin <proski@gnu.org>
41050
407aceb4 41051 * kern/env.c (grub_register_variable_hook): Don't copy empty
41052 string, it leaks memory. Pass "" to grub_env_set(), it should
41053 handle constant strings.
41054
e4e8eaa5 41055 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
41056 * commands/cmp.c (grub_cmd_cmp): Likewise.
41057 * kern/dl.c (grub_dl_flush_cache): Likewise.
41058 (grub_dl_load_core): Likewise.
41059 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
41060 (grub_elf64_load_phdrs): Likewise.
41061
d4e2dad3 410622008-07-13 Pavel Roskin <proski@gnu.org>
41063
41064 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
41065 between signed and unsigned.
41066 (LzmaEnc_Finish): Fix warning about an unused parameter.
41067
aa24b516 410682008-07-13 Bean <bean123ch@gmail.com>
41069
41070 * Makefile.in (enable_lzo): New rule.
41071
41072 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
41073
41074 * configure.ac (ENABLE_LZO): New option --enable-lzo.
41075
41076 * boot/i386/pc/lnxboot.S: #include <config.h>.
41077
41078 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 41079 its value according to the compression algorithm used, lzo or lzma.
aa24b516 41080
41081 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
41082 compression algorithm according to configure macro.
41083
41084 * kern/i386/pc/startup.S (codestart): Likewise.
41085
41086 * kern/i386/pc/lzma_decode.S: New file.
41087
41088 * include/grub/lib/LzFind.h: Likewise.
41089
41090 * include/grub/lib/LzHash.h: Likewise.
41091
41092 * include/grub/lib/LzmaDec.h: Likewise.
41093
41094 * include/grub/lib/LzmaEnc.h: Likewise.
41095
41096 * include/grub/lib/LzmaTypes.h: Likewise.
41097
41098 * lib/LzFind.c: Likewise.
41099
41100 * lib/LzmaDec.c: Likewise.
41101
41102 * lib/LzmaEnc.c: Likewise.
41103
4ae821ac 411042008-07-13 Bean <bean123ch@gmail.com>
41105
41106 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
41107 (grub_ext4_extent_header): New structure.
41108 (grub_ext4_extent): Likewise.
41109 (grub_ext4_extent_idx): Likewise.
41110 (grub_ext4_find_leaf): New function.
41111 (grub_ext2_read_block): Handle extents.
41112
9a745147 411132008-07-12 Robert Millan <rmh@aybabtu.com>
41114
41115 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
41116
d49a4cf6 411172008-07-11 Robert Millan <rmh@aybabtu.com>
41118
41119 * util/grub.d/40_custom.in: New file. Example on how to add custom
41120 entries to /etc/grub.d.
41121 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
41122 40_custom (implicitly, by merging all the grub.d rules).
41123
947414b4 411242008-07-11 Pavel Roskin <proski@gnu.org>
41125
0059cf6f 41126 * commands/read.c (grub_getline): Fix invalid memory access.
41127 Don't add newline to the variable value.
41128
947414b4 41129 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
41130 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
41131 (serial_hw_get_port): Check validity of the port number.
41132 (grub_cmd_serial): Check return value of serial_hw_get_port().
41133
62a02d00 411342008-07-07 Pavel Roskin <proski@gnu.org>
41135
41136 * boot/i386/pc/diskboot.S (notification_string): Replace
41137 "Loading kernel" with just "loading". This is shorter, less
41138 confusing and saves a few bytes for possible future changes.
41139
3e5581b0 411402008-07-05 Pavel Roskin <proski@gnu.org>
41141
ea387a48 41142 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
41143 size for ATAPI devices, they are undefined. Output sector
41144 number in decimal form.
41145
3e5581b0 41146 * disk/ata.c: Use named constants for status bits.
41147
fdecb8fd 411482008-07-04 Pavel Roskin <proski@gnu.org>
41149
bcd35b90 41150 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
41151 grub_addr_t before casting it to the void pointer to fix a
41152 warning. Non-addressable regions are discarded earlier.
41153 (grub_arch_modules_addr): Cast _end to grub_addr_t.
41154 * kern/i386/linuxbios/table.c: Include grub/misc.h.
41155 (check_signature): Don't shadow table_header.
41156 (grub_linuxbios_table_iterate): Cast numeric constants to
41157 grub_linuxbios_table_header_t.
41158 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
41159 grub_stop().
41160
af58ab3d 41161 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
41162 prevent warnings.
41163
1759aa57 41164 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
41165 pointer, which can cause warnings. Support 64-bit addresses.
41166
fdecb8fd 41167 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
41168 of sizeof(long). This fixes PowerPC image generation on x86_64.
41169
8516d2a8 411702008-07-04 Robert Millan <rmh@aybabtu.com>
41171
41172 This fixes a performance issue when pc & gpt partmap iterators
41173 didn't abort iteration even after our hook found what it was
fe987087 41174 looking for (often causing expensive probes of non-existent drives).
8516d2a8 41175
41176 Some callers relied on previous buggy behaviour, since they would
34c44600 41177 raise an error when their own hooks caused early abortion of its
8516d2a8 41178 iteration.
41179
41180 * kern/device.c (grub_device_open): Improve error message.
41181 * disk/lvm.c (grub_lvm_open): Likewise.
41182 * disk/raid.c (grub_raid_open): Likewise.
41183
41184 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
41185 when hook requests it, independently of grub_errno.
41186 (pc_partition_map_probe): Do not fail when find_func() caused
41187 early abortion of pc_partition_map_iterate().
41188
41189 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
41190 when hook requests it, independently of grub_errno.
41191 (gpt_partition_map_probe): Do not fail when find_func() caused
41192 early abortion of gpt_partition_map_iterate().
41193
41194 * kern/partition.c (grub_partition_iterate): Abort parent iteration
41195 when hook requests it, independently of grub_errno. Do not fail when
41196 part_map_iterate_hook() caused early abortion of p->iterate().
41197
41198 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
41199 when grub_partition_iterate() returned with non-zero.
41200
277d0de9 412012008-07-03 Pavel Roskin <proski@gnu.org>
41202
41203 * disk/ata.c (grub_ata_pio_write): Check status before writing,
41204 like we do in grub_ata_pio_read().
41205 (grub_ata_readwrite): Always write individual sectors. Fix the
41206 sector count for the remainder.
41207 (grub_ata_write): Enable writing to ATA devices. Correctly
41208 report error for ATAPI devices.
41209
d4c9b428 412102008-07-02 Pavel Roskin <proski@gnu.org>
41211
e43fc690 41212 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
41213 warning.
41214
f707af42 41215 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
41216 for every read sector, we already increment it for the whole
41217 batch. This fixes reading more than 256 sectors at once.
41218
11e16b15 41219 * util/grub-editenv.c (cmd_info): Cast argument to long
41220 explicitly. ptrdiff_t reduces to int on i386.
41221
cbabfdd4 41222 * util/grub-editenv.c (main): Be specific which parameter is
41223 missing.
41224
b8fbce0a 41225 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
41226 (memdisk): Make memdisk_orig_addr a pointer.
41227
c9c8e606 41228 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
41229 for file offsets, use grub_off_t instead. Fix printf format
41230 warnings.
41231
ca62e598 41232 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
41233 there. Real unexpected warnings should not drown in the noise
41234 about known problems.
41235
ce8d1766 41236 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
41237 grub_disk_addr_t for memory addresses.
41238
00c7a56a 41239 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
41240 explicitly to fix a warning.
41241
08d3ef09 41242 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
41243
cb71ba20 41244 * Makefile.in (MODULE_LDFLAGS): New variable.
41245 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
41246 the linker accepts --build-id=none.
41247 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
41248 MODULE_LDFLAGS.
41249 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
41250
d4c9b428 41251 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
41252 those in Linux XFS code. Provide a way to access 64-bit parent
41253 inode.
41254 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
41255 the end of struct grub_xfs_dir_header.
41256
d4156eee 412572008-07-02 Bean <bean123ch@gmail.com>
41258
41259 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
41260 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41261 and GRUB_IEEE1275_FLAG_NO_ANSI.
41262
41263 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
41264 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41265 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
41266
41267 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
41268 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
41269
41270 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
41271 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
41272
41273 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
41274 esc sequence on non ANSI terminal.
41275 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
41276
41277 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
41278 beginning of file.
41279
2270f77b 412802008-07-02 Bean <bean123ch@gmail.com>
41281
41282 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
41283 (grub_editenv_SOURCES): New variable.
41284 (pkglib_MODULES): Add loadenv.mod.
41285 (loadenv_mod_SOURCES): New variable.
41286 (loadenv_mod_CFLAGS): Likewise.
41287 (loadenv_mod_LDFLAGS): Likewise.
41288
41289 * include/grub/envblk.h: New file.
41290
41291 * util/envblk.c: New file.
41292
41293 * util/grub-editenv.c: New file.
41294
41295 * commands/loadenv.c: New file.
41296
0e9e51ec 412972008-07-01 Pavel Roskin <proski@gnu.org>
41298
d89b7634 41299 * include/multiboot2.h (struct multiboot_tag_module): Use char,
41300 not unsigned char. This fixes warnings and is consistent with
41301 other tags.
41302
bf1835b1 41303 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
41304
8222a04b 41305 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
41306
6a42d99d 41307 * term/tparm.c (analyze): Always set *popcount.
41308
10b159d1 41309 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
41310 cast to fix a warning.
41311
b8789f6c 41312 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
41313 cast to suppress a warning.
41314
29d7e38a 41315 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
41316 grub_fshelp_read_file() expects.
41317
f341f669 41318 * fs/fat.c: Fix UUID calculation on big-endian systems. We
41319 write uuid as a 32-bit value in CPU byte order, so declare and
41320 use it as such.
41321
0e9e51ec 41322 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
41323 long if the format specifier expects it.
41324 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
41325 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41326 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
41327 long to fix a warning.
41328 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
41329 grub_dprintf() arguments to fix warnings.
41330
3aefa857 413312008-06-30 Pavel Roskin <proski@gnu.org>
41332
56c7668b 41333 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
41334 install_bsd_part immediately before core.img is embedded or
41335 modified on disk. This fixes core.img verification if core.img
41336 cannot be embedded.
41337
3aefa857 41338 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
41339 core_path to calculate the blocklist.
41340 Patch from Javier Martín <lordhabbit@gmail.com>
41341
5444088d 413422008-06-29 Robert Millan <rmh@aybabtu.com>
41343
41344 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
41345 block to disk block.
41346 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
41347 Patch from Niels Böhm <bitbucket@arcor.de>
41348
674835c8 413492008-06-29 Robert Millan <rmh@aybabtu.com>
41350
41351 * util/update-grub_lib.in (font_path): Search for fonts in
41352 /boot/grub first, which is more likely to be readable (we aren't
41353 deciding where fonts live, just looking for them).
41354
f527dbc8 413552008-06-26 Pavel Roskin <proski@gnu.org>
41356
6c2d8df6 41357 * util/biosdisk.c (read_device_map): Don't leave dead map
41358 entries for devices failing stat() check.
41359
f527dbc8 41360 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
41361 core_path_dev for the core.img path on the target device.
41362
aebe3d13 413632008-06-26 Robert Millan <rmh@aybabtu.com>
41364
41365 * disk/fs_uuid.c: New file.
41366 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
41367 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
41368 (fs_uuid_mod_LDFLAGS): New variables.
41369 * include/grub/disk.h (grub_disk_dev_id): Add
41370 `GRUB_DISK_DEVICE_UUID_ID'.
41371 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
41372 implement iterate().
41373
37aaf354 413742008-06-26 Robert Millan <rmh@aybabtu.com>
41375
41376 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
41377 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
41378 Linux image includes no initrd.
41379
25ff262a 413802008-06-21 Javier Martín <lordhabbit@gmail.com>
41381
41382 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
41383 call to resolve the core image location that effectively appended the
41384 name twice.
41385
76a2bd44 413862008-06-21 Robert Millan <rmh@aybabtu.com>
41387
41388 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
41389 call from here ...
41390
41391 * util/grub.d/10_hurd.in: ... to here ...
41392 * util/grub.d/10_linux.in: ... and here.
41393
650e1c79 413942008-06-19 Robert Millan <rmh@aybabtu.com>
41395
fe987087 41396 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 41397 after it has been set by grub_machine_set_prefix().
41398
6ce63911 413992008-06-19 Robert Millan <rmh@aybabtu.com>
41400
41401 * commands/search.c (search_label, search_fs_uuid, search_file): Print
41402 search result when not saving to variable, not the other way around.
41403 When saving to variable, abort iteration as soon as a match is found.
41404
73940cec 414052008-06-19 Robert Millan <rmh@aybabtu.com>
41406
41407 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
41408 check for partition that provides /boot/grub. Its logic is flawed,
41409 as it prevents prepare_grub_to_access_device() from being called
41410 multiple times.
41411
3c62a39d 414122008-06-19 Robert Millan <rmh@aybabtu.com>
41413
41414 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
41415 "insmod" command directly when abstraction modules are needed,
fe987087 41416 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 41417 since it had already been processed).
41418
47395a42 414192008-06-19 Pavel Roskin <proski@gnu.org>
41420
41421 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
41422 changed. This is needed in case GRUB_LIBDIR changes.
41423 * conf/i386-ieee1275.rmk: Likewise.
41424 * conf/i386-linuxbios.rmk: Likewise.
41425 * conf/i386-pc.rmk: Likewise.
41426 * conf/powerpc-ieee1275.rmk: Likewise.
41427
a145ac2d 414282008-06-18 Pavel Roskin <proski@gnu.org>
41429
41430 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
41431 kernel_elf_symlist.c to symlist.c for consistency with other
41432 architectures. Update all users.
41433 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41434
7847c51e 414352008-06-18 Robert Millan <rmh@aybabtu.com>
41436
41437 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
41438 it in prefix.
41439
41440 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
41441 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
41442 a RAID device, run setup() for all members independently on whether
41443 LVM abstraction is being used.
41444 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
41445 If grub-mkimage has set `*install_dos_part == -2', don't override this
41446 value.
41447 Perform *install_dos_part adjustments independently on whether
41448 we're embedding or not.
41449 Clarify error message when image is too big for embedding.
41450 Remove duplicate *install_dos_part stanza.
41451
b23e5644 414522008-06-17 Robert Millan <rmh@aybabtu.com>
41453
41454 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
41455 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
41456 variables.
41457 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
41458 values in grub_ofconsole_normal_color and
41459 grub_ofconsole_highlight_color (they're not directly related to
41460 background and foreground).
41461 (grub_ofconsole_setcolorstate): Extract background and foreground
41462 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
41463
0aac2f79 414642008-06-17 Robert Millan <rmh@aybabtu.com>
41465
41466 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
41467 /boot/grub for the check in last commit, not /boot (they could be
41468 different partitions).
41469
3cca7ef3 414702008-06-16 Robert Millan <rmh@aybabtu.com>
41471
41472 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
41473 asked to setup access for the same partition that provides /boot,
41474 don't bother using UUIDs since our root already has the value we
41475 want.
41476
347396d8 414772008-06-16 Robert Millan <rmh@aybabtu.com>
41478
41479 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
41480 I2O devices.
41481 Patch from Sven Mueller <sven@debian.org>.
41482
991477f8 414832008-06-16 Robert Millan <rmh@aybabtu.com>
41484
41485 * util/update-grub.in: Check for $EUID instead of $UID.
41486 Reported by Vincent Zweije.
41487
d31a32a1 414882008-06-16 Bean <bean123ch@gmail.com>
41489
fe987087 41490 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 41491 (grub_ext2_read_block): Likewise.
41492 (grub_ext2_read_inode): Likewise.
41493 (grub_ext2_mount): Likewise.
41494 (grub_ext2_close): Likewise.
41495 (grub_ext3_get_journal): Removed.
41496
fe987087 41497 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 41498 (grub_reiserfs_read_symlink): Likewise.
41499 (grub_reiserfs_mount): Likewise.
41500 (grub_reiserfs_open): Likewise.
41501 (grub_reiserfs_read): Likewise.
41502 (grub_reiserfs_close): Likewise.
41503 (grub_reiserfs_get_journal): Removed.
41504
41505 * fs/fshelp.c (grub_fshelp_read): Removed.
41506 (grub_fshelp_map_block): Likewise.
41507
41508 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
41509 (grub_fshelp_journal): Likewise.
41510 (grub_fshelp_read): Likewise.
41511 (grub_fshelp_map_block): Likewise.
41512
3540a760 415132008-06-16 Pavel Roskin <proski@gnu.org>
41514
41515 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
41516 floating point anymore.
41517 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
41518
95614c84 415192008-06-15 Pavel Roskin <proski@gnu.org>
41520
41521 * commands/ls.c (grub_ls_list_files): Use integer calculations
41522 for human readable format, avoid floating point use.
41523 * kern/misc.c (grub_ftoa): Remove.
41524 (grub_vsprintf): Remove floating point support.
41525
50465dd6 415262008-06-15 Robert Millan <rmh@aybabtu.com>
41527
fe6b695a 41528 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 41529 devices.
41530 Reported by Max Vozeler.
41531
a9207284 415322008-06-15 Robert Millan <rmh@aybabtu.com>
41533
41534 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
41535 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
41536 skipped later.
41537 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
41538 the beginning of the prefix.
41539
41540 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
41541 It is assumed that if we have a memdisk, grub-mkimage has set
41542 grub_prefix to include the "(memdisk)" drive in it.
41543
a7cbd45a 415442008-06-15 Robert Millan <rmh@aybabtu.com>
41545
41546 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
41547 Initialize keyboard controller after registering the terminal, so that
41548 grub_printf() can be called from grub_keyboard_controller_init().
41549
21cf716a 415502008-06-15 Robert Millan <rmh@aybabtu.com>
41551
41552 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
41553 extent-btree which is written as big endian on disk.
41554 Reported by Alain Greppin <al@chilibi.org>.
41555
23a64d8e 415562008-06-14 Robert Millan <rmh@aybabtu.com>
41557
41558 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
41559 * util/i386/pc/grub-install.in (modules): Likewise.
41560
d687651c 415612008-06-13 Pavel Roskin <proski@gnu.org>
41562
41563 * commands/ls.c (grub_ls_list_files): Fix format warnings.
41564
dfe9ddd4 415652008-06-13 Bean <bean123ch@gmail.com>
41566
41567 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
41568
41569 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
41570
41571 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41572 to indicate sparse block.
41573
16ae7781 415742008-06-12 Pavel Roskin <proski@gnu.org>
41575
e6d1a308 41576 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41577 number, grub_fshelp_read() does it for us.
41578
16ae7781 41579 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41580 linear disk read with journal translation.
41581 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41582 * include/grub/fshelp.h: Declare grub_fshelp_read().
41583
40fd3a2b 415842008-06-09 Pavel Roskin <proski@gnu.org>
41585
41586 * fs/minix.c (grub_minix_mount): Handle error reading
41587 superblock.
41588
f5679726 415892008-06-08 Robert Millan <rmh@aybabtu.com>
41590
41591 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41592 don't append the RAID prefix afterwards.
41593 Reported by Clint Adams.
41594
ce525529 415952008-06-08 Robert Millan <rmh@aybabtu.com>
41596
41597 Based on description from Pavel:
41598 * kern/disk.c (grub_disk_check_range): Rename to ...
41599 (grub_disk_adjust_range): ... this. Add a comment explaining the
41600 tasks performed by this function.
41601
ad4936a0 416022008-06-08 Robert Millan <rmh@aybabtu.com>
41603
41604 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41605 `num_serial' (for consistency with other variables).
41606 (struct grub_ntfs_data): Add `uuid' member.
41607 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41608 (grub_ntfs_uuid): New function.
41609 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41610
dc20b0f9 416112008-06-07 Pavel Roskin <proski@gnu.org>
41612
41613 * util/biosdisk.c (open_device): Revert last change to the
41614 function, it broke installation. The sector needs to be
41615 different dependent on which device is opened.
41616
c5e3cfba 416172008-06-06 Robert Millan <rmh@aybabtu.com>
41618
41619 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41620 rest of GRUB, and breakage doesn't happen if its value were modified.
41621
41622 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41623 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41624 a constant (same value).
41625 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41626 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41627
26a1f8c4 416282008-06-06 Robert Millan <rmh@aybabtu.com>
41629
41630 * util/biosdisk.c (open_device): Do not modify sector offset when
41631 accessing a partition. kern/disk.c already handles this for us.
41632
25d6b327 416332008-06-06 Robert Millan <rmh@aybabtu.com>
41634
41635 * util/grub-emu.c (grub_machine_init): Move code in this function from
41636 here ...
41637 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41638 segfault in case grub_printf() is called).
41639
41640 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41641 grub_probe. Update all users not to explicitly add it again.
41642 (grub_device): New variable; contains corresponding device for grubdir.
41643 (fs_module, partmap_module, devabstraction_module): Pass
41644 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41645 every time.
41646
9ece62fb 416472008-06-05 Robert Millan <rmh@aybabtu.com>
41648
41649 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41650 is found, print it (same layout as with labels).
41651
1ad36d37 416522008-06-04 Robert Millan <rmh@aybabtu.com>
41653
41654 * util/biosdisk.c (get_drive): Rename to ...
41655 (find_grub_drive): ... this. Update all users.
41656
41657 (get_os_disk): Rename to ...
41658 (convert_system_partition_to_system_disk): ... this. Update all users.
41659
41660 (find_drive): Rename to ...
41661 (find_system_device): ... this. Update all users.
41662
e6a30859 416632008-06-04 Robert Millan <rmh@aybabtu.com>
41664
41665 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41666 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41667 (make_device_map): Likewise.
41668
00c108a4 416692008-06-01 Robert Millan <rmh@aybabtu.com>
41670
41671 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41672 before dereferencing it.
41673
41674 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41675 union with fat12/fat16-specific ones. Add some new fields, including
41676 `num_serial' for both versions.
41677 (struct grub_fat_data): Add `uuid' member.
41678 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41679 names. Initialize `data->uuid' using `num_serial'.
41680 (grub_fat_uuid): New function.
41681 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41682
41683 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41684 (grub_reiserfs_uuid): New function.
41685 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41686 member.
41687
41688 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41689 (grub_xfs_uuid): New function.
41690 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41691
1385c5bb 416922008-06-01 Robert Millan <rmh@aybabtu.com>
41693
41694 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41695 code that is backward compatible with pre-uuid search command.
41696
c682dfd7 416972008-05-31 Robert Millan <rmh@aybabtu.com>
41698
41699 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41700 floppies after everything else, to ensure floppy drive isn't accessed
41701 unnecessarily (patch from Bean).
41702
b7db5d47 417032008-05-31 Robert Millan <rmh@aybabtu.com>
41704
41705 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41706 not print device names when we were asked to set a variable.
41707
6e037aa9 417082008-05-31 Robert Millan <rmh@aybabtu.com>
41709
41710 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41711 using "cursor-on" and "cursor-off" commands (understood at least by
41712 the Open Firmware flavour on OLPC).
41713
41305bc8 417142008-05-31 Michael Gorven <michael@gorven.za.net>
41715
41716 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41717 on and off sequences.
41718
69ba137e 417192008-05-31 Robert Millan <rmh@aybabtu.com>
41720
41721 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41722 * util/update-grub.in: Likewise.
41723
520ae21b 417242008-05-30 Pavel Roskin <proski@gnu.org>
41725
41726 * util/biosdisk.c (linux_find_partition): Simplify logic and
41727 make the code more universal. Keep special processing for
41728 devfs, but use a simple rule for all other devices. If the
41729 device ends with a number, append 'p' and the partition number.
41730 Otherwise, append only the partition number.
41731
5786569b 417322008-05-30 Robert Millan <rmh@aybabtu.com>
41733
41734 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41735 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41736 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41737 the `root' parameter to Linux.
41738
51500452 417392008-05-30 Robert Millan <rmh@aybabtu.com>
41740
41741 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41742 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41743 --fs_uuid with --fs-uuid.
41744 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41745 all filesystems support them).
41746
811d3878 417472008-05-30 Robert Millan <rmh@aybabtu.com>
41748
41749 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 41750 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 41751
cab63c95 417522008-05-30 Robert Millan <rmh@aybabtu.com>
41753
41754 * util/grub.d/00_header.in: Remove obsolete comment referencing
41755 convert_system_path_to_grub_path().
41756 * util/update-grub.in: Likewise.
41757 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41758 (convert_system_path_to_grub_path): Add a warning message explaining
41759 that this function is deprecated. Rely on is_path_readable_by_grub()
41760 for the readability checks.
41761 (font_path): Use is_path_readable_by_grub() for the readability
41762 check rather than convert_system_path_to_grub_path().
41763
972e2f7a 417642008-05-30 Robert Millan <rmh@aybabtu.com>
41765
41766 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41767 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41768 converting it first.
41769 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41770 grub.cfg for access to font file, and afterwards call it again to set
41771 the root device.
41772
62191274 417732008-05-30 Robert Millan <rmh@aybabtu.com>
41774
41775 * commands/search.c (options): Add --fs_uuid option.
41776 (search_fs_uuid): New function.
41777 (grub_cmd_search): Fix --set argument passing.
41778 Use search_fs_uuid() when requested via --fs_uuid.
41779 (grub_search_init): Update help message.
41780 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41781 and redeclare it as an array of 16-bit words.
41782 (grub_ext2_uuid): New function.
41783 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
41784 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
41785 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
41786 (GRUB_DEVICE_BOOT_UUID): New variables.
41787 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
41788 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
41789 whenever possible.
41790 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
41791 just assume `root' variable has the right value.
41792 * util/grub.d/10_linux.in: Likewise.
41793 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
41794 via PRINT_FS_UUID.
41795 (main): Recognise `-t fs_uuid' argument.
41796
01b73ec8 417972008-05-30 Robert Millan <rmh@aybabtu.com>
41798
41799 * util/biosdisk.c (map): Redefine structure to hold information
41800 about GRUB drive name.
fe6b695a 41801 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 41802 drive names.
41803 (call_hook): Remove.
41804 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
41805 member. Assume drive has partitions.
41806 (grub_util_biosdisk_open): Access device names via `.device' struct
41807 member.
41808 (open_device): Likewise.
41809 (find_drive): Likewise.
41810 (read_device_map): Adjust map[] usage to match the new struct
41811 definition. Don't check for duplicates (still possible, but not cheap
41812 anymore).
41813 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
41814 (make_device_name): Remove assumption of BIOS-like drive names.
41815
22f16596 418162008-05-30 Pavel Roskin <proski@gnu.org>
41817
41818 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
41819 compiling execute.c doesn't need grub_script.tab.h anymore.
41820 (normal/command.c_DEPENDENCIES): Likewise.
41821 (normal/function.c_DEPENDENCIES): Likewise.
41822 * conf/i386-ieee1275.rmk: Likewise.
41823 * conf/i386-linuxbios.rmk: Likewise.
41824 * conf/i386-pc.rmk: Likewise.
41825 * conf/powerpc-ieee1275.rmk: Likewise.
41826 * conf/sparc64-ieee1275.rmk: Likewise.
41827
528ad8f2 418282008-05-29 Pavel Roskin <proski@gnu.org>
41829
d1dff95d 41830 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
41831 when scanning metadata for volume group name.
41832
528ad8f2 41833 * include/grub/script.h: Don't include grub_script.tab.h. It's
41834 a generated file, which may only be included from the files with
41835 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
41836 use union YYSTYPE, as the later allows forward declaration.
41837 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
41838
47248e08 418392008-05-29 Robert Millan <rmh@aybabtu.com>
41840
41841 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
41842 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
41843 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
41844 (grub_console_checkkey): Add grub_dprintf() call to report unknown
41845 scan codes.
41846
ee632529 418472008-05-29 Robert Millan <rmh@aybabtu.com>
41848
41849 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41850 control key combinations.
41851
eee96e08 418522008-05-29 Robert Millan <rmh@aybabtu.com>
41853
41854 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41855 * util/ieee1275/grub-install.in: ... to here.
41856 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41857 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41858 (grub_install_SOURCES): Likewise.
41859
da9a6a94 418602008-05-29 Robert Millan <rmh@aybabtu.com>
41861
41862 * fs/affs.c: Update copyright year.
41863 * fs/ext2.c: Likewise.
41864 * fs/fshelp.c: Likewise.
41865 * fs/hfsplus.c: Likewise.
41866 * fs/ntfs.c: Likewise.
41867 * fs/xfs.c: Likewise.
41868 * include/grub/fshelp.h: Likewise.
41869 * util/grub-mkdevicemap.c: Likewise.
41870
12e65f3a 418712008-05-28 Robert Millan <rmh@aybabtu.com>
41872
41873 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41874 might need to be fatfs to support some firmware implementations
41875 (e.g. OFW or EFI).
41876
23023641 418772008-05-28 Robert Millan <rmh@aybabtu.com>
41878
41879 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41880 devices.
41881 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41882 (make_device_map): Likewise.
41883
887d2619 418842008-05-20 Bean <bean123ch@gmail.com>
41885
41886 * fs/fshelp.c (grub_fshelp_map_block): New function.
41887 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41888 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41889
41890 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41891 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41892 (grub_fshelp_journal): New structure.
41893 (grub_fshelp_map_block): New function prototype.
41894 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41895 (grub_fshelp_map_block): Likewise.
41896
41897 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41898 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41899 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41900 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41901 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41902 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41903 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41904 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41905 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41906 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41907 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41908 (grub_ext2_sblock): New members for journal support.
41909 (grub_ext3_journal_header): New structure.
41910 (grub_ext3_journal_revoke_header): Likewise.
41911 (grub_ext3_journal_block_tag): Likewise.
41912 (grub_ext3_journal_sblock): Likewise.
41913 (grub_fshelp_node): New members logfile and journal.
41914 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41915 grub_fshelp_map_block to get real block number.
41916 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41917 number.
41918 (grub_ext2_read_inode): Likewise.
41919 (grub_ext3_get_journal): New function.
41920 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41921 (grub_ext2_close): Release memory used by journal.
41922
41923 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41924 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41925 (grub_reiserfs_transaction_header): Renamed to
41926 grub_reiserfs_description_block, replace field data with real_blocks.
41927 (grub_reiserfs_commit_block): New structure.
41928 (grub_reiserfs_data): New member journal.
41929 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41930 number.
41931 (grub_reiserfs_read_symlink): Likewise.
41932 (grub_reiserfs_iterate_dir): Likewise.
41933 (grub_reiserfs_open): Likewise.
41934 (grub_reiserfs_read): Likewise.
41935 (grub_reiserfs_get_journal): New function.
41936 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41937 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41938 using grub_reiserfs_get_journal.
41939 (grub_reiserfs_close): Release memory used by journal.
41940
41941 * fs/affs.c (grub_affs_read_block): Change block type to
41942 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41943
41944 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41945
41946 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41947
41948 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41949
41950 * fs/udf.c (grub_udf_read_block): Change block type to
41951 grub_disk_addr_t. Use type cast to avoid warning.
41952
41953 * fs/xfs.c (grub_xfs_read_block): Likewise.
41954
b7c6bed5 419552008-05-16 Christian Franke <franke@computer.org>
41956
41957 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41958 to ensure that break with ESC will always work.
41959 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41960 Remove ESC from keyboard queue.
41961
eedf167f 419622008-05-16 Christian Franke <franke@computer.org>
41963
41964 * util/biosdisk.c: [__CYGWIN__] Add includes.
41965 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41966 (get_os_disk): Move variable declarations to OS specific
41967 parts to avoid warning.
41968 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41969 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41970 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41971 Cygwin.
41972 * util/getroot.c: [__CYGWIN__] Add includes.
41973 (strip_extra_slashes): Fix "/" case.
41974 [__CYGWIN__] (get_win32_path): New function.
41975 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41976 [__CYGWIN__] (find_root_device): Disable.
41977 [__CYGWIN__] (get_bootsec_serial): New function.
41978 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41979 [__linux__] (grub_guess_root_device): Add early returns to simplify
41980 structure.
41981 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41982 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41983 check for Linux only.
41984
a079699e 419852008-05-15 Bean <bean123ch@gmail.com>
41986
41987 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41988 keyboard hang problem in apple's intel mac.
41989
1cf4059a 419902008-05-09 Robert Millan <rmh@aybabtu.com>
41991
41992 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41993 devices.
41994 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41995 (make_device_map): Likewise.
41996 Reported by Aurelien Jarno <aurel32@debian.org>
41997
ed759390 419982008-05-07 Ian Campbell <ijc@hellion.org.uk>
41999
42000 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
42001 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
42002 (make_device_map): Output entries for xvd type disks.
42003
b56c4eaa 420042008-05-07 Robert Millan <rmh@aybabtu.com>
42005
42006 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
42007 devices.
42008 * util/grub-mkdevicemap.c (get_cciss_disk_name)
42009 (make_device_map): Likewise.
42010 Reported by Roland Dreier <rdreier@cisco.com>
42011
7f8866ed 420122008-05-07 Robert Millan <rmh@aybabtu.com>
42013
42014 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
42015 grub_strstr() call. Correct a few mistakes in failure path handling.
42016
b0346e0f 420172008-05-06 Robert Millan <rmh@aybabtu.com>
42018
42019 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
42020 Do not print a trailing slash (therefore, the root directory is an
42021 empty string).
42022 (convert_system_path_to_grub_path): Do not remove trailing slash
42023 from make_system_path_relative_to_its_root() output.
42024
42025 * util/i386/pc/grub-install.in: Add trailing slash to output from
42026 make_system_path_relative_to_its_root().
42027
6cf12cbd 420282008-05-06 Robert Millan <rmh@aybabtu.com>
42029
42030 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
42031 ensures that output lines aren't intermangled with those sent to
42032 stderr (via grub_util_info()).
42033 * util/grub-probe.c (grub_refresh): Likewise.
42034 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
42035
0fbb3117 420362008-05-05 Christian Franke <franke@computer.org>
42037
42038 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
42039 Add Cygwin device names.
42040 (get_ide_disk_name) [__CYGWIN__]: Likewise.
42041 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
42042 (check_device): Return error instead of success on empty name.
42043 (make_device_map): Move label inside linux specific code to
42044 prevent compiler warning.
42045
8124cdb7 420462008-04-30 Robert Millan <rmh@aybabtu.com>
42047
42048 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
42049 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
42050 first boot option.
42051 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
42052
094c01d0 420532008-04-29 Robert Millan <rmh@aybabtu.com>
42054
42055 * docs/grub.cfg: New file (example GRUB configuration).
42056
f4b1fc02 420572008-04-26 Robert Millan <rmh@aybabtu.com>
42058
329ce2a5 42059 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
42060 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
42061 and `disk/ieee1275/nand.c'.
f4b1fc02 42062
25f16ec1 420632008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 42064
25f16ec1 42065 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
42066 i386-linuxbios.
42067
42068 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
42069 change the buffer size to 4096 for cdrom device.
42070
42071 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
42072 and nand.mod.
42073 (_linux_mod_SOURCES): New variable.
42074 (_linux_mod_CFLAGS): Likewise.
42075 (_linux_mod_LDFLAGS): Likewise.
42076 (linux_mod_SOURCES): Likewise.
42077 (linux_mod_CFLAGS): Likewise.
42078 (linux_mod_LDFLAGS): Likewise.
42079 (nand_mod_SOURCES): Likewise.
42080 (nand_mod_CFLAGS): Likewise.
42081 (nand_mod_LDFLAGS): Likewise.
42082
42083 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
42084 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
42085 type property. (nand device in olpc don't have this property)
42086
42087 * include/grub/disk.h (grub_disk_dev_id): New macro
42088 GRUB_DISK_DEVICE_NAND_ID.
42089
42090 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
42091 function prototype.
42092 (grub_rescue_cmd_initrd): Likewise.
42093
42094 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
42095 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
42096 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 42097
25f16ec1 42098 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
42099 GRUB_MACHINE_IEEE1275 is defined.
42100
42101 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
42102 Use NESTED_FUNC_ATTR attribute on the hook parameter.
42103
42104 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
42105 on nested function heap_init.
42106 (grub_upper_mem): New variable for i386-ieee1275.
42107 (grub_get_extended_memory): New function for i386-ieee1275.
42108 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
42109
42110 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
42111 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
42112 property.
f19dbdb7 42113
25f16ec1 42114 * loader/i386/ieee1275/linux.c: New file.
42115
42116 * loader/i386/ieee1275/linux_normal.c: New file.
42117
42118 * disk/ieee1275/nand.c: New file.
42119
e89d61e9 421202008-04-18 Thomas Schwinge <tschwinge@gnu.org>
42121
42122 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
42123 value.
42124 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
42125
602566f6 421262008-04-18 Robert Millan <rmh@aybabtu.com>
42127
42128 Restructures early code path on ieee1275 to unify grub_main() as
42129 the first C function that is executed in every platform.
42130
42131 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
42132 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
42133 cmain().
42134 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
42135 * kern/ieee1275/cmain.c (cmain): Rename to ...
42136 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
42137 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
42138 at the beginning.
42139
57490c2b 421402008-04-18 Robert Millan <rmh@aybabtu.com>
42141
42142 * util/update-grub.in: Fix syntax error when setting
42143 `GRUB_PRELOAD_MODULES'.
42144 Reported by Stephane Chazelas <stephane@artesyncp.com>
42145
1977517d 421462008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
42147
42148 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
42149 section into account, newer toolchains generate unique build ids
42150 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 42151 we want build ids to be preserved
1977517d 42152 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
42153 far from other sections don't cause the raw binary images grow
42154 size
42155
bfb1f1a2 421562008-04-15 Robert Millan <rmh@aybabtu.com>
42157
42158 * disk/lvm.c: Update copyright year.
42159 * kern/misc.c: Likewise.
42160
01979850 421612008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42162
42163 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 42164 there is no memory left for physical volume name.
01979850 42165
0a1150e2 421662008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42167
42168 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
42169 volume name mapping to support bigger than 9 character names properly.
42170
82ead3fe 421712008-04-13 Robert Millan <rmh@aybabtu.com>
42172
42173 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
42174 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
42175
e54a72f5 421762008-04-13 Christian Franke <franke@computer.org>
42177
42178 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
42179 to create a floppy emulation boot CD when non emulation mode
42180 does not work.
42181 Enable Joliet CD filesystem extension.
42182
9fe86034 421832008-04-13 Robert Millan <rmh@aybabtu.com>
42184
42185 * kern/misc.c (grub_strncat): Fix off-by-one error.
42186 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
42187
42188 * kern/env.c (grub_env_context_close): Clear current context, not
42189 previous one.
42190 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
42191
42192 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
42193
7ceeee39 421942008-04-13 Robert Millan <rmh@aybabtu.com>
42195
42196 Improve robustness when handling LVM.
42197
42198 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 42199 (and leave `*p' unmodified).
7ceeee39 42200 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
42201 through it.
42202 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
42203 iterating through it.
42204 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
42205 through it.
fe6b695a 42206 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 42207 when due) on each grub_lvm_getvalue() or grub_strstr() call.
42208 Don't assume `vg->pvs != NULL' when iterating through it.
42209
58cd3d85 422102008-04-13 Robert Millan <rmh@aybabtu.com>
42211
42212 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
42213 * genmk.rb (partmap): New variable.
42214 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
42215 (#{partmap}): New target rule.
42216 * genpartmaplist.sh: New file.
42217 * Makefile.in (pkglib_DATA): Add partmap.lst.
42218 (partmap.lst): New target rule.
42219 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
42220 modules (including all partition maps), instead of preloading them.
42221
78b51059 422222007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
42223
42224 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
42225 `linux-boot-prober' (if installed) to detect other operating
42226 systems which are installed on the computer and add them to
42227 the boot menu.
42228 * conf/common.rmk: Build and install 30_os-prober.
42229
a91627b4 422302008-04-12 Robert Millan <rmh@aybabtu.com>
42231
42232 * kern/powerpc/ieee1275/init.c: Move from here ...
42233 * kern/ieee1275/init.c: ... to here. Update all users.
42234
42235 * kern/powerpc/ieee1275/cmain.c: Move from here ...
42236 * kern/ieee1275/cmain.c: ... to here. Update all users.
42237
42238 * kern/powerpc/ieee1275/openfw.c: Move from here ...
42239 * kern/ieee1275/openfw.c: ... to here. Update all users.
42240
42241 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
42242 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
42243
322562ea 422442008-04-10 Pavel Roskin <proski@gnu.org>
42245
42246 * configure.ac: Always use "_cv_" in cache variables for
42247 compatibility with Autoconf 2.62.
42248
a02a73c5 422492008-04-07 Robert Millan <rmh@aybabtu.com>
42250
42251 Revert grub/machine/init.h addition by Pavel (since it breaks on
42252 i386-ieee1275 and others):
42253 * util/i386/pc/misc.c: Remove grub/machine/init.h.
42254 * util/powerpc/ieee1275/misc.c: Likewise.
42255
25c024b1 422562008-04-07 Robert Millan <rmh@aybabtu.com>
42257
42258 * util/grub-probe.c (probe): Improve error message.
42259
3cbd2f98 422602008-04-07 Robert Millan <rmh@aybabtu.com>
42261
42262 * util/biosdisk.c (read_device_map): Skip devices that don't exist
42263 (this prevents the presence of a bogus entry from ruining the whole
42264 thing).
42265
87a297bf 422662008-04-06 Pavel Roskin <proski@gnu.org>
42267
36747a62 42268 * util/biosdisk.c: Include grub/util/biosdisk.h.
42269 * util/grub-fstest.c (execute_command): Make static.
42270 * util/grub-mkdevicemap.c (check_device): Likewise.
42271 * util/i386/pc/misc.c: Include grub/machine/init.h.
42272 * util/powerpc/ieee1275/misc.c: Likewise.
42273 * util/lvm.c: Include grub/util/lvm.h.
42274 * util/misc.c: Include grub/kernel.h, grub/misc.h and
42275 grub/cache.h.
42276 * util/raid.c: Include grub/util/raid.h.
42277 (grub_util_getdiskname): Make static.
42278
87a297bf 42279 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
42280 grub_hostfs_fini(), as they are called from grub_init_all() and
42281 grub_fini_all() respectively. This fixes an infinite loop in
42282 grub-fstest due to double registration of hostfs.
42283 Reported by Christian Franke <Christian.Franke@t-online.de>
42284
f6ce7629 422852008-04-05 Pavel Roskin <proski@gnu.org>
42286
42287 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
42288 all 8 functions. Otherwise, probe function 0 only.
42289
070e49e4 422902008-04-04 Pavel Roskin <proski@gnu.org>
42291
8b088a4c 42292 * commands/lspci.c (grub_lspci_iter): Print the bus number
42293 correctly.
42294
4f657021 42295 * commands/lspci.c (grub_pci_classes): Fix typos.
42296 (grub_lspci_iter): Don't print func twice. Print vendor ID
42297 before device ID, as it's normally done.
42298
070e49e4 42299 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42300 Fix signedness warnings.
42301 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
42302 Likewise.
42303 * util/ieee1275/get_disk_name.c: Include config.h so that
42304 _GNU_SOURCE is defined and getline() is declared. Mark an
42305 unused argument as such. Fix a signedness warning.
42306
ba7328dc 423072008-04-02 Pavel Roskin <proski@gnu.org>
42308
26887f22 42309 * genkernsyms.sh.in: Use more robust assignments for CC and
42310 srcdir. Quote srcdir.
42311 * gensymlist.sh.in: Likewise. Assert at the compile time that
42312 the symbol table is not empty.
42313
ba7328dc 42314 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
42315 * fs/cpio.c (grub_cpio_read): Likewise.
42316
0f582c6b 423172008-04-01 Pavel Roskin <proski@gnu.org>
42318
4b6e1995 42319 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
42320 * disk/host.c (grub_host_open): Likewise.
42321 * disk/loopback.c (grub_loopback_open): Likewise.
42322 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
42323 disk->id as in disk/host.c, not a multi-character constant.
42324
828a2768 42325 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
42326 later is obsolete, potentially dangerous and sets a bad example.
42327 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
42328 * util/misc.c (grub_util_get_image_size): Likewise.
42329
2bb4fb47 42330 * disk/loopback.c (options): Improve help for "--partitions".
42331
0f582c6b 42332 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
42333 options to align them with the short options, e.g. "echo -e".
42334
a33224e0 423352008-03-31 Bean <bean123ch@gmail.com>
42336
42337 * video/reader/png.c (grub_png_data): New member is_16bit and
42338 image_data.
42339 (grub_png_decode_image_header): Detect 16 bit png image.
42340 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
42341 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
42342 (grub_video_reader_png): Release memory occupied by image_data.
42343
42344 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
42345 4096 bytes.
42346 (grub_nfs_mount): Skip the test for sector per cluster.
42347
42348 * include/grub/ntfs.h (MAX_SPC): Removed.
42349
86cb4f54 423502008-03-31 Bean <bean123ch@gmail.com>
42351
42352 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
42353 (grub_probe_SOURCES): Add fs/afs.c.
42354 (grub_fstest_SOURCES): Likewise.
42355 (afs_mod_SOURCES): New variable.
42356 (afs_mod_CFLAGS): Likewise.
42357 (afs_mod_LDFLAGS): Likewise.
42358
42359 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
42360 (grub_emu_SOURCES): Likewise.
42361
42362 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42363
42364 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42365
42366 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42367
42368 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42369
42370 * fs/afs.c: New file.
42371
17c74c21 423722008-03-30 Pavel Roskin <proski@gnu.org>
42373
4cb68e89 42374 * disk/host.c: Include grub/misc.h to fix a warning.
42375 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
42376 warnings about implicit declarations.
42377
8790bb04 42378 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
42379 variable.
42380 * include/grub/i386/loader.h: Change declaration of
42381 grub_linux_boot() to match what grub_loader_set() expects.
42382 * util/getroot.c (grub_guess_root_device): Return const char* to
42383 fix a warning.
42384 * util/grub-probe.c (probe): Fix a warning about uninitialized
42385 abstraction_name variable.
42386 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
42387 second argument as unused to fix a warning.
42388
9a3f3296 42389 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
42390 missing grub_error() call.
42391
0ecef90d 42392 * util/update-grub_lib.in: Define datarootdir, since Autoconf
42393 2.60 and newer uses it to define datadir.
42394
0bf6d401 42395 * commands/sleep.c: Fix warning about implicit declaration.
42396 * disk/memdisk.c: Likewise.
42397 * loader/aout.c: Likewise.
42398 * loader/i386/bsd_normal.c: Likewise.
42399 * util/grub-probe.c: Likewise.
42400
7cdacf97 42401 * commands/i386/cpuid.c (has_longmode): Make static.
42402 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
42403 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
42404
17c74c21 42405 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
42406 GDT. This is more robust, as %ds can change.
42407 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
42408 calling real_to_prot().
42409 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
42410
80a3e68b 424112008-03-28 Pavel Roskin <proski@gnu.org>
42412
42413 * kern/i386/pc/startup.S: Assert that uncompressed functions
42414 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
42415 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
42416 code, as they push parts of the code (error handlers) beyond
42417 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
42418 code as correctness and size.
42419
77bcd272 424202008-03-28 Pavel Roskin <proski@gnu.org>
42421
42422 * kern/i386/pc/startup.S
42423 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
42424 data block address to the real mode, keep offset minimal. This
42425 works around a bug in AWARD BIOS on old Athlon systems, which
42426 makes CD detection hang.
42427
c5dfd43b 424282008-03-26 Pavel Roskin <proski@gnu.org>
42429
42430 * normal/color.c (grub_parse_color_name_pair): Make `name' a
42431 const.
42432 * include/grub/normal.h: Add grub_parse_color_name_pair()
42433 declaration.
42434
bf962df2 424352008-03-24 Bean <bean123ch@gmail.com>
42436
42437 * disk/i386/pc/biosdisk.c (cd_start): Removed.
42438 (cd_count): Removed.
42439 (cd_drive): New variable.
42440 (grub_biosdisk_get_drive): Don't check for (cdN) device.
42441 (grub_biosdisk_call_hook): Likewise.
42442 (grub_biosdisk_iterate): Change cdrom detection method.
42443 (grub_biosdisk_open): Replace cd_start with cd_drive.
42444 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
42445 detect cdrom device.
42446
42447 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
42448 Removed.
42449 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
42450 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
42451 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
42452 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
42453 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
42454 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
42455 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
42456 (grub_biosdisk_cdrp): New structure.
42457 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
42458
42459 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
42460
42461 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
42462 device.
42463
42464 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
42465 New function.
42466
68e7fc7a 424672008-03-20 Robert Millan <rmh@aybabtu.com>
42468
42469 Remove 2 TiB limit in ata.mod.
42470 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
42471 (grub_ata_dumpinfo): Print sector count with 0x%llx.
42472 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
42473 grub_uint64_t instead of grub_uint32_t.
42474
38ad2cf5 424752008-03-05 Bean <bean123ch@gmail.com>
42476
42477 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
42478 (grub_multiboot): Set boot device.
42479
42480 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
42481
2b89344e 424822008-03-02 Bean <bean123ch@gmail.com>
42483
42484 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
42485 symlink_buffer.
42486
87a95d1f 424872008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
42488
42489 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
42490 texinfo.tex.
42491
42492 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
42493 modified.
42494
42495 * docs/fdl.texi: New file.
f19dbdb7 42496
87a95d1f 42497 * docs/mdate-sh: New file. Copied from gnulib.
42498 * docs/texinfo.tex: Likewise.
42499
42500 * config.guess: Updated from gnulib.
42501 * install-sh: Likewise.
42502
7dc15d8e 425032008-02-28 Robert Millan <rmh@aybabtu.com>
42504
42505 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
42506 (aout_mod_SOURCES): New variable.
42507 (aout_mod_CFLAGS): Likewise.
42508 (aout_mod_LDFLAGS): Likewise.
42509
42510 * conf/i386-ieee1275.rmk: Likewise.
42511
b00ab696 425122008-02-28 Robert Millan <rmh@aybabtu.com>
42513
42514 * util/update-grub.in: Reorganise terminal validity check. Accept
42515 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
42516 Based on suggestion by Franklin PIAT.
42517
79ca2d78 425182008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
42519
42520 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
42521 function.
42522 * util/getroot.c (grub_util_check_block_device): New function that
42523 returns the given argument if it is a block device and returns NULL else.
42524 * util/grub-probe.c (argument_is_device): New variable.
42525 (probe): Promote device_name from a variable to an argument. Receive
42526 device_name from grub_util_check_block_device() if path is NULL and from
42527 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 42528 (options): Introduce new parameter '-d, --device'.
79ca2d78 42529 (main): Add description of the new parameter to the help screen.
42530 Rename path variable to argument. Set argument_is_device if the '-d'
42531 option is given. Pass argument to probe() depending on
42532 argument_is_device.
42533
0d16e571 425342008-02-24 Bean <bean123ch@gmail.com>
42535
42536 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
42537 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
42538 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
42539 (GRUB_ISO9660_VOLDESC_PART): Likewise.
42540 (GRUB_ISO9660_VOLDESC_END): Likewise.
42541 (grub_iso9660_primary_voldesc): New member escape.
42542 (grub_iso9660_data): New member joliet.
42543 (grub_iso9660_convert_string): New function.
42544 (grub_iso9660_mount): Detect joliet extension.
42545 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
42546 (grub_iso9660_iso9660_label): Likewise.
42547
42548 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
42549 (grub_setup_SOURCES): Add fs/udf.c.
42550 (grub_fstest_SOURCES): Likewise.
42551 (udf_mod_SOURCES): New variable.
42552 (udf_mod_CFLAGS): Likewise.
42553 (udf_mod_LDFLAGS): Likewise.
42554
42555 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
42556 (grub_emu_SOURCES): Likewise.
42557
42558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42559
42560 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42561
42562 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42563
42564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42565
42566 * fs/udf.c: New file.
42567
8a594a17 425682008-02-24 Robert Millan <rmh@aybabtu.com>
42569
42570 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42571 (normal/lexer.c_DEPENDENCIES): New variables.
42572 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42573 (normal/lexer.c_DEPENDENCIES): Likewise.
42574 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42575 (normal/lexer.c_DEPENDENCIES): Likewise.
42576 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42577 (normal/lexer.c_DEPENDENCIES): Likewise.
42578 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42579 (normal/lexer.c_DEPENDENCIES): Likewise.
42580 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42581 (normal/lexer.c_DEPENDENCIES): Likewise.
42582
2dc33c03 425832008-02-23 Robert Millan <rmh@aybabtu.com>
42584
42585 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42586 since they were intended to be in hex. This didn't break previously
42587 because of a bug in gpt_partition_map_iterate() (see below).
42588
42589 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42590 when checking the validity of GPT header.
42591 Remove `partno', since it always provides the same information as `i'.
42592
f6f4cfb0 425932008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42594
42595 * include/grub/efi/time.h: Fix a wrong comment.
42596
79ff665f 425972008-02-19 Pavel Roskin <proski@gnu.org>
42598
42599 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42600 message.
42601
d38e24c2 426022008-02-19 Bean <bean123ch@gmail.com>
42603
42604 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42605 (aout_mod_SOURCES): New variable.
42606 (aout_mod_CFLAGS): Likewise.
42607 (aout_mod_LDFLAGS): Likewise.
42608 (_bsd_mod_SOURCES): New variable.
42609 (_bsd_mod_CFLAGS): Likewise.
42610 (_bsd_mod_LDFLAGS): Likewise.
42611 (bsd_mod_SOURCES): New variable.
42612 (bsd_mod_CFLAGS): Likewise.
42613 (bsd_mod_LDFLAGS): Likewise.
42614
42615 * include/grub/aout.h: New file.
42616
42617 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42618
42619 * include/grub/i386/bsd.h: New file.
42620
42621 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42622 to make it public.
42623
42624 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42625 function is called, so that it's possible to change it inside the hook.
42626 (grub_elf64_load): Likewise.
42627 (grub_elf_file): Don't close the file if elf header is not found.
42628 (grub_elf_close): Close the file if grub_elf_file fails (The new
42629 grub_elf_file won't close it).
42630 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42631 (grub_elf64_size): Likewise.
42632
42633 * kern/i386/loader.S (grub_unix_real_boot): New function.
42634
42635 * loader/aout.c: New file.
42636
42637 * loader/i386/bsd.c: New file.
42638
42639 * loader/i386/bsd_normal.c: New file.
42640
42641 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42642
42643 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 42644 can test other formats.
d38e24c2 42645
b93bdb0f 426462008-02-19 Robert Millan <rmh@aybabtu.com>
42647
42648 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42649 (grub_gpt_partition_type_empty): Redefine with macro from
42650 `<grub/gpt_partition.h>'.
42651 (gpt_partition_map_iterate): Adjust partition type comparison.
42652
42653 Export `entry' as partmap-specific `part.data' struct.
42654 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42655
42656 * include/grub/gpt_partition.h (grub_gpt_header)
42657 (grub_gpt_partentry): ... to here (new file).
42658
42659 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42660
42661 (grub_gpt_partition_type_bios_boot): New const variable, defined
42662 with macro from `<grub/gpt_partition.h>'.
42663
42664 (setup): Replace `first_start' with `embed_region', which keeps
42665 track of the embed region (and is partmap-agnostic).
42666
42667 Replace find_first_partition_start() with find_usable_region(),
42668 which finds a usable region for embedding using partmap-specific
42669 knowledge (supports PC/MSDOS and GPT).
42670
42671 Fix all assumptions that the embed region start at sector 1, using
42672 `embed_region.start' from now on. Similarly, use `embed_region.end'
42673 rather than `first_start' to calculate available size.
42674
42675 In grub_util_info() message, replace "into after the MBR" with an
42676 indication of the specific sector our embed region starts at.
42677
66cb40f6 426782008-02-19 Robert Millan <rmh@aybabtu.com>
42679
42680 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42681 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42682 `commands/reboot.c'.
42683 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42684 (halt_mod_SOURCES): Likewise.
42685 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42686 (halt_mod_SOURCES): Likewise.
42687
b7202015 426882008-02-17 Christian Franke <franke@computer.org>
42689
42690 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42691
32b0fc49 426922008-02-17 Robert Millan <rmh@aybabtu.com>
42693
42694 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42695 set `first_start' to 0 for non-PC/MSDOS partition maps.
42696
aca63502 426972008-02-16 Robert Millan <rmh@aybabtu.com>
42698
42699 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42700 do not assume partition map is PC/MSDOS before performing checks that
42701 are specific to that layout.
42702
0de8be86 427032008-02-13 Robert Millan <rmh@aybabtu.com>
42704
42705 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42706 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42707 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42708
c3db8364 427092008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42710
42711 * configure.ac: Only a cosmetic change on the handling of
42712 -fno-stack-protector.
42713
f714229e 427142008-02-12 Alexandre Boeglin <alex@boeglin.org>
42715
c3db8364 42716 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42717 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42718 reboot.c.
f714229e 42719 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42720 (halt_mod_SOURCES): New variable.
42721 (halt_mod_CFLAGS): Likewise.
42722 (halt_mod_LDFLAGS): Likewise.
42723 (reboot_mod_SOURCES): Likewise.
42724 (reboot_mod_CFLAGS): Likewise.
42725 (reboot_mod_LDFLAGS): Likewise.
42726
c3db8364 42727 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42728 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42729 reboot.c.
f714229e 42730 (halt_mod_SOURCES): Likewise.
42731 (reboot_mod_SOURCES): Likewise.
42732
c3db8364 42733 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42734 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 42735 (reboot_mod_SOURCES): Likewise.
42736
42737 * commands/i386/pc/reboot.c: merge this file ...
42738
42739 * commands/ieee1275/reboot.c: ... and this file ...
42740
42741 * commands/reboot.c: ... to this file.
c3db8364 42742 Add some precompiler directive to include the correct header for
42743 each machine.
f714229e 42744
42745 * commands/ieee1275/halt.c: move this file ...
42746
42747 * commands/halt.c: ... to here.
c3db8364 42748 Add some precompiler directive to include the correct header for
42749 each machine.
f714229e 42750
42751 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42752 (grub_halt): Likewise.
42753
42754 * kern/efi/efi.c (grub_reboot): New function.
42755 (grub_halt): Likewise.
42756
c74493e0 427572008-02-12 Robert Millan <rmh@aybabtu.com>
42758
42759 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42760 /dev (like it is done for /dev/mapper). This doesn't provide support
42761 for EVMS, but at least it is now easy to identify the problem when it
42762 arises.
42763
d0db4b04 427642008-02-11 Robert Millan <rmh@aybabtu.com>
42765
42766 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42767 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42768 comparing it with -1, not 0.
42769
bf748642 427702008-02-10 Robert Millan <rmh@aybabtu.com>
42771
42772 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42773 `disk/lvm.c'.
42774 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42775 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42776
42777 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42778 `disk/lvm.c' to the end of the list.
42779 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42780 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42781
b5db202a 427822008-02-10 Robert Millan <rmh@aybabtu.com>
42783
42784 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
42785 grub_print_error() instead. This will let user know why we're entering
42786 rescue mode.
42787 Based on suggestions from Sam Morris.
42788
83abee31 427892008-02-10 Alexandre Boeglin <alex@boeglin.org>
42790
42791 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
42792 on remaining N args, instead of "--" arg N times.
42793
78d5a08b 427942008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
42795
42796 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
42797 (fill_with_default_glyph): Changed to use unknown_glyph for fill
42798 pattern for unknown glyphs.
42799
68807e5f 428002008-02-09 Robert Millan <rmh@aybabtu.com>
42801
42802 * configure.ac: Probe for `help2man'.
42803 * Makefile.in (builddir): New variable.
42804 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
42805 or otherwise add a few flags/options to it.
42806 (install-local): For every executable utility or script that is
42807 installed, invoke $(HELP2MAN) to install a manpage based on --help
42808 output.
42809
42810 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
42811 that it doesn't prevent --help from working in build tree.
42812
42813 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
42814 with `bug-grub@gnu.org'.
42815 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
42816 * util/update-grub.in (usage): New function.
42817 Implement proper argument check, with support for --help and --version
42818 (as well as existing -y).
42819
428202008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 42821
42822 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
42823 avoid overwriting previous output.
42824 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
42825
c1962162 428262008-02-09 Robert Millan <rmh@aybabtu.com>
42827
42828 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
42829 drawing the menu.
42830
3dac2e3f 428312008-02-09 Robert Millan <rmh@aybabtu.com>
42832
42833 * commands/sleep.c: New file.
42834 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
42835 (sleep_mod_SOURCES): New variable.
42836 (sleep_mod_CFLAGS): Likewise.
42837 (sleep_mod_LDFLAGS): Likewise.
42838
7a634e08 428392008-02-09 Robert Millan <rmh@aybabtu.com>
42840
42841 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
42842 situations in which we can deduce the RAID size and the superblock
42843 doesn't match it.
42844
b92f0c18 428452008-02-09 Robert Millan <rmh@aybabtu.com>
42846
42847 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
42848 and return a grub_diskmemberlist_t composed of LVM physical volumes.
42849 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42850
42851 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42852 and return a grub_diskmemberlist_t composed of physical array members.
42853 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42854
42855 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42856 prototype.
42857 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42858 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42859 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42860
42861 * util/grub-probe.c (probe): Move partmap probing code from here ...
42862 (probe_partmap): ... to here.
42863 (probe): Use probe_partmap() once for the disk we're probing, and
42864 additionally, when such disk contains a memberlist() struct member,
42865 once for each disk that is contained in the structure returned by
42866 memberlist().
42867
91a4bf68 428682008-02-09 Robert Millan <rmh@aybabtu.com>
42869
42870 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42871 environment variable to 'all' in order to obtain debug output from
42872 non-util/ code.
42873 * util/i386/pc/grub-setup.c (main): Likewise.
42874
a96f9caa 428752008-02-08 Robert Millan <rmh@aybabtu.com>
42876
42877 * disk/raid.c (grub_raid_scan_device): Check for
42878 `array->device[sb.this_disk.number]' rather than for
42879 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 42880 guaranteed to be accessible.
a96f9caa 42881
b37a9222 428822008-02-08 Robert Millan <rmh@aybabtu.com>
42883
42884 * disk/raid.c: Update copyright.
42885 * fs/cpio.c: Likewise.
42886 * include/grub/raid.h: Likewise.
42887 * loader/i386/pc/multiboot.c: Likewise.
42888 * util/hostfs.c: Likewise.
42889
5626aee1 428902008-02-08 Robert Millan <rmh@aybabtu.com>
42891
42892 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42893 to a grub_disk_t array.
42894 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42895 `device[x]'.
42896 (grub_raid_scan_device): Replace `device[x].name' accesses with
42897 `device[x]->name'. Simplify initialization of `array->device[x]'.
42898
554f0187 428992008-02-08 Robert Millan <rmh@aybabtu.com>
42900
42901 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42902 grub_dprintf() calls.
42903 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42904 error message.
42905
1ec8425d 429062008-02-07 Christian Franke <franke@computer.org>
42907
42908 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42909 instead of fseek and ftell to support large files.
42910 (grub_hostfs_read): Likewise.
42911
f2156fda 429122008-02-07 Robert Millan <rmh@aybabtu.com>
42913
42914 Patch from Jeroen Dekkers.
42915 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 42916 failure, since successfully reading all array members might not be
f2156fda 42917 required.
42918
9216e0e7 429192008-02-06 Robert Millan <rmh@aybabtu.com>
42920
42921 * util/grub-probe.c (probe): Simplify partmap probing (with the
42922 assumption that the first word up to the underscore equals to
42923 the module name).
42924
b0dfd29a 429252008-02-06 Christian Franke <franke@computer.org>
42926
42927 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42928 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42929 last block of a cpio or tar stream.
42930 Check for "TRAILER!!!" instead of any empty data
42931 block to detect last block of a cpio stream.
42932 (grub_cpio_dir): Fix constness of variable np.
42933 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42934 cpio or tar trailer is detected. This fixes a crash
42935 on open of a non existing file.
42936
c32865bf 429372008-02-05 Bean <bean123ch@gmail.com>
42938
42939 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42940 address of entry.
42941 (grub_multiboot_load_elf64): Likewise.
42942 (grub_multiboot): Initialize mbi structure.
42943
42944 * util/grub-fstest.c: Don't include unused header file script.h.
42945
fe6b695a 42946 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 42947 of file.
42948 (grub_fstest_SOURCES): Likewise.
42949
409480b7 429502008-02-05 Robert Millan <rmh@aybabtu.com>
42951
42952 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42953 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42954 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42955 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42956
42957 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42958 (translation_table): Replace hardcoded values with macros
42959 provided by `<grub/term.h>'.
42960
42961 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42962 (keyboard_map): Correct/add a few values, with macros provided
42963 by `<grub/term.h>'.
42964 (keyboard_map_shift): Zero values that don't differ from their
42965 `keyboard_map' equivalents.
42966 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42967 Discard the second scan code that is always sent by Caps lock.
42968 Only use `keyboard_map_shift' when it provides a non-zero value,
42969 otherwise fallback to `keyboard_map'.
42970
99fadbaa 429712008-02-04 Bean <bean123ch@gmail.com>
42972
42973 * Makefile.in (enable_grub_fstest): New variable.
42974
42975 * conf/common.rmk (grub_fstest_init.lst): New rule.
42976 (grub_fstest_init.h): Likewise.
42977 (grub_fstest_init.c): Likewise.
42978 (util/grub-fstest.c_DEPENDENCIES): New variable.
42979 (grub_fstest_SOURCES): Likewise.
42980
42981 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42982
42983 * util/grub-fstest.c: New file.
42984
bf567c50 429852008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42986
42987 Make grub-setup handle a separate root device.
f19dbdb7 42988
bf567c50 42989 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42990 so that the root device can be compared with the destination
42991 device.
42992 When embedding the core image, if the root and destination devices
42993 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42994 0xFF.
42995 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 42996
9be6b98b 429972008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42998
42999 Add support for having a grub directory in a different drive. This
43000 is still only the data handling part.
f19dbdb7 43001
9be6b98b 43002 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
43003 (codestart): Save %dh in GRUB_ROOT_DRIVE.
43004 (grub_root_drive): New variable.
43005
43006 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
43007 instead of GRUB_BOOT_DRIVE to construct a device name. Set
43008 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
43009 as it was.
43010
43011 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
43012
43013 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
43014 macro.
43015 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
43016
43017 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
43018 is bogus, because PXE booting does not specify any drive
43019 correctly.
43020
43021 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
43022 am not sure if this is really correct.
43023
43024 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
43025 is always identical to the boot drive when booting from a CD.
43026
43027 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
43028 longer.
43029 (root_drive): New variable.
43030 (real_start): Unconditionally set %dh to ROOT_DRIVE.
43031 (setup_sectors): Push %dx right after popping it, because %dh will
43032 be modified later.
43033 (copy_buffer): Restore %dx.
43034
e0ca0677 430352008-02-03 Robert Millan <rmh@aybabtu.com>
43036
43037 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
43038 use `cdboot.img' for cdrom images.
43039
3b3f6629 430402008-02-03 Robert Millan <rmh@aybabtu.com>
43041
43042 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
43043 only setup gfxterm when `font' command has succeeded.
43044
d42b3672 430452008-02-03 Robert Millan <rmh@aybabtu.com>
43046
43047 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
43048 (grub_rescue_cmd_multiboot_loader)
43049 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
43050
fa370ea6 430512008-02-03 Pavel Roskin <proski@gnu.org>
43052
e0c5dacb 43053 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 43054 %edx and %esi from stack only after grub_gate_a20() is called.
43055 grub_gate_a20() clobbers %edx.
43056
f2a76e1d 430572008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
43058
43059 * configure.ac (AC_INIT): Bumped to 1.96.
43060
43061 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
43062 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
43063 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
43064 video/readers/png.c.
43065
90fd32d1 430662008-02-03 Bean <bean123ch@gmail.com>
9be665dd 43067
43068 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
43069 (cdboot_img_SOURCES): New variable.
43070 (cdboot_img_ASFLAGS): New variable.
43071 (cdboot_img_LDFLAGS): New variable.
43072
43073 * boot/i386/pc/cdboot.S: New file.
43074
43075 * disk/i386/pc/biosdisk.c (cd_start): New variable.
43076 (cd_count): Likewise.
43077 (grub_biosdisk_get_drive): Add support for cd device.
43078 (grub_biosdisk_call_hook): Likewise.
43079 (grub_biosdisk_iterate): Likewise.
43080 (grub_biosdisk_open): Likewise.
43081 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
43082 (grub_biosdisk_rw): Support reading from cd device.
43083 (GRUB_MOD_INIT): Iterate cd devices.
43084
43085 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
43086 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
43087 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
43088
43089 * kern/i386/pc/init.c (make_install_device): Check for cd device.
43090
4020aa53 430912008-02-02 Robert Millan <rmh@aybabtu.com>
43092
43093 * commands/read.c: New file.
43094 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
43095 (read_mod_SOURCES): New variable.
43096 (read_mod_CFLAGS): Likewise.
43097 (read_mod_LDFLAGS): Likewise.
43098
e03a1132 430992008-02-02 Robert Millan <rmh@aybabtu.com>
43100
43101 * normal/main.c (grub_normal_execute): Check for `menu->size' when
43102 determining whether menu has to be displayed.
43103
58c69220 431042008-02-02 Marco Gerards <marco@gnu.org>
43105
43106 * bus/pci.c: New file.
43107
43108 * include/grub/pci.h: Likewise.
43109
43110 * include/grub/i386/pc/pci.h: Likewise.
43111
43112 * commands/lspci.c: Likewise.
43113
43114 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
43115 `lspci.mod'.
43116 (pci_mod_SOURCES): New variable.
43117 (pci_mod_CFLAGS): Likewise.
43118 (pci_mod_LDFLAGS): Likewise.
43119 (lspci_mod_SOURCES): Likewise.
43120 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 43121 (lspci_mod_LDFLAGS): Likewise.
58c69220 43122
c004e1b4 431232008-02-02 Bean <bean123ch@gmail.com>
43124
43125 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
43126 (grub_ufs_get_file_block): Fix indirect block calculation problem.
43127
43128 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
43129 (grub_xfs_btree_node): New structure.
43130 (grub_xfs_btree_root): New structure.
43131 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
43132 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
43133 (GRUB_XFS_EXTENT_BLOCK): Likewise.
43134 (GRUB_XFS_EXTENT_SIZE): Likewise.
43135 (grub_xfs_read_block): Support btree format type.
43136 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
43137 Use directory block as basic unit.
43138
43139 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
43140
43141 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
43142 __attribute__ ((__regparm__ (1))).
43143
f95562bf 431442008-02-01 Robert Millan <rmh@aybabtu.com>
43145
43146 Correct a mistake in previous commit.
43147
43148 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
43149 top.
43150 (normal/command.c_DEPENDENCIES): New variable.
43151
7d31f41f 431522008-02-01 Robert Millan <rmh@aybabtu.com>
43153
43154 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
43155 top.
43156 (normal/command.c_DEPENDENCIES): New variable.
43157 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
43158 * conf/i386-ieee1275.rmk: Likewise.
43159 * conf/i386-linuxbios.rmk: Likewise.
43160 * conf/i386-pc.rmk: Likewise.
43161 * conf/sparc64-ieee1275.rmk: Likewise.
43162 * conf/powerpc-ieee1275.rmk: Likewise.
43163 (grub_emu_SOURCES): Add `fs/fshelp.c'.
43164
43165 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
43166
60b6be74 431672008-02-01 Robert Millan <rmh@aybabtu.com>
43168
43169 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
43170 call at beginning of function.
43171
078522ab 431722008-01-31 Pavel Roskin <proski@gnu.org>
43173
43174 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 43175 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
43176 (grub_mkrescue_SOURCES): Likewise.
078522ab 43177 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
43178
ccaa8a5f 431792008-01-30 Robert Millan <rmh@aybabtu.com>
43180
43181 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
43182 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
43183 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
43184 (grub_probe_SOURCES): ... to here.
43185
43186 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
43187 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
43188 * conf/i386-ieee1275.rmk: Likewise.
43189 * conf/i386-linuxbios.rmk: Likewise.
43190 * conf/powerpc-ieee1275.rmk: Likewise.
43191
ae5a9cd7 431922008-01-30 Tristan Gingold <gingold@free.fr>
43193
43194 * kern/rescue.c: Silently accept empty lines.
43195
70bc2ef2 431962008-01-29 Bean <bean123ch@gmail.com>
43197
43198 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
43199 (real_code_2): Code cleanup and change comment style.
43200 (move_memory): Avoid using 32-bit address mode.
43201
6a4d50ea 432022008-01-29 Bean <bean123ch@gmail.com>
43203
43204 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
43205 (png_mod_SOURCES): New variable.
43206 (png_mod_CFLAGS): Likewise.
43207 (png_mod_LDFLAGS): Likewise.
43208
43209 * video/readers/png.c: New file.
43210
11cc30ac 432112008-01-28 Robert Millan <rmh@aybabtu.com>
43212
43213 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
43214 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
43215 `ifndef GRUB_MOD_GAP' hack.
43216 * util/elf/grub-mkimage.c (add_segments): Likewise.
43217
3abc589f 432182008-01-27 Robert Millan <rmh@aybabtu.com>
43219
43220 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
43221 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 43222 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 43223
e1907778 432242008-01-27 Robert Millan <rmh@aybabtu.com>
43225
43226 Get grub-emu to build again (including parallel builds).
43227
43228 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
43229 Split into ...
43230 (util/grub-emu.c_DEPENDENCIES): ... this, ...
43231 (normal/execute.c_DEPENDENCIES): ... this, ...
43232 (grub-emu_DEPENDENCIES): ... and this.
43233
43234 * conf/i386-efi.rmk: Likewise.
43235 * conf/i386-linuxbios.rmk: Likewise.
43236 * conf/i386-ieee1275.rmk: Likewise.
43237 * conf/powerpc-ieee1275.rmk: Likewise.
43238 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
43239
2216b101 432402008-01-27 Robert Millan <rmh@aybabtu.com>
43241
43242 * NEWS: Add a few items.
43243
f75172d9 432442008-01-27 Robert Millan <rmh@aybabtu.com>
43245
43246 Fix parallel builds with grub-emu. Based on earlier commit for
43247 grub-probe and grub-setup.
43248
43249 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43250 (util/grub-emu.c_DEPENDENCIES): ... this.
43251 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43252 (util/grub-emu.c_DEPENDENCIES): ... this.
43253 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43254 (util/grub-emu.c_DEPENDENCIES): ... this.
43255 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43256 (util/grub-emu.c_DEPENDENCIES): ... this.
43257 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43258 (util/grub-emu.c_DEPENDENCIES): ... this.
43259
3f51de77 432602008-01-27 Pavel Roskin <proski@gnu.org>
43261
43262 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
43263 to create a gap between _end and the modules added to the image
43264 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
43265 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
43266 * util/elf/grub-mkimage.c (add_segments): Likewise.
43267
2033f53e 432682008-01-26 Pavel Roskin <proski@gnu.org>
43269
43270 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
43271 just return an error.
43272
22da1f6f 432732008-01-26 Bean <bean123ch@gmail.com>
43274
43275 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
43276 (grub_reiserfs_get_item): Save offset of the next item.
43277 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
43278
2a9525e6 432792008-01-25 Robert Millan <rmh@aybabtu.com>
43280
43281 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
43282 make all filesystem sources appear together (possibly fixing omissions
43283 while at it).
43284 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43285 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43286 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43287 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43288
43289 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
43290 add `kern/file.c'.
43291 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
43292 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43293 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
43294 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43295
43296 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
43297 (probe): Add a sanity check to make sure of our ability to read
43298 requested files when probing for filesystem type.
43299
43300 * genmk.rb: Update copyright year (2007).
43301
43302 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
43303 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
43304 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
43305 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
43306 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
43307 : Remove function prototypes.
43308
b95f71b5 433092008-01-25 Robert Millan <rmh@aybabtu.com>
43310
43311 Revert my previous commits (based on wrong assumption of how grub_errno
43312 works).
43313
fe6b695a 43314 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 43315 * kern/file.c (grub_file_open): Likewise.
43316
d08bbb49 433172008-01-24 Pavel Roskin <proski@gnu.org>
43318
43319 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
43320 that hang if GRUB tries to setup colors.
43321 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
43322 colors for firmwares that don't support it.
43323 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
43324 Recognize Open Hack'Ware, set flags to work around its
43325 limitations.
43326
605e36ed 433272008-01-24 Robert Millan <rmh@aybabtu.com>
43328
43329 * kern/file.c (grub_file_open): Do not account previous failures of
43330 unrelated functions when grub_errno is checked for.
43331 Reported by Oleg Strikov.
43332
bac332a1 433332008-01-24 Bean <bean123ch@gmail.com>
43334
43335 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
43336 (grub_ufs_sblock): New member volume name.
43337 (grub_ufs_find_file): Fix string copy bug.
43338 (grub_ufs_label): Implement this function properly.
43339
43340 * fs/hfs.c (grub_hfs_cnid_type): New enum.
43341 (grub_hfs_iterate_records): Use the correct file number for extents
43342 and catalog file. Fix problem in next index calculation.
43343 (grub_hfs_find_node): Replace recursive function call with loop.
43344 (grub_hfs_iterate_dir): Replace recursive function call with loop.
43345
15c80c09 433462008-01-23 Robert Millan <rmh@aybabtu.com>
43347
43348 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
43349 `<grub/symbol.h>' and `<grub/multiboot.h>'.
43350 (grub_multiboot2_real_boot): New function prototype.
43351
43352 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
43353 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
43354
43355 * kern/i386/ieee1275/init.c (grub_os_area_addr)
43356 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
43357
305338fd 433582008-01-23 Robert Millan <rmh@aybabtu.com>
43359
43360 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
43361 #ifdef'ed out grub_printf().
43362
3ea52685 433632008-01-23 Robert Millan <rmh@aybabtu.com>
43364
43365 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
43366 grub_dprintf calls, since they make "debug=all" mode unusable.
43367 (grub_console_checkkey): Likewise.
43368
5882ae4b 433692008-01-23 Robert Millan <rmh@aybabtu.com>
43370
43371 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
43372 `term/i386/pc/at_keyboard.c'.
43373 (pkglib_MODULES): Add `serial.mod'.
43374 (serial_mod_SOURCES): New variable.
43375 (serial_mod_CFLAGS): Likewise.
43376 (serial_mod_LDFLAGS): Likewise.
43377
43378 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
43379 `<grub/powerpc/ieee1275/console.h>'.
43380 (grub_keyboard_controller_init): New function prototype.
43381 (grub_console_checkkey): Likewise.
43382 (grub_console_getkey): Likewise.
43383
43384 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
43385 keyboard on i386.
43386
43387 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
43388 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
43389
06ab5303 433902008-01-23 Robert Millan <rmh@aybabtu.com>
43391
43392 * kern/i386/pc/init.c (make_install_device): When memdisk image is
43393 present, "(memdisk)/boot/grub" becomes the default prefix.
43394
43395 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
43396 a memdisk tarball with all the modules. Add --overlay=DIR option that
43397 allows users to overlay additional files into the image.
43398
dbb475a4 433992008-01-23 Robert Millan <rmh@aybabtu.com>
43400
43401 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
43402 and `machine/memory.h'.
43403 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
43404 (_multiboot_mod_SOURCES): New variable.
43405 (_multiboot_mod_CFLAGS): Likewise.
43406 (_multiboot_mod_LDFLAGS): Likewise.
43407 (multiboot_mod_SOURCES): Likewise.
43408 (multiboot_mod_CFLAGS): Likewise.
43409 (multiboot_mod_LDFLAGS): Likewise.
43410
43411 * include/grub/i386/ieee1275/loader.h: New file.
43412
43413 * include/grub/i386/ieee1275/machine.h: Likewise.
43414
43415 * include/grub/i386/ieee1275/memory.h: Likewise.
43416
43417 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
43418 variable declaration.
43419 (grub_os_area_size): Likewise.
43420
43421 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
43422 (grub_lower_mem, grub_upper_mem): New variables.
43423 (grub_stop_floppy): New function (just to make
43424 grub_multiboot2_real_boot() happy).
43425
43426 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
43427 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
43428 (grub_stop): New function.
43429 Include `"../realmode.S"' and `"../loader.S"'.
43430
43431 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
43432 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
43433
43434 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
43435 rely on grub_multiboot2_real_boot() for final boot.
43436
25638629 434372008-01-22 Robert Millan <rmh@aybabtu.com>
43438
43439 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
43440 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
43441 device that doesn't look like an SD card.
43442 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43443 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
43444 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
43445 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
43446 found.
43447
9dad816d 434482008-01-22 Robert Millan <rmh@aybabtu.com>
43449
43450 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
43451 avoid claiming over our own code.
43452
34842f2d 434532008-01-22 Bean <bean123ch@gmail.com>
43454
43455 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
43456 (jpeg_mod_SOURCES): New variable.
43457 (jpeg_mod_CFLAGS): Likewise.
43458 (jpeg_mod_LDFLAGS): Likewise.
43459
43460 * video/readers/jpeg.c : New file.
43461
44023a28 434622008-01-22 Bean <bean123ch@gmail.com>
43463
43464 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
43465 there are no more items.
43466
bc2d8ac6 434672008-01-21 Robert Millan <rmh@aybabtu.com>
43468
43469 * kern/mm.c (grub_mm_init_region): Improve debug message.
43470
261bd4bc 434712008-01-21 Robert Millan <rmh@aybabtu.com>
43472
43473 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
43474 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
43475 address.
43476 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
43477 a C macro.
43478 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
43479 Indicates start of upper memory.
43480 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
43481 (generate_image): Abort when image size is big enough to corrupt
43482 upper memory.
43483
43484 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
43485 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
43486 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43487 instead of hardcoding 0xA0000.
43488 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
43489 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43490 instead of hardcoding 0xA0000.
43491
f970b55e 434922008-01-21 Robert Millan <rmh@aybabtu.com>
43493
43494 * disk/memdisk.c (memdisk_size): New variable.
43495 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
43496 `memdisk_size'.
43497 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
43498 image to dynamic memory.
43499 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
43500 `memdisk_size'. Free memdisk block.
43501
1a8b0526 435022008-01-21 Robert Millan <rmh@aybabtu.com>
43503
43504 Fix detection of very small filesystems (like tar).
43505
43506 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
43507 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
43508 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
43509 a problem with this disk).
43510
6e9b4aab 435112008-01-21 Robert Millan <rmh@aybabtu.com>
43512
43513 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
43514 on grub_biosdisk_rw_standard() error.
43515
0d8837b2 435162008-01-21 Robert Millan <rmh@aybabtu.com>
43517
43518 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
43519 recent changes.
43520 * kern/elf.c: Likewise.
43521 * kern/ieee1275/ieee1275.c: Likewise.
43522 * kern/powerpc/ieee1275/openfw.c: Likewise.
43523 * term/ieee1275/ofconsole.c: Likewise.
43524
ffd36e34 435252008-01-21 Robert Millan <rmh@aybabtu.com>
43526
43527 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
43528
3f0093d0 43529 * include/grub/kernel.h (grub_arch_memdisk_addr)
43530 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 43531
3f0093d0 43532 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
43533 (grub_arch_memdisk_size): ... to here.
ffd36e34 43534
6c391b21 435352008-01-21 Robert Millan <rmh@aybabtu.com>
43536
43537 Mostly based on bugfix from Bean.
43538
43539 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
43540 attribute with hook() parameter.
43541 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
43542 declaration.
43543 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
43544 attribute with hook() parameter.
43545 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
43546 declaration.
43547
55a581dc 435482008-01-21 Robert Millan <rmh@aybabtu.com>
43549
43550 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
43551 (pkglib_MODULES): Add `memdisk.mod'.
43552 (memdisk_mod_SOURCES): New variable.
43553 (memdisk_mod_CFLAGS): Likewise.
43554 (memdisk_mod_LDFLAGS): Likewise.
43555
43556 * disk/memdisk.c: New file.
43557
43558 * include/grub/disk.h (grub_disk_dev_id): Add
43559 `GRUB_DISK_DEVICE_MEMDISK_ID'.
43560
43561 * include/grub/i386/pc/kernel.h
43562 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
43563 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
43564 (grub_kernel_image_size): New variable declaration.
43565 (grub_total_module_size): Likewise.
43566 (grub_memdisk_image_size): Likewise.
43567
43568 * include/grub/i386/pc/memory.h
43569 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
43570
43571 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43572 (grub_arch_memdisk_addr): New variable declaration.
43573 (grub_arch_memdisk_size): Likewise.
43574
43575 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43576 (grub_arch_memdisk_size): Likewise.
43577
43578 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43579 (codestart): Replace hardcoded `0x100000' with
43580 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43581
43582 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43583 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43584 not NULL, append the contents of the file it refers to, at the end of
43585 the compressed kernel image. Initialize `grub_memdisk_image_size'
43586 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43587 (options): Add "memdisk"|'m' option.
43588 (main): Parse --memdisk|-m option, and pass user-provided path as
43589 parameter to generate_image().
43590
3d7f54c9 435912008-01-20 Robert Millan <rmh@aybabtu.com>
43592
43593 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43594 grub_dprintf() calls from here ...
43595 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43596
0bf74728 435972008-01-20 Robert Millan <rmh@aybabtu.com>
43598
43599 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43600
43601 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43602 declaration.
43603 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43604 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43605 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 43606 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 43607 property).
43608 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43609 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43610
33bf70a7 436112008-01-19 Robert Millan <rmh@aybabtu.com>
43612
fe6b695a 43613 Get rid of confusing function (superseded by
33bf70a7 43614 `grub_ieee1275_get_integer_property')
43615 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43616 prototype.
43617 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43618 function.
43619 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43620 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 43621 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 43622
e2da7d26 436232008-01-19 Robert Millan <rmh@aybabtu.com>
43624
43625 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43626 command after "shut-down", since implementations differ on which
43627 the command for halt is.
43628
59f1fd8d 436292008-01-19 Robert Millan <rmh@aybabtu.com>
43630
43631 * include/grub/i386/linuxbios/console.h: Add header protection.
43632 (grub_keyboard_controller_init): New function prototype.
43633 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43634 (KEYBOARD_COMMAND_READ): Likewise.
43635 (KEYBOARD_COMMAND_WRITE): Likewise.
43636 (KEYBOARD_SCANCODE_SET1): Likewise.
43637 (grub_keyboard_controller_write): New function.
43638 (grub_keyboard_controller_read): Likewise.
43639 (grub_keyboard_controller_init): Likewise.
43640
43641 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43642 (grub_console_init): On coreboot/LinuxBIOS, call
43643 grub_keyboard_controller_init().
43644
5f5a7c15 436452008-01-19 Robert Millan <rmh@aybabtu.com>
43646
43647 PowerPC changes provided by Pavel Roskin.
43648
43649 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43650 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43651 don't rely on cmain() doing it.
43652 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43653 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43654
1210e168 436552008-01-16 Robert Millan <rmh@aybabtu.com>
43656
43657 * include/grub/i386/linuxbios/memory.h
43658 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43659 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43660 receive `table_header' as argument. Instead, probe for it in the
43661 known memory ranges where it can be present.
43662 (grub_available_iterate): Do not pass a fixed `table_header' address
43663 to grub_linuxbios_table_iterate().
43664
3d04eab8 436652008-01-15 Robert Millan <rmh@aybabtu.com>
43666
43667 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43668 * conf/i386-ieee1275.rmk: New file.
43669 * include/grub/i386/ieee1275/console.h: Likewise.
43670 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43671 * include/grub/i386/ieee1275/kernel.h: Likewise.
43672 * include/grub/i386/ieee1275/time.h: Likewise.
43673 * kern/i386/ieee1275/init.c: Likewise.
43674 * kern/i386/ieee1275/startup.S: Likewise.
43675
d1bc1b73 436762008-01-15 Robert Millan <rmh@aybabtu.com>
43677
43678 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43679 when pointers are 32-bit (but still do set it to one when they are
43680 64-bit).
43681
66a65807 436822008-01-15 Robert Millan <rmh@aybabtu.com>
43683
43684 * include/grub/ieee1275/ieee1275.h
43685 (grub_ieee1275_get_integer_property): New function prototype.
43686
43687 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43688 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 43689 grub_ieee1275_get_property() to handle endianness.
66a65807 43690
43691 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43692 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 43693 where appropriate.
66a65807 43694 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43695 (grub_map): Likewise.
43696 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43697
a83ccafd 436982008-01-15 Bean <bean123ch@gmail.com>
43699
43700 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43701 (grub_script_execute_cmdline): Reset grub_errno.
43702
43703 * normal/main.c (read_config_file): Reset grub_errno.
43704
43705 * normal/parse.y (script_init): New.
43706 (script): Move function and menuentry here.
43707 (delimiter): New.
43708 (command): Add delimiter at the end of command.
43709 (commands): Adjust to match the new command.
43710 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 43711 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 43712 (if): Use the new commands.
43713
43714 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43715
df6ecfc6 437162008-01-15 Robert Millan <rmh@aybabtu.com>
43717
43718 * normal/menu.c (run_menu): Move timeout message from here ...
43719 (print_timeout): ... to here.
43720 (run_menu): Use print_timeout() once during initial draw to print
43721 the whole message, and again in every clock tick to update only
43722 the number of seconds.
43723
87ae25eb 437242008-01-15 Robert Millan <rmh@aybabtu.com>
43725
43726 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43727 actual size of `available' from grub_ieee1275_get_property(), and
43728 restrict parsing to that bound.
43729
47bf09a4 437302008-01-15 Christian Franke <franke@computer.org>
43731
43732 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43733 (argp_program_version): Remove variable.
43734 (argp_program_bug_address): Likewise.
43735 (options): Convert from struct argp_option to struct option.
43736 (struct arguments): Remove.
43737 (parse_opt): Remove.
43738 (usage): New function.
43739 (main): Replace struct args members by simple variables.
43740 Replace argp_parse() by getopt_long().
43741 Add switch to evaluate options.
43742 Add missing "(...)" around root_dev in prefix string.
43743
c86f1469 437442008-01-14 Robert Millan <rmh@aybabtu.com>
43745
43746 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43747 for grub_ieee1275_exit(), in order to improve portability.
43748
e622c559 437492008-01-14 Robert Millan <rmh@aybabtu.com>
43750
43751 * util/grub.d/10_linux.in (prefix): Define.
43752 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43753
44cb1ec8 437542008-01-13 Pavel Roskin <proski@gnu.org>
43755
43756 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43757 grub_errno if no errors have been detected.
43758
1eb8c802 437592008-01-12 Robert Millan <rmh@aybabtu.com>
43760
43761 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43762 (grub_util_get_dev_abstraction): New function prototype.
43763
43764 * util/getroot.c: Include `<grub/util/getroot.h>'
43765 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43766 (grub_util_get_dev_abstraction): ... here (new function).
43767
43768 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43769 `PRINT_ABSTRACTION'.
43770 (probe): Probe for abstraction type when requested.
43771 (main): Understand `--target=abstraction'.
43772
43773 * util/i386/efi/grub-install.in: Add abstraction module to core
43774 image when it is found to be necessary.
43775 * util/i386/pc/grub-install.in: Likewise.
43776 * util/powerpc/ieee1275/grub-install.in: Likewise.
43777
43778 * util/update-grub_lib.in (font_path): Return system path without
43779 converting to GRUB path.
43780 * util/update-grub.in: Convert system path returned by font_path()
43781 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43782 abstraction module is needed for loading fonts (if any). Export
43783 that as `GRUB_PRELOAD_MODULES'.
43784 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
43785 insmod commands).
43786
52bd3de9 437872008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
43788
43789 Remove some unused code from reiserfs.
f19dbdb7 43790
52bd3de9 43791 * fs/reiserfs.c (struct grub_reiserfs_key)
43792 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
43793 (struct grub_reiserfs_node_body): Removed.
43794 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43795 Likewise.
43796 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43797 Likewise.
43798 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43799 Likewise.
43800 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43801 Likewise.
43802 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43803 Likewise.
43804 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
43805 Likewise.
43806 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43807 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43808 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43809
2f80039d 438102008-01-10 Robert Millan <rmh@aybabtu.com>
43811
43812 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
43813 Determines if a file is garbage left by packaging systems, etc.
43814 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
43815 for processing /etc/grub.d scripts.
43816 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
43817 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
43818 as a condition for processing Linux images.
43819
87888032 438202008-01-10 Pavel Roskin <proski@gnu.org>
43821
43822 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
43823 to compile reiserfs.c on PowerPC.
43824
7e54fced 438252008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 43826
43827 * kern/device.c (grub_device_iterate): Do not abort device iteration
43828 when one of the devices cannot be opened.
43829 * kern/disk.c (grub_disk_open): Do not account previous failures of
43830 unrelated functions when grub_errno is checked for.
43831
5aa541e6 438322008-01-08 Robert Millan <rmh@aybabtu.com>
43833
43834 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
43835 `! grub_linux_is_bzimage', change order of address comparison to make
43836 it more intuitive, and improve "too big zImage" error message.
43837
7076340d 438382008-01-08 Robert Millan <rmh@aybabtu.com>
43839
43840 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
43841 `$(update-grub_DATA)'.
43842 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
43843 targets.
43844
9ca70333 438452008-01-07 Robert Millan <rmh@aybabtu.com>
43846
43847 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
43848 which instruction is modified by grub-setup during installation
43849 (since it wasn't obvious by only looking at this file).
43850
38ccf575 438512008-01-07 Robert Millan <rmh@aybabtu.com>
43852
43853 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43854 listing actual TODO items.
43855
f5db4291 438562008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43857
868967cf 43858 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43859 correctly.
43860 (grub_reiserfs_get_key_offset): Likewise.
43861 (grub_reiserfs_set_key_offset): Likewise.
43862 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 43863 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 43864
43865 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43866 better to remove the bitfield version completely.
f19dbdb7 43867
868967cf 438682008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43869
f5db4291 43870 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43871 allocated from the heap, due to the fshelp implementation.
43872 (grub_reiserfs_dir): Free NODE, due to the same reason.
43873
492e6d9d 438742008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43875
43876 Mostly from Vincent Pelletier:
f19dbdb7 43877
492e6d9d 43878 * fs/reiserfs.c: New file.
f19dbdb7 43879
492e6d9d 43880 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43881 (reiserfs_mod_SOURCES): New variable.
43882 (reiserfs_mod_CFLAGS): Likewise.
43883 (reiserfs_mod_LDFLAGS): Likewise.
43884
43885 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43886 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43887 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43888 normal/color.c.
43889
9ce3e7c1 438902008-01-06 Robert Millan <rmh@aybabtu.com>
43891
43892 * normal/color.c: Remove `<grub/env.h>'.
43893
f3b58148 438942008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43895
43896 * include/grub/normal.h: Include <grub/env.h>.
43897
7ac3bcfa 438982008-01-05 Robert Millan <rmh@aybabtu.com>
43899
43900 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43901 usage example with `(hd0,1)'.
fb358190 43902 Reported by Samuel Thibault.
7ac3bcfa 43903
c8ee99d7 439042008-01-05 Robert Millan <rmh@aybabtu.com>
43905
43906 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43907 (grub_linux_boot_zimage): Rename to ...
43908 (grub_linux_boot): ... this.
43909 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43910 (grub_linux_boot_zimage): Conditionalize zImage copy.
43911
43912 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43913 (grub_linux_boot_bzimage): Remove prototype.
43914 (grub_linux_boot_zimage): Rename to ...
43915 (grub_linux_boot): ... this.
43916
43917 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43918 (grub_linux_boot): Remove function.
43919
0ece25b1 439202008-01-05 Robert Millan <rmh@aybabtu.com>
43921
43922 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43923 (grub_env_write_color_highlight): Likewise.
43924 (grub_wait_after_message): Likewise.
43925
43926 * normal/color.c: New file.
43927
43928 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43929 (normal_mod_DEPENDENCIES): Likewise.
43930
43931 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43932 (normal_mod_DEPENDENCIES): Likewise.
43933
43934 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43935 (normal_mod_DEPENDENCIES): Likewise.
43936
43937 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43938 (normal_mod_DEPENDENCIES): Likewise.
43939
43940 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43941 for waiting after a message is printed.
43942 * normal/main.c (read_config_file): Likewise.
43943 (grub_normal_init): Register grub_env_write_color_normal() and
43944 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43945 `color_highlight' variables as global.
43946
43947 * normal/menu.c (grub_wait_after_message): New function.
43948 (grub_color_menu_normal): New variable. Replaces ...
43949 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43950 (grub_color_menu_highlight): New variable. Replaces ...
43951 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43952 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43953 `GRUB_TERM_COLOR_STANDARD'.
43954 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43955 `normal_code' and `highlight_code' to `old_color_normal' and
43956 `old_color_highlight', respectively.
43957 (grub_menu_init_page): Update colors when drawing the menu, based on
43958 `menu_color_normal' and `menu_color_highlight' variables.
43959 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43960 a message is printed.
43961
182dd4e5 439622008-01-05 Robert Millan <rmh@aybabtu.com>
43963
43964 * kern/env.c (grub_env_context_open): Propagate hooks for global
43965 variables to new context.
43966
43967 * kern/main.c (grub_set_root_dev): Export `root' variable.
43968
ddf8f6ad 439692008-01-05 Robert Millan <rmh@aybabtu.com>
43970
43971 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 43972 discs unconditionally, since udev and others have options to provide
ddf8f6ad 43973 them.
43974
d8b43d9b 439752008-01-05 Robert Millan <rmh@aybabtu.com>
43976
43977 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43978
2bff2de3 439792008-01-04 Christian Franke <franke@computer.org>
43980
43981 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43982 of eisa_mmap.
43983
97eab917 439842008-01-03 Pavel Roskin <proski@gnu.org>
43985
43986 * kern/i386/linuxbios/init.c: Put "void" to all function
43987 declarations with no arguments.
43988 * kern/powerpc/ieee1275/init.c: Likewise.
43989 * term/i386/pc/at_keyboard.c: Likewise.
43990 * term/i386/pc/vga_text.c: Likewise.
43991 * util/grub-mkdevicemap.c: Likewise.
43992
b9416d00 439932008-01-02 Robert Millan <rmh@aybabtu.com>
43994
43995 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43996 message when loaded image is out of bounds.
43997 (grub_multiboot_load_elf64): Likewise.
43998
92695df9 439992008-01-02 Pavel Roskin <proski@gnu.org>
44000
44001 * util/grub.d/10_linux.in: Try version without ".old" when
44002 looking for initrd. It's better to use initrd from the newer
44003 kernel of the same version than no initrd at all.
44004
d98d9cad 440052008-01-01 Robert Millan <rmh@aybabtu.com>
44006
44007 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
44008
dbfdce36 440092008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
44010
f19dbdb7 44011 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 44012 grub_video_get_active_render_target.
44013 (grub_video_adapter): Added unmap_color and get_active_render_target.
44014
f19dbdb7 44015 * video/video.c: Added grub_video_unmap_color and
dbfdce36 44016 grub_video_get_active_render_target.
44017 (grub_video_get_info): Changed method to accept NULL pointer as an
44018 argument to allow detection of active video adapter.
44019
44020 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
44021 grub_video_vbe_unmap_color_int.
44022 Added grub_video_vbe_unmap_color and
44023 grub_video_vbe_get_active_render_target.
44024 (grub_video_vbe_adapter): Added unmap_color and
44025 get_active_render_target.
44026
f19dbdb7 44027 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 44028 with grub_video_vbe_unmap_color_int.
44029
44030 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
44031 (DEFAULT_NORMAL_COLOR): Likewise.
44032 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
44033 (DEFAULT_FG_COLOR): Removed.
44034 (DEFAULT_BG_COLOR): Likewise.
44035 (DEFAULT_CURSOR_COLOR): Changed value.
44036 (grub_virtual_screen): Added standard_color_setting,
44037 normal_color_setting, highlight_color_setting and term_color.
44038 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
44039 (bitmap_width): Added.
44040 (bitmap_height): Likewise.
44041 (bitmap): Likewise.
44042 (set_term_color): Likewise.
44043 (grub_virtual_screen_setup): Changed to use new terminal coloring
44044 settings.
44045 (grub_gfxterm_init): Added init for bitmap.
44046 (grub_gfxterm_fini): Added destroy for bitmap.
44047 (redraw_screen_rect): Updated to use background bitmap and new
44048 terminal coloring.
44049 (scroll_up): Added optimization for case when there is no bitmap.
44050 (grub_gfxterm_cls): Fixed to use correct background color.
44051 (grub_virtual_screen_setcolorstate): Changed to use new terminal
44052 coloring.
44053 (grub_virtual_screen_setcolor): Likewise.
44054 (grub_virtual_screen_getcolor): Added.
44055 (grub_gfxterm_background_image_cmd): Likewise.
44056 (grub_video_term): Added setcolor and getcolor.
44057 (MOD_INIT): Added registration of background_image command.
44058 (MOD_TERM): Added unregistration for background_image command.
44059
c3c20931 440602007-12-30 Pavel Roskin <proski@gnu.org>
44061
44062 * loader/multiboot_loader.c: Fix multiboot command
44063 unregistration. Fix all typos in the word "multiboot".
44064
df266716 440652007-12-29 Pavel Roskin <proski@gnu.org>
94239199 44066
44067 * util/grub.d/10_linux.in: Refactor search for initrd. Add
44068 support for initrd names used in Fedora.
44069
fc6e896c 440702007-12-26 Bean <bean123ch@gmail.com>
44071
44072 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
44073 (cpio_mod_SOURCES): New variable.
44074 (cpio_mod_CFLAGS): Likewise.
44075 (cpio_mod_LDFLAGS): Likewise.
44076
44077 * fs/cpio.c: New file.
44078
44079 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
44080
44081 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
44082
44083 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
44084
44085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44086
533110ad 440872007-12-25 Robert Millan <rmh@aybabtu.com>
44088
44089 * include/grub/term.h (struct grub_term): Add `getcolor' function.
44090 (grub_getcolor): New function.
44091
44092 * kern/term.c (grub_getcolor): New function.
44093 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
44094 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
44095 (print_entry): Set normal and highlight colors to
44096 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
44097 respectively, before printing and restore them to old
44098 values afterwards.
44099 (grub_menu_init_page): Likewise. Fill an additional colored space
44100 that would otherwise be left blank.
44101
44102 * term/efi/console.c (grub_console_getcolor): New function.
44103 (struct grub_console_term.getcolor): New variable.
44104 * term/i386/pc/console.c (grub_console_getcolor): New function.
44105 (struct grub_console_term.getcolor): New variable.
44106 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
44107 (struct grub_console_term.getcolor): New variable.
44108
44109 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
44110 (struct grub_console_term.setcolor): Remove variable.
44111 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
44112 (struct grub_console_term.setcolor): Remove variable.
44113 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
44114 (struct grub_console_term.setcolor): Remove variable.
44115 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
44116 (struct grub_console_term.setcolor): Remove variable.
44117
4931827f 441182007-12-25 Robert Millan <rmh@aybabtu.com>
44119
44120 * configure.ac: Search for possible unifont.hex locations, and
44121 define UNIFONT_HEX if found.
44122
44123 * Makefile.in (UNIFONT_HEX): Define variable.
44124 (DATA): Rename to ...
44125 (PKGLIB): ... this. Update all users.
44126 (PKGDATA): New variable.
44127 (pkgdata_IMAGES): Rename to ...
44128 (pkglib_IMAGES): ... this. Update all users.
44129 (pkgdata_MODULES): Rename to ...
44130 (pkglib_MODULES): ... this. Update all users.
44131 (pkgdata_PROGRAMS): Rename to ...
44132 (pkglib_PROGRAMS): ... this. Update all users.
44133 (pkgdata_DATA): Rename to ...
44134 (pkglib_DATA): ... this. Update all users.
44135 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
44136 (unicode.pff, ascii.pff): New rules.
44137 (all-local): Add `$(PKGDATA)' dependency.
44138 (install-local): Process `$(PKGDATA)'.
44139
44140 * util/update-grub_lib.in (font_path): Search for *.pff files in
44141 a few more locations, including `${pkgdata}'.
44142
57e57e31 441432007-12-23 Robert Millan <rmh@aybabtu.com>
44144
44145 Patch from Bean <bean123ch@gmail.com>:
44146 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
44147 `size'.
44148
4bc72aa9 441492007-12-21 Bean <bean123ch@gmail.com>
44150
44151 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
44152 (ntfscomp_mod_SOURCES): New variable.
44153 (ntfscomp_mod_CFLAGS): Likewise.
44154 (ntfscomp_mod_LDFLAGS): Likewise.
44155
44156 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
44157 (grub_probe_SOURCES): Likewise.
44158 (grub_emu_SOURCES): Likewise.
44159
44160 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44161 (grub_emu_SOURCES): Likewise.
44162
44163 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44164 (grub_emu_SOURCES): Likewise.
44165
44166 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44167 (grub_emu_SOURCES): Likewise.
44168
44169 * fs/ntfs.c (grub_ntfscomp_func): New variable.
44170 (read_run_list): Renamed to grub_ntfs_read_run_list.
44171 (decomp_nextvcn): Moved to ntfscomp.c.
44172 (decomp_getch): Likewise.
44173 (decomp_get16): Likewise.
44174 (decomp_block): Likewise.
44175 (read_block): Likewise.
44176 (read_data): Partially moved to ntfscomp.c.
44177 (fixup): Change unsigned to grub_uint16_t.
44178 (read_mft): Change unsigned long to grub_uint32_t.
44179 (read_attr): Likewise.
44180 (read_data): Likewise.
44181 (read_run_data): Likewise.
44182 (read_run_list): Likewise.
44183 (read_mft): Likewise.
44184
44185 * fs/ntfscomp.c: New file.
44186
44187 * include/grub/ntfs.h: New file.
44188
af680a87 441892007-12-16 Robert Millan <rmh@aybabtu.com>
44190
44191 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
44192 IDE disk check, since Linux is known to support 20 IDE disks.
44193 Reported by Colin Watson.
44194
84be7599 441952007-12-15 Bean <bean123ch@gmail.com>
44196
44197 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
44198 (lnxboot_img_SOURCES): New variable.
44199 (lnxboot_img_ASFLAGS): Likewise.
44200 (lnxboot_img_LDFLAGS): Likewise.
44201
44202 * boot/i386/pc/lnxboot.S: New file.
44203
6af9db01 442042007-11-24 Pavel Roskin <proski@gnu.org>
44205
44206 * configure.ac: Test if '--build-id=none' is supported by the
44207 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
44208 objcopy to generate incorrect binary files (binutils
44209 2.17.50.0.18-1 as shipped by Fedora 8).
44210 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
44211 linking, so that build ID doesn't break the test.
44212
7361cfe6 442132007-11-24 Pavel Roskin <proski@gnu.org>
44214
44215 * include/grub/i386/time.h: use "void" in the argument list
44216 of grub_cpu_idle().
44217 * include/grub/powerpc/time.h: Likewise.
44218 * include/grub/sparc64/time.h: Likewise.
44219
1593e10c 442202007-11-18 Christian Franke <franke@computer.org>
44221
44222 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
44223 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
44224 This fixes the problem that function keys did not work in grub-emu.
44225
3b8db1a8 442262007-11-18 Christian Franke <franke@computer.org>
44227
44228 * disk/host.c (grub_host_open): Remove attribute unused from
44229 name parameter. Add check for "host". This fixes the problem
44230 that grub-emu does not find partitions.
44231
2e29408d 442322007-11-18 Christian Franke <franke@computer.org>
44233
44234 * util/hostfs.c (is_dir): New function.
44235 (grub_hostfs_dir): Handle missing dirent.d_type case.
44236 (grub_hostfs_read): Add missing fseek().
44237 (grub_hostfs_label): Clear label pointer. This fixes a crash
44238 of grub-emu on "ls (host)".
44239
398cd047 442402007-11-18 Christian Franke <franke@computer.org>
44241
44242 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
44243 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
44244 to 64 bit boundary by default.
44245
c405c391 442462007-11-18 Bean <bean123ch@gmail.com>
44247
44248 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
44249 (hexdump_mod_SOURCES): New variable.
44250 (hexdump_mod_CFLAGS): Likewise.
44251 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 44252
c405c391 44253 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44254
44255 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44256
44257 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44258
44259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44260
44261 * include/grub/hexdump.h: New file.
44262
44263 * commands/hexdump.c: New file.
44264
5cced7fd 442652007-11-10 Robert Millan <rmh@aybabtu.com>
44266
44267 * commands/i386/pc/play.c (beep_off): Switch order of arguments
44268 in grub_outb() calls.
44269 (beep_on): Likewise.
44270
8b714eb0 442712007-11-10 Christian Franke <franke@computer.org>
44272
44273 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
44274 (grub_menu_run): Likewise.
44275
ce0f1839 442762007-11-10 Robert Millan <rmh@aybabtu.com>
44277
44278 * include/grub/i386/efi/machine.h: New file.
44279 * include/grub/i386/linuxbios/machine.h: Likewise.
44280 * include/grub/i386/pc/machine.h: Likewise.
44281 * include/grub/powerpc/ieee1275/machine.h: Likewise.
44282 * include/grub/sparc64/ieee1275/machine.h: Likewise.
44283
44284 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
44285 (serial_hw_io_addr): New variable.
44286 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
44287 instead of `(unsigned short *) 0x400'.
44288
270c237d 442892007-11-10 Bean <bean123ch@gmail.com>
44290
44291 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
44292
a87783bf 442932007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44294
44295 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
44296 (vga_mod_SOURCES): Added.
44297 (vga_mod_CFLAGS): Likewise.
44298 (vga_mod_LDFLAGS): Likewise.
44299
44300 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
44301 grub_outb() calls.
44302 (set_map_mask): Likewise.
44303 (set_read_map): Likewise.
44304 (set_read_address): Likewise.
44305 (vga_font): Removed variable.
44306 (get_vga_glyph): Removed function.
44307 (invalidate_char): Likewise.
44308 (write_char): Changed to use grub_font_get_glyph() for font
44309 information.
44310 (grub_vga_putchar): Likewise.
44311 (grub_vga_getcharwidth): Likewise.
44312
6433b448 443132007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44314
44315 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
44316 flags.
44317 (pxeboot_img_LDFLAGS): Likewise.
44318 (diskboot_img_LDFLAGS): Likewise.
44319 (kernel_img_LDFLAGS): Likewise.
44320
49178511 443212007-11-06 Robert Millan <rmh@aybabtu.com>
44322
44323 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
44324 in grub_outb() calls.
44325 (serial_hw_init): Likewise.
44326
53b052de 443272007-11-05 Robert Millan <rmh@aybabtu.com>
44328
44329 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
44330 spaces. Skip non-regular files.
44331
5ab33bba 443322007-11-05 Robert Millan <rmh@aybabtu.com>
44333
44334 * kern/disk.c (grub_disk_firmware_fini)
44335 (grub_disk_firmware_is_tainted): New variables.
44336
44337 * include/grub/disk.h (grub_disk_firmware_fini)
44338 (grub_disk_firmware_is_tainted): Likewise.
44339
44340 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
44341 (grub_disk_biosdisk_fini): ... to here.
44342 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
44343 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
44344 is set. Register grub_disk_biosdisk_fini() in
44345 `grub_disk_firmware_fini'.
44346
44347 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
44348 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
44349 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
44350 to finish existing firmware disk interface.
44351
44352 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
44353 (ata_mod_SOURCES): New variable.
44354 (ata_mod_CFLAGS): Likewise.
44355 (ata_mod_LDFLAGS): Likewise.
44356
0149ab7c 443572007-11-05 Robert Millan <rmh@aybabtu.com>
44358
44359 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
44360 (grub_ata_wait): Reimplement using grub_millisleep().
44361
44362 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
44363 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
44364
be7ac41e 443652007-11-03 Marco Gerards <marco@gnu.org>
44366
44367 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
44368 (CRTC_ADDR_PORT): New macro.
44369 (CRTC_DATA_PORT): Likewise.
44370 (CRTC_CURSOR): Likewise.
44371 (CRTC_CURSOR_ADDR_HIGH): Likewise.
44372 (CRTC_CURSOR_ADDR_LOW): Likewise.
44373 (update_cursor): New function.
44374 (grub_console_real_putchar): Call `update_cursor'.
44375 (grub_console_gotoxy): Likewise.
44376 (grub_console_cls): Set the default color when clearing the
44377 screen.
44378 (grub_console_setcursor): Implemented.
44379
bb06ab2e 443802007-11-03 Marco Gerards <marco@gnu.org>
44381
44382 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
44383 become activate.
44384 (grub_ata_pio_write): Likewise.
44385
44386 (grub_atapi_identify): Wait after issuing an ATA command.
44387 (grub_atapi_packet): Likewise.
44388 (grub_ata_identify): Likewise.
44389 (grub_ata_readwrite): Likewise.
44390
cf8f780b 443912007-11-03 Marco Gerards <marco@gnu.org>
44392
44393 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
44394 (grub_ata_pio_write): Likewise.
44395 (grub_ata_readwrite): Use `grub_error', instead of
44396 returning `grub_errno'.
44397
ed649e54 443982007-11-03 Marco Gerards <marco@gnu.org>
44399
44400 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
44401 grub_ata_pio_write once for every single sector, instead of for
44402 multiple sectors.
44403
ca25d8f0 444042007-10-31 Robert Millan <rmh@aybabtu.com>
44405
44406 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
44407
44408 * conf/i386-linuxbios.rmk: New file.
44409
44410 * kern/i386/pc/hardware.c: Likewise.
44411 * term/i386/pc/at_keyboard.c: Likewise.
44412 * term/i386/pc/vga_text.c: Likewise.
44413
44414 * include/grub/i386/linuxbios/boot.h: Likewise.
44415 * include/grub/i386/linuxbios/console.h: Likewise.
44416 * include/grub/i386/linuxbios/init.h: Likewise.
44417 * include/grub/i386/linuxbios/kernel.h: Likewise.
44418 * include/grub/i386/linuxbios/loader.h: Likewise.
44419 * include/grub/i386/linuxbios/memory.h: Likewise.
44420 * include/grub/i386/linuxbios/serial.h: Likewise.
44421 * include/grub/i386/linuxbios/time.h: Likewise.
44422
44423 * kern/i386/linuxbios/init.c: Likewise.
44424 * kern/i386/linuxbios/startup.S: Likewise.
44425 * kern/i386/linuxbios/table.c: Likewise.
44426
e911ecc1 444272007-10-31 Marco Gerards <marco@gnu.org>
44428
44429 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
44430 (ata_mod_SOURCES): New variable.
44431 (ata_mod_CFLAGS): Likewise.
44432 (ata_mod_LDFLAGS): Likewise.
44433
44434 * disk/ata.c: New file.
44435
44436 * include/grub/disk.h (grub_disk_dev_id): Add
44437 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 44438
7f66d0e0 444392007-10-31 Robert Millan <rmh@aybabtu.com>
44440
44441 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
44442 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
44443
44444 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
44445 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
44446
44447 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
44448 `<grub/types.h>'.
44449
44450 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
44451
5cd7dd46 444522007-10-27 Robert Millan <rmh@aybabtu.com>
44453
3236ca65 44454 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 44455
2ebfc90f 444562007-10-22 Robert Millan <rmh@aybabtu.com>
44457
44458 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
44459 `"../realmode.S"'.
44460 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
44461
73fcb0f3 444622007-10-22 Robert Millan <rmh@aybabtu.com>
44463
44464 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
44465 (pkgdata_MODULES): Add `biosdisk.mod'.
44466 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
44467 variables.
44468
44469 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
44470 (grub_biosdisk_init): Replace with ...
44471 (GRUB_MOD_INIT(biosdisk)): ... this.
44472 (grub_biosdisk_fini): Replace with ...
44473 (GRUB_MOD_FINI(biosdisk)): ... this.
44474
44475 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
44476 (grub_machine_init): Remove call to grub_biosdisk_init().
44477 (grub_machine_fini): Remove call to grub_machine_fini().
44478
44479 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
44480
3381d274 444812007-10-22 Robert Millan <rmh@aybabtu.com>
44482
44483 * include/grub/time.h: New file.
44484 * include/grub/i386/time.h: Likewise.
44485 * include/grub/powerpc/time.h: Likewise.
44486 * include/grub/sparc64/time.h: Likewise.
44487
44488 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
44489 instances to ...
44490 (KERNEL_MACHINE_TIME_HEADER): ... this.
44491 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44492 instances to ...
44493 (KERNEL_MACHINE_TIME_HEADER): ... this.
44494 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44495 instances to ...
44496 (KERNEL_MACHINE_TIME_HEADER): ... this.
44497
44498 * kern/i386/efi/init.c: Include `<grub/time.h>'.
44499 (grub_millisleep): New function.
44500 * kern/i386/pc/init.c: Include `<grub/time.h>'.
44501 (grub_millisleep): New function.
44502 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
44503 Remove `grub/machine/time.h' include.
44504 (grub_millisleep): New function.
44505 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
44506 Remove `grub/machine/time.h' include.
44507 (grub_millisleep): New function.
44508
44509 * include/grub/misc.h (grub_div_roundup): New function.
44510
44511 * kern/misc.c: Include `<grub/time.h>'.
44512 (grub_millisleep_generic): New function.
44513
44514 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
44515 Add `time.h'.
44516 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
44517 Add `time.h'.
44518 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
44519 `machine/time.h'. Add `time.h'.
44520 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44521
a39a0312 445222007-10-21 Robert Millan <rmh@aybabtu.com>
44523
44524 * include/grub/misc.h (grub_max): New function.
44525
2aad70e2 445262007-10-21 Robert Millan <rmh@aybabtu.com>
44527
44528 * util/misc.c (grub_util_info): Call fflush() before returning.
44529
54b71c4b 445302007-10-20 Robert Millan <rmh@aybabtu.com>
44531
44532 * genmk.rb (Image): Copy `extra_flags' from here ...
44533 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
44534
44535 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
44536 to `argc' and `args' arguments.
44537
a979f513 445382007-10-17 Robert Millan <rmh@aybabtu.com>
44539
44540 * kern/i386/loader.S: New file.
44541
44542 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
44543 * kern/i386/loader.S (grub_linux_prot_size)... to here.
44544 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
44545 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
44546 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
44547 * kern/i386/loader.S (grub_linux_real_addr)... to here.
44548 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
44549 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
44550 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
44551 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
44552 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
44553 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
44554 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
44555 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
44556
44557 * kern/i386/realmode.S: New file.
44558
44559 * kern/i386/pc/startup.S (protstack): Moved from here ...
44560 * kern/i386/realmode.S (protstack)... to here.
44561 * kern/i386/pc/startup.S (gdt): Moved from here ...
44562 * kern/i386/realmode.S (gdt)... to here.
44563 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
44564 * kern/i386/realmode.S (prot_to_real)... to here.
44565
44566 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
44567 `kern/i386/realmode.S'.
44568
825fc8fd 445692007-10-17 Robert Millan <rmh@aybabtu.com>
44570
44571 * include/grub/i386/loader.h: New file.
44572
44573 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44574 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44575 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44576 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44577 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44578 * include/grub/i386/loader.h (grub_linux_prot_size)
44579 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44580 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44581 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44582 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44583
44584 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44585
e179b2f4 445862007-10-15 Robert Millan <rmh@aybabtu.com>
44587
44588 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44589 filesystem when dev->disk is unset.
44590 Do probe for filesystem even when dev->disk->has_partitions is set.
44591 In case a filesystem is found, always report it.
44592 In case it isn't, if dev->disk->has_partitions is set, report that
44593 a partition table was found instead of reporting that no filesystem
44594 could be identified.
44595
5db82af6 445962007-10-12 Robert Millan <rmh@aybabtu.com>
44597
44598 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44599 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44600
68f6ac74 44601 * include/grub/types.h (grub_host_to_target16): New macro.
44602 (grub_host_to_target32): Likewise.
44603 (grub_host_to_target64): Likewise.
44604 (grub_target_to_host16): Likewise.
44605 (grub_target_to_host32): Likewise.
44606 (grub_target_to_host64): Likewise.
5db82af6 44607
44608 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44609 Renamed from to ...
44610 (GRUB_MOD_ALIGN): ...this. Update all users.
44611
68f6ac74 44612 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44613 grub_host_to_target32.
44614 Replace grub_be_to_cpu32 with grub_target_to_host32.
44615 (load_modules): Likewise.
44616 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44617 Replace grub_be_to_cpu32 with grub_target_to_host32.
44618 Replace grub_cpu_to_be16 with grub_host_to_target16.
44619 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 44620
3cf497cc 446212007-10-12 Robert Millan <rmh@aybabtu.com>
44622
44623 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44624 * util/elf/grub-mkimage.c: ... here.
44625
44626 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44627 `util/powerpc/ieee1275/grub-mkimage.c'.
44628
c8cc3692 446292007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 44630
c8cc3692 44631 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44632 and make it easier to figure out.
44633 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44634 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44635 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44636 leave us with less than HEAP_MIN_SIZE total heap.
44637 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 44638
5c58b791 446392007-10-03 Robert Millan <rmh@aybabtu.com>
44640
44641 * include/grub/i386/io.h: New file.
44642 * commands/i386/pc/play.c (inb): Removed.
44643 (outb): Removed.
44644 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44645 with grub_outb().
afcd2ef8 44646 * term/i386/pc/serial.c (inb): Removed.
44647 (outb): Removed.
44648 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44649 with grub_outb().
44650 * term/i386/pc/vga.c (inb): Removed.
44651 (outb): Removed.
44652 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44653 with grub_outb().
5c58b791 44654
1a477ed6 446552007-10-02 Robert Millan <rmh@aybabtu.com>
44656
44657 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44659 Reported by Marcin Kurek.
44660
6b5d80fa 446612007-09-07 Robert Millan <rmh@aybabtu.com>
44662
44663 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44664 SmartFirmware version updates (as released by Sven Luther), and avoid
44665 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44666 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44667 known broken.
44668
5618afbf 446692007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44670
44671 From Hitoshi Ozeki:
44672 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44673 when merging two regions.
44674
6139dcd9 446752007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44676
508e39ee 44677 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44678 * normal/completion.c (grub_normal_do_completion): Likewise.
44679 Reported by Hitoshi Ozeki.
44680
446812007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44682
6139dcd9 44683 Do not use devices at boot in chainloading.
f19dbdb7 44684
6139dcd9 44685 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44686 (boot_part_addr): Likewise.
44687 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44688 with BOOT_DRIVE and BOOT_PART_ADDR.
44689 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44690 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44691
38da6516 446922007-08-29 Robert Millan <rmh@aybabtu.com>
44693
44694 Patch from Simon Peter <dn.tlp@gmx.net>:
44695 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44696 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44697 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44698 util/i386/pc/grub-setup.c_DEPENDENCIES.
44699 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44700 util/grub-probe.c_DEPENDENCIES.
44701 * conf/powerpc-ieee1275.rmk: Likewise.
44702
29d0928c 447032007-08-28 Robert Millan <rmh@aybabtu.com>
44704
44705 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44706 to tell grub-mkdevicemap how to name devices.
44707 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44708 feature).
44709
44710 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44711 util/i386/get_disk_name.c.
44712 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44713 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44714 util/ieee1275/get_disk_name.c.
44715
44716 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44717
44718 * DISTLIST: Add util/i386/get_disk_name.c and
44719 util/ieee1275/get_disk_name.c.
44720
44721 * util/grub-mkdevicemap.c: Replace device naming logic with
44722 grub_util_get_disk_name() calls.
44723
5a0d3cca 447242007-08-20 Robert Millan <rmh@aybabtu.com>
44725
44726 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44727 (so that it works for both plural and singular quantities).
44728
8b72db2f 447292007-08-05 Robert Millan <rmh@aybabtu.com>
44730
44731 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44732 so that [xz] isn't taken into account when determining order.
44733
352466bf 447342007-08-02 Marco Gerards <marco@gnu.org>
44735
44736 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44737 `include/multiboot2.h', `include/grub/elfload.h',
44738 `include/multiboot.h', `include/grub/multiboot.h',
44739 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44740 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44741 `kern/elf.c', `loader/multiboot_loader.c',
44742 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44743 `loader/i386/pc/multiboot2.c',
44744 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44745 `util/i386/pc/grub-mkrescue.in'. Remove
44746 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44747 `include/grub/i386/pc/util/biosdisk.h' and
44748 `include/grub/powerpc/ieee1275/multiboot.h'.
44749
8f096014 447502007-08-02 Bean <bean123ch@gmail.com>
44751
44752 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44753 (ntfs_mod_SOURCES): New variable.
44754 (ntfs_mod_CFLAGS): Likewise.
44755 (ntfs_mod_LDFLAGS): Likewise.
44756
44757 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44758 (grub_probe_SOURCES): Likewise.
44759 (grub_emu_SOURCES): Likewise.
44760
44761 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44762 (grub_emu_SOURCES): Likewise.
44763
44764 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44765 (grub_emu_SOURCES): Likewise.
f19dbdb7 44766
8f096014 44767 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44768
44769 * fs/ntfs.c: New file.
44770
9959f7db 447712007-08-02 Bean <bean123ch@gmail.com>
44772
44773 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44774
44775 * file.h (grub_file): Likewise.
44776
44777 * fshelp.h (grub_fshelp_read_file): Likewise.
44778
44779 * util/i386/pc/grub-setup.c (setup): Likewise.
44780 (save_first_sector): Likewise.
44781 (save_blocklists): Likewise.
f19dbdb7 44782
9959f7db 44783 * fs/affs.c (grub_affs_read_file): Likewise.
44784
44785 * fs/ext2.c (grub_ext2_read_file): Likewise.
44786
44787 * fs/fat.c (grub_fat_read_data): Likewise.
44788
44789 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
44790
44791 * fs/hfs.c (grub_hfs_read_file): Likewise.
44792
44793 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44794
44795 * fs/jfs.c (grub_jfs_read_file): Likewise.
44796
44797 * fs/minix.c (grub_minix_read_file): Likewise.
44798
44799 * fs/sfs.c (grub_sfs_read_file): Likewise.
44800
44801 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 44802
9959f7db 44803 * fs/xfs.c (grub_xfs_read_file): Likewise.
44804
44805 * command/blocklist.c (read_blocklist): Likewise.
44806 (print_blocklist): Likewise.
44807
0a203f83 448082007-08-02 Marco Gerards <marco@gnu.org>
44809
44810 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
44811 `util/hostfs.c'.
44812
44813 * disk/host.c: New file.
44814
44815 * util/hostfs.c: Likewise.
44816
44817 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
44818 return `GRUB_ERR_BAD_FS'.
44819 * fs/sfs.c (grub_sfs_mount): Likewise.
44820 * fs/xfs.c (grub_xfs_mount): Likewise.
44821
44822 * include/grub/disk.h (enum grub_disk_dev_id): Add
44823 `GRUB_DISK_DEVICE_HOST_ID'.
44824
44825 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
44826
e5dfe777 448272007-07-24 Jerone Young <jerone@gmail.com>
44828
f19dbdb7 44829 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 44830 modules for compilation.
44831 * conf/powerpc-ieee1275.rmk: Likewise.
44832
44833 * include/multiboot.h: Move multiboot definitions to one file. Rename
44834 many definitions to not get grub specific.
44835 * include/multiboot2.h: Create header with multiboot 2 definitions.
44836 * include/grub/multiboot.h: Header for grub specific function
44837 prototypes and definitions.
44838 * include/grub/multiboot2.h: Likewise.
44839 * include/grub/multiboot_loader.h: Likewise.
44840 * include/grub/i386/pc/multiboot.h: Removed.
44841 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
44842
44843 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
44844 and 2 to allow for one multiboot and module commands.
44845 * loader/multiboot2.c: Add multiboot2 functionality.
44846 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
44847 and definition names.
44848 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
44849 2 functions.
44850 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44851 ieee1275 specific multiboot2 code.
44852
44853 * kern/i386/pc/startup.S: Change headers and definition names for
44854 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44855
daf0f0ba 448562007-07-22 Robert Millan <rmh@aybabtu.com>
44857
44858 * geninitheader.sh: Process file specified in first parameter rather
44859 than hardcoding grub_modules_init.lst.
fe6b695a 44860 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 44861 than hardcoding grub_modules_init.h.
44862
44863 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44864 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44865 grub_probe_init.[ch] and grub_setup_init.[ch].
44866
44867 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44868 grub_modules_init.h with grub_emu_init.h.
44869 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44870 grub_probe_init.[ch] files.
44871 * conf/i386-efi.rmk: Likewise.
44872 * conf/i386-pc.rmk: Likewise.
44873 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44874 grub_setup_init.[ch] files.
44875
44876 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44877 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44878 to initialize modules rather than a list of hardcoded functions.
44879 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44880 grub_init_all() to initialize modules rather than a list of hardcoded
44881 functions.
44882
54cdc1cc 448832007-07-22 Robert Millan <rmh@aybabtu.com>
44884
44885 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44886 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44887
ad0686cc 448882007-07-22 Robert Millan <rmh@aybabtu.com>
44889
44890 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44891 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44892 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44893 flag when running on SmartFirmware.
44894 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44895 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44896 was set.
44897
44898 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44899 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44900 rather than decreasing it.
44901
44902 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44903 there's not enough space to do it, fail in the same way as when it
44904 can't be done because there are no partitions.
44905
44906 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44907 when nvsetenv failed.
44908
969c02ec 449092007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44910
44911 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44912 because this rule is automatically generated.
44913 (grub-mkrescue): Removed for the same reason as above.
44914
5a79f472 449152007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44916
44917 Migrate to GNU General Public License Version 3.
f19dbdb7 44918
5a79f472 44919 * COPYING: Replaced with the plain text version of GPLv3.
44920
44921 * config.guess: Updated from gnulib.
44922 * config.sub: Likewise.
44923
44924 * geninit.sh: Output a GPLv3 copyright notice.
44925 * geninitheader.sh: Likewise.
44926 * genmodsrc.sh: Likewise.
44927 * gensymlist.sh.in: Likewise.
44928
44929 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44930 * boot/i386/pc/diskboot.S: Likewise.
44931 * boot/i386/pc/pxeboot.S: Likewise.
44932 * commands/blocklist.c: Likewise.
44933 * commands/boot.c: Likewise.
44934 * commands/cat.c: Likewise.
44935 * commands/cmp.c: Likewise.
44936 * commands/configfile.c: Likewise.
44937 * commands/echo.c: Likewise.
44938 * commands/help.c: Likewise.
44939 * commands/ls.c: Likewise.
44940 * commands/search.c: Likewise.
44941 * commands/terminal.c: Likewise.
44942 * commands/test.c: Likewise.
44943 * commands/videotest.c: Likewise.
44944 * commands/i386/cpuid.c: Likewise.
44945 * commands/i386/pc/halt.c: Likewise.
44946 * commands/i386/pc/play.c: Likewise.
44947 * commands/i386/pc/reboot.c: Likewise.
44948 * commands/i386/pc/vbeinfo.c: Likewise.
44949 * commands/i386/pc/vbetest.c: Likewise.
44950 * commands/ieee1275/halt.c: Likewise.
44951 * commands/ieee1275/reboot.c: Likewise.
44952 * commands/ieee1275/suspend.c: Likewise.
44953 * disk/loopback.c: Likewise.
44954 * disk/lvm.c: Likewise.
44955 * disk/raid.c: Likewise.
44956 * disk/efi/efidisk.c: Likewise.
44957 * disk/i386/pc/biosdisk.c: Likewise.
44958 * disk/ieee1275/ofdisk.c: Likewise.
44959 * font/manager.c: Likewise.
44960 * fs/affs.c: Likewise.
44961 * fs/ext2.c: Likewise.
44962 * fs/fat.c: Likewise.
44963 * fs/fshelp.c: Likewise.
44964 * fs/hfs.c: Likewise.
44965 * fs/hfsplus.c: Likewise.
44966 * fs/iso9660.c: Likewise.
44967 * fs/jfs.c: Likewise.
44968 * fs/minix.c: Likewise.
44969 * fs/sfs.c: Likewise.
44970 * fs/ufs.c: Likewise.
44971 * fs/xfs.c: Likewise.
44972 * hello/hello.c: Likewise.
44973 * include/grub/acorn_filecore.h: Likewise.
44974 * include/grub/arg.h: Likewise.
44975 * include/grub/bitmap.h: Likewise.
44976 * include/grub/boot.h: Likewise.
44977 * include/grub/cache.h: Likewise.
44978 * include/grub/device.h: Likewise.
44979 * include/grub/disk.h: Likewise.
44980 * include/grub/dl.h: Likewise.
44981 * include/grub/elfload.h: Likewise.
44982 * include/grub/env.h: Likewise.
44983 * include/grub/err.h: Likewise.
44984 * include/grub/file.h: Likewise.
44985 * include/grub/font.h: Likewise.
44986 * include/grub/fs.h: Likewise.
44987 * include/grub/fshelp.h: Likewise.
44988 * include/grub/gzio.h: Likewise.
44989 * include/grub/hfs.h: Likewise.
44990 * include/grub/kernel.h: Likewise.
44991 * include/grub/loader.h: Likewise.
44992 * include/grub/lvm.h: Likewise.
44993 * include/grub/misc.h: Likewise.
44994 * include/grub/mm.h: Likewise.
44995 * include/grub/net.h: Likewise.
44996 * include/grub/normal.h: Likewise.
44997 * include/grub/parser.h: Likewise.
44998 * include/grub/partition.h: Likewise.
44999 * include/grub/pc_partition.h: Likewise.
45000 * include/grub/raid.h: Likewise.
45001 * include/grub/rescue.h: Likewise.
45002 * include/grub/script.h: Likewise.
45003 * include/grub/setjmp.h: Likewise.
45004 * include/grub/symbol.h: Likewise.
45005 * include/grub/term.h: Likewise.
45006 * include/grub/terminfo.h: Likewise.
45007 * include/grub/tparm.h: Likewise.
45008 * include/grub/types.h: Likewise.
45009 * include/grub/video.h: Likewise.
45010 * include/grub/efi/api.h: Likewise.
45011 * include/grub/efi/chainloader.h: Likewise.
45012 * include/grub/efi/console.h: Likewise.
45013 * include/grub/efi/console_control.h: Likewise.
45014 * include/grub/efi/disk.h: Likewise.
45015 * include/grub/efi/efi.h: Likewise.
45016 * include/grub/efi/pe32.h: Likewise.
45017 * include/grub/efi/time.h: Likewise.
45018 * include/grub/i386/linux.h: Likewise.
45019 * include/grub/i386/setjmp.h: Likewise.
45020 * include/grub/i386/types.h: Likewise.
45021 * include/grub/i386/efi/kernel.h: Likewise.
45022 * include/grub/i386/efi/loader.h: Likewise.
45023 * include/grub/i386/efi/time.h: Likewise.
45024 * include/grub/i386/pc/biosdisk.h: Likewise.
45025 * include/grub/i386/pc/boot.h: Likewise.
45026 * include/grub/i386/pc/chainloader.h: Likewise.
45027 * include/grub/i386/pc/console.h: Likewise.
45028 * include/grub/i386/pc/init.h: Likewise.
45029 * include/grub/i386/pc/kernel.h: Likewise.
45030 * include/grub/i386/pc/loader.h: Likewise.
45031 * include/grub/i386/pc/memory.h: Likewise.
45032 * include/grub/i386/pc/multiboot.h: Likewise.
45033 * include/grub/i386/pc/serial.h: Likewise.
45034 * include/grub/i386/pc/time.h: Likewise.
45035 * include/grub/i386/pc/vbe.h: Likewise.
45036 * include/grub/i386/pc/vbeblit.h: Likewise.
45037 * include/grub/i386/pc/vbefill.h: Likewise.
45038 * include/grub/i386/pc/vbeutil.h: Likewise.
45039 * include/grub/i386/pc/vga.h: Likewise.
45040 * include/grub/ieee1275/ieee1275.h: Likewise.
45041 * include/grub/ieee1275/ofdisk.h: Likewise.
45042 * include/grub/powerpc/libgcc.h: Likewise.
45043 * include/grub/powerpc/setjmp.h: Likewise.
45044 * include/grub/powerpc/types.h: Likewise.
45045 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
45046 * include/grub/powerpc/ieee1275/console.h: Likewise.
45047 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
45048 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
45049 * include/grub/powerpc/ieee1275/loader.h: Likewise.
45050 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
45051 * include/grub/powerpc/ieee1275/time.h: Likewise.
45052 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
45053 * include/grub/sparc64/libgcc.h: Likewise.
45054 * include/grub/sparc64/setjmp.h: Likewise.
45055 * include/grub/sparc64/types.h: Likewise.
45056 * include/grub/sparc64/ieee1275/console.h: Likewise.
45057 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
45058 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
45059 * include/grub/sparc64/ieee1275/time.h: Likewise.
45060 * include/grub/util/biosdisk.h: Likewise.
45061 * include/grub/util/getroot.h: Likewise.
45062 * include/grub/util/lvm.h: Likewise.
45063 * include/grub/util/misc.h: Likewise.
45064 * include/grub/util/raid.h: Likewise.
45065 * include/grub/util/resolve.h: Likewise.
45066 * io/gzio.c: Likewise.
45067 * kern/device.c: Likewise.
45068 * kern/disk.c: Likewise.
45069 * kern/dl.c: Likewise.
45070 * kern/elf.c: Likewise.
45071 * kern/env.c: Likewise.
45072 * kern/err.c: Likewise.
45073 * kern/file.c: Likewise.
45074 * kern/fs.c: Likewise.
45075 * kern/loader.c: Likewise.
45076 * kern/main.c: Likewise.
45077 * kern/misc.c: Likewise.
45078 * kern/mm.c: Likewise.
45079 * kern/parser.c: Likewise.
45080 * kern/partition.c: Likewise.
45081 * kern/rescue.c: Likewise.
45082 * kern/term.c: Likewise.
45083 * kern/efi/efi.c: Likewise.
45084 * kern/efi/init.c: Likewise.
45085 * kern/efi/mm.c: Likewise.
45086 * kern/i386/dl.c: Likewise.
45087 * kern/i386/efi/init.c: Likewise.
45088 * kern/i386/efi/startup.S: Likewise.
45089 * kern/i386/pc/init.c: Likewise.
45090 * kern/i386/pc/lzo1x.S: Likewise.
45091 * kern/i386/pc/startup.S: Likewise.
45092 * kern/ieee1275/ieee1275.c: Likewise.
45093 * kern/powerpc/cache.S: Likewise.
45094 * kern/powerpc/dl.c: Likewise.
45095 * kern/powerpc/ieee1275/cmain.c: Likewise.
45096 * kern/powerpc/ieee1275/crt0.S: Likewise.
45097 * kern/powerpc/ieee1275/init.c: Likewise.
45098 * kern/powerpc/ieee1275/openfw.c: Likewise.
45099 * kern/sparc64/cache.S: Likewise.
45100 * kern/sparc64/dl.c: Likewise.
45101 * kern/sparc64/ieee1275/init.c: Likewise.
45102 * kern/sparc64/ieee1275/openfw.c: Likewise.
45103 * loader/efi/chainloader.c: Likewise.
45104 * loader/efi/chainloader_normal.c: Likewise.
45105 * loader/i386/efi/linux.c: Likewise.
45106 * loader/i386/efi/linux_normal.c: Likewise.
45107 * loader/i386/pc/chainloader.c: Likewise.
45108 * loader/i386/pc/chainloader_normal.c: Likewise.
45109 * loader/i386/pc/linux.c: Likewise.
45110 * loader/i386/pc/linux_normal.c: Likewise.
45111 * loader/i386/pc/multiboot.c: Likewise.
45112 * loader/i386/pc/multiboot_normal.c: Likewise.
45113 * loader/powerpc/ieee1275/linux.c: Likewise.
45114 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
45115 * normal/arg.c: Likewise.
45116 * normal/cmdline.c: Likewise.
45117 * normal/command.c: Likewise.
45118 * normal/completion.c: Likewise.
45119 * normal/execute.c: Likewise.
45120 * normal/function.c: Likewise.
45121 * normal/lexer.c: Likewise.
45122 * normal/main.c: Likewise.
45123 * normal/menu.c: Likewise.
45124 * normal/menu_entry.c: Likewise.
45125 * normal/misc.c: Likewise.
45126 * normal/parser.y: Likewise.
45127 * normal/script.c: Likewise.
45128 * normal/i386/setjmp.S: Likewise.
45129 * normal/powerpc/setjmp.S: Likewise.
45130 * normal/sparc64/setjmp.S: Likewise.
45131 * partmap/acorn.c: Likewise.
45132 * partmap/amiga.c: Likewise.
45133 * partmap/apple.c: Likewise.
45134 * partmap/gpt.c: Likewise.
45135 * partmap/pc.c: Likewise.
45136 * partmap/sun.c: Likewise.
45137 * term/gfxterm.c: Likewise.
45138 * term/terminfo.c: Likewise.
45139 * term/efi/console.c: Likewise.
45140 * term/i386/pc/console.c: Likewise.
45141 * term/i386/pc/serial.c: Likewise.
45142 * term/i386/pc/vesafb.c: Likewise.
45143 * term/i386/pc/vga.c: Likewise.
45144 * term/ieee1275/ofconsole.c: Likewise.
45145 * util/biosdisk.c: Likewise.
45146 * util/console.c: Likewise.
45147 * util/genmoddep.c: Likewise.
45148 * util/getroot.c: Likewise.
45149 * util/grub-emu.c: Likewise.
45150 * util/grub-mkdevicemap.c: Likewise.
45151 * util/grub-probe.c: Likewise.
45152 * util/lvm.c: Likewise.
45153 * util/misc.c: Likewise.
45154 * util/raid.c: Likewise.
45155 * util/resolve.c: Likewise.
45156 * util/update-grub.in: Likewise.
45157 * util/update-grub_lib.in: Likewise.
45158 * util/grub.d/00_header.in: Likewise.
45159 * util/grub.d/10_hurd.in: Likewise.
45160 * util/grub.d/10_linux.in: Likewise.
45161 * util/i386/efi/grub-install.in: Likewise.
45162 * util/i386/efi/grub-mkimage.c: Likewise.
45163 * util/i386/pc/grub-install.in: Likewise.
45164 * util/i386/pc/grub-mkimage.c: Likewise.
45165 * util/i386/pc/grub-mkrescue.in: Likewise.
45166 * util/i386/pc/grub-setup.c: Likewise.
45167 * util/i386/pc/misc.c: Likewise.
45168 * util/powerpc/ieee1275/grub-install.in: Likewise.
45169 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
45170 * util/powerpc/ieee1275/misc.c: Likewise.
45171 * video/bitmap.c: Likewise.
45172 * video/video.c: Likewise.
45173 * video/i386/pc/vbe.c: Likewise.
45174 * video/i386/pc/vbeblit.c: Likewise.
45175 * video/i386/pc/vbefill.c: Likewise.
45176 * video/i386/pc/vbeutil.c: Likewise.
45177 * video/readers/tga.c: Likewise.
45178
3572d015 451792007-07-02 Robert Millan <rmh@aybabtu.com>
45180
45181 * conf/i386-efi.rmk: Replace obsolete reference to
45182 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
45183 with util/getroot.c.
45184 * conf/powerpc-ieee1275.rmk: Likewise.
45185 * conf/sparc64-ieee1275.rmk: Likewise.
45186
45187 * util/grub-emu.c (main): Fix unchecked pointer handling.
45188
2c2a681b 451892007-07-02 Robert Millan <rmh@aybabtu.com>
45190
45191 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
45192 invocation to fail, in order to support partition-less media.
45193
45194 * util/i386/pc/grub-install.in: Likewise.
45195
45196 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
45197 which fs or partmap modules are needed (akin to its sister scripts).
45198
45199 Also use grub-probe to get rid of unportable /proc/mounts check.
45200
45201 Print the same informational message that the other scripts do, before
fe6b695a 45202 exiting.
2c2a681b 45203
6193defe 452042007-06-23 Robert Millan <rmh@aybabtu.com>
45205
fe6b695a 45206 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 45207 a font file can be found and, if so, echo the GRUB path to it.
45208
45209 * util/update-grub.in: Handle multiple terminals depending on user
45210 input, platform availability and font file presence. Propagate
45211 variables of our findings to /etc/grub.d/ children.
45212
45213 * util/grub.d/00_header.in: Handle multiple terminals, based on
45214 environment setup by update-grub.
45215
eface1dc 452162007-06-23 Robert Millan <rmh@aybabtu.com>
45217
ba50d28f 45218 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 45219
bf697e28 452202007-06-21 Robert Millan <rmh@aybabtu.com>
45221
45222 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
45223 indicate end of data section in kernel image.
45224 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
45225 GRUB_KERNEL_MACHINE_DATA_END.
45226
45227 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
45228 space for it.
45229 * kern/i386/efi/startup.S: Likewise.
45230
45231 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
45232 during image generation. Implement --prefix option to override this
45233 patch.
45234 * util/i386/efi/grub-mkimage.c: Likewise.
45235
45236 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
45237 code to make path relative to its root into a separate function.
45238
45239 * util/i386/pc/grub-install.in: Use newly provided
45240 make_system_path_relative_to_its_root() to convert ${grubdir}, then
45241 pass the result to grub-install --prefix.
45242
baa574b4 452432007-06-13 Robert Millan <rmh@aybabtu.com>
45244
45245 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
45246 DEFAULT_DEVICE_MAP.
45247 * util/grub-emu.c: Use above definitions from misc.h instead of
45248 defining them.
45249 * util/grub-mkdevicemap.c: Likewise.
45250 * util/i386/pc/grub-setup.c: Likewise.
45251 * util/grub-probe.c: Likewise.
45252 (probe): Abort with grub_util_error() when either
45253 grub_guess_root_device or grub_util_get_grub_dev fails.
45254
0215dcbf 452552007-06-12 Robert Millan <rmh@aybabtu.com>
45256
45257 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
45258 "pager" assignment.
45259 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
45260 "pcdata".
45261 * util/grub-probe.c (probe): Likewise for "drive_name".
45262
8af2ab7b 452632007-06-11 Robert Millan <rmh@aybabtu.com>
45264
45265 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
45266 not just the cdrom one.
45267
59d31694 452682007-06-11 Robert Millan <rmh@aybabtu.com>
45269
45270 * util/i386/pc/grub-mkrescue.in: Add "set -e".
45271 Add --pkglibdir=DIR option to override pkglibdir.
45272 Mention --image-type=TYPE in help output.
45273 Fix --grub-mkimage (it was a no-op).
fe6b695a 45274 Abort gracefully when no parameter is given.
59d31694 45275
7ee367e4 452762007-06-11 Robert Millan <rmh@aybabtu.com>
45277
45278 * util/i386/pc/grub-mkrescue.in: New file.
45279 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
45280 * Makefile.in: Handle bin_SCRIPTS.
45281
29b0ed46 452822007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
45283
45284 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
45285 list of video modes.
45286
c0f90770 452872007-06-06 Robert Millan <rmh@aybabtu.com>
45288
45289 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
45290 file doesn't exist, or if it is in a filesystem grub can't read.
45291
45292 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
45293 not abort if GRUB_DRIVE could not be defined. Rearrange generated
45294 header comment to fit in 80 columns when the variables are resolved.
45295
45296 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
45297 could be identified by update-grub. Remove redundant check for
fe6b695a 45298 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 45299 handles that).
45300
fb36dc26 453012007-06-04 Robert Millan <rmh@aybabtu.com>
45302
45303 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
45304
45305 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
45306
45307 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
45308
0c68c93e 453092007-06-04 Robert Millan <rmh@aybabtu.com>
45310
45311 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
45312
45313 * include/grub/partition.h: Declare grub_apple_partition_map_init and
45314 grub_apple_partition_map_fini.
45315
45316 * util/biosdisk.c
45317 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
45318 to access >2 TiB disks).
45319
45320 Print disk->total_sectors with %llu instead of %lu, since this
45321 variable is always 64-bit (prevents wrong disk size from being displayed
45322 on either >2 TiB disk or big-endian CPU).
45323
45324 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
45325 into a generic case that supports all (sane) partition maps.
45326
45327 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
45328 breaks big-endian.
45329
45330 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
45331 and grub_apple_partition_map_fini() after that.
45332
0f23eb74 453332007-06-01 Robert Millan <rmh@aybabtu.com>
45334
45335 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
45336
45337 * util/grub.d/00_header.in: Only enable gfxterm when
45338 convert_system_path_to_grub_path() succeeds.
45339
42c71976 453402007-05-20 Robert Millan <rmh@aybabtu.com>
45341
45342 * util/update-grub_lib.in: New file.
45343 * DISTLIST: Add update-grub_lib.in.
45344 * conf/common.rmk: Generate update-grub_lib and install it in
45345 $(lib_DATA).
45346 * Makefile.in: Add install routine for $(lib_DATA).
45347
45348 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
45349 function provided by update-grub_lib to support arbitrary paths of
45350 unifont.pff.
45351 * util/update-grub.in: Use convert_system_path_to_grub_path() to
45352 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
45353
5beb2291 453542007-05-19 Robert Millan <rmh@aybabtu.com>
45355
45356 * commands/i386/cpuid.c: New module.
45357 * DISTLIST: Add it.
45358 * conf/i386-efi.rmk: Enable cpuid.mod.
45359 * conf/i386-pc.rmk: Likewise.
45360
7262eca1 453612007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45362
45363 * kern/disk.c (grub_disk_read): Check return value of
45364 grub_realloc().
45365
260ba823 453662007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45367
45368 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
45369 arrays.
45370 * disk/raid.c (grub_raid_open): Likewise.
45371
1ecb6cf2 453722007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45373
45374 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
45375 stack instead of on the heap.
45376
45377 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
45378 before doing a read on it.
45379
45380 * configure.ac: Only use -fno-stack-protector for the target
45381 environment.
f19dbdb7 45382
21c8cbb1 453832007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45384
45385 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
45386 __attribute_ ((unused)) to mode_type argument.
45387
45388 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 45389
21c8cbb1 45390 * kern/misc.c (memcmp): Fix prototype.
45391
45392 * include/grub/partition.h [GRUB_UTIL]
45393 (grub_gpt_partition_map_init): Add prototype.
45394 (grub_gpt_partition_map_fini): Likewise.
45395
45396 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
45397 at the right place.
45398
45399 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
45400 (grub_fat_read_data): Likewise.
45401 (grub_fat_find_dir): Likewise.
45402
45403 * font/manager.c (find_glyph): Make table a const.
45404 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 45405
849d55d3 454062007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
45407
45408 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
45409 code, first search for device in /dev/mapper, then in /dev.
45410 (grub_util_get_grub_dev): New function.
45411 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
45412 prototype.
45413 * util/grub-probe.c (probe): Remove check for RAID, call
45414 grub_util_get_grub_dev() instead of
45415 grub_util_biosdisk_get_grub_dev().
45416 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
45417 grub_util_biosdisk_get_grub_dev().
45418 * util/i386/pc/grub-setup.c (main): Likewise.
45419
8fff7c2f 454202007-05-16 Robert Millan <rmh@aybabtu.com>
45421
45422 * DISTLIST: Update for the latest changes.
45423 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
45424 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
45425 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
45426 grub/util/biosdisk.h.
45427 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
45428 grub/util/biosdisk.h.
45429
48e12b52 454302007-05-16 Robert Millan <rmh@aybabtu.com>
45431
45432 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
45433
46b9d128 454342007-05-16 Robert Millan <rmh@aybabtu.com>
45435
45436 * util/i386/efi/grub-install.in: New.
45437 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
45438 newly added grub-install.
45439 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
45440 include.
45441 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
45442 grub/util/biosdisk.h.
45443 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
45444 grub/util/biosdisk.h.
45445
2d1a40a9 454462007-05-16 Robert Millan <rmh@aybabtu.com>
45447
45448 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
45449 * include/grub/util/biosdisk.h: ... here.
45450 * util/i386/pc/biosdisk.c: Moved to ...
45451 * util/biosdisk.c: ... here.
45452 * util/i386/pc/getroot.c: Moved to ...
45453 * util/getroot.c: ... here.
45454 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
45455 * util/grub-mkdevicemap.c: ... here.
45456 * util/i386/pc/grub-probe.c: Moved to ...
45457 * util/grub-probe.c: ... here.
45458
9e26e3bc 454592007-05-15 Robert Millan <rmh@aybabtu.com>
45460
45461 * util/update-grub.in: Remove duplicated line in grub.cfg header
45462 message.
45463
57f96397 454642007-05-13 Robert Millan <rmh@aybabtu.com>
45465
45466 * util/update-grub.in: Fix a few assumptions about the devices holding
45467 /, /boot and /boot/grub being the same.
45468 * util/grub.d/00_header.in: Likewise.
45469 * util/grub.d/10_hurd.in: Likewise.
45470 * util/grub.d/10_linux.in: Likewise.
45471
45472 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
45473 patterns. Use that to define the `.old' suffix as older than `'.
45474
45475 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
45476
45477 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
45478 the grub.cfg header message.
45479
2e610d62 454802007-05-11 Robert Millan <rmh@aybabtu.com>
45481
45482 * util/update-grub.in: Create device.map if it doesn't already exist,
45483 before attempting to run grub-probe.
45484 Check for grub-probe and grub-mkdevicemap with the same code
45485 grub-install is using.
45486 Remove test mode.
45487
3f6a10ef 454882007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
45489
45490 * Makefile.in: Add the datarootdir autoconf variable.
45491
02e7b75e 454922007-05-09 Robert Millan <rmh@aybabtu.com>
45493
45494 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 45495 fail gracefully if dev->disk->partition == NULL.
02e7b75e 45496
75f396cc 454972007-05-07 Robert Millan <rmh@aybabtu.com>
45498
45499 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
45500 determine partition map module.
45501 * util/i386/pc/grub-install.in: Use this feature to decide which
45502 partition module to load, instead of hardcoding pc and gpt.
45503
da65cb36 455042007-05-07 Robert Millan <rmh@aybabtu.com>
45505
45506 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
45507 source directory differs from build directory.
45508
b57d6a91 455092007-05-05 Robert Millan <rmh@aybabtu.com>
45510
45511 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
45512 initialisation.
45513
509d00f1 455142007-05-05 Robert Millan <rmh@aybabtu.com>
45515
45516 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
45517
c48f23ef 455182007-05-05 Robert Millan <rmh@aybabtu.com>
45519
45520 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
45521 command-line arguments via ${GRUB_CMDLINE_LINUX}.
45522
20b97658 455232007-05-05 Robert Millan <rmh@aybabtu.com>
45524
45525 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
45526 (grub_probe_SOURCES): Likewise.
45527 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
45528 GPT and initialize dos_part and bsd_part accordingly.
45529 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
45530 install_bsd_part.
45531 (main): Activate gpt module for use during partition identification,
45532 and deactivate it afterwards.
45533 * util/i386/pc/grub-install.in: Add gpt module to core.img.
45534 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
45535 partition identification, and deactivate it afterwards.
45536
99123174 455372007-05-05 Robert Millan <rmh@aybabtu.com>
45538
45539 * term/i386/pc/console.c (grub_console_fini): Call
45540 grub_term_set_current() before grub_term_unregister().
45541
ebd97f6e 455422007-05-04 Robert Millan <rmh@aybabtu.com>
45543
45544 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
45545 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
45546 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
45547 and update-grub_DATA.
45548 * conf/common.rmk: Build and install update-grub components.
45549 * conf/common.mk: Regenerate.
45550 * util/update-grub.in: New. Core of update-grub.
45551 * util/grub.d/00_header.in: New. Generates grub.cfg header.
45552 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
45553 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
45554 * util/grub.d/README: New. Document grub.d directory layout.
45555
b06a264d 455562007-05-01 Robert Millan <rmh@aybabtu.com>
45557
45558 * util/grub-emu.c: Move initialization functions
45559 grub_util_biosdisk_init() and grub_init_all() before
45560 grub_util_biosdisk_get_grub_dev(), which relies on them.
45561
41f0050e 455622007-04-19 Robert Millan <rmh@aybabtu.com>
45563
45564 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
45565 it is used later.
45566
04582bb3 455672007-04-18 Jerone Young <jerone@gmail.com>
45568
f19dbdb7 45569 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 45570 stanza.
45571
08db4632 455722007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 45573
08db4632 45574 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45575 continue on and look for device node with real device name.
45576
801b76be 455772007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 45578
fe6b695a 45579 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 45580 ability.
45581 * Makefile.in: Add autoconf package transformation code.
45582 * util/i386/pc/grub-install.in: Likewise.
45583 * util/powerpc/ieee1275/grub-install.in: Likewise.
45584
6795c4e1 455852007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45586
45587 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45588 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45589 (EXT2_REVISION): Likewise.
45590 (EXT2_INODE_SIZE): Likewise.
45591 (struct grub_ext2_block_group): Added a missing member
45592 "used_dirs".
45593 (grub_ext2_read_inode): Divide by the inode size in a superblock
45594 instead of 128 to obtain INODES_PER_BLOCK.
45595 Use the macro EXT2_INODE_SIZE instead of directly using
45596 SBLOCK->INODE_SIZE.
45597
d70af616 455982007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45599
45600 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45601 superblock instead of the structure size to compute an
45602 offset. This fixes the problem that GRUB could not read a
45603 filesystem when inode size is different from 128-byte.
45604
3b801603 456052007-03-05 Marco Gerards <marco@gnu.org>
45606
45607 * normal/main.c (read_config_file): When "menu" is not set, create
45608 an initial context.
45609
4785bfe4 456102007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45611
45612 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45613 (HEAP_LIMIT): New macro.
45614 (grub_claim_heap): Claim memory up to `heaplimit'.
45615
a0cbb023 456162007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45617
45618 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45619 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45620 (_start): Likewise.
45621 (grub_arch_modules_addr): Return address after `_end'.
45622 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45623 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45624 (add_segments): Calculate `_end' from phdr size and location.
45625 (ALIGN_UP): Moved to ...
45626 * include/grub/misc.h: here.
45627 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45628 New macro.
45629 (GRUB_IEEE1275_MODULE_BASE): Removed.
45630
fd7d8eba 456312007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45632
45633 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45634 loop boundary.
45635
9b09e6fc 456362007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45637
45638 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45639 All users updated.
45640 (grub_elf64_load_hook_t): Likewise.
45641 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45642 debug output.
45643
3ce27299 456442007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45645
45646 * kern/mm.c: Update copyright.
45647 (grub_mm_debug): Correct syntax error.
45648 (grub_mm_dump_free): New function.
45649 (grub_debug_free): Call `grub_free'.
45650 * include/grub/mm.h: Update copyright.
45651 (grub_mm_dump_free): Add declaration.
45652
077d5fee 456532007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45654
45655 * include/grub/ieee1275/ieee1275.h: Update copyright.
45656 * kern/powerpc/ieee1275/init.c: Likewise.
45657 * kern/powerpc/ieee1275/openfw.c: Likewise.
45658
45659 * loader/powerpc/ieee1275/linux.c: Likewise.
45660 * include/grub/elfload.h: Likewise.
45661 * kern/elf.c: Likewise.
45662 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45663 callers.
45664 (grub_elf64_load): Likewise.
45665 (grub_elf32_load_segment): Move to a nested function.
45666 (grub_elf64_load_segment): Likewise.
45667
dc946850 456682007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45669
45670 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45671 prototype.
45672 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45673 (grub_heap_len): Likewise.
45674 (HEAP_SIZE): New macro.
45675 (grub_claim_heap): New function.
45676 (grub_machine_init): Don't claim heap directly. Call
45677 `grub_claim_heap'.
45678 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45679 (grub_available_iterate): New function.
45680
baa2a121 456812007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45682
45683 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45684 * configure.ac: Use it for testing the HOST and TARGET compilers.
45685
4fe9862e 456862006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45687
45688 * Makefile.in (enable_grub_emu): New variable.
45689 * configure.ac (--enable-grub-emu): New option.
45690 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45691 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45692 * conf/i386-pc.rmk: Likewise.
45693 * conf/powerpc-ieee1275.rmk: Likewise.
45694 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45695
a8aa5762 456962006-12-12 Marco Gerards <marco@gnu.org>
45697
45698 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45699
45700 * kern/env.c (grub_env_unset): Don't free the member `value' when
45701 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45702 pointer.
45703
45704 * normal/main.c (current_menu): Removed.
45705 (free_menu): Unset the `menu' environment variable.
45706 (grub_normal_menu_addentry): Make use of the environment variable
45707 `menu', instead of using the global `current_menu'. Allocate
45708 memory for the sourcecode of this entry.
45709 (read_config_file): New argument `nested', changed all callers.
45710 Only in the case of a new context, initialize a new menu. Set the
45711 `menu' environment variable.
45712 (grub_normal_execute): Don't set and unset the environment
45713 variable `menu' here anymore. Only free the menu when leaving the
45714 context.
45715
45716 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45717 leak.
45718
957b3a3e 457192006-12-11 Marco Gerards <marco@gnu.org>
45720
45721 * normal/menu_entry.c (run): Fix off by one bug so the last line
45722 is executed. Move the loader check to outside the loop.
45723
ef875714 457242006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45725
45726 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45727
4e739985 457282006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45729
45730 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45731 the number of sectors. Reported by Andrey Shuvikov
45732 <mr_hyro@yahoo.com>.
f19dbdb7 45733
790707f2 457342006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45735
45736 * kern/disk.c (grub_disk_read): When there is a read error, always
45737 try to read only the necessary data.
f19dbdb7 45738
790707f2 45739 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45740 disk/raid.c.
45741 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45742 prototype.
45743 [GRUB_UTIL] (grub_raid_fini): Likewise.
45744 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 45745 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 45746 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45747 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45748 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45749 and grub_raid_fini().
f19dbdb7 45750
03e58196 457512006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45752
45753 * include/grub/types.h (__unused): Rename to UNUSED.
45754 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45755 (grub_elf64_size): Likewise.
f19dbdb7 45756
ae4f23bf 457572006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45758
45759 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45760 grub_error_push and grub_error_pop in the error-handling path.
45761 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45762 length.
45763
2166cc83 457642006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45765
45766 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45767 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45768 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45769 (kernel_elf_SOURCES): Likewise.
45770 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45771 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45772 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45773 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45774 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45775 (elf_mod_SOURCES): New variable.
45776 (elf_mod_CFLAGS): Likewise.
45777 (elf_mod_LDFLAGS): Likewise.
45778 * include/grub/types.h (__unused): New macro.
45779 * include/grub/elfload.h: New file.
45780 * kern/elf.c: Likewise.
45781 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45782 (ELF32_LOADMASK): New macro.
45783 (ELF64_LOADMASK): Likewise.
45784 (vmlinux): Removed.
45785 (grub_linux_load32): New function.
45786 (grub_linux_load64): Likewise.
45787 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
45788 Use grub_elf_t instead of grub_file_t.
45789
a09d5aa5 457902006-11-02 Hollis Blanchard <hollis@penguinppc.org>
45791
45792 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
45793 `catch_result' to struct set_color_args.
45794
d976fc51 457952006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45796
45797 * normal/menu.c: Include grub/script.h.
45798 * normal/menu_entry.c: Likewise.
45799 * include/grub/normal.h: Do not include grub/script.h.
45800
67507549 458012006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45802
45803 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
45804
69203a99 458052006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45806
45807 * kern/disk.c (grub_disk_open): Print debug messages when opening a
45808 disk.
45809 (grub_disk_close): Print debug messages when closing a disk.
45810 (grub_disk_read): Print debug messages when disk read fails.
45811 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
45812 filesystem type.
45813 * kern/partition.c: Include misc.h.
45814 (grub_partition_iterate): Print debug messages when detecting
45815 partition type.
45816
e2b8278c 458172006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45818
45819 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
45820 is negative.
45821 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
45822
97b2f2ff 458232006-10-26 Hollis Blanchard <hollis@penguinppc.org>
45824
45825 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45826 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
45827
6555d655 458282006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
45829
45830 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
45831 instead of sizeof(lv). Patch by Michael Guntsche.
45832
4d42b77f 458332006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
45834
45835 * disk/lvm.c: Rename VGS to VG_LIST.
45836 (grub_lvm_iterate): Change VGS->LV to VG-LV.
45837 (grub_lvm_open): Likewise.
45838 Thanks to Michael Guntsche for finding this bug.
45839
5d74d927 458402006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45841
45842 * configure.ac (AC_INIT): Bumped to 1.95.
45843
a1bb27e4 458442006-10-14 Robert Millan <rmh@aybabtu.com>
45845
45846 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
45847 with "/dev/.static/dev/md".
45848
e0994b8b 458492006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45850
45851 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45852 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45853 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45854 DRIVE_NAME are always freed.
45855
45856 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45857 DOS_PART, as a DOS partition is counted from one instead of zero
45858 now. Reported by Robert Millan.
45859
ddd5cee9 458602006-10-14 Robert Millan <rmh@aybabtu.com>
45861
45862 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45863 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45864 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45865 string returned by grub_guess_root_device.
45866 * util/i386/pc/grub-setup.c: Likewise.
45867 * util/i386/pc/grub-probefs.c: Likewise.
45868
45869 * util/i386/pc/grub-probefs.c: Rename to ...
45870 * util/i386/pc/grub-probe.c: ... this.
45871 * DISTLIST: Remove grub-probefs, add grub-probe.
45872 * conf/i386-efi.rmk: Likewise.
45873 * conf/i386-pc.rmk: Likewise.
45874 * util/i386/pc/grub-install.in: Likewise.
45875
45876 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45877 choose which information we want to print.
45878
2b002173 458792006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45880
45881 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45882 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45883 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45884 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45885 video/readers/tga.c and video/i386/pc/vbeutil.c.
45886
458872006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45888
45889 Added support for RAID and LVM.
f19dbdb7 45890
2b002173 45891 * disk/lvm.c: New file.
45892 * disk/raid.c: Likewise.
45893 * include/grub/lvm.h: Likewise.
f19dbdb7 45894 * include/grub/raid.h: Likewise.
2b002173 45895 * include/grub/util/lvm.h: Likewise.
45896 * include/grub/util/raid.h: Likewise.
45897 * util/lvm.c: Likewise.
45898 * util/raid.c: Likewise.
45899
45900 * include/grub/disk.h (grub_disk_dev_id): Add
45901 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45902 (grub_disk_get_size): New prototype.
45903 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45904 returns a partition.
45905 (grub_disk_get_size): New function.
f19dbdb7 45906
2b002173 45907 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45908 verbatim if grub_install_dos_part is -2.
45909
45910 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45911 and LVM devices.
45912
45913 * util/i386/pc/grub-setup.c (setup): New argument
45914 MUST_EMBED. Force embedding of GRUB when the argument is
45915 true. Close FILE before returning.
45916 (main): Add support for RAID and LVM.
f19dbdb7 45917
2b002173 45918 * conf/common.rmk: Add RAID and LVM modules.
45919 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45920 util/lvm.c.
45921 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45922
45923 * kern/misc.c (grub_strstr): New function.
45924 * include/grub/misc.h (grub_strstr): New prototype.
45925
050548d0 459262006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45927
45928 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45929
da849d2d 459302006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45931
45932 * kern/misc.c (grub_strtoull): Guess the base only if not
45933 specified.
45934
97b2f2ff 459352006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 45936
45937 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45938 PowerMac support.
45939
97b2f2ff 459402006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 45941
45942 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45943
45944 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45945 Remove `flags' argument. All callers changed.
45946 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45947 (IEEE1275_IHANDLE_INVALID): New variable.
45948 (IEEE1275_CELL_INVALID): New variable.
45949 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45950 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45951 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45952 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45953 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45954 codes from Open Firmware. All callers updated.
45955 (grub_ieee1275_next_property): Directly return Open Firmware return
45956 code.
45957 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45958 Standardize error checking from `grub_ieee1275_get_property'.
45959 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45960 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45961
97b2f2ff 459622006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 45963
45964 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45965 `instance_to_package_args' to `instance_to_path_args'.
45966
45967 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45968 `grub_ieee1275_chosen'.
45969
45970 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45971 `grub_ieee1275_interpret'.
45972
97b2f2ff 459732006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 45974
45975 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45976
97b2f2ff 459772006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 45978
45979 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45980 (__cmpdi): Likewise.
45981
45982 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45983 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45984 `grub_ssize_t'.
45985
02bb8acc 45986 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 45987
45988 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45989 to type `grub_ssize_t'.
45990 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45991
7f9a8531 459922006-09-22 Marco Gerards <marco@gnu.org>
45993
45994 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45995 newlines.
45996
b5ef1102 459972006-09-22 Marco Gerards <marco@gnu.org>
45998
45999 * commands/echo.c: New file.
46000
46001 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
46002
46003 * conf/common.rmk (echo_mod_SOURCES): New variable.
46004 (echo_mod_CFLAGS): Likewise.
46005 (echo_mod_LDFLAGS): Likewise.
46006
2cff3677 460072006-09-22 Marco Gerards <marco@gnu.org>
46008
46009 * normal/main.c (get_line): Malloc memory instead of using
46010 preallocated memory. Removed the arguments `cmdline' and
46011 `max_len'. Updated all callers.
46012
6ba4688b 460132006-09-22 Marco Gerards <marco@gnu.org>
46014
46015 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
46016 (normal_mod_DEPENDENCIES): Likewise.
46017
46018 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
46019 (normal_mod_DEPENDENCIES): Likewise.
46020
46021 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
46022
e02ac02c 460232006-09-22 Johan Rydberg <jrydberg@gnu.org>
46024
46025 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
46026 programs.
46027 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
46028 (normal_mod_DEPENDENCIES): Likewise.
46029 * conf/i386-pc.mk: Regenerate.
46030 * conf/i386-efi.mk: Likewise
46031 * conf/common.mk: Likewise.
46032 * conf/powerpc-ieee1275.mk: Likewise.
46033 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 46034
8d252e44 460352006-09-22 Robert Millan <rmh@aybabtu.com>
46036
46037 Sync with i386 version.
46038 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
46039 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
46040
209bf7ac 460412006-09-21 Robert Millan <rmh@aybabtu.com>
46042
46043 Import from GRUB Legacy (lib/device.c):
46044 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
46045 (init_device_map) [__linux__]: Add support for I2O devices.
46046
6b146090 460472006-09-14 Marco Gerards <marco@gnu.org>
46048
46049 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
46050 `-melf_i386'.
46051
e38600a8 460522006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 46053
46054 * util/i386/pc/grub-install.in: Skip menu.lst when removing
46055 /boot/grub/*.lst.
78fa1790 46056
2952da5d 46057 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 46058
2952da5d 46059 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
46060 before adding it to device.map.
46061
01b82a64 460622006-08-15 Johan Rydberg <jrydberg@gnu.org>
46063
fe6b695a 46064 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 46065 compiles a file; using the -MD option.
46066 * conf/common.mk: Regenerate.
46067 * conf/i386-pc.mk: Likewise.
46068 * conf/i386-efi.mk: Likewise.
46069 * conf/powerpc-ieee1275.mk: Likewise.
46070 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 46071
1064790d 460722006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
46073
46074 Move the prototypes of grub_setjmp and grub_longjmp to
46075 cpu/setjmp.h, so that each architecture may specify different
46076 attributes.
f19dbdb7 46077
1064790d 46078 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
46079 (grub_longjmp): Likewise.
46080 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
46081 (grub_longjmp): Likewise.
46082 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
46083 (grub_longjmp): Likewise.
46084
46085 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
46086 [!GRUB_UTIL] (grub_longjmp): Removed.
46087
29dda3ed 460882006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
46089
46090 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
46091 "color!" method does not return any value.
46092
ad2a06ed 460932006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46094
46095 * include/grub/bitmap.h: New file.
46096
46097 * include/grub/i386/pc/vbeutil.h: Likewise.
46098
46099 * video/bitmap.c: Likewise.
46100
46101 * video/readers/tga.c: Likewise.
46102
46103 * video/i386/pc/vbeutil.c: Likewise.
46104
46105 * commands/videotest.c: Code cleanup and updated to reflect to new
46106 video API.
46107
46108 * term/gfxterm.c: Likewise.
46109
46110 * video/video.c: Likewise.
46111
46112 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
46113 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
46114 (bitmap_mod_SOURCES): New entry.
46115 (bitmap_mod_CFLAGS): Likewise.
46116 (bitmap_mod_LDFLAGS): Likewise.
46117 (tga_mod_SOURCES): Likewise.
46118 (tga_mod_CFLAGS): Likewise.
46119 (tga_mod_LDFLAGS): Likewise.
46120
46121 * include/grub/video.h (grub_video_blit_operators): New enum type.
46122 (grub_video_render_target): Changed as forward declaration and moved
46123 actual definition to be video driver specific.
46124 (grub_video_adapter.blit_bitmap): Added blitting operator.
46125 (grub_video_adapter.blit_render_target): Likewise.
46126 (grub_video_blit_bitmap): Likewise.
46127 (grub_video_blit_render_target): Likewise.
46128
46129 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
46130 driver specific render target definition.
46131 (grub_video_vbe_map_rgba): Added driver internal helper.
46132 (grub_video_vbe_unmap_color): Updated to use
46133 grub_video_i386_vbeblit_info.
46134 (grub_video_vbe_get_video_ptr): Likewise.
46135
46136 * include/grub/i386/pc/vbeblit.h
46137 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
46138 grub_video_i386_vbeblit_info.
46139 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
46140 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
46141 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
46142 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
46143 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
46144 (grub_video_i386_vbeblit_index_index): Likewise.
46145 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
46146 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
46147 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
46148 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
46149 operator.
46150 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
46151 operator.
46152
46153 * video/i386/pc/vbeblit.c: Updated to reflect changes on
46154 include/grub/i386/pc/vbeblit.h.
46155
46156 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
46157 Updated to use grub_video_i386_vbeblit_info.
46158 (grub_video_i386_vbefill_R8G8B8): Likewise.
46159 (grub_video_i386_vbefill_index): Likewise.
46160 (grub_video_i386_vbefill): Added generic filler.
46161
46162 * video/i386/pc/vbefill.c: Updated to reflect changes on
46163 include/grub/i386/pc/vbefill.h.
46164
46165 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
46166 grub_video_i386_vbeblit_info.
46167 (grub_video_vbe_unmap_color): Likewise.
46168 (grub_video_vbe_blit_glyph): Likewise.
46169 (grub_video_vbe_scroll): Likewise.
46170 (grub_video_vbe_draw_pixel): Removed function.
46171 (grub_video_vbe_get_pixel): Likewise.
46172 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
46173 updated code to use it.
46174 (common_blitter): Added common blitter for render target and bitmap.
46175 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
46176 (grub_video_vbe_blit_render_target): Likewise.
46177
bc8c036d 461782006-07-30 Johan Rydberg <jrydberg@gnu.org>
46179
46180 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
46181 is in text mode if there is no console control protocol instance
46182 available.
46183
684a8eff 461842006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46185
46186 * include/grub/video.h: Code cleanup.
46187
46188 * include/grub/i386/pc/vbe.h: Likewise.
46189
46190 * video/i386/pc/vbe.c: Likewise.
46191
46192 * video/i386/pc/vbeblit.c: Likewise.
46193
46194 * video/i386/pc/vbefill.c: Likewise.
46195
46196 * video/video.c: Likewise. Also added more comments.
46197
5915059b 461982006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46199
46200 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
46201 (struct grub_biosdisk_dap): Likewise.
46202
46203 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
46204 linkage settings for all functions.
46205
90ce5d56 462062006-07-12 Marco Gerards <marco@gnu.org>
46207
46208 * configure.ac (--enable-mm-debug): Fix typo.
46209
46210 * genkernsyms.sh.in: Use proper quoting for `CC'.
46211
43e7f879 462122006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
46213
46214 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
46215 (normal_mod_ASFLAGS): Remove "-m32".
46216
4889bdec 462172006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
46218
46219 * util/misc.c: Include config.h.
46220 [!HAVE_MEMALIGN]: Do not include malloc.h.
46221 (grub_memalign): Use posix_memalign, if present. Then, use
46222 memalign, if present. Otherwise, emit an error.
46223
46224 * util/grub-emu.c: Do not include malloc.h.
46225
46226 * include/grub/util/misc.h: Include unistd.h. This is required for
46227 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
46228 D. Eades III <hde@foobar-qux.org>.
46229
46230 * configure.ac (AC_GNU_SOURCE): Added.
46231 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
46232 type.
46233
fd39d4da 462342006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
46235
46236 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
46237 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
46238
b786f3b5 462392006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
46240
46241 * include/grub/types.h (grub_host_addr_t): Rename to
46242 grub_target_addr_t.
46243 (grub_host_off_t): Rename to grub_target_off_t.
46244 (grub_host_size_t): Rename to grub_target_size_t.
46245 (grub_host_ssize_t): Rename to grub_target_ssize_t.
46246 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
46247
46248 * include/grub/kernel.h (struct grub_module_header): Change type
46249 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
46250 (grub_module_info): Likewise.
f19dbdb7 46251
051988bb 462522006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46253
46254 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
46255 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
46256 Velazquez <jesus.velazquez@gmail.com>.
46257
deae281b 462582006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46259
46260 Count partitions from 1 instead of 0 in the string representation
46261 of partitions. Still use 0-based internally.
f19dbdb7 46262
deae281b 46263 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
46264 (sun_partition_map_iterate): Use grub_partition_t instead of
46265 struct grub_partition *. Cast DESC->START_CYLINDER to
46266 grub_uint64_t after converting the endian.
46267 (sun_partition_map_probe): Subtract 1 for PARTNUM.
46268 (sun_partition_map_get_name): Add 1 to P->INDEX.
46269
46270 * partmap/pc.c (grub_partition_parse): Subtract 1 for
46271 PCDATA->DOS_PART.
46272 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
46273
46274 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
46275 zero instead of one.
46276 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
46277 (gpt_partition_map_get_name): Add 1 into P->INDEX.
46278
46279 * partmap/apple.c (apple_partition_map_iterate): Change the type
46280 of POS to unsigned.
46281 (apple_partition_map_probe): Subtract 1 for PARTNUM.
46282 (apple_partition_map_get_name): Add 1 into P->INDEX.
46283
46284 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
46285 of POS to unsigned.
46286 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
46287 calculate the offset of a partition.
46288 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
46289 (amiga_partition_map_get_name): Add 1 into P->INDEX.
46290
46291 * partmap/acorn.c (acorn_partition_map_find): Change the type of
46292 SECTOR to grub_disk_addr_t.
46293 (acorn_partition_map_iterate): Likewise.
46294 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
46295 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
46296 top.
46297 (acorn_partition_map_get_name): Add 1 into P->INDEX.
46298
46299 * kern/i386/pc/init.c (make_install_device): Add 1 into
46300 GRUB_INSTALL_DOS_PART.
46301
46302 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
46303 conditional.
46304
524a1e6a 463052006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46306
46307 Clean up the code to support 64-bit addressing in disks and
46308 files. This change is not enough for filesystems yet.
f19dbdb7 46309
524a1e6a 46310 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
46311 type of "start" to grub_uint64_t.
46312 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
46313 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
46314 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
46315 convert addresses.
46316
46317 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
46318 to grub_disk_addr_t.
46319
46320 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
46321 string.
46322
46323 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46324
46325 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
46326 to char *.
46327
46328 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
46329
46330 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
46331
46332 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
46333
46334 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
46335 to grub_off_t, to detect an error from grub_file_seek.
46336 (grub_multiboot_load_elf32): Likewise.
46337
46338 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
46339 maximum unsigned long value when an overflow is detected.
46340 (grub_strtoull): New function.
46341 (grub_divmod64): Likewise.
46342 (grub_lltoa): use grub_divmod64.
46343
46344 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
46345 grub_disk_addr_t.
46346 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
46347 the pointer to next character. Use grub_strtoull instead of
46348 grub_strtoul.
46349 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
46350 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
46351 respectively.
46352
fe6b695a 46353 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 46354 return value is signed.
46355 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
46356 test if OFFSET is less than zero, as OFFSET is unsigned now.
46357
46358 * kern/disk.c (struct grub_disk_cache): Change the type of
46359 "sector" to grub_disk_addr_t.
46360 (grub_disk_cache_get_index): Change the type of SECTOR to
46361 grub_disk_addr_t. Calculate the hash with SECTOR casted to
46362 unsigned after shifting.
46363 (grub_disk_cache_invalidate): Change the type of SECTOR to
46364 grub_disk_addr_t.
46365 (grub_disk_cache_unlock): Likewise.
46366 (grub_disk_cache_store): Likewise.
46367 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
46368 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
46369 grub_disk_addr_t and grub_uint64_t, respectively.
46370 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
46371 body, as the value of OFFSET is tweaked by
46372 grub_disk_check_range. Change the types of START_SECTOR, LEN and
46373 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
46374 respectively.
46375 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
46376 body, as the value of OFFSET is tweaked by
46377 grub_disk_check_range. Change the types of LEN and N to
46378 grub_size_t.
46379
46380 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
46381 and "saved_offset" to grub_off_t.
46382 (test_header): Cast BUF to char *.
46383 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
46384 to char *.
46385 (grub_gzio_read): Change the types of OFFSET and SIZE to
46386 grub_off_t and grub_size_t, respectively.
46387
46388 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
46389 Removed.
46390 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
46391 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
46392 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
46393 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
46394 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
46395
46396 * include/grub/types.h (grub_off_t): Unconditionally set to
46397 grub_uint64_t.
46398 (grub_disk_addr_t): Changed to grub_uint64_t.
46399
46400 * include/grub/partition.h (struct grub_partition): Change the
46401 types of "start", "len" and "offset" to grub_disk_addr_t,
46402 grub_uint64_t and grub_disk_addr_t, respectively.
46403 (grub_partition_get_start): Return grub_disk_addr_t.
46404 (grub_partition_get_len): Return grub_uint64_t.
46405
46406 * include/grub/misc.h (grub_strtoull): New prototype.
46407 (grub_divmod64): Likewise.
46408
46409 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
46410 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
46411 grub_off_t, respectively.
46412 All callers and references changed.
46413
46414 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
46415 grub_size_t in "read".
46416 All callers and references changed.
46417
46418 * include/grub/file.h (struct grub_file): Change the types of
46419 "offset" and "size" to grub_off_t and grub_off_t,
46420 respectively. Change the type of SECTOR to grub_disk_addr_t in
46421 "read_hook".
46422 (grub_file_read): Change the type of LEN to grub_size_t.
46423 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
46424 grub_off_t.
46425 (grub_file_size): Return grub_off_t.
46426 (grub_file_tell): Likewise.
46427 All callers and references changed.
46428
46429 * include/grub/disk.h (struct grub_disk_dev): Change the types of
46430 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
46431 "write".
46432 (struct grub_disk): Change the type of "total_sectors" to
46433 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 46434 "read_hook".
524a1e6a 46435 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
46436 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
46437 (grub_disk_write): Likewise.
46438 All callers and references changed.
46439
46440 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
46441 char * for grub_strncmp to silence gcc.
46442 (grub_iso9660_mount): Likewise.
46443 (grub_iso9660_mount): Likewise.
46444 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
46445 return statement.
46446 (grub_iso9660_iterate_dir): Likewise.
46447 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
46448
46449 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
46450 LEN to grub_disk_addr_t and grub_size_t, respectively.
46451
46452 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46453
46454 * fs/jfs.c (grub_jfs_read_file): Likewise.
46455
46456 * fs/minix.c (grub_jfs_read_file): Likewise.
46457
46458 * fs/sfs.c (grub_jfs_read_file): Likewise.
46459
46460 * fs/ufs.c (grub_jfs_read_file): Likewise.
46461
46462 * fs/xfs.c (grub_jfs_read_file): Likewise.
46463
46464 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
46465 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
46466 respectively.
46467
46468 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
46469 BLKNR to -1 instead of returning GRUB_ERRNO.
46470 (grub_ext2_read_file): Change the types of SECTOR and
46471 LEN to grub_disk_addr_t and grub_size_t, respectively.
46472
46473 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
46474 LEN to grub_disk_addr_t and grub_size_t, respectively.
46475
46476 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
46477 grub_file_read.
46478
46479 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
46480 string. Do not cast SECTOR explicitly.
46481
46482 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
46483 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
46484 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
46485 grub_disk_addr_t and grub_size_t, respectively. If the sector is
46486 over 2TB and LBA mode is not supported, raise an error.
46487 (get_safe_sectors): New function.
46488 (grub_biosdisk_read): Use get_safe_sectors.
46489 (grub_biosdisk_write): Likewise.
46490
46491 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
46492 (grub_efidisk_write): Likewise.
46493
46494 * disk/loopback.c (delete_loopback): Cosmetic changes.
46495 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
46496 correctly.
46497 (grub_loopback_open): Likewise.
46498 (grub_loopback_read): Likewise. Also, change the type of POS to
46499 grub_off_t, and fix the usage of grub_memset.
46500
46501 * commands/i386/pc/play.c: Include grub/machine/time.h.
46502
46503 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
46504 print FILE->SIZE.
46505
46506 * commands/configfile.c: Include grub/env.h.
46507
46508 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
46509 GRUB_ERRNO directly instead. Change the type of POS to
46510 grub_off_t. Follow the coding standard.
46511
46512 * commands/blocklist.c: Include grub/partition.h.
46513 (grub_cmd_blocklist): Return an error if the underlying device is
46514 not a disk. Take the starting sector of a partition into account,
46515 if a partition is used.
46516
46517 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
46518 a length field.
46519 (lba_mode): Support 64-bit addresses.
46520 (chs_mode): Likewise.
46521 (copy_buffer): Adapted to the new offsets of a length field and a
46522 segment field.
46523 (blocklist_default_start): Allocate 64-bit space.
46524
46525 * boot/i386/pc/boot.S (force_lba): Removed.
46526 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 46527 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 46528 space.
46529 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
46530 is useless.
46531 (lba_mode): Refactored to support a 64-bit address. More size
46532 optimization.
46533 (setup_sectors): Likewise.
46534
53af98ad 465352006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46536
46537 * DISTLIST: Added include/grub/i386/linux.h. Removed
46538 include/grub/i386/pc/linux.h
46539
46540 * configure.ac (AC_INIT): Bumped to 1.94.
46541
46542 * config.guess: Updated from gnulib.
46543 * config.sub: Likewise.
46544 * install-sh: Likewise.
46545 * mkinstalldirs: Likewise.
46546
b4c1940a 465472006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46548
46549 * conf/common.rmk (grub_modules_init.lst): Depended on
46550 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
46551 MODSRCFILES.
46552
46553 * genmk.rb (PModule::rule): Reverted the previous change.
46554
cfca1cfd 465552006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46556
46557 * conf/common.rmk (grub_modules_init.lst): Depends on
46558 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
46559 that the target does not exist before producing.
46560 (grub_modules_init.h): Remove the target before generating.
46561 (grub_emu_init.c): Likewise.
46562
46563 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
46564
aa6d7826 465652006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
46566
46567 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
46568 for the target-specific tests. Make sure that we also have the
46569 up-to-date target variables for those tests.
46570
26c607b9 465712006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46572
46573 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46574 (PModule::rule): Likewise.
46575
0162321a 465762006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46577
46578 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46579 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46580 target-specific flags should be prefixed.
46581 (PModule::rule): Likewise.
46582
6c826348 465832006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46584
46585 * configure.ac (CMP): Check if cmp is available explicitly.
46586
b977bf01 465872006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46588
46589 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46590 (target_cpu): New variable.
46591 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 46592
b977bf01 46593 * util/i386/pc/grub-install.in (host_cpu): Removed.
46594 (target_cpu): New variable.
46595 (pkglibdir): Use target_cpu instead of host_cpu.
46596
46597 * util/genmoddep.c: Removed.
f19dbdb7 46598
b977bf01 46599 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46600 instead of GRUB_HOST_SIZEOF_VOID_P.
46601 * kern/dl.c: Likewise.
46602
46603 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46604 ...
46605 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46606 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46607 (GRUB_TARGET_SIZEOF_LONG): ... this.
46608 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46609 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46610 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46611 to ...
46612 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46613 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46614 (GRUB_TARGET_SIZEOF_LONG): ... this.
46615 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46616 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46617 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46618 to ...
46619 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46620 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46621 (GRUB_TARGET_SIZEOF_LONG): ... this.
46622 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46623 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46624
46625 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46626 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46627 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46628 instead of GRUB_HOST_SIZEOF_LONG.
46629 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46630 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46631 GRUB_CPU_WORDS_BIGENDIAN.
46632 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46633 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46634 grub_host_ssize_t.
46635
46636 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46637 (genmoddep_SOURCES): Likewise.
46638 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46639 (genmoddep_SOURCES): Likewise.
46640 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46641 (genmoddep_SOURCES): Likewise.
46642 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46643 Likewise.
46644 (genmoddep_SOURCES): Likewise.
46645
46646 * genmoddep.awk: New file.
46647
46648 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46649 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46650 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46651 (PModule::rule): Likewise.
46652 (Program::rule): Likewise.
46653 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46654 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46655 respectively.
46656
46657 * configure.ac: Rewritten intensively to use host and target
46658 instead of build and host, respectively.
46659
46660 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46661 (host_cpu): Removed.
46662 (target_cpu): New variable.
46663 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46664 (BUILD_CC): Removed.
46665 (BUILD_CFLAGS): Likewise.
46666 (BUILD_CPPFLAGS): Likewise.
46667 (TARGET_CC): New variable.
46668 (TARGET_CFLAGS): Likewise.
46669 (TARGET_CPPFLAGS): Likewise.
46670 (TARGET_LDFLAGS): Likewise.
46671 (AWK): Likewise.
46672 (include): Use target_cpu instead of host_cpu.
46673 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 46674
b977bf01 46675 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46676
f09771a1 466772006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46678
46679 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46680 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46681 field 'false' to 'exec_on_false'.
46682 (grub_script_create_cmdif): Renamed argument names to reflect above
46683 changes.
46684
46685 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46686
46687 * normal/script.c (grub_script_create_cmdif): Likewise.
46688
118f4fb3 466892006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46690
46691 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46692 top.
46693 (grub_hfsplus_btree_recptr): Likewise.
46694 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46695 FILEBLOCK both to pass a block number and store next block
46696 number.
46697 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46698 overflow file correctly. Specify errors appropriately, because
46699 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46700 grub_hfsplus_btree_recptr to get the pointer to a found key.
46701 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46702 is found.
46703
46704 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46705 linux.mod.
46706 (_linux_mod_SOURCES): New variable.
46707 (_linux_mod_CFLAGS): Likewise.
46708 (_linux_mod_LDFLAGS): Likewise.
46709 (linux_mod_SOURCES): Likewise.
46710 (linux_mod_CFLAGS): Likewise.
46711 (linux_mod_LDFLAGS): Likewise.
46712
46713 * DISTLIST: Added loader/i386/efi/linux.c,
46714 loader/i386/efi/linux_normal.c and
46715 include/grub/i386/efi/loader.h.
46716
46717 * loader/i386/efi/linux.c: New file.
46718 * loader/i386/efi/linux_normal.c: Likewise.
46719 * include/grub/i386/efi/loader.h: Likewise.
46720
89a7d726 467212006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46722
46723 * commands/blocklist.c: New file.
46724
46725 * DISTLIST: Added commands/blocklist.c.
46726
46727 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 46728 color for the background, and a darker color for the foreground.
89a7d726 46729 (grub_console_checkkey): Return READ_KEY.
46730 (grub_console_cls): Set the background to
46731 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46732
46733 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46734
46735 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46736 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46737
46738 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46739 prototype.
46740
46741 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46742 BG. The spec is wrong again.
46743
46744 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46745 prototype.
46746 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46747
46748 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46749 commands/blocklist.c.
46750 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 46751
89a7d726 46752 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46753 (blocklist_mod_SOURCES): New variable.
46754 (blocklist_mod_CFLAGS): Likewise.
46755 (blocklist_mod_LDFLAGS): Likewise.
46756
75c8f258 467572006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46758
46759 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46760 duplication.
46761 (lba_mode): Use %eax more intensively to reduce the code size.
46762
da2eb181 467632006-05-20 Marco Gerards <marco@gnu.org>
46764
46765 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46766
46767 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46768 for `menuentry'.
46769 (script): Accept leading newlines.
46770 (newlines): New rule to describe 0 or more newlines.
46771 (commands): Accept `command' with trailing newline. Fixed the
46772 order in which arguments were passed to `grub_script_add_cmd'.
46773 Accept commands separated by newlines.
46774 (function): Changed to accept newlines.
46775 (menuentry) Rewritten.
46776
46777 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46778 front of the list, instead of to the end.
46779
577b4050 467802006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46781
46782 * util/i386/pc/grub-install.in (bindir): New variable.
46783 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
46784 Shaver <lbgwjl@gmail.com>.
46785
0d6e1189 467862006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
46787
46788 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
46789 grub/machine/linux.h
46790 * loader/i386/pc/linux.c: Likewise.
46791
46792 * include/grub/i386/pc/linux.h: Moved to ...
46793 * include/grub/i386/linux.h: ... here.
46794
46795 * include/grub/i386/linux.h (struct linux_kernel_params): New
46796 struct.
f19dbdb7 46797
31b86e9f 467982006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
46799
46800 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
46801 checking.
46802 (grub_video_vbe_blit_glyph): Likewise.
46803 (grub_video_vbe_blit_bitmap): Likewise.
46804 (grub_video_vbe_blit_render_target): Likewise.
46805
83b984de 468062006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
46807
46808 * configure.ac (--with-platform): Properly quote the square
46809 brackets.
46810
5f0413bd 468112006-05-08 Marco Gerards <marco@gnu.org>
46812
46813 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
46814 this...
46815 (kernel_elf_HEADERS): ...to this. Updated all users.
46816 (grubof_symlist.c): Renamed from this...
46817 (kernel_elf_symlist.c): ...to this. Updated all users.
46818 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46819 (grubof_SOURCES): Renamed from this...
46820 (kernel_elf_SOURCES): ...to this.
46821 (grubof_HEADERS): Renamed from this...
46822 (kernel_elf_HEADERS): ...to this.
46823 (grubof_CFLAGS): Renamed from this...
46824 (kernel_elf_CFLAGS): ...to this.
46825 (grubof_ASFLAGS): Renamed from this...
46826 (kernel_elf_ASFLAGS): ...to this.
46827 (grubof_LDFLAGS): Renamed from this...
46828 (kernel_elf_LDFLAGS): ...to this.
46829
46830 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
46831 this...
46832 (kernel_elf_HEADERS): ...to this. Updated all users.
46833 (grubof_symlist.c): Renamed from this...
46834 (kernel_elf_symlist.c): ...to this. Updated all users.
46835 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46836 (grubof_SOURCES): Renamed from this...
46837 (kernel_elf_SOURCES): ...to this.
46838 (grubof_HEADERS): Renamed from this...
46839 (kernel_elf_HEADERS): ...to this.
46840 (grubof_CFLAGS): Renamed from this...
46841 (kernel_elf_CFLAGS): ...to this.
46842 (grubof_ASFLAGS): Renamed from this...
46843 (kernel_elf_ASFLAGS): ...to this.
46844 (grubof_LDFLAGS): Renamed from this...
46845 (kernel_elf_LDFLAGS): ...to this.
46846
46847 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
46848 `kernel.elf' instead of `grubof'.
46849
05568c2e 468502006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46851
46852 Add --with-platform to configure. Use pkglibdir instead of
46853 pkgdatadir. This is reported by Roger Leigh.
46854
46855 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46856 (host_vendor): Likewise.
46857 (host_os): Likewise.
46858 (pkgdatadir): Likewise.
46859 (platform): New variable.
46860 (pkglibdir): Likewise.
46861 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 46862
05568c2e 46863 * util/i386/pc/grub-install.in (datadir): Removed.
46864 (host_vendor): Likewise.
46865 (host_os): Likewise.
46866 (pkgdatadir): Likewise.
46867 (platform): New variable.
46868 (pkglibdir): Likewise.
46869 Use PKGLIBDIR instead of PKGDATADIR.
46870
46871 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46872 instead of GRUB_DATADIR.
46873 (main): Likewise.
46874 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46875 (main): Likewise.
46876 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46877 (main): Likewise.
46878
46879 * configure.ac (--with-platform): New option.
46880 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46881
46882 * Makefile.in: Include a makefile based on PLATFORM instead of
46883 HOST_VENDOR.
46884 (pkgdatadir): Not appended by the machine type.
46885 (pkglibdir): Appended by the machine type.
46886 (host_vendor): Removed.
46887 (platform): New variable.
46888 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46889 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46890 (uninstall): Likewise.
46891
4e93851c 468922006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46893
46894 Use the environment context in the menu. Remove the commands
46895 "default" and "timeout", and use variables instead.
f19dbdb7 46896
4e93851c 46897 * normal/menu.c: Include grub/env.h.
46898 (print_entry): Cast TITLE to silence gcc.
46899 (get_timeout): New function.
46900 (set_timeout): Likewise.
46901 (get_entry_number): Likewise.
46902 (run_menu): Use a default entry, a fallback entry and a timeout
46903 in the environment variables "default", "fallback" and
46904 "timeout". Also, tweak the default entry if it is not within the
46905 current menu entries.
46906 (grub_menu_run): Use a fallback entry in the environment variable
46907 "fallback".
46908
46909 * normal/main.c (read_config_file): Do not initialize
46910 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46911 NEWMENU->TIMEOUT.
46912 (grub_normal_execute): Use a data slot to store the menu.
46913
46914 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46915 fallback_entry and timeout.
46916 (struct grub_menu_list): Removed.
46917 (grub_menu_list_t): Likewise.
46918 (struct grub_context): Likewise.
46919 (grub_context_t): Likewise.
46920 (grub_context_get): Likewise.
46921 (grub_context_get_current_menu): Likewise.
46922 (grub_context_push_menu): Likewise.
46923 (grub_context_pop_menu): Likewise.
46924 (grub_default_init): Likewise.
46925 (grub_default_fini): Likewise.
46926 (grub_timeout_init): Likewise.
46927 (grub_timeout_fini): Likewise.
46928
46929 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46930 and timeout.mod.
46931 (normal_mod_SOURCES): Removed normal/context.c.
46932
46933 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46934 commands/default.c, commands/timeout.c and normal/context.c.
46935 (normal_mod_SOURCES): Removed normal/context.c.
46936
46937 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46938 commands/timeout.c and normal/context.c.
46939 (normal_mod_SOURCES): Removed normal/context.c.
46940
46941 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46942 commands/default.c, commands/timeout.c and normal/context.c.
46943 (normal_mod_SOURCES): Removed normal/context.c.
46944
46945 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46946 timeout.mod.
46947 (default_mod_SOURCES): Removed.
46948 (default_mod_CFLAGS): Likewise.
46949 (default_mod_LDFLAGS): Likewise.
46950 (timeout_mod_SOURCES): Removed.
46951 (timeout_mod_CFLAGS): Likewise.
46952 (timeout_mod_LDFLAGS): Likewise.
46953
46954 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46955 normal/context.c.
46956
46957 * commands/default.c: Removed.
46958 * commands/timeout.c: Likewise.
46959 * normal/context.c: Likewise.
46960
1eb9cc1d 469612006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46962
46963 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46964
385bd9c1 469652006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46966
46967 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46968 "next" to "prev" for readability.
46969 (struct grub_env_sorted_var): New struct.
46970 (grub_env_context): Renamed to ...
46971 (initial_context): ... this.
46972 (grub_env_var_context): Renamed to ...
46973 (current_context): ... this.
46974 (grub_env_find): Look only at CURRENT_CONTEXT.
46975 (grub_env_context_open): Rewritten to copy exported variables from
46976 previous context.
46977 (grub_env_context_close): Rewritten according to the new
46978 scheme. Also, add an assertion to prevent the initial context from
46979 removed.
46980 (grub_env_insert): Removed the code for the sorted list.
46981 (grub_env_remove): Likewise.
46982 (grub_env_export): Simply mark the variable with
46983 GRUB_ENV_VAR_GLOBAL.
46984 (grub_env_set): A cosmetic change for naming consistency.
46985 (grub_env_get): Likewise.
46986 (grub_env_unset): Likewise.
46987 (grub_env_iterate): Rewritten to sort variables within this
46988 function.
46989 (grub_register_variable_hook): Fixed for naming consistency. Call
46990 grub_env_find again, only if NAME is not found at the first time.
46991 (mangle_data_slot_name): New function.
46992 (grub_env_set_data_slot): Likewise.
46993 (grub_env_get_data_slot): Likewise.
46994 (grub_env_unset_data_slot): Likewise.
46995
46996 * include/grub/env.h (grub_env_var_type): New enum.
46997 (GRUB_ENV_VAR_LOCAL): New constant.
46998 (GRUB_ENV_VAR_GLOBAL): Likewise.
46999 (GRUB_ENV_VAR_DATA): Likewise.
47000 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
47001 "type".
47002 (grub_env_set): Replace VAR with NAME for consistency.
47003 (grub_register_variable_hook): Likewise.
47004 (grub_env_export): Specify the name of the argument.
47005 (grub_env_set_data_slot): New prototype.
47006 (grub_env_get_data_slot): Likewise.
47007 (grub_env_unset_data_slot): Likewise.
47008
7f362539 470092006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
47010
47011 Extend the loader so that GRUB can accept a loader which comes
47012 back to GRUB when a loaded image exits. Also, this change adds
47013 support for a chainloader on EFI.
f19dbdb7 47014
7f362539 47015 * term/efi/console.c: Include grub/misc.h.
47016 (grub_console_checkkey): Display a scan code on the top for
47017 debugging. This will be removed once the EFI port gets stable.
47018 Correct the scan code mapping.
47019
47020 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
47021 allocate memory from larger regions, in order to reduce the number
47022 of allocated regions. Otherwise, the MacOSX loader panics.
47023 (filter_memory_map): Avoid less than 1MB for compatibility with
47024 other loaders.
47025 (add_memory_regions): Allocate from the tail of a region, if
47026 possible, to avoid allocating a region near to 1MB, for the MacOSX
47027 loader.
47028
47029 * kern/efi/init.c (grub_efi_set_prefix): Specify
47030 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
47031
47032 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
47033 argument IMAGE_HANDLE and specify it to get a loaded image.
47034 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
47035 grub_efi_get_loaded_image.
fe6b695a 47036 (grub_efi_get_filename): Divide the length by the size of
7f362539 47037 grub_efi_char16_t.
47038 (grub_efi_get_device_path): New function.
47039 (grub_efi_print_device_path): Print End Device Path nodes. Divide
47040 the length by the size of grub_efi_char16_t for a file path device
47041 path node.
47042
47043 * kern/loader.c (grub_loader_noreturn): New variable.
47044 (grub_loader_set): Accept a new argument NORETURN. Set
47045 GRUB_LOADER_NORETURN to NORETURN.
47046 All callers changed.
47047 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
47048 grub_machine_fini.
47049
47050 * include/grub/efi/efi.h (grub_efi_get_device_path): New
47051 prototype.
47052 (grub_efi_get_loaded_image): Take an argument to specify an image
47053 handle.
47054
47055 * include/grub/loader.h (grub_loader_set): Added one more argument
47056 NORETURN.
47057
47058 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
47059 instead of grub_efi_open_protocol.
47060 (grub_efidisk_get_device_name): Likewise.
47061 (grub_efidisk_close): Print a newline.
47062 (grub_efidisk_get_device_handle): Fixed to use
47063 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
47064 GRUB_EFI_DEVICE_PATH_TYPE.
47065
47066 * disk/efi/efidisk.c (device_path_guid): Moved to ...
47067 * kern/efi/efi.c (device_path_guid): ... here.
47068
47069 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
47070 chain.mod.
47071 (kernel_mod_HEADERS): Added efi/disk.h.
47072 (_chain_mod_SOURCES): New variable.
47073 (_chain_mod_CFLAGS): Likewise.
47074 (_chain_mod_LDFLAGS): Likewise.
47075 (chain_mod_SOURCES): Likewise.
47076 (chain_mod_CFLAGS): Likewise.
47077 (chain_mod_LDFLAGS): Likewise.
47078
47079 * DISTLIST: Added include/grub/efi/chainloader.h,
47080 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
47081
47082 * include/grub/efi/chainloader.h: New file.
47083 * loader/efi/chainloader.c: Likewise.
47084 * loader/efi/chainloader_normal.c: Likewise.
47085
c0111d6e 470862006-04-30 Marco Gerards <marco@gnu.org>
47087
47088 * commands/configfile.c (grub_cmd_source): New function.
47089 (GRUB_MOD_INIT): Register the commands `source' and `.'.
47090 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
47091
df5341da 470922006-04-30 Marco Gerards <marco@gnu.org>
47093
47094 * normal/execute.c (grub_script_execute_cmd): Change the return
47095 type to `grub_err_t'. Correctly return the error.
47096 (grub_script_execute_cmdline): In case a command line is not a
47097 command or a function, try to interpret it as an assignment.
47098
f85934bd 470992006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
47100
47101 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
47102 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
47103 skip a node whose name is obviously invalid as UTF-16,
47104 i.e. contains a NUL character. Stop the iteration when the last
47105 directory entry is found. Instead of using the return value of
47106 grub_hfsplus_btree_iterate_node, store the value in RET and use
47107 it, because the iterator can be stopped by the last directory
47108 entry.
47109
8f8a2cf8 471102006-04-30 Marco Gerards <marco@gnu.org>
47111
47112 * include/grub/env.h (grub_env_export): New prototype. Reported
47113 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
47114
a27e84ce 471152006-04-30 Marco Gerards <marco@gnu.org>
47116
47117 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
47118 size of the extents in a catalog file record.
47119
eaef0553 471202006-04-29 Marco Gerards <marco@gnu.org>
47121
47122 * commands/configfile.c (grub_cmd_configfile): Execute the
47123 configfile within its own context.
47124
47125 * include/grub/env.h (grub_env_context_open): New prototype.
47126 (grub_env_context_close): Likewise.
47127
47128 * kern/env.c (grub_env): Removed.
47129 (grub_env_sorted): Likewise.
47130 (grub_env_context): New variable.
47131 (grub_env_var_context): Likewise.
47132 (grub_env_find): Search both the active context and the global
47133 context.
47134 (grub_env_context_open): New function.
47135 (grub_env_context_close): Likewise.
47136 (grub_env_insert): Likewise.
47137 (grub_env_remove): Likewise.
47138 (grub_env_export): Likewise.
47139 (grub_env_set): Changed to use helper functions to avoid code
47140 duplication.
47141 (grub_env_iterate): Rewritten so both the current context and the
47142 global context are being used.
47143
47144 * normal/command.c (export_command): New function.
47145 (grub_command_init): Register the `export' function.
47146
7b455f4d 471472006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
47148
47149 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
47150 explicitly to suppress gcc's warnings.
47151 * fs/fat.c (grub_fat_find_dir): Likewise.
47152 (grub_fat_label): Likewise.
47153 * fs/xfs.c (grub_xfs_read_inode): Likewise.
47154 (grub_xfs_mount): Likewise.
47155 (grub_xfs_label): Likewise.
47156 * fs/affs.c (grub_affs_mount): Likewise.
47157 (grub_affs_label): Likewise.
47158 (grub_affs_iterate_dir): Likewise.
47159 * fs/sfs.c (grub_sfs_mount): Likewise.
47160 (grub_sfs_iterate_dir): Likewise.
47161 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
47162 * fs/hfs.c (grub_hfs_mount): Likewise.
47163 (grub_hfs_cmp_catkeys): Likewise.
47164 (grub_hfs_find_dir): Likewise.
47165 (grub_hfs_dir): Likewise.
47166 (grub_hfs_label): Likewise.
47167 * fs/jfs.c (grub_jfs_mount): Likewise.
47168 (grub_jfs_opendir): Likewise.
47169 (grub_jfs_getent): Likewise.
47170 (grub_jfs_lookup_symlink): Likewise.
47171 (grub_jfs_label): Likewise.
47172 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
47173 (grub_hfsplus_iterate_dir): Likewise.
47174 (grub_hfsplus_btree_iterate_node): Made static.
47175
47176 * util/grub-emu.c (prefix): New variable.
47177 (grub_machine_set_prefix): New function.
47178 (main): Do not set the environment variable "prefix" here. Only
47179 set PREFIX, which is used later by grub_machine_set_prefix.
47180
47181 * include/grub/video.h: Do not include grub/symbol.h.
47182 (grub_video_register): Not exported. This symbol is not defined in
47183 the kernel.
47184 (grub_video_unregister): Likewise.
47185 (grub_video_iterate): Likewise.
47186 (grub_video_setup): Likewise.
47187 (grub_video_restore): Likewise.
47188 (grub_video_get_info): Likewise.
47189 (grub_video_get_blit_format): Likewise.
47190 (grub_video_set_palette): Likewise.
47191 (grub_video_get_palette): Likewise.
47192 (grub_video_set_viewport): Likewise.
47193 (grub_video_get_viewport): Likewise.
47194 (grub_video_map_color): Likewise.
47195 (grub_video_map_rgb): Likewise.
47196 (grub_video_map_rgba): Likewise.
47197 (grub_video_fill_rect): Likewise.
47198 (grub_video_blit_glyph): Likewise.
47199 (grub_video_blit_bitmap): Likewise.
47200 (grub_video_blit_render_target): Likewise.
47201 (grub_video_scroll): Likewise.
47202 (grub_video_swap_buffers): Likewise.
47203 (grub_video_create_render_target): Likewise.
47204 (grub_video_delete_render_target): Likewise.
47205 (grub_video_set_active_render_target): Likewise.
47206
47207 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
47208 Undefined.
47209 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
47210
47211 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
47212 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47213 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47214 instead of $(srcdir)/genkernsyms.sh.
47215
47216 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
47217 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47218 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47219 instead of $(srcdir)/genkernsyms.sh.
47220
47221 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
47222 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47223 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47224 instead of $(srcdir)/genkernsyms.sh.
47225
47226 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
47227 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47228 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47229 instead of $(srcdir)/genkernsyms.sh.
47230
47231 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
47232 genkernsyms.sh.
47233
47234 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
47235 genkernsyms.sh.
47236 (gensymlist.sh): New target.
47237 (genkernsyms.sh): Likewise.
47238
47239 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
47240 genkernsyms.sh.in and gensymlist.sh.in.
47241
47242 * genkernsyms.sh: Removed.
47243 * gensymlist.sh: Likewise.
f19dbdb7 47244
7b455f4d 47245 * genkernsyms.sh.in: New file.
47246 * gensymlist.sh.in: Likewise.
47247
1885bb27 472482006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47249
47250 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
47251 clobber "prefix", since we may have already set it manually.
47252
71538dff 472532006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47254
47255 * kern/misc.c (abort): New alias for grub_abort.
47256
2965c7cc 472572006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
47258
47259 A new machine-specific function "grub_machine_set_prefix" is
47260 defined. This is called after loading modules, so that a prefix
47261 initialization can use modules. Also, this change adds an
47262 intensive debugging feature for the memory manager via the
47263 configure option "--enable-mm-debug".
f19dbdb7 47264
2965c7cc 47265 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
47266 PART.LEN.
47267
47268 * kern/sparc64/ieee1275/init.c (abort): Removed.
47269 (grub_stop): Likewise.
47270 (grub_exit): New function.
47271 (grub_set_prefix): Renamed to ...
47272 (grub_machine_set_prefix): ... this.
47273 (grub_machine_init): Do not call grub_set_prefix.
47274
47275 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
47276 (grub_machine_set_prefix): ... this.
47277 (grub_machine_init): Do not call grub_set_prefix.
47278
47279 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
47280 (grub_machine_init): Do not set the prefix here.
47281
47282 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
47283
47284 * kern/efi/init.c: Include grub/mm.h.
47285 (grub_efi_set_prefix): New function.
47286
47287 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
47288 (grub_efi_get_filename): New function.
47289 (grub_print_device_path): Renamed to ...
47290 (grub_efi_print_device_path): ... this.
47291
47292 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
47293 [MM_DEBUG] (grub_realloc): Likewise.
47294 [MM_DEBUG] (grub_free): Likewise.
47295 [MM_DEBUG] (grub_memalign): Likewise.
47296 [MM_DEBUG] (grub_mm_debug): New variable.
47297 [MM_DEBUG] (grub_debug_malloc): New function.
47298 [MM_DEBUG] (grub_debug_free): New function.
47299 [MM_DEBUG] (grub_debug_realloc): New function.
47300 [MM_DEBUG] (grub_debug_memalign): New function.
47301
47302 * kern/misc.c (grub_abort): Print a newline to distinguish
47303 the message.
47304
47305 * kern/main.c (grub_main): Call grub_machine_set_prefix and
47306 grub_set_root_dev after loading modules. This is necessary when
47307 setting a prefix depends on modules.
47308
47309 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
47310 (grub_efi_print_device_path): ... this.
47311 (grub_efi_get_filename): New prototype.
47312 (grub_efi_set_prefix): Likewise.
47313
47314 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
47315 and grub/disk.h.
47316 (grub_efidisk_get_device_handle): New prototype.
47317 (grub_efidisk_get_device_name): Likewise.
47318
47319 * include/grub/mm.h: Include config.h.
47320 (MM_DEBUG): Removed.
47321 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
47322 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
47323 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
47324 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
47325 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
47326 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
47327 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
47328 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
47329 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
47330
47331 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
47332
47333 * disk/efi/efidisk.c: Include grub/partition.h.
47334 (iterate_child_devices): New function.
47335 (add_device): First, compare only last device path nodes, so that
47336 devices are sorted by the types.
47337 (grub_efidisk_get_device_handle): New function.
47338 (grub_efidisk_get_device_name): Likewise.
47339
47340 * configure.ac (--enable-mm-debug): New option to enable the
47341 memory manager debugging feature. This makes the binary much
47342 bigger, so is disabled by default.
47343
9cacaa17 473442006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
47345
47346 Use grub_abort instead of grub_stop, and grub_exit must be
47347 define in each architecture now. Also, this change adds support
47348 for EFI disks.
f19dbdb7 47349
9cacaa17 47350 * util/i386/pc/grub-probefs.c: Include grub/term.h.
47351 (grub_getkey): New function.
47352 (grub_term_get_current): Likewise.
47353
47354 * util/i386/pc/grub-setup.c: Include grub/term.h.
47355 (grub_getkey): New function.
47356 (grub_term_get_current): Likewise.
47357
47358 * util/misc.c (grub_stop): Renamed to ...
47359 (grub_exit): ... this.
47360
47361 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
47362 (grub_exit): ... this.
47363 (grub_machine_init): Use grub_abort instead of abort.
47364 (grub_stop): Removed.
47365
47366 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
47367 abort.
47368
47369 * kern/i386/pc/startup.S (grub_exit): New function.
47370 (cold_reboot): New label.
47371
47372 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
47373 (grub_efi_init): Call grub_efidisk_init.
47374 (grub_efi_fini): Call grub_efidisk_fini.
47375
47376 * kern/efi/efi.c: Include grub/mm.h.
47377 (grub_efi_console_control_guid): Renamed to ...
47378 (console_control_guid): ... this.
47379 (grub_efi_loaded_image_guid): Renamed to ...
47380 (loaded_image_guid): ... this.
47381 (grub_efi_locate_handle): New function.
47382 (grub_efi_open_protocol): Likewise.
47383 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
47384 GRUB_EFI_CONSOLE_CONTROL_GUID.
47385 (grub_efi_exit): Removed.
47386 (grub_stop): Likewise.
47387 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
47388 (grub_exit): New function.
47389 (grub_print_device_path): Likewise.
47390
47391 * kern/rescue.c (grub_rescue_cmd_exit): New function.
47392 (grub_enter_rescue_mode): Register "exit".
47393
47394 * kern/misc.c (grub_real_dprintf): A cosmetic change.
47395 (grub_abort): New function.
47396
47397 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
47398
47399 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
47400
47401 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
47402
47403 * include/grub/efi/efi.h (grub_efi_exit): Removed.
47404 (grub_print_device_path): New prototype.
47405 (grub_efi_locate_handle): Likewise.
47406 (grub_efi_open_protocol): Likewise.
47407
47408 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
47409 * disk/efi/efidisk.c: Likewise.
47410
47411 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
47412
47413 * include/grub/efi/console_control.h
47414 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
47415
47416 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
47417 last 8 bytes as an array.
47418 (GRUB_EFI_DISK_IO_GUID): New macro.
47419 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
47420 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
47421 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
47422 grub_uint8_t.
47423 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
47424 (struct grub_efi_device_path): Rename the member "sub_type" to
47425 "subtype".
47426 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
47427 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
47428 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
47429 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
47430 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
47431 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
47432 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
47433 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
47434 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
47435 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
47436 (struct grub_efi_pci_device_path): New structure.
47437 (grub_efi_pci_device_path_t): New type.
47438 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
47439 (struct grub_efi_pccard_device_path): New structure.
47440 (grub_efi_pccard_device_path_t): New type.
47441 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
47442 (struct grub_efi_memory_mapped_device_path): New structure.
47443 (grub_efi_memory_mapped_device_path_t): New type.
47444 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
47445 (struct grub_efi_vendor_device_path): New structure.
47446 (grub_efi_vendor_device_path_t): New type.
47447 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
47448 (struct grub_efi_controller_device_path): New structure.
47449 (grub_efi_controller_device_path_t): New type.
47450 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
47451 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
47452 (struct grub_efi_acpi_device_path): New structure.
47453 (grub_efi_acpi_device_path_t): New type.
47454 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
47455 (struct grub_efi_expanded_acpi_device_path): New structure.
47456 (grub_efi_expanded_acpi_device_path_t): New type.
47457 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
47458 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
47459 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
47460 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
47461 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
47462 (struct grub_efi_atapi_device_path): New structure.
47463 (grub_efi_atapi_device_path_t): New type.
47464 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
47465 (struct grub_efi_fibre_channel_device_path): New structure.
47466 (grub_efi_fibre_channel_device_path_t): New type.
47467 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
47468 (struct grub_efi_1394_device_path): New structure.
47469 (grub_efi_1394_device_path_t): New type.
47470 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
47471 (struct grub_efi_usb_device_path): New structure.
47472 (grub_efi_usb_device_path_t): New type.
47473 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
47474 (struct grub_efi_usb_class_device_path): New structure.
47475 (grub_efi_usb_class_device_path_t): New type.
47476 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
47477 (struct grub_efi_i2o_device_path): New structure.
47478 (grub_efi_i2o_device_path_t): New type.
47479 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
47480 (struct grub_efi_mac_address_device_path): New structure.
47481 (grub_efi_mac_address_device_path_t): New type.
47482 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
47483 (struct grub_efi_ipv4_device_path): New structure.
47484 (grub_efi_ipv4_device_path_t): New type.
47485 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
47486 (struct grub_efi_ipv6_device_path): New structure.
47487 (grub_efi_ipv6_device_path_t): New type.
47488 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
47489 (struct grub_efi_infiniband_device_path): New structure.
47490 (grub_efi_infiniband_device_path_t): New type.
47491 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
47492 (struct grub_efi_uart_device_path): New structure.
47493 (grub_efi_uart_device_path_t): New type.
47494 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
47495 (struct grub_efi_vendor_messaging_device_path): New structure.
47496 (grub_efi_vendor_messaging_device_path_t): New type.
47497 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
47498 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
47499 (struct grub_efi_hard_drive_device_path): New structure.
47500 (grub_efi_hard_drive_device_path_t): New type.
47501 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
47502 (struct grub_efi_cdrom_device_path): New structure.
47503 (grub_efi_cdrom_device_path_t): New type.
47504 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
47505 (struct grub_efi_vendor_media_device_path): New structure.
47506 (grub_efi_vendor_media_device_path_t): New type.
47507 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
47508 (struct grub_efi_file_path_device_path): New structure.
47509 (grub_efi_file_path_device_path_t): New type.
47510 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
47511 (struct grub_efi_protocol_device_path): New structure.
47512 (grub_efi_protocol_device_path_t): New type.
47513 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
47514 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
47515 (struct grub_efi_bios_device_path): New structure.
47516 (grub_efi_bios_device_path_t): New type.
47517 (struct grub_efi_disk_io): New structure.
47518 (grub_efi_disk_io_t): New type.
47519 (struct grub_efi_block_io_media): New structure.
47520 (grub_efi_block_io_media_t): New type.
47521 (struct grub_efi_block_io): New structure.
47522 (grub_efi_block_io_t): New type.
47523
47524 * include/grub/misc.h (grub_stop): Removed.
47525 (grub_exit): New prototype.
47526 (grub_abort): Likewise.
47527
47528 * include/grub/disk.h (enum grub_disk_dev_id): Added
47529 GRUB_DISK_DEVICE_EFIDISK_ID.
47530
47531 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
47532 disk/efi/efidisk.c.
47533 (kernel_syms.lst): Remove the target if an error occurs.
47534
49986a9f 475352006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
47536
47537 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
47538 as it was simply too buggy.
47539
970d3b8a 475402006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
47541
47542 * kern/misc.c (grub_lltoa): New function.
47543 (grub_vsprintf): Added support for the long long suffix,
47544 i.e. "ll".
47545
ff04ec24 475462006-04-20 Hollis Blanchard <hollis@penguinppc.org>
47547
47548 * Makefile.in (LDFLAGS): Add variable.
47549 (LD): Remove variable.
47550 * configure.ac: Add -m32 to LDFLAGS.
47551 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
47552 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
47553 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
47554 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
47555 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
47556 variables.
47557 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
47558 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
47559 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
47560
37e5e1a4 475612006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
47562
47563 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
47564 length for unknown glyph.
47565
c352d8dd 475662006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47567
2eab1c0d 47568 Add support for pre-loaded modules into the EFI port.
f19dbdb7 47569
2eab1c0d 47570 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47571 completely. Accept one more argument DIR. The caller has changed.
47572
47573 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47574
47575 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47576 (grub_efi_loaded_image_guid): New variable.
47577 (grub_efi_get_loaded_image): New function.
47578 (grub_arch_modules_addr): Likewise.
47579
47580 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47581 prototype.
47582
47583 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47584 (struct grub_efi_loaded_image): New structure.
47585 (grub_efi_loaded_image_t): New type.
47586
475872006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47588
c352d8dd 47589 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47590 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47591 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47592
6d01d6b4 475932006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47594
47595 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47596
976a4ea0 475972006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47598
47599 * DISTLIST: Added include/grub/efi/console.h,
47600 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47601 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47602
47603 * include/grub/efi/console.h: New file.
47604 * include/grub/efi/time.h: Likewise.
47605 * include/grub/i386/efi/kernel.h: Likewise.
47606 * kern/efi/init.c: Likewise.
47607 * kern/efi/mm.c: Likewise.
47608 * term/efi/console.c: Likewise.
f19dbdb7 47609
976a4ea0 47610 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47611 (grub_stop): Removed.
47612 (grub_get_rtc): Likewise.
47613 (grub_machine_init): Simply call grub_efi_init.
47614 (grub_machine_fini): Call grub_efi_fini.
47615
47616 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47617 (grub_efi_output_string): Removed.
47618 (grub_efi_stall): New function.
47619 (grub_stop): Likewise.
47620 (grub_get_rtc): Likewise.
47621
47622 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47623 (grub_efi_stall): New prototype.
47624 (grub_efi_allocate_pages): Likewise.
47625 (grub_efi_free_pages): Likewise.
47626 (grub_efi_get_memory_map): Likewise.
47627 (grub_efi_mm_init): Likewise.
47628 (grub_efi_mm_fini): Likewise.
47629 (grub_efi_init): Likewise.
47630 (grub_efi_fini): Likewise.
47631
47632 * include/grub/i386/efi/time.h: Do not include
47633 grub/symbol.h. Include grub/efi/time.h.
47634 (GRUB_TICKS_PER_SECOND): Removed.
47635 (grub_get_rtc): Likewise.
47636
47637 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47638 Added padding. The EFI spec is buggy.
47639 (GRUB_EFI_BLACK): New macro.
47640 (GRUB_EFI_BLUE): Likewise.
47641 (GRUB_EFI_GREEN): Likewise.
47642 (GRUB_EFI_CYAN): Likewise.
47643 (GRUB_EFI_RED): Likewise.
47644 (GRUB_EFI_MAGENTA): Likewise.
47645 (GRUB_EFI_BROWN): Likewise.
47646 (GRUB_EFI_LIGHTGRAY): Likewise.
47647 (GRUB_EFI_BRIGHT): Likewise.
47648 (GRUB_EFI_DARKGRAY): Likewise.
47649 (GRUB_EFI_LIGHTBLUE): Likewise.
47650 (GRUB_EFI_LIGHTGREEN): Likewise.
47651 (GRUB_EFI_LIGHTCYAN): Likewise.
47652 (GRUB_EFI_LIGHTRED): Likewise.
47653 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47654 (GRUB_EFI_YELLOW): Likewise.
47655 (GRUB_EFI_WHITE): Likewise.
47656 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47657 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47658 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47659 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47660 (GRUB_EFI_BACKGROUND_RED): Likewise.
47661 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47662 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47663 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47664 (GRUB_EFI_TEXT_ATTR): Likewise.
47665
47666 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47667 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47668 (kernel_mod_HEADERS): Added efi/time.h.
47669
83709125 476702006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47671
47672 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47673 include/grub/efi/api.h, include/grub/efi/console_control.h,
47674 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47675 include/grub/i386/efi/time.h, kern/efi/efi.c,
47676 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47677 and util/i386/efi/grub-mkimage.c.
47678
47679 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47680
47681 * genmk.rb (PModule#rule): Do not export symbols if
47682 #{prefix}_EXPORTS is set to "no".
47683
47684 * conf/i386-efi.mk: New file.
47685 * conf/i386-efi.rmk: Likewise.
47686 * include/grub/efi/api.h: Likewise.
47687 * include/grub/efi/console_control.h: Likewise.
47688 * include/grub/efi/efi.h: Likewise.
47689 * include/grub/efi/pe32.h: Likewise.
47690 * include/grub/i386/efi/time.h: Likewise.
47691 * kern/efi/efi.c: Likewise.
47692 * kern/i386/efi/init.c: Likewise.
47693 * kern/i386/efi/startup.S: Likewise.
47694 * util/i386/efi/grub-mkimage.c: Likewise.
47695
476962006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 47697
47698 * include/grub/script.h: Include <grub/parser.h> and
47699 "grub_script.tab.h".
47700 (struct grub_lexer_param): New struct.
47701 (struct grub_parser_param): Likewise.
47702 (grub_script_create_arglist): Pass the state in an argument.
47703 (grub_script_add_arglist): Likewise.
47704 (grub_script_create_cmdline): Likewise.
47705 (grub_script_create_cmdblock): Likewise.
47706 (grub_script_create_cmdif): Likewise.
47707 (grub_script_create_cmdmenu): Likewise.
47708 (grub_script_add_cmd): Likewise.
47709 (grub_script_arg_add): Likewise.
47710 (grub_script_lexer_ref): Likewise.
47711 (grub_script_lexer_deref): Likewise.
47712 (grub_script_lexer_record_start): Likewise.
47713 (grub_script_lexer_record_stop): Likewise.
47714 (grub_script_mem_record): Likewise.
47715 (grub_script_mem_record_stop): Likewise.
47716 (grub_script_malloc): Likewise.
47717 (grub_script_yylex): Likewise.
47718 (grub_script_yyparse): Likewise.
47719 (grub_script_yyerror): Likewise.
47720 (grub_script_yylex): Likewise.
47721 (grub_script_lexer_init): Return the state.
47722
47723 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47724 (grub_script_lexer_done): Likewise.
47725 (grub_script_lexer_getline): Likewise.
47726 (grub_script_lexer_refs): Likewise.
47727 (script): Likewise.
47728 (newscript): Likewise.
47729 (record): Likewise.
47730 (recording): Likewise.
47731 (recordpos): Likewise.
47732 (recordlen): Likewise.
47733 (grub_script_lexer_init): Return the state instead of setting
47734 global variables.
47735 (grub_script_lexer_ref): Use the newly added argument for state
47736 instead of globals.
47737 (grub_script_lexer_deref): Likewise.
47738 (grub_script_lexer_record_start): Likewise.
47739 (grub_script_lexer_record_stop): Likewise.
47740 (recordchar): Likewise.
47741 (nextchar): Likewise.
47742 (grub_script_yylex2): Likewise.
47743 (grub_script_yylex): Likewise.
47744 (grub_script_yyerror): Likewise.
47745
47746 * normal/parser.y (func_mem): Removed variable.
47747 (menu_entry): Likewise.
47748 (err): Likewise.
47749 (%lex-param): New parser option.
47750 (%parse-param): Likewise.
47751 (script): Always return the AST.
47752 (argument): Pass the state around.
47753 (arguments): Likewise.
47754 (grubcmd): Likewise.
47755 (commands): Likewise.
47756 (function): Likewise.
47757 (menuentry): Likewise.
47758 (if_statement): Likewise.
47759 (if): Likewise.
47760
47761 * normal/script.c (grub_script_memused): Removed variable.
47762 (grub_script_parsed): Likewise.
47763 (grub_script_malloc): Added a state argument. Use that instead of
47764 global variables.
47765 (grub_script_mem_record): Likewise.
47766 (grub_script_mem_record_stop): Likewise.
47767 (grub_script_arg_add): Likewise.
47768 (grub_script_add_arglist): Likewise.
47769 (grub_script_create_cmdline): Likewise.
47770 (grub_script_create_cmdif): Likewise.
47771 (grub_script_create_cmdmenu): Likewise.
47772 (grub_script_add_cmd): Likewise.
47773 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 47774
e2a8c904 477752006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 47776
47777 * normal/command.c (grub_command_init): Remove the title command.
47778
47779 * normal/lexer.c (grub_script_yylex): Renamed from this...
47780 (grub_script_yylex2): ... to this.
47781 (grub_script_yylex): New function. Temporary
47782 introduced to filter some tokens.
47783 (grub_script_yyerror): Print a newline.
47784
47785 * normal/main.c (read_config_file): Output information about the
47786 lines that contain errors. Wait for a key after all lines have
47787 been processed. Don't return an empty menu.
47788
47789 * normal/parser.y (func_mem): Don't initialize.
47790 (menu_entry): Likewise.
47791 (err): New variable.
47792 (script): Don't return anything when an error was encountered.
47793 (ws, returns): Removed rules.
47794 (argument): Disabled concatenated variable support.
47795 (arguments): Remove explicit separators.
47796 (grubcmd): Likewise.
47797 (function): Likewise.
47798 (menuentry): Likewise.
47799 (if): Likewise.
47800 (commands): Likewise. Add error handling.
47801
47802 * normal/script.c (grub_script_create_cmdline): If
47803 `grub_script_parsed' is 0, assume the parser encountered an error.
47804
c9a86192 478052006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
47806
47807 * configure.ac: Add support for EFI. Fix the typo
47808 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
47809
70f3b243 478102006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47811
47812 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
47813 foreign multibyte characters should be shown correctly.
47814
65f201ad 478152006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47816
47817 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
47818 calculation.
47819 (read_config_file): Made it to close file before returning.
47820
b4b93674 478212006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
47822
47823 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
47824 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
47825 video/i386/pc/vbefill.c.
47826
47827 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
47828 video/i386/pc/vbefill.c.
47829
47830 * include/grub/video.h (grub_video_blit_format): New enum.
47831 (grub_video_mode_info): Added new member blit_format.
47832 (grub_video_get_blit_format): New function prototype.
47833
47834 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
47835 function prototype.
47836 (grub_video_vbe_map_rgb): Likewise.
47837 (grub_video_vbe_unmap_color): Likewise.
47838
47839 * include/grub/i386/pc/vbeblit.h: New file.
47840
47841 * include/grub/i386/pc/vbefill.h: New file.
47842
47843 * video/video.c (grub_video_get_blit_format): New function.
47844 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
47845 (grub_video_vbe_map_rgb): Likewise.
47846 (grub_video_vbe_unmap_color): Likewise.
47847
47848 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
47849 optimized fills.
47850 (grub_video_vbe_blit_render_target): Changed to use more optimized
47851 blits.
47852 (grub_video_vbe_setup): Added detection for optimized settings.
47853 (grub_video_vbe_create_render_target): Likewise.
47854
47855 * video/i386/pc/vbeblit.c: New file.
47856
47857 * video/i386/pc/vbefill.c: New file.
47858
c2379b9c 478592006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47860
47861 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47862 here...
47863
47864 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47865 parsing to support both hex and dec ranges. If filename was missing
47866 show usage information.
47867
bd0d7896 478682006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47869
47870 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47871 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47872
47873 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47874 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47875 (video_mod_SOURCES): Added.
47876 (video_mod_CFLAGS): Likewise.
47877 (video_mod_LDFLAGS): Likewise.
47878 (gfxterm_mod_SOURCES): Likewise.
47879 (gfxterm_mod_CFLAGS): Likewise.
47880 (gfxterm_mod_LDFLAGS): Likewise.
47881 (videotest_mod_SOURCES): Likewise.
47882 (videotest_mod_CFLAGS): Likewise.
47883 (videotest_mod_LDFLAGS): Likewise.
47884 (vesafb_mod_SOURCES): Removed.
47885 (vesafb_mod_CFLAGS): Likewise.
47886 (vesafb_mod_LDFLAGS): Likewise.
47887 (vga_mod_SOURCES): Likewise.
47888 (vga_mod_CFLAGS): Likewise.
47889 (vga_mod_LDFLAGS): Likewise.
47890
47891 * commands/videotest.c: New file.
47892
47893 * font/manager.c (fill_with_default_glyph): Modified to use
47894 grub_font_glyph.
47895 (grub_font_get_glyph): Likewise.
47896 (fontmanager): Renamed from this...
47897 (font_manager): ... to this.
47898
47899 * include/grub/font.h (grub_font_glyph): Added new structure.
47900 (grub_font_get_glyph): Modified to use grub_font_glyph.
47901
47902 * include/grub/misc.h (grub_abs): Added as inline function.
47903
47904 * include/grub/video.h: New file.
47905
47906 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47907 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47908 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47909 (grub_vbe_get_controller_info): Renamed from this...
47910 (grub_vbe_bios_get_controller_info): ... to this.
47911 (grub_vbe_get_mode_info): Renamed from this...
47912 (grub_vbe_bios_get_mode_info): ... to this.
47913 (grub_vbe_set_mode): Renamed from this...
47914 (grub_vbe_bios_set_mode): ... to this.
47915 (grub_vbe_get_mode): Renamed from this...
47916 (grub_vbe_bios_get_mode): ... to this.
47917 (grub_vbe_set_memory_window): Renamed from this...
47918 (grub_vbe_bios_set_memory_window): ... to this.
47919 (grub_vbe_get_memory_window): Renamed from this...
47920 (grub_vbe_bios_get_memory_window): ... to this.
47921 (grub_vbe_set_scanline_length): Renamed from this...
47922 (grub_vbe_set_scanline_length): ... to this.
47923 (grub_vbe_get_scanline_length): Renamed from this...
47924 (grub_vbe_bios_get_scanline_length): ... to this.
47925 (grub_vbe_set_display_start): Renamed from this...
47926 (grub_vbe_bios_set_display_start): ... to this.
47927 (grub_vbe_get_display_start): Renamed from this...
47928 (grub_vbe_bios_get_display_start): ... to this.
47929 (grub_vbe_set_palette_data): Renamed from this...
47930 (grub_vbe_bios_set_palette_data): ... to this.
47931 (grub_vbe_set_pixel_rgb): Removed.
47932 (grub_vbe_set_pixel_index): Likewise.
47933
47934 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47935 from this...
47936 (grub_vbe_bios_get_controller_info): ... to this.
47937 (grub_vbe_get_mode_info): Renamed from this...
47938 (grub_vbe_bios_get_mode_info): ... to this.
47939 (grub_vbe_set_mode): Renamed from this...
47940 (grub_vbe_bios_set_mode): ... to this.
47941 (grub_vbe_get_mode): Renamed from this...
47942 (grub_vbe_bios_get_mode): ... to this.
47943 (grub_vbe_set_memory_window): Renamed from this...
47944 (grub_vbe_bios_set_memory_window): ... to this.
47945 (grub_vbe_get_memory_window): Renamed from this...
47946 (grub_vbe_bios_get_memory_window): ... to this.
47947 (grub_vbe_set_scanline_length): Renamed from this...
47948 (grub_vbe_set_scanline_length): ... to this.
47949 (grub_vbe_get_scanline_length): Renamed from this...
47950 (grub_vbe_bios_get_scanline_length): ... to this.
47951 (grub_vbe_set_display_start): Renamed from this...
47952 (grub_vbe_bios_set_display_start): ... to this.
47953 (grub_vbe_get_display_start): Renamed from this...
47954 (grub_vbe_bios_get_display_start): ... to this.
47955 (grub_vbe_set_palette_data): Renamed from this...
47956 (grub_vbe_bios_set_palette_data): ... to this.
47957 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47958 getting corrupted after calling it. Added more pushes and pops.
47959 (grub_vbe_bios_set_mode): Likewise.
47960 (grub_vbe_bios_get_mode): Likewise.
47961 (grub_vbe_bios_get_memory_window): Likewise.
47962 (grub_vbe_bios_set_scanline_length): Likewise.
47963 (grub_vbe_bios_get_scanline_length): Likewise.
47964 (grub_vbe_bios_get_display_start): Likewise.
47965 (grub_vbe_bios_set_palette_data): Likewise.
47966
47967 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47968 (cl_insert): Likewise.
47969 (cl_delete): Likewise.
47970
47971 * term/gfxterm.c: New file.
47972
47973 * term/i386/pc/vesafb.c: Removed file.
47974
47975 * video/video.c: New file.
47976
47977 * video/i386/pc/vbe.c (real2pm): Added new function.
47978 (grub_video_vbe_draw_pixel): Likewise.
47979 (grub_video_vbe_get_video_ptr): Likewise.
47980 (grub_video_vbe_get_pixel): Likewise
47981 (grub_video_vbe_init): Likewise.
47982 (grub_video_vbe_fini): Likewise.
47983 (grub_video_vbe_setup): Likewise.
47984 (grub_video_vbe_get_info): Likewise.
47985 (grub_video_vbe_set_palette): Likewise.
47986 (grub_video_vbe_get_palette): Likewise.
47987 (grub_video_vbe_set_viewport): Likewise.
47988 (grub_video_vbe_get_viewport): Likewise.
47989 (grub_video_vbe_map_color): Likewise.
47990 (grub_video_vbe_map_rgb): Likewise.
47991 (grub_video_vbe_map_rgba): Likewise.
47992 (grub_video_vbe_unmap_color): Likewise.
47993 (grub_video_vbe_fill_rect): Likewise.
47994 (grub_video_vbe_blit_glyph): Likewise.
47995 (grub_video_vbe_blit_bitmap): Likewise.
47996 (grub_video_vbe_blit_render_target): Likewise.
47997 (grub_video_vbe_scroll): Likewise.
47998 (grub_video_vbe_swap_buffers): Likewise.
47999 (grub_video_vbe_create_render_target): Likewise.
48000 (grub_video_vbe_delete_render_target): Likewise.
48001 (grub_video_vbe_set_active_render_target): Likewise.
48002 (grub_vbe_set_pixel_rgb): Remove function.
48003 (grub_vbe_set_pixel_index): Likewise.
48004 (index_color_mode): Remove static variable.
48005 (active_mode): Likewise.
48006 (framebuffer): Likewise.
48007 (bytes_per_scan_line): Likewise.
48008 (grub_video_vbe_adapter): Added new static variable.
48009 (framebuffer): Likewise.
48010 (render_target): Likewise.
48011 (initial_mode): Likewise.
48012 (mode_in_use): Likewise.
48013 (mode_list): Likewise.
48014
5f97350b 480152006-03-10 Marco Gerards <marco@gnu.org>
48016
48017 * configure.ac (AC_INIT): Bumped to 1.93.
48018
48019 * DISTLIST: Added `include/grub/hfs.h'.
48020
a3c5c6f8 480212006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
48022
48023 * boot/i386/pc/boot.S (general_error): Before looping, try INT
48024 18H, which might help the BIOS falling back to next boot media.
48025
6de53d26 480262006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
48027
48028 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
48029 Poe Chen <poe.poechen@gmail.com>.
48030
77c4a393 480312006-01-17 Marco Gerards <marco@gnu.org>
48032
48033 * include/grub/normal.h: Include <grub/script.h>.
48034 (grub_command_list): Removed struct.
48035 (grub_command_list_t): Removed type.
48036 (grub_menu_entry): Remove members `num' and `command_list'. Add
48037 members `commands' and `sourcecode'.
48038 * include/grub/script.h: Add inclusion guards.
48039 (grub_script_cmd_menuentry): New struct.
48040 (grub_script_execute_menuentry): New prototype.
48041 (grub_script_lexer_record_start): Likewise.
48042 (grub_script_lexer_record_stop): Likewise.
48043 * normal/execute.c (grub_script_execute_menuentry): New function.
48044 * normal/lexer.c (record, recording, recordpos, recordlen): New
48045 variables.
48046 (grub_script_lexer_record_start): New function.
48047 (grub_script_lexer_record_stop): Likewise.
48048 (recordchar): Likewise.
48049 (nextchar): Likewise.
48050 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
48051 2048 as the buffer size. Add the tokens `menuentry' and `@'.
48052 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
48053 (current_menu): New variable.
48054 (free_menu): Mainly rewritten.
48055 (grub_normal_menu_addentry): New function.
48056 (read_config_file): Rewritten.
48057 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 48058 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 48059 the menu entry.
48060 (run): Mainly rewritten.
48061 * normal/parser.y (menu_entry): New variable.
48062 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
48063 (menuentry): New rule.
48064 (command): Add `menuentry'.
48065 (if_statement): Allow additional returns before `fi'.
48066 * normal/script.c (grub_script_create_cmdmenu): New function.
48067
144f1f98 480682006-01-03 Marco Gerards <marco@gnu.org>
48069
48070 * INSTALL: GNU Bison is required.
48071 * configure.ac: Rewritten the test to detect Bison.
48072 * Makefile.in (YACC): New variable. Reported by Xun Sun
48073 <xun.sun.cn@gmail.com>.
48074
af4b2d89 480752006-01-03 Marco Gerards <marco@gnu.org>
48076
48077 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
48078 the HFS+ filesystem to filesystem blocks.
48079 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
48080 GCC warning is silenced.
48081
15643b71 480822006-01-03 Marco Gerards <marco@gnu.org>
48083
48084 * partmap/apple.c (apple_partition_map_iterate): Convert the data
48085 read from disk from big endian to host byte order.
48086
00905879 480872006-01-03 Hollis Blanchard <hollis@penguinppc.org>
48088
48089 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
48090 documentation.
48091 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
48092 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
48093 embedded HFS+ filesystem.
48094 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
48095 (grub_hfs_sblock): Move from here...
48096 * include/grub/hfs.h: To here... New file.
48097 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
48098 documentation.
48099 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
48100 New macros.
48101 (grub_hfsplus_volheader): Change type of member `magic' to
48102 `grub_uint16_t'.
48103 (grub_hfsplus_data): Add new member `embedded_offset'.
48104 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
48105 returned block.
48106 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
48107 Calculate the offset.
48108
8899bc3e 481092005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48110
48111 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
48112 Removed.
48113 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
48114
ae8c0277 481152005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48116
48117 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
48118 ENV->NAME is NULL after allocating ENV->VALUE.
48119
07084456 481202005-12-25 Marco Gerards <marco@gnu.org>
48121
48122 * kern/env.c (grub_env_set): Rewritten the error handling code.
48123
4750f5f1 481242005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48125
48126 * geninit.sh: Made more robust, and more portable.
48127
50214199 481282005-12-25 Marco Gerards <marco@gnu.org>
48129
48130 Add support for Apple HFS+ filesystems.
f19dbdb7 48131
50214199 48132 * fs/hfsplus.c: New file.
48133
48134 * DISTLIST: Added `fs/hfsplus.c'.
48135
48136 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
48137 (hfsplus_mod_SOURCES): New variable.
48138 (hfsplus_mod_CFLAGS): Likewise.
48139 (hfsplus_mod_LDFLAGS): Likewise.
48140 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
48141 (grub_setup_SOURCES): Likewise.
48142 (grub_mkdevicemap_SOURCES): Likewise.
48143 (grub_emu_SOURCES): Likewise.
48144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48145
48146 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
48147
48148 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
48149
befaed6c 481502005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48151
48152 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
48153 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
48154 include/grub/parser.h, include/grub/script.h, kern/parser.c,
48155 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
48156 normal/lexer.c, normal/parser.y, normal/script.c, and
48157 partmap/gpt.c.
48158 Removed kern/sparc64/cache.c.
48159
48160 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
48161 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
48162 grub_emu_init.c.
48163
48164 * configure.ac (AC_INIT): Bumped to 1.92.
48165
6a124103 481662005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
48167
48168 * kern/err.c (grub_error_push): Added new function to support error
48169 stacks.
48170 (grub_error_pop): Likewise.
48171 (grub_error_stack_items): New local variable to support error stacks.
48172 (grub_error_stack_pos): Likewise.
48173 (grub_error_stack_assert): Likewise.
48174 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
48175 stack depth.
48176 (grub_print_error): Added support to print errors from error stack.
48177
48178 * include/grub/err.h (grub_error_push): Added function prototype.
48179 (grub_error_pop): Likewise.
48180
be973c1b 481812005-12-09 Hollis Blanchard <hollis@penguinppc.org>
48182
48183 * configure.ac: Accept `powerpc64' as host_cpu.
48184 (amd64): Rename to `biarch32'.
48185
48186 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
48187 non-cacheline-aligned addresses.
48188
48189 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
48190 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
48191 if `size' is non-zero.
48192
b04216ab 481932005-12-03 Marco Gerards <mgerards@xs4all.nl>
48194
48195 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
48196 and `cd' to make sure the filename is not prefixed with a
48197 directory name.
48198 (pkgdata_MODULES): Add `gpt.mod'.
48199 (gpt_mod_SOURCES): New variable.
48200 (gpt_mod_CFLAGS): Likewise.
48201 (gpt_mod_LDFLAGS): Likewise.
48202
48203 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
48204
48205 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
48206 New macro.
48207
48208 * partmap/gpt.c: New file.
48209
48210 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
48211 GPT partition map is detected.
48212
41730ed9 482132005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
48214
48215 * commands/i386/pc/play.c: New file.
48216 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
48217 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
48218 macros.
f19dbdb7 48219
95dc3643 482202005-11-27 Marco Gerards <mgerards@xs4all.nl>
48221
48222 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
48223 ((unused))' to silence gcc warning.
48224
1569ec51 482252005-11-26 Hollis Blanchard <hollis@penguinppc.org>
48226
48227 * configure.ac: Correct `AC_PROG_YACC' test.
48228
9abde152 482292005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48230
48231 * util/powerpc/ieee1275/grub-install.in: Run the mount point
48232 check before installing files.
48233
44b83271 482342005-11-22 Mike Small <smallm@panix.com>
48235
48236 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
48237 number regex so multidigit numbers are recognized correctly.
48238
482392005-11-22 Mike Small <smallm@panix.com>
48240
48241 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
48242 debugging message before attempting to claim memory.
48243 (grub_rescue_cmd_initrd): Add a claim debugging message and try
48244 multiple addresses in case of failure.
48245
9c12956b 482462005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48247
48248 * term/tparm.c (get_space): Remove empty `if' statement.
48249
48250 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
48251
48252 * kern/parser.c (check_varstate): Rename `state' to 's'.
48253
aeaf81d9 482542005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48255
48256 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
48257 variable definitions to the beginning of each function. Sort stack
48258 variables by size.
48259 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
48260 `buf' argument to `char *'.
48261
79bbb63f 482622005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48263
48264 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
48265 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 48266 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 48267 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48268 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48269 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48270 configfile.mod, search.mod, gzio.mod and test.mod.
48271 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48272 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48273 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48274 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48275 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48276 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48277 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48278 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48279 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48280 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48281 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48282 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48283 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48284 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48285 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48286 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48287 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48288 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48289 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48290 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48291 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48292 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48293 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
48294
48295 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
48296 `grep --include'.
48297 (pkgdata_MODULES): Add test.mod.
48298
233b1628 482992005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48300
48301 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
48302 appending to variables with "+=".
48303 (PModule): Use full pathname to generate *.lst filenames.
48304
48305 * Makefile.in: Fixed list rules moved from genmk.rb.
48306 (.DELETE_ON_ERROR): New special target.
48307 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
48308
48309 * conf/i386-pc.rmk: Include conf/common.mk.
48310 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 48311 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 48312 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48313 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48314 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48315 configfile.mod, search.mod, gzio.mod and test.mod.
48316 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48317 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48318 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48319 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48320 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48321 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48322 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48323 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48324 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48325 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48326 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48327 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48328 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48329 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48330 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48331 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48332 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48333 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48334 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48335 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48336 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48337 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48338 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
48339 here...
48340 * conf/common.rmk: ... to here. New file.
48341
48342 * conf/common.mk: New file.
48343
16f820c8 483442005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
48345
48346 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
48347 (grub_script.tab.c): ... here.
48348
48349 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
48350 (grub_script.tab.c): ... here.
48351
48352 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
48353 (grub_script.tab.c): ... here.
48354
48355 * normal/command.c (grub_command_find): Fixed a memory leak of
48356 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
48357
63ba1554 483582005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48359
48360 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
48361 "@" which marks the start of a comment on ARM.
48362 (VARIABLE): Likewise.
48363
7f67dc13 483642005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48365
79bbb63f 48366 Add support for Linux/ADFS partition tables.
7f67dc13 48367
48368 * partmap/acorn.c: New file.
48369
48370 * include/grub/acorn_filecore.h: Likewise.
48371
48372 * DISTLIST: Added `partmap/acorn.c' and
48373 `include/grub/acorn_filecore.h'.
f19dbdb7 48374
7f67dc13 48375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48376 `partmap/acorn.c'.
48377 (pkgdata_MODULES): Add `acorn.mod'.
48378 (acorn_mod_SOURCES): New variable.
48379 (acorn_mod_CFLAGS): Likewise.
48380
48381 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48382 `partmap/acorn.c'.
48383 (pkgdata_MODULES): Add `acorn.mod'.
48384 (acorn_mod_SOURCES): New variable.
48385 (acorn_mod_CFLAGS): Likewise.
48386
48387 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
48388 (pkgdata_MODULES): Add `acorn.mod'.
48389 (acorn_mod_SOURCES): New variable.
48390 (acorn_mod_CFLAGS): Likewise.
48391 (acorn_mod_LDFLAGS): Likewise.
48392
48393 * include/types.h (grub_disk_addr_t): New typedef.
48394
6d099807 483952005-11-13 Marco Gerards <mgerards@xs4all.nl>
48396
48397 * geninit.sh: New file.
48398
48399 * geninitheader.sh: Likewise.
48400
48401 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
48402 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
48403 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
48404 * commands/configfile.c (grub_configfile_init)
48405 (grub_configfile_fini): Likewise.
48406 * commands/default.c (grub_default_init, grub_default_fini):
48407 Likewise.
48408 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
48409 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
48410 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
48411 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
48412 Likewise.
48413 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
48414 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
48415 Likewise.
48416 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 48417 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 48418 Likewise.
48419 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
48420 Likewise.
fe6b695a 48421 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 48422 Likewise.
48423 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
48424 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
48425 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
48426 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
48427 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
48428 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
48429 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
48430 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
48431 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
48432 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
48433 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
48434 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
48435 * partmap/amiga.c (grub_amiga_partition_map_init)
48436 (grub_amiga_partition_map_fini): Likewise.
48437 * partmap/apple.c (grub_apple_partition_map_init)
48438 (grub_apple_partition_map_fini): Likewise.
48439 * partmap/pc.c (grub_pc_partition_map_init)
48440 (grub_pc_partition_map_fini): Likewise.
48441 * partmap/sun.c (grub_sun_partition_map_init,
48442 grub_sun_partition_map_fini): Likewise.
48443 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
48444 Likewise.
48445
48446 * util/grub-emu.c: Include <grub_modules_init.h>.
48447 (main): Don't initialize and de-initialize any modules directly,
48448 use `grub_init_all' and `grub_fini_all' instead.
48449
48450 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
48451 `grub_vesafb_mod_init'.
48452 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
48453 all users.
48454 * term/i386/pc/vga.c (grub_vga_init): Renamed to
48455 `grub_vga_mod_init'. Updated all users.
48456 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 48457
6d099807 48458 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
48459 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
48460 rules.
48461
48462 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
48463 Generate a function to initialize the module in utilities.
48464 Updated all callers.
48465 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
48466 initialize the module in utilities. Updated all callers.
48467
9046bcf0 484682005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48469
48470 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
48471 escape sequence and a literal ^L to clear the screen.
48472
48473 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
48474 when returning from Open Firmware.
48475
d13ea639 484762005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48477
48478 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
48479 (grub_ofconsole_height): Likewise.
48480 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
48481 manually insert a '\n'.
48482 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
48483 `grub_ofconsole_height'. Return early if these are already set.
48484
a8fcf206 484852005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
48486
48487 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48488 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
48489 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
48490 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
48491 and `normal/script.c'.
48492 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48493 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48494 (test_mod_SOURCES): New variable.
48495 (test_mod_CFLAGS): Likewise.
48496 (test_mod_LDFLAGS): Likewise.
48497 (pkgdata_MODULES): Add `test.mod'.
48498 (grub_script.tab.c): New rule.
48499 (grub_script.tab.h): Likewise.
48500
b6b32745 485012005-11-07 Marco Gerards <mgerards@xs4all.nl>
48502
48503 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48504 `commands/test.c', `normal/execute.c', `normal/lexer.c',
48505 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48506 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48507 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48508 (test_mod_SOURCES): New variable.
48509 (test_mod_CFLAGS): Likewise.
48510 (pkgdata_MODULES): Add `test.mod'.
48511 (grub_script.tab.c): New rule.
48512 (grub_script.tab.h): Likewise.
48513
daac212a 485142005-11-06 Marco Gerards <mgerards@xs4all.nl>
48515
48516 Add initial scripting support.
48517
48518 * commands/test.c: New file.
48519 * include/grub/script.h: Likewise.
48520 * normal/execute.c: Likewise.
48521 * normal/function.c: Likewise.
48522 * normal/lexer.c: Likewise.
48523 * normal/parser.y: Likewise.
48524 * normal/script.c: Likewise.
48525
48526 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 48527
daac212a 48528 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
48529 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
48530 `normal/function.c' and `normal/script.c'.
48531 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48532 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 48533 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
48534 variables.
daac212a 48535 (pkgdata_MODULES): Add `test.mod'.
48536 (grub_script.tab.c): New rule.
48537 (grub_script.tab.h): Likewise.
48538
48539 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
48540
48541 * include/grub/normal.h (grub_test_init): New prototype.
48542 (grub_test_fini): Likewise.
f19dbdb7 48543
daac212a 48544 * normal/command.c: Include <grub/script.h>.
48545 (grub_command_execute): Rewritten.
f19dbdb7 48546
daac212a 48547 * util/grub-emu.c (main): Call `grub_test_init' and
48548 `grub_test_fini'.
48549
77500b2b 485502005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48551
48552 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
48553 to 0.
48554 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
48555 there are no pending characters.
48556
e45deb9e 485572005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48558
48559 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
48560 `grub_strndup' to drop device arguments. Replace unnecessary
48561 `grub_strndup' with `grub_strdup'.
48562
4ce32619 485632005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48564
48565 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
48566 `debug' environment variable has been set.
48567
485682005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 48569
4ce32619 48570 * Makefile.in (install-local): Use $(DATA).
48571 (uninstall): Likewise.
48572 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48573 (sbin_UTILITIES): ... to here.
48574 (sbin_SCRIPTS): New variable.
48575 (grub_install_SOURCES): New variable.
48576 * util/powerpc/ieee1275/grub-install.in: New file.
48577 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48578 variable.
48579 (add_segments): Call `grub_util_get_path'.
48580
25fe6f03 485812005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48582
48583 From Timothy Baldwin:
48584 * commands/ls.c (grub_ls_list_files): Close FILE with
48585 grub_file_close.
48586 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48587
04ccf3ec 485882005-10-24 Marco Gerards <mgerards@xs4all.nl>
48589
48590 * include/grub/parser.h: New file.
48591
48592 * kern/parser.c: Likewise.
48593
48594 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48595 (grub_setup_SOURCES): Likewise.
48596 (grub_probefs_SOURCES): Likewise.
48597 (grub_emu_SOURCES): Likewise.
48598 (kernel_img_HEADERS): Add `parser.h'.
48599
48600 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48601 (grub_emu_SOURCES): Add `kern/parser.c'.
48602 (grubof_SOURCES): Likewise.
48603
48604 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48605 (grubof_SOURCES): Add `kern/parser.c'.
48606
48607 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48608
48609 * kern/misc.c (grub_split_cmdline): Removed function.
48610
48611 * kern/rescue.c: Include <grub/parser.h>.
48612 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48613 of `grub_split_cmdline'.
48614
48615 * normal/command.c: Include <grub/parser.h>.
48616 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48617 of `grub_split_cmdline'.
48618
48619 * normal/completion.c: Include <grub/parser.h>.
48620 (cmdline_state): New variable.
48621 (iterate_dir): End the filename with a quote depending on the
48622 command line state.
48623 (get_state): new function.
48624 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48625 split the arguments and determine the current argument. When the
48626 argument string is not quoted, escape all spaces.
48627
6d8f4b0e 486282005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48629
48630 * normal/sparc64/setjmp.S: New file.
48631
15cf03ed 486322005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48633
48634 * include/grub/sparc64/libgcc.h: New file.
48635 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48636 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48637 normal/sparc64/setjmp.c.
48638
03e8661a 486392005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48640
48641 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48642 * kern/sparc64/cache.S: New file.
48643 * kern/sparc64/cache.c: Removed.
48644 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48645 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48646 -mtune=ultrasparc.
48647 (COMMON_LDFLAGS): Add -melf64_sparc.
48648 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48649 (grubof_SOURCES): Use cache.S instead of cache.c.
48650 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48651 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48652 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48653 commented though.
48654 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48655 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48656 (linux_mod_CFLAGS): Commented out.
48657 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48658 out because module isn't built.
48659 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48660 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48661 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48662 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48663 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48664 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48665 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48666 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48667 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48668 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48669 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48670 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48671 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48672 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48673
34eeec8a 486742005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48675
48676 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48677 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48678 longer, because HFS should not be used on PC.
48679
708367a3 486802005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48681
48682 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48683 consistently within the loop.
48684
6fa1251a 486852005-10-15 Marco Gerards <mgerards@xs4all.nl>
48686
48687 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48688 directory can not be read.
48689
4801580b 486902005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48691
48692 * configure.ac (AC_INIT): Increase the version number to 1.91.
48693
48694 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48695 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48696 term/i386/pc/serial.c.
48697
219ad426 486982005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48699
48700 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48701 file size must be permitted.
48702
48703 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48704 between %ah and %al.
48705
688e5699 487062005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48707
48708 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48709 grub_uint64_t.
48710 Call the hook with a NUL-terminated filename.
48711 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48712 grub_cpu_to_be32.
48713
48714 * kern/term.c (cursor_state): New variable.
48715 (grub_term_set_current): Reset the cursor state on a new
48716 terminal.
48717 (grub_setcursor): Rewritten to use CURSOR_STATE.
48718 (grub_getcursor): New function.
48719
48720 * include/grub/term.h (grub_getcursor): New prototype.
48721
48722 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48723 integers on ARM. Reported by Timothy Baldwin
48724 <T.E.Baldwin99@members.leeds.ac.uk>.
48725
bb34586c 487262005-10-11 Marco Gerards <mgerards@xs4all.nl>
48727
48728 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48729 allocated.
48730 (grub_sfs_dir): Likewise.
48731
9a909877 487322005-10-09 Marco Gerards <mgerards@xs4all.nl>
48733
48734 Add support for the SFS filesystem.
48735
48736 * fs/sfs.c: New file.
48737
48738 * DISTLIST: Added `fs/sfs.c'.
48739
48740 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48741 (grub_probefs_SOURCES): Likewise.
48742 (grub_emu_SOURCES): Likewise.
48743 (pkgdata_MODULES): Add `sfs.mod'.
48744 (sfs_mod_SOURCES): New variable.
48745 (sfs_mod_CFLAGS): Likewise.
48746 (sfs_mod_LDFLAGS): Likewise.
48747
48748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48749 (pkgdata_MODULES): Add `sfs.mod'.
48750 (sfs_mod_SOURCES): New variable.
48751 (sfs_mod_CFLAGS): Likewise.
48752
48753 * util/grub-emu.c (main): Call `grub_sfs_init' and
48754 `grub_sfs_fini'.
48755
48756 * include/grub/fs.h (grub_sfs_init): New prototype.
48757 (grub_sfs_fini): Likewise.
48758
57bdbde3 487592005-10-07 Marco Gerards <mgerards@xs4all.nl>
48760
48761 Add support for the AFFS filesystem.
48762
48763 * fs/affs.c: New file.
48764
48765 * DISTLIST: Added `fs/affs.c'.
48766
48767 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48768 (grub_probefs_SOURCES): Likewise.
48769 (grub_emu_SOURCES): Likewise.
48770 (pkgdata_MODULES): Add `affs.mod'.
48771 (affs_mod_SOURCES): New variable.
48772 (affs_mod_CFLAGS): Likewise.
48773 (affs_mod_LDFLAGS): Likewise.
48774
48775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48776 (pkgdata_MODULES): Add `affs.mod'.
48777 (affs_mod_SOURCES): New variable.
48778 (affs_mod_CFLAGS): Likewise.
48779
48780 * util/grub-emu.c (main): Call `grub_affs_init' and
48781 `grub_affs_fini'.
48782
48783 * include/grub/fs.h (grub_affs_init): New prototype.
48784 (grub_affs_fini): Likewise.
48785
047b67e0 487862005-10-01 Marco Gerards <mgerards@xs4all.nl>
48787
48788 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
48789
59b8208a 487902005-10-01 Marco Gerards <mgerards@xs4all.nl>
48791
48792 * configure.ac: Accept `x86_64' as host_cpu. In that case add
48793 `-m32' to CFLAGS.
48794
48795 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
48796 linking.
f19dbdb7 48797
59b8208a 48798 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
48799 (COMMON_LDFLAGS): New variable.
48800 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
48801 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
48802 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
48803 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
48804 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
48805 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
48806 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
48807 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
48808 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
48809 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
48810 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48811 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48812 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
48813 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
48814 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
48815 variables.
48816 (normal_mod_ASFLAGS): Add `-m32'.
48817
48818 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
48819 (grub_host_size_t, grub_host_ssize_t): New types.
48820 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 48821 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 48822 `GRUB_HOST_SIZEOF_VOID_P'.
48823
48824 * include/grub/kernel.h (struct grub_module_header): Type of
48825 member offset changed to `grub_host_off_t'. Type of member size
48826 changed to `grub_host_size_t'.
48827 (struct grub_module_info): Type of member offset changed to
48828 `grub_host_off_t'. Type of member size changed to
48829 `grub_host_size_t'.
48830
b4093103 488312005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
48832
48833 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 48834
b4093103 48835 * kern/i386/pc/startup.S (multiboot_header): New label.
48836 (multiboot_entry): Likewise.
48837 (multiboot_trampoline): Likewise.
48838
48839 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48840 Increased to 0x4A0.
48841
48842 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
48843 put parentheses after a question mark.
48844 [!GRUB_UTIL] (my_mod): New variable.
48845
48846 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
48847
b2499b29 488482005-09-28 Marco Gerards <mgerards@xs4all.nl>
48849
48850 Adds support for the XFS filesystem. Btrees are not supported
48851 yet.
48852
48853 * fs/xfs.c: New file.
48854
48855 * DISTLIST: Added `fs/xfs.c'.
48856
48857 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48858 (grub_probefs_SOURCES): Likewise.
48859 (grub_emu_SOURCES): Likewise.
48860 (pkgdata_MODULES): Add `xfs.mod'.
48861 (xfs_mod_SOURCES): New variable.
48862 (xfs_mod_CFLAGS): Likewise.
48863
48864 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48865 (pkgdata_MODULES): Add `xfs.mod'.
48866 (xfs_mod_SOURCES): New variable.
48867 (xfs_mod_CFLAGS): Likewise.
48868
48869 * util/grub-emu.c (main): Call `grub_xfs_init' and
48870 `grub_xfs_fini'.
48871
48872 * include/grub/fs.h (grub_xfs_init): New prototype.
48873 (grub_xfs_fini): Likewise.
48874
f19dbdb7 48875
83d37a62 488762005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48877
48878 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48879 color modes, allow greater than 16 colors to be configured as
48880 a default palette.
48881
47d2d65e 488822005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48883
48884 * normal/completion.c (complete_arguments): Add the qualifier
48885 const into OPTIONS.
48886
48887 From Omniflux <omniflux+lists@omniflux.com>:
48888 * include/grub/terminfo.h: New file.
48889 * include/grub/tparm.h: Likewise.
48890 * include/grub/i386/pc/serial.h: Likewise.
48891 * term/terminfo.c: Likewise.
48892 * term/tparm.c: Likewise.
48893 * term/i386/pc/serial.c: Likewise.
48894 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48895 serial.mod.
48896 (terminfo_mod_SOURCES): New variable.
48897 (terminfo_mod_CFLAGS): Likewise.
48898 (serial_mod_SOURCES): Likewise.
48899 (serial_mod_CFLAGS): Likewise.
48900
48b671ff 489012005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48902
48903 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48904 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48905 and kern/powerpc/ieee1275/cmain.c, respectively.
48906
48907 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48908 * kern/powerpc/ieee1275/crt0.S: ... here.
48909
48910 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48911 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 48912
48b671ff 48913 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48914 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48915 instead of boot/powerpc/ieee1275/crt0.S and
48916 boot/powerpc/ieee1275/cmain.c, respectively.
48917
48918 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48919 sectors. It was not used anyway.
48920
09fc77a7 489212005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48922
48923 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48924 `unused parameter' warning.
48925
003789c7 489262005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48927
48928 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48929 function.
48930 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48931 getcharwidth.
48932
67f44c86 489332005-08-28 Marco Gerards <metgerards@student.han.nl>
48934
48935 * include/grub/normal.h (enum grub_completion_type): Added
48936 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48937
48938 * normal/cmdline.c (print_completion): Handle
48939 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48940 * normal/menu_entry.c (store_completion): Likewise.
48941
48942 * normal/completion.c (complete_arguments): New function.
48943 (grub_normal_do_completion): Call `complete_arguments' when the
48944 current words start with a dash.
48945
0b5abe02 489462005-08-27 Marco Gerards <metgerards@student.han.nl>
48947
48948 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48949 `gzio.mod' instead of `io.mod').
48950
d9864ee1 489512005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48952
48953 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48954 (DISTDIRS): Added io and video.
48955 Rewrite the search routine to make an output consistently.
48956
48957 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48958 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48959 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48960 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48961 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48962 util/powerpc/ieee1275/misc.c.
f19dbdb7 48963
d9864ee1 48964 * include/grub/gzio.h: New file.
48965 * io/gzio.c: Likewise.
f19dbdb7 48966
d9864ee1 48967 * kern/file.c (grub_file_close): Call grub_device_close only if
48968 FILE->DEVICE is not NULL.
48969
48970 * include/grub/mm.h [!NULL] (NULL): New macro.
48971
48972 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48973
48974 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48975 (pkgdata_MODULES): Added gzio.mod.
48976 (gzio_mod_SOURCES): New variable.
48977 (gzio_mod_CFLAGS): Likewise.
48978
48979 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48980 (pkgdata_MODULES): Added gzio.mod.
48981 (gzio_mod_SOURCES): New variable.
48982 (gzio_mod_CFLAGS): Likewise.
48983
48984 * commands/cat.c: Include grub/gzio.h.
48985 (grub_cmd_cat): Use grub_gzfile_open instead of
48986 grub_file_open.
f19dbdb7 48987
d9864ee1 48988 * commands/cmp.c: Include grub/gzio.h.
48989 (grub_cmd_cmp): Use grub_gzfile_open instead of
48990 grub_file_open.
48991
48992 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48993 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48994 grub_file_open.
48995 (grub_rescue_cmd_module): Likewise.
48996
fa46f4b5 489972005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48998
48999 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
49000 kern/sparc64/ieee1275/init.c because it contains _start.
49001 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
49002
e9211b5d 490032005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
49004
49005 * configure.ac: Add support for sparc64 host with ieee1275
49006 firmware.
49007 * configure: Generated from configure.ac.
49008 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
49009 instead of int.
49010 (grub_ofdisk_read): Likewise.
49011 (grub_ofdisk_open): Use %p to print pointer values, and cast the
49012 pointers as (void *) to remove a warning.
49013 (grub_ofdisk_close): Likewise.
49014 (grub_ofdisk_read): Likewise.
49015 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
49016 returns, so make it return void to remove a warning.
49017 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
49018 Corresponding prototype change.
49019 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
49020 values, and cast the pointers as (void *) to remove a warning.
49021 (grub_mm_dump): Likewise.
49022 * conf/sparc64-ieee1275.mk: New file.
49023 * conf/sparc64-ieee1275.rmk: Likewise.
49024 * include/grub/sparc64/setjmp.h: Likewise.
49025 * include/grub/sparc64/types.h: Likewise.
49026 * include/grub/sparc64/ieee1275/console.h: Likewise.
49027 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
49028 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
49029 * include/grub/sparc64/ieee1275/time.h: Likewise.
49030 * kern/sparc64/cache.c: Likewise.
49031 * kern/sparc64/dl.c: Likewise.
49032 * kern/sparc64/ieee1275/init.c: Likewise.
49033 * kern/sparc64/ieee1275/openfw.c: Likewise.
49034
385c6a92 490352005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
49036
49037 * util/console.c (grub_ncurses_putchar): If C is greater than
49038 0x7f, set C to a question mark.
49039 (grub_ncurses_getcharwidth): New function.
49040 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
49041 getcharwidth.
49042
49043 * normal/menu.c (print_entry): Made aware of Unicode. First,
49044 convert TITLE to UCS-4, and predict the cursor position by
49045 grub_getcharwidth.
49046
49047 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
49048 const to SRC.
49049 * kern/misc.c (grub_utf16_to_utf8): Likewise.
49050
16ccb8b1 490512005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49052
49053 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
49054 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
49055 grub_strcat.
49056
49057 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
49058 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
49059 grub_strcpy and grub_strlen. Take it into account that a space
49060 character is inserted as a delimiter.
49061
6a85ce79 490622005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49063
49064 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 49065 invalid magic in the error.
6a85ce79 49066
49067 * commands/search.c: New file.
f19dbdb7 49068
6a85ce79 49069 * util/grub-emu.c (main): Call grub_search_init and
49070 grub_search_fini.
49071
49072 * kern/rescue.c (grub_rescue_print_disks): Removed.
49073 (grub_rescue_print_devices): New function.
49074 (grub_rescue_cmd_ls): Use grub_device_iterate with
49075 grub_rescue_print_devices instead of grub_disk_dev_iterate with
49076 grub_rescue_print_disks.
49077
49078 * kern/partition.c (grub_partition_iterate): Return the result of
49079 PARTMAP->ITERATE instead of GRUB_ERRNO.
49080
49081 * kern/device.c: Include grub/partition.h.
49082 (grub_device_iterate): New function.
49083
49084 * include/grub/partition.h (grub_partition_iterate): Return int
49085 instead of grub_err_t.
49086
49087 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
49088 prototype.
49089 [GRUB_UTIL] (grub_search_fini): Likewise.
49090
49091 * include/grub/device.h (grub_device_iterate): New prototype.
49092
49093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49094 commands/search.c.
49095 (pkgdata_MODULES): Added search.mod.
49096 (search_mod_SOURCES): New variable.
49097 (search_mod_CFLAGS): Likewise.
49098
49099 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
49100 (pkgdata_MODULES): Added search.mod.
49101 (search_mod_SOURCES): New variable.
49102 (search_mod_CFLAGS): Likewise.
49103
49104 * commands/ls.c (grub_ls_list_disks): Renamed to ...
49105 (grub_ls_list_devices): ... this, and use grub_device_iterate.
49106 All callers changed.
49107
49108 * DISTLIST: Added commands/search.c.
49109
ef095434 491102005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
49111
49112 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
49113 conversion.
49114 (grub_getcharwidth): New function.
49115
49116 * kern/misc.c (grub_utf8_to_ucs4): New function.
49117
49118 * include/grub/term.h (struct grub_term): Added a new member
49119 "getcharwidth".
49120 (grub_getcharwidth): New prototype.
49121
49122 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
49123
49124 * term/i386/pc/console.c (map_char): New function. Segregated from
49125 grub_console_putchar.
49126 (grub_console_putchar): Use map_char.
49127 (grub_console_getcharwidth): New function.
49128 (grub_console_term): Specified grub_console_getcharwidth as
49129 getcharwidth.
49130
49131 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
49132 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
49133
49134 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
49135 GRUB_ERRNO.
49136 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
49137 on grub_strtoul completely.
49138 (write_char): Declare local variables in the beginning of the
49139 function.
49140 (grub_vesafb_getcharwidth): New function.
49141 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
49142 getcharwidth.
49143
1f0a95e4 491442005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
49145
49146 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
49147 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
49148 commands/i386/pc/vbetest.c.
49149
49150 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
49151 call grub_vbe_get_controller_info again, because the returned
49152 information is volatile.
49153 (grub_vbe_set_video_mode): Mostly rewritten.
49154 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
49155 grub_vbe_status_t correctly.
49156 (grub_vbe_get_video_mode_info): Likewise.
49157 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
49158 several if statements.
49159
49160 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
49161 * commands/i386/pc/vbeinfo.c: ... this.
49162
49163 * commands/i386/pc/vbe_test.c: Renamed to ...
49164 * commands/i386/pc/vbetest.c: ... this.
49165
49166 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
49167 ...
49168 (grub_cmd_vbeinfo): ... this. Save video modes before
49169 iterating. Skip a video mode, if it is not available, not enough
49170 information is given or it is monochrome. Show the memory
49171 model. Leave the interpretation of MODEVAR to grub_strtoul
49172 completely.
49173 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
49174 (GRUB_MOD_FINI): Likewise.
49175
49176 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
49177 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
49178 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
49179 duplicated grub_env_get. Leave the interpretation of MODEVAR to
49180 grub_strtoul completely.
49181 (real2pm): Removed.
49182 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
49183 (GRUB_MOD_FINI): Likewise.
49184
49185 * normal/misc.c: Include grub/mm.h.
49186
49187 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
49188 vbe_list_modes with vbetest.mod and vbeinfo.mod.
49189 (vbe_list_modes_mod_SOURCES): Removed.
49190 (vbe_list_modes_mod_CFLAGS): Likewise.
49191 (vbe_test_mod_SOURCES): Likewise.
49192 (vbe_test_mod_CFLAGS): Likewise.
49193 (vbeinfo_mod_SOURCES): New variable.
49194 (vbeinfo_mod_CFLAGS): Likewise.
49195 (vbetest_mod_SOURCES): Likewise.
49196 (vbetest_mod_CFLAGS): Likewise.
49197
992ffbbe 491982005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
49199
49200 * normal/misc.c: New file.
49201
49202 * DISTLIST: Added normal/misc.c.
f19dbdb7 49203
992ffbbe 49204 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
49205 DISK to HOOK. Call HOOK with DISK.
49206 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49207 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49208 * partmap/sun.c (sun_partition_map_iterate): Likewise.
49209
49210 * normal/menu_entry.c (struct screen): Added a new member
49211 "completion_shown".
49212 (completion_buffer): New global variable.
49213 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
49214 (store_completion): New function.
49215 (complete): Likewise.
49216 (clear_completions): Likewise.
49217 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
49218 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
49219 a tab, call complete.
49220
49221 * normal/completion.c (disk_dev): Removed.
49222 (print_simple_completion): Likewise.
49223 (print_partition_completion): Likewise.
49224 (print_func): New global variable.
49225 (add_completion): Do not take the arguments WHAT or PRINT any
49226 longer. Added a new argument TYPE. Instead of printing directly,
49227 call PRINT_FUNC if not NULL.
49228 All callers changed.
49229 (complete_device): Use a local variable DEV instead of
49230 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
49231 (grub_normal_do_completion): Take a new argument HOOK. Do not
49232 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
49233 empty string, return NULL instead.
49234 All callers changed.
49235
49236 * normal/cmdline.c (print_completion): New function.
49237
49238 * kern/partition.c (grub_partition_iterate): Add an argument DISK
49239 to HOOK.
49240 All callers changed.
49241
49242 * kern/disk.c (grub_print_partinfo): Removed.
49243
49244 * include/grub/partition.h (struct grub_partition_map): Add a new
49245 argument DISK into HOOK of ITERATE.
49246 (grub_partition_iterate): Add a new argument DISK to HOOK.
49247
49248 * include/grub/normal.h (enum grub_completion_type): New enum.
49249 (grub_completion_type_t): New type.
49250 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
49251 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
49252 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
49253 (GRUB_COMPLETION_TYPE_FILE): Likewise.
49254 (grub_normal_do_completion): Added a new argument HOOK.
49255 (grub_normal_print_device_info): New prototype.
49256
49257 * include/grub/disk.h (grub_print_partinfo): Removed.
49258
49259 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
49260 (normal_mod_SOURCES): Likewise.
49261 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49262 (normal_mod_SOURCES): Likewise.
49263
49264 * commands/ls.c (grub_ls_list_disks): Use
49265 grub_normal_print_device_info instead of grub_print_partinfo. Free
49266 PNAME.
49267 (grub_ls_list_files): Use grub_normal_print_device_info instead of
49268 duplicating the code.
49269
0bd41162 492702005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49271
49272 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 49273 follow GCS more precisely.
49274 * commands/i386/pc/vbe_test.c: Likewise.
49275 * include/grub/i386/pc/vbe.h: Likewise.
49276 * term/i386/pc/vesafb.c: Likewise.
49277 * video/i386/pc/vbe.c: Likewise.
0bd41162 49278
6323696a 492792005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49280
49281 * DISTLIST: Added term/i386/pc/vesafb.c
49282 DISTLIST: Added video/i386/pc/vbe.c
49283 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
49284 DISTLIST: Added commands/i386/pc/vbe_test.c.
49285 * commands/i386/pc/vbe_list_modes.c: New file.
49286 * commands/i386/pc/vbe_test.c: Likewise.
49287 * term/i386/pc/vesafb.c: Likewise.
49288 * video/i386/pc/vbe.c: Likewise.
49289 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
49290 (grub_vbe_probe) Added prototype.
49291 (grub_vbe_set_video_mode) Likewise.
49292 (grub_vbe_get_video_mode) Likewise.
49293 (grub_vbe_get_video_mode_info) Likewise.
49294 (grub_vbe_set_pixel_rgb) Likewise.
49295 (grub_vbe_set_pixel_index) Likewise.
49296 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
49297 (pkgdata_MODULES): Added vesafb.mod.
49298 (pkgdata_MODULES): Added vbe_list_modes.mod.
49299 (pkgdata_MODULES): Added vbe_test.mod.
49300 (vbe_mod_SOURCES): Added.
49301 (vbe_mod_CFLAGS): Likewise.
49302 (vesafb_mod_SOURCES): Likewise.
49303 (vesafb_mod_CFLAGS): Likewise.
49304 (vbe_list_modes_mod_SOURCES): Likewise.
49305 (vbe_list_modes_mod_CFLAGS): Likewise.
49306 (vbe_test_mod_SOURCES): Likewise.
49307 (vbe_test_mod_CFLAGS): Likewise.
49308
0a74e62f 493092005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
49310
0a74e62f 49311 * normal/command.c (grub_command_execute): If INTERACTIVE is
49312 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
49313 CMDLINE. Disable the pager if INTERACTIVE is true.
49314 All callers are changed.
49315
49316 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
49317 before reading a config file.
49318 * normal/main.c (read_config_file): Even if a command is not
49319 found, register it if it is within an entry.
49320
49321 * util/grub-emu.c: Include sys/types.h and unistd.h.
49322 (options): Added --hold.
49323 (struct arguments): Added a new member "hold".
49324 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
49325 missing.
49326 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
49327 cleared by a debugger, if it is not zero.
49328
49329 * include/grub/normal.h (grub_command_execute): Add an argument
49330 INTERACTIVE.
49331
e51f85ae 493322005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
49333
49334 * DISTLIST: Added include/grub/i386/pc/vbe.h.
49335
e9c6f39b 493362005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
49337
49338 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
49339 program with another one, because the old one didn't detect a bug
49340 in gcc-3.4. Always use regparm 2, because the new test is still
49341 not enough for gcc-4.0. Someone must investigate a simple test
49342 case which detects a bug in gcc-4.0.
49343
8de3495c 493442005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
49345
49346 * DISTLIST: Added normal/completion.c.
49347
49348 * normal/completion.c: New file.
f19dbdb7 49349
8de3495c 49350 * term/i386/pc/console.c (grub_console_getwh): New function.
49351 (grub_console_term): Assign grub_console_getwh to getwh.
49352
49353 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
49354 function is defined in normal/completion.c as
49355 grub_normal_do_completion.
49356 (grub_cmdline_get): Use grub_normal_do_completion instead of
49357 grub_tab_complete.
49358
49359 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
49360 returns non-zero, otherwise return 0.
49361 (grub_partition_iterate): First, probe the partition map. Then,
49362 call ITERATE only for this partition map.
49363
49364 * kern/misc.c (grub_strncmp): Rewritten.
49365
49366 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
49367 returns non-zero. Otherwise return 0.
49368
49369 * include/grub/partition.h (grub_partition_map_iterate): Return
49370 int instead of void.
49371
49372 * include/grub/normal.h (grub_normal_do_completion): New prototype.
49373
49374 * include/grub/misc.h (grub_strncmp): Change the type of N to
49375 grub_size_t.
49376
49377 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
49378 of void.
49379
49380 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 49381 unsigned explicitly before comparing it with I.
8de3495c 49382
49383 * kern/main.c (grub_env_write_root): Add the attribute unused into
49384 VAR.
49385
49386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49387 normal/completion.c.
49388 (normal_mod_SOURCES): Likewise.
49389 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
49390 (normal_mod_SOURCES): Likewise.
49391
49392 * normal/command.c (grub_iterate_commands): If ITERATE returns
49393 non-zero, return one immediately.
49394
e85e144b 493952005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
49396
49397 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
49398 * kern/i386/pc/startup.S: Updated Global Descriptor table's
49399 descriptions.
49400 (grub_vbe_get_controller_info): New function.
49401 (grub_vbe_get_mode_info): Likewise.
49402 (grub_vbe_set_mode): Likewise.
49403 (grub_vbe_get_mode): Likewise.
49404 (grub_vbe_set_memory_window): Likewise.
49405 (grub_vbe_get_memory_window): Likewise.
49406 (grub_vbe_set_scanline_length): Likewise.
49407 (grub_vbe_get_scanline_length): Likewise.
49408 (grub_vbe_set_display_start): Likewise.
49409 (grub_vbe_get_display_start): Likewise.
49410 (grub_vbe_set_palette_data): Likewise.
49411 * include/grub/i386/pc/vbe.h: New file.
49412
c46153d2 494132005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49414
49415 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49416 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
49417 * DISTLIST: Likewise.
49418 * kern/ieee1275/of.c: Moved to ...
49419 * kern/ieee1275/ieee1275.c: ... here.
49420
0cb90c45 494212005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49422
49423 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
49424 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
49425 Pass 0 as `end' parameter to grub_strtoul().
49426
a19fb360 494272005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49428
49429 * include/grub/powerpc/ieee1275/console.h: Do not include
49430 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
49431 ifdef.
49432 (grub_console_cur_color): Remove i386-specific prototype.
49433 (grub_console_real_putchar): Likewise.
49434 (grub_console_checkkey): Likewise.
49435 (grub_console_getkey): Likewise.
49436 (grub_console_getxy): Likewise.
49437 (grub_console_gotoxy): Likewise.
49438 (grub_console_cls): Likewise.
49439 (grub_console_setcursor): Likewise.
49440 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
49441 Include <grub/machine/console.h>.
49442 * term/ieee1275/ofconsole.c: Likewise.
49443
4ac9bd04 494442005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
49445
49446 * Makefile.in (LIBLZO): New variable.
49447
49448 * configure.ac: Check for LZO version 2.
49449
49450 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
49451 lzo/lzo1x.h instead of lzo1x.h.
49452
49453 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
49454 of -llzo.
49455
49456 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
49457 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
49458
49459 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
49460 copying the data from PARTITION to P.
49461
f4917dfd 494622005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49463
49464 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
49465 negative, unload the module.
49466
49467 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
49468 map is "pc_partition_map" but not "pc".
49469 (usage): Fix the description. The options are --boot-image and
49470 --core-image but not --boot-file or --core-file.
49471 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
49472 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
49473 DEFAULT_DIRECTORY.
49474
49475 * util/i386/pc/grub-install.in: Do not specify --boot-file or
49476 --core-file. Specify INSTALL_DEVICE as an argument.
49477
49478 * util/console.c: Include config.h.
49479 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
49480 [HAVE_NCURSES_H]: Include ncurses.h.
49481 [HAVE_CURSES_H]: Include curses.h.
49482 [!A_NORMAL] (A_NORMAL): Defined as zero.
49483 [!A_STANDOUT] (A_STANDOUT): Likewise.
49484
49485 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
49486 -lncurses.
49487 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
49488
49489 * configure.ac: Check for curses libraries and headers.
49490
49491 * Makefile.in (LIBCURSES): New variable.
49492
49493 * genmk.rb (Script::rule): Set the executable bits.
49494
49495 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
49496 name of the PC partition map is "pc_partition_map" but not "pc".
49497
0e143073 494982005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49499
49500 * util/i386/pc/grub-install.in (grub_probefs): New variable.
49501 (modules): Likewise.
49502 (usage): Added descriptions for --modules and --grub-probefs.
49503 Handle --modules and --grub-probefs. Save the arguments in MODULES
49504 and GRUB_PROBEFS, respectively.
49505 Auto-detect a filesystem module against GRUBDIR. If the result is
49506 empty and modules are not specified explicitly, abort the
49507 installation. Add the result to MODULES.
49508
49509 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
49510 disk/powerpc/ieee1275/ofdisk.c,
49511 include/grub/powerpc/ieee1275/init.h and
49512 term/powerpc/ieee1275/ofconsole.c.
49513 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
49514 term/ieee1275/ofconsole.c.
49515
49516 * include/grub/powerpc/ieee1275/console.h: Resurrected.
49517
49518 * COPYING: Upgraded to the latest version. Only the address of the
49519 FSF office has changed.
f19dbdb7 49520
efd6e6d5 495212005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49522
49523 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49524 kern/ieee1275.c with kern/ieee1275/of.c.
49525
49526 * kern/ieee1275.c: Moved to ...
49527 * kern/ieee1275/of.c: ... here.
49528
8ceafda2 495292005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
49530
49531 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 49532 readability.
8ceafda2 49533
49534 * config.guess: Updated to the latest version from gnulib.
49535 * config.sub: Likewise.
49536 * install.sh: Likewise.
49537 * mkinstalldirs: Likewise.
49538
49539 * include/grub/console.h: Removed. This file is arch-specific. Do
49540 not put this in include/grub.
49541
49542 * include/grub/i386/pc/console.h: Resurrected.
49543
49544 * util/console.c: Include grub/machine/console.h instead of
49545 grub/console.h.
49546 * util/grub-emu.c: Likewise.
49547
267f6cd9 495482005-08-04 Marco Gerards <metgerards@student.han.nl>
49549
49550 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
49551 hardcoded value.
f19dbdb7 49552
267f6cd9 49553 From Vincent Pelletier <subdino2004@yahoo.fr>
49554 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
49555 Redefined to use grub_getwh.
49556 (grub_term): New member named getwh.
49557 (grub_getwh): New prototype.
49558 * kern/term.c (grub_getwh): New function.
49559 * term/i386/pc/console.c (grub_console_getwh): New function.
49560 (grub_console_term): New member `getwh'.
49561 * term/i386/pc/vga.c (grub_vga_getwh): New function.
49562 (grub_vga_term): New member `getwh'.
0b5abe02 49563 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 49564 grub_ssize_t.
49565 (grub_ofconsole_getw): New function.
49566 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
49567 (grub_ofconsole_term): New field named getwh and new initial
49568 value.
49569
3be7266d 495702005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49571
49572 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49573 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49574 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49575 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49576 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49577 of <grub/machine/ieee1275.h>.
49578 * commands/ieee1275/reboot.c: Likewise.
49579 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49580 * kern/ieee1275.c: ... to here. All users updated. Change all
49581 parameter structs to use new type `grub_ieee1275_cell_t'.
49582 * term/powerpc/ieee1275/ofconsole.c: Move ...
49583 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49584 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49585 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49586 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49587 to return int.
49588 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49589 Remove unused prototypes. All users updated.
49590 * include/grub/powerpc/ieee1275/console.h: Removed.
49591 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49592 `grub_ieee1275_cell_t'.
49593 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49594 Cast comparisons with -1 to the correct type.
49595 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49596 type to match `grub_ieee1275_entry_fn'.
49597
8b5f3938 495982005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49599
49600 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49601
49602 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49603 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49604 partmap/sun.c.
49605 (grub_probefs_SOURCES): New variable.
49606
49607 * util/i386/pc/grub-probefs.c: New file.
49608
49609 * util/i386/pc/grub-setup.c (main): Call
49610 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49611 grub_hfs_init and grub_jfs_init to initialize the system. Call
49612 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49613 grub_pc_partition_map_fini to finish the system.
49614
ea409713 496152005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49616
49617 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49618 function.
49619 (grub_multiboot_load_elf32): Likewise.
49620 (grub_multiboot_is_elf64): Likewise.
49621 (grub_multiboot_load_elf64): Likewise.
49622 (grub_multiboot_load_elf): Likewise.
49623 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49624 an ELF32 or ELF64 file.
49625 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49626
49627 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49628 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49629 NULL before calling FS->LABEL.
49630 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49631 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49632 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49633 before calling FS->LABEL.
49634
141a288b 496352005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49636
49637 * util/i386/pc/grub-install.in (datadir): New variable.
49638 (libdir): Removed.
49639 (pkgdatadir): New variable.
49640 (pkglibdir): Removed.
49641
0d5f8a54 496422005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49643
49644 * DISTLIST: Added util/i386/pc/grub-install.in.
49645
49646 * util/i386/pc/grub-install.in: New file.
49647
49648 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49649 (grub_install_SOURCES): Likewise.
49650
49651 * genmk.rb: Added support for scripts.
49652 (Script): New class.
49653 (scripts): New variable.
49654
49655 * Makefile.in (install-local): Install sbin_SCRIPTS by
49656 INSTALL_SCRIPT.
49657 (uninstall): Remove sbin_SCRIPTS.
49658
49659 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49660 device, try to get a GRUB device by
49661 grub_util_biosdisk_get_grub_dev.
49662 Free DEST_DEV.
49663
49664 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49665 description for --device-map.
49666
5f968e1e 496672005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49668
49669 Change the semantics of variable hooks. They now return strings
49670 instead of error values.
f19dbdb7 49671
5f968e1e 49672 * util/i386/pc/grub-setup.c: Include grub/env.h.
49673 (setup): Use grub_device_set_root instead of grub_env_set.
49674
49675 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49676 grub_env_get instead of grub_device_set_root and
49677 grub_device_get_root, respectively.
49678
49679 * kern/main.c (grub_env_write_root): New function.
49680 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49681 grub_env_set instead of grub_device_set_root.
49682
49683 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49684 many variables.
49685 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49686 rather than calling ENV->WRITE_HOOK afterwards.
49687 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49688 passing a pointer of a pointer.
49689 (grub_register_variable_hook): Change the types of "read_hook" and
49690 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49691 respectively.
49692 Allocate the default empty string on the heap, because this string
49693 may be freed later.
49694
49695 * kern/device.c: Include grub/env.h.
49696 (grub_device_set_root): Removed.
49697 (grub_device_get_root): Likewise.
49698 (grub_device_open): Use grub_env_get instead of
49699 grub_device_get_root.
49700
49701 * include/grub/env.h (grub_env_read_hook_t): New type.
49702 (grub_env_write_hook_t): Likewise.
49703 (grub_env_var): Change the types of "read_hook" and "write_hook"
49704 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49705 (grub_register_variable_hook): Likewise.
49706
49707 * include/grub/device.h (grub_device_set_root): Removed.
49708 (grub_device_set_root): Likewise.
49709
49710 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49711 make sure that DIRNAME terminates with '/', so that
49712 grub_fat_find_dir will fail if PATH is not a directory.
49713
49714 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49715 from DIRNAME.
49716 Use the qualifier auto for print_files and print_files_long.
49717 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49718 as a regular file.
49719 Put a newline only if there is no error.
49720 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49721 used.
49722
896f0afd 497232005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49724
49725 * kern/partition.c (grub_partition_probe): Initialize PART to
49726 NULL. Otherwise, when no partition map is registered, this returns
49727 a garbage.
49728
b28b81b2 497292005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49730
49731 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49732 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49733 valid.
49734
5f3607e0 497352005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49736
49737 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49738 information on each device, if it does not have partitions. Print
49739 "Device" instead of "Disk", because this function is not specific
49740 to disk devices.
49741
49742 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49743 static to ensure that it is put on the memory rather than a
49744 register.
49745
502c87e8 497462005-07-17 Yoshinori Okuji <okuji@enbug.org>
49747
49748 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49749 (grub_cat_init): Likewise.
49750 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49751 (options): Likewise.
49752 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49753 (grub_configfile_init): Likewise.
49754 * font/manager.c (GRUB_MOD_INIT): Likewise.
49755 * commands/help.c (GRUB_MOD_INIT): Likewise.
49756 (grub_help_init): Likewise.
49757 * normal/command.c (grub_command_init): Likewise.
49758 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49759 * disk/loopback.c (grub_loop_init): Likewise.
49760 (GRUB_MOD_INIT): Likewise.
49761 * commands/ls.c (grub_ls_init): Likewise.
49762 (GRUB_MOD_INIT): Likewise.
49763 (options): Likewise.
49764 * commands/boot.c (grub_boot_init): Likewise.
49765 (GRUB_MOD_INIT): Likewise.
49766 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49767 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49768 (GRUB_MOD_INIT): Likewise.
49769 * commands/cmp.c (grub_cmp_init): Likewise.
49770 (GRUB_MOD_INIT): Likewise.
49771
49772 * normal/arg.c: Use <> instead of "" to include header files.
49773 (SHORT_ARG_HELP): New macro.
49774 (SHORT_ARG_USAGE): Likewise.
49775 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49776 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49777 descriptions.
49778 (find_short): Check if C is 'h' or 'u' explicitly.
49779 (grub_arg_show_help): Use space characters instead of tabs. Treat
49780 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49781 are shown with --help and --usage only if they are not used for
49782 the command itself.
49783 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
49784 'h' and 'u'.
49785
49786 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
49787 const into "longarg". Change the type of "shortarg" to int.
49788
f806d18e 497892005-07-17 Yoshinori Okuji <okuji@enbug.org>
49790
49791 * boot/i386/pc/boot.S (boot_drive_check): New label.
49792
49793 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
49794 macro.
49795
49796 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
49797 which do not pass a boot drive correctly. Copied from GRUB Legacy.
49798
e293232b 497992005-07-17 Yoshinori Okuji <okuji@enbug.org>
49800
49801 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
49802 When turning off Gate A20, skip the check and return immediately,
49803 because this is not fatal usually.
49804
ebedfd00 498052005-07-17 Yoshinori Okuji <okuji@enbug.org>
49806
49807 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
49808 be 0x7C00 instead of 0x8000.
49809
49810 * boot/i386/pc/pxeboot.S: Rewritten.
49811
49812 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
49813 EXT_C.
49814 (gate_a20_check_state): Read a byte from 0x108000. Invert the
49815 result.
49816
654fc59f 498172005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
49818
49819 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
49820 robustness. This routine now supports a BIOS call and System
49821 Control Port A to modify the gate A20.
49822
49823 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49824 Increased to 0x440.
49825
09f9923f 498262005-07-12 Hollis Blanchard <hollis@penguinppc.org>
49827
49828 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
49829 device path and resulting ihandle.
49830 (grub_ofdisk_close): dprintf the ihandle being closed.
49831 (grub_ofdisk_read): dprintf function parameters.
49832 * kern/mm.c (grub_mm_init_region): Likewise.
49833 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
49834 (grub_linux_boot): dprintf the Linux entry point, initrd address and
49835 size, and boot arguments.
49836 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
49837 before loading into memory.
49838 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
49839 before loading into memory.
49840
7ef504d8 498412005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
49842
49843 * kern/mm.c: Added much documentation.
49844 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
49845 8, set to 5 instead of 8.
49846
e0f050c2 498472005-07-10 Yoshinori Okuji <okuji@enbug.org>
49848
49849 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49850
49851 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49852 (grub_mkdevicemap_SOURCES): New variable.
49853
49854 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49855 lib/device.c of GRUB Legacy.
49856
7224189a 498572005-07-10 Yoshinori Okuji <okuji@enbug.org>
49858
49859 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49860 instead of PATH is NULL.
49861
68c864eb 498622005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49863
49864 * commands/cmp.c (BUFFER_SIZE): New macro.
49865 (grub_cmd_cmp): Close the right file at the right time. Compare
49866 only data just read. Don't report files of different size as
49867 identical. Dynamically allocate buffers. Move variable
49868 declarations at the beginning of function.
49869
e6f3e614 498702005-07-09 Yoshinori Okuji <okuji@enbug.org>
49871
49872 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49873 reverse.
49874
f8f1559a 498752004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49876
49877 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49878 when backspace is pressed at beginning of line.
49879
39c9d41d 498802005-07-03 Yoshinori Okuji <okuji@enbug.org>
49881
49882 * DISTLIST: Added genfslist.sh.
49883
49884 * normal/main.c (fs_module_list): New variable.
49885 (autoload_fs_module): New function.
49886 (read_fs_list): Likewise.
49887 (grub_normal_execute): Call read_fs_list.
49888
49889 * kern/fs.c (grub_fs_autoload_hook): New variable.
49890 (grub_fs_probe): Added support for auto-loading.
49891
49892 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49893 (grub_fs_module_list_t): New type.
49894
49895 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49896 (grub_fs_autoload_hook): New prototype.
49897
49898 * genfslist.sh: New file.
f19dbdb7 49899
39c9d41d 49900 * genmk.rb: Added a rule to generate a filesystem list.
49901
121c1d83 499022005-06-30 Marco Gerards <metgerards@student.han.nl>
49903
49904 * configure.ac: Fix the test for cross-compiling.
49905
49906 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49907 define GRUB_UTIL anymore.
49908
49909 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49910 so this function works on other systems than just big endian.
49911 (load_modules): Likewise.
49912 (add_segments): Likewise.
49913
e75d76e1 499142005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49915
49916 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49917 contains `l' modifier, get a long from va_arg().
49918
50b5a0a7 499192005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49920
49921 * kern/mm.c (grub_free): If the next free block which is being
49922 merged is the first free block, set the first block to the block
49923 being freed.
49924 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49925
89371b20 499262005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49927
49928 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49929 `grub_ieee1275_chosen'.
49930
168d6e58 499312005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49932
49933 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49934 (grub_ieee1275_chosen): New variable.
49935 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49936 `chosen'.
49937 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49938 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49939 Rename first argument to `phandle' for consistency.
49940 (grub_ieee1275_get_property_length): Likewise.
49941 (grub_ieee1275_next_property): Likewise. Change type of first argument
49942 to grub_ieee1275_phandle_t.
49943 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49944 Move export next to declaration.
49945 (grub_ieee1275_chosen): New variable.
49946 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49947 Correct cosmetic typo.
49948 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49949 `grub_ieee1275_chosen'.
49950 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49951 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49952 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49953 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49954 `grub_ieee1275_chosen'.
49955
ca5baa3f 499562005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49957
49958 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49959 /chosen/bootargs.
49960 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49961 /chosen/bootargs as "variable=value" pairs.
49962
708b345f 499632005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49964
49965 * include/grub/misc.h (grub_dprintf): New macro.
49966 (grub_real_dprintf): New prototype.
49967 (grub_strword): Likewise.
49968 (grub_iswordseparator): Likewise.
49969 * kern/misc.c (grub_real_dprintf): New function.
49970 (grub_strword): Likewise.
49971 (grub_iswordseparator): Likewise.
49972
f4c5e67c 499732005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49974
49975 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49976 (roundup): Remove macro.
49977 (grub_ieee1275_flags): Make static.
49978 (grub_ieee1275_realmode): Remove.
49979 (grub_ieee1275_test_flag): New function.
49980 (grub_ieee1275_set_flag): Likewise.
49981 (find_options): Rename to `grub_ieee1275_find_options'; update
49982 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49983 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49984 (cmain): New prototype.
49985 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49986 `grub_ieee1275_flags' directly.
49987 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49988 machine/biosdisk.h.
49989 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49990 Don't include grub/machine/init.h.
49991 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49992 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49993 Remove prototype.
49994 (grub_ieee1275_realmode): Likewise.
49995 (grub_ieee1275_flag): New enum.
49996 (grub_ieee1275_test_flag): New prototype.
49997 (grub_ieee1275_set_flag): New prototype.
49998 * include/grub/powerpc/ieee1275/init.h: Remove file.
49999 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
50000 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
50001 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
50002 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
50003 comment.
50004 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
50005 `grub_ieee1275_test_flag'.
50006 (grub_ieee1275_encode_devname): Likewise.
50007
ed16607e 500082005-04-21 Hollis Blanchard <hollis@penguinppc.org>
50009
50010 * include/grub/powerpc/ieee1275/ieee1275.h
50011 (grub_ieee1275_encode_devname): New prototype.
50012 (grub_ieee1275_get_filename): Likewise.
50013 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
50014 function.
50015 (grub_set_prefix): Likewise.
50016 (grub_machine_init): Call grub_set_prefix.
50017 * kern/powerpc/ieee1275/openfw.c: Fix typos.
50018 (grub_parse_type): New enum.
50019 (grub_ieee1275_get_devargs): New function.
50020 (grub_ieee1275_get_devname): Likewise.
50021 (grub_ieee1275_parse_args): Likewise.
50022 (grub_ieee1275_get_filename): Likewise.
50023 (grub_ieee1275_encode_devname): Likewise.
50024
be369920 500252005-03-30 Marco Gerards <metgerards@student.han.nl>
50026
50027 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
50028 `grub_loader_unset'.
50029
a5ce3a4a 500302005-03-26 Hollis Blanchard <hollis@penguinppc.org>
50031
50032 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
50033 instead of grub_ieee1275_interpret.
50034 (grub_halt_init): New function.
50035 (grub_halt_fini): Likewise.
50036 (GRUB_MOD_INIT): Correct message grammar.
50037 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
50038 instead of grub_ieee1275_interpret.
50039 (grub_reboot_init): New function.
50040 (grub_reboot_fini): Likewise.
50041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
50042 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
50043 util/i386/pc/misc.c with commands/ieee1275/halt.c,
50044 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
50045 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
50046 function.
50047 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
50048 Add prototype.
50049 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
50050 prototype.
50051 (grub_halt): Likewise.
50052 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
50053 (cmain): Remove __attribute__((unused)).
50054 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
50055 (grub_heap_len): Likewise.
50056 (grub_machine_fini): New function.
50057 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
50058 (grub_halt): Likewise.
50059 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
50060 function.
50061 * util/powerpc/ieee1275/misc.c: New file.
50062
0058f771 500632005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
50064
50065 * DISTLIST: New file.
50066 * gendistlist.sh: Likewise.
f19dbdb7 50067
0058f771 50068 * Makefile.in (COMMON_DISTFILES): Removed.
50069 (BOOT_DISTFILES): Likewise.
50070 (CONF_DISTFILES): Likewise.
50071 (DISK_DISTFILES): Likewise.
50072 (FS_DISTFILES): Likewise.
50073 (INCLUDE_DISTFILES): Likewise.
50074 (KERN_DISTFILES): Likewise.
50075 (LOADER_DISTFILES): Likewise.
50076 (TERM_DISTFILES): Likewise.
50077 (UTIL_DISTFILES): Likewise.
50078 (DISTFILES): Likewise.
50079 (uninstall): Uninstall files in $(pkgdata_DATA).
50080 (DISTLIST): New target.
50081 (distdir): Use the contents of the file DISTLIST to get a list of
50082 distributed files.
50083
46b3b8a5 500842005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
50085
50086 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
50087 descriptor. This is ported from GRUB Legacy.
50088
50089 * gencmdlist.sh: Added an extra semicolon to make it work with
50090 old sed versions. Reported by Robert Bihlmeyer
50091 <robbe@orcus.priv.at>.
50092
5822ff87 500932005-03-08 Yoshinori Okuji <okuji@enbug.org>
50094
50095 Automatic loading of commands is supported.
f19dbdb7 50096
5822ff87 50097 * normal/main.c (read_command_list): New function.
50098 (grub_normal_execute): Call read_command_list.
50099
50100 * normal/command.c (grub_register_command): Return zero or CMD.
50101 Allocate CMD->NAME from the heap.
50102 Initialize CMD->MODULE_NAME to zero.
50103 Find the same name as well. If the same command is found and it is
50104 a dummy command, overwrite members. If it is not a dummy command,
50105 return zero.
50106 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
50107 (grub_command_find): If a dummy command is found, load a module
50108 and retry to find a command only once.
50109
50110 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
50111 make sure that each command is loaded.
50112
50113 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
50114 macro.
50115 (struct grub_command): Remove const from the member `name'.
50116 Add a new member `module_name'.
50117 (grub_register_command): Return grub_command_t.
50118
50119 * commands/help.c (grub_cmd_help): Call grub_command_find to make
50120 sure that each command is loaded.
50121
50122 * genmk.rb (PModule::rule): Specify a module name without the
50123 suffix ".mod" to gencmdlist.sh.
50124
7b1f4b57 501252005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50126
50127 * gencmdlist.sh: New file.
f19dbdb7 50128
7b1f4b57 50129 * genmk.rb (PModule::rule): Generate a rule for a command list.
50130 Clean command.lst.
50131 Generate command.lst from $(COMMANDFILES).
50132
50133 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
50134 (DATA): Added $(pkgdata_DATA).
50135 (install-local): Install files in $(pkgdata_DATA).
50136
062aaf39 501372005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50138
50139 * term/i386/pc/vga.c (debug_command): Removed.
50140 (GRUB_MOD_INIT): Do not register the command "debug".
50141
50142 From Hollis Blanchard:
50143 * commands/configfile.c: New file.
50144 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50145 commands/configfile.c.
50146 (pkgdata_MODULES): Added configfile.mod.
50147 (configfile_mod_SOURCES): New variable.
50148 (configfile_mod_CFLAGS): Likewise.
50149 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50150 commands/configfile.c.
50151 (pkgdata_MODULES): Added configfile.mod.
50152 (configfile_mod_SOURCES): New variable.
50153 (configfile_mod_CFLAGS): Likewise.
50154 * util/grub-emu.c (main): Call grub_configfile_init and
50155 grub_configfile_fini.
50156 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
50157 prototype.
50158 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 50159
cee01aa6 501602005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50161
50162 * normal/arg.c (grub_arg_show_help): Do not show the bug report
50163 address.
50164
50165 * commands/help.c (grub_cmd_help): Do not print newlines after
50166 the last command in print_command_help.
50167
93f3a1d8 501682005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50169
50170 * commands/default.h: New file.
50171 * commands/timeout.h: Likewise.
50172 * normal/context.c: Likewise.
f19dbdb7 50173
93f3a1d8 50174 * util/misc.c: Do not include sys/times.h.
50175 Include sys/time.h and grub/machine/time.h.
50176 (grub_get_rtc): Rewritten with gettimeofday.
50177
50178 * util/grub-emu.c (main): Call grub_default_init and
50179 grub_timeout_init before grub_normal_init, and call
50180 grub_timeout_fini and grub_default_fini after grub_main.
50181
50182 * util/console.c (grub_ncurses_checkkey): Return the read
50183 character or -1.
50184
50185 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
50186 timeouts.
50187
50188 * normal/main.c (read_config_file): Push MENU. If this fails,
50189 print an error and wait for a user input.
50190 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
50191 If a menu is empty or an error occurs, pop MENU.
50192 (grub_normal_execute): Pop and free MENU after grub_menu_run
50193 returns.
50194
50195 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
50196
50197 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
50198 include time.h.
50199 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50200 without GRUB_UTIL.
50201 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
50202 time.h.
50203 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50204 without GRUB_UTIL.
50205
50206 * include/grub/normal.h (struct grub_menu_list): New struct.
50207 (grub_menu_list_t): New type.
50208 (struct grub_context): New struct.
50209 (grub_context_t): New type.
50210 (grub_register_command): Got rid of EXPORT_FUNC.
50211 (grub_unregister_command): Likewise.
50212 (grub_context_get): New prototype.
50213 (grub_context_get_current_menu): Likewise.
50214 (grub_context_push_menu): Likewise.
50215 (grub_context_pop_menu): Likewise.
50216 [GRUB_UTIL] (grub_default_init): Likewise.
50217 [GRUB_UTIL] (grub_default_fini): Likewise.
50218 [GRUB_UTIL] (grub_timeout_init): Likewise.
50219 [GRUB_UTIL] (grub_timeout_fini): Likewise.
50220
50221 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
50222 commands/timeout.c and normal/context.c.
50223 (pkgdata_MODULES): Added default.mod and timeout.mod.
50224 (normal_mod_SOURCES): Added normal/context.c.
50225 (default_mod_SOURCES): New variable.
50226 (default_mod_CFLAGS): Likewise.
50227 (timeout_mod_SOURCES): Likewise.
50228 (timeout_mod_CFLAGS): Likewise.
50229 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
50230 conf/i386-pc.rmk.
50231 (pkgdata_MODULES): Added default.mod and timeout.mod.
50232 (normal_mod_SOURCES): Added normal/context.c.
50233 (default_mod_SOURCES): New variable.
50234 (default_mod_CFLAGS): Likewise.
50235 (timeout_mod_SOURCES): Likewise.
50236 (timeout_mod_CFLAGS): Likewise.
50237
50238 * Makefile.in (all-local): Added $(MKFILES).
50239
4ed2e1dd 502402005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
50241
50242 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
50243 (grub_emu_SOURCES): Likewise.
50244 (pkgdata_MODULES): Add `sun.mod'.
50245 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50246 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50247 `partmap/sun.c'.
50248 (pkgdata_MODULES): Add `sun.mod'.
50249 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50250 * include/grub/partition.h (grub_sun_partition_map_init): New
50251 prototype.
50252 (grub_sun_partition_map_fini): Likewise.
50253 * partmap/sun.c: New file.
50254 * util/grub-emu.c (main): Initialize and de-initialize the sun
50255 partitionmap support.
50256
4d4e372e 502572005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
50258
50259 This implements an Emacs-like menu entry editor.
f19dbdb7 50260
4d4e372e 50261 * normal/menu_entry.c: New file.
f19dbdb7 50262
4d4e372e 50263 * util/console.c (grub_ncurses_putchar): Translate some Unicode
50264 characters to ASCII.
50265 (saved_char): New variable.
50266 (grub_ncurses_checkkey): Rewritten completely.
50267 (grub_ncurses_getkey): Likewise.
50268 (grub_ncurses_init): Call raw instead of cbreak.
50269
50270 * normal/menu.c (print_entry): Do not put a space.
50271 (init_page): Renamed to ...
50272 (grub_menu_init_page): ... this. All callers changed.
50273 (edit_menu_entry): Removed.
50274 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
50275
50276 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
50277
50278 * kern/misc.c (grub_vprintf): Call grub_refresh.
50279
50280 * normal/menu.c (DISP_LEFT): Renamed to ...
50281 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
50282 * normal/menu.c (DISP_UP): Renamed to ...
50283 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
50284 * normal/menu.c (DISP_RIGHT): Renamed to ...
50285 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
50286 * normal/menu.c (DISP_DOWN): Renamed to ...
50287 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
50288 * normal/menu.c (DISP_HLINE): Renamed to ...
50289 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
50290 * normal/menu.c (DISP_VLINE): Renamed to ...
50291 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
50292 * normal/menu.c (DISP_UL): Renamed to ...
50293 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
50294 * normal/menu.c (DISP_UR): Renamed to ...
50295 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
50296 * normal/menu.c (DISP_LL): Renamed to ...
50297 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
50298 * normal/menu.c (DISP_LR): Renamed to ...
50299 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
50300 * normal/menu.c (TERM_WIDTH): Renamed to ...
50301 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
50302 * normal/menu.c (TERM_HEIGHT): Renamed to ...
50303 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
50304 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
50305 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
50306 * normal/menu.c (TERM_MARGIN): Renamed to ...
50307 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
50308 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
50309 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
50310 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
50311 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
50312 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
50313 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
50314 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
50315 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
50316 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
50317 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
50318 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
50319 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
50320 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
50321 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
50322 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
50323 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
50324 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
50325 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
50326 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
50327 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
50328 All callers changed.
50329
50330 * include/grub/normal.h: New prototype.
50331
50332 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50333 normal/menu_entry.c.
50334 (normal_mod_SOURCES): Likewise.
50335 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50336 (normal_mod_SOURCES): Likewise.
50337
e6b92c8a 503382005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
50339
50340 * include/grub/normal.h (grub_halt_init): New prototype.
50341 (grub_halt_fini): Likewise.
50342 (grub_reboot_init): Likewise.
50343 (grub_reboot_fini): Likewise.
50344
50345 * util/grub-emu.c: Include signal.h.
50346 (main_env): New global variable.
50347 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
50348 catch C-c.
50349 (grub_machine_fini): New function.
50350 (main): Call grub_halt_init and grub_reboot_init before
50351 grub_main, and grub_reboot_fini and grub_halt_fini after it.
50352 Call setjmp with MAIN_ENV to go back afterwards.
50353 Call grub_machine_fini right before return.
50354
50355 * include/grub/util/misc.h: Include setjmp.h.
50356 (main_env): New prototype.
50357
50358 * include/grub/kernel.h (grub_machine_fini): New prototype.
50359 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
50360 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
50361
50362 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
50363 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
50364 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 50365
e6b92c8a 50366 * util/i386/pc/misc.c: New file.
f19dbdb7 50367
e6b92c8a 50368 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50369 util/i386/pc/misc.c, commands/i386/pc/halt.c and
50370 commands/i386/pc/reboot.c.
50371
c642636f 503722005-02-14 Guillem Jover <guillem@hadrons.org>
50373
50374 * include/grub/dl.h (grub_dl_check_header): New prototype.
50375 (grub_arch_dl_check_header): Change return type to grub_err_t,
50376 remove size parameter and export function. Update all callers.
50377 * kern/dl.c (grub_dl_check_header): New function.
50378 (grub_dl_load_core): Use `grub_dl_check_header' instead of
50379 `grub_arch_dl_check_header'. Check ELF type. Check if sections
50380 are inside the core.
50381 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
50382 independent ELF header checks.
50383 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50384 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
50385 `grub_dl_check_header' instead of explicit checks. Check for the
50386 ELF type.
50387 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
50388 `grub_dl_check_header' instead of explicit checks. Remove arch
50389 specific ELF header checks.
50390
e6b92c8a 50391 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
50392 argument SIZE.
50393
5eabe94b 503942005-02-13 Hollis Blanchard <hollis@penguinppc.org>
50395
50396 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
50397 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
50398
1b14a681 503992005-02-12 Hollis Blanchard <hollis@penguinppc.org>
50400
50401 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 50402 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 50403 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 50404 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 50405 * partmap/amiga.c (amiga_partition_map_iterate): Return
50406 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
50407 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50408
aca108aa 504092005-02-01 Guillem Jover <guillem@hadrons.org>
50410
50411 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
50412 help info.
50413
c9f9c556 504142005-01-31 Marco Gerards <metgerards@student.han.nl>
50415
50416 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
50417 Removed prototype.
50418 (grub_rescue_cmd_linux): New prototype.
50419 (grub_rescue_cmd_initrd): Likewise.
50420 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
50421 `bi_rec'.
50422 (grub_linux_release_mem): Release the memory for the initrd.
50423 (grub_load_linux): Renamed from this...
50424 (grub_rescue_cmd_linux): ...To this. Changed all callers.
50425 Changed `entry' not to be static. Loop over memory regions to
50426 find another one when the default fails.
50427 (grub_rescue_cmd_initrd): New function.
50428 (grub_linux_init): Remove function.
50429 (grub_linux_fini): Likewise.
50430 (GRUB_MOD_INIT): Register `initrd'.
50431 (GRUB_MOD_FINI): Unregister `initrd'.
50432 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
50433 Function removed.
50434 (grub_linux_normal_fini): Likewise.
50435 (GRUB_MOD_INIT): Register `initrd'.
50436 (GRUB_MOD_FINI): Unregister `initrd'.
50437
990cf3aa 504382005-01-31 Marco Gerards <metgerards@student.han.nl>
50439
50440 * commands/help.c: New file.
50441 * normal/arg.c (show_help): Renamed to...
50442 (grub_arg_show_help): ... this.
50443 * commands/i386/pc/halt.c: New file.
50444 * commands/i386/pc/reboot.c: Likewise.
50445 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
50446 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
50447 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
50448 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
50449 variables.
50450 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50451 `commands/help.c'.
50452 (pkgdata_MODULES): Add `help.mod'.
50453 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
50454 * grub/i386/pc/init.h (grub_reboot): New prototype.
50455 (grub_halt): Likewise.
50456 * include/grub/normal.h (grub_arg_show_help): New prototype.
50457 (grub_help_init): Likewise.
50458 (grub_help_fini): Likewise.
50459 * util/grub-emu.c (main): Initialize and deinitialize the help
50460 command.
50461
50462 * normal/cmdline.c (grub_cmdline_get): Doc fix.
50463
50464 * normal/command.c (grub_command_init): Fixed the description of
50465 the `set' and `unset' commands.
50466
504672005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 50468
50469 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
50470 function.
50471 * commands/ieee1275/halt.c: New file.
50472 * commands/ieee1275/reboot.c: Likewise.
50473 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
50474 `__attribute__ ((unused))'. Some GCS related fixed.
50475 (grub_suspend_init) [GRUB_UTIL]: Function removed.
50476 (grub_suspend_fini): Likewise.
50477 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
50478 and `halt.mod'.
50479 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
50480 (halt_mod_CFLAGS): New variables.
50481 * include/grub/powerpc/ieee1275/ieee1275.h
50482 (grub_ieee1275_interpret): New prototype.
50483
1ab09cc7 504842005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
50485
50486 * include/grub/misc.h (memmove): New prototype.
50487 (memcpy): Likewise.
50488
8b8cbdb2 504892005-01-22 Hollis Blanchard <hollis@penguinppc.org>
50490
50491 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
50492 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
50493
e3741a27 504942005-01-22 Marco Gerards <metgerards@student.han.nl>
50495
50496 * kern/misc.c (grub_strndup): Function rewritten.
50497
776bd780 504982005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
50499
50500 * normal/menu.c (TERM_WIDTH): Macro redefined.
50501 (TERM_TOP_BORDER_Y): Likewise.
50502 (draw_border): Replaced while-loop by a for-loop. Make the number
50503 of lines consistent with the number of lines displayed in
50504 print_entries. Added a margin below the rectangle.
50505 (print_entry): Make the entry fit in the rectangle.
50506 (print_entries): Display the scroll arrows next to the right
50507 border.
50508
78026bce 505092005-01-21 Marco Gerards <metgerards@student.han.nl>
50510
50511 * fs/minix.c (grub_minix_find_file): Reserve more space for
50512 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
50513 `grub_strncpy' to copy `path' into it.
50514
67bbaf0f 505152005-01-21 Marco Gerards <metgerards@student.han.nl>
50516
50517 Add the loopback device, a device via which files can be accessed
50518 as devices.
f19dbdb7 50519
67bbaf0f 50520 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
50521 (pkgdata_MODULES): Add loopback.mod.
50522 (loopback_mod_SOURCES): New variable.
50523 (loopback_mod_CFLAGS): Likewise.
50524 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50525 `disk/loopback.c'.
50526 (pkgdata_MODULES): Add loopback.mod.
50527 (loopback_mod_SOURCES): New variable.
50528 (loopback_mod_CFLAGS): Likewise.
50529 * disk/loopback.c: new file.
50530 * include/grub/normal.h (grub_loop_init): New prototype.
50531 (grub_loop_fini): New prototype.
50532 * util/grub-emu.c (main): Initialize and de-initialize loopback
50533 support.
50534 * include/grub/disk.h (grub_disk_dev_id): Add
50535 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
50536
6f1c18bd 505372005-01-20 Hollis Blanchard <hollis@penguinppc.org>
50538
50539 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
50540 function.
50541 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
50542 (suspend_mod_SOURCES): New variable.
50543 (suspend_mod_CFLAGS): Likewise.
50544 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
50545 New prototype.
50546 * commands/ieee1275/suspend.c: New file.
50547
b38551da 505482005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50549
50550 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 50551 ((unused))' to `__attribute__ ((used))'.
b38551da 50552 (GRUB_MOD_FINI): Likewise.
50553 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
50554 * genmk.rb (PModule): Assign space to common symbols when linking
50555 modules.
50556
777aff39 505572005-01-20 Marco Gerards <metgerards@student.han.nl>
50558
50559 * include/grub/mm.h (grub_mm_init_region): Change the type of the
50560 `unsigned' arguments to `grub_size_t'.
50561 (grub_malloc): Likewise.
50562 (grub_realloc): Likewise.
50563 (grub_memalign): Likewise.
50564 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
50565 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50566 * util/misc.c (grub_malloc): Likewise.
50567 (grub_realloc): Likewise.
50568 * kern/mm.c (get_header_from_pointer): Change the casts to
50569 `unsigned' into a cast to `grub_size_t'.
50570
50571 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50572 point to `currnode' when `currnode' is changed.
50573
50574 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50575 Schottelius <nico-linux@schottelius.org>.
50576
d0ff18e1 505772005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50578
50579 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50580 (note_path): Remove variable.
50581 (GRUB_IEEE1275_NOTE_NAME): New macro.
50582 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50583 (grub_ieee1275_note_hdr): New structure.
50584 (grub_ieee1275_note_desc): Likewise.
50585 (grub_ieee1275_note): Likewise.
50586 (load_note): Remove `dir' argument. All callers updated. Remove
50587 `note_img' and `path'. Do not load a file from `note_path'.
50588 Initialize a struct grub_ieee1275_note and write that to `out'.
50589 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50590
4ca7004c 505912005-01-05 Marco Gerards <metgerards@student.han.nl>
50592
50593 * util/misc.c (grub_util_read_image): Revert last change. It
50594 called `grub_util_read_at', which seeks from the beginning of the
50595 file.
50596
0b412211 505972005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50598
50599 * TODO: Add note about endianness in grub-mkimage.
50600 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50601 section.
50602 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50603 (grub_mkimage_SOURCES): New target.
50604 * include/grub/kernel.h (grub_start_addr): Remove variable.
50605 (grub_end_addr): Likewise.
50606 (grub_total_module_size): Likewise.
50607 (grub_kernel_image_size): Likewise.
50608 (GRUB_MODULE_MAGIC): New constant.
50609 (grub_module_info): New structure.
50610 (grub_arch_modules_addr): New prototype.
50611 (grub_get_end_addr): Remove prototype.
50612 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50613 * include/grub/powerpc/ieee1275/kernel.h: New file.
50614 * include/grub/util/misc.h (grub_util_get_fp_size): New
50615 prototype.
50616 (grub_util_read_at): Likewise.
50617 (grub_util_write_image_at): Likewise.
50618 * kern/main.c (grub_get_end_addr): Remove function.
50619 (grub_load_modules): Call grub_arch_modules_addr instead of using
50620 grub_end_addr. Look for a grub_module_info struct in memory. Use
50621 the grub_module_info fields instead of calling grub_get_end_addr
50622 as loop conditions. Move grub_add_unused_region code here.
50623 (grub_add_unused_region): Remove function.
50624 * kern/i386/pc/init.c: Include grub/cache.h.
50625 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50626 one call to add_mem_region.
50627 (grub_arch_modules_addr): New function.
50628 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50629 (grub_total_module_size): Likewise.
50630 Include grub/machine/kernel.h.
50631 (grub_arch_modules_addr): New function.
50632 * util/grub-emu.c (grub_end_addr): Remove variable.
50633 (grub_total_module_size): Likewise.
50634 (grub_arch_modules_addr): New function.
50635 * util/misc.c: Include unistd.h.
50636 (grub_util_get_fp_size): New function.
50637 (grub_util_read_at): Likewise.
50638 (grub_util_write_image_at): Likewise.
50639 (grub_util_read_image): Call grub_util_read_at.
50640 (grub_util_write_image): Call grub_util_write_image_at.
50641 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50642 additional memory in kernel_img for a struct grub_module_info.
50643 Fill in that grub_module_info.
50644 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50645
458786f8 506462005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50647
50648 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50649 New function.
50650 * include/grub/powerpc/ieee1275/ieee1275.h
50651 (grub_ieee1275_milliseconds): New prototype.
50652 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50653 Change to 1000.
50654 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50655 grub_ieee1275_milliseconds.
50656
ac507d1b 506572005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50658
50659 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50660 variable.
50661 (find_options): New function.
50662 (cmain): Call find_options.
50663 * include/grub/powerpc/ieee1275/ieee1275.h
50664 (grub_ieee1275_realmode): New extern variable.
50665 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50666 grub_map if grub_ieee1275_realmode is false.
50667
6b8fd1c4 506682004-12-29 Marco Gerards <metgerards@student.han.nl>
50669
50670 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50671 lines are inserted and make it work like readline. Reported by
50672 Vincent Pelletier <subdino2004@yahoo.fr>.
50673
8514a1e0 506742004-12-28 Marco Gerards <metgerards@student.han.nl>
50675
50676 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50677
50678 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50679 `kern/powerpc/cache.S'.
50680
924b6140 506812004-12-27 Marco Gerards <metgerards@student.han.nl>
50682
50683 * genmk.rb: Handle the `Program' class in the main loop. Written
50684 by Johan Rydberg <jrydberg@gnu.org>.
50685 (Program): New class.
50686 (programs): New variable.
50687 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50688 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50689 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50690 (help_arch): Function removed.
50691 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50692 `powerpc/libgcc.h' and `loader.h'.
50693 (pkgdata_PROGRAMS): New variable.
50694 (sbin_UTILITIES): Variable removed.
50695 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50696 (grubof_SOURCES): Variable re-defined so it only includes the
50697 core functionality.
50698 (grubof_CFLAGS): Remove `-DGRUBOF'.
50699 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50700 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50701 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50702 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50703 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50704 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50705 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50706 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50707 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50708 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50709 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50710 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50711 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50712 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50713 (pc_mod_CFLAGS): New variables.
50714 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50715 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50716 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50717 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50718 Moved from here...
50719 * include/grub/i386/pc/init.h (grub_os_area_addr)
50720 (rub_os_area_size): ... to here.
50721 * include/grub/powerpc/ieee1275/ieee1275.h
50722 (grub_ieee1275_entry_fn): Export symbol.
50723 * include/grub/powerpc/ieee1275/init.h: New file.
50724 * include/grub/powerpc/libgcc.h: Likewise.
50725 * include/grub/cache.h: Likewise.
50726 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50727 <hollis@penguinppc.org>.
50728 * kern/dl.c: Include <grub/cache.h>.
50729 (grub_dl_flush_cache): New function.
50730 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50731 for this module.
50732 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50733 (grub_console_init): Removed prototypes.
50734 (grub_machine_init): Don't initialize the modules anymore.
50735 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50736 static.
50737 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50738 Macro undef removed.
50739 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50740 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50741 relocation `R_PPC_REL32'. Return an error when the relocation is
50742 unknown.
50743 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50744 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50745 * util/misc.c (grub_arch_sync_caches): Likewise.
50746
e4b47e0c 507472004-12-19 Marco Gerards <metgerards@student.han.nl>
50748
50749 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50750 `symlist.c', add `grubof_symlist.c'.
50751 (symlist.c): Variable removed.
50752 (grubof_HEADERS): Variable added.
50753 (grubof_symlist.c): New target.
50754 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50755 `kernel_img_HEADERS'.
50756 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50757 * kern/powerpc/dl.c: New file.
50758 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50759 Function removed.
50760 (grub_arch_dl_relocate_symbols): Likewise.
50761 (grub_register_exported_symbols): Likewise.
50762
4ceb3636 507632004-12-13 Marco Gerards <metgerards@student.han.nl>
50764
50765 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50766 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50767 to fail instead. Reported by Vincent Pelletier
50768 <subdino2004@yahoo.fr>.
50769
50770 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50771 it is not allocated. Reported by Vincent Pelletier
50772 <subdino2004@yahoo.fr>.
50773
50774 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50775 output so the output looks better.
f19dbdb7 50776
3f1578fe 507772004-12-04 Marco Gerards <metgerards@student.han.nl>
50778
50779 Modulize the partition map support and add support for the amiga
50780 partition map.
f19dbdb7 50781
3f1578fe 50782 * commands/ls.c: Include <grub/partition.h> instead of
50783 <grub/machine/partition.h>.
50784 * kern/disk.c: Likewise.
50785 * kern/rescue.c: Likewise.
50786 * loader/i386/pc/chainloader.c: Likewise.
50787 * normal/cmdline.c: Likewise.
50788 * kern/powerpc/ieee1275/init.c: Likewise.
50789 (grub_machine_init): Call `grub_pc_partition_map_init',
50790 `grub_amiga_partition_map_init' and
50791 `grub_apple_partition_map_init'.
50792 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
50793 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
50794 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
50795 `partition.h' and `pc_partition.h'.
50796 (grub_setup_SOURCES): Remove
50797 `disk/i386/pc/partition.c'. Add `kern/partition.c',
50798 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50799 (grub_emu_SOURCES): Likewise.
50800 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
50801 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
50802 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
50803 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50804 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
50805 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50806 (grubof_SOURCES): Likewise.
50807 * disk/i386/pc/partition.c: File removed.
50808 * disk/powerpc/ieee1275/partition.c: Likewise.
50809 * include/grub/powerpc/ieee1275/partition.h: Likewise.
50810 * include/grub/i386/pc/partition.h: Likewise.
50811 * kern/partition.c: New file.
50812 * partmap/amiga.c: Likewise.
50813 * partmap/apple.c: Likewise.
50814 * partmap/pc.c: Likewise.
50815 * include/grub/partition.h: Likewise..
50816 * include/grub/pc_partition.h: Likewise.
50817 * util/grub-emu.c: Include <grub/partition.h> instead of
50818 <grub/machine/partition.h>.
50819 (main): Call `grub_pc_partition_map_init',
50820 `grub_amiga_partition_map_init' and
50821 `grub_apple_partition_map_init' and deinitialize afterwards.
50822 * util/i386/pc/biosdisk.c: Include `#include
50823 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50824 `<grub/machine/partition.h>'.
50825 * util/i386/pc/grub-setup.c: Likewise.
50826 * util/i386/pc/biosdisk.c: Likewise.
50827 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
50828 partition information in case of a PC partition.
50829 * util/i386/pc/grub-setup.c: Include `#include
50830 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50831 `<grub/machine/partition.h>'.
50832 (setup): Only access the PC specific partition information in case
50833 of a PC partition.
50834
0ef4ced9 508352004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 50836
0ef4ced9 50837 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
50838 (grub_longjmp): Likewise.
50839 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
50840 20.
50841 * normal/powerpc/setjmp.S: New file.
50842 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50843 `normal/powerpc/setjmp.S'.
50844 (grubof_CFLAGS): Add `-DGRUBOF'.
50845 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
50846 [GRUB_UTIL && !GRUBOF].
f19dbdb7 50847
19950e29 508482004-11-16 Marco Gerards <metgerards@student.han.nl>
50849
50850 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50851 property named `name'. Correctly handle the error returned by
50852 `grub_ieee1275_finddevice' if a device can not be opened.
50853
a2fea427 508542004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50855
50856 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50857 `actual' for negativity.
50858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50859 kern/fshelp.c.
50860
41ea0ea3 508612004-11-01 Marco Gerards <metgerards@student.han.nl>
50862
50863 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50864 (PAGE_OFFSET): New macro.
50865 (CRTC_ADDR_PORT): Likewise.
50866 (CRTC_DATA_PORT): Likewise.
50867 (START_ADDR_HIGH_REGISTER): Likewise.
50868 (START_ADDR_LOW_REGISTER): Likewise.
50869 (GRAPHICS_ADDR_PORT): Likewise.
50870 (GRAPHICS_DATA_PORT): Likewise.
50871 (READ_MAP_REGISTER): Likewise.
50872 (INPUT_STATUS1_REGISTER): Likewise.
50873 (INPUT_STATUS1_VERTR_BIT): Likewise.
50874 (page): New variable.
50875 (wait_vretrace): New function.
50876 (set_read_map): Likewise.
50877 (set_start_address): Likewise.
50878 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50879 the right page.
50880 (check_vga_mem): Take the page into account.
50881 (write_char): Likewise.
50882 (write_cursor): Likewise.
50883 (scroll_up): Likewise. Copy the page to the page that is not
50884 shown and switch between both pages.
50885 (grub_vga_putchar): Fix off by one error.
50886 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50887 account.
50888
ad0bd20b 508892004-11-01 Marco Gerards <metgerards@student.han.nl>
50890
50891 Add support for iso9660 (including rockridge).
f19dbdb7 50892
ad0bd20b 50893 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50894 (iso9660_mod_SOURCES): New variable.
50895 (iso9660_mod_CFLAGS): Likewise.
50896 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50897 * include/grub/fs.h (grub_iso9660_init): New prototype.
50898 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50899 * fs/iso9660.c: New file.
50900
50901 * include/grub/misc.h (grub_strncat): New prototype.
50902 * kern/misc.c (grub_strncat): New function.
f19dbdb7 50903
ad0bd20b 50904 * fs/hfs.c (grub_hfs_mount): Translate the error
50905 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50906 * fs/jfs.c (grub_jfs_mount): Likewise.
50907 * fs/ufs.c (grub_ufs_mount): Likewise.
50908
a5477a59 509092004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50910
50911 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50912 which initialized BAT registers.
50913 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50914 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50915 Move from here...
50916 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50917 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50918 ... to here.
50919 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50920 (grub_mapclaim): Likewise.
50921 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50922 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50923 hand.
50924
9304c1f8 509252004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50926
50927 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50928 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50929 -ffreestanding and -msoft-float.
50930
86f4ae25 509312004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50932
50933 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50934 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50935 set in grub_ieee1275_flags.
50936
38912228 509372004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50938
50939 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50940 prototype.
50941 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50942 grub_console_init first.
50943 Change the memory range used for grub_ieee1275_claim and
50944 grub_mm_init_region.
50945 Print an error message if the claim fails.
50946 Include <grub/misc.h>.
50947
d1923dc8 509482004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50949
50950 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50951 Call grub_children_iterate for device nodes of type `scsi',
50952 `ide', or `ata'.
50953 (grub_ofdisk_open): Remove manual device alias resolution.
50954 Fix memory leak when device cannot be opened.
f19dbdb7 50955 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 50956 (grub_children_iterate): New prototype.
50957 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50958 New function.
50959 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50960 Return -1 if args.size was -1.
50961
4512e4f3 509622004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50963
50964 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50965 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50966 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50967 Open Firmware's memory for it; claim memory from _start to _end.
50968 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50969 (_end): New extern.
50970 (_start): Zero BSS from __bss_start to _end.
50971 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50972 New extern.
50973 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50974
4d61feb0 509752004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50976
ad0bd20b 50977 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50978 -1 if args.base was -1.
4d61feb0 50979
026fa2f9 509802004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50981
50982 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50983 escape sequence instead of a literal ^L. Also call
50984 grub_ofconsole_gotoxy.
50985
9f2220ef 509862004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50987
50988 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50989 void * arguments to grub_addr_t. All callers updated. Also make
50990 the `result' argument optional.
50991 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50992 All callers updated.
50993
8a572cd7 509942004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50995
50996 * commands/ls.c (grub_ls_list_files): Use the string following the
50997 initial ')', if present, as the filesystem path.
50998 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50999
51000 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
51001
18aa81f2 510022004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
51003
51004 Make the source code of the menu interface more readable.
f19dbdb7 51005
18aa81f2 51006 * normal/menu.c: Include grub/mm.h.
51007 (TERM_WIDTH): New macro.
51008 (TERM_HEIGHT): Likewise.
51009 (TERM_INFO_HEIGHT): Likewise.
51010 (TERM_MARGIN): Likewise.
51011 (TERM_SCROLL_WIDTH): Likewise.
51012 (TERM_TOP_BORDER_Y): Likewise.
51013 (TERM_LEFT_BORDER_X): Likewise.
51014 (TERM_BORDER_WIDTH): Likewise.
51015 (TERM_MESSAGE_HEIGHT): Likewise.
51016 (TERM_BORDER_HEIGHT): Likewise.
51017 (TERM_NUM_ENTRIES): Likewise.
51018 (TERM_FIRST_ENTRY_Y): Likewise.
51019 (TERM_ENTRY_WIDTH): Likewise.
51020 (TERM_CURSOR_X): Likewise.
51021 (draw_border): Use macros instead of magic numbers.
51022 (print_entry): Likewise.
51023 (print_entries): Likewise.
51024 (run_menu): Likewise. Also, handle the key 'e'.
51025 (run_menu_entry): Ignore empty command lines.
51026 (print_message): Added a new argument EDIT. If EDIT is true,
51027 print a different message.
51028 (init_page): Likewise.
51029 (edit_menu_entry): New function. Not implemented yet.
51030
b47efe30 510312004-09-17 Marco Gerards <metgerards@student.han.nl>
51032
51033 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
51034 can be loaded from normal mode.
f19dbdb7 51035
b47efe30 51036 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
51037 `multiboot.mod'.
51038 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
51039 (multiboot_mod_CFLAGS): New variables.
51040 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 51041 * loader/i386/pc/multiboot_normal.c: Likewise.
51042
b47efe30 51043 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
51044 attribute `unused'.
f19dbdb7 51045
b47efe30 51046 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
51047 `fdiro' to read the mode information from instead of `diro'.
51048
51049 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
51050 looking up a symlink.
51051
51052 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
51053 macro.
51054 * normal/command.c (grub_command_execute): Don't parse the
51055 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
51056 flags of the command.
51057
51058 * normal/menu.c (grub_menu_run): Fix typo.
51059
da75ac71 510602004-09-14 Hollis Blanchard <hollis@penguinppc.org>
51061
51062 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
51063
51064 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
51065 `y + 1' instead of `y - 1'.
51066
51067 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 51068
062b24c2 510692004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
51070
51071 From Hollis Blanchard <hollis@penguinppc.org>:
51072 * kern/misc.c (memmove): New alias for grub_memmove.
51073 (memcmp): New alias for grub_memcmp.
51074 (memset): New alias for grub_memset.
f19dbdb7 51075 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 51076 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 51077 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 51078 (grub_ieee1275_get_property): Likewise.
f19dbdb7 51079
8ddad845 510802004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
51081
51082 Added normal mode command `chainloader' as module chain.mod, which
51083 depends on normal.mod and _chain.mod.
f19dbdb7 51084
8ddad845 51085 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
51086 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
51087 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
51088 Deleted prototype.
51089 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
51090 but arguments parsing moved to ...
51091 (grub_chainloader_cmd): ... here. New function.
51092 * include/grub/i386/pc/chainloader.h: New file.
51093 * loader/i386/pc/chainloader_normal.c: Likewise.
51094
2c1f4ce3 510952004-09-11 Marco Gerards <metgerards@student.han.nl>
51096
51097 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
51098 (grub_mkimage_LDFLAGS): Likewise.
51099 (grub_emu_SOURCES): Likewise.
51100 (kernel_img_HEADERS): Added fshelp.h.
51101 * fs/ext2.c: Include <grub/fshelp.h>.
51102 (FILETYPE_REG): New macro.
51103 (FILETYPE_INO_REG): Likewise.
51104 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
51105 Changed all users.
51106 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
51107 all users.
51108 (grub_fshelp_node): New struct.
51109 (grub_ext2_data): Added member `diropen'. Changed member `inode'
51110 to a pointer.
51111 (grub_ext2_get_file_block): Removed function.
51112 (grub_ext2_read_block): New function.
51113 (grub_ext2_read_file): Replaced parameter `data' by `node'.
51114 This function was written.
51115 (grub_ext2_mount): Read the root inode. Create a diropen struct.
51116 (grub_ext2_find_file): Removed function.
51117 (grub_ext2_read_symlink): New function.
51118 (grub_ext2_iterate_dir): Likewise.
51119 (grub_ext2_open): Rewritten.
51120 (grub_ext2_dir): Rewritten.
51121 * include/grub/fshelp.h: New file.
51122 * fs/fshelp.c: Likewise.
51123
3c52136a 511242004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
51125
51126 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
51127 (print_message): Add a missing newline.
51128 (run_menu): Added timeout support.
51129 (run_menu_entry): New local function.
51130 (grub_menu_run): Added support for booting.
51131
51132 * kern/loader.c (grub_loader_is_loaded): New function.
51133
51134 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
51135 (grub_get_rtc): Exported.
51136
51137 * include/grub/i386/pc/time.h: Include grub/symbol.h.
51138 (grub_get_rtc): Exported.
51139
51140 * include/grub/normal.h (struct grub_command_list): Remove
51141 constant from the member `command'.
51142
51143 * include/grub/loader.h (grub_loader_is_loaded): Declared.
51144
51145 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
51146
51147 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
51148
aa033560 511492004-08-28 Marco Gerards <metgerards@student.han.nl>
51150
51151 Add support for the JFS filesystem.
51152
51153 * fs/jfs.c: New file.
51154 * include/grub/fs.h (grub_jfs_init): New prototype.
51155 (grub_jfs_fini): New prototype.
51156 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
51157 (grub_emu_SOURCES): Likewise.
51158 (pkgdata_MODULES): Add jfs.mod.
51159 (jfs_mod_SOURCES): New variable.
51160 (jfs_mod_CFLAGS): Likewise.
51161 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
51162 (grubof_SOURCES): Likewise.
51163 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
51164
51165 * fs/fat.c (grub_fat_find_dir): Convert the filename little
51166 endian to the host endian.
51167 (grub_fat_utf16_to_utf8): Move function from there...
51168 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 51169 the endianness of the source string anymore.
aa033560 51170 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
51171
94bc45af 511722004-08-24 Marco Gerards <metgerards@student.han.nl>
51173
51174 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
51175 (grub_boot_fini) [GRUB_UTIL]: Likewise.
51176 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
51177 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 51178
94bc45af 51179 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
51180 (grub_hfs_iterate_dir): Make the function static. Add prototypes
51181 for `node_found' and `it_dir'.
51182 (grub_hfs_dir): Add prototype for `dir_hook'.
51183
51184 * fs/minix.c (grub_minix_get_file_block): Add prototype for
51185 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
51186 and `indir32' to silence a gcc warning.
51187
51188 * include/grub/fs.h (grub_hfs_init): New prototype.
51189 (grub_hfs_fini): Likewise.
f19dbdb7 51190
51191
97543f08 511922004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51193
51194 Each disk device has its own id now. This is useful to make use
51195 of multiple disk devices.
f19dbdb7 51196
97543f08 51197 * include/grub/disk.h (grub_disk_dev_id): New enum.
51198 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
51199 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
51200
51201 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
51202 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51203
51204 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
51205 GRUB_DISK_DEVICE_OFDISK_ID as an id.
51206
51207 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
51208 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51209
51210 * include/grub/disk.h (struct grub_disk_dev): Added a new member
51211 "id" which is used by the cache manager.
51212
51213 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
51214 of just "GRUB".
51215
64372eb4 512162004-08-18 Marco Gerards <metgerards@student.han.nl>
51217
51218 * fs/hfs.c: New file.
51219 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
51220 (grub_emu_SOURCES): Likewise.
51221 (pkgdata_MODULES): Add hfs.mod.
51222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
51223 (grubof_SOURCES): Likewise.
51224 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
51225
51226 * include/grub/misc.h (grub_strncasecmp): Add prototype.
51227 * kern/misc.c (grub_strncasecmp): Add function.
51228
cc61b58f 512292004-08-14 Marco Gerards <metgerards@student.han.nl>
51230
51231 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
51232 with parentheses.
51233
51234 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
51235 (grub_ext2_dir): In case the directory entry type is unknown, read
51236 it from the inode.
51237
0ef123f6 512382004-08-02 Peter Bruin <pjbruin@dds.nl>
51239
51240 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
51241 grub_load_linux instead of grub_rescue_cmd_linux as second
51242 argument of grub_rescue_register_command.
51243
51244 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
51245
a447c5df 512462004-07-27 Marco Gerards <metgerards@student.han.nl>
51247
51248 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
51249 function.
51250 * commands/boot.c: Remove the check for `GRUB_UTIL'.
51251 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
51252 `loader/powerpc/ieee1275/linux.c',
51253 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
51254 * include/grub/powerpc/ieee1275/ieee1275.h
51255 (grub_ieee1275_release): New prototype.
51256 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
51257 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
51258 normal, boot, linux and linux_normal.
51259 * loader/powerpc/ieee1275/linux.c: New file.
51260 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
51261
5a9e3546 512622004-07-12 Marco Gerards <metgerards@student.han.nl>
51263
51264 * normal/arg.c (grub_arg_parse): Correct error handling after
51265 reallocating the argumentlist (check if `argl' is not null instead
51266 of checking if `args' is not null).
51267 * kern/mm.c (grub_realloc): Return the same pointer when using the
51268 same region, instead of returning the header address.
51269
e15199cb 512702004-07-11 Marco Gerards <metgerards@student.han.nl>
51271
51272 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
51273 one block instead of two when looking for the initial partition.
51274 (grub_partition_probe): Initialize the local variable `p' with 0.
51275 Use base 10 for the grub_strtoul call.
51276 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
51277 need for one local variable.
51278 (grub_strtoul): Don't add the new value to `num', instead of that
51279 just assign it.
51280
020616c2 512812004-07-11 Marco Gerards <metgerards@student.han.nl>
51282
51283 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
51284 (pxeboot_img_SOURCES): New variable.
51285 (pxeboot_img_ASFLAGS): Likewise.
51286 (pxeboot_img_LDFLAGS): Likewise.
51287 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
51288 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
51289 <lode_leroy@hotmail.com>.
51290
6c51eb64 512912004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51292
51293 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
51294 there was no input.
51295
cfb12aff 512962004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51297
51298 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
51299 the history buffer logic.
51300
6eabba74 513012004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51302
51303 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
51304 (FILETYPE_INO_SYMLINK): New macros.
51305 (grub_ext2_find_file): Check if the node is a directory using the
51306 inode stat information instead of using the filetype in the
51307 dirent. Exclude the first character of an absolute symlink.
51308 (grub_ext2_dir): Mask out the filetype part of the mode member of
51309 the inode.
51310
66e19ef8 513112004-05-24 Marco Gerards <metgerards@student.han.nl>
51312
51313 Add support for UFS version 1 and 2. Add support for the minix
51314 filesystem version 1 and 2, both the variants with 14 and 30 long
51315 filenames.
f19dbdb7 51316
66e19ef8 51317 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
51318 fs/minix.c.
51319 (grub_emu_SOURCES): Likewise.
51320 (pkgdata_MODULES): Add ufs.mod and minix.mod.
51321 (ufs_mod_SOURCES): New variable.
51322 (ufs_mod_CFLAGS): Likewise.
51323 (minix_mod_SOURCES): Likewise.
51324 (minix_mod_CFLAGS): Likewise.
51325 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
51326 fs/minix.c.
51327 (grubof_SOURCES): Likewise.
51328 * fs/ufs.c: New file.
51329 * fs/minix.c: New file.
51330 * include/grub/fs.h (grub_ufs_init): New prototype.
51331 (grub_ufs_fini): Likewise.
51332 (grub_minix_init): Likewise.
51333 (grub_minix_fini): Likewise.
51334 * util/grub-emu.c (main): Initialize and deinitialize UFS and
51335 minix fs.
51336
cc2e748a 513372004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
51338
51339 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
51340 commands/ls.c, commands/terminal.c, commands/boot.c,
51341 commands/cmp.c and commands/cat.c.
51342 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
51343
51344 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
51345 "env.h"
51346
4b13b216 513472004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51348
51349 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
51350 and grub_, respectively. Because the conversion is trivial and
51351 mechanical, I omit the details here. Please refer to the CVS
51352 if you need more information.
51353
6a142551 513542004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51355
51356 * include/pupa: Renamed to ...
51357 * include/grub: ... this.
51358 * util/i386/pc/pupa-mkimage.c: Renamed to ...
51359 * util/i386/pc/grub-mkimage.c: ... this.
51360 * util/i386/pc/pupa-setup.c: Renamed to ...
51361 * util/i386/pc/grub-setup.c: ... this.
51362 * util/pupa-emu.c: Renamed to ...
51363 * util/grub-emu.c: ... this.
51364
e56cdf21 513652004-03-29 Marco Gerards <metgerards@student.han.nl>
51366
51367 Add support for the newworld apple macintosh (PPC). This has been
51368 tested on the powerbook 2000 only. It only adds support for
51369 generic ieee1275 functions, console and disk support. This should
51370 be easy to port to other architectures with support for Open
51371 Firmware.
f19dbdb7 51372
e56cdf21 51373 * configure.ac: Accept the powerpc as host_cpu. In the case of
51374 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
51375 specific tests are only executed while building for the i386.
51376 Inverse test for crosscompile.
51377 * genmk.rb (Utility): Allow assembler files.
51378 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
51379 * conf/powerpc-ieee1275.rmk: New file.
51380 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
51381 * disk/powerpc/ieee1275/partition.c: Likewise.
51382 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
51383 * include/pupa/powerpc/ieee1275/console.h: Likewise.
51384 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
51385 * include/pupa/powerpc/ieee1275/time.h: Likewise.
51386 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
51387 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
51388 * include/pupa/powerpc/ieee1275/loader.h
51389 * include/pupa/powerpc/setjmp.h: Likewise.
51390 * include/pupa/powerpc/types.h: Likewise.
51391 * kern/powerpc/ieee1275/init.c: Likewise.
51392 * kern/powerpc/ieee1275/openfw.c: Likewise.
51393 * term/powerpc/ieee1275/ofconsole.c: Likewise.
51394
51395 These files were written by Johan Rydberg
51396 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 51397
e56cdf21 51398 * boot/powerpc/ieee1275/cmain.c: New file.
51399 * boot/powerpc/ieee1275/crt0.S: Likewise.
51400 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
51401 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
51402
8c8cc205 514032004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
51404
51405 * Makefile.in: Update copyright.
51406 * genmodsrc.sh: Likewise.
51407 * gensymlist.sh: Likewise.
51408 * term/i386/pc/vga.c: Indent correctly.
51409
51410 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
51411 bugreporting address.
51412 * util/i386/pc/pupa-setup.c (usage): Likewise,
51413 (main): Call pupa_ext2_init and pupa_ext2_fini.
51414
f19dbdb7 51415 * fs/fat.c (log2): Renamed to ...
8c8cc205 51416 (fat_log2): ... this.
51417 All callers changed.
51418 * kern/misc.c (memcpy): Alias to pupa_memmove.
51419 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
51420 lvalue cast.
51421 * util/console.c (pupa_ncurses_fini): Return 0.
51422
51423 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
51424 Move fail label here.
51425 [__GNU__]: Don't warn when using stat.
51426 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
51427 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
51428 long int. Use strtol instead of strtoul.
f19dbdb7 51429
db1771cf 514302004-03-14 Marco Gerards <metgerards@student.han.nl>
51431
51432 * commands/boot.c: New file.
51433 * commands/cat.c: Likewise.
51434 * commands/cmp.c: Likewise.
51435 * commands/ls.c: Likewise.
51436 * commands/terminal.c: Likewise.
51437 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
51438 (pupa_register_command): Changed interface to match the new
51439 argument parser.
51440 (pupa_command_execute): Changed (almost rewritten) so it uses
51441 pupa_split_command. Added support for setting variables using the
51442 syntax `foo=bar'.
51443 (rescue_command): Changed to work with the new argument parser.
51444 (terminal_command): Moved from here to commands/terminal.c.
51445 (set_command): New function.
51446 (unset_command): New function.
51447 (insmod_command): New function.
51448 (rmmod_command): New function.
51449 (lsmod_command): New function.
51450 (pupa_command_init): Don't initialize the command terminal
51451 anymore. Initialize the commands set, unset, insmod, rmmod and
51452 lsmod.
51453 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
51454 (kernel_img_HEADERS): Add arg.h and env.h.
51455 (pupa_mkimage_LDFLAGS): Add kern/env.c.
51456 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
51457 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
51458 normal/arg.c.
51459 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
51460 terminal.mod.
51461 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
51462 (boot_mod_SOURCES): New variable.
51463 (terminal_mod_SOURCES): Likewise.
51464 (ls_mod_SOURCES): Likewise.
51465 (cmp_mod_SOURCES): Likewise.
51466 (cat_mod_SOURCES): Likewise.
51467
51468 * normal/arg.c: New file.
51469 * kern/env.c: Likewise.
51470 * include/pupa/arg.h: Likewise.
51471 * include/pupa/env.h: Likewise.
51472 * font/manager.c (font_command): Changed to match argument parsing
51473 interface changes.
51474 (PUPA_MOD_INIT): Likewise.
51475 * hello/hello.c (pupa_cmd_hello): Likewise.
51476 (PUPA_MOD_INIT): Likewise.
51477 * include/pupa/disk.h: Include <pupa/device.h>.
51478 (pupa_print_partinfo): New prototype.
51479 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
51480 (pupa_dl_get_prefix): Likewise.
51481 * include/pupa/misc.h: Include <pupa/err.h>.
51482 (pupa_isgraph): New prototype.
51483 (pupa_isdigit): Likewise.
51484 (pupa_split_cmdline): Likewise.
51485 * include/pupa/normal.h: Include <pupa/arg.h>.
51486 (pupa_command): Changed the prototype of the member `func' to
51487 match the argument parsing interface. Added member `options'.
51488 (pupa_register_command): Updated to match function.
51489 (pupa_arg_parse): New prototype.
51490 (pupa_hello_init) [PUPA_UTIL]: New prototype.
51491 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
51492 (pupa_ls_init) [PUPA_UTIL]: Likewise.
51493 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
51494 (pupa_cat_init) [PUPA_UTIL]: Likewise.
51495 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
51496 (pupa_boot_init) [PUPA_UTIL]: Likewise.
51497 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
51498 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
51499 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
51500 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
51501 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
51502 * kern/disk.c: Include <pupa/file.h>.
51503 (pupa_print_partinfo): New function.
51504 * kern/dl.c: Include <pupa/env.h>.
51505 (pupa_dl_dir): Variable removed.
51506 (pupa_dl_load): Use the environment variable `prefix' instead of
51507 the variable pupa_dl_dir.
51508 (pupa_dl_set_prefix): Function removed.
51509 (pupa_dl_get_prefix): Likewise.
51510 * kern/i386/pc/init.c: Include <pupa/env.h>.
51511 (pupa_machine_init): Use the environment variable `prefix' instead of
51512 using pupa_dl_set_prefix to set the prefix.
51513 * kern/main.c: Include <pupa/env.h>.
51514 (pupa_set_root_dev): Use the environment variable `prefix' instead of
51515 using pupa_dl_get_prefix to get the prefix.
51516 * kern/misc.c: Include <pupa/env.h>.
51517 (pupa_isdigit): New function.
51518 (pupa_isgraph): Likewise.
51519 (pupa_ftoa): Likewise.
51520 (pupa_vsprintf): Added support for printing values of the type
51521 `double'. Make it possible to format variable output when using
51522 formatting like `%1.2%f'.
51523 (pupa_split_cmdline): New function.
51524 * kern/rescue.c: Include <pupa/env.h>.
51525 (next_word): Removed function.
51526 (pupa_rescue_cmd_prefix): Likewise.
51527 (pupa_rescue_cmd_set): New function.
51528 (pupa_rescue_cmd_unset): New function.
51529 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
51530 split the command line instead of splitting it here. Added
51531 support for setting variables using the syntax `foo=bar'. Don't
51532 initialize the prefix command anymore. Initialized the set and
51533 unset commands.
51534 * normal/cmdline.c: Include <pupa/env.h>.
51535 (pupa_tab_complete): Added prototypes for print_simple_completion,
51536 print_partition_completion, add_completion, iterate_commands,
51537 iterate_dev, iterate_part and iterate_dir. Moved code to print
51538 partition information from here to kern/disk.c.
fe6b695a 51539 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 51540 * normal/main.c: Include <pupa/env.h>.
51541 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
51542 instead of using pupa_dl_get_prefix to get the prefix.
51543 * term/i386/pc/vga.c: Include <pupa/arg.h>.
51544 (check_vga_mem): Cast pointers to `void *' to silence a gcc
51545 warning.
51546 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
51547 (pupa_vga_setcolor): Declare unused variables with `__attribute__
51548 ((unused))' to silence a gcc warning.
51549 (pupa_vga_setcolor): Likewise.
51550 (debug_command): Changed to match argument parsing
51551 interface changes.
51552 * util/pupa-emu.c: Include <pupa/env.h>.
51553 (options): Added 0's for unused fields to silence a gcc warning.
51554 (argp): Likewise.
51555 (main): Use the environment variable `prefix' instead of using
51556 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
51557 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
51558 and terminal.
51559
51560 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
51561 * util/misc.c: Include <malloc.h>.
51562 (pupa_malloc): Rewritten so errors are correctly reported.
51563 (pupa_realloc): Likewise.
51564 (pupa_memalign): Likewise.
51565 (pupa_mm_init_region): Declare unused variables with
51566 `__attribute__ ((unused))' to silence a gcc warning.
51567 * normal/i386/setjmp.S: Remove tab at the end of the file to
51568 silence a gcc warning.
51569 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
51570 variables with `__attribute__ ((unused))' to silence a gcc
51571 warning.
51572 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51573 local variable i unsigned to silence a gcc warning.
51574
51575 * kern/term.c: Include <pupa/misc.h>.
51576 (pupa_more_lines): New variable.
51577 (pupa_more): Likewise.
51578 (pupa_putcode): When the pager is active pause at the end of every
51579 screen.
51580 (pupa_set_more): New function.
51581 * include/pupa/term.h (pupa_set_more): New prototype.
51582
51583
3b1139cb 515842004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51585
51586 Now this project is GRUB 2 rather than PUPA. The location of
51587 the CVS repository was moved to GRUB's.
f19dbdb7 51588
3b1139cb 51589 * configure.ac: Use bug-grub as the reporting address.
51590 Use GRUB instead of PUPA.
51591 Change the version number to 1.90.
51592
8367695c 515932004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51594
51595 * genkernsyms.sh: Updated copyright information.
51596 * genmk.rb: Likewise.
51597 * genmodsrc.sh: Likewise.
51598 * gensymlist.sh: Likewise.
51599 * boot/i386/pc/boot.S: Likewise.
51600 * boot/i386/pc/diskboot.S: Likewise.
51601 * disk/i386/pc/biosdisk.c: Likewise.
51602 * disk/i386/pc/partition.c: Likewise.
51603 * font/manager.c: Likewise.
51604 * fs/ext2.c: Likewise.
51605 * fs/fat.c: Likewise.
51606 * include/pupa/boot.h: Likewise.
51607 * include/pupa/device.h: Likewise.
51608 * include/pupa/disk.h: Likewise.
51609 * include/pupa/dl.h: Likewise.
51610 * include/pupa/elf.h: Likewise.
51611 * include/pupa/err.h: Likewise.
51612 * include/pupa/file.h: Likewise.
51613 * include/pupa/font.h: Likewise.
51614 * include/pupa/fs.h: Likewise.
51615 * include/pupa/kernel.h: Likewise.
51616 * include/pupa/loader.h: Likewise.
51617 * include/pupa/misc.h: Likewise.
51618 * include/pupa/mm.h: Likewise.
51619 * include/pupa/net.h: Likewise.
51620 * include/pupa/normal.h: Likewise.
51621 * include/pupa/rescue.h: Likewise.
51622 * include/pupa/setjmp.h: Likewise.
51623 * include/pupa/symbol.h: Likewise.
51624 * include/pupa/term.h: Likewise.
51625 * include/pupa/types.h: Likewise.
51626 * include/pupa/i386/setjmp.h: Likewise.
51627 * include/pupa/i386/types.h: Likewise.
51628 * include/pupa/i386/pc/biosdisk.h: Likewise.
51629 * include/pupa/i386/pc/boot.h: Likewise.
51630 * include/pupa/i386/pc/console.h: Likewise.
51631 * include/pupa/i386/pc/init.h: Likewise.
51632 * include/pupa/i386/pc/kernel.h: Likewise.
51633 * include/pupa/i386/pc/linux.h: Likewise.
51634 * include/pupa/i386/pc/loader.h: Likewise.
51635 * include/pupa/i386/pc/memory.h: Likewise.
51636 * include/pupa/i386/pc/multiboot.h: Likewise.
51637 * include/pupa/i386/pc/partition.h: Likewise.
51638 * include/pupa/i386/pc/time.h: Likewise.
51639 * include/pupa/i386/pc/vga.h: Likewise.
51640 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51641 * include/pupa/util/getroot.h: Likewise.
51642 * include/pupa/util/misc.h: Likewise.
51643 * include/pupa/util/resolve.h: Likewise.
51644 * kern/device.c: Likewise.
51645 * kern/disk.c: Likewise.
51646 * kern/dl.c: Likewise.
51647 * kern/err.c: Likewise.
51648 * kern/file.c: Likewise.
51649 * kern/fs.c: Likewise.
51650 * kern/loader.c: Likewise.
51651 * kern/main.c: Likewise.
51652 * kern/misc.c: Likewise.
51653 * kern/mm.c: Likewise.
51654 * kern/rescue.c: Likewise.
51655 * kern/term.c: Likewise.
51656 * kern/i386/dl.c: Likewise.
51657 * kern/i386/pc/init.c: Likewise.
51658 * kern/i386/pc/lzo1x.S: Likewise.
51659 * kern/i386/pc/startup.S: Likewise.
51660 * loader/i386/pc/chainloader.c: Likewise.
51661 * loader/i386/pc/linux.c: Likewise.
51662 * loader/i386/pc/multiboot.c: Likewise.
51663 * normal/cmdline.c: Likewise.
51664 * normal/command.c: Likewise.
51665 * normal/main.c: Likewise.
51666 * normal/menu.c: Likewise.
51667 * normal/i386/setjmp.S: Likewise.
51668 * term/i386/pc/console.c: Likewise.
51669 * term/i386/pc/vga.c: Likewise.
51670 * util/console.c: Likewise.
51671 * util/genmoddep.c: Likewise.
51672 * util/misc.c: Likewise.
51673 * util/pupa-emu.c: Likewise.
51674 * util/resolve.c: Likewise.
51675 * util/unifont2pff.rb: Likewise.
51676 * util/i386/pc/biosdisk.c: Likewise.
51677 * util/i386/pc/getroot.c: Likewise.
51678 * util/i386/pc/pupa-mkimage.c: Likewise.
51679 * util/i386/pc/pupa-setup.c: Likewise.
51680
e6eced71 516812004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51682
51683 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51684 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51685 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51686 reading and reset it after reading.
51687 (pupa_ext2_close): Return PUPA_ERR_NONE.
51688
51689 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51690 Correct value.
51691 (struct linux_kernel_header): Add kernel_version and
51692 initrd_addr_max.
51693 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51694 pupa_file_read succeeds.
51695 (pupa_rescue_cmd_initrd): Implement.
51696
5aded270 516972003-12-03 Marco Gerards <metgerards@student.han.nl>
51698
51699 * fs/ext2.c (pupa_ext2_label): New function.
51700 (pupa_ext2_fs): Added label.
51701 * fs/fat.c (pupa_fat_label): New function.
51702 (pupa_fat_fs): Added label.
51703 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51704
51705 * kern/misc.c (pupa_strndup): New function.
51706 * include/pupa/misc.h (pupa_strndup): New prototype.
51707
51708 * include/pupa/normal.h: Include <pupa/err.h>.
51709 (pupa_set_history): New prototype.
51710 (pupa_iterate_commands): New prototype.
51711 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51712 <pupa/disk.h>, <pupa/file.h>.
51713 (hist_size): New variable.
51714 (hist_lines): Likewise.
51715 (hist_end): Likewise.
51716 (hist_used): Likewise.
51717 (pupa_set_history): New function.
51718 (pupa_history_get): Likewise.
51719 (pupa_history_add): Likewise.
51720 (pupa_history_replace): Likewise.
51721 (pupa_tab_complete): Likewise.
51722 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51723 completion shows partitionnames while completing partitions, this
51724 feature was suggested by Jeff Bailey.
51725 * normal/command.c (pupa_iterate_commands): New function.
51726 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51727 (pupa_normal_init): Initialize history buffer.
51728 (PUPA_MOD_INIT): Likewise.
51729 (pupa_normal_fini): Free the history buffer.
51730 (PUPA_MOD_FINI): Likewise.
51731
51732 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51733 key.
51734
51735 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51736 * configure.ac [i386]: Check for regparam bug.
51737 (NESTED_FUNC_ATTR) [! i386]: Defined.
51738
1f7315a3 517392003-11-17 Marco Gerards <metgerards@student.han.nl>
51740
51741 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51742 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51743 (pupa_emu_SOURCES): New variable.
51744 (pupa_emu_LDFLAGS): Likewise.
51745 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51746 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51747 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51748 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51749 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51750 (pupa_jmp_buf): New typedef.
51751 (pupa_setjmp) [PUPA_UTIL]: New macro.
51752 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51753 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51754 (pupa_refresh): New prototype.
51755 * include/pupa/util/getroot.h: New file.
51756 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51757 it.
51758 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51759 (pupa_rescue_cmd_cat): Likewise.
51760 (pupa_rescue_cmd_ls): Likewise.
51761 (pupa_rescue_cmd_testload): Likewise.
51762 (pupa_rescue_cmd_lsmod): Likewise.
51763 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51764 * normal/menu.c (run_menu): Likewise.
51765 * kern/term.c (pupa_cls): Likewise.
51766 (pupa_refresh): New function.
51767 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51768 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51769 * util/console.c: New file.
f19dbdb7 51770
1f7315a3 51771 * util/i386/pc/getroot.c: New file.
51772 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51773 (pupa_putchar): New function.
51774 (pupa_refresh): Likewise.
51775 (xgetcwd): Function moved to ...
51776 (strip_extra_slashes): Likewise.
51777 (get_prefix): Likewise.
f19dbdb7 51778 * util/i386/pc/getroot.c: ... here.
1f7315a3 51779 (find_root_device): Function moved and renamed to...
51780 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51781 Changed all callers.
51782 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51783 and renamed to...
51784 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
51785 Changed all callers.
51786 * util/misc.c (pupa_memalign): New function.
51787 (pupa_mm_init_region): Likewise.
51788 (pupa_register_exported_symbols): Likewise.
51789 (pupa_putchar): Function removed.
51790 * util/pupa-emu.c: New file.
51791
9a5c1ade 517922003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
51793
51794 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
51795 (_multiboot_mod_SOURCES): New variable.
51796 (_multiboot_mod_CFLAGS): Likewise.
51797 * loader/i386/pc/multiboot.c: New file.
51798 * include/pupa/i386/pc/multiboot.h: Likewise.
51799 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
51800 (pupa_multiboot_real_boot): New function.
51801 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
51802 (pupa_multiboot_real_boot): New prototype.
51803 (pupa_rescue_cmd_multiboot): Likewise
51804 (pupa_rescue_cmd_module): Likewise.
51805
51806 * kern/loader.c (pupa_loader_set): Continue when
51807 pupa_loader_unload_func() fails.
51808 (pupa_loader_unset): New function.
51809 * include/pupa/loader.h (pupa_loader_unset): New prototype.
51810
51811 * kern/misc.c (pupa_stpcpy): New function.
51812 * include/pupa/misc.h (pupa_stpcpy): New prototype.
51813
8e72a9c0 518142003-11-12 Marco Gerards <metgerards@student.han.nl>
51815
51816 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
51817 for available extensions.
51818
51819 * include/pupa/i386/pc/time.h: New file.
51820 * kern/disk.c: Include <pupa/machine/time.h>.
51821 (PUPA_CACHE_TIMEOUT): New macro.
51822 (pupa_last_time): New variable.
51823 (pupa_disk_open): Flush the cache when there was a timeout.
51824 (pupa_disk_close): Reset the timer.
51825 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
51826 pupa_currticks.
51827 * util/misc.c: Include <sys/times.h>
51828 (pupa_get_rtc): New function.
51829
c4adbd32 518302003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
51831
51832 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
51833 as blocks.
51834 (pupa_ext2_get_file_block): Use blocks member.
51835
51836 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
51837 first block. Return -1 instead of pupa_errno on error.
51838
bfd30f06 518392003-10-27 Marco Gerards <metgerards@student.han.nl>
51840
51841 * README: In the pupa-mkimage example use _chain instead of chain
51842 and ext2 instead of fat.
51843 * TODO: Replace ext2fs with jfs as an example. Add an item for
51844 adding journal playback for ext2fs.
51845 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
51846 (pkgdata_MODULES): Added ext2.mod.
51847 (ext2_mod_SOURCES): New variable.
51848 (ext2_mod_CFLAGS): Likewise.
51849 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51850 * include/pupa/misc.h (pupa_strncpy): New prototype.
51851 (pupa_strcat): Likewise.
51852 (pupa_strncmp): Likewise.
51853 * kern/misc.c (pupa_strcat): Enable function.
51854 (pupa_strncpy): New function.
51855 (pupa_strncmp): Likewise.
51856 * fs/ext2.c: New file.
f19dbdb7 51857
bfd30f06 51858 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51859 when the read failed before retrying.
51860 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51861 (_FILE_OFFSET_BITS): Likewise.
51862 * configure.ac: Added AC_SYS_LARGEFILE.
51863
98d15063 518642003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51865
51866 * genmk.rb (PModule#rule): Make sure to get only symbol names
51867 from the output of nm.
59cad637 51868 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 51869
18d9c7cd 518702003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51871
51872 I forgot to check in these changes for a long time. This adds
51873 incomplete support for VGA console, and this is still very
51874 buggy. Also, a lot of consideration is required for I18N,
51875 UNICODE, and VGA font issues. Therefore, assume that this is
51876 such that "better than nothing".
f19dbdb7 51877
18d9c7cd 51878 * font/manager.c: New file.
51879 * include/pupa/font.h: Likewise.
51880 * include/pupa/i386/pc/vga.h: Likewise.
51881 * term/i386/pc/vga.c: Likewise.
51882 * util/unifont2pff.rb: Likewise.
51883
51884 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51885 (pkgdata_MODULES): Added vga.mod and font.mod.
51886 (vga_mod_SOURCES): New variables.
51887 (vga_mod_CFLAGS): Likewise.
51888 (font_mod_SOURCES): Likewise.
51889 (font_mod_CFLAGS): Likewise.
51890
51891 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51892
51893 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 51894 (struct pupa_term): Added init and fini.
18d9c7cd 51895 Changed the argument of putchar to pupa_uint32_t.
51896
51897 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51898 (pupa_console_real_putchar): New prototype.
51899 (pupa_console_putchar): Removed.
51900 (pupa_console_checkkey): Exported.
51901 (pupa_console_getkey): Likewise.
51902
51903 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51904 characters.
51905
51906 * kern/term.c (pupa_term_set_current): Rewritten.
51907 (pupa_putchar): Likewise.
51908 (pupa_putcode): New function.
51909
51910 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51911 (pupa_console_real_putchar): ... this.
51912 (pupa_vga_set_mode): New function.
51913 (pupa_vga_get_font): Likewise.
51914
51915 * normal/command.c: Include pupa/term.h.
51916 (terminal_command): New function.
51917 (pupa_command_init): Register the command "terminal".
51918
51919 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51920 (DISP_UP): Likewise.
51921 (DISP_RIGHT): Likewise.
51922 (DISP_DOWN): Likewise.
51923 (DISP_HLINE): Likewise.
51924 (DISP_VLINE): Likewise.
51925 (DISP_UL): Likewise.
51926 (DISP_UR): Likewise.
51927 (DISP_LL): Likewise.
51928 (DISP_LR): Likewise.
51929
51930 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 51931
977329f5 519322003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51933
51934 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51935 FIX. Reverse the path_list.
51936
51937 * include/pupa/normal.h: Export pupa_register_command and
51938 pupa_unregister_command.
51939
51940 * hello/hello.c (pupa_cmd_hello): New module.
51941 * conf/i386-pc.rmk: Added hello.mod.
51942
1f5ab428 519432003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51944
51945 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 51946
1f5ab428 51947 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51948 (compress_kernel): New variable.
51949 (generate_image): Heavily modified to support compressing a
51950 large part of the core image.
51951
51952 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51953 leak.
51954 (pupa_util_load_image): New function.
51955
51956 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51957 (pupa_compressed_size): New variable.
51958 (codestart): Enable Gate A20 here.
51959 Decompress the compressed part of the core image.
51960 Rearrange the code to put functions and variables which are
51961 required for initialization in the non-compressed part.
51962 Include lzo1x.S.
51963
51964 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51965 here.
51966
51967 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51968
f19dbdb7 51969 * include/pupa/i386/pc/kernel.h
1f5ab428 51970 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51971 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51972 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51973 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51974 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51975
51976 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51977
51978 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51979 (Utility#rule): Likewise.
51980
51981 * configure.ac: Check if LZO is available.
51982
ce5bf700 519832003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51984
51985 * include/pupa/normal.h: New file.
51986 * include/pupa/setjmp.h: Likewise.
51987 * include/pupa/i386/setjmp.h: Likewise.
51988 * normal/cmdline.c: Likewise.
51989 * normal/command.c: Likewise.
51990 * normal/main.c: Likewise.
51991 * normal/menu.c: Likewise.
51992 * normal/i386/setjmp.S: Likewise.
f19dbdb7 51993
ce5bf700 51994 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51995 (pupa_rescue_cmd_initrd): Likewise.
51996
51997 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51998 Likewise.
51999
52000 * kern/i386/pc/startup.S (translation_table): New variable.
52001 (translate_keycode): New function.
52002 (pupa_console_getkey): Call translate_keycode.
52003
52004 * kern/rescue.c (attempt_normal_mode): New function.
52005 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
52006 it failed, print a message.
52007
52008 * kern/mm.c (pupa_real_malloc): Print more information when a
52009 free magic is broken.
52010 (pupa_free): If the first free header is not free actually, set
52011 it to P.
52012
52013 * kern/main.c (pupa_load_normal_mode): Just load the module
52014 "normal".
52015 (pupa_main): Don't print the message
52016 "Entering into rescue mode..." here.
52017
52018 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
52019 Declared.
52020 (pupa_rescue_cmd_initrd): Likewise.
52021 (pupa_rescue_cmd_initrd): Likewise.
52022
52023 * include/pupa/symbol.h (FUNCTION): Specify the type.
52024 (VARIABLE): Likewise.
52025
52026 * include/pupa/err.h (pupa_err_t): Added
52027 PUPA_ERR_UNKNOWN_COMMAND.
52028
52029 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
52030 (pupa_dl_get_prefix): Likewise.
52031
52032 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
52033 Added _chain.mod and _linux.mod instead of chain.mod and
52034 linux.mod.
52035 (chain_mod_SOURCES): Renamed to ...
52036 (_chain_mod_SOURCES): ... this.
52037 (chain_mod_CFLAGS): Renamed to ...
52038 (_chain_mod_CFLAGS): ... this.
52039 (linux_mod_SOURCES): Renamed to ...
52040 (_linux_mod_SOURCES): ... this.
52041 (linux_mod_CFLAGS): Renamed to ...
52042 (_linux_mod_CFLAGS): ... this.
52043 (normal_mod_SOURCES): New variable.
52044 (normal_mod_CFLAGS): Likewise.
52045 (normal_mod_ASFLAGS): Likewise.
52046
520472003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
52048
52049 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
52050 possible.
52051
fe6b695a 52052 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 52053 recursively.
52054 (pupa_dl_unref): Unrefer depending modules recursively.
52055 Don't call pupa_dl_unload implicitly, because PUPA can crash if
52056 a module is unloaded before one depending on that module is
52057 unloaded.
52058 (pupa_dl_unload): Unload depending modules explicitly,
52059 if possible.
52060
c04da074 520612003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
52062
52063 * include/pupa/i386/pc/linux.h: New file.
52064 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 52065
c04da074 52066 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
52067 Removed.
52068 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
52069 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
52070 of PUPA_CHAINLOADER_BOOT_SECTOR.
52071
52072 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
52073 (pupa_linux_prot_size): New variable.
52074 (pupa_linux_tmp_addr): Likewise.
52075 (pupa_linux_real_addr): Likewise.
52076 (pupa_linux_boot_zimage): New function.
52077 (pupa_linux_boot_bzimage): Likewise.
52078
52079 * kern/i386/pc/init.c (struct mem_region): New structure.
52080 (MAX_REGIONS): New macro.
52081 (mem_regions): New variable.
52082 (num_regions): Likewise.
52083 (pupa_os_area_addr): Likewise.
52084 (pupa_os_area_size): Likewise.
52085 (pupa_lower_mem): Likewise.
52086 (pupa_upper_mem): Likewise.
52087 (add_mem_region): New function.
52088 (compact_mem_regions): Likewise.
52089 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
52090 the size of the conventional memory and that of so-called upper
52091 memory (before the first memory hole).
52092 Instead of adding each found region to free memory, use
52093 add_mem_region and add them after removing overlaps.
52094 Also, add only 1/4 of the upper memory to free memory. The rest
52095 is used for loading OS images. Maybe this is ad hoc, but this
52096 makes it much easier to relocate OS images when booting.
52097
52098 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
52099 (pupa_enter_rescue_mode): Don't register initrd and module.
52100
52101 * kern/mm.c: Include pupa/dl.h.
52102
52103 * kern/main.c: Include pupa/file.h and pupa/device.h.
52104
52105 * kern/loader.c (pupa_loader_load_module_func): Removed.
52106 (pupa_loader_load_module): Likewise.
52107
52108 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
52109 ``.o''.
52110
52111 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
52112 (pupa_linux_tmp_addr): Likewise.
52113 (pupa_linux_real_addr): Likewise.
52114 (pupa_linux_boot_zimage): Likewise.
52115 (pupa_linux_boot_bzimage): Likewise.
52116
52117 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
52118 (pupa_upper_mem): Likewise.
52119 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
52120 module is too dangerous.
52121
52122 * include/pupa/loader.h (pupa_os_area_addr): Declared.
52123 (pupa_os_area_size): Likewise.
52124 (pupa_loader_set): Remove the first argument. Loader doesn't
52125 manage modules or initrd any longer.
52126 (pupa_loader_load_module): Removed.
52127
52128 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
52129 (linux_mod_SOURCES): New variable.
52130 (linux_mod_CFLAGS): Likewise.
52131
a13f9237 521322003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
52133
52134 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
52135 the length of a blocklist correctly.
52136
52137 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
52138 Use ioctl only if the OS file is a block device.
52139 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
52140 not very useful for normal files.
52141
52142 * kern/main.c (pupa_set_root_dev): New function.
52143 (pupa_load_normal_mode): Likewise.
52144 (pupa_main): Call those above.
52145
52146 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
52147 pupa_uint16_t.
52148
52149 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
52150
a5ffe966 521512003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
52152
52153 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
52154 (setup): Configure the installed partition information and the
52155 dl prefix.
52156
52157 * loader/i386/pc/chainloader.c (my_mod): New variable.
52158 (pupa_chainloader_unload): New function.
52159 (pupa_rescue_cmd_chainloader): Refer itself.
52160 (PUPA_MOD_INIT): Save its own module in MY_MOD.
52161
52162 * kern/i386/pc/startup.S (install_partition): Removed.
52163 (version_string): Likewise.
52164 (config_file): Likewise.
52165 (pupa_install_dos_part): New variable.
52166 (pupa_install_bsd_part): Likewise.
52167 (pupa_prefix): Likewise.
52168 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
52169
52170 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
52171 and pupa/misc.h.
52172 (make_install_device): New function.
52173 (pupa_machine_init): Set the dl prefix.
52174
52175 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
52176 (buf): Renamed to ...
52177 (linebuf): ... this.
52178 (pupa_rescue_cmd_prefix): New function.
52179 (pupa_rescue_cmd_insmod): Likewise.
52180 (pupa_rescue_cmd_rmmod): Likewise.
52181 (pupa_rescue_cmd_lsmod): Likewise.
52182 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
52183 rmmod and lsmod.
52184
52185 * kern/mm.c (pupa_memalign): If failed even after invalidating
52186 disk caches, unload unneeded modules and retry.
52187
52188 * kern/misc.c (pupa_memmove): New function.
52189 (pupa_memcpy): Removed.
52190 (pupa_strcpy): New function.
52191 (pupa_itoa): Made static.
52192
52193 * kern/dl.c (pupa_dl_iterate): New function.
52194 (pupa_dl_ref): Likewise.
52195 (pupa_dl_unref): Likewise.
52196 (pupa_dl_unload): Return if succeeded or not.
52197 (pupa_dl_unload_unneeded): New function.
52198 (pupa_dl_unload_all): Likewise.
52199 (pupa_dl_init): Renamed to ...
52200 (pupa_dl_set_prefix): ... this.
52201 (pupa_dl_get_prefix): New function.
52202
52203 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
52204 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
52205 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
52206 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
52207 (pupa_install_dos_part): Declared.
52208 (pupa_install_bsd_part): Likewise.
52209 (pupa_prefix): Likewise.
52210 (pupa_boot_drive): Likewise.
52211
52212 * include/pupa/types.h: Fix a typo.
52213
52214 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
52215 pupa_memmove.
52216 (pupa_memmove): Declared.
52217 (pupa_strcpy): Likewise.
52218
52219 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
52220 pupa_mod_init takes one argument, its own module.
52221 (pupa_dl_unload_unneeded): Declared.
52222 (pupa_dl_unload_all): Likewise.
52223 (pupa_dl_ref): Likewise.
52224 (pupa_dl_unref): Likewise.
52225 (pupa_dl_iterate): Likewise.
52226 (pupa_dl_init): Renamed to ...
52227 (pupa_dl_set_prefix): ... this.
52228 (pupa_dl_get_prefix): Declared.
52229
52230 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 52231 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 52232 unloaded.
52233 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
52234 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
52235
52236 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
52237 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
52238
012d7999 522392003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52240
52241 * util/i386/pc/pupa-setup.c (setup): Define the internal
52242 function find_first_partition_start at the top level, because GCC
52243 3.0.x cannot compile internal functions in deeper scopes
52244 correctly.
52245 (find_root_device): Use lstat instead of stat.
52246 Don't follow symbolic links.
52247 Fix the path-constructing code.
52248
52249 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
52250 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
52251 by a BLKGETSIZE ioctl first, because block devices don't fill
52252 the member st_mode of the structure stat on Linux.
52253 [__linux__] (linux_find_partition): Use a temporary buffer
52254 REAL_DEV for the working space. Copy it to DEV before returning.
52255 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
52256 buffer cache consistent.
52257 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
52258 strncmp. The previous value was merely wrong.
52259 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
52260
52261 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
52262 FAT size is 12. The previous value was merely wrong.
52263
52264 * kern/main.c (pupa_main): Don't split the starting message from
52265 newlines.
52266
52267 * kern/term.c (pupa_putchar): Put CR after LF instead of before
52268 LF, because BIOS goes crazy about character attributes in this
52269 case.
52270
1cc73a62 522712003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52272
52273 * include/i386/pc/util/biosdisk.h: New file.
52274 * util/i386/pc/biosdisk.c: Likewise.
52275 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 52276
1cc73a62 52277 * Makefile.in (INCLUDE_DISTFILES): Added
52278 include/pupa/i386/pc/util/biosdisk.h.
52279 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
52280 directory util/i386/pc.
52281 (install-local): Added a rule for sbin_UTILITIES.
52282 (uninstall): Likewise.
52283
52284 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
52285
52286 * util/misc.c (xrealloc): New function.
52287 (pupa_malloc): Likewise.
52288 (pupa_free): Likewise.
52289 (pupa_realloc): Likewise.
52290 (pupa_stop): Likewise.
52291 (pupa_putchar): Likewise.
52292
52293 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
52294
52295 * include/pupa/util/misc.h (xrealloc): Declared.
52296
52297 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
52298 macro.
52299 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
52300 (PUPA_BOOT_MACHINE_BPB_END): ... this.
52301
52302 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
52303 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52304
52305 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
52306 way should be implemented.
52307 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52308
52309 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
52310 the size of NAME for safety.
52311 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
52312 0x88.
52313
52314 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
52315 (pupa_setup_SOURCES): Likewise.
52316
52317 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
52318
08b70fe8 523192002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52320
52321 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
52322 bunch of pushl's from pusha, because this destroys the return
52323 value.
52324
62ddcc8f 523252002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52326
52327 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
52328 This means that any missing prototypes could be fatal. Also, you
52329 must take care when writing assembly code. See the comments at
52330 the beginning of startup.S, for more details.
f19dbdb7 52331
62ddcc8f 52332 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
52333 compilation mechanism.
52334 (pupa_chainloader_real_boot): Likewise.
52335 (pupa_biosdisk_rw_int13_extensions): Likewise.
52336 (pupa_biosdisk_rw_standard): Likewise.
52337 (pupa_biosdisk_check_int13_extensions): Likewise.
52338 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
52339 (pupa_biosdisk_get_diskinfo_standard): Likewise.
52340 (pupa_get_memsize): Likewise.
52341 (pupa_get_mmap_entry): Likewise.
52342 (pupa_console_putchar): Likewise.
52343 (pupa_console_setcursor): Likewise.
52344 (pupa_getrtsecs): Use pushl instead of push.
52345
52346 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
52347 memory instead of the stack for a mmap entry, because some
52348 BIOSes may ignore the maximum size and overflow.
52349
52350 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
52351
52352 * genmk.rb (PModule#rule): Compile automatically generated
52353 sources with module-specific CFLAGS as well as other sources.
52354
9962ed99 523552002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52356
52357 * configure.ac: Check ld.
52358 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
52359 respectively, before checking endianness and sizes.
52360
52361 * Makefile.in (LD): New variable.
f19dbdb7 52362
abdfc3c5 523632002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52364
52365 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
52366
6a161fa9 523672002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52368
52369 * Changelog: New file.
52370