]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* grub-core/disk/AFSplitter.c: Remove variable length arrays.
[grub2.git] / ChangeLog
CommitLineData
c35fcdc0
VS
12013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/disk/AFSplitter.c: Remove variable length arrays.
4 * grub-core/disk/cryptodisk.c: Likewise.
5 * grub-core/disk/geli.c: Likewise.
6 * grub-core/disk/luks.c: Likewise.
7
15decd26
VS
82013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9
10 * grub-core/tests/legacy_password_test.c: New test.
11 * grub-core/commands/legacycfg.c: Remove variable length arrays.
12
9c6482b8
VS
132013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
14
15 * grub-core/lib/pbkdf2.c: Remove variable length arrays.
16
41f26e0e
VS
172013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
18
19 * grub-core/tests/pbkdf2_test.c: New test.
20
2def6616
VS
212013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
22
23 * grub-core/lib/xzembed/xz_dec_stream.c: Remove variable length arrays.
24
9e34a34e
VS
252013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
26
27 * grub-core/io/lzopio.c: Remove variable length arrays.
28
5ccaf904
VS
292013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * include/grub/crypto.h: Add maximums on hash size and cipher block
32 size.
33
44a387e0
VS
342013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
35
36 * grub-core/commands/xnu_uuid.c: Remove variable length arrays.
37
a388e255
VS
382013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * grub-core/tests/xnu_uuid_test.c: New test.
41
a1ef7718
VS
422013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
43
44 * grub-core/commands/hashsum.c: Remove unneeded memset (zalloc already
45 covers it).
46
65ddb300
VS
472013-11-12 Vladimir Serbinenko <phcoder@gmail.com>
48
49 * grub-core/commands/hashsum.c: Remove variable length arrays.
50
31747dd5
VS
512013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * grub-core/tests/gfxterm_menu.c (gfxterm_menu): Handle out-of-memory
54 condition.
55 * tests/grub_func_test.in: Increase memory allocation.
56
6a74c4df
VS
572013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/osdep/unix/getroot.c [HAVE_STRUCT_STATFS_F_FSTYPENAME
60 && HAVE_STRUCT_STATFS_F_MNTFROMNAME]: Include sys/param.h and
61 sys/mount.h.
62
394c3e0a
VS
632013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
64
65 * grub-core/osdep/apple/hostdisk.c (grub_util_get_fd_size): Rename to ..
66 (grub_util_get_fd_size_os): ...this.
67 (grub_hostdisk_flush_initial_buffer): New empty function.
68
60d31116
VS
692013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
70
71 * grub-core/gensyminfo.sh.in: Handle the case of portable output
72 without --defined-only.
73
8445b011
VS
742013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
75
76 * grub-core/lib/i386/relocator_common.S [__APPLE__ && __x86_64__]: Use
77 rip-relative addressing in prologue.
78
8506a641
VS
792013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
80
81 * include/grub/misc.h [__APPLE__]: Do not add regparm(0) on x86_64.
82 * grub-core/kern/misc.c (__bzero) [__APPLE__]: New function.
83
66acd9d6
VS
842013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
85
86 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
87 Add missing semicolon.
88
348d0535
VS
892013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
90
91 * util/grub-macho2img.c: Use plain fopen rather than grub_util_fopen.
92
0d2d30bb
VS
932013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * configure.ac: Check for lzma.h for enabling liblzma and allow
96 manual disabling.
97
631187be
VS
982013-11-11 Vladimir Serbinenko <phcoder@gmail.com>
99
100 Add missing includes of loader.h.
101
e756ec82
FZ
1022013-11-11 Fam Zheng <famcool@gmail.com>
103
104 * util/grub.d/30_os-prober.in: Add minix entry.
105
87d62d7d
VS
1062013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
107
108 * grub-core/loader/i386/coreboot/chainloader.c (load_segment): Use
109 right buffer for temporary load.
110
5460cfeb
VS
1112013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
112
113 * grub-core/loader/i386/coreboot/chainloader.c: Support tianocore.
114
89977306
VS
1152013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
116
117 * grub-core/loader/i386/coreboot/chainloader.c: Support lzma-compressed
118 payload.
119
3617c59b
VS
1202013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
121
122 * include/grub/lib/LzmaDec.h: Fix to include LzmaTypes.h and
123 not Types.h.
124 * grub-core/lib/LzmaDec.c: Fix prologue to make it compileable in GRUB
125 environment.
126 (LzmaDec_InitDicAndState): Make static.
127
881c6a10
VS
1282013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
129
130 * util/grub-mkimagexx.c (generate_elf): Fix module address on coreboot.
131
2024ade2
VS
1322013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
133
134 * grub-core/term/ieee1275/escc.c (GRUB_MOD_INIT): Fix order of channels.
135
136 Reported by: Aaro Koskinen <aaro.koskinen@iki.fi>
137
674ad4f6
VS
1382013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * docs/grub-dev.texi: Replace bzr references with git ones.
141
5b99970e
AB
1422013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
143
144 * docs/grub.texi (Simple configuration): Remove reference to
145 grub-reboot from saved default entry description - grub-default
146 does not use it anymore.
147
3c2304d5
VS
1482013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
149
150 * configure.ac: Make efiemu test cflags match the cflags efiemu is
151 compiled with.
152
80cfd940
AB
1532013-11-10 Andrey Borzenkov <arvidjaar@gmail.com>
154
155 * docs/grub.texi (Simple configuration): Document GRUB_DISABLE_SUBMENU.
156
33690255
VS
1572013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
158
159 Fix grub_machine_fini bitrot.
160
161 Reported by: Glenn Washburn.
162
c61471fc
VS
1632013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
164
165 * configure.ac: Remove leftover -fnested-funcions -Wl,-allow_execute.
166
54da019f
VS
1672013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
168
169 * grub-core/Makefile.am (efiemu): Remove leftover -DAPPLE_CC and
170 -DELF.
171 * grub-core/efiemu/runtime/config.h: Use __i386__ and __x86_64__
172 instead of ELF*.
173
1742013-11-10 Vladimir Serbinenko <phcoder@gmail.com>
28668d80
VS
175
176 * configure.ac: Restore CFLAGS to TARGET_CFLAGS before external tests.
177 Add -march=core2 when testing compile of efiemu64.
178
179 Thanks Andrey Borzenkov for spotting this.
180
9612ebc0
VS
1812013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
182
183 Add new ports: i386-xen and x86_64-xen. This allows running GRUB in
184 XEN PV environment and load kernels.
185
1a46a3a4
VS
1862013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
187
188 * grub-core/loader/i386/multiboot_mbi.c: Handle space in command line.
189 * grub-core/loader/multiboot_mbi2.c: Likewise.
190
2df12551
VS
1912013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/lib/cmdline.c (grub_loader_cmdline_size): Fix empty cmdline
194 handling.
195
3c980381
VS
1962013-11-09 Vladimir Serbinenko <phcoder@gmail.com>
197
198 * grub-core/commands/i386/cmostest.c: Add new command "cmosset".
199
200 Tested by: Denis 'GNUtoo' Carikli.
201
800f63d3
VS
2022013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
203
204 * grub-core/normal/datetime.c (grub_get_weekday): Use unsigned types.
205
9f8acdaa
VS
2062013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
207
5620eb53
VS
208 * grub-core/gfxmenu/gui_circular_progress.c (parse_angle):
209 Use to get rounded angle rather than truncated.
210
2112013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
212
213 * grub-core/term/serial.c: Add option for enabling/disabling
9f8acdaa
VS
214 RTS/CTS flow control.
215
2dc1eb6c
VS
2162013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
217
218 * grub-core/lib/libgcrypt/cipher/idea.c (mul_inv): Remove signed
219 divisions.
220
b9563c94
VS
2212013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
222
223 * grub-core/lib/libgcrypt/mpi/mpih-div.c (_gcry_mpih_divrem):
224 Use grub_fatal rather than divide by zero.
225 * grub-core/lib/libgcrypt/mpi/mpi-pow.c (gcry_mpi_powm): Likewise.
226
d6d8e9a9
VS
2272013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * include/grub/gui.h (grub_fixed_sfs_divide): Round rather than
230 truncate.
231 (grub_fixed_fsf_divide): Likewise.
232
d06de6c8
VS
2332013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Avoid
236 division by-zero and senseless negative divisions.
237
6af7d49b
VS
2382013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
239
240 * grub-core/gfxmenu/gui_circular_progress.c (circprog_paint): Avoid
241 division by-zero and senseless negative divisions.
242 (circprog_set_property): Don't accept negative num_ticks.
243
bcfa6d72
VS
2442013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
245
246 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Avoid
247 division by-zero and senseless negative divisions.
248
dd7f792c
VS
2492013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
250
251 * configure.ac: Use elf_*_fbsd on kfreebsd.
252
d061fda7
VS
2532013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * grub-core/tests/div_test.c: New test.
256
4db22500
VT
2572013-11-08 Vladimir Testov <vladimir.testov@rosalab.ru>
258
259 * grub-core/gfxmenu/gui_box.c: Updated to work with area status.
260 * grub-core/gfxmenu/gui_canvas.c: Likewise.
261 * grub-core/gfxmenu/view.c: Likewise.
262 * grub-core/video/fb/video_fb.c: Introduce new functions:
263 grub_video_set_area_status, grub_video_get_area_status,
264 grub_video_set_region, grub_video_get_region.
265 * grub-core/video/bochs.c: Likewise.
266 * grub-core/video/capture.c: Likewise.
267 * grub-core/video/video.c: Likewise.
268 * grub-core/video/cirrus.c: Likewise.
269 * grub-core/video/efi_gop.c: Likewise.
270 * grub-core/video/efi_uga.c: Likewise.
271 * grub-core/video/emu/sdl.c: Likewise.
272 * grub-core/video/radeon_fuloong2e.c: Likewise.
273 * grub-core/video/sis315pro.c: Likewise.
274 * grub-core/video/sm712.c: Likewise.
275 * grub-core/video/i386/pc/vbe.c: Likewise.
276 * grub-core/video/i386/pc/vga.c: Likewise.
277 * grub-core/video/ieee1275.c: Likewise.
278 * grub-core/video/i386/coreboot/cbfb.c: Likewise.
279 * include/grub/video.h: Likewise.
280 * include/grub/video_fb.h: Likewise.
281 * include/grub/fbfill.h: Updated render_target structure.
282 grub_video_rect_t viewport, region, area
283 int area_offset_x, area_offset_y, area_enabled
284 * include/grub/gui.h: New helper function
285 grub_video_bounds_inside_region.
286 * docs/grub-dev.texi: Added information about new functions.
287
c6b755df
VS
2882013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
289
290 * grub-core/kern/mm.c (grub_real_malloc): Use AND rather than MOD
291 for alignment.
292
e2a68100
VS
2932013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
294
295 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Add
296 missing attribute.
297 * grub-core/gdb/cstub.c (grub_gdb_trap): Likewise.
298
c4f11a2a
VS
2992013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
300
301 * grub-core/kern/misc.c (grub_divmod64): Don't fallback to
302 simple division on arm and ia64.
303
e0a7bffa
VS
3042013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
305
306 * grub-core/kern/arm/misc.S (__aeabi_unwind_cpp_pr0): Add dummy to
307 link with libgcc.
308
38b864ea
VS
3092013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * include/grub/symbol.h (FUNCTION), (VARIABLE): Fix precedence logic.
312
12359faf
VS
3132013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
314
315 * include/grub/symbol.h (FUNCTION), (VARIABLE) [__arm__]: Use % as
316 prefix symbol, not @.
317
9fdc64a9
VS
3182013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
319
320 * INSTALL: Add note about older gcc and clang.
321
665c575b
VS
3222013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
323
324 * tests/util/grub-shell.in: Boot as hdd on ppc by default.
325
47dcf7b1
VS
3262013-11-08 Vladimir Serbinenko <phcoder@gmail.com>
327
328 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_module): Fix
329 NULL pointer dereference.
330
d59849b2
VS
3312013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
332
333 * grub-core/Makefile.am: Do not include libgcc.h when compiling with
334 clang.
335
7a3f4a18
VS
3362013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
337
338 * grub-core/kern/powerpc/dl.c: Add missing pragma to silence cast-align
339 warnings.
340
7f084087
VS
3412013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
342
343 * grub-core/net/net.c (grub_net_route_unregister): Remove unused
344 function.
345 * grub-core/loader/i386/xnu.c (hextoval): Likewise.
346 * grub-core/disk/geli.c (ascii2hex): Likewise.
347
d5524ca8
VS
3482013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
349
350 * configure.ac: Run linker tests without -Werror.
351 Define TARGET_LDFLAGS_STATIC_LIBGCC and TARGET_LIBGCC.
352 Change all occurences of -static-libgcc resp -lgcc to
353 TARGET_LDFLAGS_STATIC_LIBGCC resp TARGET_LIBGCC.
354
390cd7ca
VS
3552013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
356
357 * configure.ac: Don't add -no-itegrated-as on clang on non-x86.
358
60375a88
VS
3592013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
360
361 Allow compiling with clang (not really supported though).
362
363 * conf/Makefile.common (CFLAGS_PLATFORM): Don't add -mrtd -mregparm=3
364 unconditionally.
365 * configure.ac: Add -no-integrated-as when using clangfor asm files.
366 Add -mrtd -mregparm=3 on i386 when not using clang.
367 * grub-core/kern/misc.c (grub_memset): Add volatile when on clang.
368
dd07e0c4
VS
3692013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
370
371 * grub-core/kern/ieee1275/cmain.c: Add explicit attribute on asm
372 bindings.
373 * grub-core/lib/reed_solomon.c: Likewise.
374 * include/grub/i386/gdb.h: Likewise.
375 * include/grub/i386/pc/int.h: Likewise.
376 * include/grub/i386/pc/pxe.h: Likewise.
377 * include/grub/ieee1275/ieee1275.h: Likewise.
378
9d3ae8ec
VS
3792013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
380
381 Import libgcrypt 1.5.3.
382
c12936c5
VS
3832013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
384
385 * configure.ac: Don't add -Wcast-align on x86.
386
cdc17f60
VS
3872013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
388
389 * configure.ac: Add -freg-struct-return on all platforms that
390 support it.
391
b35ec299
VS
3922013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
393
394 * acinclude.m4: Use -Werror on parameter tests.
395 * configure.ac: Likewise.
396
05f3a0d7
VS
3972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
398
399 * acinclude.m4: Add missing TARGET_CCASFLAGS on asm tests.
400
c966a489
VS
4012013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
402
403 * configure.ac: Check that -malign-loops works rather than assuming that
404 either -falign-loops or -malign-loops work.
405
bb0c57ec
VS
4062013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
407
408 * configure.ac: Remove -fnested-functions. We don't need it anymore.
409
24f4e57c
VS
4102013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
411
412 * configure.ac: Prevent cflags leaking to subsequent tests by always
413 resetting cflags to target_cflags in target tests.
414
ac319fbc
VS
4152013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
416
417 * grub-core/kern/parser.c (grub_parser_split_cmdline): Remove nested
418 function.
419
4bfe934c
VS
4202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
421
422 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove nested functions.
423
40a5bfde
VS
4242013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
425
426 * grub-core/lib/arg.c (grub_arg_parse): Remove nested function.
427
a67c755e
VS
4282013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
429
430 * grub-core/normal/cmdline.c (grub_cmdline_get):
431 Remove nested functions.
432
87a04a2d
VS
4332013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
434
435 * tests/test_sha512sum.in: Make it work on emu.
436
c03995d2
VS
4372013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
438
439 * grub-core/normal/charset.c (bidi_line_wrap): Eliminate nested
440 functions.
441 (grub_bidi_line_logical_to_visual): Likewise.
442
ec0ebb3f
VS
4432013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
444
445 Remove vestiges of -Wunsafe-loop-optimisations.
446
447 * conf/Makefile.common (CFLAGS_GNULIB): Remove
448 -Wno-unsafe-loop-optimisations.
449 * grub-core/commands/legacycfg.c: Remove -Wunsafe-loop-optimisations
450 pragma.
451 * grub-core/io/gzio.c: Likewise.
452 * grub-core/script/parser.y: Likewise.
453 * grub-core/script/yylex.l: Likewise.
454 * util/grub-mkfont.c: Likewise.
455
6ab537e3
VS
4562013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
457
458 * util/grub-mkfont.c (process_cursive): Remove nested function.
459
e6c368d4
VS
4602013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
461
462 * include/grub/misc.h (grub_dprintf): Use unnamed vararg.
463 (grub_boot_time): Likewise.
464
4f1cfd22
VS
4652013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
466
467 * include/grub/symbol.h (FUNCTION): Use @function rather than
468 "function".
469 (VARIABLE): Likewise.
470
6d5a4cee
VS
4712013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * grub-core/net/bootp.c (OFFSET_OF): Explicitly cast to grub_size_t.
474
f06c2172
VS
4752013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
476
477 * grub-core/net/bootp.c (set_env_limn_ro): Make pointer const.
478 (parse_dhcp_vendor): Likewise.
479
7cb24eb5
VS
4802013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
481
482 * util/grub-mkimagexx.c (relocate_symbols): Remove unneeded brackets.
483
f30c692c
VS
4842013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
485
486 * grub-core/gettext/gettext.c (main_context), (secondary_context):
487 Define after defining type and not before.
488
8b66bb5d
VS
4892013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
490
491 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Return right error
492 type.
493 (grub_gcm_decrypt): Likewise.
494 (algo_decrypt): Likewise.
495 (grub_zfs_decrypt_real): Transform error type.
496
5d17fd0f
VS
4972013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
498
499 * grub-core/disk/geli.c (geli_rekey): Fix error return type.
500
ac35a0f7
VS
5012013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * grub-core/disk/usbms.c (grub_usbms_cbi_cmd): Fix error type.
504 (grub_usbms_cbi_reset): Likewise.
505 (grub_usbms_bo_reset): Likewise.
506 (grub_usbms_reset): Likewise.
507 (grub_usbms_attach): Likewise.
508 (grub_usbms_transfer_cbi): Likewise.
509
3ee08697
VS
5102013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
511
512 * grub-core/io/lzopio.c (test_header): Simplify code and remove useless
513 "checksum = checksum;".
514
70bb6c85
VS
5152013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
516
517 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix type of
518 entry_type.
519
c7f34744
VS
5202013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
521
522 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel): Fix
523 BIOS disk check.
524
3f63b4d8
VS
5252013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
526
527 * grub-core/bus/usb/ehci.c (grub_ehci_restore_hw): Return right enum
528 type.
529 (grub_ehci_fini_hw): Likewise.
530 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
531
dac6ce73
VS
5322013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
533
534 * include/grub/usb.h (grub_usb_controller_dev): Make portstatus
535 return grub_usb_err_t for cosistency. All users updated.
536
5701750c
VS
5372013-11-07 Vladimir Serbinenko <phcoder@gmail.com>
538
539 * util/mkimage.c (SzAlloc): Use attribute unused rather than dubious
540 assigning to itself.
541
9e236169
GLD
5422013-11-05 Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
5432013-11-05 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
544
545 Issue separate DNS queries for ipv4 and ipv6
546
547 Adding multiple questions on a single DNS query is not supportted by
548 most DNS servers. This patch issues two separate DNS queries
549 sequentially for ipv4 and then for ipv6.
550
551 Fixes: https://savannah.gnu.org/bugs/?39710
552
553 * grub-core/net/bootp.c (parse_dhcp_vendor): Add DNS option.
554 * grub-core/net/dns.c (grub_dns_qtype_id): New enum.
555 * (grub_net_dns_lookup): Now using separated dns packages.
556 * (grub_cmd_nslookup): Add error condition.
557 * (grub_cmd_list_dns): Print DNS option.
558 * (grub_cmd_add_dns): Add four parameters: --only-ipv4, --only-ipv6,
559 --prefer-ipv4, and --prefer-ipv6.
560 * include/grub/net.h (grub_dns_option_t): New enum.
561 * (grub_net_network_level_address): option added.
562
339eacce
VT
5632013-11-05 Vladimir Testov <vladimir.testov@rosalab.ru>
564
565 * grub-core/video/fb/video_fb.c: Merge two blit functions
566 into one.
567
810f991b
VS
5682013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
569
570 * grub-core/term/terminfo.c: Add sequences for home and end.
571
386571a2
VS
5722013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
573
574 * grub-core/lib/legacy_parse.c: Fix handling of hercules and add
575 graphics console.
576
3fe63754
VS
5772013-11-05 Vladimir Serbinenko <phcoder@gmail.com>
578
579 * grub-core/video/i386/pc/vga.c: Fix double bufferring and
580 add mode 0x12.
581
76681e71
VS
5822013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
583
584 * docs/grub.texi (Vendor power-on keys): Add XPS M1330M based on old
585 e-mail by Per Öberg.
586
46522fb7
VS
5872013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
588
589 * grub-core/commands/i386/nthibr.c (GRUB_MOD_INIT): Fix typo in command
590 name.
591
e7d09ac4
AB
5922013-11-04 Andrey Borzenkov <arvidjaar@gmail.com>
593
594 * configure.ac: Explicitly disable emusdl, emuusb and emupci on non-
595 emu platforms.
596 * grub-core/Makefile.core.def: Enable emupci and emuucb only for emu.
597
67508925
VS
5982013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
599
600 * docs/grub.texi: Document usage of menuentry id.
601
0c62124e
VS
6022013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * docs/grub.texi: Add few mentions about EFI, debug and videoinfo.
605
9b5d4eed
PL
6062013-11-04 Peter Lustig <peter.lustig.7db@gmail.com>
607
608 * grub-core/commands/i386/nthibr.c: New command.
609
79054c1d
VS
6102013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
611
612 * grub-core/tests/video_checksum.c: Add 2560x1440 mode to testing.
613
44d47bbe
VS
6142013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
615
616 * include/grub/term.h (grub_term_coordinate): Extend to 16-bit per
617 coordinate.
618
323de05b
VS
6192013-11-04 Vladimir Serbinenko <phcoder@gmail.com>
620
621 Support GRUB_DISABLE_SUBMENU config.
622
623 Inspired by patch from Prarit Bhargava.
624
5a01722e
VS
6252013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
626
627 * docs/grub.texi: Mention RSA support.
628
1106c3f0
VS
6292013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
630
631 * grub-core/commands/verify.c: Add RSA support.
632
a1dcc2cb
VS
6332013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
634
635 * grub-core/disk/ahci.c (grub_ahci_pciinit): Detect ATAPI devices.
636 * grub-core/disk/ata.c (grub_ata_identify): Use atapi_identify if
637 device is known to be ATAPI.
638
ee7fb780
MF
6392013-11-03 Mike Frysinger <vapier>
640
641 * configure.ac: Don't add target-prefix.
642
5ade4a42
VS
6432013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
644
645 * grub-core/commands/loadenv.c (grub_cmd_save_env): Remove unset
646 variables.
647
6cd66043
VS
6482013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
649
650 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Ignore errors
651 if language is English.
652
090d7c81
VS
6532013-11-03 Vladimir Serbinenko <phcoder@gmail.com>
654
655 * grub-core/osdep/linux/getroot.c: Fix cast-align problems.
656
dd614590
VS
6572013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
658
659 * configure.ac: Don't add -m32/-m64 on emu.
660
a8686589 6612013-11-02 neil
662
663 * grub-core/osdep/linux/blocklist.c: Include linux/types.h for some
664 broken linux headers.
665
fb9f12a0
VS
6662013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * util/grub.d/30_os-prober.in: Add unhiding of partition if on msdos.
669
e25f8e1f
VS
6702013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
671
672 * grub-core/lib/reed_solomon.c (grub_reed_solomon_recover): Don't do
673 Reed-Solomon recovery if more than half of redundancy info is 0.
674
4685200f
VS
6752013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
676
677 * util/grub-mount.c: Handle symlinks to directories.
678
1397f0b5
VS
6792013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
680
681 * grub-core/fs/fshelp.c (find_file): Save ctx->next when calling
682 find_file recursively for symlink.
683
8b3e6eb6
VS
6842013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
685
686 * tests/util/grub-shell.in: Copy themes.
687
a0c9d5c6
VS
6882013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
689
690 * util/grub-mkimagexx.c (locate_sections): Reject mislinked images.
691
5cf9459c
VS
6922013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
693
694 * configure.ac: Use 0x8000 for address instead of 8000.
695
e7b66a28
VS
6962013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
697
698 * grub-core/loader/sparc64/ieee1275/linux.c (get_physbase): Fix
699 signature.
700
203f53fb
VS
7012013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
702
703 * grub-core/disk/efi/efidisk.c (grub_efidisk_readwrite): Remove unused
704 variable.
705
02663ee9
VS
7062013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
707
708 * configure.ac (TARGET_CFLAGS): Add -march=i386 on i386.
709
f169f65e
VS
7102013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
711
712 * grub-core/fs/hfspluscomp.c (hfsplus_read_compressed_real): Call
713 file_progress_read_hook.
714 * grub-core/fs/ntfscomp.c (hfsplus_read_compressed_real): Likewise.
715
2855a0fc
VS
7162013-11-02 Vladimir Serbinenko <phcoder@gmail.com>
717
718 * conf/Makefile.common (CFLAGS_PLATFORM): Remove poisoning of float
719 and double.
720
bf0f3a8c
VS
7212013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
722
723 * grub-core/fs/tar.c (grub_cpio_read): Add read_hook.
724
cb72aa18
VS
7252013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
726
727 Rewrite blocklist functions in order to get progress when
728 reading large extents and decrease amount of blocklist hook calls.
729
896f9135
VS
7302013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
731
732 * grub-core/term/serial.c (options), (grub_cmd_serial): Fix handling
733 of SI suffixes.
734
89295a06
VS
7352013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
736
737 Support --base-clock for serial command to handle weird cards with
738 non-standard base clock.
739
eb03ede0
VS
7402013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
741
742 * grub-core/fs/ext2.c (grub_ext2_read_symlink): Use memcpy rather
743 strncpy.
744 * grub-core/fs/jfs.c (grub_jfs_lookup_symlink): Likewise.
745 * grub-core/kern/misc.c (grub_strncpy): Move from here ...
746 * include/grub/misc.h (grub_strncpy): ... to here. Make inline.
747 * grub-core/net/net.c (grub_net_addr_to_str): Use COMPILE_TIME_ASSERT
748 + strcpy rather than strncpy.
749
8fbe5c7d
VS
7502013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
751
752 * grub-core/fs/zfs/zfs.c (nvpair_name): Use correct type for size.
753 (check_pool_label): Likewise. Fixes overflow.
754 (nvlist_find_value): Fix comparison.
755
e54b8f53
VS
7562013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
757
758 * include/grub/misc.h (grub_strcat): Removed. All users changed to
759 more appropriate functions.
760
fa9b3dca
VS
7612013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
762
763 * grub-core/kern/efi/efi.c (grub_efi_get_filename): Avoid inefficient
764 realloc.
765
9a021c55
VS
7662013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
767
768 * util/grub-mkrescue.in: Do not use UUID search on EFI.
769
80e8b13a
VS
7702013-11-01 Vladimir Serbinenko <phcoder@gmail.com>
771
772 * grub-core/kern/dl.c: Unify section-finding algorithm. Saves 30 bytes
773 on core size.
774
b61599ac
VS
7752013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
776
777 * grub-core/kern/mm.c (grub_realloc): Don't copy more data than we have.
778
a602dc54
VS
7792013-10-30 Vladimir Serbinenko <phcoder@gmail.com>
780
781 * grub-core/io/gzio.c (huft_build): Use zalloc for safety.
782 (initialize_tables): reset tl and td to NULL after freeing.
783
93c12075
VS
7842013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * grub-core/loader/multiboot_mbi2.c: Implement network tag.
787
1ca4b75e
VS
7882013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * grub-core/loader/multiboot_mbi2.c: Add EFI memory map to the list
791 of supported tags.
792
329550c4
VS
7932013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
794
795 * grub-core/loader/multiboot_mbi2.c: Implement EFI memory map.
796
00bfa988
VS
7972013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
798
799 * grub-core/loader/multiboot.c: Add support for multiboot kernels
800 quirks.
801
81afc5cc
VS
8022013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * grub-core/loader/i386/linux.c (allocate_pages): Allocate at least
805 a page in protected space.
806
cb3c4a47
VS
8072013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * grub-core/loader/multiboot.c (grub_cmd_module): Don't attempt to
810 allocate space for zero-sized modules.
811
954f7bf5
VS
8122013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Reject empty images.
815
526d3d25
FL
8162013-10-28 Francesco Lavra <francescolavra.fl@gmail.com>
817
818 * grub-core/lib/fdt.c: Fix miscellaneous bugs.
819
74124c34
VS
8202013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
821
822 * grub-core/lib/progress.c (grub_file_progress_hook_real): Add missing
823 safeguards. Fixes a crash with i386/pc/console.c.
824
5177391e
VS
8252013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
826
827 * include/grub/emu/hostdisk.h: Add proper declaration for grub_host_init
828 and grub_hostfs_init.
829
64db14b0
VS
8302013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
831
832 * grub-core/kern/emu/hostdisk.c (grub_util_check_file_presence): Use
833 windows method on other platforms without good stat as well.
834
effe2036
VS
8352013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
836
837 * grub-core/osdep/linux/getroot.c: Add new btrfs defines.
838
82591fa6 8392013-10-28 Vladimir Serbinenko <phcoder@gmail.com>
e11cb726 840
82591fa6
VS
841 Make / in btrfs refer to real root, not the default volume.
842 Modify mkrelpath to work even if device is mounted with subvolid option.
843
8442013-10-28 Andrey Borzenkov <arvidjaar@gmail.com>
845
846 * Makefile.util.def: Add grub-core/kern/disk_common.c to library
e11cb726
AB
847 extra_dist.
848 * grub-core/Makefile.core.def: Add kern/disk_common.c to disk module
849 extra_dist.
850
30fd7198
VS
8512013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
852
853 * util/grub-mkfont.c (main): Show error message when FT_Set_Pixel_Sizes
854 fails.
855
8d179dae
BC
8562013-10-27 BVK Chaitanya <bvk.groups@gmail.com>
857
858 * docs/autoiso.cfg: New file.
859
3bc9c8cf
VS
8602013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
861
862 * configure.ac: Remove leftover COND_BUILD_GRUB_MKFONT and
863 COND_GRUB_PE2ELF conditions.
864
8b46b0ea
VS
8652013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
866
867 * grub-core/loader/i386/bsd.c (grub_cmd_openbsd): Accept "sd", "cd",
868 "vnd", "rd" and "fd" disks.
869
442b86de
VS
8702013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
871
872 Move grub_disk_write out of kernel into disk.mod.
873
04dea7e6
VS
8742013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
875
876 * grub-core/kern/misc.c (grub_vsnprintf_real): Unify int and wchar
877 handling.
878
8792013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a8f15bce
VS
880
881 * grub-core/kern/misc.c (grub_abort): Make static
882
04dea7e6 8832013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
a60dae7e
VS
884
885 * grub-core/kern/misc.c (grub_vsnprintf_real): Don't attempt to
886 transform invalid unicode codepoints.
887
04dea7e6 8882013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
891b713b
VS
889
890 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
891 \0 checking.
892
03dcac7f
VS
8932013-10-27 Vladimir Serbinenko <phcoder@gmail.com>
894
895 * grub-core/lib/legacy_parse.c: Add support for "nd" disk.
896
c81acb7f
VS
8972013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
898
899 Consolidate cpuid code.
900
c1bee646
VS
9012013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
902
903 Move cpuid code to cpuid.h and TSC code to tsc.c.
904
f37bf9c7
GS
9052013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
906
907 * util/grub.d/00_header.in: Don't use LANG if it's not set.
908
4021132b
GS
9092013-10-26 Grégoire Sutre <gregoire.sutre@gmail.com>
910
911 * util/grub-mkconfig.in: Replace $0 with $self.
912 * util/grub-reboot.in: Likewise.
913 * util/grub-set-default.in: Likewise.
914
3ace8d75
BC
9152013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
916
917 * docs/osdetect.cfg: New file.
918
1e6ad6a6
BC
9192013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
920
921 * tests/util/grub-shell.in: Add new --debug option.
922
188929eb
BC
9232013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
924
925 * tests/test_unset.in: New test.
926
7994a09a
BC
9272013-10-26 BVK Chaitanya <bvk.groups@gmail.com>
928
929 * tests/test_sha512sum.in: New test.
930
2a8a7585
VS
9312013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
932
933 * grub-core/fs/iso9660.c: Replace strncat with memcpy.
934 * include/grub/misc.h: Remove strncat.
935 * grub-core/lib/posix_wrap/string.h: Likewise.
936
cf8d6bbd
VS
9372013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
938
939 * grub-core/net/tftp.c: Retransmit ack when rereceiving old packet.
940 Try to handle more than 0xFFFF packets.
941 Reported by: Bernhard Übelacker <bernhardu>.
942 He also spotted few overflows in first version of this patch.
943
6d1fc99a
VS
9442013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * tests/date_unit_test.c: New test.
947
10bafa1c
VS
9482013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
949
950 * grub-core/normal/datetime.c (grub_unixtime2datetime): Fix mishandling
951 of first three years after start of validity of unixtime.
952
b1c6d037
VS
9532013-10-26 Vladimir Serbinenko <phcoder@gmail.com>
954
955 * grub-core/normal/menu_entry.c (get_logical_num_lines): Use unsigned
956 division as the one making more sense.
957 (update_screen): Likewise.
958 (complete): Likewise.
959
5f4028d4
VS
9602013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * grub-core/normal/menu_entry.c (complete): Make sure that width is >0.
963
a2856736
VS
9642013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
965
966 Make char and string width grub_size_t rather than grub_ssize_t.
967
0a7e52b2
VS
9682013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * grub-core/normal/cmdline.c (grub_history_get): Make argument into
971 unsigned.
972 (grub_history_replace): Likewise.
973
42829573
VS
9742013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
975
976 * grub-core/disk/raid6_recover.c: Use unsigned arithmetics when
977 appropriate.
978
3523b8d8
VS
9792013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
980
981 * grub-core/video/bitmap_scale.c: Use unsigned arithmetics when
982 appropriate.
983
d43c6489
VS
9842013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
985
986 * grub-core/video/fb/fbblit.c: Use (255 ^ x) rather than (255 - x).
987 Use unsigned divisions rather than signed variants.
988
f690f8b0
VS
9892013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
990
991 * grub-core/video/readers/png.c (grub_png_convert_image): Use
992 unsigned arithmetics.
993 Add missing break.
994
74ff2c05
VS
9952013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
996
997 * grub-core/video/readers/jpeg.c: Use unsigned where appropriate.
998
fb56391e
VS
9992013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1000
1001 * grub-core/fs/zfs/zfs.c (xor_out): Use unsigned modular arithmetics
1002 rather than signed one.
1003 (recovery): Likewise.
1004
40f29060
VS
10052013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * grub-core/net/dns.c (hash): Use unsigned arithmetic.
1008
c64577a5
VS
10092013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1010
1011 * grub-core/io/gzio.c (test_zlib_header): Use undigned modulo rather
1012 than signed.
1013
c16535a8
JM
10142013-10-25 Jon McCune <jonmccune@google.com>
1015
1016 * docs/grub.texi: Cleanup security documentation around signatures.
1017
6673d8e7
VS
10182013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1019
1020 * grub-core/fs/ext2.c (EXT2_BLOCK_SIZE): Make unsigned.
1021
a105d375
VS
10222013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 * grub-core/commands/gptsync.c (lba_to_chs): Use proper types rather
1025 than int.
1026
af81ed88
VS
10272013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * conf/Makefile.common (CPPFLAGS_KERNEL): Add -DGRUB_KERNEL=1.
1030 * include/grub/dl.h (GRUB_MOD_INIT), (GRUB_MOD_FINI): Define
1031 functions when compiling for kernel.
1032
ea899a57
VS
10332013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1034
1035 * grub-core/lib/progress.c (grub_file_progress_hook_real): Cast to
1036 unsigned long long when using %llu.
1037
c6dc6fa1
VS
10382013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1039
1040 * grub-core/lib/progress.c (grub_file_progress_hook_real): Refresh
1041 terminal after updating progress.
1042
ad2dc003
VS
10432013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1044
1045 * grub-core/boot/i386/pc/startup_raw.S (grub_gate_a20): Remove
1046 argument. We don't disable Gate A20 in this code.
1047
b46684ae
VS
10482013-10-25 Vladimir Serbinenko <phcoder@gmail.com>
1049
1050 * grub-core/boot/i386/qemu/boot.S: Ensure that A20 is enabled.
1051 Conceptually based on change in branch "vbe-on-coreboot".
1052
f70d5c07
RM
10532013-10-24 Robert Millan <rmh@gnu.org>
1054
1055 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Replace
1056 numeric constants with their symbolic equivalent.
1057 Taken from branch "vbe-on-coreboot".
1058
bca274b4
VS
10592013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1060
1061 * docs/grub.texi: Fix ordering and use pxref rather than xref.
1062
238f0489
VS
10632013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1064
1065 * grub-core/lib/progress.c (grub_file_progress_hook_real): Use
1066 divmod64 for offset division.
1067
863c590b
PFS
10682013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1069
1070 Rename .bzrignore to .gitignore. Add "*.o" rule.
1071
1072 * .bzrignore: Renamed to...
1073 * .gitignore: ...this.
1074
84a0e969
PFS
10752013-10-22 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1076
1077 Add new progress module that displays the load progress of files.
1078
1079 * grub-core/lib/progress.c: New file.
1080 * grub-core/Makefile.core.def (progress): New module.
1081 * grub-core/kern/file.c (grub_file_open): File name added.
1082 * (grub_file_read): Progress hook added.
1083 * grub-core/fs/cbfs.c (grub_cbfs_read): Likewise.
1084 * grub-core/fs/cpio_common.c (grub_cpio_read): Likewise.
1085 * grub-core/net/net.c (grub_net_fs_read_real): Likewise.
1086 * include/grub/file.h (struct grub_file): Add progress module members.
1087 * include/grub/term.h (struct grub_term_output): Likewise.
1088 * grub-core/osdep/unix/emuconsole.c (grub_console_term_output):
1089 Terminal velocity added.
1090 * grub-core/osdep/windows/emuconsole.c (grub_console_term_output): Likewise.
1091 * grub-core/term/arc/console.c (grub_console_term_output): Likewise.
1092 * grub-core/term/efi/console.c (grub_console_term_output): Likewise.
1093 * grub-core/term/gfxterm.c (grub_video_term): Likewise.
1094 * grub-core/term/i386/coreboot/cbmemc.c (grub_cbmemc_term_output): Likewise.
1095 * grub-core/term/i386/pc/console.c (grub_console_term_output): Likewise.
1096 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_term): Likewise.
1097 * grub-core/term/ieee1275/console.c (grub_console_term_output): Likewise.
1098 * grub-core/term/morse.c (grub_audio_term_output): Likewise.
1099 * grub-core/term/serial.c (grub_serial_term_output): Likewise.
1100 * grub-core/term/spkmodem.c (grub_spkmodem_term_output): Likewise.
1101 * grub-core/term/uboot/console.c (uboot_console_term_output): Likewise.
1102
0d711431
VS
11032013-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1104
1105 Verify signatures of signatures unless --skip-sig is specified.
1106
f8401f76
VS
11072013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1108
1109 * grub-core/kern/misc.c (grub_vsnprintf_real): Remove needless explicit
1110 \0 checking.
1111
1112 Saves 70 bytes on compressed image.
1113
ac1feb61
VS
11142013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1115
1116 * grub-core/kern/misc.c (grub_strtoull): Remove needless *ptr != 0
1117 check.
1118
1119 Saves 10 bytes on compressed image.
1120
00f72e89
VS
11212013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1122
1123 * grub-core/kern/misc.c (grub_isprint): Move to ...
1124 * include/grub/misc.h (grub_isprint): ... here. Make inline.
1125
1126 Saves 20 bytes on compressed image due to remving exporting.
1127
067e6ae7
VS
11282013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/fs/ntfs.c (grub_ntfs_mount): Remove redundant check.
1131
1132 Saves 5 bytes on compressed image.
1133
64a6c791
VS
11342013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1135
1136 * grub-core/fs/ntfs.c: Move common UTF-16 handling to a separate
1137 function get_utf8.
1138
1139 Saves 379 bytes on compressed image.
1140
979d9f52
VS
11412013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1142
1143 * grub-core/fs/ntfs.c: Handle 48-bit MFT no.
1144
1437da54
VS
11452013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1146
1147 * grub-core/fs/ntfs.c (read_run_data): Rewrite using bitfields.
1148
1149 Saves 40 bytes on compressed image.
1150
d9ee2269
VS
11512013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1152
1153 * grub-core/fs/ntfs.c (grub_ntfs_iterate_dir): Use grub_uint8_t for
1154 mask rather than 64-bit type.
1155
1156 Saves 20 bytes on compressed image.
1157
63efa602
VS
11582013-10-21 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * grub-core/fs/ntfs.c (read_data): Move code for compressed data to ...
1161 * grub-core/fs/ntfscomp.c (ntfscomp): ... here.
1162
47601ffe
VS
1163 Saves 273 bytes on compressed image.
1164
2cc679ad
VS
11652013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1166
1167 * grub-core/kern/disk.c (grub_disk_write): Use malloc/free instead of
1168 variable length arrays.
1169
1170 Saves 50 bytes on compressed image.
1171
2e4659b8
VS
11722013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1173
1174 * grub-core/loader/i386/bsd.c: Remove variable length arrays.
1175
2a40badf
VS
11762013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1177
1178 * grub-core/fs/ufs.c: Remove variable length arrays.
1179
1ba6b9b9
VS
11802013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1181
1182 * grub-core/fs/ntfs.c: Add comment about fixed allocation size.
1183
f3e39341
VS
11842013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 * grub-core/fs/zfs.c: Remove variable length arrays.
1187 Reduces zfs.mod by 160 bytes (208 compressed).
1188
71523935
VS
11892013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1190
1191 * grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
1192
28153eb8
VS
11932013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1194
1195 * grub-core/net/arp.c: Remove variable length arrays.
1196 * grub-core/net/bootp.c: Likewise.
1197 * grub-core/net/dns.c: Likewise.
1198 * grub-core/net/icmp6.c: Likewise.
1199 * grub-core/net/net.c: Likewise.
1200
88ce4cd7
VS
12012013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1202
1203 * grub-core/fs/ntfs.c: Remove variable length arrays.
1204 Increases ntfs.mod by 64 bytes (but decreases by 3 when
1205 compressed).
1206
66123940
VS
12072013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1208
1209 * grub-core/fs/hfs.c: Remove variable length arrays.
1210 Reduces hfs.mod by 8 bytes (52 compressed).
1211
0927e5bd
VS
12122013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1213
1214 * grub-core/fs/udf.c: Remove variable length arrays.
88ce4cd7 1215 Increases udf.mod by 128 bytes (but decreases by 13 when
0927e5bd
VS
1216 compressed).
1217
9c12ac97
VS
12182013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1219
1220 * grub-core/fs/iso9660.c: Remove variable length arrays.
88ce4cd7 1221 Increases iso9660.mod by 200 bytes (but decreases by 79 when
9c12ac97
VS
1222 compressed).
1223
97ec2d71
VS
12242013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/fs/nilfs2.c: Remove variable length arrays.
88ce4cd7 1227 Increases nilfs2.mod by 24 bytes (but decreases by 115 when
97ec2d71
VS
1228 compressed).
1229
156e4ea0
VS
12302013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1231
1232 * grub-core/fs/xfs.c: Remove variable length arrays.
1233 Reduces xfs.mod by 40 bytes (43 compressed).
1234
3b502c29
VS
12352013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1236
1237 * grub-core/fs/fshelp.c: Remove variable length arrays.
1238 Reduces fshelp.mod by 116 bytes (23 compressed).
1239
c7037f1d
VS
12402013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1241
1242 * grub-core/normal/completion.c: Remove variable length arrays.
1243 * grub-core/normal/menu_entry.c: Likewise.
1244
1245 Reduces normal.mod by 496 bytes.
1246
a07e6ad0
VS
12472013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1248
1249 * grub-core/fs/minix.c: Remove variable length arrays. Reduces jfs.mod
1250 by 356 bytes (158 compressed).
1251
2359bf88
VS
12522013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1253
1254 * grub-core/fs/jfs.c: Remove variable length arrays. Reduces jfs.mod
1255 by 364 bytes (169 compressed).
1256
d28e1163
VS
12572013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * grub-core/fs/bfs.c: Remove variable length arrays. Reduces afs.mod and
1260 bfs.mod size by 556 resp 740 bytes (288 resp 334 compressed).
1261 * include/grub/types.h (grub_unaligned_uint64_t): New type.
1262
e89c2d48
VS
12632013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1264
1265 Lift 255x255 erminal sie restriction to 65535x65535. Also change from
1266 bitmasks to small structures of size chosen to fit in registers.
1267
7abdac8e
VS
12682013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1269
1270 * conf/Makefile.common: Use -freg-struct-return on i386. This
1271 decreases code size and improves performance.
1272
518864c0
VS
12732013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1274
1275 * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
1276
bbd2b539
VS
12772013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1278
1279 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix formatting of
1280 "(null)" string.
1281 Simplify expressions to save around 256 bytes in kernel.img.
1282 * tests/printf_unit_test.c (printf_test): Add "(null)" tests.
1283
99519c15
VS
12842013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1285
1286 * grub-core/tests/video_checksum.c (grub_video_capture_write_bmp):
1287 Use GRUB_UTIL_FD_O_* rather than O_*.
1288
20285765
VS
12892013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1290
1291 Add haiku-specific functions.
1292
887c0bb6
VS
12932013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1294
1295 * grub-core/kern/emu/hostdisk.c: Remove few leftover includes.
1296
cd78a56f
VS
12972013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 Move stat () and device mode checking into OS-dependent files as
1300 long as performance doesn't suffer.
1301
a4012f07
VS
13022013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1303
1304 Split make_system_path_relative_to_its_root into separate file
1305 relpath.c from getroot.c as it's common between unix and haiku
1306 but otherwise haiku doesn't use any functions from unix getroot.c.
1307
31de274d
VS
13082013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * grub-core/osdep/aros/hostdisk.c (grub_util_is_directory):
1311 New function.
1312 (grub_util_is_special_file): Likewise.
1313
40346de6
VS
13142013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1315
1316 * grub-core/osdep/unix/getroot.c: Move exec functions to ...
1317 * osdep/unix/exec.c: ... here. Add few additional exec_* variants.
1318
d3923ab9
VS
13192013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1320
1321 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Define size_t to
1322 grub_size_t. This fixes the case when size_t mismatches grub_size_t.
1323
663f6eb1
VS
13242013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1325
1326 * util/grub-mkimagexx.c (make_reloc_section): Fix memory leak.
1327 (load_image): Likewise.
1328
44d1c20a
VS
13292013-10-19 Vladimir Serbinenko <phcoder@gmail.com>
1330
1331 * util/grub-render-label.c: Move backend part to ...
1332 * util/render-label.c: ... here.
1333
d0a116ee
VS
13342013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1335
1336 * grub-core/osdep/random.c: Use unix/random.c on haiku. Haiku uses
1337 yarrow (by B. Schneier et al) for its /dev/urandom (similar to FreeBSD).
1338
b47fcae6
VS
13392013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1340
1341 * grub-core/osdep/generic/blocklist.c: Add missing include to string.h.
1342
0f7c00c1
VS
13432013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1344
1345 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Handle
1346 CD-ROM in case when it's declared as having subpartitions.
1347
29013cba
VS
13482013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1349
1350 Don't add -lm on haiku.
1351
1352 * configure.ac: Define BUILD_LIBM to -lm on most platforms
1353 and empty on haiku.
1354 * grub-core/Makefile.am (gentrigtables): Use $(BUILD_LIBM) rather than
1355 -lm.
1356
e8559d24
VS
13572013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1358
1359 * configure.ac: Use -melf_*_haiku as target on haiku.
1360
8104063c
VS
13612013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1362
1363 * Makefile.util.def: Add util/setup.c to extra_dist.
1364
fc3182c7
VS
13652013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1366
1367 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Pass
1368 unknown types through.
1369
f90a3cc0
VS
13702013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1371
1372 * grub-core/osdep/unix/getroot.c (grub_util_check_block_device): Remove.
1373 (grub_util_check_char_device): Likewise.
1374 * include/grub/emu/getroot.h: Likewise.
1375
1e3e7419
VS
13762013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1377
1378 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Use define for defining
1379 memset rather than inline static function.
1380
92c88fc8
VS
13812013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1382
1383 * grub-core/lib/xzembed/xz_config.h: Enable all bcj filters when
1384 not doing embedded decompressor.
1385
3cd910a2
VS
13862013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * grub-core/disk/ldm.c: Rename variables and arguments to prevent
1389 shadowing.
1390 * grub-core/kern/disk.c: Likewise.
1391 * grub-core/kern/misc.c: Likewise.
1392 * include/grub/parser.h: Likewise.
1393 * include/grub/script_sh.h: Likewise.
1394 * include/grub/zfs/zfs.h: Likewise.
1395
7b3aca00
VS
13962013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1397
1398 * grub-core/disk/luks.c (configure_ciphers): Fix spurious warning.
1399
97dfe7e4
VS
14002013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1401
1402 * grub-core/fs/zfs/zfs_lz4.c: Check that __INTEL_COMPILER is
1403 defined before trying to use it.
1404
bf919aa9
VS
14052013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1406
1407 * grub-core/fs/affs.c (grub_affs_create_node): Fix uninited value
1408 warning.
1409
f4ccf29d
VS
14102013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1411
1412 * include/grub/dl.h: Remove double declaration of GRUB_MOD_DEP.
1413 Use __unused__ rather than __used__ on gcc < 3.2.
1414
0d3a6f85
VS
14152013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1416
1417 * include/grub/setjmp.h: Define RETURNS_TWICE. Keep it empty for
1418 gcc < 4.0.
1419 * include/grub/*/setjmp.h: USe RETURNS_TWICE.
1420
757e3eb7
VS
14212013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1422
1423 * grub-core/disk/dmraid_nvidia.c: Fix potentially uninited "layout".
1424
fb320faf
VS
14252013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1426
1427 * include/grub/misc.h: Don't use warn_unused_result on gcc < 3.4.
1428 * include/grub/emu/misc.h: Likewise.
1429
ea73acd2
VS
14302013-10-18 Vladimir Serbinenko <phcoder@gmail.com>
1431
1432 * grub-core/term/i386/pc/vga_text.c: Remove extra declaration of
1433 cur_color.
1434
71237a6f
VT
14352013-10-18 Vladimir Testov <vladimir.testov@rosalab.ru>
1436
1437 * grub-core/tests/checksums.h: Regenerated due to progress bar
1438 get_minimal_size changes.
1439
3d46c22f
BC
14402013-10-17 BVK Chaitanya <bvk.groups@gmail.com>
1441
1442 Added `tr' command support.
1443
1444 * grub-core/commands/tr.c: New file.
1445 * grub-core/Makefile.core.def: Build rules for new module.
1446
1447 * tests/grub_cmd_tr.in: New test.
1448 * Makefile.util.def: Build rules for new test.
1449
47e0a61f
VT
14502013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1451
1452 * grub-core/gfxmenu/gui_progress_bar.c: Sanity checks added.
1453
946fd073
VT
14542013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1455
1456 * grub-core/gfxmenu/gui_progress_bar.c: New option ``highlight_overlay``
1457 * docs/gurb.texi: Likewise.
1458
9c13c576
VT
14592013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1460
1461 * grub-core/gfxmenu/gui_progress_bar.c (draw_pixmap_bar): Fixed bug.
1462 Pixmap highlighted section with east and west slices was displayed
1463 incorrectly due to negative width of the central slice.
1464
ad543f12
VT
14652013-10-17 Vladimir Testov <vladimir.testov@rosalab.ru>
1466
1467 * docs/grub.texi: Graphical options information update.
1468 Removed outdated. Updated current. Inserted missed.
1469
6176a0cd
VS
14702013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1471
1472 * docs/grub.texi: Mention few new platform-specific commands.
1473
9688cae2
VS
14742013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1475
1476 * grub-core/script/yylex.l: Fix LSQBR2 and RSQBR2. It's not
1477 currently used so this doesn't really have any effect.
1478 Reported by: Douglas Ray <dougray>
1479
f7b69a3f
VS
14802013-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1481
1482 * autogen.sh: Don't set LC_CTYPE as it doesn't create problem for
1483 compilation but prevents gcc from displaying messages in non-Latin
1484 alphabets.
1485 * conf/Makefile.common: Likewise.
1486
ceca6ddf
HY
14872013-10-16 Hiroyuki YAMAMORI
1488
1489 Handle Japanese special keys.
1490 Reported by: Hiroyuki YAMAMORI.
1491 Codes supplied by: Hiroyuki YAMAMORI.
1492
ac48d334
VT
14932013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1494
1495 * grub-core/gfxmenu/gui_list.c: Scrollbar sanity checks added.
1496
b2b71bff
VT
14972013-10-16 Vladimir Testov <vladimir.testov@rosalab.ru>
1498
1499 * grub-core/gfxmenu/gui_list.c: New option `item_pixmap_style`.
1500 * docs/grub.texi: Likewise.
1501
669fc449
VS
15022013-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1503
1504 * grub-core/osdep/unix/hostdisk.c (grub_util_fd_read): Return correct
1505 value in case of incomplete read.
1506 (grub_util_fd_write): Likewise.
1507
59381678
VS
15082013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * util/editenv.c (grub_util_create_envblk_file): Use grub_util_rename.
1511
bacfefbb
VS
15122013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * util/grub-editenv.c (create_envblk_file): More from here ...
1515 * util/editenv.c (grub_util_create_envblk_file): ... to here.
1516
f7c49570
VS
15172013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * grub-core/osdep/unix/getroot.c (grub_guess_root_devices):
1520 canonicalize file name before doing the rest.
1521
7b83ca44
VS
15222013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1523
1524 * include/grub/osdep/hostfile_windows.h: Add missing ftello for
1525 mingw32.
1526
df1e64c9
VS
15272013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1528
1529 Define grub_util_is_directory/regular/special_file and
1530 use OS-dependent versions rather than to rely on stat().
1531
ec16e026
VS
15322013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 * util/grub-mkimage.c: Move backend part to ...
1535 * util/mkimage.c: ... here.
1536
4b4eeb3c
VS
15372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1538
1539 Allow compilation with mingw64 albeit with warnings due to lack of
1540 %llx/%llu.
1541
1542 * grub-core/gnulib/msvc-inval.c: Use __cdecl rather than cdecl.
1543 * grub-core/lib/posix_wrap/wchar.h: Define wint_t.
1544 * grub-core/lib/posix_wrap/wctype.h: Define wctype_t.
1545 * include/grub/osdep/hostfile_windows.h: Don't define fseeko/ftello
1546 on mingw64.
1547 * include/grub/types.h: Allow sizeof (long) != sizeof (void *).
1548
f4e0adc0
VS
15492013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1550
1551 Remove leftover references to some of the system headers.
1552
e0127364
VS
15532013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * grub-core/disk/geli.c (grub_util_get_geli_uuid): Close handle after
1556 read.
1557
20d53541
VS
15582013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 * grub-core/disk/cryptodisk.c: Use grub_util_fd_strerror instead
1561 of strerror.
1562
5a869940
VS
15632013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1564
1565 Split out blocklist retrieving from setup.c to
1566 grub-core/osdep/blocklist.c and add windows implementation since
1567 generic version doesn't work on NTFS on Windows due to aggressive
1568 unflushable cache.
1569
c06c7520
VS
15702013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1571
1572 Split grub-setup.c into frontend (grub-setup.c) and backend (setup.c)
1573 files.
1574
8f53bb3f
VS
15752013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1576
1577 * grub-core/osdep/windows/hostdisk.c (grub_util_fd_strerror):
1578 Cut tailing newline. Remove arbitrary limitation. Always use
1579 grub_util_tchar_to_utf8.
1580
148f1007
VS
15812013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 * grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
1584 * tests/printf_unit_test.c (printf_test): Add %% tests.
1585 Reported by: Paulo Flabiano Smorigo.
1586
af3b06be
VS
15872013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1588
1589 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: Really
1590 implement fsync.
1591
27f9d02e
VS
15922013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1593
1594 * configure.ac: Check for nvlist_lookup_string in nvpair since we
1595 use nvlist_lookup_string and don't use nvlist_print.
1596
f6a81f0a
VS
15972013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1598
1599 Add wrappers around rename, unlink, mkdir, opendir, readdir and
1600 closedir to handle filename charset translation.
1601
d7750b32
VS
16022013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1603
1604 * include/grub/emu/hostdisk.h: Move file operations to
1605 * include/grub/emu/hostfile.h: ... here.
1606
2859196e
VS
16072013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 * grub-core/osdep/windows/hostdisk.c (canonicalize_file_name): Handle
1610 unicode path.
1611
c018c968
VS
16122013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 * grub-core/tests/checksums.h: Regenerate due to swiss.sed change.
1615
7e45abce
VS
16162013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1617
1618 Move cpu time retrieval to separate grub_util_get_cpu_time_ms
1619 and remove export.h.
1620
23934da2
VS
16212013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1622
1623 * grub-core/kern/emu/error.c: Removed.
1624 * grub-core/Makefile.core.def (kernel): Don't add error.c and progname.c
1625 explicitly as it's already in libgnu.a.
1626
c11ebcc8
VS
16272013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * grub-core/osdep/windows/emuconsole.c: Add missing config.h and
1630 config-util.h include.
1631
70671037
VS
16322013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1633
1634 Split emunet into platform-dependent and GRUB-binding parts. Keep
1635 platform-dependent part in kernel for easy access to OS functions.
1636
25ac643a
VS
16372013-10-15 Vladimir Serbinenko <phcoder@gmail.com>
1638
1639 * grub-core/tests/video_checksum.c: Use grub_util_fd_* rather than
1640 open/read/write.
1641
69ca5876
VS
16422013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1643
1644 * grub-core/osdep/windows/emuconsole.c: New file.
1645
d9d68ef0
AB
16462013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1647
1648 * conf/Makefile.extra-dist: Add osdep/*/init.c
1649
58e211cc
VS
16502013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1651
1652 * Makefile.am: Use TARGET_OBJCOPY when doing objcopy for target.
1653
588744d0
VS
16542013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 * util/grub-probe.c (probe): Separate different drives in hint-str
1657 by spaces and not newlines.
1658 * util/grub-mkconfig_lib.in: Handle multidevice filesystem.
1659
44016e52
AB
16602013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1661
1662 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1663 Handle CD-ROMs.
1664
6de9ee86
VS
16652013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 Pass-through unknown E820 types. It required reorganisation of mmap
1668 module.
1669
f8f3f155
AB
16702013-10-14 Andrey Borzenkov <arvidjaar@gmail.com>
1671
1672 * Makefile.util.def: Add osdep/init.c to grub-mount files.
1673
b73249d2
VS
16742013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 Make grub_util_fd_seek match behaviour of other grub_util_fd_* and
1677 fseeko.
1678
dac86b18 16792013-10-14 qwertial <qwertial>
1680
1681 * grub-core/gdb_grub.in: Fix overflow and wrong field.
1682
17614b84
JM
16832013-10-14 Jon McCune <jonmccune@google.com>
1684
1685 * docs/grub.texi: Document new signatures possibility.
1686
6de292cb
VS
16872013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1688
1689 Define GRUB_UTIL_FD_O_* and always use them with grub_util_fd_open.
1690
84379b61
VS
16912013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1692
1693 * include/grub/osdep/hostfile_windows.h (grub_util_utf8_to_tchar): Add
1694 missing prototype.
1695 (grub_util_tchar_to_utf8): Likewise.
1696
21d85db1
VS
16972013-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1698
1699 * grub-core/Makefile.core.def: Add osdep/init.c on emu.
1700 * grub-core/kern/emu/main.c: Add missing include.
1701 * grub-core/osdep/basic/init.c (grub_util_host_init) [!GRUB_UTIL]:
1702 Don't call grub_util_init_nls.
1703 * grub-core/osdep/windows/init.c (grub_util_host_init) [!GRUB_UTIL]:
1704 Likewise.
1705
66a1b3ee
VS
17062013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1707
1708 * util/misc.c (grub_util_get_image_size): Use FILE functions rather than
1709 stat.
1710
e19bec17
VS
17112013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1712
1713 * util/grub-editenv.c: Remove leftover set_program_name and init_nls.
1714
ee8c1b29
VS
17152013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1716
1717 * include/grub/misc.h: Use gnu_printf only on gcc 4.4 or later.
1718
bb338aaf
VS
17192013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1720
1721 Add a wrapper for fopen. On unix-like systems just pass-through. On
1722 windows use unicode version.
1723
ae5540d3
VS
17242013-10-13 Vladimir Serbinenko <phcoder@gmail.com>
1725
1726 Move set_program_name and init_nls to host_init. On windows
1727 fix in this fuction console and argument charset as well.
1728
4cd3c4fe
AB
17292013-10-12 Andrey Borzenkov <arvidjaar@gmail.com>
1730
1731 Fix inconsistent use of GRUB_CRYPTODISK_ENABLE and
1732 GRUB_ENABLE_CRYPTODISK.
1733
1734 * util/grub-install.in: Rename all GRUB_CRYPTODISK_ENABLE to
1735 GRUB_ENABLE_CRYPTODISK.
1736 * util/grub-mkconfig_lib.in: Likewise.
1737
78170f3e
CCZ
17382013-10-12 Christian Cier-Zniewski <c.cier@gmx.de>
1739
1740 * docs/grub.texi (Vendor power-on keys): Add Dell Latitude E4300.
1741
3414b6c0
MC
17422013-10-12 Melki Christian <Christian.melki@saabgroup.com>
1743
1744 * grub-core/term/at_keyboard.c [DEBUG_AT_KEYBOARD]: Fix compilation
1745 error when enabling debug.
1746
6d0740e8
IB
17472013-10-12 Ilya Bakulin <Ilya_Bakulin@genua.de>
1748
1749 * configure.ac: Use -melf_*_obsd on openbsd.
1750
ff2d4dc4
VS
17512013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1752
1753 * grub-core/kern/arm/dl_helper.c: Use more proper %p for pointer.
1754
eac6ae82
VS
17552013-10-12 Vladimir Serbinenko <phcoder@gmail.com>
1756
1757 * include/grub/misc.h: Use gnu_printf rather than printf as format
1758 template since our functions are independent of libc.
1759
ba9baabe
VS
17602013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
1761
1762 * util/grub-setup.c (setup): Move copying of partition table as
1763 futher up as possible to avoid possible overwrite by floppy routines.
1764
17652013-10-11 Vladimir Serbinenko <phcoder@gmail.com>
60d4f0bb
VS
1766
1767 * grub-core/fs/fat.c: Fix handling of exfat contiguous files.
1768
145e2369
VT
17692013-10-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1770
1771 * grub-core/gfxmenu/gui_list.c: New option `scrollbar_thumb_overlay`.
1772 * docs/grub.texi: Likewise.
1773
3530bc9d
VS
17742013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1775
1776 * util/getroot.c (make_device_name): Remove dos_part and bsd_part as
1777 it's mostly unused. Move vestiges to the callers.
1778
fb9f59c3
VS
17792013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1780
1781 * util/grub-mkpasswd-pbkdf2.c: Remove temporary buffers for hex
1782 version of salt and hash. Use grub_snprintf rather than snprintf.
1783
9be1c255
VS
17842013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1785
1786 * docs/grub.texi: Fix problem with braces.
1787
ed8c0887
VS
17882013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1789
1790 * conf/Makefile.extra-dist: Fix extra-dist list.
1791 * grub-core/Makefile.core.def: Likewise.
1792
f72ab14e
VS
17932013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1794
1795 * docs/grub.texi: Document disk names used on Windows and AROS.
1796
2fe53a22
VS
17972013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1798
1799 * grub-core/osdep/aros/getroot.c: Change to //: prefix as discussed
1800 with AROS devs.
1801 * grub-core/osdep/aros/hostdisk.c: Likewise.
1802
71c1d67a
VS
18032013-10-10 Vladimir Serbinenko <phcoder@gmail.com>
1804
1805 Avoid including hostfile.h when not necessarry as it pulls
1806 in OS-specific headers which may redefine generic names
1807 like "far".
1808
ad297ec7
VT
18092013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1810
1811 * grub-core/gfxmenu/gui_list.c: New options for scrollbar padding:
1812 scrollbar_left_pad, scrollbar_right_pad, scrollbar_top_pad,
1813 scrollbar_bottom_pad
1814 * docs/grub.texi: Likewise.
1815
6e9e5dc9
VT
18162013-10-09 Vladimir Testov <vladimir.testov@rosalab.ru>
1817
1818 * grub-core/gfxmenu/gui_list.c (list_destroy): Fixed memory leak.
1819
761c718b
VS
18202013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1821
1822 Move OS-dependent file definitions to include/grub/osdep/hostfile*.h.
1823
37149a2f
VS
18242013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1825
1826 * include/grub/emu/hostdisk.h (grub_hostdisk_linux_find_partition):
1827 Removed.
1828 * grub-core/osdep/linux/hostdisk.c (grub_hostdisk_linux_find_partition):
1829 Made static.
1830
3837a151
VS
18312013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1832
1833 * include/grub/emu/getroot.h (grub_util_find_hurd_root_device): Remove
1834 leftover.
1835
caca1c70
VS
18362013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1837
1838 Move OS-specific driver configuration to grub_util_fd_open. This
1839 moves OS-dependent parts from kern/emu/hostdisk.c to
1840 grub-core/osdep/*/hostdisk.c.
1841
f7676b70
VS
18422013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1843
1844 * util/grub-mkimage.c (generate_image): Use size_t instead of
1845 grub_size_t.
1846 * util/grub-mkimagexx.c (locate_sections): Likewise.
1847 (load_image): Likewise.
1848
22f98db2
VS
18492013-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * util/misc.c (grub_util_write_image_at): Don't use PRIxGRUB_SIZE for
1852 size_t.
1853 (grub_util_write_image): Likewise.
1854
b102ce69
VS
18552013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1856
1857 * grub-core/osdep/basic/random.c: New file. Abort on an attempt to
1858 get random when no RNG is available.
1859 * grub-core/osdep/random.c: Use basic/random.c on OS out of whitelist.
1860
acbbe5cb
VS
18612013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1862
1863 * include/grub/util/lvm.h: Removed.
1864
2112fb3f
VS
18652013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1866
1867 * grub-core/kern/emu/misc.c (fsync) [__MINGW32__]: Move to ...
1868 * grub-core/osdep/windows/hostdisk.c (fsync) [__MINGW32__]: ... here.
1869
79f78fbf
VS
18702013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/osdep/windows/sleep.c: Add missing config.h.
1873
c2e6f705
VS
18742013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1875
1876 * grub-core/kern/emu/misc.c (grub_get_rtc): Remove (it's a leftover).
1877
aabe433a
VS
18782013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1879
1880 * grub-core/net/drivers/emu/emunet.c: Move to ..
1881 * grub-core/osdep/linux/emunet.c: ..here.
1882
9a2c903f
VS
18832013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1884
1885 * util/ieee1275/ofpath.c: Move to ...
1886 * grub-core/osdep/linux/ofpath.c: ..here, split stub into ...
1887 * grub-core/osdep/basic/ofpath.c: ..here.
1888
4a445f58
VS
18892013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1890
1891 Move password-querying (util-version) routines to grub-core/osdep.
1892
c1ca4244
VS
18932013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1894
1895 Move sleep routines to grub-core/osdep.
1896
672fa55e
VS
18972013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1898
1899 Move OS-dependent files to grub-core/osdep and document it.
1900
a5b0365a
VS
19012013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1902
1903 * grub-core/kern/emu/misc.c (canonicalize_file_name): Move to ...
1904 * grub-core/kern/emu/hostdisk_*.c (canonicalize_file_name): ... here.
1905
29072e99
VS
19062013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1907
1908 * grub-core/kern/arm/misc.S: Remove leftover ARM and THUMB.
1909
f8772ea7
VS
19102013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1911
1912 * util/misc.c: Remove leftover inclusion of malloc.h.
1913
a1a315e7
VS
19142013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1915
1916 * include/grub/setjmp.h: Remove leftover GRUBOF.
1917
cef86fef
VS
19182013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1919
1920 * util/raid.c: Fold into ...
1921 * util/getroot_linux.c: ... here. Make all functions static.
1922
c4cf25ee
VS
19232013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1924
1925 * grub-core/fs/zfs/zfs_lz4.c: Switch from ad-hoc endiannes and width
1926 macros to GRUB ones.
1927
53a5f5c2
VT
19282013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1929
1930 * grub-core/gfxmenu/gui_list.c (draw_scrollbar): Fixed rare
1931 occasional bug. If there are too many boot entries or too low
1932 scrollbar height then we need to use another formula to calculate
1933 the position and size of the scrollbar thumb.
1934
de300af2
VS
19352013-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1936
c4cf25ee 1937 * util/random_unix.c: Add NetBSD, Solaris and Mac OS X to verified list.
de300af2 1938
c5827364
VT
19392013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1940
1941 * grub-core/gfxmenu/gui_list.c: New option `scrollbar-slice`.
1942 * docs/grub.texi: Likewise.
1943
dd2ed8b0
VT
19442013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1945
1946 * grub-core/gfxmenu/gui_list.c: Draw the scrollbar in a separate
1947 viewport.
1948
7286c384
VT
19492013-10-08 Vladimir Testov <vladimir.testov@rosalab.ru>
1950
ffdfc1f3
VT
1951 * grub-core/gfxmenu/gui_list.c (list_get_minimal_size): Corrected
1952 minimal width calculations.
7286c384 1953
ea547e14
VS
19542013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1955
1956 * docs/grub.texi: Update note on colors on emu console.
1957
b726be76
VS
19582013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1959
1960 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Give GRUB_ERR_BAD_FS
1961 for quadruple indirect rather than GRUB_ERR_NOT_IMPLEMENTED_YET as
1962 it's FS and not GRUB limitation.
1963
a5f6ade6
VS
19642013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1965
1966 * grub-core/kern/arm/efi/startup.S: Remove thumb leftover.
1967
3b0f3aa2
VS
19682013-10-07 Vladimir Serbinenko <phcoder@gmail.com>
1969
1970 * grub-core/kern/arm/efi/init.c: Rewrite timer fucntion.
1971
1db38304
ST
19722013-10-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
1973
1974 * util/grub.d/10_hurd.in: Use `version_find_latest` to sort gnumach
1975 kernels by version order.
1976
fb295fc0
VS
19772013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1978
1979 * util/random_unix.c: Add kFreeBSD to the list of secure RNG.
1980
47345010
VS
19812013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1982
1983 Add AROS hostdisk and getroot routines.
1984
bf25f879
VS
19852013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 Make cryptodisk and diskfilter probe data retrievable programmatically
1988 and not just printable.
1989
24ca4512
VS
19902013-10-04 Vladimir Serbinenko <phcoder@gmail.com>
1991
1992 Split random retrieving code into separate files.
1993
c7c177f0
VS
19942013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
1995
1996 * grub-core/kern/arm/dl.c (do_relocations): Accept and ignore
1997 R_ARM_V4BX.
1998
d71b45ae
VS
19992013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2000
2001 * grub-core/tests/video_checksum.c: Increase robustness to out of memory
2002 condition.
2003 * grub-core/tests/fake_input.c: Likewise.
2004 * grub-core/tests/cmdline_cat_test.c: Likewise.
2005
e44b9a83
VS
20062013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2007
2008 * grub-core/video/capture.c: Do not do finalization when .fini
2009 is called as there is explicit capture_end.
2010
4fa60739
VS
20112013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2012
2013 * grub-core/term/gfxterm.c: Add flag "functional" to skip input when
2014 changing windows to avoid crash.
2015
17c8bc37
VS
20162013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2017
2018 * grub-core/kern/arm/cache.c: Add v5 write-through cache support.
2019
9d4d7977
VS
20202013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2021
2022 * po/exclude.pot: Add several strings to exclude.
2023
0caa407c
VS
20242013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2025
2026 * tests/gettext_strings_test.in: Add getroot_*.c to exclude list.
2027
9ae393da
VS
20282013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2029
2030 * autogen.sh: Add ./util/grub-gen-widthspec.c and
2031 ./util/grub-gen-asciih.c to exclude list.
2032
498d5033
VS
20332013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 * grub-core/gfxmenu/theme_loader.c (theme_set_string): Fix memory leak
2036 and don't mark error strings for translation.
2037
7d93298f
VS
20382013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2039
2040 * grub-core/disk/uboot/ubootdisk.c (uboot_disk_open): Use grub_error
2041 properly in case of missing block size.
2042
b2cae20c
VS
20432013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2044
2045 * grub-core/lib/arm/setjmp.S: Add missing license section.
2046
3896d6b4
VS
20472013-10-03 Vladimir Serbinenko <phcoder@gmail.com>
2048
2049 * po/swiss.sed: Add replacement for key names and for term computer.
2050
ebc1da55
VT
20512013-10-02 Vladimir Testov <vladimir.testov@rosalab.ru>
2052
2053 * grub-core/gfxmenu/theme_loader.c: New global options for the
2054 theme background image handling. desktop-image-scale-method,
2055 desktop-image-h-align, desktop-image-v-align.
2056 * grub-core/gfxmenu/view.c: Likewise.
2057 * include/gfxmenu_view.h: Likewise.
2058 * include/bitmap_scale.h: Proportional scale functions introduced.
2059 * grub-core/video/bitmap_scale.c: Likewise. Verification checks are
2060 put in a separate functions. GRUB_ERR_BUG is set for grub_error in
2061 cases of unexpected input variables for scale functions.
2062 * docs/grub.texi: Updated documentation for new options.
2063
c5739143
VS
20642013-10-02 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 * grub-core/video/readers/png.c: Support narrow (4-/2-/1-bpp) PNG.
2067
be74aeb3
VT
20682013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2069
2070 * grub-core/tests/checksums.h: Corrected due to changes in
2071 bilinear interpolation function.
2072
d999ac72
VT
20732013-10-01 Vladimir Testov <vladimir.testov@rosalab.ru>
2074
2075 * grub-core/video/bitmap_scale.c (scale_bilinear): Increased precision
2076 to eliminate artefacts in bilinear interpolation.
2077
2b131610
VS
20782013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2079
2080 * grub-core/video/readers/tga.c: Support paletted tga.
2081
de6e5ff8
VS
20822013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2083
2084 * grub-core/video/readers/jpeg.c (grub_jpeg_decode_data): Remove
2085 incorrect cbcr setting when in color mode.
2086
fa31ee9c
VS
20872013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2088
2089 * grub-core/video/readers/png.c: Support paletted images and clean up
2090 greyscale support.
2091
e84f8188
VS
20922013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2093
2094 * grub-core/term/terminfo.c (grub_terminfo_readkey): Fix
2095 usage of wrong table which resulted in mishandling of 4-byte
2096 sequences.
2097
20982013-09-28 Vladimir Serbinenko <phcoder@gmail.com>
2237daf2
VS
2099
2100 * grub-core/term/terminfo.c: Add Home and End key sequences.
2101
d72bff09
VS
21022013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2103
2104 * grub-core/video/readers/png.c (grub_png_decode_image_header):
2105 Fix formula for computing total number of bytes.
2106
29648c5d
VS
21072013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2108
2109 * grub-core/video/readers/tga.c: Reorganize to separate RLE and
2110 image processing, fix big-endian and support grayscale.
2111
4a876492
VS
21122013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2113
2114 * grub-core/video/fb/video_fb.c (grub_video_fb_create_render_target):
2115 Correctly will with maximum transparency when using index color.
2116
3ccf16df
VS
21172013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
2118
2119 * grub-core/video/readers/png.c: Support grayscale
2120
21212013-09-27 Vladimir Serbinenko <phcoder@gmail.com>
e9c492a0
VS
2122
2123 * grub-core/video/readers/jpeg.c: Support grayscale.
2124
3ccf16df 21252013-09-26 Jon McCune <jonmccune@google.com>
0340bdbc
JM
2126
2127 * grub-core/commands/loadenv.c: Support skipping signature check
2128 and variable names filtering.
2129
30b7f58f
VS
21302013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2131
2132 * grub-core/kern/emu/hostdisk_unix.c: Declare AROS as non-unix.
2133 * grub-core/kern/emu/hostfs.c: Likewise.
2134 * util/getroot_unix.c: Likewise.
2135
bab7b1eb
VS
21362013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2137
2138 * include/grub/emu/hostdisk.h (GRUB_FD_STAT_IS_FUNTIONAL): New define.
2139 Migrate all explicit defines to this new one.
2140
43b1c99d
VS
21412013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2142
2143 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Use
2144 grub_util_fd_strerror when using grub_util_fd_*.
2145 (grub_util_fd_open_device): Likewise.
2146 (grub_util_biosdisk_read): Likewise.
2147 (grub_util_biosdisk_write): Likewise.
2148 * grub-core/kern/emu/hostdisk_unix.c (grub_util_fd_open): New function.
2149 (grub_util_fd_strerror): Likewise.
2150 (grub_util_fd_sync): Likewise.
2151 (grub_util_fd_close): Likewise.
2152 * grub-core/kern/emu/hostdisk_windows.c (grub_util_fd_sync): Likewise.
2153 (grub_util_fd_close): Likewise.
2154 (grub_util_fd_strerror): Likewise.
2155 * include/grub/emu/hostdisk.h (grub_util_fd_close): Make into real
2156 function proto rather than macro.
2157 (grub_util_fd_sync): Likewise.
2158 (grub_util_fd_open): Likewise.
2159 (grub_util_fd_strerror): New proto.
2160
e8fd80bc
VS
21612013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2162
2163 * util/getroot.c (grub_util_biosdisk_is_present): Don't do stat on
2164 platforms on which it doesn't work.
2165
bf645fda
VS
21662013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2167
2168 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Move struct
2169 stat immediately to where it's used.
2170
5177ba14
VS
21712013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2172
2173 * util/getroot.c (grub_util_check_block_device): Move to ...
2174 * util/getroot_unix.c (grub_util_check_block_device): ... here.
2175 * util/getroot.c (grub_util_check_char_device): Move to ...
2176 * util/getroot_unix.c (grub_util_check_char_device): ... here.
2177
9db826e1
VS
21782013-09-24 Vladimir Serbinenko <phcoder@gmail.com>
2179
2180 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_close): Fix
2181 disk closing logic.
2182
49120085
AB
21832013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2184
2185 * docs/grub.texi (Simple configuration): Document GRUB_ENABLE_CRYPTODISK.
2186
b3328b68
AB
21872013-09-24 Andrey Borzenkov <arvidjaar@gmail.com>
2188
2189 * docs/grub.texi (File name syntax): Document ZFS filenames
2190 (/volume@snapshot/...).
2191
3fff48ab
VS
21922013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2193
2194 * grub-core/kern/emu/hostdisk_windows.c (grub_util_get_windows_path):
2195 Always return full path. Fixes a problem with mkrelpath.
2196
39cfdaa9
PFS
21972013-09-23 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2198
2199 * util/grub-install.in: Add GPT PReP support.
2200 * util/grub-probe.c (probe): Support GPT partition type.
2201 (main): Support -t gpt_parttype.
2202
7c680e1f 22032013-09-23 Aleš Nesrsta <starous@volny.cz>
2204
2205 * grub-core/bus/usb/ehci.c: SMI disabled in all cases
2206
890bdabe
MM
22072013-09-23 Massimo Maggi <me@massimo-maggi.eu>
2208
2209 * grub-core/fs/zfs/zfs.c (check_pool_label): Check nvlist.
2210
9c262ff9
TH
22112013-09-23 Tim Hardeck <thardeck>
2212
2213 * util/grub.d/10_hurd.in: Filter out character for the class.
2214 * util/grub.d/10_kfreebsd.in: Likewise.
2215 * util/grub.d/10_linux.in: Likewise.
2216 * util/grub.d/20_linux_xen.in: Likewise.
2217
d755342a
MC
22182013-09-23 Melki Christian <Christian.melki@saabgroup.com>
2219
2220 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Fix the type of
2221 "changed".
2222
68b77707
JT
22232013-09-23 Josh Triplett <josh@joshtriplett.org>
2224
2225 * grub-core/boot/i386/pc/lnxboot.S: Re-add support for recording the
2226 boot partition.
2227
efa68bfa
VS
22282013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2229
2230 * Makefile.util.def (libgrubmods.a): Remove CFLAGS_POSIX as this lib
2231 doesn't use posix_wrap. Keep literal -fno-builtin however.
2232
d9104204
VS
22332013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2234
2235 * conf/Makefile.common (CPPFLAGS_LIBFDT): Remove leftover.
2236
c248781a 22372013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22382013-09-23 neil
2239
5830df88 2240 * configure.ac: Do not enable -Wmissing-noreturn as its
2241 usefulness is limited and creates problems on some OS notably with
2242 code generated by bison.
2243
22442013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22452013-09-23 neil
2246
2247 * configure.ac: Do not explicitly enable -Waddress as it's not
c248781a 2248 supported by all gcc and when it is, it's already enabled by -Wall.
2249
621bed69
VS
22502013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2251
2252 * grub-core/video/efi_gop.c (grub_video_gop_setup): Fix a typo which
2253 desactivated use of EDID at all.
2254
71764dc8 22552013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22562013-09-23 neil
2257
2258 * grub-core/loader/multiboot.c (grub_multiboot_set_console): Always use
2259 video if no text is available.
2260
affce7d4 22612013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025
VS
22622013-09-23 neil
2263
2264 * configure.ac: Substitute TARGET_RANLIB.
2265
22662013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
22672013-09-23 neil
affce7d4
VS
2268
2269 * grub-core/genmod.sh.in: Remove ./ from TARGET_OBJ2ELF. Add quotes.
2270
2271 Based on patches from AROS.
2272
0e8daad0 22732013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1bd73025 22742013-09-23 neil
0e8daad0
VS
2275
2276 * grub-core/Makefile.am: Override STRIP and RANLIB.
2277 * configure.ac: compute TARGET_RANLIB.
2278 * INSTALL: Document TARGET_RANLIB
2279
2280 Based on patches from AROS.
2281
3f7d9c82
VS
22822013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Do not assume
2285 that floppies are unpartitioned.
2286
bca8873a
VS
22872013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * util/getroot_unix.c [__MINGW32__ || __CYGWIN__]:
2290 Define dummy grub_util_pull_lvm_by_command to decrease number of #if's.
2291
22922013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * grub-core/lib/posix_wrap/sys/types.h: Use OpenBSD approach: it's
2295 less nice but more portable.
2296 * grub-core/lib/posix_wrap/wchar.h: Likewise.
2297
a47a78be
VS
22982013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2299
2300 * include/grub/cryptodisk.h (grub_cryptodisk): Use grub_util_fd_t
2301 for cheat_fd.
2302 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Use grub_util_*
2303 functions.
2304 (grub_cryptodisk_cheat_insert): Likewise.
2305 (grub_cryptodisk_close): Likewise.
2306
e85a5d5c
VS
23072013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2308
2309 * include/grub/emu/misc.h: Remove leftover cygwin definitions.
2310 Use windows path for DEFAULT_DIRECTORY.
2311
dad9fa6b
VS
23122013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2313
2314 * include/grub/i386/setjmp.h: Remove useless #if MINGW where original
2315 difference was likely just gcc version, not anything mingw-related.
2316
7e518ca8
VS
23172013-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 Use Winapi on both cygwin and mingw32 to share more code between both.
2320
d68d0157
AB
23212013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2322
2323 * util/grub-install.in: Add --grub-editenv option.
2324 * util/grub-install_header (grub_compress_file): Explicitly check for
2325 plain file to avoid cp error.
2326
775b284d
AB
23272013-09-22 Andrey Borzenkov <arvidjaar@gmail.com>
2328
2329 * docs/grub.texi (Device syntax): Document new LVM UUID based device
2330 names; fix LVM driver name (lvm, not lv).
2331 * util/grub-probe.c (probe_abstraction): Support lvmid/xxx device
2332 names.
2333
3ff4063d
VS
23342013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2335
2336 * grub-core/kern/emu/hostdisk.c: Disentagle into a series of OS-specific
2337 files rather than one file with loads of #if's.
2338 * util/getroot.c: Likewise.
2339
287faafe
VS
23402013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2341
2342 * grub-core/lib/posix_wrap/sys/types.h: Use stddef on *BSD.
2343
d1983764
VS
23442013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2345
2346 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Add windows and
2347 GNU/Hurd to the list of checked PRNG.
2348
15ce95c4
VS
23492013-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2350
2351 * configure.ac: On FreeBSD use -melf_*_fbsd format.
2352
207862dd 23532013-09-21 Ales Nesrsta <starous@volny.cz>
2354
7c680e1f 2355 * grub-core/bus/usb/ehci.c: Corrected EHCI QH handling (async./sync.)
207862dd 2356
63653cfd
VS
23572013-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 * grub-core/disk/diskfilter.c: Handle non-md UUIDs.
2360 * grub-core/disk/lvm.c: Add LVM UUIDs.
2361 * util/getroot.c: Use LVM UUIDs whenever possible.
2362
f5d3e7ef
AB
23632013-09-19 Andrey Borzenkov <arvidjaar@gmail.com>
2364
2365 * docs/grub.texi (Networking commands): Add documentation for
2366 network related commands.
2367
53c6b7d6
VS
23682013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2369
2370 * util/getroot.c (grub_util_open_dm): Check major rather than the name
2371 to determine if device is handled by devmapper.
2372 (convert_system_partition_to_system_disk): Likewise.
2373 (get_dm_uuid): Don't check explicitly if device is mapped, it's
2374 already done in grub_util_open_dm.
2375
e70d6736
LL
23762013-09-19 Leif Lindholm <leif.lindholm@linaro.org>
2377
2378 * kern/arm/cache.S: Correct access to ilinesz/dlinesz variables.
2379 Clean up stack manipulation (sync_caches_armv*)
2380
90379808
VS
23812013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 * util/lvm.c: Remove since unused. Remove remaining references.
2384
386701a8
VS
23852013-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2386
2387 Handle the case of partitioned LVM properly.
2388
2389 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2390 Stop on meeting LVM, mpath or DMRAID.
2391 (grub_hostdisk_os_dev_to_grub_drive): Canonicalize os device.
2392 (read_device_map): Likewise.
2393 * util/getroot.c (convert_system_partition_to_system_disk): Assume that
2394 device is full disk rather than erroring out on LVM and similar cases.
2395
53070787
VS
23962013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2397
2398 * util/grub-mkconfig_lib.in: Keep supplied pkgdatadir if any.
2399
1bc783bd
VS
24002013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * grub-core/kern/mm.c (grub_mm_init_region): Skip regions less than
2403 4K before the end.
2404 Reported by: Leif Lindholm
2405
436ad5c3
PW
24062013-09-18 Pawel Wojtalczyk <eyak@wp.pl>
24072013-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 * grub-core/term/efi/console.c (grub_console_getkey): Accept VT100-style
2410 codes.
2411
607319c9
CW
24122013-09-18 Colin Watson <cjwatson@ubuntu.com>
2413
2414 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name_iter):
2415 Remove no-longer-true __attribute__ ((unused)) on disk parameter.
2416
d404d154
DR
24172013-09-18 Douglas Ray <dougray@cpan.org>
2418
2419 * util/grub-mkpasswd-pbkdf2.c (grub_get_random): Declare OpenBSD PRNG
2420 as secure.
2421
28851ef6
AN
24222013-09-18 Aleš Nesrsta <starous@volny.cz>
2423
2424 * docs/grub.texi: Fix broken link.
2425
897c3bc6
MC
24262013-09-18 Melki Christian <Christian.melki@saabgroup.com>
2427
2428 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Add condition
2429 to break endless loop.
2430
f1630459
VS
24312013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * util/grub-fstest.c: Fix several printf formats.
2434 * util/grub-mkimage.c: Likewise.
2435 * util/grub-mkimagexx.c: Likewise.
2436 * util/grub-script-check.c: Likewise.
2437
64463dfd
VS
24382013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 * grub-core/lib/xzembed/xz_dec_lzma2.c: Make -Wattributes not cause
2441 error.
2442
48972495
VS
24432013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * config.h.in [GRUB_BUILD]: Explicitly undefine ENABLE_NLS.
2446
5dd5e64b
VS
24472013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * util/getroot.c (grub_find_device): Use cygwin_conv_path ratherthan
2450 removed in current versions cygwin_conv_*.
2451
1c1f31e5
VS
24522013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2453
2454 * configure.ac: Disable efiemu runtime on cygwin.
2455
c546a259
VS
24562013-08-23 Vladimir Serbinenko <phcoder@gmail.com>
2457
2458 * conf/Makefile.extra-dist: Add missing util/grub-gen-asciih.c,
2459 util/grub-gen-widthspec.c and util/grub-pe2elf.c.
2460
81690478
VS
24612013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2462
2463 * util/grub-mkpasswd-pbkdf2.c (grub_password_get): Remove extraneous
2464 error message.
2465
6b87c10a
VS
24662013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * grub-core/lib/crypto.c (grub_password_get) [GRUB_UTIL]: Add
2469 windows variant.
2470 * util/grub-mkpasswd-pbkdf2.c: Add windows flavour for retrieving random
2471 data.
2472
8f0baaac
VS
24732013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 * configure.ac: Add -Wl,-melf_i386 and -Wl,-melf_x86_64 systematically
2476 when on x86 and not cygwin.
2477 * conf/Makefile.common: Remove unsystematic -Wl,-melf_i386 and
2478 -Wl,-melf_x86_64.
2479
b224c266
VS
24802013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2481
2482 * configure.ac: Set CPP to build one when checkoing for freetype for
2483 build.
2484
506b336b
VS
24852013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2486
2487 * util/grub-mkfont.c [!GRUB_BUILD]: Define my_argp_state.
2488 [!GRUB_BUILD]: Remove has_argument.
2489
8c8c87b7
VS
24902013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2491
2492 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath) [_WIN32]:
2493 Replace with a dummy.
2494
7dc5ca13
VS
24952013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * configure.ac: Don't change host_os from mingw to cygwin.
2498
c3302aa5
VS
24992013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2500
2501 * configure.ac: Change target_os from windows to cygwin.
2502
7b780018
VS
25032013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2504
2505 Handle grub-pe2elf and grub-mkfont for cases when build != host.
2506
2507 * Makefile.am (build-grub-mkfont): Don't include gnulib.
2508 (build-grub-gen-asciih): Likewise.
2509 (build-grub-gen-widthspec): Likewise.
2510 * Makefile.util.def (grub-pe2elf): Remove.
2511 * config.h.in [GRUB_BUILD]: Use build rather than host constants.
2512 * configure.ac: Separate tests for build.
2513 Move ./build-grub-pe2elf to grub-core.
2514 Fix typo.
2515 * grub-core/Makefile.am (build-grub-pe2elf): New target.
2516 * grub-core/kern/emu/misc.c (xasprintf): Don't compile if GRUB_BUILD is
2517 defined.
2518 * include/grub/types.h [GRUB_BUILD]: Use build rather than host
2519 constants.
2520 * util/grub-mkfont.c [GRUB_BUILD]: Simplify not to rely on argp.
2521 * util/grub-pe2elf.c: Simplify not to rely on getopt.
2522 * util/misc.c (program_name) [GRUB_BUILD]: Define to static string.
2523
984cfd8a
VS
25242013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2525
2526 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size): Adapt for
2527 mingw32 as well based on grub_util_get_disk_size.
2528 * util/misc.c (grub_util_get_disk_size): Removed. all users switched to
2529 grub_util_get_fd_size.
2530 (sync): Removed.
2531 (fsync): Moved to ...
2532 * grub-core/kern/emu/misc.c (fsync): ... here.
2533
f82d79c9
VS
25342013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2535
2536 * include/grub/mm.h (grub_extend_alloc): Remove.
2537 * grub-core/loader/i386/pc/plan9.c: Use own version of
2538 grub_extend_alloc with appropriate types.
2539
fd7dd66d
VS
25402013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2541
2542 * conf/Makefile.common (CFLAGS_GCRY): Add -Wno-redundant-decls.
2543
43ffba7c
VS
25442013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2545
2546 * util/getroot.c: Include sys/wait.h only when we need waitpid.
2547
3c7eac44
VS
25482013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2549
2550 Fix dependencies on cygwin.
2551
2552 * gentpl.py: Support variable dependencies. Add $TARGET_OBJ2ELF to
2553 dependencies when used and defined.
2554 * grub-core/Makefile.core.def (regexp): Add dependency on libgnulib.a.
2555
bdb5ba47
VS
25562013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2557
2558 * include/grub/zfs/spa.h (zio_cksum): Add explicit members for mac.
2559 * grub-core/fs/zfs/zfs.c (zio_read): Don't use casts to retrieve mac.
2560
ed7fbf43
VS
25612013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2562
2563 * grub-core/kern/emu/mm.c (grub_memalign): Don't define if there is no
2564 implementation available to cause compile-time rather than runtime
2565 error.
2566
fc46e9fc
VS
25672013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2568
2569 * util/grub-fstest.c: Don't check for symlinks on windows.
2570
7f68269a
VS
25712013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2572
2573 * INSTALL: Mention unavailability of man pages when cross-compiling.
2574
8ed358e0
VS
25752013-08-22 Vladimir Serbinenko <phcoder@gmail.com>
2576
2577 * include/grub/crypto.h: Don't declare gcry_log_bug, gcry_log_printf
2578 and gcry_log_bug.
2579 * grub-core/lib/libgcrypt_wrap/mem.c: Include g10lib.h
2580
fc97214f
VS
25812013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 * INSTALL: Document cross-compilation.
2584 * acinclude.m4: Determine whether nm support -P and --defined-only.
2585 * configure.ac: Add TARGET_ to all variables pertaining to target
2586 that don't have it yet.
2587 * gentpl.py: Likewise.
2588 * grub-core/Makefile.am: Likewise.
2589 * grub-core/genmod.sh.in: Likewise.
2590 * grub-core/gensyminfo.sh.in: Handle OpenBSD and other non-GNU nm
2591 as well.
2592
ca1fb563
IB
25932013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2594
2595 * configure.ac: Remove -Wempty-body. It's not essential and needs
2596 recent gcc.
2597
0031b229
IB
25982013-08-21 Ilya Bakulin <Ilya_Bakulin@genua.de>
2599
2600 * grub-core/kern/emu/hostdisk.c: Add conditionals for OpenBSD.
2601 * util/getroot.c: Likewise.
2602
54ea2f44
VS
26032013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2604
2605 * grub-core/disk/ahci.c: Add needed explicit cast.
2606 * grub-core/lib/backtrace.c: Likewise.
2607 * grub-core/net/ip.c: Likewise.
2608 * grub-core/net/tcp.c: Likewise.
2609 * grub-core/net/udp.c: Likewise.
2610
3c601f8c
VS
26112013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2612
2613 * grub-core/lib/posix_wrap/wchar.h: Fix typo.
2614
1d679dda
VS
26152013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2616
2617 * util/import_gcry.py: Add final newline in visibility.h.
2618
00c28dd9
VS
26192013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 * conf/Makefile.common: Fix typo.
2622
32af299a
VS
26232013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2624
2625 * Makefile.util.def (grub-mkfont): Add missing libgnu.a.
2626
e733cf52
VS
26272013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2628
2629 * Makefile.am (widthspec.h): Fix typo.
2630 * util/grub-gen-widthspec.c: Likewise.
2631
c6b066f2
VS
26322013-08-21 Vladimir Serbinenko <phcoder@gmail.com>
2633
2634 Move ascii.h and widthspec.h generation to a separate build-time-only
2635 tool.
2636
ad1fe3f9 26372013-08-16 Grégoire Sutre <gregoire.sutre@gmail.com>
2638
2639 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
2640 Always fill bootdisk info and improve check for NetBSD disklabel.
2641
92a52dd4
VS
26422013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2643
2644 * conf/Makefile.extra-dist: Add util/bin2h.c.
2645 Reported by: floppym.
2646
b2e9d276
VS
26472013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2648
2649 * configure.ac: Make unifont mandatory for powerpc-ieee1275.
2650
7b966834
VS
26512013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2652
2653 * configure.ac: Disable unifont and starfield if no freetype was found.
2654
d5c1eef1
VS
26552013-08-16 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * grub-core/lib/posix_wrap/wchar.h: Fix wchar_t and mbstate_t conflict
2658 on NetBSD and OpenBSD.
2659
66345b50 26602013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
03dafa17
VT
2661
2662 * grub-core/gfxmenu/gui_list.c: Baseline misplacement fixed.
2663
66345b50 26642013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
224a55bb
VT
2665
2666 * grub-core/gfxmenu/gui_list.c: The number of color mappings is
2667 reduced. Inheritant options are processed during the theme loading.
2668
66345b50 26692013-08-15 Vladimir Testov <vladimir.testov@rosalab.ru>
58ec39c6
VT
2670
2671 * grub-core/gfxmenu/gui_list.c: Minimal width fixed.
2672
369508b3
AS
26732013-08-14 Avik Sil <aviksil@in.ibm.com>
2674
2675 * grub-core/net/tftp.c: Send tftp ack packet before closing the socket.
2676
26772013-08-14 Avik Sil <aviksil@in.ibm.com>
412ce916
AS
2678
2679 * grub-core/net/drivers/ieee1275/ofnet.c: Get proper mac address when
2680 using qemu.
2681
6f27a3f6
PFS
26822013-08-14 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2683
2684 * .bzrignore: Add bootinfo.txt, grub.chrp, gnulib/float.h, and
2685 remove-potcdate.sed.
2686
c6ed362a
AB
26872013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2688
2689 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Remove
2690 unused attribute from pull argument.
2691
5e7d9464
AB
26922013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2693
2694 * util/getroot.c (grub_util_is_imsm): Fix descriptor and
2695 memory leak.
2696
dea55e2a
AB
26972013-08-14 Andrey Borzenkov <arvidjaar@gmail.com>
2698
2699 * util/getroot.c (pull_lvm_by_command): add --separator option
2700 to vgs call to disable padding of output to 10 characters.
2701
f0b94ded
VS
27022013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2703
2704 * grub-core/kern/emu/misc.c (grub_device_mapper_supported): Move from
2705 here ...
2706 * grub-core/kern/emu/hostdisk.c (grub_device_mapper_supported): ... to
2707 here.
2708
b828fb5d
VS
27092013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2710
2711 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_drp): Fix device_path
2712 length.
2713
7c9d0c39
VS
27142013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2715
2716 Fix handling of build-time grub-bin2h and grub-mkfont when doing
2717 full Canadian cross. Tested with build=x86_64, host=arm,
2718 target=ppc-ieee1275.
2719
816719c8
VS
27202013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * configure.ac: Error if no $BUILD_CC could be found.
2723 Reported by: DevHC.
2724
2af2353b
VS
27252013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2726
2727 * grub-core/kern/i386/coreboot/init.c: Fix compilation on
2728 i386-multiboot.
2729
797abd0a
VS
27302013-08-14 Vladimir Serbinenko <phcoder@gmail.com>
2731
2732 * grub-core/kern/vga_init.c: Fix compilation on qemu-mips.
2733 * grub-core/kern/mips/qemu_mips/init.c: Likewise.
2734
36e87d25
CW
27352013-08-13 Colin Watson <cjwatson@ubuntu.com>
2736
2737 * util/getroot.c (grub_util_biosdisk_get_grub_dev): Zero out
2738 grub_errno in the case where we handle GRUB_ERR_UNKNOWN_DEVICE by
2739 falling back to the partition device, otherwise a later call to this
2740 function may fail spuriously.
2741 Reported by Axel Beckert. Fixes Debian bug #708614.
2742
273349fe
GS
27432013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2744
2745 * autogen.sh: Replace find -not by the POSIX-compliant find !.
2746
418f86c6
GS
27472013-08-12 Grégoire Sutre <gregoire.sutre@gmail.com>
2748
2749 Prevent shadowing of stdlib's devname(3) on BSD.
2750
2751 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Rename devname
2752 and devlast to diskname and disklast, respectively.
2753
c137aea0
CW
27542013-08-11 Colin Watson <cjwatson@ubuntu.com>
2755
2756 * util/grub-mkconfig.in: Fix detection of Emacs autosave files.
2757
272dc8df 27582013-08-08 Vladimir Testov <vladimir.testov@rosalab.ru>
b4743461
VT
2759
2760 * docs/grub.texi: Introduce terminal window position options:
2761 terminal-left: terminal window's left position
2762 terminal-top: terminal window's top position
2763 terminal-width: terminal window's width
2764 terminal-height: terminal window's height
2765 terminal-border: terminal window's border width
2766 * grub-core/gfxmenu/theme-loader.c: Likewise.
2767 * include/grub/gfxmenu_view.h: Likewise.
2768 * po/exlude.pot: Likewise.
2769 * grub-core/gfxmenu/view.c: Likewise.
2770 Also updated minimal window size.
2771 Also terminal_sanity_check function has been introduced.
272dc8df
VT
2772 * grub-core/tests/checksums.h: Update (terminal window height
2773 is adjusted now for low resolution screen)
b4743461 2774
748a4533
VS
27752013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2776
2777 * grub-core/tests/checksums.h: Update (1-pixel difference in marker
2778 position).
2779
fca5f944
VS
27802013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2781
2782 * po/exclude.pot: Add few recent exceptions.
2783
4f47d809
VS
27842013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * tests/grub_func_test.in: Add unicode.pf2.
2787
a62ae90c
VS
27882013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2789
2790 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Start with
2791 standard rather than noral color, in line with other terminals.
2792
4ed41392
VS
27932013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2794
2795 * grub-core/partmap/dfly.c: Simplify dprintfs for easier gettext
2796 analysis.
2797
3719fbc5
VS
27982013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2799
2800 * grub-core/loader/arm/linux.c: Change printf to dprintf.
2801
459b1d91
VS
28022013-08-02 Vladimir Serbinenko <phcoder@gmail.com>
2803
2804 * grub-core/fs/zfs/zfs.c (check_feature): Cleanup and remove
2805 inappropriate printf.
2806
f4e1ab9d
AB
28072013-07-25 Andrey Borzenkov <arvidjaar@gmail.com>
2808
2809 * .bzrignore: Remove grub-core/lib/dtc-grub,
2810 grub-core/Makefile.libfdt.def
2811 * conf/Makefile.extra-dist: Remove grub-core/Makefile.libfdt.def.
2812
fa471bfa
VS
28132013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * include/grub/video.h (grub_video_register): Keep double-linked as
2816 well as single-linked invariants.
2817 Reported by: qwertial.
2818
d65be02b
VS
28192013-07-25 Vladimir Serbinenko <phcoder@gmail.com>
2820
2821 * grub-core/commands/nativedisk.c (get_uuid): Handle
2822 GRUB_DISK_DEVICE_UBOOTDISK_ID.
2823
ba8bc620
VT
28242013-07-25 Vladimir Testov <vladimir.testov@rosalab.ru>
2825
2826 * grub-core/gfxmenu/widget-box.c: Fixed draw function. Now it takes
2827 maximum of NW, N, NE heights instead of N's height and maximum of
2828 NW, W, SW widths instead of W's width. (So the box will be always
2829 correctly drawn)
2830
4f0ad029
GS
28312013-07-20 Grégoire Sutre <gregoire.sutre@gmail.com>
2832
2833 * grub-core/partmap/bsdlabel.c (netopenbsdlabel_partition_map_iterate):
2834 Fix misuse of variable count.
2835
43d53b72
LL
28362013-07-18 Leif Lindholm <leif.lindholm@arm.com>
28372013-07-18 Francesco Lavra <francescolavra.fl@gmail.com>
28382013-07-18 Vladimir Serbinenko <phcoder@gmail.com>
5bac5d9a 2839
43d53b72
LL
2840 New ports to arm-uboot and arm-efi.
2841 Mostly by Leif Lindholm with some additions from
2842 Francesco Lavra and cleanup by Vladimir Serbinenko.
141430a2 2843
88f8d146
VS
28442013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2845
2846 * grub-core/loader/multiboot_elfxx.c: Check eip after v2p translation
2847 and not before.
2848 Reported by: Leon Drugi.
2849
3f42504c
VS
28502013-07-16 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 * grub-core/kern/powerpc/ieee1275/startup.S: Handle unaligned bss.
2853 Reported by: Paulo Flabiano Smorigo.
2854
d110499b
VT
28552013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2856
2857 * grub-core/gfxmenu/gui_list.c: USe viewport when drawing strings.
2858
a8674ad3
VT
28592013-07-14 Vladimir Testov <vladimir.testov@rosalab.ru>
2860
2861 * grub-core/gfxmenu/gui_list.c: Fix height calculation.
2862
286fe4b3
VS
28632013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2864
2865 * grub-core/fs/zfs/zfs.c: Stylistic fixes.
2866
1bd57aa3
VS
28672013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2868
2869 * grub-core/fs/zfs/zfs.c: Run emacs indent on file.
2870
7a87d69f
AB
28712013-07-14 Andrey Borzenkov <arvidjaar@gmail.com>
2872
2873 * grub-core/net/bootp.c: Export net_* variables.
2874 * grub-core/net/net.c: Likewise.
2875
b2182299
VS
28762013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2877
2878 * grub-core/fs/zfs/zfs.c: Remove brackets around return value.
2879
795b3dc0
VS
28802013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2881
2882 * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute.
2883
68714c43
VS
28842013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2885
2886 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast.
2887
af211bab
VS
28882013-07-14 Vladimir Serbinenko <phcoder@gmail.com>
2889
2890 * grub-core/fs/zfs/zfs_lz4.c: Remove restrict keyword.
2891
0036f02d
MM
28922013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2893
2894 * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Error is encode_size
2895 <= 0.
2896
6d0ddff3
MM
28972013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2898
2899 * grub-core/fs/zfs/zfs.c: Split nvpair iterators into separate
2900 functions.
2901
038016f4
MM
29022013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2903
2904 * grub-core/fs/zfs/zfs_lz4.c: New file.
2905 * grub-core/fs/zfs/zfs.c: Tie up lz4 decompression.
2906
776bdce2
MM
29072013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2908
2909 * grub-core/fs/zfs/zfs.c: Check for feature compatibility.
2910
c71dbd40
MM
29112013-07-14 Massimo Maggi <me@massimo-maggi.eu>
2912
2913 * grub-core/fs/zfs/zfs.c (uberblock_verify): Accept version 5000.
2914 (check_pool_label): Likewise.
2915 * include/grub/zfs/zfs.h: Rewrite SPA_VERSION_* macros.
2916
29172013-07-14 Massimo Maggi <me@massimo-maggi.eu>
53618046
MM
2918
2919 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Fix RAIDZ reporting.
2920
8e67b50f
AB
29212013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2922
2923 * docs/grub.texi (Commands): Document postition parameters
2924 for menuentry command.
2925
f5ae3717
AB
29262013-07-13 Andrey Borzenkov <arvidjaar@gmail.com>
2927
2928 * util/grub-mknetdir.in: Remove stray line from help output.
2929
9c28da2a
VS
29302013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2931
2932 Remove early sm712 init as there is no reason for it (the "watchdog"
2933 effect was due to wrong GPIO map).
2934
139072b8
VS
29352013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2936
2937 * grub-core/commands/pcidump.c: Remove static variables.
2938
c6a61bda
VS
29392013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2940
2941 * grub-core/commands/sleep.c: Refresh screen before sleeping.
2942
51369614
VS
29432013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2944
2945 * configure.ac: Move delimiter after the infos.
2946
efa8640a
VS
29472013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2948
2949 * grub-core/bus/usb/usbhub.c: Fix recheck logic.
2950
6f80a7b2
VS
29512013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2952
2953 * util/grub-mkfont.c (write_font_ascii_bitmap): Fix handling of glyphs
2954 not filling whole 8x16 space.
2955
a2371e19
VS
29562013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2957
2958 * grub-core/normal/charset.c (bidi_line_wrap): Fix spurios warning.
2959
64fce2d8
VS
29602013-07-11 Vladimir Serbinenko <phcoder@gmail.com>
2961
2962 * configure.ac: Indicate which liblzma is used if any.
2963
eb272d84
PW
29642013-06-21 Paul Wise <pabs3@bonedaddy.net>
29652013-06-21 Craig Sanders <savannah@taz.net.au>
2966
2967 * util/grub-reboot.in: Document submenu usage.
2968
a9e5abee
CW
29692013-06-25 Colin Watson <cjwatson@ubuntu.com>
2970
2971 * .bzrignore: Update with a number of new test-related files.
2972
e639c204
CW
29732013-06-25 Colin Watson <cjwatson@ubuntu.com>
2974
2975 * util/grub-script-check.c: Fail on scripts containing no
2976 commands, to guard against corrupted grub-mkconfig setups that
2977 produce no useful output.
2978 * tests/grub_script_no_commands.in: New test.
2979 * Makefile.util.def (grub_script_no_commands): Add.
2980 Reported by Hans Putter. Fixes Debian bug #713886.
2981
a4c89b17
AB
29822013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2983
2984 * grub-core/disk/diskfilter.c: Forgot to remove comment
2985 from previous commit.
2986
5b06b53c
AB
29872013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2988
2989 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
2990 grub_term_normal_color, do not hardcode GRUB_TERM_DEFAULT_NORMAL_COLOR.
2991
702da5c9
AB
29922013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2993
2994 * conf/Makefile.extra-dist: Add grub-core/fs/cpio_common.c.
2995
aa62a5b7
AB
29962013-06-16 Andrey Borzenkov <arvidjaar@gmail.com>
2997
2998 * grub-core/disk/diskfilter.c (scan_devices): Iteratively
2999 rescan diskfilter devices until nothing new is found.
3000
4aa237c8
VS
30012013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3002
3003 Fix casts when compiling coreboot-specific code for 64-bit EFI.
3004
93d8479b
VS
30052013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3006
3007 Don't try to detect cbfs on *-emu.
3008
837222cc
VS
30092013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3010
3011 * grub-core/term/gfxterm.c: USe right background color when scrolling.
3012
99c971af
VS
30132013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 Add support for processed coreboot payload chainloading.
3016
e6930a45
VS
30172013-06-16 Vladimir Serbinenko <phcoder@gmail.com>
3018
3019 Enable coreboot information commands even when not loaded as
3020 coreboot payload (e.g. when loaded from SeaBIOS-as-payload).
3021
5027af38
VS
30222013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3023
3024 Support for cbfs. Also factor out the part which is common
3025 for all archives to a separate module. This splits tar from cpio
3026 as they are very different but keeps cpio, cpio_be, odc and newc
3027 together since they're very similar.
3028
a5b55c4b
DM
30292013-06-15 David Michael <fedora.dm0@gmail.com>
3030
3031 * configure.ac (FREETYPE): Change AC_CHECK_PROGS to AC_CHECK_TOOLS.
3032 (freetype_cflags,freetype_libs): Change freetype-config to $FREETYPE.
3033
0301a8b3
VS
30342013-06-15 Vladimir Serbinenko <phcoder@gmail.com>
3035
3036 * tests/grub_script_eval.in: Really add the eval test.
3037
3d84cb17
VS
30382013-06-14 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 Move flavour-specific parts out of common cpio.c file and
3041 rename remaining to cpio_common.c
3042
593e430c
AB
30432013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3044
3045 * grub-core/script/execute.c (grub_script_execute_sourcecode): Split
3046 off new function grub_script_execute_new_scope. Change callers to use
3047 either of them as appropriate.
3048 * grub-core/commands/eval.c: New command eval.
3049 * docs/grub.texi (Commands): Document it.
3050
63c29849
AB
30512013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3052
3053 * grub-core/kern/corecmd.c (grub_core_cmd_set): Use grub_env_get
3054 to fetch values when listing.
3055
cc284112
AB
30562013-06-07 Andrey Borzenkov <arvidjaar@gmail.com>
3057
3058 Fix make dist on non-pc.
3059
30602013-06-07 Francesco Lavra <francescolavra.fl@gmail.com>
b8578da6
FL
3061
3062 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix handling of paths
3063 without a device name.
3064
69544d1e
VS
30652013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3066
3067 Remove enable_executable_check as it's not needed anymore.
3068 Reported by: dougray.
3069
96dbe648
VS
30702013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3071
3072 * grub-core/disk/diskfilter.c (insert_array): Fix order to discover
3073 ambigouos RAID before discovering RAIDs on top of it.
3074 Reported by: bodom.
3075
ccfc0bdb
VS
30762013-06-07 Vladimir Serbinenko <phcoder@gmail.com>
3077
3078 Fix typo (failback vs fallback).
3079
f2587088
AB
30802013-05-31 Andrey Borzenkov <arvidjaar@gmail.com>
3081
3082 * util/grub.d/30_os-prober.in: Add support for probing EFI
3083 System Partition (as of os-prober 1.58).
3084
cec5cf0c
VS
30852013-05-31 Vladimir Serbinenko <phcoder@gmail.com>
3086
3087 * configure.ac: Add yet another path to unifont. For parabola.
3088
e40b4596
JT
30892013-05-30 Josh Triplett <josh@joshtriplett.org>
3090
3091 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix Ctrl-u
3092 handling to copy the killed characters to the kill buffer as
3093 UCS4 stored as grub_uint32_t rather than as 8-bit characters
3094 stored as char. Eliminates UCS4 truncation and corruption
3095 observed when killing characters with Ctrl-u and yanking them
3096 back with Ctrl-y.
3097
fc4c4fdd
VS
30982013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3099
3100 Detach optional parts of gfxterm and integrate in with coreboot init.
3101
6570b205
VS
31022013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3103
3104 Move blit and fill dispatcher to appropriate files to decrease export
3105 and relocation overhead.
3106
b8323067
VS
31072013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3108
3109 * grub-core/font/font.c, include/grub/font.h: Inline simple font
3110 functions.
3111
3cc1878f
VS
31122013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3113
3114 * grub-core/Makefile.am: Fix compilation problem with some
3115 automake versions.
3116
4b80e43c
VS
31172013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3118
3119 * configure.ac: Add Ubuntu path to unifont and report unifont path used.
3120
57e0c20c
VS
31212013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3122
3123 * Makefile.am, conf/Makefile.common: Fix compilation problem with some
3124 automake versions.
3125
4fd42c53
VS
31262013-05-30 Vladimir Serbinenko <phcoder@gmail.com>
3127
3128 * grub-core/commands/acpihalt.c: Fix handling of DSDT in presence of
3129 SSDT.
3130
1e908b34
RS
31312013-05-15 Radosław Szymczyszyn <lavrin@gmail.com>
3132
3133 * grub-core/partmap/dfly.c: New partition map.
3134
1359e474
VS
31352013-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Fix empty path
3138 checking.
3139 Reported by: Francesco Lavra.
3140
17806392
AB
31412013-05-14 Andrey Borzenkov <arvidjaar@gmail.com>
3142
3143 * gentpl.py: Replace EXTRA_DIST with dist_noinst_DATA or
3144 dist_<directory>_DATA. EXTRA_DIST is ignored by automake inside
3145 false conditions.
3146 * conf/Makefile.common: define dist_grubconf_DATA
3147
cdce14fa
VS
31482013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3149
3150 Progressively skip menu elements on small terminals rather
3151 than crashing.
3152
c8d6cc3c
VS
31532013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * grub-core/normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
3156 to avoid losing last column.
3157
a73b31ce
VS
31582013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3159
3160 * po/exclude.pot: Add missing string "%C".
3161
1202c764
VS
31622013-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3163
3164 * tests/util/grub-shell.in: Remove the temporary directory on grub-emu
3165 after the test.
3166
50268344
VS
31672013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * util/grub-install.in: Gettextize "Not found" message.
3170
62b15edf
VS
31712013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 Fix distfiles list.
3174 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
3175
31762013-05-11 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
a9c0b699
PFS
3177
3178 * grub-core/net/bootp.c (grub_cmd_bootp): Check if there is any card
3179 present.
3180 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_NET_NO_CARD.
3181
709ad61b
VS
31822013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3183
3184 * grub-core/tests/setjmp_test.c: Ignore missing noreturn.
3185
d128901a
VS
31862013-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3187
3188 * grub-core/fs/hfspluscomp.c (grub_hfsplus_compress_attr): Add packed
3189 attribute since structure is not necessarily aligned.
3190
34b22f5c
AB
31912013-05-11 Andrey Borzenkov <arvidjaar@gmail.com>
3192
3193 * docs/grub.texi (Device syntax): Clarify description of network
3194 drives.
3195
0f7e980b
VS
31962013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3197
3198 Redirect xasprintf to grub_xvasprintf rather than having #ifdef's
3199 for vasprintf presence.
3200
30b03dc2
VS
32012013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3202
3203 * util/grub-install.in: Handle efibootmgr presence check.
3204 Reported by: Leif Lindholm.
3205
0dc11c08
VS
32062013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * grub-core/commands/testspeed.c: Reuse formatting string to decrease
3209 new strings to translate.
3210
f8024c3f
VS
32112013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3212
3213 * util/grub-mkrescue.in: Replace `STR' with `STRING' to avoid adding
3214 yet another string (pun intended) to translate.
3215
b4c1da62
VS
32162013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * po/POTFILES-shell.in: Autogenerate it.
3219
0ef7478b
VS
32202013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3221
3222 * grub-core/net/net.c (grub_net_open_real): Autoload network modules.
3223
8200fa15
VS
32242013-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3225
3226 * grub-core/term/terminfo.c: Rename ANSI_C0 to ANSI_CSI to avoid
3227 misnomer.
3228
091945b2
AB
32292013-05-08 Andrey Borzenkov <arvidjaar@gmail.com>
3230
3231 * docs/grub.texi (Network): Add description of net_default_interface,
3232 net_default_ip and net_default_mac. Rewrite variables description
3233 to emphasize that they are per-interface.
3234
0e7b2e32
VS
32352013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3236
3237 New test: cmdline and cat.
3238
16f7c8f6
VS
32392013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3240
3241 * grub-core/commands/cat.c: Show UTF-8 characters.
3242
3e912fda
VS
32432013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3244
3245 * conf/Makefile.common: Poison float and double on non-emu.
3246
ee0220bc
VS
32472013-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3248
3249 * configure.ac: Don't disable extended registers on emu.
3250
89e0240c
VS
32512013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3252
3253 * configure.ac: Don't use extended registers on x86_64.
3254 Reported by: Peter Jones.
3255
e56d9637
VS
32562013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3257
3258 * grub-core/term/efi/console.c: Fix compile error.
3259
8098f655
VS
32602013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3261
3262 Compressed HFS+ support.
3263
16940e07
VS
32642013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3265
3266 * grub-core/commands/videoinfo.c: Use "paletted" rather than "packed
3267 pixel".
3268
c5dbc13d
VS
32692013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3270
3271 Menu color test.
3272
011f8ae8
VS
32732013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3274
3275 * grub-core/tests/setjmp_test.c: New test.
3276
2aa072d7
VS
32772013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3278
3279 New variables 'net_default_*' to determine MAC/IP of default interface.
3280
43fe02cb
VS
32812013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3282
3283 * tests/gettext_strings_test.in: A test to check for strings not
3284 marked for translation.
3285
bed06142
VS
32862013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3287
3288 * autogen.sh: Exclude unused libgcrypt files from translation.
3289
fb2666b5
VS
32902013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3291
3292 Simplify few strings.
3293
d22840ec
VS
32942013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3295
3296 Mark few forgotten strings for translation.
3297
e34092fd
VS
32982013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3299
3300 * grub-core/loader/linux.c: Use grub_dprintf for debug statements
3301 rather than printf.
3302
47cf82b4
VS
33032013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3304
3305 * grub-core/video/readers/jpeg.c: Use grub_dprintf for debug statements
3306 rather than printf.
3307 * grub-core/video/readers/tga.c: Likewise.
3308
1eed0e6e
VS
33092013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 * tests/priority_queue_unit_test.cc: New test.
3312
c5b7697b
VS
33132013-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3314
3315 * grub-core/font/font.c: Use grub_dprintf for debug statements rather
3316 than printf.
3317
5945c2f8
AB
33182013-05-06 Andrey Borzenkov <arvidjaar@gmail.com>
3319
3320 Reimplement grub-reboot to not depend on saved_entry. Use next_entry
3321 variable for one time boot menu entry.
3322
fa292343
B
33232013-05-05 Bean <bean123ch@gmail.com>
3324
3325 * grub-core/commands/testspeed.c: New command testspeed.
3326
310d4214
VS
33272013-05-05 Vladimir Serbinenko <phcoder@gmail.com>
3328
3329 Factor-out human-size printing.
3330
85002bf3
VS
33312013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3332
3333 Agglomerate more mallocs to speed-up gfxterm.
3334
22b06e96
VS
33352013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3336
3337 Speed-up gfxterm by slightly agglomerating mallocs.
3338
b7c036bc
VS
33392013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3340
3341 More video checks.
3342
92323d1f
VS
33432013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3344
3345 Speed-up gfxterm by saving intermediate results in index+alpha
3346 format.
3347
0fb356a3
VS
33482013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3349
3350 * grub-core/tests/lib/functional_test.c: Don't stop on first failed
3351 test.
3352
44dea3f9
VS
33532013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3354
3355 * grub-core/normal/menu_text.c (menu_clear_timeout): Clear second
3356 line of timeout as it may contain the rest of long line.
3357
14af86e4
VS
33582013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3359
3360 * grub-core/normal/main.c: Fix freed memory dereference.
3361
03f7c8c3
VS
33622013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3363
3364 Fix several memory leaks.
3365
c686014c
VS
33662013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3367
3368 * grub-core/normal/menu.c (run_menu): Fix timeout reference point.
3369
0788a695
VS
33702013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3371
3372 * grub-core/gettext/gettext.c: Try $lang.gmo as well.
3373
daf01d61
VS
33742013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3375
3376 Fix test -a and -o precedence.
3377 Reported by: adrian15.
3378
82ae74d7
VS
33792013-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3380
3381 * grub-core/font/font.c (grub_font_construct_glyph): Fix memory leak.
3382
8cec7bd4
AB
33832013-05-03 Andrey Borzenkov <arvidjaar@gmail.com>
3384
3385 Rename grub-core/tests/checksums.c into grub-core/tests/checksums.h
3386 and add it as source to functional_test module.
3387
aa73d688
VS
33882013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3389
3390 * grub-core/tests/video_checksum.c: Don't set GENERATE_MODE.
3391
c104b6f9
VS
33922013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3393
3394 New series of tests for gfxterm and gfxmenu.
3395
7391c4d5
VS
33962013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3397
3398 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Allow specifying
3399 the theme path relative to $prefix/themes.
3400
cff50118
VS
34012013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3402
3403 * grub-core/video/fb/fbblit.c (grub_video_fbblit_blend_BGR888_RGBA8888):
3404 Fix order bug.
3405 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
3406
7c332bdc
VS
34072013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3408
3409 * include/grub/gui.h (grub_gfxmenu_timeout_unregister): Free cb
3410 descriptor.
3411
a4f9a5ff
VS
34122013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3413
3414 * grub-core/gfxmenu/view.c (grub_gfxmenu_view_new): Clear
3415 grub_gfxmenu_timeout_notifications.
3416 (grub_gfxmenu_view_destroy): Likewise.
3417
b5a2114d
VS
34182013-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/normal/term.c (print_ucs4_real): Fix startwidth in dry run.
3421
a8905e8a
VS
34222013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3423
3424 Several fixes to ieee1275 and big-endian video.
3425
813c1622
VS
34262013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3427
3428 Add missing exports on mips.
3429
3f3e7326
VS
34302013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3431
3432 * grub-core/tests/videotest_checksum.c (videotest_checksum): Error out
3433 if no unifont is found.
3434 Restore original keyboard.
3435
095accd1
VS
34362013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3437
3438 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3439 GRUB_VIDEO_ADAPTER_CAPTURE: to handled drived ids.
3440
50361660
VS
34412013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3442
3443 First automated video test (running videotest and comparing results)
3444
cd0f6eec
VS
34452013-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3446
3447 * grub-core/commands/videotest.c: Reduce flickering and draw 6 squares
3448 instead of 2 to have full RGB/CMY test pattern.
3449
3f9634e5
VS
34502013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3451
3452 Add few more tests.
3453
583e5b64
VS
34542013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3455
3456 * include/grub/arc/arc.h: Account for missing "other" peripheral on
3457 ARCS. All users updated.
3458
aa7bcb99
VS
34592013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3460
3461 * grub-core/kern/mips/loongson/init.c: Support halt for loongson 2E.
3462
95ef1a54
VS
34632013-04-30 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 * grub-core/partmap/amiga.c: Fix size of checksummed block.
3466
46546fc5
VS
34672013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3468
3469 * configure.ac: Use -mcmodel=large on x86_64-emu as well.
3470 Reported by: qwertial.
3471
3476e0ef
VT
34722013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
3473
3474 * grub-core/gfxmenu/circular_progress.c: Set start_angle in degrees
3475 with syntax "XXX deg"/"XXX °".
3476
96f33fed
VS
34772013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3478
3479 Make PCI init in i386-qemu port more robust.
3480
34812013-04-29 Vladimir Testov <vladimir.testov@rosalab.ru>
dc5a311a
VT
3482
3483 * grub-core/gfxmenu/gui_list.c: Refresh first_shown_entry value when
3484 cached view is reused.
3485 * grub-core/gfxmenu/view.c: Call the refresh procedure for all
3486 open boot menus.
3487
c53b4e67
VS
34882013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 Unify more code in grub-install_header.
3491
f7457fb2
VS
34922013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3493
3494 Add few new tests.
3495
e2f27a8c
VS
34962013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3497
3498 Enforce disabling of firmware disk drivers when native drivers kick in.
3499
ef9d8cd5
VS
35002013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3501
3502 * grub-core/commands/nativedisk.c: Customize the list of modules on
3503 platform. Don't try to search for disks already using native drivers.
3504
f7bf6c31
VS
35052013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3506
3507 * grub-core/bus/usb/uhci.c: Fix DMA handling and enable on all PCI
3508 platforms.
3509
bdc4add8
VS
35102013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3511
3512 * grub-core/script/execute.c (grub_script_arglist_to_argv): Fix
3513 handling of variables containing backslash.
3514
e9e46c9a
VS
35152013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3516
3517 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE):Fix a NULL pointer
3518 dereference.
3519 Reported by: qwertial.
3520
0e90dee8
VS
35212013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3522
3523 * grub-core/kern/mips/arc/init.c: Fix prefix detection.
3524
e0aacf24
VS
35252013-04-29 Vladimir Serbinenko <phcoder@gmail.com>
3526
3527 * grub-core/lib/arg.c (grub_arg_show_help): Fix a NULL pointer
3528 dereference.
3529 Reported by: qwertial.
3530
3c0003c3
VS
35312013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 * docs/grub.texi: Add a comment about usefullness of nativedisk.
3534
adb7d667
VS
35352013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3536
3537 * grub-core/commands/nativedisk.c: Ignore unknown filesystem error.
3538
7cd0df84
VS
35392013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3540
3541 New command `nativedisk'.
3542
02adbb93
VS
35432013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3544
3545 * grub-core/io/lzopio.c: Use GRUB_PROPERLY_ALIGNED_ARRAY.
3546 * grub-core/loader/i386/bsd.c: Likewise.
3547
9fb0fd4f
VS
35482013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3549
3550 * grub-core/disk/ahci.c: Fix compilation for amd64 (format warnings).
3551
bd69257a
VS
35522013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3553
3554 * include/grub/efi/api.h (GRUB_EFI_DEVICE_PATH_LENGTH): Use
3555 grub_get_unaligned16 rather than shifts.
3556
178c2764
VS
35572013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3558
3559 * grub-core/kern/file.c: Use const char * rather than casting to
3560 non-const.
3561
eadfad24
VS
35622013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3563
3564 * grub-core/commands/probe.c: Add missing grub_device_close.
3565
9f73ebd4
VS
35662013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3567
3568 * INSTALL: Document linguas.sh.
3569
965fa829
VS
35702013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3571
3572 Remove POTFILES.in and regenerate it in autogen.sh.
3573
d417ddc4
VS
35742013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3575
3576 Move --directory/--override-directorry to grub-install_header and unify.
3577
f97ec546
VS
35782013-04-28 Vladimir Serbinenko <phcoder@gmail.com>
3579
3580 * grub-core/term/morse.c: Macroify dih and dah.
3581
b2d7470c
PFS
35822013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3583
3584 * include/grub/macho.h: Set GRUB_MACHO_FAT_EFI_MAGIC as unsigned.
3585
141e2a78
VS
35862013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3587
3588 * grub-core/term/ns8250.c: Systematically probe ports by writing
3589 to SR before using them.
3590
1dd70ebd
PFS
35912013-04-27 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
3592
3593 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix path output for sas
3594 disks.
3595 (check_sas): Get sas_adress info.
3596
c796a107
VS
35972013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3598
3599 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix handling of empty
3600 ports.
3601
43168646
LD
36022013-04-27 Leon Drugi <eyak>
3603
3604 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Fix cast in
3605 BSS clearing.
3606
e7b8fd08
VS
36072013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3608
3609 Core compression test.
3610
17f9fd29
VS
36112013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 Implement grub_machine_get_bootlocation for ARC.
3614
dc2a6c8b
VS
36152013-04-27 Vladimir Serbinenko <phcoder@gmail.com>
3616
3617 Improve AHCI detection and command issuing.
3618
f25a2ba6
VS
36192013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3620
3621 Fix pseries test.
3622
a6393224
VS
36232013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3624
3625 Make 'make check' work on emu.
3626
db99fbe8
VS
36272013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3628
3629 Replace libcurses with our own vt100 handling for the ease of testing
3630 and decreasing prerequisites.
3631
b24ca7cd
VS
36322013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3633
3634 * grub-core/Makefile.core.def: Fix grub-emu and grub-emu-lite sources.
3635
63314aa4
VS
36362013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3637
3638 * util/getroot.c (exec_pipe): Put proper #if's so that its users don't
3639 compile when not needed.
3640
c1b00fff
VS
36412013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3642
3643 * tests/pseries_test.in: New test.
3644
f93e89ef
VS
36452013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3646
3647 Add test to check that different boot mediums work.
3648
c4b456d3
VS
36492013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3650
3651 * util/grub-mkrescue.in: Rename i386-ieee1275 core image due to
3652 ofw limited ISO support.
3653
5fe67f39
VS
36542013-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3655
3656 * configure.ac: Fix loongson conditional.
3657
7f63a64f
VS
36582013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3659
3660 Enable mipsel-arc.
3661
b04b5990
VS
36622013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3663
3664 Add serial on ARC platform.
3665
88d2f302
VS
36662013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3667
3668 * grub-core/boot/powerpc/bootinfo.txt.in: Missing update from previous
3669 commit.
3670
86eb23bc
VS
36712013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3672
3673 * tests/partmap_test.in: Add missing double semicolon.
3674
eec3bb75
VS
36752013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3676
3677 * util/grub-mkrescue.in: Fix loongson filename.
3678
e0810df3
VS
36792013-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3680
3681 * util/grub-mkrescue.in: Move all files that don't have a location
3682 set in stone under /boot/grub. Use ISO hard links rather than copies
3683 to save some space.
3684
65a6b30b
VS
36852013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3686
3687 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Ignore
3688 bogus SLOF values.
3689
6aff0107
VS
36902013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3691
3692 Make check work on mips-arc.
3693
5e013e56
VS
36942013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3695
3696 * util/grub-mkrescue.in: Alias sashARCS as sash.
3697
d1989e2e
VS
36982013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/term/arc/console.c: Assume that console is 80x24 vt100 if
3701 it's serial.
3702
1a25e72c
VS
37032013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * util/grub-install.in: Fix target fo qemu_mips.
3706 Fix extension on EFI.
3707
a59a9826
VS
37082013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3709
3710 * grub-core/normal/menu_text.c (print_entry): Put an asterisk
3711 in front of chosen entry to mark it even if highlighting is lost.
3712
1a40f80c
VS
37132013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3714
3715 * grub-core/loader/i386/linux.c (grub_linux_boot): Default to
3716 gfxpayload=keep if cbfb is active.
3717
e343549c
VS
37182013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3719
3720 * grub-core/disk/ata.c (grub_ata_real_open): Use grub_error properly.
3721
45fbd9a2
VS
37222013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3723
3724 Add missing video ids to coreboot and ieee1275 video.
3725
ab1440bd
VS
37262013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3727
3728 * util/grub-mkrescue.in: Add mips-arc support.
3729
cdeb8324
VS
37302013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3731
3732 * grub-core/kern/dl.c (grub_dl_resolve_symbols): Handle malloc failure.
3733
8528c879
VS
37342013-04-24 Vladimir Serbinenko <phcoder@gmail.com>
3735
3736 Move mips-arc link address. Previous link address was chosen
3737 in belief that RAM on SGI platforms grows down while in fact it
3738 grows up from an unusual base.
3739
17fca573
VS
37402013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3741
3742 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate_iter):
3743 Fix a type which prevented CD-ROM and floppy boot.
3744
d178788e
VS
37452013-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3746
3747 Support coreboot framebuffer.
3748
3749 * grub-core/video/i386/coreboot/cbfb.c: New file.
3750
fe4c3e7e
VS
37512013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3752
3753 * grub-core/kern/mm.c (grub_mm_init_region): Fix condition for
3754 detecting too small regions.
3755
ec2dd179
VS
37562013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/Makefile.core.def (legacycfg): Enable on EFI.
3759
872dac83
VS
37602013-04-20 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_alloc_region):
3763 Remove dprintf.
3764 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
3765
90ec4b7f
VS
37662013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3767
3768 * grub-core/kern/ieee1275/init.c (grub_claim_heap): Improve handling
3769 of GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3770 * grub-core/loader/powerpc/ieee1275/linux.c
3771 (grub_linux_claimmap_iterate): Handle GRUB_IEEE1275_FLAG_FORCE_CLAIM.
3772
f32555dd
VS
37732013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3774
3775 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3776 Look for /boot-rom as well as /rom/boot-rom.
3777
38649799
VS
37782013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3779
3780 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix error
3781 handling when creating text_layer failed.
3782 * grub-core/video/video.c (grub_video_create_render_target):
3783 Set result to 0 on error.
3784 (grub_video_delete_render_target): Do not dereference NULL.
3785
aeace7f7
VS
37862013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3787
3788 * grub-core/kern/elfXX.c (grub_elfXX_load): Handle
3789 GRUB_ELF_LOAD_FLAGS_30BITS and GRUB_ELF_LOAD_FLAGS_62BITS.
3790 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32),
3791 (grub_linux_load64): Mask out 2 high bits.
3792
4eafa175
AB
37932013-04-19 Andrey Borzenkov <arvidjaar@gmail.com>
3794
3795 * util/grub.d/30_os-prober.in: Add onstr to linux entries in one
3796 more place.
3797
daaa64bd
VS
37982013-04-19 Vladimir Serbinenko <phcoder@gmail.com>
3799
3800 Add support for pseries and other bootinfo machines to grub-mkrescue.
3801
3802 Tested by: Paulo Flabiano Smorigo.
3803
d0d2daa6
VS
38042013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3805
3806 * util/grub-mkrescue.in: Add GPT for EFI boot.
3807
b193e100
VS
38082013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3809
3810 * grub-core/disk/efi/efidisk.c: Detect floppies by ACPI ID.
3811 It improves performance in qemu.
3812
a0f8f3ac
VS
38132013-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3814
3815 * build-aux/snippet: Add missing gnulib files.
3816
284df0e2
AB
38172013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3818
3819 * grub-core/disk/efi/efidisk.c: Really limit transfer chunk size.
3820
740201f3
AB
38212013-04-16 Andrey Borzenkov <arvidjaar@gmail.com>
3822
3823 * autogen.sh: Use "-f" in addition for "-h" when checking file presence.
3824
a7e03923
PJ
38252013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
38262013-04-15 Peter Jones <pjones@redhat.com>
3827
3828 * grub-core/disk/efi/efidisk.c: Limit disk read or write chunk to 0x500
3829 sectors.
3830 Based on patch by Peter Jones.
3831
25fc51a8
VS
38322013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3833
3834 Fix DMRAID partition handling.
3835
88017d47
VS
38362013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3837
3838 * tests/grub_cmd_date.in: Skip on sparc64.
3839
fa7d914e
VS
38402013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * tests/grub_script_expansion.in: Use fixed-string grep to skip over
3843 firmware error messages.
3844
cbe57a48
VS
38452013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3846
3847 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_devalias_next): Make
3848 source and destination differ.
3849
21aecce0
VS
38502013-04-15 Vladimir Serbinenko <phcoder@gmail.com>
3851
3852 * grub-core/disk/ieee1275/ofdisk.c: Fix CD-ROM and boot device
3853 detection.
3854
25092d29
VS
38552013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3856
3857 * grub-core/lib/posix_wrap/sys/types.h: Make WORDS_BIGENDIAN definition
3858 match config-util.h to avoid warnings and increase compatibility.
3859
79451522 38602013-04-14 Szymon Janc <szymon@janc.net.pl>
25092d29 38612013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
79451522
VS
3862
3863 Add option to compress files on install/image creation.
3864
78b7d77b
VS
38652013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3866
3867 * docs/grub-dev.texi: Rearrange menu to match the section order.
3868 Reported by: Bryan Hundven.
3869
cc2fa5ec
VS
38702013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3871
3872 * grub-core/loader/i386/linux.c: Remove useless leftover pointer.
3873
b49fe879
VS
38742013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3875
3876 Move GRUB out of system area when using xorriso 1.2.9 or later.
3877
5351da81
VS
38782013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3879
3880 * tests/grub_cmd_date.in: Add missing exit 1.
3881
c9d586ea
VS
38822013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3883
3884 * tests/partmap_test.in: Skip on sparc64.
3885
3f729741
VS
38862013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3887
3888 Support grub-shell on sparc64.
3889
8ca86b3a
VS
38902013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 Support mkrescue on sparc64.
3893
aa1af9bb
VS
38942013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3895
3896 Allow IEEE1275 ports on path even if it wasn't detected automatically.
3897 Needed on OpenBIOS due to incomplete device tree.
3898
ac4fea79
VS
38992013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3900
3901 * grub-core/disk/ieee1275/ofdisk.c: Iterate over bootpath even if it
3902 would be otherwise excluded.
3903
39042013-04-14 Vladimir Serbinenko <phcoder@gmail.com>
87206f2c
VS
3905
3906 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options):
3907 Inline name defines used only once.
3908
fe22b071
VS
39092013-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3910
3911 Fix memory leaks in ofnet.
3912 Reported by: Francesco Lavra.
3913
9d21381b
VS
39142013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3915
3916 * docs/man/grub-glue-efi.h2m: Add missing file.
3917
07aec23c
VS
39182013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3919
3920 * util/grub-mkrescue.in: Fix wrong architecture for ppc dir.
3921
67ab8353
VS
39222013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3923
3924 Better support Apple Intel Macs on CD.
3925
ba44ca6d
VS
39262013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 Replace stpcpy with grub_stpcpy in tools.
3929
bbdd6305
VS
39302013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3931
3932 Handle Japanese special keys.
3933 Reported by: Hiroyuki YAMAMORI.
3934 Codes supplied by: Hiroyuki YAMAMORI.
3935
8573d302
VS
39362013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3937
3938 * util/grub-mkimage.c: Document memdisk implying --prefix.
3939
d70dbab7
VS
39402013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3941
3942 * grub-core/bus/usb/ehci.c (grub_ehci_fini_hw): Ignore errors, not
3943 much we can do about it anyway.
3944
51a4c3e3
AN
39452013-04-12 Aleš Nesrsta <starous@volny.cz>
3946
3947 Fix handling of split transfers.
3948
92c8f58d
VS
39492013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3950
3951 * grub-core/net/http.c: Fix bad free.
3952
b7d17a49
VS
39532013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * grub-core/net/drivers/ieee1275/ofnet.c: Don't attempt to send more
3956 than buffer size.
3957
a3d566d4
VS
39582013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 Disable partmap check on i386-ieee1275 due to openfirmware issues.
3961
a936af56
VS
39622013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3963
3964 * tests/util/grub-shell.in: Fix it on powerpc.
3965
51212234
VS
39662013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3967
3968 Turn off QEMU ACPI-way since new releases don't have shutdown port
3969 anymore.
3970
a21eec9e
VS
39712013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3972
3973 * docs/grub.texi: Update coreboot status info.
3974
e3734b84
VS
39752013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3976
3977 * tests/grub_cmd_date.in: New test for datetime.
3978
f9d40055
VS
39792013-04-12 Vladimir Serbinenko <phcoder@gmail.com>
3980
3981 * tests/partmap_test.in: Fix missing qemudisk setting.
3982
dbc56d8f
VS
39832013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3984
3985 Support i386-ieee1275 grub-mkrescue and make check on it.
3986
a79b8a15
VS
39872013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3988
3989 Merge powerpc grub-mkrescue flavour with common. Use xorriso HFS+
3990 feature for it.
3991
48f39bb4
VS
39922013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3993
3994 * docs/grub.texi: Fix description of GRUB_CMDLINE_XEN and
3995 GRUB_CMDLINE_XEN_DEFAULT.
3996 Reported by: Marc Warne (GigaTux) <gigatux>
3997
053cfcdd
VS
39982013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3999
4000 Import new gnulib.
4001
93cd84df
VS
40022013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4003
4004 Use ACPI shutdown intests as traditional port was removed.
4005
f4b1fa4f
AB
40062013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
4007
4008 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
4009 distinction.
4010
49818a59
VS
40112013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
4012
4013 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
4014 Fix few warining messages and leaks while on it.
4015
9277a306
AB
40162013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
4017
4018 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
4019 links under grub-core/lib/libgcrypt-grub/mpi.
4020
d5e2a158
VS
40212013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4022
4023 Fix ia64-efi image generation on big-endian machines. Deduplicate
4024 some code while on it.
4025 Reported by: Leif Lindholm.
4026
18866643
AB
40272013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4028
4029 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
4030 as extra_dist.
4031
ca53deb8
AB
40322013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
4033
4034 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
4035
d4c4b8e1
BH
40362013-04-08 Bryan Hundven <bryanhundven@gmail.com>
4037
4038 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
4039 texinfo-5.1.
4040
47043f95
VS
40412013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
4042
4043 * grub-core/normal/term.c: Few more fixes for menu entry editor
4044 rendering.
4045 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4046
a3216068
VS
40472013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
4048
4049 * grub-core/normal/term.c: Few more fixes for menu entry editor
4050 rendering.
4051 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
4052
21026747
AB
40532013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4054
4055 * conf/Makefile.extra-dist (EXTRA_DIST): Add
4056 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
4057
59624ca8
AB
40582013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
4059
4060 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
4061 instead of hardcoding grub.mo.
4062
1f44478c
FN
40632013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
4064
4065 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
4066
eeada7b1
VS
40672013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4068
4069 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
4070 grub-core/disk/geli.c.
4071
132867de
VS
40722013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4073
4074 * util/grub-mkfont.c: Prefer enum to #define.
4075
de73de17
VS
40762013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4077
4078 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
4079
1865baa7
VS
40802013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4081
4082 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
4083
ce7d92a9
VS
40842013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4085
4086 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
4087
52eab656
VS
40882013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4089
4090 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
4091
98b23b95
VS
40922013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4093
4094 * include/grub/bsdlabel.h: Use enums.
4095
0467a5dd
VS
40962013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
4097
4098 Move GRUB_CHAR_BIT to types.h.
4099
16cc9f03
AB
41002013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4101
4102 * docs/grub.texi: Document more user commands.
4103
3152aecb
AB
41042013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
4105
4106 * docs/grub.texi: Document menuentry --id option.
4107
c506fc30
FL
41082013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
4109
4110 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
4111
aa428238
VS
41122013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4113
4114 Unify file copying setup across different install scripts. Add
4115 options for performing partial install.
4116
efe0cdda
PJ
41172013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
41182013-04-04 Peter Jones <pjones@redhat.com>
4119
4120 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
4121
f75835bd
VS
41222013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4123
4124 Use TSC as a possible time source on i386-ieee1275.
4125
2cd5ce6c
VS
41262013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4127
4128 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
4129 Init err.
4130
c9625630
VS
41312013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4132
4133 * util/grub-setup.c (setup): Handle some corner cases.
4134
be008941
VS
41352013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4136
4137 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
4138
1a78d573
VS
41392013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4140
4141 * grub-core/commands/verify.c: Save verified file to avoid it being
4142 tampered with after verification was done.
4143
db8ff59f
VS
41442013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4145
4146 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
4147 reported width by one to compensate for curesor algorithm problem.
4148
91bf46b1
VS
41492013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4150
4151 Fix screen corruption in menu entry editor and simplify the code
4152 flow while on it.
4153
a7b1d693
AB
41542013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
4155
4156 * util/grub-mount.c (fuse_init): Return error if fuse_main
4157 failed.
4158
31df9ad8
FL
41592013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
4160
4161 * include/grub/elf.h: Add missing ARM relocation codes and fix
4162 existing ones.
4163
07f392eb
VT
41642013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4165
4166 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
4167
9efd73ec 41682013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
c3578acf
VT
41692013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
4172 into account when calculating radius.
4173
41742013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
9efd73ec
VT
4175
4176 * grub-core/gfxmenu/view.c: Fix off-by-one error.
4177
4985ddaa
VT
41782013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
4179
4180 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
4181
8c3635ff
RS
41822013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4183
4184 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
4185 missing closing bracket.
4186
74a35e69
RS
41872013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
4188
4189 * INSTALL: Mention xorriso requirement.
4190
40f1c000
AB
41912013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
4192
4193 * grub-core/commands/verify.c: Fix hash algorithms values for
4194 the first three hashes - they start with 1, not with 0.
4195
e75fdee4
VS
41962013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4197
4198 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
4199 Try terminating EFI services several times due to quirks in some
4200 implementations.
4201
33028f4c
CW
42022013-03-26 Colin Watson <cjwatson@ubuntu.com>
4203
4204 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
4205 skipping Event, Device, Processor, PowerRes, ThermalZone, and
4206 BankField extended opcodes.
4207 (get_sleep_type): Add minimal scope handling (just enough to
4208 handle setting the scope to the root path).
4209 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
4210 * include/grub/acpi.h: Add enumeration values for Event, Device,
4211 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
4212
33871a10
VT
42132013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
4214
4215 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
4216 memory leak.
4217
8990963a
VS
42182013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4219
4220 * grub-core/disk/ahci.c: Give more time for AHCI request.
4221
daae8f9e
VS
42222013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4223
4224 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
4225 command.
4226
6a7fb94b
VS
42272013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
4228
4229 Replace the region at 0 from coreboot tables to available in BSD
4230 memory map.
4231
ff99babd
VS
42322013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4233
4234 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
4235 non-BIOS platforms.
4236
30d6b1b2
VS
42372013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4238
4239 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
4240 platforms.
4241
6ccd0b31
VS
42422013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4243
4244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
4245 handling of multi-device filesystems.
4246
23c9cc04
VS
42472013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4248
4249 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
4250 platforms.
4251
ce50dbd7
VS
42522013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
4253
4254 Add new 'proc' filesystem framework and put luks_script into it.
4255
d975e8d5
VS
42562013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
4257
4258 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
4259 and qemu.
4260
e73ba5e8
VS
42612013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4262
4263 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
4264
92750e4c
VS
42652013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4266
4267 Add ability to generate newc additions on runtime.
4268
0ec45a68
VS
42692013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
4270
4271 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
4272 description.
4273
320abd43
VS
42742013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
4275
4276 * po/POTFILES.in: Regenerate.
4277
d7a6506e
VS
42782013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4279
4280 * grub-core/commands/verify.c (hashes): Add several hashes
4281 from the spec.
4282
8fe05def
VS
42832013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4284
4285 Slight improve in USB-related boot-time checkpoints.
4286
524e2766
VS
42872013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4288
4289 * grub-core/commands/boottime.c: Fix copyright header.
4290
cc19857a
VS
42912013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4292
4293 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
4294 coreboot tables content. Support for cbmemc.
4295
ef8810e9
VS
42962013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4297
4298 Fix a conflict between ports structures with 2 controllers of
4299 same kind.
4300
e9dabdfa
VS
43012013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
4302
4303 * include/grub/boottime.h: Add missing file.
4304
f6df57d2
VS
43052013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4306
4307 Initialize USB ports in parallel to speed-up boot.
4308
d745dda7
VS
43092013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4310
4311 Fix USB devices not being detected when requested
4312 due to delayed attach.
4313
e5a2dd7b
VS
43142013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4315
e744219b
VS
4316 Implement boot time analysis framework.
4317
43182013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4319
4320 Remove get_endpoint_descriptor and change all functions needing
e5a2dd7b
VS
4321 descriptor to just receive it as argument rather than endpoint
4322 address.
4323
5dd6f587
VS
43242013-03-19 Aleš Nesrsta <starous@volny.cz>
4325
4326 Better estimate the maximum USB transfer size.
4327
2f1071d5
VS
43282013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
4329
4330 Resend a packet if we got the wrong buffer in status.
4331
46ecfc49
VS
43322013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4333
4334 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
4335 multiplication rather than division.
4336
ea811130
VS
43372013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4338
4339 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
4340 than divisions.
4341
d2789cf0
VS
43422013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4343
4344 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
4345 operations to have intended shifts and not divisions.
4346
a9c94590
VS
43472013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4348
4349 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
4350 intended shifts rather than division.
4351
84cfe81b
VS
43522013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4353
4354 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
4355 computation for some years before epoch. Avode confusing division
4356 while on it.
4357
21344ef6
VS
43582013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4359
4360 * grub-core/video/i386/pc/vbe.c
4361 (grub_video_vbe_print_adapter_specific_info): Replace division by
4362 shifts.
4363
3f2b4d1a
VS
43642013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4365
4366 Adjust types in gdb module to have intended unsigned shifts rather than
4367 signed divisions.
4368
3dac5878
VS
43692013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4370
4371 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
4372 maximum size is 4G - 1 on hfs
4373
5341c0fb
VS
43742013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4375
4376 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
4377
fc3ff2a2
VS
43782013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4379
4380 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
4381 function.
4382
81455e8e
AB
43832013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
4384
4385 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
4386 causing gcc error with gcc 4.7.1.
4387
efd4f117
NZ
43882013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4389
4390 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
4391 dereference null pointer. While the code is technically correct, gcc
4392 may eliminate a null check if pointer is already dereferenced.
4393
e11645f4
NZ
43942013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
4395
4396 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
4397 OOM check.
4398 * grub-core/normal/term.c (read_terminal_list): Likewise.
4399
77468368
VS
44002013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4401
4402 Lift up core size limits on some platforms. Fix potential memory
4403 corruption with big core on small memory systems. Document remaining
4404 limits.
4405
f6b58fe5
VS
44062013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4407
4408 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
4409 gotoxy to 0,0.
4410
19ce697d
VS
44112013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4412
4413 Remove all trampoline support. Add -Wtrampolines when
4414 present. Remove symbols used for trampolines to make
4415 link fail if trampolines are present.
4416
73b5d90f
VS
44172013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4418
4419 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
4420 append out of its parent.
4421
cb758e96
VS
44222013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4423
4424 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
4425 parent.
4426
3188131f
VS
44272013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4428
4429 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
4430 all vars to a macro. All users updated.
4431
e42b2514
VS
44322013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4433
4434 * grub-core/disk/ieee1275/nand.c: Fix compilation on
4435 i386-ieee1275.
4436
83e1a1a1
VS
44372013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4438
4439 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
4440
1d5a880f
VS
44412013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4442
4443 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
4444
6e4146c4
VS
44452013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4446
4447 Move to more hookless approach in IEEE1275 devices handling.
4448
99fcda8a
VS
44492013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4450
4451 * grub-core/kern/term.c (grub_term_normal_color),
4452 (grub_term_highlight_color): Add back lost defaults.
4453
73bf57e2
VS
44542013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 Make elfload not use hooks. Opt for flags and iterators instead.
4457
7f8c105f
VS
44582013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
4461 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
4462
396d4091
VS
44632013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4464
4465 * grub-core/script/execute.c (gettext_append): Remove nested functions.
4466
44672013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4468
4469 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
4470 hook pass-through parameter. All users updated and unnested.
4471
74a27421
VS
44722013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4473
4474 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
4475 out of its parent.
4476
b46d4213
VS
44772013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4478
4479 * grub-core/fs/hfs.c: Remove nested functions.
4480
e114c3cc
VS
44812013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4482
4483 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
4484 the context through.
4485 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
4486
f9b7d780
VS
44872013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * util/grub-editenv.c (list_variables): Move print_var out of its
4490 parent.
4491
ca9c2608
VS
44922013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
4495 function.
4496
5d983f5f
VS
44972013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/gentrigtables.c: Make tables const.
4500
3056d3e7
VS
45012013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4502
4503 Remove nested functions from videoinfo iterators.
4504
e2303774
VS
45052013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4506
4507 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
4508 for 64-bit platforms.
4509
f42e3a2f
VS
45102013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4511
4512 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
4513 a FOR_CHILDREN macro.
4514
be174e5e
VS
45152013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
4516
4517 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
4518 platform from firmware path.
4519
0789b672
VS
45202013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4521
4522 Enable linux16 on non-BIOS systems for i.a. memtest.
4523
4524 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
4525 correctly.
4526 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
4527
005a9c32
VS
45282013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4529
4530 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
4531 Fix end of table condition.
4532
ff2b3cd9
VS
45332013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4534
4535 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
4536 out of its parent.
4537
4fc40ff8
VS
45382013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4539
4540 * grub-core/fs/jfs.c: Remove nested functions.
4541
be42d97a
VS
45422013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4543
4544 * grub-core/fs/minix.c: Remove nested functions.
4545
99373ce4
VS
45462013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4547
4548 * grub-core/fs/iso9660.c: Remove nested functions.
4549
5aec2afe
VS
45502013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4551
4552 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
4553 of parent function.
4554
6c69e691
VS
45552013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
4556
4557 * util/grub-fstest.c: Remove nested functions.
4558
43c91882
VS
45592013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
4560
4561 * grub-core/loader/machoXX.c: Remove nested functions.
4562
4eb8b756
CW
45632013-02-27 Colin Watson <cjwatson@ubuntu.com>
4564
4565 Remove nested functions from disk and file read hooks.
4566
4567 * include/grub/disk.h (grub_disk_read_hook_t): New type.
4568 (struct grub_disk): Add read_hook_data member.
4569 * include/grub/file.h (struct grub_file): Likewise.
4570 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
4571 argument.
4572
4573 Update all callers.
4574
df6da5a5
AB
45752012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
4576
4577 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
4578 Fix off by one error in enumerating extended partitions.
4579
21aecde5
AB
45802013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
4581
4582 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
4583 memory leak if device name is not found.
4584
f1a19118
AB
45852013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4586
4587 * grub-core/normal/menu_entry.c (update_screen): remove
4588 unused variable `off' which caused scroll down arrow to be always shown.
4589
958bfd20
AB
45902013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4591
4592 * grub-core/normal/menu_entry.c (insert_string): fix off by one
4593 access to unallocated memory.
4594
b7b78edb
AB
45952013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
4596
4597 * Makefile.util.def: Add partmap/msdos.c to common library.
4598 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
4599 * grub-core/disk/ldm.c: Check for existence of
4600 GRUB_PC_PARTITION_TYPE_LDM.
4601
28d468d6
VS
46022013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
4603
4604 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
4605 sizes and display sector size.
4606
d55ffb02
VS
46072013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
4608
4609 Implement new command cmosdump.
4610
b5ea6ce0
VS
46112013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
4612
4613 Support Openfirmware disks with non-512B sectors.
4614
4615 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
4616 size of the disk.
4617 * (grub_ofdisk_get_block_size): New function.
4618 * (grub_ofdisk_prepare): Use the correct block size.
4619 * (grub_ofdisk_read): Likewise.
4620 * (grub_ofdisk_write): Likewise.
4621 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
4622 New proto.
4623
cc0e476f
VS
46242013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
4625
4626 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
4627
c5dbdc33
VS
46282013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
4629
4630 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
4631 on first error.
4632
3f078c0f
VS
46332013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4634
4635 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
4636 freeing it.
4637
66a93674
VS
46382013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4639
4640 Implement USBDebug (full USB stack variant).
4641
c9f0c134
VS
46422013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4643
4644 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
4645 unless they have unexpected values.
4646
cfe1288b
VS
46472013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4648
4649 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
4650 grub_print_error.
4651
e42b9969
VS
46522013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
4655 zero-out of port structure.
4656
cf94fd62
VS
46572013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
4660 of extended attributes.
4661
f81ef4b5
AB
46622013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
4663
4664 * util/grub-install.in: change misleading comment about
4665 device.map creation
4666
af18fdb4
VS
46672013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
4668
4669 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
4670 when menu highlight color isn't set.
4671
08bcec50
M
46722013-01-27 C. Masloch <pushbx@38.de>
4673
4674 Improve FreeDOS direct loading support compatibility.
4675
4676 * include/grub/i386/relocator.h (grub_relocator16_state):
4677 New member ebp.
4678 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
4679 variable.
4680 (grub_relocator16_boot): Handle %ebp.
4681 * grub-core/lib/i386/relocator16.S: Likewise.
4682 * grub-core/loader/i386/pc/freedos.c:
4683 Load BPB to pass kernel which partition to load from.
4684 Check that kernel file is not too large.
4685 Set register dl to BIOS unit number as well.
4686
7782b8a6
CW
46872013-01-22 Colin Watson <cjwatson@ubuntu.com>
4688
4689 * util/grub-reboot.in (usage): Document the need for
4690 GRUB_DEFAULT=saved.
4691 * util/grub-set-default.in (usage): Likewise.
4692 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
4693
e661c180
VS
46942013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4695
4696 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
4697 than defining WORDS_BIGENDIAN manually.
4698
1c22ca9a
VS
46992013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4700
4701 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
4702 invariants.
4703
d44892fe
CW
47042013-01-21 Colin Watson <cjwatson@ubuntu.com>
4705
4706 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
4707 nested.
4708 (blit_comb: add_device_width): Likewise.
4709
5fdbaed1
CW
47102013-01-21 Colin Watson <cjwatson@ubuntu.com>
4711
4712 Remove nested functions from USB iterators.
4713
4714 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
4715 (grub_usb_controller_iterate_hook_t): Likewise.
4716 (grub_usb_iterate): Add hook_data argument.
4717 (grub_usb_controller_iterate): Likewise.
4718 (struct grub_usb_controller_dev.iterate): Likewise.
4719
4720 Update all implementations and callers.
4721
4250985a
VS
47222013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4723
4724 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
4725 margin when not needed.
4726
7d8848f3
VS
47272013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4728
bc136973 4729 Make color variables global instead of it being per-terminal.
7d8848f3
VS
4730
47312013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4732
bc136973
VS
4733 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
4734 asterisk.
7d8848f3 4735
ed12a003
CW
47362013-01-21 Colin Watson <cjwatson@ubuntu.com>
4737
4738 Fix powerpc and sparc64 build failures caused by un-nesting memory
4739 map iterators.
4740
6a0db449
CW
47412013-01-21 Colin Watson <cjwatson@ubuntu.com>
4742
4743 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
4744 parameter declarations.
4745
ccd86b21
VS
47462013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4747
4748 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
4749
822b726b
VS
47502013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
4751
4752 Improve spkmomdem reliability by adding a separator between bytes.
4753
115c2cc1
CW
47542013-01-21 Colin Watson <cjwatson@ubuntu.com>
4755
4756 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
4757 an Acer registration utility with several sightings in the wild.
4758 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
4759
fc524edf
CW
47602013-01-21 Colin Watson <cjwatson@ubuntu.com>
4761
4762 Remove nested functions from filesystem directory iterators.
4763
4764 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
4765 (struct grub_fs.dir): Add hook_data argument.
4766
4767 Update all implementations and callers.
4768
53d3e4e3
CW
47692013-01-21 Colin Watson <cjwatson@ubuntu.com>
4770
4771 * docs/grub.texi (Multi-boot manual config): Fix typo for
4772 "recommended".
4773
c821711f
LL
47742013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4775
4776 * util/grub-mkimage.c (main): Postpone freeing arguments.output
4777 until after its use in generate_image.
4778
6a0debbd
CW
47792013-01-20 Colin Watson <cjwatson@ubuntu.com>
4780
4781 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
4782 initrd size to addr_min, since the initrd will be allocated after
4783 this address.
4784
f41e08db
AB
47852013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4786
4787 * conf/Makefile.common: Fix autogen rules to pass definition
4788 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
4789
77529e0f
LL
47902013-01-20 Leif Lindholm <leif.lindholm@arm.com>
4791
4792 * include/grub/elf.h: Update ARM definitions based on binutils.
4793
b879aa7b
VS
47942013-01-20 Aleš Nesrsta <starous@volny.cz>
4795
4796 Split long USB transfers into short ones.
4797
8eb8284d
AB
47982013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
4799
4800 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
4801 is interrupted by ESC.
4802
08dad2dc
VS
48032013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
4804
4805 * util/grub-script-check.c (main): Uniform the error message.
4806
6c724b85
CW
48072013-01-20 Colin Watson <cjwatson@ubuntu.com>
4808
4809 Remove nested functions from ELF iterators.
4810
25239370
CW
48112013-01-20 Colin Watson <cjwatson@ubuntu.com>
4812
4813 Remove nested functions from device iterators.
4814
4815 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
4816 (grub_arc_iterate_devs): Add hook_data argument.
4817 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
4818 (struct grub_ata_dev.iterate): Add hook_data argument.
4819 * include/grub/device.h (grub_device_iterate_hook_t): New type.
4820 (grub_device_iterate): Add hook_data argument.
4821 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
4822 (struct grub_disk_dev.iterate): Add hook_data argument.
4823 (grub_disk_dev_iterate): Likewise.
4824 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
4825 Likewise.
4826 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
4827 Likewise.
4828 * include/grub/partition.h (grub_partition_iterate_hook_t): New
4829 type.
4830 (struct grub_partition_map.iterate): Add hook_data argument.
4831 (grub_partition_iterate): Likewise.
4832 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
4833 (struct grub_scsi_dev.iterate): Add hook_data argument.
4834
4835 Update all callers.
4836
6c0314d6
CW
48372013-01-20 Colin Watson <cjwatson@ubuntu.com>
4838
4839 Fix typos for "developer" and "development".
4840
600dc5f1
VS
48412013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
4842
4843 Add license header to spkmodem-recv.c.
4844
17334a6b
VS
48452013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
4846
4847 Rewrite spkmodem to use PIT for timing. Double the speed.
4848
7d462559
VS
48492013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 Add new command pcidump.
4852
b78d6c32
VS
48532013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4854
4855 New terminal outputs using serial: morse and spkmodem.
4856
34f71cb8
VS
48572013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 Improve bidi handling in entry editor.
4860
4542e71b
VS
48612013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
4862
4863 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
4864 argument to prevent name collision.
4865
09fd6d82
CW
48662013-01-15 Colin Watson <cjwatson@ubuntu.com>
4867
4868 Remove nested functions from script reading and parsing.
4869
4870 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
4871 getline_data argument, passed to getline.
4872 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
4873 getline_data argument, passed to grub_parser_split_cmdline.
4874 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
4875 lexerstate->getline_data to lexerstate->getline.
4876 (grub_script_lexer_init): Add getline_data argument, saved in
4877 lexerstate->getline_data.
4878 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
4879 argument, passed to grub_script_parse.
4880 * grub-core/script/script.c (grub_script_parse): Add getline_data
4881 argument, passed to grub_script_lexer_init.
4882 * include/grub/parser.h (grub_parser_split_cmdline): Update
4883 prototype. Update all callers to pass appropriate getline data.
4884 (struct grub_parser.parse_line): Likewise.
4885 (grub_rescue_parse_line): Likewise.
4886 * include/grub/reader.h (grub_reader_getline_t): Add void *
4887 argument.
4888 * include/grub/script_sh.h (struct grub_lexer_param): Add
4889 getline_data member.
4890 (grub_script_parse): Update prototype. Update all callers to pass
4891 appropriate getline data.
4892 (grub_script_lexer_init): Likewise.
4893 (grub_normal_parse_line): Likewise.
4894
4895 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
4896 data argument.
4897 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
4898 static instead of nested. Rename to ...
4899 (grub_parser_execute_getline): ... this.
4900 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
4901 data argument.
4902 * grub-core/normal/main.c (read_config_file: getline): Make static
4903 instead of nested. Rename to ...
4904 (read_config_file_getline): ... this.
4905 (grub_normal_read_line): Add unused data argument.
4906 * grub-core/script/execute.c (grub_script_execute_sourcecode:
4907 getline): Make static instead of nested. Rename to ...
4908 (grub_script_execute_sourcecode_getline): ... this.
4909 * util/grub-script-check.c (main: get_config_line): Make static
4910 instead of nested.
4911
d0d4b8a0
CW
49122013-01-15 Colin Watson <cjwatson@ubuntu.com>
4913
4914 Remove nested functions from memory map iterators.
4915
4916 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
4917 argument, passed to hook.
4918 * grub-core/kern/i386/coreboot/mmap.c
4919 (grub_linuxbios_table_iterate): Likewise.
4920 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
4921 instead of nested.
4922 (grub_machine_mmap_iterate): Add hook_data argument.
4923 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
4924 Add hook_data argument, passed to hook.
4925 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
4926 Likewise.
4927 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4928 Likewise.
4929 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
4930 Likewise.
4931 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
4932 Likewise.
4933 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
4934 Likewise.
4935 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
4936 Likewise.
4937 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
4938 (grub_machine_mmap_iterate): Likewise.
4939 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
4940 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
4941 prototype.
4942 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
4943 Remove NESTED_FUNC_ATTR from here and from all users.
4944 (grub_mmap_iterate): Update prototype.
4945 (grub_efi_mmap_iterate): Update prototype. Update all callers to
4946 pass appropriate hook data.
4947 (grub_machine_mmap_iterate): Likewise.
4948
4949 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
4950 static instead of nested.
4951 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
4952 Rename to ...
4953 (lsmmap_hook): ... this.
4954 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
4955 Likewise.
4956 (grub_efiemu_mmap_fill: fill_hook): Likewise.
4957 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
4958 heap_init): Likewise.
4959 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
4960 Rename to ...
4961 (mmap_iterate_hook): ... this.
4962 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
4963 Likewise.
4964 * grub-core/lib/ieee1275/relocator.c
4965 (grub_relocator_firmware_get_max_events: count): Likewise.
4966 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
4967 to ...
4968 (grub_relocator_firmware_fill_events_iter): ... this.
4969 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
4970 hook): Likewise. Rename to ...
4971 (grub_relocator_alloc_chunk_align_iter): ... this.
4972 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
4973 Rename to ...
4974 (generate_e820_mmap_iter): ... this.
4975 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
4976 Rename to ...
4977 (count_hook): ... this.
4978 (grub_linux_boot: hook): Likewise. Rename to ...
4979 (grub_linux_boot_mmap_find): ... this.
4980 (grub_linux_boot: hook_fill): Likewise. Rename to ...
4981 (grub_linux_boot_mmap_fill): ... this.
4982 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
4983 hook): Likewise. Rename to ...
4984 (grub_fill_multiboot_mmap_iter): ... this.
4985 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
4986 hook): Likewise. Rename to ...
4987 (count_hook): ... this.
4988 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
4989 hook): Likewise. Rename to ...
4990 (grub_fill_multiboot_mmap_iter): ... this.
4991 * grub-core/loader/powerpc/ieee1275/linux.c
4992 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
4993 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
4994 Likewise. Rename to ...
4995 (alloc_phys_choose): ... this.
4996 (determine_phys_base: get_physbase): Likewise.
4997 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
4998 find_hook): Likewise.
4999 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
5000 (malloc_hook: count_hook): Likewise.
5001 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
5002 Likewise. Rename to ...
5003 (lower_hook): ... this.
5004 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5005 (upper_hook): ... this.
5006 (grub_mmap_get_post64: hook): Likewise. Rename to ...
5007 (post64_hook): ... this.
5008 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
5009 Likewise. Rename to ...
5010 (lower_hook): ... this.
5011 (grub_mmap_get_upper: hook): Likewise. Rename to ...
5012 (upper_hook): ... this.
5013 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
5014 (grub_mmap_iterate: fill_hook): Likewise.
5015 (fill_mask): Pass addr and mask within a single struct.
5016 (grub_cmd_badram: hook): Make static instead of nested. Rename
5017 to ...
5018 (badram_iter): ... this.
5019 (grub_cmd_cutmem: hook): Likewise. Rename to ...
5020 (cutmem_iter): ... this.
5021
22099030
VS
50222013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5023
5024 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
5025 delimit path in strings using quotes.
5026 * util/getroot.c (grub_guess_root_devices): Likewise.
5027 (grub_make_system_path_relative_to_its_root): Likewise.
5028 * util/grub-probe.c (probe): Likewise.
5029 * util/ieee1275/ofpath.c (find_obppath): Likewise.
5030 (xrealpath): Likewise.
5031
4a9950ec
VS
50322013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5033
5034 Fix compilation with older compilers.
5035
5036 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
5037 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
5038 declarations.
5039 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
5040 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
5041 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
5042 identifier with b.
5043 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
5044 * include/grub/crypto.h: Add type defines.
5045 * util/import_gcrypth.sed: Remove duplicate type defines.
5046
adcc6020
VS
50472013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 New command list_trusted.
5050
5051 * grub-core/commands/verify.c (grub_cmd_list): New function.
5052
a4528937
CW
50532013-01-13 Colin Watson <cjwatson@ubuntu.com>
5054
5055 * util/grub-mkimage.c (generate_image): Fix "size of public key"
5056 info message.
5057
ca3a7446
CW
50582013-01-13 Colin Watson <cjwatson@ubuntu.com>
5059
5060 Remove nested functions from PCI iterators.
5061
5062 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
5063 passed to hook. Update all callers to pass appropriate hook data.
5064 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
5065 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
5066 Remove NESTED_FUNC_ATTR from here and from all users.
5067 (grub_pci_iterate): Update prototype.
5068 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
5069 instead of nested. Rename to ...
5070 (grub_cs5536_find_iter): ... this.
5071 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
5072 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
5073 Likewise.
5074 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
5075 Likewise.
5076 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
5077 Likewise.
5078 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
5079 Likewise.
5080 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
5081 * grub-core/video/radeon_fuloong2e.c
5082 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
5083 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
5084 find_card): Likewise.
5085 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
5086 Likewise.
5087
f8e98fee
VS
50882013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * grub-core/commands/verify.c: Mark messages for translating.
5091
055b36b6
VS
50922013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5093
5094 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
5095 fatal.
5096
f7ff879b
VS
50972013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
5100 fatal.
5101
51022013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
4d7219f9
VS
5103
5104 * autogen.sh: Do not try to delete nonexistant files.
5105 * util/import_gcrypth.sed: Add some missing header removals.
5106
01323d49
CW
51072013-01-12 Colin Watson <cjwatson@ubuntu.com>
5108
5109 Clean up dangling references to grub-setup.
5110 Fixes Ubuntu bug #1082045.
5111
5112 * docs/grub.texi (Images): Refer generally to grub-install rather
5113 than directly to grub-setup.
5114 (Installing GRUB using grub-install): Remove direct reference to
5115 grub-setup.
5116 (Device map) Likewise.
5117 (Invoking grub-install): Likewise.
5118 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5119 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5120 * util/grub-install.in (usage): Likewise.
5121
5122 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
5123 Apply to grub-bios-setup and grub-sparc64-setup rather than to
5124 grub-setup.
5125 * configure.ac: Remove grub_setup output variable.
5126
5127 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
5128 to grub-bios-setup.
5129 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
5130 grub-setup to grub-sparc64-setup.
5131
5e3b8dcb
VS
51322013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
5133
5134 Import gcrypt public-key cryptography and implement signature checking.
5135
535714bd
VS
51362013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5137
5138 * grub-core/fs/ntfs.c: Ue more appropriate types.
5139 * grub-core/fs/ntfscomp.c: Likewise.
5140 * include/grub/ntfs.h: Likewise.
5141
3e4f3566
VS
51422013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5143
5144 Support Apple FAT binaries on non-Apple platforms.
5145
5146 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
5147 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
5148 Likewise.
5149 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
5150 Apple FAT binaries.
5151
4dedb13f
VS
51522013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
5153
5154 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
5155 sector devices.
5156
f8861eaf
CW
51572013-01-07 Colin Watson <cjwatson@ubuntu.com>
5158
5159 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
5160 explicitly zeroing elements.
5161 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
5162 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
5163 of elements in a structure already allocated using grub_zalloc.
5164 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
5165
86065b0a
CW
51662013-01-07 Colin Watson <cjwatson@ubuntu.com>
5167
5168 * docs/grub.texi (grub_cpu): New subsection.
5169 (grub_platform): Likewise.
5170
c6f1e92f
VS
51712013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
5172
5173 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
5174
f797ec85
VS
51752013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5176
5177 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
5178 divisions.
5179
033d0b4b
VS
51802013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5181
5182 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
5183 * grub-core/fs/ntfscomp.c: Likewise.
5184 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
5185 (grub_ntfs_comp): Likewise.
5186
21d1b9a0
VS
51872013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5188
5189 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
5190 Rename to ...
5191 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
5192 of groups_per_block. All users updated.
5193
10ca8645
VS
51942013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
5195
5196 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
5197 grub_error properly.
5198 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
5199 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
5200
a4c3ed4c
VS
52012013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
5204 always in /boot/zfs.
5205 Reported by: Yuta Satoh.
5206
0b716507
YS
52072013-01-03 Yuta Satoh <nigoro>
5208
5209 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
5210 ${grub_probe}
5211
00c05e22
VS
52122013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5213
5214 * configure.ac: Extend -Wno-trampolines to host.
5215
dadddb76
VS
52162013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
5217
5218 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
5219 entry->len = 0.
5220
54ce53ca
CW
52212013-01-03 Colin Watson <cjwatson@ubuntu.com>
5222
5223 * docs/grub.texi (Invoking grub-mkrelpath): New section.
5224 (Invoking grub-script-check): Likewise.
5225
8912efca
CW
52262013-01-03 Colin Watson <cjwatson@ubuntu.com>
5227
5228 * docs/grub.texi (Invoking grub-mount): New section.
5229 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
5230
c3fc8394
CW
52312013-01-02 Colin Watson <cjwatson@ubuntu.com>
5232
5233 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
5234 test failures, so that a failing unit test correctly causes 'make
5235 check' to fail.
5236
45d26abb
CW
52372013-01-02 Colin Watson <cjwatson@ubuntu.com>
5238
5239 Fix failing printf test.
5240
5241 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
5242 '$' in the correct order when collecting type information.
5243
971dd2c6
CW
52442013-01-02 Colin Watson <cjwatson@ubuntu.com>
5245
5246 * docs/grub.texi (configfile): Explain environment variable
5247 handling.
5248 (source): New section.
5249 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
5250
5c67ea6c
CW
52512012-12-31 Colin Watson <cjwatson@ubuntu.com>
5252
5253 Remove several trivially-unnecessary uses of nested functions.
5254
5255 * grub-core/commands/i386/pc/sendkey.c
5256 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
5257 instead of nested.
5258 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
5259 Rename to ...
5260 (legacy_file_getline): ... this.
5261 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
5262 Likewise.
5263 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
5264 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
5265 to ...
5266 (probe_dummy_iter): ... this.
5267 * grub-core/kern/i386/coreboot/mmap.c
5268 (grub_linuxbios_table_iterate: check_signature): Likewise.
5269 * grub-core/kern/parser.c (grub_parser_split_cmdline:
5270 check_varstate): Likewise. Mark inline.
5271 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
5272 an additional parameter.
5273 (find_long: fnd_long): Likewise. Pass two additional parameters.
5274 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
5275 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
5276 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
5277 Likewise. Rename to ...
5278 (grub_cmos_find_port_iter): ... this.
5279 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
5280 Rename to ...
5281 (find_rtc_iter): ... this.
5282
5283 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
5284 function directly into the function body, since it is only called
5285 once.
5286
33a68ac6
CW
52872012-12-30 Colin Watson <cjwatson@ubuntu.com>
5288
5289 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
5290 __attribute__ ((unused)).
5291 * grub-core/video/bochs.c (find_card): Likewise.
5292 * grub-core/video/cirrus.c (find_card): Likewise.
5293 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
5294 * grub-core/video/sis315pro.c (find_card): Likewise.
5295 * grub-core/video/sm712.c (find_card): Likewise.
5296
608b647a
CW
52972012-12-28 Colin Watson <cjwatson@ubuntu.com>
5298
5299 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
5300 Fixes Savannah bug #37821.
5301
fd49ceb3
CW
53022012-12-28 Colin Watson <cjwatson@ubuntu.com>
5303
5304 Apply program name transformations at build-time rather than at
5305 run-time. Fixes Debian bug #696465.
5306
5307 * acinclude.m4 (grub_TRANSFORM): New macro.
5308 * configure.ac: Create output variables with transformed names for
5309 most programs.
5310 * util/bash-completion.d/grub-completion.bash.in: Use
5311 pre-transformed variables for program names.
5312 * util/grub-install.in: Likewise.
5313 * util/grub-kbdcomp.in: Likewise.
5314 * util/grub-mkconfig.in: Likewise.
5315 * util/grub-mkconfig_lib.in: Likewise.
5316 * util/grub-mknetdir.in: Likewise.
5317 * util/grub-mkrescue.in: Likewise.
5318 * util/grub-mkstandalone.in: Likewise.
5319 * util/grub-reboot.in: Likewise.
5320 * util/grub-set-default.in: Likewise.
5321 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5322 * tests/util/grub-shell-tester.in: Remove unused assignment.
5323 * tests/util/grub-shell.in: Likewise.
5324 * util/grub.d/00_header.in: Likewise.
5325
7024b3c0
CW
53262012-12-28 Colin Watson <cjwatson@ubuntu.com>
5327
5328 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
5329
5330 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
5331 HAVE_RAW_DECL_GETS.
5332 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
5333
e3501b13
VS
53342012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
5335
5336 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
5337 Reported by: Eriks Latosheks <foresterlv>.
5338
b40c88a9
VS
53392012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5340
5341 * docs/grub.texi (Network): Update instructions on generating netboot
5342 image.
5343
ce96d01c
VS
53442012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5345
5346 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
5347 around device name if necessarry.
5348
0f596201
PFS
53492012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5350
5351 * util/grub-install.in: Follow the symbolic link parameter added
5352 to the file command.
5353
600d5bdb
AB
53542012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
5355
5356 * util/grub-install.in: Remove stale TODO.
5357
64ebd2f4
PFS
53582012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5359
5360 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
5361 dynamic allocation for the bootpath buffer.
5362
74b2fe3e
DTB
53632012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
5364
5365 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
5366 window too small.
5367
969b804f
VS
53682012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5369
5370 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
5371 argument rather than font name. All users updated.
5372 (grub_gfxterm_set_window): Likewise.
5373
b9f5ebd6
VT
53742012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
5375
5376 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
5377 from working.
5378
258f43b7
VS
53792012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5380
5381 * util/getroot.c (convert_system_partition_to_system_disk): Support
5382 nbd disks.
5383
cc1ce5f9
VS
53842012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
5385
5386 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
5387 infinite loop on corrupted FS.
5388
e77a16ca
VS
53892012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5390
5391 Fix big-endian mtime.
5392
5393 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
5394 together sec and usec.
5395 (grub_ufs_dir): Use correct byteswapping for UFS time.
5396
d9c48c7b
VS
53972012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
5398
5399 Support big-endian UFS1.
5400
5401 * Makefile.util.def (libgrubmods): Add ufs_be.c
5402 * grub-core/Makefile.core.def (ufs1_be): New module.
5403 * grub-core/fs/ufs_be.c: New file.
5404 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
5405 the file.
5406
2f9f40ba
LL
54072012-11-28 Leif Lindholm <leif.lindholm@arm.com>
5408
5409 * include/grub/types.h: Fix functionality unaffecting typo in
5410 GRUB_TARGET_WORDSIZE conditional macro.
5411
48ff0889
PFS
54122012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
5413
5414 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
5415
03711240
GS
54162012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
5417
5418 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
5419 that /netbsd appears first (when it exists).
5420
a31b11bd
CJ
54212012-10-12 Christoph Junghans <ottxor@gentoo.org>
5422
5423 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
5424 Fixes Savannah bug #37558.
5425
e8a5d5d4
CW
54262012-10-12 Colin Watson <cjwatson@ubuntu.com>
5427
5428 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
5429 description of extract_entries_configfile.
5430
54312012-10-05 Colin Watson <cjwatson@ubuntu.com>
39525c22
CW
5432
5433 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
5434 preferred_address.
5435 (grub_cmd_linux): Likewise.
5436 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
5437 preferred_lifetime. Update all users.
5438
288c757d
CW
54392012-09-26 Colin Watson <cjwatson@ubuntu.com>
5440
5441 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
5442 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
5443
0d35da3f
CW
54442012-09-26 Colin Watson <cjwatson@ubuntu.com>
5445
5446 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
5447 errors from grub-probe to /dev/null, not stdout.
5448
b78c3127
VS
54492012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
5450
5451 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
5452 sector 1.
5453
473959f0
CW
54542012-09-24 Colin Watson <cjwatson@ubuntu.com>
5455
5456 * util/grub-install.in: Make the error message if $source_dir
5457 doesn't exist more useful.
5458
794c8c33
CW
54592012-09-22 Colin Watson <cjwatson@ubuntu.com>
5460
5461 Fix grub-emu build on FreeBSD.
5462
5463 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
5464 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
5465 headers on Linux.
5466 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
5467 implementation is currently Linux-specific.
5468 * util/getroot.c (exec_pipe): Define only on Linux or when either
5469 libzfs or libnvpair is unavailable.
5470 (find_root_devices_from_poolname): Remove unused path variable.
5471
86d08fdb
CW
54722012-09-19 Colin Watson <cjwatson@ubuntu.com>
5473
5474 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
5475 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
5476 should fit before end == 63.
5477
735abf54
CW
54782012-09-19 Colin Watson <cjwatson@ubuntu.com>
5479
5480 * util/grub-setup.c (write_rootdev): Remove unused core_img
5481 parameter. Update all callers.
5482 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
5483 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
5484 GRUB_SETUP_BIOS.
5485
140acd3c
VS
54862012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5487
5488 * util/grub-mkconfig_lib.in (grub_tab): New variable.
5489 (grub_add_tab): New function.
5490 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
5491 * util/grub.d/10_illumos.in: Likewise.
5492 * util/grub.d/10_kfreebsd.in: Likewise.
5493 * util/grub.d/10_linux.in: Likewise.
5494 * util/grub.d/10_netbsd.in: Likewise.
5495 * util/grub.d/10_windows.in: Likewise.
5496 * util/grub.d/10_xnu.in: Likewise.
5497 * util/grub.d/20_linux_xen.in: Likewise.
5498 * util/grub.d/30_os-prober.in: Likewise.
5499
7ddffdad
VS
55002012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5501
5502 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
5503 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
5504 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
5505 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
5506 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
5507 ieee1275-nocursor.
5508 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
5509 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
5510
4e092454
VS
55112012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
5512
5513 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
5514 le-conversion.
5515 Reported by: BURETTE, Bernard.
5516
735abf54 55172012-09-17 Colin Watson <cjwatson@ubuntu.com>
a2fc3924
CW
5518
5519 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
5520 from comment.
5521
dfd39dbd
CW
55222012-09-14 Colin Watson <cjwatson@ubuntu.com>
5523
5524 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
5525 IEEE1275 machines. Fixes powerpc-emu compilation.
5526 * include/grub/terminfo.h: Likewise.
5527
3bfa763c
VS
55282012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5529
5530 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
5531 a const pointer.
5532 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
5533 const pointer.
5534 (efiemu_set_variable): Make vendor_guid a const pointer.
5535
250e475b
VS
55362012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
5537
5538 Don't require grub-mkconfig_lib to generate manpages for programs.
5539
5540 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
5541 dependencies, don't add grub-mkconfig_lib.
5542 (program): Pass empty adddeps.
5543 (script): Pass grub-mkconfig_lib as adddeps.
5544
592fd0e4
VS
55452012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
5546
5547 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
5548 * util/getroot.c (grub_find_device): Likewise.
5549 (get_mdadm_uuid): Likewise.
5550 (grub_util_is_imsm): Likewise.
5551 (grub_util_pull_device): Likewise.
5552 * util/grub-probe.c (probe): Likewise.
5553
801a3027
BG
55542012-09-10 Benoit Gschwind <gschwind>
5555
5556 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
5557 (devs): Add devpath_8.
5558
c5052c81
PJ
55592012-09-08 Peter Jones <pjones@redhat.com>
5560
5561 * grub-core/Makefile.core.def (efifwsetup): New module.
5562 * grub-core/commands/efi/efifwsetup.c: New file.
5563 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
5564 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
5565 New define.
5566 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
5567
8e832f71
JS
55682012-09-05 Jiri Slaby <jslaby@suse.cz>
5569
5570 * configure.ac: Add SuSe path.
5571
f0f55752
CW
55722012-09-05 Colin Watson <cjwatson@ubuntu.com>
5573
5574 * NEWS: Fix typo.
5575
ecadc4c2
CW
55762012-09-05 Colin Watson <cjwatson@ubuntu.com>
5577
5578 * util/import_gcry.py: Sort cipher_files, to make build system
5579 generation more deterministic.
5580
64498f25
VS
55812012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
5584 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
5585 (grub_set_datetime): Likewise.
5586
9cc836a2
VS
55872012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5588
5589 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
5590 warnings.
5591
bcfcea01
VS
55922012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
5595
a4099485
VS
55962012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
5597
5598 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
5599
265c162a
CW
56002012-09-04 Colin Watson <cjwatson@ubuntu.com>
5601
5602 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
5603 required for checkouts from bzr, but it may be useful for users or
5604 distributors wishing to update translations against a tarball
5605 distribution, and it can be helpful for the tarball to be a superset
5606 of what's in bzr.
5607
3d171e95
CW
56082012-09-04 Colin Watson <cjwatson@ubuntu.com>
5609
5610 * Makefile.am (EXTRA_DIST): Add
5611 grub-core/tests/boot/linux.init-mips.S,
5612 grub-core/tests/boot/linux.init-ppc.S, and
5613 grub-core/tests/boot/linux-ppc.cfg.
5614
f2c2503e
CW
56152012-09-04 Colin Watson <cjwatson@ubuntu.com>
5616
5617 * grub-core/mmap/mips/loongson: Remove empty directory.
5618
56192012-09-04 Colin Watson <cjwatson@ubuntu.com>
dd77d2be
CW
5620
5621 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
5622 gone.
5623
ab2163d5
CW
56242012-09-04 Colin Watson <cjwatson@ubuntu.com>
5625
5626 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
5627 grub-sparc64-setup.
5628
ce938140
GS
56292012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
5630
5631 * configure.ac: Strengthen the test for working -nostdinc -isystem.
5632
529f58a5
GS
56332012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5634
5635 * po/POTFILES.in: Regenerated.
5636
16cf79e9
GS
56372012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
5638
5639 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
5640 (NetBSD): New subsection.
5641
39b27f1e 56422012-07-22 Ales Nesrsta <starous@volny.cz>
5643
5644 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
5645 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
5646
a885261b
VS
56472012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5648
5649 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
5650 * util/grub.d/10_hurd.in: Add missing quoting.
5651 * util/grub.d/10_illumos.in: Likewise.
5652 * util/grub.d/10_kfreebsd.in: Likewise.
5653 * util/grub.d/10_linux.in: Likewise.
5654 * util/grub.d/20_linux_xen.in: Likewise.
5655
7bd29c01
VS
56562012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5657
5658 New command `lsefi'.
5659
5660 * grub-core/Makefile.core.def (lsefi): New module.
5661 * grub-core/commands/efi/lsefi.c: New file.
5662 * include/grub/efi/api.h: Add more GUIDs.
5663
ac625d8f
VS
56642012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5665
5666 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
5667 (grub_bsd_elf32_hook): Likewise.
5668 (grub_bsd_elf64_size_hook): Likewise.
5669 (grub_bsd_elf64_hook): Likewise.
5670 (grub_bsd_load_elf): Likewise.
5671
e73bb801
VS
56722012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5673
5674 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
5675 if hash function is unavailable.
5676 (dec_stream_header): Likewise.
5677
e81db8b5
VS
56782012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5679
5680 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
5681 filter state.
5682
d187a1c3
VS
56832012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
5684
5685 Fix coreboot compilation.
5686
5687 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
5688 (grub_vga_text_init_real): ... this.
5689 (grub_vga_text_fini): Rename to ...
5690 (grub_vga_text_fini_real): ... this.
5691
91a05f64
VS
56922012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5693
5694 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
5695
6af96df7
VS
56962012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5697
5698 * grub-core/lib/legacy_parse.c: Support clear and testload.
5699
4d569e12
VS
57002012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5701
5702 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
5703
073b57bb
VS
57042012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5705
5706 * grub-core/fs/ext2.c: Experimental support for 64-bit.
5707
a706f4cc
VS
57082012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5709
5710 * grub-core/net/tftp.c (ack): Fix endianness problem.
5711 (tftp_receive): Likewise.
5712 Reported by: Michael Davidsaver.
5713
e7850aa9
VS
57142012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5715
5716 * gentpl.py: Make mans depend on grub-mkconfig_lib.
5717
57182012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5719
5720 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
5721 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
5722 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
5723
35692881
VS
57242012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5725
5726 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
5727 efi_mmap_size.
5728 Reported by: Stuart Hayes.
5729
c35fc5bd
VS
57302012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5731
5732 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
5733
5734 * grub-core/Makefile.core.def (mda_text): New module.
5735 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
5736 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
5737 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
5738 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
5739 here.
5740 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
5741 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
5742 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
5743 here.
5744 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
5745 to ..
5746 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
5747 ... here
5748 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
5749 here.
5750 * grub-core/term/i386/vga_common.c: Removed.
5751 * include/grub/i386/vga_common.h: Likewise.
5752 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
5753 (grub_vga_cr_bw_read): Likewise.
5754 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
5755 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
5756 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
5757 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
5758 grub_vga_cr_read/grub_vga_cr_write.
5759 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
5760
5f91f701
VS
57612012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5762
5763 * configure.ac: Bump version to 2.00.
5764 * grub-core/normal/main.c (features): Add feature_200_final.
5765
0c4f85f6
VS
57662012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
57672012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
5768
5769 * NEWS: Fix unclarity and language mistakes.
5770
f923ad22
VS
57712012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
5774 additional size to 3 pages.
5775 Reported by: Stuart Hayes.
5776
d22029ba
VS
57772012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5778
5779 * NEWS: Add 2.00 entry.
5780
58eee08f
VS
57812012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5782
5783 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
5784 put explicit "/" for empty path.
5785 (wildcard_expand): Improve dprintf.
5786
c59bdff7
VS
57872012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
5788
5789 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
5790 it's equal to currnode. This can happen with "" symlink.
5791
5e6a440a
YB
57922012-06-27 Yves Blusseau <blusseau@zetam.org>
5793
5794 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
5795 echo shell command by printf command.
5796
73a68bcb
VS
57972012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5798
5799 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
5800 the value returned by firmware is the maximal position, not diumension.
5801 (grub_terminfo_output_state): Use a more sane fallback.
5802
392a603b
VS
58032012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5804
5805 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
5806
42d0867f
VS
58072012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5808
5809 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
5810 frequency to 150 MHz.
5811
489509f4
VS
58122012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5813
5814 Apple fixes.
5815
5816 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
5817 __APPLE_
5818 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
5819 definition.
5820 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
5821
9f3fc883
VS
58222012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 Handle slash in HFS label.
5825
5826 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
5827 (grub_hfs_dir): Tanslate slash.
5828 (grub_hfs_label): Don't translate slash.
5829
54853fd7
VS
58302012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5831
5832 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
5833 network protocol listing since it introduces problematic dependency on
5834 net module.
5835
4dc02ddf
VS
58362012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5837
5838 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
5839
c50c867d
VS
58402012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5841
5842 Init video early on yeeloong to avoid being rebooted by watchdog.
5843
5844 * grub-core/Makefile.am (gensm712): New target.
5845 (sm712_start.S): Likewise.
5846 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
5847 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
5848 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
5849 description.
5850 * include/grub/vga.h: Move registry definitions to...
5851 * include/grub/vgaregs.h: ... here.
5852
5f92c8a1
VS
58532012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
5854
5855 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
5856 signedness.
5857
e9e6f111
VS
58582012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5859
5860 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
5861 platforms with firmware disk drivers in the core.
5862
754ad9eb
VS
58632012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
5866 informative verbose message.
5867 (read_lv): Handle 64-bit segment size.
5868
315654c2
VS
58692012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5870
5871 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
5872
fb022c79
VS
58732012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
5876 character but still remove trainling spaces.
5877 (grub_fat_label): Ignore archive flag.
5878
8645f72c
VS
58792012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5880
5881 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
5882 cast between linux_kernel_header and linux_kernel_params.
5883
36498496
VS
58842012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5885
5886 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
5887 type for size.
5888 (grub_raid6_recover_func_t): Likewise.
5889 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
5890 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
5891
0b5ea6b8
VS
58922012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
5893
5894 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
5895
650cfcfe
GS
58962012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
5897
5898 Fix overflow.
5899
5900 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
5901 [__NetBSD__]: Add explicit cast before bitshift.
5902
8a4d6a44
VS
59032012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5904
5905 * configure.ac: Bump to 2.00~rc1.
5906
2fb97ed3
VS
59072012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5908
5909 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
5910 half of $a0.
5911
1fa097dc
VS
59122012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
59132012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
5914
5915 * docs/grub.texi: Fix search syntax.
5916 (Multi-boot manual config): Put msdos rather than GPT example.
5917 Grammar corrections.
5918
c890ba78
VS
59192012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
5920
5921 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
5922
0f92dca7
VS
59232012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5924
5925 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
5926
3988c4a0
VS
59272012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5928
5929 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
5930 message on double free. Put the value of magic in case of mismatch.
5931
9e86d4c5
VS
59322012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5933
5934 Speed-up video on yeeloong.
5935
5936 * grub-core/video/sm712.c (framebuffer): Remove render_target and
5937 add cached_ptr.
5938 (grub_video_sm712_video_fini): Unmap cached_ptr.
5939 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
5940 (grub_video_sm712_set_active_render_target): Removed.
5941 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
5942 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
5943 sync caches.
5944
ed24c312
VS
59452012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5946
5947 Avoid flushing the same line multiple times on loongson.
5948
5949 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
5950 Step in 32 bytes and not 1 byte.
5951 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
5952 Likewise.
5953
d1718e7d
VS
59542012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5955
5956 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
5957 subvolumes.
5958
982f1909
VS
59592012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5960
5961 Implement flow control for http.
5962
5963 * grub-core/net/http.c (parse_line): Handle response 206.
5964 (http_receive): Stall if too many packets are in the queue.
5965 (http_establish): Fix range header.
5966 (http_seek): Fix double free.
5967 (http_close): Likewise.
5968 (http_packets_pulled): New function.
5969 (grub_http_protocol): Set http_seek
5970 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
5971 (ack_real): Set window depending on i_stall.
5972 (grub_net_send_tcp_packet): Likewise.
5973 (grub_net_tcp_stall): New function.
5974 (grub_net_tcp_unstall): Likewise.
5975 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
5976 (grub_net_tcp_unstall): Likewise.
5977
bd407d6e
VS
59782012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5979
5980 * grub-core/net/tftp.c: Decrease stall to 50 packets.
5981
c7564b8e
VS
59822012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
5985
a3706162
VS
59862012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5987
5988 * tests/util/grub-shell.in: Fix a typo.
5989
b27069e0
VS
59902012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
5991
5992 Implement flow control for tftp.
5993
5994 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
5995 packets but stop only if stop condition is satisfied.
5996 (grub_net_fs_read_real): Call packets_pulled after real read. Use
5997 `stall' instead of `eof' as stop condition.
5998 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
5999 (http_err): Likewise.
6000 * grub-core/net/tftp.c (ack): Replace the first argument with data
6001 instead of socket.
6002 (tftp_receive): Stall if too many packets are in wait queue.
6003 (tftp_packets_pulled): New function.
6004 (grub_tftp_protocol): Set packets_pulled.
6005 * include/grub/net.h (grub_net_packets): New field count.
6006 (grub_net_put_packet): Increment count.
6007 (grub_net_remove_packet): Likewise.
6008 (grub_net_app_protocol): New field `packets_pulled'.
6009 (grub_net): New field `stall'.
6010
6b9cfac6
VS
60112012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
6012
6013 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
6014 sync part to handle them.
6015
f35abd81
VS
60162012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6017
6018 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
6019 * grub-core/net/drivers/ieee1275/ofnet.c
6020 (grub_ieee1275_net_config_real): Likewise.
6021
0e7ec820
VS
60222012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6023
6024 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
6025 the direct route for server/gateway.
6026
9d611a31
VS
60272012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6028
6029 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
6030 IP address to server name since we may not hame the DNS.
6031
418f45ab
VS
60322012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6033
6034 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
6035 freeing random buffer on failure.
6036 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
6037
44a0efc1
VS
60382012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6039
6040 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
6041
531e2241
VS
60422012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
6045 reserved bytes.
6046 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
6047 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
6048 Handle malloc error correctly.
6049
cde393c9
VS
60502012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6051
6052 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
6053 blocks.
6054
538478d0
VS
60552012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
6056
6057 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
6058 increment.
6059
9b55efe0
VS
60602012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6061
6062 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
6063 none is explicitly specified.
6064
9eb832c3
VS
60652012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6066
6067 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
6068 while reallocating.
6069
d6b7c7c9
VS
60702012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6071
6072 Respect netmask from bootp/dhcp.
6073
6074 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
6075 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
6076 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
6077 into ...
6078 (grub_net_add_ipv4_local): ... this.
6079 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
6080 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
6081 (grub_net_add_ipv4_local): New proto.
6082
67caf9eb
VS
60832012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6084
6085 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
6086 determining EFI memory map size.
6087
43657558
VS
60882012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6089
6090 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
6091
eb6d0dd3
VS
60922012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6093
6094 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
6095 when looking for partition separator.
6096
31230544
VS
60972012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6098
6099 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
6100 Escape commas.
6101
918a2517
VS
61022012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6103
6104 Restructure FAT driver to avoid hook in label reading as it hits a
6105 GCC bug.
6106
6107 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
6108 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
6109 (grub_fat_iterate_dir): Split into ...
6110 (grub_fat_iterate_init): ... this, ...
6111 (grub_fat_iterate_fini): ... this, ...
6112 (grub_fat_iterate_dir_next): ... and this. All users updated.
6113
9f1d654e
VS
61142012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6115
6116 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6117 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
6118 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6119 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
6120 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
6121 New fields last_key and last_key_time.
6122 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
6123 extended key-esc into extended key-extended key.
6124
52f0f643
VS
61252012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6126
6127 Avoid unnecessary memcpy of whole video buffer.
6128
6129 * grub-core/video/fb/video_fb.c (dirty): New struct.
6130 (framebuffer): Add members current_dirty and previous_dirty.
6131 (dirty): New function.
6132 (grub_video_fb_fill_rect): Update dirty.
6133 (common_blitter): Likewise.
6134 (grub_video_fb_scroll): Likewise.
6135 (doublebuf_blit_update_screen): Copy only dirty part.
6136 (doublebuf_pageflipping_update_screen): Likewise.
6137 (grub_video_fb_doublebuf_blit_init): Init dirty.
6138 (doublebuf_pageflipping_init): Likewise.
6139 (grub_video_fb_setup): Likewise.
6140
e169a180
VS
61412012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6142
6143 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
6144 poll rate.
6145
48556879
VS
61462012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 Fix wildcard regexp dot and other special characters handling.
6149 Reported by: Robert Mabee.
6150
6151 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
6152 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
6153 (split_path): Trigger expansion on '?'.
6154 (unescape): New function.
6155 (wildcard_expand): Unescape parts copied without globbing.
6156 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
6157 (grub_script_arglist_to_argv): Don't unescape expansions.
6158
0494408e
VS
61592012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * include/grub/net.h (grub_net_card): New member txbufsize.
6162 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
6163 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6164 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
6165 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
6166 txbufsize.
6167 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
6168 compatible property to check for macs. Set
6169 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
6170 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
6171 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
6172 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
6173 (send_card_buffer): Use txbuf.
6174 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
6175 nested function out of the parent while on it.
6176
cc35fe8f
VS
61772012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6178
6179 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
6180 presence check.
6181 (grub_ieee1275_net_config_real): Fix config pointer.
6182
970a0a09
VS
61832012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6184
6185 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
6186 filename parsing to non-block devices.
6187
3e19bf87
VS
61882012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 * grub-core/kern/device.c (grub_device_open): Remove dead code.
6191
c62d1a0c
VS
61922012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6193
6194 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
6195 All users updated.
6196
ef76bec3
VS
61972012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
6198
6199 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
6200 UUID search command even if hints probing failed.
6201
62022012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
555c786d
VS
6203
6204 * po/POTFILES.in: Regenerated.
6205
70aaf305
VS
62062012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
6207
6208 Speed-up video on fuloong.
6209
6210 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
6211 New function.
6212 (grub_pci_device_unmap_range): Handle non-cached address.
6213 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
6214 add direct_ptr.
6215 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
6216 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
6217 (grub_video_sis315pro_set_active_render_target): Removed.
6218 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
6219 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
6220 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
6221 sync caches.
6222 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
6223 New proto.
6224
10400f0b
VS
62252012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
6226
6227 * docs/grub.texi (Multi-boot manual config): New section.
6228
ba67e2c6
VS
62292012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6230
6231 Avoid slow read-back from VRAM.
6232
6233 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
6234 Move from here ...
6235 * grub-core/video/fb/video_fb.c
6236 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
6237 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
6238 (front_target): Remove front_target. Add pages.
6239 (grub_video_fb_init): Skip setting front_pages.
6240 (grub_video_fb_fini): Likewise.
6241 (doublebuf_blit_update_screen): Use pages.
6242 (grub_video_fb_doublebuf_blit_init): Likewise.
6243 (doublebuf_pageflipping_init): Allocate offscreen buffer.
6244 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
6245 (grub_video_fb_setup): Prefer doublebuffing.
6246
377c98cb
VS
62472012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6248
6249 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
6250 gzio.
6251
eac49cff
VS
62522012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6253
6254 Add loongson tests.
6255
6256 * tests/util/grub-shell.in: Handle loongson.
6257 * tests/partmap_test.in: Add loongson to the list of platform using ATA
6258 drivers.
6259 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
6260 Reboot instead of shutdown if REBOOT is defined.
6261
0321415e
VS
62622012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6263
6264 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
6265 sized ports since unlike on real hardware qemu supports only 32-bit
6266 regs.
6267
3f2bdd8f
VS
62682012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
6269
6270 * Makefile.util.def (grub-mkrescue): Enable on loongson.
6271 * util/grub-mkrescue.in: Handle loongson.
6272
29a049c9
VS
62732012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
6274
6275 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
6276 Set is_part appropriately.
6277 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
6278 names. Canonicalize partition without full disk.
6279
4abde346
VS
62802012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6281
6282 Revert usb-quiesce since it's wrong.
6283
6284 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
6285 (grub_ofdisk_init): Don't do quiesce.
6286
61f1d93b
VS
62872012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6288
6289 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
6290 PowerMac workaround to Xserves as well.
6291 Information supplied by: Benjamin Herrenschmidt.
6292
a09eb541
VS
62932012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6294
6295 Don't assume that beginning address is also the entry point on ppc.
6296
6297 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
6298 (grub_linux_boot): Use linux_entry.
6299 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
6300 (grub_linux_load64): Likewise.
6301
505b3c9b
VS
63022012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6303
6304 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
6305
cbe0b4ef
VS
63062012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
6309 needlessly lose the console.
6310
3006e981
VS
63112012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
6312
6313 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
6314 space.
6315
4e5a96b0
VS
63162012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6317
7da036bb
VS
6318 Remove non-functional EFI grub_get_rtc. Put a better fatal message
6319 than current grub_get_rtc() not implemented when booted with
6320 coreboot without TSC.
6321
6322 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
6323 Add machine/time.h to kernel headers on loongson.
6324 * grub-core/Makefile.core.def (kernel): Remove
6325 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
6326 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
6327 (grub_get_rtc): Likewise.
6328 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
6329 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
6330 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
6331 * grub-core/kern/i386/tsc.c (grub_tsc_init)
6332 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
6333 rather than installing known non-working time source.
6334 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
6335 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
6336 * include/grub/time.h: Don't include machine/time.h.
6337 * include/grub/efi/time.h: Removed.
6338 * include/grub/i386/efi/time.h: Likewise.
6339 * include/grub/i386/ieee1275/time.h: Likewise.
6340 * include/grub/powerpc/ieee1275/time.h: Likewise.
6341 * include/grub/sparc64/ieee1275/time.h: Likewise.
6342 * include/grub/x86_64/efi/time.h: Likewise.
6343
63442012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 Remove dot on i and j when combining with above diacritics.
4e5a96b0
VS
6347
6348 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
6349 value.
6350 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
6351 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
6352 with dotless variants when any combining above is present.
6353
5561c22d
VS
63542012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6355
6356 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
6357 text and not binary.
6358
96f7e60e
VS
63592012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6360
6361 Stop polling as soon as we have the packet we were waiting for.
6362
6363 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
6364 All users updated.
6365 * grub-core/net/arp.c (have_pending): New var.
6366 (pending_req): Likewise.
6367 (grub_net_arp_send_request): Fill pending_req and use have_pending as
6368 stop indicator.
6369 (grub_net_arp_receive): Set have_pending.
6370 * grub-core/net/dns.c (recv_data): New field stop.
6371 (recv_hook): Set stop.
6372 (grub_net_dns_lookup): Init stop and use as stop condition.
6373 * grub-core/net/http.c (http_establish): Use headers_recv as stop
6374 condition.
6375 * grub-core/net/net.c (grub_net_poll_cards): New argument
6376 stop_condition. Stop when it goes true.
6377 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
6378 indicator.
6379 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
6380
3e747239
VS
63812012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6382
6383 Keep TX and RX buffers on EFI rather than always allocate new ones.
6384
6385 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
6386 card. All users updated.
6387 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
6388 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
6389 (get_card_packet): Likewise.
6390 (grub_efinet_findcards): Init new fields.
6391
f695e99a
VS
63922012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6393
6394 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
6395 compilation error on sparc64.
6396
9e5e66d1
VS
63972012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6398
6399 Use ITC on IA64 rather than broken routine based on daytime.
6400
6401 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
6402 ia64.
6403 (grub_get_rtc) [__ia64__]: Likewise.
6404 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
6405 (get_itc): New function.
6406 (grub_rtc_get_time_ms): Likewise.
6407 (grub_machine_init): Calibrate ITC.
6408 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
6409 Keep only on non-ia64. Don't export since it's broken and used only
6410 if TSC is unavailable.
6411
a1767404
VS
64122012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6413
6414 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
6415 even if it's used.
6416 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
6417 Skip if parent is unused.
6418
34b2bced
VS
64192012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6420
6421 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
6422
5e619f40
VS
64232012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6424
6425 Fix wildcard escaping.
6426
6427 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
6428 * grub-core/script/execute.c (wildcard_escape): .. to here.
6429 Don't escape dot.
6430 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
6431 * grub-core/script/execute.c (wildcard_unescape): .. to here.
6432 Don't escape dot.
6433 * grub-core/script/execute.c (gettext_append): Always escape.
6434 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
6435 * grub-core/script/yylex.l: Don't cut away the escaping.
6436 * tests/grub_script_echo1.in: Add tests with wildcard.
6437
c8ca5855
VS
64382012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6439
6440 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
6441 (ftdi_hw_configure): Likewise.
6442 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
6443 define.
6444 (real_config): Handle 1.5 stop bits.
6445 (pl2303_hw_configure): Likewise.
6446
7183452c
VS
64472012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6448
6449 * Makefile.am: Add ppc linux bootcheck.
6450 * grub-core/tests/boot/linux-ppc.cfg: New file.
6451 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
6452
f57c84cd
VS
64532012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6454
6455 * tests/grub_script_expansion.in: Skip network protocols.
6456
ecfc6207
VS
64572012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6458
6459 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
6460
8d03d284
VS
64612012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6462
6463 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
6464 --rom-directory.
6465 Add -graft-points.
6466
61c42af0
VS
64672012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6468
6469 ESCC serial driver for conducting sautomated tests in qemu.
6470 Not tested on real hardware.
6471
6472 * include/grub/serial.h (grub_serial_port): New field escc_desc.
6473 * grub-core/term/ieee1275/escc.c: New file.
6474 * grub-core/Makefile.core.def (escc): New module.
6475
08fd1291
VS
64762012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6477
6478 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
6479 invalid on error.
6480 (serial_hw_fetch): Don't read invalid handle.
6481 (serial_hw_put): Don't write into invalid handle.
6482
08dafeea
VS
64832012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6484
6485 Add a 1.5 stop bits value.
6486
6487 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
6488 * include/grub/serial.h (grub_serial_stop_bits_t): Add
6489 GRUB_SERIAL_STOP_BITS_1_5.
6490
9068fdcf
VS
64912012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
6492
6493 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
6494 value rather than let it uninited.
6495
f4d5820f
VS
64962012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6497
6498 * grub-core/commands/wildcard.c (+check_file): New function.
6499 (wildcard_expand): Don't expand to non-existing files, expand with
6500 suffix and not attempt to expand if not needed.
6501
3d2de9a7
VS
65022012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6503
6504 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
6505 out of partitions containing other partitions.
6506
c5c81ff9
VS
65072012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6508
6509 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
6510 on some qemu versions with GRUB.
6511
6512 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
6513 define.
6514 (grub_openbsd_bootarg_pcibios): New struct.
6515 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
6516 Add PCIINFO.
6517
08a14e0b
VS
65182012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6519
6520 * tests/util/grub-shell.in: Trim firmware output on EFI.
6521
cede3ca3
VS
65222012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6523
6524 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
6525 and coreboot since it's already in kernel.
6526
558d3a60
VS
65272012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6528
6529 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
6530 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
6531 to here. New return value start. All users updated.
6532 Recursively scan linear mappings.
6533 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
6534 proto.
6535 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
6536 Use grub_util_get_dm_node_linear_info.
6537 * util/getroot.c (convert_system_partition_to_system_disk): Use
6538 grub_util_info rather than grub_dprintf.
6539 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
6540
60fde14d
VS
65412012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6542
6543 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
6544
6545 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
6546 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
6547
24bd8838
VS
65482012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
6549
6550 * include/grub/types.h (grub_set_unaligned64): New function.
6551 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
6552 (setup): Likewise.
6553
7bc06a49
VS
65542012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6555
6556 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
6557 (grub_ofdisk_fini): Quiesce USB devices.
6558
49cea015
VS
65592012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6560
6561 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
6562 caches.
6563
8dcbe03b
VS
65642012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6565
6566 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
6567
5b258735
VS
65682012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 * grub-core/disk/pata.c (grub_pata_pio_read)
6571 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
6572 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
6573
37ba07eb
VS
65742012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6575
6576 Extend automated tests to qemu-mips.
6577
6578 * Makefile.am: reorganise tests and enable qemu-mips.
6579 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
6580 * grub-core/tests/boot/linux.init-mips.S: New file.
6581 * tests/partmap_test.in: Handle ata0 disks.
6582 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
6583 non-pc i386.
6584
070038f8
VS
65852012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6586
6587 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
6588 ia64.
6589 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
6590 quotes while on it.
6591
004be2cd
VS
65922012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6593
6594 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
6595 (grub_halt): Likewise.
6596 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
6597
b1622487
VS
65982012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6599
6600 * grub-core/term/serial.c (grub_serial_register)
6601 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
6602 the behaviour in line with x86 platforms.
6603
b7b4ab33
VS
66042012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6605
6606 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
6607 (grub_ata_strncpy): Likewise.
6608 (grub_ata_identify): Add missing byteswaps.
6609
5e3535ae
VS
66102012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6611
6612 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
6613 byte-swap.
6614 (screen_read_char): Likewise.
6615 (grub_vga_text_cls): Likewise.
6616
c21b17e6
VS
66172012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6618
6619 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
6620 filenames.
6621 (make_file_path): Likewise.
6622
bf293dec
VS
66232012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
6624
6625 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
6626 machines.
6627 Tested by: Paulo Flabiano Smorigo.
6628 Crucial information about API supplied by: Coleen <Last name unknown>.
6629 Reviewed by: Coleen <Last name unknown>.
6630
81f6ef0e
VS
66312012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * util/grub-mkimage.c: Disable -Wcast-align.
6634
7284143a
VS
66352012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6636
6637 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
6638 as they are fatal.
6639
b99f3e00
VS
66402012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
6643
944f752d
VS
66442012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6645
6646 * util/grub-probe.c (escape_of_path): Fix double free.
6647
6cce6f38
VS
66482012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/commands/videoinfo.c (hook): Show pitch.
6651
1e1eb50e
VS
66522012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6653
6654 * util/grub.d/20_linux_xen.in: Skip xen-syms.
6655
1c715b5a
VS
66562012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
6659 (probe): Add ieee1275 to OFW devices.
6660
007ae52d
VS
66612012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6662
6663 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
6664
4557a36d
VS
66652012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
6666
6667 Handle IBM OFW path.
6668
6669 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
6670 available.
6671 (of_path_of_scsi): Handle vdevice.
6672
efbeefe9
VS
66732012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6674
6675 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
6676 Allocate in multiples of 16 to avoid adding a few bytes free region the
6677 windows bugs upon.
6678
15a940bb
VS
66792012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
6680
6681 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
6682 Allocate in multiples of 16 to avoid adding a few bytes free region the
6683 windows bugs upon.
6684 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
6685
6e5efd60
VS
66862012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6687
6688 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
6689 resolutions.
6690 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
6691 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
6692
0d3d137e
IS
66932012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
6694
6695 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
6696
45dbe300
VS
66972012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6698
6699 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
6700 resulted in \\ at the end of the line.
6701
6d8db947
VS
67022012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6703
6704 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
6705 (grub_parser_cmdline_state): Likewise.
6706 (grub_parser_split_cmdline): Likewise.
6707
de89d338
VS
67082012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6709
6710 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
6711 /dev/root and /dev/dm-*.
6712
00d41dee
VS
67132012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
6716 fix partially stale display.
6717
f95d1f11
VS
67182012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6719
6720 * grub-core/normal/menu_entry.c (backward_char): Use right line for
6721 substraction.
6722
6297e197
VS
67232012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6724
6725 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
6726 Fix MBR remapping workaround.
6727 (grub_util_biosdisk_read) [__linux__]: Likewise.
6728
8a7ecad3
VS
67292012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
6730
6731 * util/grub-install.in: Check for ieee1275 and not ieee1276.
6732
2b34f944
VS
67332012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * configure.ac: Bump to beta6.
6736
684aef11
CW
67372012-05-31 Christer Weinigel <christer@weinigel.se>
6738
6739 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
6740
05b0bb91
VS
67412012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6742
6743 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
6744 (grub_cmd_linux): Likewise.
6745
bda36bfa
CW
67462012-05-31 Christer Weinigel <christer@weinigel.se>
6747
6748 Fix EHCI low-speed.
6749
6750 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
6751 (GRUB_EHCI_MULT_TWO): Likewise.
6752 (GRUB_EHCI_MULT_THREE): Likewise.
6753 (GRUB_EHCI_CMASK_MASK): New enum value.
6754 (GRUB_EHCI_SMASK_MASK): Likewise.
6755 (GRUB_EHCI_CMASK_OFF): Likewise.
6756 (GRUB_EHCI_SMASK_OFF): Likewise.
6757 (grub_ehci_pci_iter): Enable periodic schedule.
6758 (grub_ehci_parse_notrun): Likewise.
6759 (grub_ehci_restore_hw): Likewise.
6760 (grub_ehci_setup_qh): Set flags for low speed transfers.
6761 (grub_ehci_find_qh): Use periodic list for low speed.
6762 (grub_ehci_setup_transfer): Check periodic queue as well.
6763 (grub_ehci_check_transfer): Likewise.
6764 (grub_ehci_cancel_transfer): Cancel periodic transfer.
6765
e12bcb1c
PFS
67662012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
6767
6768 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
6769 parameter is used.
6770
bcc75fb3
PJ
67712012-05-31 Peter Jones <pjones@redhat.com>
6772
6773 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
6774 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
6775 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
6776
f19cb95e
VS
67772012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6778
6779 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
6780 uninited variable. Allocate at least setup_sects.
6781
a4e5ca80
VS
67822012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 Fix handling of EFI with big memory maps.
6785
6786 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
6787 (real_mode_mem): Likewise.
6788 (real_mode_target): Likewise.
6789 (real_mode_pages): Likewise.
6790 (prot_mode_pages): Likewise.
6791 (linux_params): New var.
6792 (linux_cmdline): Likewise.
6793 (free_pages): Don't set real mode variables.
6794 (allocate_pages): Don't allocate real mode memory.
6795 (grub_e820_add_region): Remove the limit.
6796 (grub_linux_boot): Allocate and copy real mode memory.
6797 (grub_linux_unload): Free linux_cmdline.
6798 (grub_cmd_linux): Use temporary storage for parameters.
6799 (grub_cmd_initrd): Likewise.
6800 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
6801 (linux_kernel_params): Make it 1K big.
6802
ddb73558
VS
68032012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6804
6805 * Makefile.util.def: Remove -Wno-format.
6806 * grub-core/Makefile.core.def: Likewise.
6807
1c4afb60
VS
68082012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6809
6810 * tests/cmp_unit_test.c: Add missing failure message.
6811 * tests/example_unit_test.c: Likewise.
6812 * tests/printf_unit_test.c: Likewise.
6813
941e3a6d
VS
68142012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
6817 relaxation of protective MBR requirements.
6818
b105df76
VS
68192012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6820
6821 * configure.ac: Add condition for COND_HOST_XNU.
6822 * Makefile.util.def (10_xnu): New script.
6823 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
6824
84e1569e
VS
68252012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6826
6827 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
6828 objconv bug.
6829
130c0f77
VS
68302012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
6831
6832 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
6833 Binary on other platforms stays identical.
6834
6fd0b143
VS
68352012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6836
6837 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
6838 Apple.
6839
0af1751d
VS
68402012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6841
6842 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
6843
176d5f7d
VS
68442012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6845
6846 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
6847 rather than defining size_t ourselves to avoid conflict.
6848
7de5e20a
VS
68492012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6850
6851 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
6852 initialisation to avoid __bzero reference.
6853
f7143efe
VS
68542012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6855
6856 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
6857 version.
6858 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
6859 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
6860 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
6861 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
6862 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
6863
e6ad0555
VS
68642012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6865
6866 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
6867 * grub-core/kern/misc.c: Likewise.
6868 * grub-core/loader/i386/xnu.c: Likewise.
6869 * include/grub/i386/tsc.h: Likewise.
6870 * include/grub/symbol.h: Likewise.
6871
4a5a3c4a
VS
68722012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
6875 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
6876 on older compiler.
6877
037f6d90
VS
68782012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6879
6880 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
6881 Implement Apple flavour.
6882 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
6883
f7194551
VS
68842012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6885
6886 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
6887 (memmove) [__APPLE__]: Likewise.
6888 (memcpy) [__APPLE__]: Likewise.
6889 (memset) [__APPLE__]: Likewise.
6890 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
6891 (memmove) [__APPLE__]: Likewise.
6892 (memcpy) [__APPLE__]: Likewise.
6893 (memset) [__APPLE__]: Likewise.
6894
85a730ca
VS
68952012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
6896
6897 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
6898 dependency discard.
6899
40e80b94
VS
69002012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6901
6902 * grub-core/normal/main.c (read_config_file): Provide config_file and
6903 config_directory.
6904 * util/grub.d/41_custom.in: Use config_directoy when available.
6905
9da59c32
VS
69062012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6907
6908 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
6909 (grub_bfs_dir): Likewise.
6910
2787ae53
PJ
69112012-05-27 Peter Jones <pjones@redhat.com>
6912
6913 The old code gives arguments to a printf function which can't work
6914 correctly, and the compiler complains.
6915
6916 * grub-core/tests/example_functional_test.c (example_test): Add
6917 missing text.
6918 * grub-core/tests/lib/test.c (add_failure): Rewrite.
6919 * include/grub/test.h (grub_test_assert_helper): New declaration.
6920 (grub_test_assert): Use grub_test_assert_helper.
6921
526ef13d
VS
69222012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6923
6924 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
6925 (exfctest): ... this to avoid overlong filenames.
6926 All users updated.
6927
20dd511c
VS
69282012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6929
6930 Handle "." and ".." on squashfs.
6931
6932 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
6933 Make inode numbers into stack.
6934 (grub_squash_read_symlink): Use stack.
6935 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
6936 (make_root_node): Fill stack.
6937 (grub_squash_open): Use stack.
6938
1d80c62a
VS
69392012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6940
6941 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
6942 freeing.
6943
d336f652
VS
69442012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6945
6946 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
6947 stderr on test calls.
6948
8b43f587
VS
69492012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6950
6951 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
6952
80a3dc3f
VS
69532012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6954
6955 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
6956
47e297d4
VS
69572012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6958
6959 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
6960 "..".
6961
df042ccb
VS
69622012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6963
6964 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
6965 (grub_hfsplus_iterate_dir): Add "." and "..".
6966
fc977f48
VS
69672012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6968
6969 * grub-core/fs/cpio.c (canonicalize): Handle "..".
6970 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
6971
f3250e5f
VS
69722012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6973
6974 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
6975 (find_path): Handle "." and "..".
6976
fd8ed4c5
VS
69772012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
6978
6979 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
6980 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
6981 (grub_affs_iterate_dir): Handle hardlinks.
6982
4ce776d2
MG
69832012-05-26 Matthew Garrett <mjg@redhat.com>
6984
6985 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
6986 (grub_efi_console_fini): Likewise.
6987 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
6988 (grub_video_gop_fill_mode_info): Rename to ...
6989 (grub_video_gop_fill_real_mode_info): ... this.
6990 (grub_video_gop_fill_mode_info): New function.
6991 (grub_video_gop_setup): Setup double framebuffer.
6992 (grub_video_gop_get_info_and_fini): Use original framebuffer.
6993 Free offscreen.
6994 (grub_video_gop_swap_buffers): Copy framebuffer.
6995 (grub_video_gop_fini): Free offscreen buffer.
6996 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
6997 New enum.
6998 (grub_efi_gop_blt_pixel): New struct.
6999
683031ba
VS
70002012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * gentpl.py: Remove error disabling for objconv.
7003
c2deb798
VS
70042012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
7005
7006 * configure.ac: Remove -Wunitialized as it's not available on older
7007 compilers.
7008
70092012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
77ceedb6
VS
7010
7011 Fix extent overflow comparator.
7012
7013 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
7014 (grub_hfsplus_read_block): Set type.
7015 (grub_hfsplus_cmp_extkey): Compare type.
7016
d6b1fd36
VS
70172012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
7018
7019 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
7020
0a9aa0f6
VS
70212012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7022
7023 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
7024 than 0.
7025
8360e159
VS
70262012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7027
7028 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
7029 (dejavu_bold_14.pf2): New target.
7030
501b9e4b
VS
70312012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
7032
7033 * configure.ac: Fix djvu font detection.
7034
7026b0e2
VS
70352012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7036
7037 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
7038 ext* instead of ext2.
7039
c2a51ade
VS
70402012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7041
7042 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
7043 name with \0.
7044
8f803a5d
JU
70452012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
7046
7047 * docs/grub-dev.texi: Remove dot from .png.
7048
13c6353f
VS
70492012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7050
7051 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
7052 protective entry in any slot.
7053 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
7054 if protective entry is found in any slot.
7055
7056 Protective entry in non-first slot make no sense but is a widespread
7057 brain damage.
7058
4cf6be1b
VS
70592012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7060
7061 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
7062
937d1c44
VS
70632012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7064
7065 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
7066 with old reiserfs.
7067 (grub_reiserfs_open): Don't free root.
7068
021d90ec
VS
70692012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
7070
7071 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
7072 after freeing for safety.
7073
967b2b64
VS
70742012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7075
7076 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
7077 Reported by: Jordan Uggla.
7078
34274d02
JU
70792012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
7080
967b2b64
VS
7081 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
7082 actual implementation. Specifically, clarify that the grub menu will
7083 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
7084 passed.
34274d02 7085
dcaaae9d
BH
70862012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
7087
7088 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
7089 of r0.
7090
7086ad52
VS
70912012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7092
7093 Remove unjustified hard dependency of normal.mod on gfxterm.
7094
7095 * include/grub/term.h (grub_term_output): New member fullscreen.
7096 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
7097 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
7098 (grub_gfxterm): Set .fullscreen.
7099 * grub-core/normal/menu.c (menu_init): Use fullscreen.
7100 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
7101
37ed2c9b
VS
71022012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7103
7104 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
7105 mentioning possible problems with non-ASCII (non-compliant) ISOs.
7086ad52 7106 Mention case-insensitive AFFS, SFS and JFS.
37ed2c9b 7107
a4469c88
VS
71082012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7109
7110 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
7111
4e461486
VS
71122012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7115 a bad FS.
7116
aa78f5c4
VS
71172012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7118
7119 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
7120 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
7121
197626b5
VS
71222012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7123
7124 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
7125 (grub_jfs_mount): Fill caseins.
7126 (grub_jfs_find_file): Respect caseins.
7127
8ad3f28c
VS
71282012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7129
7130 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
7131 through UTF-16.
7132
0c6c324e
VS
71332012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7134
7135 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
7136 New argument origpath. All users updated.
7137
c6666ba6
VS
71382012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7139
7140 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
7141 (read_attr): Ensure that we read start of possibly compressed block.
7142
e28e5fe5
VS
71432012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
7144
7145 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
7146 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
7147 All users updated.
7148
5fc23ab2
VS
71492012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7150
7151 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
7152 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
7153 (dejavu.pf2): Replace with ...
7154 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
7155 this.
7156
79dbc21c
VS
71572012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7158
7159 * util/grub.d/20_linux_xen.in: Add missing line.
7160
d2fcfb0c
VS
71612012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
7162
7163 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
7164 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
7165 (grub_utf16_to_utf8): Likewise.
7166
5560e9d6
VS
71672012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7168
7169 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
7170 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
7171 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7172 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
7173 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
7174 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
7175
71762012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
bfb320c6
VS
7177
7178 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
7179 a bad FS.
7180
5560e9d6 71812012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
def3df75
VS
7182
7183 * grub-core/fs/udf.c (read_string): Bail out on size=0.
7184 (grub_udf_read_symlink): Handle read_string failure.
7185
5eae3175
VS
71862012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
7189 comment.
7190
c1ad82db
VS
71912012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7192
7193 Fix handling of UDF symlinks.
7194
7195 * grub-core/fs/udf.c (read_string): New argument outbuf.
7196 All users updated.
7197 (grub_ufs_read_symlink): Rename to ...
7198 (grub_udf_read_symlink): ... this. All users updated.
7199 Handle symlinks with more than one component.
7200
33eca6e0
VS
72012012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7202
7203 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
7204 symlinks. Replace leading colon with a slash.
7205
57f4a70b
VS
72062012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7207
7208 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
7209 filename.
7210
38c8ee20
VS
72112012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7212
7213 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
7214 match in inner node.
7215
2e57f28f
VS
72162012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
7217
7218 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
7219 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
7220 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
7221 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
7222 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
7223 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
7224 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
7225 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
7226 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
7227
fe8c2f11
VS
72282012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
7229
7230 Use grub-probe and not cmp to check that disk is empty.
7231
7232 * util/grub-install.in: Use grub-probe for zero-check.
7233 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
7234 (probe): Handle PRINT_ZERO_CHECK.
7235 (argp_parser): Handle -t zero_check.
7236
72372012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
f1a6254c
VS
7238
7239 Flush block cache on adding disk to device map.
7240
7241 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
7242 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
7243 adding.
7244 (read_device_map): Likewise.
7245 (open_device): Flush on opening.
7246
690434e8
VS
72472012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7248
7249 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
7250 (handle_symlink): Fix off-by-one error.
7251 Canonicalize the target.
7252 (grub_cpio_dir): Canonicalize the name.
7253 Fix memory leak.
7254 Set directory.
7255 (grub_cpio_open): Canonicalize the name.
7256
742d2be6
VS
72572012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7258
7259 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
7260 handling.
7261
3244fe96
VS
72622012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7263
7264 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
7265 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
7266
8aeb1837
VS
72672012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7268
7269 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
7270 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3244fe96 7271 All users updated.
8aeb1837 7272
9133fd05
VS
72732012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
7276 counterpart.
7277
6d521c5b
VS
72782012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
7279
7280 Fix UFS1 big file support.
7281
7282 * grub-core/fs/ufs.c (INODE): Removed.
7283 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
7284 64-bit.
7285 (INODE_MODE): Simplify.
7286 (grub_ufs_inode): Use uint64_t for size and not int64_t.
7287 (grub_ufs_lookup_symlink): Don't use INODE.
7288
21b82e17
VS
72892012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7290
7291 Fix minixfs with non-power-of-two blocks since it's supported by minix.
7292
7293 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
7294 (grub_minix_data): Replace log_block_size with block_size.
7295 (grub_minix_read_file): Use block_size but avoid 64-bit division.
7296 (grub_minix_mount): Fill block_size.
7297
72982012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
319621d0
VS
7299
7300 * configure.ac: Bump to beta5.
7301
f417ed04
VS
73022012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7303
7304 Fix wrapped HFS+ handling.
7305
7306 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
7307 blocks_start. All users updated.
7308 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
7309 wrapping offset.
7310 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
7311
607d282b
VS
73122012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7313
7314 Fix long symlinks on reiserfs.
7315
7316 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
7317 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
7318 (grub_reiserfs_iterate_dir): Save size for non-directories.
7319 (grub_reiserfs_open): Don't reread stat block as we already know the
7320 size.
7321 (grub_reiserfs_read): Split into...
7322 (grub_reiserfs_read_real): ... and ...
7323 (grub_reiserfs_read): ...this.
7324
ae16024d
VS
73252012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7326
7327 Fix non-indexed JFS.
7328
7329 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
7330 (grub_jfs_data): New field namecomponentlen.
7331 (grub_jfs_mount): Fill namecomponentlen.
7332 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
7333
eea1e26e
VS
73342012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7335
7336 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
7337 * tests/grub_script_echo1.in: Add tests.
7338
df760f77
VS
73392012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 * util/grub-install.in: Ignore empty devicetree directory.
7342
5efb817d
B
73432012-05-08 Bean <bean123ch@gmail.com>
7344
7345 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
7346 All users updated.
7347 (free_rsm): Free header as well.
7348 (free_old_fragments): Fix memory leak.
7349 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
7350 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
7351 (destroy_pq): Likewise.
7352 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
7353
668ea6d2
VS
73542012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7355
7356 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
7357 resulting hash as a precaution.
7358
1739b1fe
VS
73592012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7360
7361 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
7362 '_' in variable names.
7363 * grub-core/net/net.c (grub_net_network_level_interface_register):
7364 Likewise.
7365
6ae485aa
VS
73662012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7367
7368 Fix AFFS with non-512B blocks.
7369
7370 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
7371 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
7372 (grub_affs_data): Replace blocksize with log_blocksize.
7373 (grub_affs_read_block): Fix non-512B blocks.
7374 (grub_affs_read_symlink): Likewise.
7375 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
7376 (grub_affs_read): Fix non-512B blocks.
7377 (grub_affs_label): Likewise.
7378 (grub_affs_mtime): Likewise.
7379 (grub_affs_mount): Fix block detection routine.
7380
d20fab84
VS
73812012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
7382
7383 Add filesystem mtime to AFFS.
7384
7385 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
7386 (aftime2ctime): New function.
7387 (grub_affs_dir): Use aftime2ctime.
7388 (grub_affs_label): Fix return value.
7389 (grub_affs_mtime): New function.
7390 (grub_affs_fs): Add mtime.
7391
e87b10f5
VS
73922012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7393
7394 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
7395 UTF-8.
7396
7dceec9b
VS
73972012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7398
7399 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
7400 UTF-8.
7401
2f48221f
VS
74022012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7403
7404 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
7405
dacd85cf
VS
74062012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
7407
7408 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
7409 flags.
7410 (FLAGS_CASE_SENSITIVE): New enum value.
7411 (cache_entry): New struct.
7412 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
7413 cache_size and cache.
7414 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
7415 Add log_blocksize and fshelp_flags.
7416 (grub_sfs_read_extent): Handle non-512 blocks.
7417 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
7418 (grub_sfs_read_file): Handle non-512 blocks.
7419 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
7420 fshelp_flags.
7421 (grub_sfs_read_symlink): Handle non-512 blocks.
7422 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
7423 (grub_sfs_dir): Free cache.
7424 (grub_sfs_close): Likewise.
7425
24e9a854
VS
74262012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7427
7428 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
7429 filesystems.
7430
62ace64d
VS
74312012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
7434
83b2e89c
VS
74352012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7436
7437 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
7438
75ccaea3
VS
74392012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
7440
7441 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
7442 (grub_sfs_read_extent): Likewise.
7443 (grub_sfs_read_block): Likewise.
7444 (grub_sfs_mount): Likewise.
7445 (grub_sfs_iterate_dir): Likewise.
7446 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
7447 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
7448
1b8463f2
VS
74492012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7450
7451 Fix errors on compressed NTFS with 512B clusters.
7452
7453 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
7454 types.
7455 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
7456 not 0.
7457 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
7458 Relax check for inline extents.
7459 (ntfscomp): Return correct -1 on error and not 0.
7460
4f8e368f
VS
74612012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7462
7463 * util/grub-install.in: Fix handling of prefix containing spaces.
7464
6f5d5ee8
VS
74652012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
7468 (grub_squash_read_data): Fix offset byte-swapping.
7469
ce41ab7a
VS
74702012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7471
7472 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
7473 per common usage and preffered in several parts of code.
7474 (grub_memcmp): Likewise.
7475 (grub_strncmp): Likewise.
7476 * include/grub/misc.h (grub_strcasecmp): Likewise.
7477 (grub_strncasecmp): Likewise.
7478 * Makefile.util.def (cmp_test): New test.
7479 (grub_script_strcmp): Likewise.
7480 * tests/cmp_unit_test.c: New file.
7481 * tests/grub_script_strcmp.in: Likewise.
7482 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
7483
49717bf4
VS
74842012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7485
7486 * include/grub/pci.h: Move enums into no-asm part.
7487
0a308f64
VS
74882012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
7491
1796965f
ST
74922012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
7493
7494 * util/getroot.c (find_hurd_root_device): Try to make error message
7495 and comments to translators clearer.
7496
4e9b2819
VS
74972012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7498
7499 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
7500
076aeb50
VS
75012012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
7504 btrfs.
7505
19424d94
VS
75062012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7507
7508 * docs/grub.cfg: Update.
7509
ebb73076
VS
75102012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7511
7512 * docs/grub.texi (PXE): Remove not present variables.
7513
9a1b669c
VS
75142012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
7515
7516 * grub-core/net/net.c (defserver_set_env): New function.
7517 (defserver_get_env): Likewise.
7518 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
7519
d38bf7d3
VS
75202012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7521
7522 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
7523 entries.
7524
75252012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
11858300
VS
7526
7527 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
7528 * grub-core/kern/emu/hostdisk.c: Likewise.
7529
e5e4ca48
ST
75302012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
7531
7532 Handle hurd userspace partitions.
7533
7534 * util/getroot.c (find_hurd_root_device): New function.
7535 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
7536
56bb5dd5
VS
75372012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7538
7539 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
7540 names.
7541 Reported by: Bastian Blank.
7542
9e8bc27a
VS
75432012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7544
7545 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
7546 crossing page boundary.
7547
aa01499d
VS
75482012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7549
7550 Fix B-tree search in BFS, especially in presence of non-ASCII
7551 characters.
7552
7553 * grub-core/fs/bfs.c (bfs_strcmp): New function.
7554 (find_in_b_tree): Use standard bsearch + btree algorithm.
7555
57006035
VS
75562012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
7559 and so on.
7560
9d34bb85
MG
75612012-05-03 Matthew Garrett <mjg@redhat.com>
75622012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7563
7564 Suspend broadcom cards in order to stop their DMA.
7565
7566 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
7567 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
7568 (pci): Don't build on x86 EFI.
7569 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
7570 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
7571 New function.
7572 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
7573 stop_broadcom if running on EFI.
7574 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
7575 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
7576 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
7577 (grub_pci_find_capability): New proto.
7578
01aab997
VS
75792012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * docs/grub.texi: Remove dot from the extension as it apparently
7582 doesn't work with some makeinfo versions.
7583
fbd8dca6
VS
75842012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7585
7586 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
7587 with GRUB expectance.
7588
dab797f4
VS
75892012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7590
7591 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
7592
1516bfb4
VS
75932012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
7596 zero after directory block since last entry may be not 0-terminated if
7597 it ends on block boundary. Use continue instead of if spanning whole
7598 loop.
7599
a3a0eace
VS
76002012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7601
7602 Support 4K sectors UDF inline files.
7603
7604 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
7605 (grub_udf_extended_file_entry): Likewise.
7606 (grub_fshelp_node): Name the anonymous union. Put block at the end.
7607 All users updated.
7608 (get_fshelp_size): New function.
7609 (grub_udf_read_icb): Read whole block.
7610 (grub_udf_iterate_dir): Likewise.
7611 (grub_udf_dir): Likewise.
7612 (grub_udf_open): Likewise.
7613
c82f16c1
VS
76142012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
7617
59fd2aac
VS
76182012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7619
7620 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
7621 inline symlinks in addition to workaround.
7622
3b4afb4d
VS
76232012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7624
7625 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
7626
f45c794a
VS
76272012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7628
7629 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
7630
f25cecbd
VS
76312012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7632
7633 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
7634
bb9a34e8
VS
76352012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7636
7637 Fix reiserfs big seek times.
7638
7639 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
7640 exact. All users updated.
7641 (grub_reiserfs_read): Use nearest btree search for seeking.
7642 Fix return value on error.
7643
dc478aea
VS
76442012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7645
7646 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
7647 entries.
7648 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
7649 * docs/grub.texi: Update menuentry description.
7650
8db10f47
VS
76512012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7652
7653 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
7654 crash when embedding onto filesystem.
7655
bcb288ed
VS
76562012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
7659 name.
7660
a626fdd7
VS
76612012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
7664
b2f68477
VS
76652012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7666
7667 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
7668 commit.
7669
ba15b2af
B
76702012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
76712012-05-01 Bean <bean123ch@gmail.com>
7672
7673 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
7674
a188012e
VS
76752012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7676
7677 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
7678 Special behaviour for len = 0 to read whole file isn't used anywhere and
7679 can cause buffer ovewrflows in several places.
7680
f0a53ed2
VS
76812012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7682
7683 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
7684
5ed554f0
VS
76852012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 Handle RAIDZ on non-512B sectors.
7688
7689 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
7690 max_children_ashift.
7691 (fill_vdev_info_real): Fill max_children_ashift.
7692 (read_device): Use max_children_ashift.
7693
ddc58357
VS
76942012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7695
7696 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
7697
e3282399
VS
76982012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7699
7700 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
7701 disk names.
7702 * docs/grub.texi: Update device.map parts.
7703
ee618bd4
VS
77042012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7705
7706 Don't scan into non-diskfilter devices having diskfilter names.
7707
7708 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
7709 (scan_disk): New argument accept_diskfilter. Fix recursion depth
7710 handling.
7711 (scan_disk_hook): New function.
7712
bdf88864
B
77132012-04-29 Bean <bean123ch@gmail.com>
7714
7715 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
7716 allocation.
7717
32745f51
MK
77182012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
7719
7720 * configure.ac: Detect starfield theme font path
7721 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
7722
bc95c8c0
VS
77232012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7724
7725 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
7726 geometry on serial consoles.
7727
147fbcab
VS
77282012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7729
7730 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
7731 because of network consoles.
7732
0f42c889
VS
77332012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
7736 handling.
7737
4a3594c9
VS
77382012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7739
7740 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
7741 falls on Q syndrom.
7742
5cb53879
VS
77432012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
7744
7745 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
7746 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
7747
b282dfe5
VS
77482012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7749
7750 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
7751 Allocate at lest 8192 for temporary buffer as required for lzo.
7752
daa59f47
VS
77532012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7754
7755 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
7756 to cluster_bits, since it's already added in.
7757 (grub_fat_read_data): Likewise.
7758
986748ce
VS
77592012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
7760
7761 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
7762 as long as cluster size is multiple of 512 bytes.
7763
a20f6ad0
VS
77642012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7765
7766 * util/grub-mkrescue.in: Fix locale directory.
7767
385f9abb
VS
77682012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
7769
7770 * grub-core/kern/emu/hostdisk.c (map): Make static.
7771
1c557d30
B
77722012-04-23 Bean <bean123ch@gmail.com>
7773
7774 * util/grub-fstest.c (fstest): Add missing break.
7775
524b5d3a
ST
77762012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
7777
7778 Fix hurd build.
7779
7780 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
7781 not define nr variable.
fe4824e9 7782 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
7783 find_root_devices_from_poolname, find_root_devices_from_libzfs,
7784 grub_find_device): Do not define.
524b5d3a 7785
9a06490c
VS
77862012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7787
7788 Fix kfreebsd compile and behaviour.
7789
7790 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
7791 format-security.
7792 * util/getroot.c: Fix wait.h include.
7793 (grub_guess_root_devices): Error if grub_find_device fails.
7794 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
7795 (grub_util_get_dev_abstraction): Likewise.
7796 (grub_util_pull_device): Likewise.
7797 (grub_util_get_grub_dev): Likewise.
7798 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
7799
48143d96
VS
78002012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7801
7802 Fix and unify wholedisk detection.
7803
7804 * util/getroot.c (convert_system_partition_to_system_disk): New argument
7805 is_part. All users updated.
7806 (device_is_wholedisk): Removed.
7807 (grub_util_biosdisk_get_grub_dev): Use is_part.
7808
ebbd24f3
VS
78092012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7810
7811 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
7812 mode.
7813
56f7aa1e
VS
78142012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7815
7816 * configure.ac: Bump to beta4.
7817
9c815e01
VS
78182012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7819
7820 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
7821 --fs-uuid --set UUID syntax.
7822
59e2651a
VS
78232012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7824
7825 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
7826 disunification.
7827
54e03cfc
VS
78282012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7829
7830 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
7831
81092a75
MK
78322012-04-18 Mads Kiilerich <mads@kiilerich.com>
7833
7834 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
7835
f8315e14
MG
78362012-04-18 Mike Gilbert <floppym@gentoo.org>
7837
7838 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
7839
1501ac21
B
78402012-04-18 Bean <bean123ch@gmail.com>
7841
7842 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
7843 place.
7844
cb7f944e
VS
78452012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7846
7847 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
7848 users updated.
7849 (grub_util_biosdisk_read): Handle Linux partitions not exactly
7850 corresponding to GRUB partitions.
7851 (grub_util_biosdisk_write): Likewise.
7852
b72d44a1
VS
78532012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7854
7855 Scan mdraid before LVM.
7856
7857 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
7858 (grub_diskfilter_register_front): ... this.
7859 (grub_diskfilter_register_back): New function.
7860 All users of grub_diskfilter_register updated.
7861
33d918b8
VS
78622012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7863
7864 * util/grub-install.in: Fix an automatic target detection bug.
7865
c6ca973d
VS
78662012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7867
7868 * util/grub-install.in: New option --efi-directory.
7869
b41be562
VS
78702012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7871
7872 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
7873 boot services if we have no other choice.
7874
78752012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * util/grub-mknetdir.in: Rename --override-directory to --directory and
7878 document it.
7879 * tests/util/grub-shell.in: Update to --directory.
7880
e0595a73
VS
78812012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7882
7883 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
7884
4ed80652
VS
78852012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7886
7887 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
7888 (grub_minix_read_file): Likewise.
7889 (grub_minix_read_inode): Likewise.
7890 (grub_minix_find_file): Likewise.
7891 (grub_minix_dir): Likewise.
7892
56008077
VS
78932012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7894
7895 * util/grub-setup.c (setup): Fix partition handling and blocklist
7896 check.
7897
ee520775
VS
78982012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
7899
7900 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
7901 redundant buggy overlap check.
7902
16fc9293
VS
79032012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7904
7905 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
7906 and grub-mknetdir.
7907
9bab65c4
VS
79082012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7909
7910 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
7911 kh.loadflags on pre-2.00 kernels.
7912
3c491b47
VS
79132012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 Terminate UNDI and PXE before launching the payload to avoid problems
7916 with DMA.
7917
7918 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
7919 (grub_loader_flags): ... this. All users updated.
7920 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
7921 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
7922 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
7923 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
7924 function.
7925 (grub_pxe_restore): Likewise.
7926 (fini_hnd): New var.
7927 (GRUB_MOD_INIT): Register shutdown hook.
7928 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
7929 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
7930 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
7931 (grub_loader_set): Rename second argument to flags.
7932
851ffada
VS
79332012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7934
7935 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
7936 written bytes.
7937 (grub_get_num_of_utf8_bytes): New function.
7938 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
7939 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
7940 executing it.
7941 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
7942 (grub_ucs4_to_utf8): Change return type.
7943
491c57a8
VS
79442012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7945
7946 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
7947 warning.
851ffada
VS
7948 * grub-core/fs/bfs.c (hop_level): Likewise.
7949 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
491c57a8 7950
756773df
VS
79512012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 * grub-core/lib/adler32.c: Recode due to license unclearness.
7954
fd556a96
VS
79552012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7956
7957 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
7958 (test_header): Likewise.
7959
9f9d3f69
VS
79602012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7961
7962 Fix --help formatting.
7963
7964 * util/grub-mkconfig_lib.in (print_option_help): New function.
7965 (grub_fmt): Likewise.
7966 * util/grub-install.in: Use print_option_help and grub_fmt.
7967 * util/grub-kbdcomp.in: Likewise.
7968 * util/grub-mkconfig.in: Likewise.
7969 * util/grub-mknetdir.in: Likewise.
7970 * util/grub-mkrescue.in: Likewise.
7971 * util/grub-mkstandalone.in: Likewise.
7972 * util/grub-reboot.in: Likewise.
7973 * util/grub-set-default.in: Likewise.
7974 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7975
561ec77e
VS
79762012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
7977
7978 * linguas.sh: Remove autogenerated *.po.
7979
7ec2b021
VS
79802012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7981
7982 * po/README: Move language fetcing to ...
7983 * linguas.sh: ... here.
7984 * po/README: Point to linguas.sh.
7985
a88f3270
VS
79862012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7987
7988 * po/README: Exclude ko.po due to disclaimer problems.
7989
d61357ce
VS
79902012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7991
7992 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
7993 len = 0.
7994 (grub_gettext_translate_real): Handle 0th string.
7995 (grub_gettext_translate): Ensure that "" isn't translated.
7996
505e41dc
VS
79972012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7998
7999 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
8000 TRANSLATORS comment.
8001 (grub_diskfilter_print_partmap): Propagate changing of error into
8002 warning.
8003
e44092db
VS
80042012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
8007 to uint64_t to prevent overflow.
8008 (grub_diskfilter_lv): Increase start_extent and extent_count
8009 to uint64_t to prevent overflow.
8010
9b83956a
VS
80112012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8012
8013 * configure.ac: Increase version.
8014
da0d5b3f
VS
80152012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8016
8017 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
8018
8019 * po/Rules-translit: New file.
8020 * po/arabic.sed: Likewise.
8021 * po/cyrillic.sed: Likewise.
8022 * po/greek.sed: Likewise.
8023 * po/hebrew.sed: Likewise.
8024 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
8025 * po/Makefile.in.in: Add extra_dist4.
8026
ac66b453
VS
80272012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 Handle big-endian minixfs (fixes minixfs tests on bigendian).
8030
8031 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
8032 modify names. Introduce MODE_BIGENDIAN.
8033 * grub-core/fs/minix_be.c: New file.
8034 * grub-core/fs/minix2_be.c: Likewise
8035 * grub-core/fs/minix3_be.c: Likewise.
8036 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
8037 minix3_be.
8038 * grub-core/Makefile.core.def (minix_be): New module.
8039 (minix2_be): Likewise.
8040 (minix3_be): Likewise.
8041
80422012-04-01 Felix <email@hamburg.de>
8043
8044 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
8045 (devs): Add MBP 2011.
8046
0a2d5a82
VS
80472012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8048
8049 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
8050
d1625889
VS
80512012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8052
8053 * grub-core/normal/cmdline.c (print_completion): New field
8054 prompt_len.
8055 (grub_cmdline_get): Handle width properly.
8056
6d36a236
VS
80572012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
8058
8059 * grub-core/commands/lsacpi.c (options): Add missing terminator.
8060
9576977e
VS
80612012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8062
8063 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
6d36a236 8064 after 29th of February.
9576977e 8065
d73ff15d
VS
80662012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8067
8068 Fix exfat endianness handling.
8069
8070 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
8071 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
8072 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
8073 Byte-swap utf16 when necessary.
8074 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
8075
bbb39a45
AB
80762012-03-31 Anton Blanchard <anton@samba.org>
80772012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8078
8079 Fix btrfs endianness handling.
8080
8081 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
8082 (lower_bound): Make root uint64_t. Use root in le.
8083 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
8084 (find_path): Fix template key init.
8085 (grub_btrfs_dir): Fix mtime byteswap.
8086 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
8087
354e0af7
VS
80882012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8089
8090 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
8091 recursion_depth. Break infinite resursions. All users updated.
8092
4e75f21c
VS
80932012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8094
8095 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
8096 after free.
8097 Reported by: Peter Jones.
8098
25581802
AB
80992012-03-31 Anton Blanchard <anton@samba.org>
8100
8101 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
8102 8 bit values.
8103
08fbf92e
VS
81042012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8105
8106 * util/grub-install.in: Fix nvram call for PreP.
8107
5d1182a6
VS
81082012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8109
8110 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
8111 the error when some elements are missing into a warning.
8112
3f8cdd90
VS
81132012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8114
8115 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
8116
51006716
CW
81172012-03-28 Colin Watson <cjwatson@ubuntu.com>
8118
8119 * docs/grub.texi (Invoking grub-probe): New section.
8120 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
8121
e1bd676b
VS
81222012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8123
8124 Fix tab and wide character handling in editor and menu.
8125
8126 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
8127 agglomerate control characters with combining marks.
8128 (bidi_line_wrap): Allow break on tab.
8129 (grub_unicode_get_comb_start): New function.
8130 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
8131 and tab correctly.
8132 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
8133 with a space.
8134 * grub-core/normal/term.c (print_ucs4_terminal): New argument
8135 fixed_tab_size. All users updated.
8136 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
8137 (grub_term_getcharwidth): Handle \t.
8138 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
8139 and copy.
8140
22e6a774
VS
81412012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8142
8143 Handle big-endian mdraid.
8144
8145 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
8146 * grub-core/Makefile.core.def (mdraid09_be): New module.
8147 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
8148 rather than grub_le_to_cpu* and grub_cpu_to_le*.
8149 * grub-core/disk/mdraid_linux_be.c: New file.
8150
3c0eae66
VS
81512012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8152
8153 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
8154
b6cf74c9
VS
81552012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8156
8157 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8158 missing quotes which caused confusion among translators.
8159
83c93b9c
VS
81602012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 * util/grub-mkconfig_lib.in: Fix typo.
8163
ac6fd218
VS
81642012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8165
8166 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
8167 spaces.
8168 * tests/grub_script_leading_whitespace.in: New file.
8169 * Makefile.util.def (grub_script_leading_whitespace): New test.
8170
ba287dd8
VS
81712012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8172
8173 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
8174 to work.
8175
d2d58d0a
VS
81762012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8177
8178 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
8179 starts with control character.
8180
0382d9bb
VS
81812012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8182
8183 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
8184 overflow.
8185 (grub_gdb_outbuf): Likewise.
8186
d83ff9f9
VS
81872012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
8188
8189 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
8190 zero terminator. Fixes a crash.
8191
2282da4a
VS
81922012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
8195 beyond 4 GiB.
8196 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
8197 images independently of preffered adderss field.
8198
0ae4f0bd
VS
81992012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8200
8201 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
8202 * grub-core/commands/regexp.c: Likewise.
8203 * grub-core/loader/i386/linux.c: Likewise.
8204 * grub-core/partmap/msdos.c: Likewise.
8205 * grub-core/script/execute.c: Likewise.
8206 * grub-core/term/gfxterm.c: Likewise.
8207
546fbe9b
VS
82082012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8209
8210 Add variable parsing in $"..." and fix several mismatches with bash.
8211
8212 * Makefile.util.def (grub_script_gettext): New test.
8213 * grub-core/script/execute.c (parse_string): New function.
8214 (gettext_append): Likewise.
8215 (grub_script_arglist_to_argv): Use gettext_append.
8216 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
8217 * tests/grub_script_gettext.in: New file.
8218
9fdb2d7b
VS
82192012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8220
8221 Fix handling of leading spaces in scripts.
8222
8223 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
8224 spaces.
8225 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
8226 other than skipping \r. All users updated.
8227 * tests/grub_script_echo1.in: Add space-related tests.
8228 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
8229
1a1ac4f6
VS
82302012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
8231
8232 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
8233
b63d89b6
VS
82342012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * configure.ac: Bump up the version to beta2.
8237
17f38c0f
VS
82382012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8239
8240 Fix gettext reload bugs (e.g. inability to disable gettext
8241 once enabled).
8242
8243 * grub-core/gettext/gettext.c: Encapsulate all static variables in
8244 main_context and secondary_context. All functions updated.
8245 (grub_gettext_translate): Rename to ...
8246 (grub_gettext_translate_real): ... this. Return NULL on failed
8247 translate.
8248 (grub_gettext_translate): Handle secondary context.
8249 (grub_gettext_delete_list): Close file and zero-out the context.
8250 (grub_mofile_open): Don't call grub_gettext_delete_list.
8251 Don't close file.
8252 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
8253 if locale="" to avoid pointless error message.
8254 (grub_gettext_env_write_lang): Update lang even if load fails.
8255 Handle secondary context.
8256 (grub_gettext_reread_prefix): New function.
8257 (read_main): Likewise.
8258 (read_secondary): Likewise.
8259 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
8260 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
8261 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
8262 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
8263
8e56f870
VS
82642012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8265
8266 * configure.ac: Decrease warning level to avoid spurious warnings and
8267 to be able to compile with GCC 4.2.
8268 * Makefile.util.def: Remove -Wno-error=logical-op.
8269
82f6d455
WB
82702012-03-10 William Bittner <william.bittner@gmail.com>
8271
8272 * util/import_unicode.py: Add missing brackets around string for
8273 python 3 support.
8274
1ecd61a4
VS
82752012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8276
8277 Fix efi chainloader on network root.
8278
8279 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
8280 network devices.
8281 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
8282 New function.
8283
14361ee8
VS
82842012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8285
8286 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
8287 unused show_text member.
8288 * docs/grub.texi: Document "text" property.
8289
922aabf3
VS
82902012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8291
8292 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
8293 in dprintf.
8294
ec316771
VS
82952012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 Fix IMSM handling on Fedora.
8298
8299 * util/getroot.c (grub_util_is_imsm): New function.
8300 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
8301
0f021838
VS
83022012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8303
8304 * Makefile.am: Strip gold section.
8305 * conf/Makefile.common: Likewise.
8306 * gentpl.py: Likewise.
8307 * grub-core/Makefile.core.def: Likewise.
8308 * grub-core/genmod.sh.in: Likewise.
8309
1039c8eb
VS
83102012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8311
8312 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
8313 * util/grub.d/20_linux_xen.in: Likewise.
8314 Based on Debian patch.
8315
6dd412cd
VS
83162012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8317
8318 * util/grub.d/10_linux.in: Fix syntax error resulting in
8319 Richard Laager's patch.
8320 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
8321
3fd8bae5
VS
83222012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8323
8324 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
8325 dependencies.
8326
7eea1671
RL
83272012-03-10 Richard Laager <rlaager@wiktel.com>
8328
8329 * util/grub.d/10_linux.in: Fix ZFS root passing.
8330
e8e0566b
VS
83312012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8332
8333 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8334 * grub-core/commands/xnu_uuid.c: Likewise.
8335 * grub-core/loader/efi/appleloader.c: Likewise.
8336 * grub-core/script/execute.c: Likewise.
8337 * grub-core/script/main.c: Likewise.
8338 * util/grub-mkfont.c: Likewise.
8339
1acc5b1f
VS
83402012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8341
8342 * util/grub-mkfont.c (options): Use more appropriate "select" that
8343 "set" for face index.
8344
35d70620
VS
83452012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8346
8347 * util/grub-editenv.c (options): Gettextize command summaries.
8348
c9eb96b5
VS
83492012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8350
8351 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
8352 "out of memory" error messagge.
8353
1f493136
VS
83542012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8355
8356 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
8357 of diskfilter for diskfilter on diskfilter support.
8358
6d790129
VS
83592012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8360
8361 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
8362
005f46c9
VS
83632012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8364
8365 * util/grub-install.in: Check for themes/starfield/theme.txt and not
8366 themes/starfield.
8367
c8f778a0
VS
83682012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8369
8370 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
8371
de1e64eb
VS
83722012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
8375
c6d54211
VS
83762012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
8377
8378 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
8379 of error message.
8380
dd390777
VS
83812012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8382
8383 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
8384
5fd1c522
VS
83852012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
8386
8387 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
8388 message.
c6d54211 8389 * util/grub-install.in: Fix and gettextize error message.
5fd1c522 8390
fae01f6c
VS
83912012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8392
8393 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
8394 Gettextize.
8395 * util/grub-mount.c (options): Likewise.
8396
292fdaff
VS
83972012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8398
8399 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
8400 gettextize.
8401 * grub-core/commands/search_wrap.c (options): Likewise.
8402
ecdbae77
VS
84032012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8404
8405 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
8406
52bfedfa
VS
84072012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8408
8409 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
8410 size calculation.
8411 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
8412 none is known.
8413
55b20e58
VS
84142012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8415
8416 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
8417 "temporary" since it's used in identifier and is limited in space.
8418
fda9d101
VS
84192012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8420
8421 * po/POTFILES.in: Regenerate. Include *.h since they contain
8422 translatable strings as well.
8423
6a0295e2
VS
84242012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
8425
8426 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
8427 byte-swap on big-endian.
8428 Reported by: Lennart Sorensen
8429
807fb77c
VS
84302012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8431
8432 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
8433 (allocate_pages): Improve dprintf.
8434 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
8435 code32_start. Fill code32_start and kernel_alignment in params.
8436 (grub_cmd_initrd): Use prot_init_space.
8437
61ac50ba
VS
84382012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8439
8440 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
8441
abdd26dd
VS
84422012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 * util/grub-install.in: Add missing dot at the end of sentence.
8445
6e69da9c
VS
84462012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8447
8448 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
8449 * grub-core/commands/videotest.c: Likewise.
8450 * grub-core/loader/i386/linux.c: Likewise.
8451
4a929343
VS
84522012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8453
8454 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
8455 sentence.
8456 Reported by: Milo Casagrande.
8457
bb51c6c6
VS
84582012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8459
8460 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
8461 * grub-core/commands/gptsync.c: Likewise.
8462 * grub-core/commands/hashsum.c: Likewise.
8463 * grub-core/commands/i386/pc/sendkey.c: Likewise.
8464 * grub-core/commands/legacycfg.c: Likewise.
8465 * grub-core/io/gzio.c: Likewise.
8466 * grub-core/net/net.c: Likewise.
8467 * grub-core/term/gfxterm.c: Likewise.
8468 * grub-core/term/terminfo.c: Likewise.
8469 * grub-core/tests/test_blockarg.c: Likewise.
8470 * grub-core/video/video.c: Likewise.
8471 * util/grub-install.in: Likewise.
8472 * util/grub-mkfont.c: Likewise.
8473
b2b149cb
VS
84742012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
8477
c7c080ad
VS
84782012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8479
8480 * grub-core/commands/search_wrap.c (options): Fix a typo.
bb51c6c6 8481 Reported by: David Prévot.
c7c080ad 8482
f2e243c0
VS
84832012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8484
8485 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
8486 description.
8487
09963c76
VS
84882012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * util/grub-script-check.c (main): Fix a syntax error message which was
8491 unclear.
8492
a50514a8
VS
84932012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8494
8495 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
8496
4650daec
VS
84972012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8498
8499 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
8500 messages.
8501
85022012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
97ebda9b
VS
8503
8504 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
8505 without argument.
8506 * util/grub-mount.c (options): Likewise.
8507
bbc5a342
VS
85082012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8509
8510 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
8511
ef292a87
VS
85122012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8513
8514 * grub-core/net/http.c: Add TRANSLATORS comments.
8515 * grub-core/normal/cmdline.c: Likewise.
8516 * grub-core/normal/misc.c: Likewise.
8517 * grub-core/partmap/msdos.c: Likewise.
8518 * grub-core/parttool/msdospart.c: Likewise.
8519 * grub-core/script/execute.c: Likewise.
8520 * grub-core/script/main.c: Likewise.
8521 * grub-core/term/terminfo.c: Likewise.
8522 * grub-core/video/bitmap.c: Likewise.
8523 * util/grub-install.in: Likewise.
8524 * util/grub-mkimage.c: Likewise.
8525 * util/grub-mklayout.c: Likewise.
8526 * util/grub-setup.c: Likewise.
8527
0fc19bd0
VS
85282012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8529
8530 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
8531 with similar messages in grub-fstest.
8532
d95862ef
VS
85332012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8534
8535 * util/grub-install.in: Unify "option requires an argument" message
8536 with similar messages in other files.
8537 * util/grub-mkconfig.in: Likewise.
8538
b7308f90
VS
85392012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8540
8541 * util/grub-set-default.in: Replace printf with gettext_printf (the
8542 string in in question is already translated from grub-reboot)
8543
559dc587
VS
85442012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8545
8546 * configure.ac: Bump up the version to beta1.
8547
1a11761f
VS
85482012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
8551 case when min_align = 0.
8552
24539abd
VS
85532012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
8556 and fix a case when line_start overflows.
8557
32bd735b
VS
85582012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * util/grub-reboot.in (usage): Mention id posibility.
8561 * util/grub-set-default.in (usage): Likewise.
8562
1a2fd1e6
VS
85632012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8564
8565 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
8566 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
8567 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
8568 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
8569 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
8570 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8571 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
8572
90eeab76
VS
85732012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8574
8575 * grub-core/commands/menuentry.c (options): Remove
8576 GRUB_ARG_OPTION_REPEATABLE.
8577 Reported by: Andreas Vogel
8578
5ad1be82
AV
85792012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
8580
8581 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
8582
cb055286
HE
85832012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
8584
8585 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
8586 error.
8587
93b1cd79
VS
85882012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 Use sort -V by the idea of Georgi Georgiev.
8591
8592 * util/grub-mkconfig_lib.in (version_sort): New function.
8593 (version_test_numeric): Use version_sort.
8594
0cdc126c
VS
85952012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8596
8597 Use submenus in grub-mkconfig.
8598
8599 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
8600 * util/grub-mkconfig_lib.in (grub_quote): New function.
8601 (gettext_printf): Use gettext and not gettext_quoted to fix several
8602 messages.
8603 * util/grub.d/10_hurd.in: Use submenus.
8604 * util/grub.d/10_kfreebsd.in: Likewise.
8605 * util/grub.d/10_linux.in: Likewise.
8606 * util/grub.d/10_netbsd.in: Likewise.
8607 * util/grub.d/20_linux_xen.in: Likewise.
8608 * util/grub.d/30_os-prober.in: Likewise.
8609 * util/grub.d/10_illumos.in: Add missing quoting.
8610 * util/grub.d/10_windows.in: Likewise.
8611
d9bef9bc
VS
86122012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 Fix menu title instability bug.
8615
8616 * grub-core/commands/menuentry.c (options): New option --id.
8617 (grub_normal_add_menu_entry): New argument id. All users updated.
8618 (grub_cmd_menuentry): Handle --id.
8619 (grub_menu_init): Accept unknown arguments.
8620 * grub-core/normal/main.c (features): Add feature_menuentry_id and
8621 feature_menuentry_options.
8622 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
8623 saved_entry.
8624 (get_entry_number): Match with id as well.
8625 * include/grub/menu.h (grub_menu_entry): New member id.
8626 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
8627 * util/grub.d/00_header.in: Define menuentry_id_option.
8628 * util/grub.d/10_hurd.in: Define id.
8629 * util/grub.d/10_illumos.in: Likewise.
8630 * util/grub.d/10_kfreebsd.in: Likewise.
8631 * util/grub.d/10_linux.in: Likewise.
8632 * util/grub.d/10_netbsd.in: Likewise.
8633 * util/grub.d/10_windows.in: Likewise.
8634 * util/grub.d/20_linux_xen.in: Likewise.
8635 * util/grub.d/30_os-prober.in: Likewise.
8636
86372012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
0d31b7df
VS
8638
8639 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
8640 "scope" with "body".
8641
7c8d0ce7
VS
86422012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
8645 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
8646 prot_size and prot_file_size.
8647
49de079b
VS
86482012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8649
8650 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
8651 All users updated. If easily=1 require raid-5/-6 to be full.
8652 (is_node_readable): Likewise.
8653 (scan_devices): Scan incomplete but readable LVs at the end.
8654 (grub_diskfilter_memberlist): Pull missing devices.
8655 (insert_array): Skip scanning until device is complete or scan is
8656 done otherwise.
8657 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
8658 check.
8659 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
8660 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
8661
aff05d45
MG
86622012-03-03 Matthew Garrett <mjg@redhat.com>
86632012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8664
8665 Avoid EFI boot services when loading Linux.
8666
8667 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
8668 avoid_efi_bootservices. All users updated.
8669 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
8670 argument avoid_efi_bootservices. All users updated.
8671 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
8672 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
8673 align, min_align, relocatable, prefered_address. All users updated.
8674 Allocate avoiding boot services if kernel is relocatable.
8675 (grub_cmd_linux): Check if kernel is relocatable.
8676 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
8677 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
8678 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
8679 avoid_efi_boot_services.
8680 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
8681 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
8682 (linux_kernel_params): Likewise.
8683
3935dde2
MG
86842012-03-03 Matthew Garrett <mjg@redhat.com>
86852012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8686
8687 Use EDID on EFI.
8688
8689 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
8690 datasize_out.
8691 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
8692 modes. Set gop_handle.
8693 (grub_video_gop_get_edid): New function.
8694 (grub_gop_get_preferred_mode): Likewise.
8695 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
8696 (grub_video_efi_gop_adapter): Set .get_edid.
8697 * include/grub/efi/edid.h: New file.
8698 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
8699
32107ec0
VS
87002012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8701
8702 * util/grub-install.in: Load efivars unconditionally.
8703
e70a2c50
VS
87042012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * po/Rules-piglatin: Change suffix from .po-update-en to
8707 .po-update-en-piglatin.
8708
8f9cace1
VS
87092012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8710
8711 Add a pig farm.
8712
8713 * po/piglatin.sed: New file.
8714 * po/en@piglatin.header: Likewise.
8715 * po/Rules-piglatin: Likewise.
8716 * po/README: Add en@piglatin to autogenerated languages.
8717
8f95d002
VS
87182012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8719
8720 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
8721 "Command for ...".
8722 * grub-core/commands/hdparm.c (options): Use "Display" rather than
8723 "Check" since we don't check anything.
8724 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
8725 is 64-bit one.
8726 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
8727 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
8728 (grub_md_sha512_real): Likewise.
8729
805a8dcc
VS
87302012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * grub-core/commands/gptsync.c: Fix typographic quoting.
8733 * grub-core/commands/ieee1275/suspend.c: Likewise.
8734 * grub-core/commands/parttool.c: Likewise.
8735 * grub-core/commands/search_wrap.c: Likewise.
8736 * grub-core/commands/videoinfo.c: Likewise.
8737 * grub-core/gfxmenu/gui_label.c: Likewise.
8738 * grub-core/hello/hello.c: Likewise.
8739 * grub-core/kern/emu/main.c: Likewise.
8740 * grub-core/net/net.c: Likewise.
8741 * grub-core/normal/menu.c: Likewise.
8742 * grub-core/normal/menu_text.c: Likewise.
8743 * grub-core/normal/misc.c: Likewise.
8744 * util/grub-editenv.c: Likewise.
8745 * util/grub-install.in: Likewise.
8746 * util/grub-kbdcomp.in: Likewise.
8747 * util/grub-mkconfig.in: Likewise.
8748 * util/grub-mknetdir.in: Likewise.
8749 * util/grub-mkrescue.in: Likewise.
8750 * util/grub-mkstandalone.in: Likewise.
8751 * util/grub-reboot.in: Likewise.
8752 * util/grub-set-default.in: Likewise.
8753 * util/grub-setup.c: Likewise.
8754 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8755
40211ab8
VS
87562012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
8759 * grub-core/commands/keystatus.c: Likewise.
8760 * grub-core/commands/loadenv.c: Likewise.
8761 * grub-core/commands/probe.c: Likewise.
8762 * grub-core/commands/regexp.c: Likewise.
8763 * grub-core/commands/true.c: Likewise.
8764 * grub-core/commands/videoinfo.c: Likewise.
8765 * grub-core/disk/cryptodisk.c: Likewise.
8766 * grub-core/disk/ldm.c: Likewise.
8767 * grub-core/disk/loopback.c: Likewise.
8768 * grub-core/disk/luks.c: Likewise.
8769 * grub-core/fs/zfs/zfsinfo.c: Likewise.
8770 * grub-core/kern/disk.c: Likewise.
8771 * grub-core/kern/emu/hostdisk.c: Likewise.
8772
0c7d99c7
VS
87732012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8774
8775 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
8776 * util/grub-install.in: Add missing quote in the comment.
8777
e7d2559b
VS
87782012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
8781 * grub-core/commands/lsmmap.c: Likewise.
8782 * grub-core/commands/minicmd.c: Likewise.
8783 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
8784 * grub-core/commands/regexp.c: Likewise.
8785 * grub-core/gdb/gdb.c: Likewise.
8786 * grub-core/term/gfxterm.c: Likewise.
8787 * util/grub-mkconfig.in: Likewise.
8788 * util/grub-mkfont.c: Likewise.
8789 * util/grub-mklayout.c: Likewise.
8790 * util/grub-mknetdir.in: Likewise.
8791 * util/grub-mkrescue.in: Likewise.
8792 * util/grub.d/30_os-prober.in: Likewise.
8793
49ce9e50
VS
87942012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8795
8796 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
8797 with "Direct color" and "Packed" with "Packed pixel".
8798 (grub_cmd_videoinfo): Simplify legend.
8799
e4b791fa
VS
88002012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8801
8802 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
8803 absolutely unclear error message.
8804
fd1265cb
VS
88052012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8806
8807 * util/grub-mkstandalone.in: Remove confusing leftover print.
8808
8822a8a0
VS
88092012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8810
8811 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
8812 comments.
8813 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
8814 (GRUB_MOD_INIT): Likewise.
8815 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
8816 VGA mode.
8817 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
8818 comments.
8819 * util/grub-install.in (usage): Likewise.
8820 Spell ID in whole letters.
8821 Add missing ending dot.
8822 Quote variables.
8823 * util/grub-reboot.in: Fix capitalisation.
8824 * util/grub-set-default.in: Likewise.
8825
937fd0cc
VS
88262012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8827
8828 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
8829 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
8830 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
8831 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
8832 Disable -Werror for -Wdeprecated-declarations.
8833 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
8834 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
8835 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
8836 (grub_util_get_grub_dev): Make luks handling dependent on
8837 HAVE_DEVICE_MAPPER and not __linux__.
8838 (get_win32_path): Fix format security.
8839 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
8840 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
8841 Don't try grub_find_zpool_from_dir.
8842 (grub_make_system_path_relative_to_its_root) [!__linux__]:
8843 #ifdef-out paresdir.
8844
1bab1ae3
VS
88452012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8846
8847 * util/grub-pe2elf.c (usage): Add missing noreturn.
8848 (write_section_data): Rename name to shname to avoid shadowing.
8849 (write_symbol_table): Rename name to symname to avoid shadowing.
8850 Fix write_reloc_section call.
8851
ef023e42
VS
88522012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8853
8854 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
8855 to ensure that it's after the last byte of .text.
8856
48afcb75
VS
88572012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 * util/ieee1275/ofpath.c (my_isdigit): New function.
8860 (trailing_digits): Use my_isdigit.
8861 (strip_trailing_digits): Likewise.
8862
88d51eff
VS
88632012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8864
8865 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
8866 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
8867
17edc2ba
VS
88682012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8869
8870 * grub-core/kern/i386/pc/startup.S: Define __start.
8871
ad5518d7
VS
88722012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8873
8874 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
8875 strip already transforms he format.
8876
9e95e1bf
VS
88772012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
8880
9cc3ee5c
VS
88812012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8882
8883 * util/grub-install.in: Add missing gettext init.
8884 * util/grub-kbdcomp.in: Likewise.
8885 * util/grub-mkconfig.in: Likewise.
8886 * util/grub-mknetdir.in: Likewise.
8887 * util/grub-mkrescue.in: Likewise.
8888 * util/grub-mkstandalone.in: Likewise.
8889 * util/grub-reboot.in: Likewise.
8890 * util/grub-set-default.in: Likewise.
8891 * util/grub.d/00_header.in: Likewise.
8892 * util/grub.d/10_hurd.in: Likewise.
8893 * util/grub.d/10_windows.in: Likewise.
8894 * util/grub.d/30_os-prober.in: Likewise.
8895 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8896
49e08a06
VS
88972012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 * po/Rules-swiss: Fix header comment.
8900
3809cb41
AV
89012012-02-29 Andreas Vogel <anvoit>
8902
8903 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
8904 resulted in leak of arguments.
8905
fa6ec573
VS
89062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 * grub-core/boot/i386/pc/startup_raw.S: Use separate
8909 reed_solomon_size const definition instead of computing it since
8910 Apple assembler doesn't support the later.
8911
22899b9c
VS
89122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8913
8914 * gentpl.py (kernel): Rewrite Apple part.
8915
a132afc3
VS
89162012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8917
8918 * include/grub/kernel.h (FOR_MODULES): Check module magic.
8919
9d742bd4
VS
89202012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8921
8922 * util/grub-mkimagexx.c (locate_sections): Support non-standard
8923 ELF section gap.
8924 (load_image): Likewise.
8925
f04a9a21
VS
89262012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8927
8928 * configure.ac: Fix a typo in previous commit.
8929
46cf439c
VS
89302012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8931
8932 Don't add -Wl,-N on Apple platform.
8933
8934 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
8935 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
8936
c4c48c54
VS
89372012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8938
8939 * grub-core/Makefile.core.def (lzma_decompress): Use
8940 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
8941
31a12124
VS
89422012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8943
8944 * grub-core/genmod.sh.in: Rewrite the Apple part.
8945
4f3aa1af
VS
89462012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8947
8948 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
8949 comparison.
8950
7bd8b0c7
VS
89512012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8952
8953 * acinclude.m4 (grub_CHECK_PIC): New test.
8954 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
8955
97304d7c
VS
89562012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8957
8958 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
8959 to avoid the warning.
8960
fb883812
VS
89612012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8962
8963 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
8964 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
8965 after. All users updated.
8966
a121c964
VS
89672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8968
8969 Use the common size routine in hostfs so we can read disks as well.
8970
8971 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
8972 (grub_util_get_fd_size): ... this. Return size in bytes.
8973 All users updated.
8974 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
8975 grub_util_get_fd_size.
8976
c66d6410
VS
89772012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
8980 Add blocksize retrieval.
8981
dfc8aeb0
VS
89822012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * configure.ac: Restore CFLAGS after efiemu check.
8985
403e25a5
VS
89862012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
8989 Apple bug.
8990
382775d1
VS
89912012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
8994
6fd4e6e4
VS
89952012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
8996
8997 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
8998 (grub_cmd_halt): Likewise.
8999
bea359d6
VS
90002012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
9003 for local arithmetics.
9004 Break %sp init into 2 instructions.
9005 Add 0 byte at the end.
9006
32eb6ee1
VS
90072012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9008
9009 * grub-core/disk/diskfilter.c (read_segment): Initialise err
9010 before loops.
9011
e8377389
VS
90122012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9013
9014 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
9015 for context.
9016
8cb17de7
VS
90172012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9018
9019 * grub-core/disk/ldm.c (make_vg): Init part.name.
9020 (grub_ldm_detect): Silence spurious warning.
9021 (grub_util_is_ldm): Likewise.
9022
595717e6
VS
90232012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9024
9025 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
9026 sane value to avoid a spurious warning.
9027
c4b7e588
VS
90282012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
9031 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
9032
59824957
VS
90332012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9034
9035 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
9036 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
9037
70115b99
VS
90382012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
9041 hardcoding the relevant info.
9042
56733740
VS
90432012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9044
9045 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
9046 missing const qualifiers.
9047 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
9048
43481481
VS
90492012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 * util/getroot.c [__APPLE__]: Add missing includes.
9052 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
9053
3cb38f01
VS
90542012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9055
9056 * util/grub-mkimage.c (generate_image): Silence spurious warning.
9057
d9dbf11e
VS
90582012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9059
9060 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
9061 avoid conflicts.
9062
0c42a45d
VS
90632012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9064
9065 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
9066
46c34eb0
VS
90672012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9068
9069 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
9070 and grub_file_close call.
9071
99ce1597
VS
90722012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9073
9074 Add LZSS Mach-O support (needed for new xnu kernelcache).
9075
9076 * grub-core/Makefile.core.def (xnu): Add file lzss.c
9077 * grub-core/loader/lzss.c: New file.
9078 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
9079 on Mach-O open failure.
9080 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
9081 Don't free cmdsXX in uncompressedXX is set.
9082 (grub_macho_file): Init new fields.
9083 New argument is_64bit. All users updated.
9084 Handle compressed. Error out if no suitable architecture is found.
9085 Don't close file.
9086 (grub_macho_open): New argument is_64bit. All users updated.
9087 * grub-core/loader/macho32.c: Add defines for new fields.
9088 * grub-core/loader/macho64.c: Likewise.
9089 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
9090 (grub_macho_parse): Handle compressed.
9091 Defer actual processing if compressed.
9092 (grub_macho_cmds_iterate): Decompress if compressed. New argument
9093 "filename". All users updated.
9094 (grub_macho_size): New argument "filename". All users updated.
9095 (grub_macho_get_entry_point): Likewise.
9096 (grub_macho_load): Handle compressed.
9097 * include/grub/macho.h (grub_macho_lzss_header): New struct.
9098 (GRUB_MACHO_LZSS_OFFSET): New define.
9099 (grub_decompress_lzss): New proto.
9100 * include/grub/machoload.h (grub_macho_file): New fields to handle
9101 compressed.
9102 (grub_macho_contains_macho64): Remove proto.
9103 (grub_macho_contains_macho32): Likewise.
9104 * util/grub.d/30_os-prober.in: Use kernel cache if available.
9105
ebd17d6f
VS
91062012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
9107
9108 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
9109
2702b4e4
VS
91102012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9111
9112 Fix make dist.
9113
9114 * Makefile.am (starfield_theme_files): New var.
9115 (starfield_DATA): Use starfield_theme_files.
9116 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
9117 Add bootcheck-related files.
9118 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
9119 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
9120 and font_char_metrics.txt.
9121 * grub-core/Makefile.core.def (kernel): Update extra_dist.
9122 (setjmp): Add lib/ia64/longjmp.S.
9123 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
9124 * po/POTFILES.in: Regenerate.
9125 * po/Rules-swiss: use DISTFILES.common.extra2 and not
9126 DISTFILES.common.extra1.
9127 * util/devicemap.c: Removed.
9128 * grub-core/lib/i386/relocator_backward.S: Likewise.
9129 * util/import_gcry.py: Remove unused files. Add extra_dist for
9130 ChangeLog.
9131
cf1adfdf
VS
91322012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
9133
9134 * grub-core/gettext/gettext.c (grub_mofile_open): Call
9135 grub_gettext_delete_list before changing grub_gettext_max to avoid
9136 running out of array bounds.
9137
91382012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
7acd2ae1
VS
9139
9140 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
9141 grub_vga_text_init/grub_vga_text_fini.
9142
cf1adfdf 91432012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
629e6a33
VS
9144
9145 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
9146
541d92e9
VS
91472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9148
9149 * configure.ac: Bump to 2.00~beta0.
9150
7931dddf
VS
91512012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9152
9153 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
9154 missing initialisation.
9155
f1b16fa3
VS
91562012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9157
9158 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
9159
83ddae23
VS
91602012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9161
9162 Support v2 xnu boot arguments.
9163
9164 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
9165 New argument fsbfreq_out.
9166 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
9167 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
9168 be used.
9169 * grub-core/loader/machoXX.c (grub_macho_load): New argument
9170 darwin_version.
9171 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
9172 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
9173 (grub_xnu_boot_params): Rename to ...
9174 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
9175 (grub_xnu_boot_params_v2): New struct.
9176
dc693fe6
VS
91772012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9178
9179 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
9180 zeroing of CRC field before computing CRC.
9181
5a6e39c2
VS
91822012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9183
9184 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
9185 Change order of allocations to decrease fragmentation.
9186
6c21f5d7
VS
91872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9188
9189 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
9190
cfe456dc
CW
91912012-02-27 Colin Watson <cjwatson@ubuntu.com>
9192
9193 Use write-combining MTRR to speed up video with buggy BIOSes.
9194
9195 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
9196 (cpuid): New define.
9197 (rdmsr): Likewise.
9198 (wrmsr): Likewise.
9199 (mtrr_base): Likewise.
9200 (mtrr_mask): Likewise.
9201 (grub_vbe_enable_mtrr_entry): New function.
9202 (grub_vbe_enable_mtrr): Likewise.
9203 (grub_vbe_disable_mtrr): Likewise.
9204 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
9205 control off to BIOS.
9206 (grub_video_vbe_init): Fill mtrr.
9207 (grub_video_vbe_fini): Disable mtrr.
9208 (grub_video_vbe_get_info_and_fini): Likewise.
9209 (grub_video_vbe_setup): Enable mtrr.
9210
e3c78337
CW
92112012-02-27 Colin Watson <cjwatson@ubuntu.com>
9212
9213 * include/grub/partition.h (grub_partition_map): Change prototype of
9214 embed to take a maximum value for nsectors.
9215 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
9216 * include/grub/fs.h (grub_fs): Likewise.
9217 * grub-core/partmap/msdos.c (embed_signatures): New array.
9218 (pc_partition_map_embed): Check for and avoid sectors matching any
9219 of the signatures in embed_signatures, up to max_nsectors.
9220 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
9221 returned sector map to max_nsectors.
9222 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
9223 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
9224 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
9225 * util/grub-setup.c (setup): Allow for the embedding area being
9226 split into multiple blocklists. Tell dest_partmap->embed the
9227 maximum number of sectors we care about.
9228
92292012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9230
9231 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
9232 Specify blocklist_install and reserver_first_sector for all fs.
9233 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
9234 blocklists.
9235
984b973f
VS
92362012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9237
9238 * util/grub-install.in: Clarify strings.
9239 Fix source dir check.
9240
f122e0d6
RL
92412012-02-27 Richard Laager <rlaager@wiktel.com>
9242
9243 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
9244 "zfs" and "fuse.zfs" as synonyms.
9245
071114bb
VS
92462012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9247
9248 * configure.ac: Put platform and target_cpu substitutions back since
9249 they are used for directories.
9250
817e6abc
RL
92512012-02-27 Richard Laager <rlaager@wiktel.com>
92522012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9253
9254 * util/grub.d/10_linux.in: Add ZFS-related arguments.
9255 * util/grub.d/20_linux_xen.in: Likewise.
9256
897b7419
RL
92572012-02-27 Richard Laager <rlaager@wiktel.com>
9258
9259 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
9260 with full paths.
9261
a414bd15
RL
92622012-02-27 Richard Laager <rlaager@wiktel.com>
9263
9264 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
9265 unescape.
9266
30ac48c4
VS
92672012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 Don't use insecure popen in getroot.
9270
9271 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
9272 (exec_pipe): ... here.
9273 (find_root_devices_from_poolname): Use exec_pipe.
9274
53f13848
VS
92752012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9276
9277 Remove platform and target_cpu replacement.
9278
9279 * configure.ac: Remove platform and target_cpu substitutions.
9280 * tests/util/grub-shell.in: Use modinfo.
9281 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
9282 explicitly.
9283
90cb2803
VS
92842012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9285
9286 Autodetect platform in grub-install but allow override.
9287
9288 * util/grub-install.in: Autodetect platform. Support --target and
9289 --directory. Read platform from modinfo.sh.
9290
b9136427
VS
92912012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9292
9293 Support btrfs multi-volume probe.
9294
9295 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
9296 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
9297 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
9298 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
9299 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
9300 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
9301 grub_find_root_devices_from_btrfs if on btrfs.
9302
c36e5cd1
VS
93032012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9304
9305 Remove any awareness of *.c util files about target.
9306
9307 * Makefile.util.def (grub-setup): Split to ...
9308 (grub-bios-setup): ... and this.
9309 (grub-sparc64-setup): ... and this.
9310 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
9311 * docs/man/grub-setup.h2m: Split into ...
9312 * docs/man/grub-sparc64-setup.h2m: ... this.
9313 * docs/man/grub-bios-setup.h2m: ... and this.
9314 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
9315 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
9316 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
9317 (grub_target_addr_t): Remove.
9318 (grub_target_size_t): Remove.
9319 (grub_target_ssize_t): Remove.
9320 * util/grub-install.in: Use new grub-*-setup.
9321 * util/grub-mkimagexx.c (Elf_Word): New define.
9322 (Elf_Half): Likewise.
9323 (Elf_Section): Likewise.
9324 (ELF_ST_TYPE): Likewise.
9325 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
9326 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
9327
584b2f8a
VS
93282012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9329
9330 Replace grub_target_addr with more appropriate types.
9331
9332 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
9333 grub_target_addr with grub_addr.
9334 * grub-core/commands/iorw.c (grub_cmd_read): Replace
9335 grub_target_addr with grub_port.
9336 (grub_cmd_write): Likewise.
9337 * grub-core/commands/memrw.c (grub_cmd_read): Replace
9338 grub_target_addr with grub_addr.
9339 (grub_cmd_write): Likewise.
9340 * grub-core/video/efi_uga.c (find_line_len): Likewise.
9341
5a0dc6fb
VS
93422012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9343
9344 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
9345 const qualifier for vendor_guid.
9346
786aff6e
VS
93472012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9348
9349 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
9350 const qualifier.
9351 (efiemu_memequal): Likewise.
9352 (find_variable): Likewise.
9353
49017b17
VS
93542012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9355
9356 Fix missing console prototype on qemu-mips.
9357
9358 * include/grub/mips/qemu_mips/console.h: New file.
9359
c5988629
MG
93602012-02-27 Matthew Garrett <mjg@redhat.com>
93612012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9362
9363 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
9364 * include/grub/efi/efi.h: Likewise.
9365 * include/grub/efi/api.h: Add guid for EFI-specified variables.
9366 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
9367 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
9368 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
9369 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
9370 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
9371
e33f8d69
MG
93722012-02-27 Matthew Garrett <mjg@redhat.com>
9373
9374 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
9375
fb312cd9
VS
93762012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9377
9378 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
9379 error.
9380
7134247c
VS
93812012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9382
9383 * configure.ac: Remove inappropriate use of program_transform_name
9384 on grubdir and bootdir but allow explicit specification of those
9385 variables.
9386
6a313124
VS
93872012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * util/grub-mknetdir.in (grub_prefix): Removed.
9390 (subdir): Use @bootdirname@ and @grubdirname@.
9391
2311c5ca
VS
93922012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9393
9394 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
9395
7d5d60f7
VS
93962012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9397
9398 * po/POTFILES.in: Regenerated.
9399
8151bc82
VS
94002012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9401
9402 Remove improper use of program_transform_name on pkglibrootdir.
9403
9404 * configure.ac (pkglibrootdir): Removed.
9405 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
9406 * util/grub-mkimage.c: Likewise.
9407
b4a6a533
VS
94082012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9409
9410 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
9411 warning.
9412
668f304f
VS
94132012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * util/grub-install.in: Use file identifier if no UUID is available
9416 or user explicitly prompted for it.
9417
665f2341
NP
94182012-02-27 Navdeep Parhar <nparhar@gmail.com>
9419
9420 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
9421 (freebsd_get_zfs): New function.
9422 (grub_freebsd_boot): Pass zfs UUID.
9423 (grub_cmd_freebsd): Set zfs UUID.
9424
8151bc82 94252012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
1240a58a
VS
9426
9427 * conf/Makefile.common (platformdir): Base on pkglibdir and not
9428 pkglibrootdir.
9429
e4c498a1
MG
94302012-02-27 Mike Gilbert <floppym@gentoo.org>
9431
9432 Add configure flag to control libzfs integration.
9433
9434 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
9435
1e9a9a3f
VS
94362012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9437
9438 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
9439 device.
9440 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
9441 small devices.
9442
036985b8
VS
94432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9444
9445 Remove grub_{modname}_init and grub_{modname}_fini. They should never
9446 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
9447 be used on non-modules.
9448
9449 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
9450 Rename to grub_boot_init.
9451 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
9452 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
9453 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
9454 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
9455 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
9456 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
9457 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
9458 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
9459 includes.
9460 (grub_machine_init): Remove empty inits.
9461 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
9462 includes.
9463 (grub_machine_init): Remove empty inits.
9464 * grub-core/term/arc/console.c: Remove explicit proto.
9465 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
9466 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
9467 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9468 grub_at_keyboard_fini.
9469 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
9470 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
9471 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9472 grub_gfxterm_fini.
9473 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
9474 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
9475 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9476 grub_vgatext_fini.
9477 * grub-core/term/ieee1275/console.c: Remove explicit proto.
9478 * grub-core/term/serial.c (GRUB_MOD_INIT)
9479 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
9480 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9481 grub_serial_fini.
9482 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
9483 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
9484 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
9485 grub_terminfo_fini.
9486 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
9487 (GRUB_MOD_FINI): Likewise.
9488 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
9489 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
9490 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9491 grub_video_radeon_fuloong2e_fini.
9492 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
9493 [LOONGSON]: Rename to grub_video_sis315pro_init.
9494 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9495 grub_video_sis315pro_fini.
9496 * grub-core/video/sm712.c (GRUB_MOD_INIT)
9497 [LOONGSON]: Rename to grub_video_sm712_init.
9498 (GRUB_MOD_FINI) [LOONGSON]: Rename to
9499 grub_video_sm712_fini.
9500 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
9501 (grub_at_keyboard_fini): Likewise.
9502 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
9503 Don't declare grub_{modname}_init.
9504 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
9505 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
9506 New proto.
9507 (grub_keylayouts_fini) [!EMU]: Likewise.
9508 * include/grub/serial.h (grub_serial_init) [!EMU]:
9509 New proto.
9510 (grub_serial_fini) [!EMU]: Likewise.
9511 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
9512 New proto.
9513 (grub_terminfo_fini) [!EMU]: Likewise.
9514 * include/grub/video.h (grub_font_init) [!EMU]:
9515 New proto.
9516 (grub_font_fini) [!EMU]: Likewise.
9517 (grub_gfxterm_init) [!EMU]: Likewise.
9518 (grub_gfxterm_fini) [!EMU]: Likewise.
9519 (grub_video_sm712_init) [!EMU]: Likewise.
9520 (grub_video_sm712_fini) [!EMU]: Likewise.
9521 (grub_video_sis315pro_init) [!EMU]: Likewise.
9522 (grub_video_sis315pro_fini) [!EMU]: Likewise.
9523 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
9524 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
9525
d5534665
VS
95262012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9527
9528 Make nand a prefix for nand devices.
9529
9530 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
9531
10133b5f
VS
95322012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
9535 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
9536
8e307a62
VS
95372012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9538
9539 * include/grub/env.h (grub_env_find): Remove prototype.
9540 * grub-core/kern/env.c (grub_env_find): Make static.
9541 (grub_env_set): Remove useless set.
9542
a4c65f34
VS
95432012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9544
9545 * grub-core/kern/i386/realmode.S: Remove useless align.
9546
d87893d5
VS
95472012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * include/grub/dl.h (grub_dl_load_file): Don't export.
9550
50159add
VS
95512012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9552
9553 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
9554 grub_dprintf.
9555
b2582b84
VS
95562012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9557
9558 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
9559 grub_errors.
9560 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
9561 not reloading whole superblock but only the part which is really needed.
9562 Remove useless grub_errors.
9563 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
9564 grub_errors.
9565
e2a83395
VS
95662012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9567
9568 Don't export grub_get_rtc.
9569
9570 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
9571 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
9572
e7d2a906
VS
95732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9574
9575 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
9576
6cf1363b
VS
95772012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
e7d2a906 9580 argument since it can be deduced from diskfilter. All users updated.
6cf1363b 9581
eece3349
VS
95822012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9583
9584 Remove prio_list.
9585
9586 * include/grub/list.h (grub_prio_list): Removed.
9587 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
9588 GRUB_COMMAND_PRIO_MASK.
9589 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
9590 GRUB_COMMAND_FLAG_ACTIVE.
9591 (grub_prio_list_insert): Removed.
9592 (grub_prio_list_remove): Likewise.
9593 (GRUB_AS_PRIO_LIST): Likewise.
9594 (GRUB_AS_PRIO_LIST_P): Likewise.
9595 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
9596 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
9597 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
9598 * grub-core/kern/command.c (grub_register_command_prio): Inline
9599 the prio_list code.
9600 (grub_unregister_command): Likewise.
9601
94f064b4
VS
96022012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9603
9604 Fix interrupt mixup from previous commit.
9605
9606 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
9607 (grub_realidt): New var.
9608 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
9609 Load idt.
9610 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
9611 New declaration.
9612 (grub_relocator16_boot): Set grub_relocator16_idt.
9613 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
9614 (LOCAL(realidt)): ... this.
9615 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
9616 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
9617 (grub_realidt): New variable.
9618
27317084
VS
96192012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
9622 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
9623 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
9624 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
9625 Gettextize.
9626 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
9627 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
9628 * po/POTFILES.in: Regenerate.
9629
47b40053
VS
96302012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
9633 errors.
9634
2b343101
VS
96352012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9636
9637 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
9638 \0.
9639 (add_length): Likewise.
9640
ff27c3dd
LK
96412012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
96422012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
9643
9644 GDB serial and backtrace support.
9645
9646 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
9647 (prot_to_real): Likewise.
9648 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
9649 * grub-core/Makefile.core.def (backtrace): New module.
9650 (gdb): Likewise.
9651 * grub-core/gdb/cstub.c: New file.
9652 * grub-core/gdb/gdb.c: Likewise.
9653 * grub-core/gdb/i386/idt.c: Likewise.
9654 * grub-core/gdb/i386/machdep.S: Likewise.
9655 * grub-core/gdb/i386/signal.c: Likewise.
9656 * grub-core/lib/i386/backtrace.c: Likewise.
4cebfa1a 9657 * grub-core/lib/backtrace.c: Likewise.
ff27c3dd
LK
9658 * include/grub/backtrace.h: Likewise.
9659 * include/grub/gdb.h: Likewise.
9660 * include/grub/i386/gdb.h: Likewise.
9661
96622012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
585031cb
VS
9663
9664 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
9665 New function.
9666 (add_length): Likewise.
9667 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
9668 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
9669 proto.
9670 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
9671 __argp_get_display_len.
9672
ff27c3dd 96732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
7e8fac16
VS
9674
9675 $"..." support in scripts.
9676
9677 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
9678 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
9679 * grub-core/script/yylex.l: Likewise.
9680 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
9681 value.
9682
ff27c3dd 96832012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15eff5d9
VS
9684
9685 * gentpl.py: Remove obsolete pkglib_DATA handling.
9686
ff27c3dd 96872012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
fc847818
VS
9688
9689 Don't transform PACKAGE_TARNAME following a discussion on autoconf
9690 mailing list.
9691
9692 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
9693 * util/grub-kbdcomp.in: Likewise.
9694 * util/grub-mkconfig.in: Likewise.
9695 * util/grub-mkconfig_lib.in: Likewise.
9696 * util/grub-mknetdir.in: Likewise.
9697 * util/grub-mkrescue.in: Likewise.
9698 * util/grub-mkstandalone.in: Likewise.
9699 * util/grub-reboot.in: Likewise.
9700 * util/grub-set-default.in: Likewise.
9701 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
9702
ff27c3dd 97032012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
47454da5
VS
9704
9705 Remove GRUB_PREFIX.
9706
9707 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
9708 * util/grub.d/00_header.in: Compute prefix in the only place it's still
9709 used for backward compatibility.
9710
ff27c3dd 97112012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
22c7ce85
VS
9712
9713 Add new all_video module.
9714
9715 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
9716 * grub-core/Makefile.core.def (all_video): New module.
9717 * grub-core/genmoddep.awk: Generate dependency of all_video from
9718 video.lst.
9719 * grub-core/lib/fake_module.c: New file.
9720 * grub-core/normal/main.c (features): Add feature_all_video_module.
9721 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
9722 don't do explicit search again.
47454da5 9723 insmod all_video in load_video if available.
22c7ce85 9724
ff27c3dd 97252012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
67093bc0
VS
9726
9727 Another round of string clarification and adding TRANSLATORS comments.
9728
ff27c3dd 97292012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
ad7b7b85
VS
9730
9731 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
9732
ff27c3dd 97332012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8b282ad2
VS
9734
9735 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
9736 to grub_ssize_t.
9737 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
9738 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
9739
ff27c3dd 97402012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
d43ad754
VS
9741
9742 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
9743 trailing newline implicitly. All users updated.
9744
ff27c3dd 97452012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
a9c7fd1c
VS
9746
9747 Implement serial on IEEE1275 and EFI.
9748
9749 * docs/grub.texi (Platform-specific limitations): Fix the columen video
9750 on emu. Mention arc and emu as the only platforms without serial
9751 support.
9752 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
9753 ieee1275 platforms.
9754 * grub-core/term/efi/serial.c: New file.
9755 * grub-core/term/ieee1275/serial.c: Likewise.
9756 * grub-core/term/serial.c (grub_serial_find): Disable direct port
9757 specification if no ns8250 driver is available.
9758 (grub_cmd_serial): Likewise.
9759 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
9760 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
9761 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
9762 (grub_efi_parity_type_t): New type.
9763 (grub_efi_stop_bits_t): Likewise.
9764 (grub_efi_serial_io_interface): New struct.
9765 * include/grub/serial.h (grub_serial_port): Make 'broken' field
9766 available for all interfaces.
9767 Add EFI and IEEE1275 fields.
9768 (grub_ofserial_init): New proto.
9769 (grub_efiserial_init): Likeiwse.
9770 * util/grub.d/00_header.in: Don't check for the presence of serial
9771 module.
9772
ff27c3dd 97732012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
0ec82090
VS
9774
9775 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
9776 name as if it was an alias.
9777
114076ef
VS
97782012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9779
9780 * grub-core/commands/lsacpi.c (options): Fix typo.
9781
6a656b0e
VS
97822012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9783
9784 Convert grub-emu to argp.
9785
9786 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
9787 emu.
9788 * util/argp_common.c: Rename to ...
9789 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
9790 Add missing includes.
9791 * grub-core/kern/emu/main.c: Convert to argp.
9792 * po/POTFILES.in: Regenerate.
9793 * util/grub-install.in (usage): Make first letter lowcase in messages
9794 for uniformity.
9795 * util/grub-setup.c (options): Likewise.
9796
1e3f8ae8
VS
97972012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
9800 Put back accidently commented-out code.
9801
ed167a80
VS
98022012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9803
9804 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
9805 loop check using Brent algorithm.
9806 (grub_hfsplus_btree_search): Likewise.
9807
6753c0ec
VS
98082012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9809
9810 * util/grub-install.in: Fix usage of wrong device for PreP install.
9811
4e27343f
VS
98122012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9813
9814 * conf/Makefile.common (CFLAGS_GNULIB): Add
9815 -Wno-unsafe-loop-optimizations.
9816 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
9817 on tools.
9818 * grub-core/commands/legacycfg.c: Add pragma to skip
9819 -Wunsafe-loop-optimizations.
9820 (check_password_md5_real): Fix loop counter type.
9821 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
9822 reading.
9823 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
9824 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
9825 loop condition.
9826 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
9827 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
9828 * grub-core/net/net.c (grub_net_route_address): Add safety loop
9829 condition.
9830 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
9831 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
9832 avoid possible infinite loops.
9833 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
9834 and -Wunsafe-loop-optimizations.
9835 * grub-core/script/yylex.l: Likewise.
9836 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
9837 (print_glyphs): Avoid infinite loops.
9838 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
9839
697f18b0
GS
98402012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
9841
9842 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
9843 to avoid infinite loop.
9844 (disp_acpi_rsdt_table): Likewise.
9845
274416e8
VS
98462012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9847
9848 * grub-core/font/font.c (grub_font_load): Add support for default
9849 path for fonts ($prefix/fonts).
9850 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
9851 for checking if string is a path.
9852 * grub-core/normal/main.c (features): Add feature_default_font_path.
9853 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
9854 * util/grub.d/00_header.in: Use default directory if possible.
9855 * util/grub-install.in: Install unicode.pf2.
9856
b3e08622
VS
98572012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9858
9859 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
9860 * po/Rules-swiss: New file.
9861 * po/swiss.sed: Likewise.
9862
fe42ce09
VS
98632012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9864
9865 * grub-core/fs/btrfs.c (find_device): Fix typos.
9866 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
9867 * util/grub-mkrelpath.c (argp_parser): Likewise.
9868 Reported by: Yuri Chornoivan.
9869
72f1d065
DO
98702012-02-23 Dalet Omega <daletomega@gmail.com>
9871
9872 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
9873 for usual informative messages.
9874
c5884973
DO
98752012-02-23 Dalet Omega <daletomega@gmail.com>
9876
9877 Starfield theme.
9878
9879 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
9880 * conf/Makefile.common: Define starfielddir.
9881 * configure.ac: Configure starfield.
9882 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
9883 * themes/starfield/README: Likewise.
9884 * themes/starfield/blob_w.png: Likewise.
9885 * themes/starfield/boot_menu_c.png: Likewise.
9886 * themes/starfield/boot_menu_e.png: Likewise.
9887 * themes/starfield/boot_menu_n.png: Likewise.
9888 * themes/starfield/boot_menu_ne.png: Likewise.
9889 * themes/starfield/boot_menu_nw.png: Likewise.
9890 * themes/starfield/boot_menu_s.png: Likewise.
9891 * themes/starfield/boot_menu_se.png: Likewise.
9892 * themes/starfield/boot_menu_sw.png: Likewise.
9893 * themes/starfield/boot_menu_w.png: Likewise.
9894 * themes/starfield/slider_c.png: Likewise.
9895 * themes/starfield/slider_n.png: Likewise.
9896 * themes/starfield/slider_s.png: Likewise.
9897 * themes/starfield/src/blob_nw.xcf: Likewise.
9898 * themes/starfield/src/bootmenu/: Likewise.
9899 * themes/starfield/src/bootmenu/center.xcf: Likewise.
9900 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
9901 * themes/starfield/src/bootmenu/side.xcf: Likewise.
9902 * themes/starfield/src/slider_c.xcf: Likewise.
9903 * themes/starfield/src/slider_n.xcf: Likewise.
9904 * themes/starfield/src/slider_s.xcf: Likewise.
9905 * themes/starfield/src/terminalbox/: Likewise.
9906 * themes/starfield/src/terminalbox/center.xcf: Likewise.
9907 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
9908 * themes/starfield/src/terminalbox/side.xcf: Likewise.
9909 * themes/starfield/starfield.png: Likewise.
9910 * themes/starfield/terminal_box_c.png: Likewise.
9911 * themes/starfield/terminal_box_e.png: Likewise.
9912 * themes/starfield/terminal_box_n.png: Likewise.
9913 * themes/starfield/terminal_box_ne.png: Likewise.
9914 * themes/starfield/terminal_box_nw.png: Likewise.
9915 * themes/starfield/terminal_box_s.png: Likewise.
9916 * themes/starfield/terminal_box_se.png: Likewise.
9917 * themes/starfield/terminal_box_sw.png: Likewise.
9918 * themes/starfield/terminal_box_w.png: Likewise.
9919 * themes/starfield/theme.txt: Likewise.
9920
17d73325
VS
99212012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
9922
9923 * util/grub.d/00_header.in: Add missing export theme.
9924
dbebaf92
VS
99252012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9926
9927 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
9928 already included.
9929 Reported by: Eren D.
9930
3d68bffb
VS
99312012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9932
9933 * conf/Makefile.common (grubdatadir): Removed.
9934 (Makefile.am): Move eveything grubdata to pkgdata.
9935
4b59234d
VS
99362012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9937
9938 * grub-core/commands/acpihalt.c (get_sleep_type):
9939 Remove unused variable.
9940
463dcadc
VS
99412012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9942
9943 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
9944 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
9945 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
9946 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
9947 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
9948 i18n with gettext no-op.
9949 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
9950 GRUB_ACPI_OPCODE_STRING_CONST.
9951 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
9952 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
9953
e5b90c82
VS
99542012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9955
9956 * po/POTFILES.in: Regenerate.
9957
2a704ca9
VS
99582012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9959
9960 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
9961 -Wno-error=missing-noreturn.
9962
84f9d341
VS
99632012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9964
9965 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
9966 condition to avoid possibly infinite loops.
9967 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
9968 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
9969
d46683f9
VS
99702012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9971
9972 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
9973 condition to avoid possibly infinite loops.
9974
c44866b2
VS
99752012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9976
9977 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
9978 on show_error.
9979
96790539
VS
99802012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9981
9982 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
9983
1ba7e295
VS
99842012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9985
9986 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
9987
21ffe8f1
VS
99882012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9989
9990 * util/bin2h.c (usage): Add missing attribute noreturn.
9991
0ccb6b3c
VS
99922012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9993
9994 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
9995 if the size isn't divisible by 512.
9996
b00d7fb6
VS
99972012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
9998
9999 Make list_push and list_remove functions rather than inline functions
10000 to decrease size and avoid aliasing violations.
10001
10002 * include/grub/list.h (grub_list_push): Move to ...
10003 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
10004 * include/grub/list.h (grub_list_remove): Move to ...
10005 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
10006
9d369087
VS
100072012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
10010 and -Wunused-result.
10011
af0250d9
VS
100122012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10013
10014 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
10015 Reported by: Seth Goldberg
10016
aad32b14
VS
100172012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
10018
10019 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
10020
ac96441c
ST
100212012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
10022
10023 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
10024 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
10025 command line.
10026 * docs/grub.texi (Simple configuration): Document
10027 GRUB_CMDLINE_GNUMACH.
10028
100292012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
80a71213
VS
10030
10031 * conf/Makefile.common (platform_SCRIPTS): New variable.
10032 (platform_PROGRAMS): Likewise.
10033 * gentpl.py: Mark *,module and *.image for install.
10034 * grub-core/gdb_grub.in: Add a notice of expected environment.
10035 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
10036 (gmodule.pl): Likewise.
10037
ac96441c 100382012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
a8f16eab
VS
10039
10040 Replace grub_checkkey with grub_getkey_noblock.
10041
10042 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
10043 (grub_getkey_noblock): ... this. All users updated.
10044
ac96441c 100452012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
b500bcfe
VS
10046
10047 * grub-core/kern/emu/console.c: Move to ...
10048 * grub-core/term/emu/console.c: ...here.
10049 (grub_ncurses_getkey): Fix return value if no key is detected.
10050
e51b5666
VS
100512012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10052
10053 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
10054 (grub_unit_test_fini): Likewise.
10055 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
10056
100572012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10058
10059 * include/grub/test.h (GRUB_UNIT_TEST)
10060
d9a62292
VS
100612012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10062
10063 * grub-core/script/execute.c (grub_script_break): Clarify logic.
10064 Better error handling.
10065 (grub_script_return): Likewise.
10066 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
10067
77c9182f
VS
100682012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
10071 rimplicit redifinition.
10072
edb13cf9
VS
100732012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10074
10075 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
10076 GRUB.
10077
a9e9dc7c
VS
100782012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10079
10080 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
10081 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
10082 prompt here.
10083
b4ba8e02
VS
100842012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10085
10086 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
10087 as GRUB_ERR_BUG. Don't malloc if no device is available.
10088
dded5540
VS
100892012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
10092 Mark calling with invalid term as GRUB_ERR_BUG.
10093
0cf69874
VS
100942012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10095
10096 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
10097 packets rather than raising an error.
10098
59bfe502
VS
100992012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10100
10101 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
10102 in if.
10103
db5fc596
VS
101042012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10105
10106 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
10107 diagnostic to dprintf.
10108 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
10109
e4b7f404
VS
101102012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
10113 device name.
10114
e7b02f9e
VS
101152012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
10118 (grub_ntfs_iterate_dir): Likewise.
10119
0331e102
VS
101202012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 Efiemu stylistic fixes and gettext.
10123
10124 * grub-core/efiemu/i386/loadcore32.c
10125 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
10126 * grub-core/efiemu/i386/loadcore64.c
10127 (grub_arch_efiemu_relocate_symbols64): Likewise.
10128 * grub-core/efiemu/i386/pc/cfgtables.c
10129 (grub_machine_efiemu_init_tables): Likewise.
10130 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
10131 (grub_efiemu_loadcore_initXX): Add a filename argument.
10132 All users updated.
10133 Improved error message.
10134 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
10135 Add a filename argument.
10136 All users updated.
10137 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
10138 Reclassify double relocation as GRUB_ERR_BUG.
10139
306fc074
VS
101402012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10141
10142 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
10143 handling.
10144
794d8ef2
VS
101452012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
10146
10147 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
10148 on partition.
10149
101502012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
f991dd3c
VS
10151
10152 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
10153
794d8ef2 101542012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
d61386e2
VS
10155
10156 Improve string. Gettextize.
10157
78dde88e
VS
101582012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10159
10160 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
10161 utils.
10162 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
10163
4786a90f
VS
101642012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10165
10166 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
10167 [GRUB_UTIL]: New function.
10168 (insert_array) [GRUB_UTIL]: Store partmaps.
10169 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
10170 partmaps.
10171 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
10172 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
10173 (probe_abstraction): Print diskfilter and not raid.
10174 Reported by: Lennart Sorensen
10175
0b6225bd
VS
101762012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10177
10178 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
10179 * util/grub-mkimagexx.c (MASK3): New define.
10180 (add_value_to_slot_20b): Use MASK3.
10181 (add_value_to_slot_21): Likewise.
10182 (relocate_addresses): Fix format specification.
10183 (load_image): Explicitly init symtab_section.
10184
b055f8f6
VS
101852012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10186
10187 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
10188 (grub_util_biosdisk_get_grub_dev): Fix format specification.
10189
b77c2fb7
VS
101902012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10191
10192 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
10193 on powerpc.
10194 Reported by: Lennart Sorensen
10195
e3ec28ab
VS
101962012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
10197
10198 * gentpl.py: Add missing license header.
10199 * docs/grub.texi: Update copyright year.
10200
c8d9ead6
GS
102012012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
10202
10203 Source grub-mkconfig_lib from the build directory at build time.
10204 Suggested by: Vladimir Serbinenko.
10205
10206 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
10207 * util/grub-install.in: Define pkgdatadir if not already set, and source
10208 grub-mkconfig_lib from there.
10209 * util/grub-kbdcomp.in: Likewise.
10210 * util/grub-mkconfig.in: Likewise.
10211 * util/grub-mknetdir.in: Likewise.
10212 * util/grub-mkrescue.in: Likewise.
10213 * util/grub-mkstandalone.in: Likewise.
10214 * util/grub-reboot.in: Likewise.
10215 * util/grub-set-default.in: Likewise.
10216 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
10217
ebcecdf1
VS
102182012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10219
10220 Increase warning level.
10221
10222 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
10223 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
10224 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
10225 (TARGET_CFLAGS): Likewise.
10226 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
10227 * grub-core/Makefile.core.def (decompressor_xz): Add
10228 -Wno-unreachable-code.
10229 (normal): Add -Wno-redundant-decls.
10230 (xzio): Add -Wno-unreachable-code.
10231 (lzopio): Add -Wno-redundant-decls -Wno-error.
10232 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
10233 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
10234 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
10235 * grub-core/kern/dl.c: Add exception to -Wcast-align.
10236 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
10237 * grub-core/kern/i386/coreboot/init.c: Add exception to
10238 -Wsuggest-attribute=noreturn.
10239 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
10240 * grub-core/kern/ia64/dl_helper.c: Likewise.
10241 * grub-core/kern/mips/dl.c: Likewise.
10242 * grub-core/kern/sparc64/dl.c: Likewise.
10243 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
10244 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
10245 (memcmp): Likewise.
10246 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
10247 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
10248 * grub-core/loader/mips/linux.c: Likewise.
10249 * grub-core/loader/multiboot_elfxx.c: Likewise.
10250 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
10251 * grub-core/video/sm712.c: Add exception to -Wcast-align.
10252 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
10253 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
10254 fixme.
10255 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
10256 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
10257 Fix prototype.
10258
37bb97fe
VS
102592012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10260
10261 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
10262 address.
10263
29a3550b
VS
102642012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10265
10266 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
10267 Avoid improper use of strings.
10268 (grub_cmd_legacy_initrdnounzip): Likewise.
10269
dfdffd0d
VS
102702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10271
10272 * include/grub/emu/misc.h (grub_util_warn): Add missing format
10273 attribute.
10274 (grub_util_info): Likewise.
10275 (grub_util_error): Likewise.
10276
102fae4a
VS
102772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10278
10279 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
10280 * util/grub-fstest.c (fstest): Likewise.
10281
7e94d044
VS
102822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10283
10284 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
10285 (grub_md_sha512_real): Likewise.
10286 (grub_util_get_geli_uuid): Likewise.
10287 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
10288 (grub_util_biosdisk_open): Fix format specification.
10289 Respect format security.
10290 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
10291 (xrealloc): Likewise.
10292 (xasprintf): Likewise.
10293
5ebd9769
VS
102942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10295
10296 * util/import_gcry.py: Include grub/crypto.h in init.c.
10297
495fc8c1
VS
102982012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10299
10300 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
10301 (generate_image): Make prefix a const char *.
10302 Fix format specifications. Respect format security.
10303 Avoid void * arithmetics.
10304 Avoid shadowing.
10305 (argp_parser): Remove unused variable. Respect format security.
10306 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
10307 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
10308 (count_funcs): Remove unused variable.
10309 (relocate_addresses): Fix format specification.
10310 Disable x86-64 with elf32. Remove unused variables.
10311 (add_fixup_entry): Avoid shadowing.
10312 (make_reloc_section): Fix format specification.
10313 Use assert.
10314 (locate_sections): Fix format specifications.
10315 (load_image): Avoid shadowing.
10316
043c2ea3
VS
103172012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10318
10319 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
10320 Fix format specifications. Respect format security.
10321 Don't translate already translated grub_errmsg.
10322 (argp_parser): Remove unused variable
10323
3ec65a81
VS
103242012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10325
10326 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
10327
a4d9fe4a
VS
103282012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10329
10330 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
10331 (main): Likewise. Use xmalloc. Respect format security.
10332
15b81d49
VS
103332012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10334
10335 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
10336 a const char *.
10337 (argp_parser): Remove unused variable.
10338
31731fc0
VS
103392012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10340
10341 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
10342 (add_pixel): Make static.
10343 (add_font): Likewise.
10344 (write_string_section): Make name and str a const char *.
10345 (write_be16_section): Make name a const char *.
10346 (print_glyphs): Make static.
10347 (write_font_ascii_bitmap): Likewise.
10348 (write_font_width_spec): Likewise.
10349 (write_font_pf2): Likewise.
10350 (argp_parser): Remove unused variable.
10351 Respect format security.
10352 (main): Avoid shadowing. Respect format security.
10353
0809527b
VS
103542012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10355
10356 * util/grub-editenv.c (argp_parser): Make static.
10357 (create_envblk_file): Use xmalloc.
10358 (open_envblk_file): Likewise.
10359 Resepect format security.
10360 (set_variables): Respect format security.
10361
45b0c8b7
VS
103622012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10363
10364 * util/getroot.c (grub_find_device): Respect format security.
10365 (get_mdadm_uuid): Remove unused variable.
10366 (grub_util_pull_device): Dont call gettext on already translated
10367 grub_errmsg.
10368 (find_system_device): Remove unused variable.
10369 (grub_util_get_grub_dev): Likewise.
10370 (grub_make_system_path_relative_to_its_root): Respect format security.
10371
1b024b4e
VS
103722012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10373
10374 * util/grub-fstest.c (execute_command): Make first argument
10375 a const char *.
10376 (read_file): Avoid shadowing.
10377 Reuse underlying error message if device open fails.
10378 (cmd_cmp): Respect format security.
10379 (root): Make const char *.
10380 (fstest): Remove args argument and use global copy.
10381 Respect format security.
10382 (argp_parser): Make static.
10383 (main): Make default_root const char *.
10384
5d1d4e28
VS
103852012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10386
10387 * util/grub-mount.c (root): Make const char *.
10388 (execute_command): Make first argument a const char *.
10389 (fuse_init): Respect format security.
10390 (argp_parser): Make static. Remove unused variable.
10391 (main): Make default_root a const char *.
10392 Respect format security.
10393
36eb7379
VS
103942012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10395
10396 * util/grub-probe.c (probe): Don't call gettext on already translated
10397 grub_errmsg.
10398 Remove unused variables.
10399 (argp_parser): Remove unused variable.
10400
76fb2ea9
VS
104012012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10402
10403 * util/grub-script-check.c (argp_parser): Remove unused variable.
10404 (main): Rename read to curread to avoid shadowing.
10405
56c98584
VS
104062012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 * util/misc.c (grub_util_write_image_at): Fix format specification.
10409 (grub_util_write_image): Likewise.
10410 (grub_script_execute_argument_to_string): Removed (unused).
10411 (grub_script_execute_menuentry): Likewise.
10412 (grub_putchar): Likewise.
10413
164ebb48
VS
104142012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10415
10416 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
10417 (FUNCTION) [GRUB_UTIL]: Likewise.
10418 (VARIABLE) [GRUB_UTIL]: Likewise.
10419
44318d61
VS
104202012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10421
10422 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
10423 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
10424
31a26002
VS
104252012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10426
10427 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
10428 buffer.
10429
104302012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10431
10432 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
10433 (LzmaEnc_SaveState): Removed (unused).
10434 (LzmaEnc_RestoreState): Likewise.
10435 (LzmaEnc_InitPriceTables): Made static.
10436 (LzmaEnc_Construct): Likewise.
10437 (LzmaEnc_FreeLits): Likewise.
10438 (LzmaEnc_Destruct): Likewise.
10439 (LzmaEnc_Init): Likewise.
10440 (LzmaEnc_InitPrices): Likewise.
10441 (LzmaEnc_Finish): Likewise.
10442 (LzmaEnc_PrepareForLzma2): Removed (unused).
10443 (LzmaEnc_MemPrepare): Likewise.
10444 (LzmaEnc_GetNumAvailableBytes): Likewise.
10445 (LzmaEnc_GetCurBuf): Likewise.
10446 (LzmaEnc_CodeOneMemBlock): Likewise.
10447
6fa67967
VS
104482012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10449
10450 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
10451 (grub_util_ldm_embed): Likewise.
10452
9a7428e6
VS
104532012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10454
10455 * util/grub-editenv.c (print_var): Rename name to varname to
10456 avoid shadowing.
10457 (main): Rename index to curindex to avoid shadowing.
31a26002 10458 Make filename a const char *.
9a7428e6 10459
4f96abd1
VS
104602012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10461
10462 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
10463 to arg_getline to avoid shadowing.
10464
44d10dad
VS
104652012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10466
10467 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
10468 disk_ to avoid shadowing.
10469
340ba63e
VS
104702012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10471
10472 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
10473 curindex to avoid shadowing.
10474 Make static.
10475 (MatchFinder_GetNumAvailableBytes): Make static.
10476
22965bce
VS
104772012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
10480 avoid shadowing.
10481
7b5784d4
VS
104822012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
10483
10484 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
10485 argument from encrypt to do_encrypt to avoid shadowing.
10486
6f48ca01
VS
104872012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10488
10489 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
10490 incorrect nesting of #if's.
10491
a4ea2dff
VS
104922012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10493
10494 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
10495 checks which are always false on some platforms.
10496 (grub_cmd_lsacpi): Likewise.
10497 * grub-core/kern/misc.c (grub_strtoul): Likewise.
10498 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
10499 Likewise.
10500
def9fc1b
VS
105012012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10502
10503 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
10504 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
10505
a67b2a04
VS
105062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10507
10508 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
10509 re_dfa_t to avoid breaking alignment invariants.
10510 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
10511 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
10512
44c6828d
VS
105132012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10514
10515 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
10516 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
10517
bebe0dd0
VS
105182012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10519
10520 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
10521 Fix declaration.
10522
a9cdb3cf
VS
105232012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10524
10525 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
10526 conserve alignment invariants.
10527 (grub_ehci_ehcc_read16): Likewise.
10528 (grub_ehci_oper_read32): Likewise.
10529 (grub_ehci_oper_write32): Likewise.
10530 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
10531 Conserve alignment invariants.
10532
ccc3b1b8
VS
105332012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10534
10535 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
10536 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
10537 declarations.
10538
987fbd95
VS
105392012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10540
10541 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
10542 Remove unused variable.
10543
0df363f3
VS
105442012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10545
10546 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
10547 Remove set in if.
10548
b2c0c4a6
VS
105492012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10550
10551 * include/grub/net.h: Remove double declarations.
10552
690c531f
VS
105532012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10554
10555 Remove "payload" command in ia64 Linux loader since I couldn't
10556 find any evidence of it being used for anything.
10557 Replace "relocate" command with an environment variable
10558
10559 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
10560 fields.
10561 (ia64_boot_payload): Removed.
10562 (last_payload): Likewise.
10563 (RELOCATE_OFF): Likewise.
10564 (RELOCATE_ON): Likewise.
10565 (RELOCATE_FORCE): Likewise.
10566 (relocate): Likewise.
10567 (free_pages): Don't free payloads.
10568 (grub_load_elf64): Use common error messages.
10569 Use "linux_relocate" variable.
10570 Increase the space after boot_params.
10571 (grub_cmd_payload): Removed.
10572 (grub_cmd_relocate): Likewise.
10573 (grub_cmd_fpswa): Improve messages.
10574 (cmd_payload): Removed.
10575 (cmd_relocate): Likewise.
10576 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
10577 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
10578
01783768
VS
105792012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10580
10581 Convert UHCI to DMA framework.
10582
10583 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
10584 (grub_uhci_pci_iter): Fill new members
10585 (grub_alloc_td): Use P2V and V2P functions.
10586 (grub_free_queue): Likewise.
10587 (grub_alloc_qh): Likewise.
10588 (grub_uhci_setup_transfer): Likewise.
10589 (grub_uhci_check_transfer): Likewise.
10590
43206939
VS
105912012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10592
10593 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
10594 Remove assignment in if while on it.
10595
571e140e
VS
105962012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10597
10598 * util/grub-mkstandalone.in: Fix modules directory.
10599
a9d96eeb
VS
106002012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10601
10602 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
10603 on i386-pc target.
10604 (argp_parser): Accept "auto" as compression specification.
10605
e4e37e8d
VS
106062012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10607
10608 Fix `help' with unloaded modules.
10609
10610 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
10611 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
10612 (grub_dyncmd_dispatcher): Small stylistic fix.
10613 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
10614 explicit help is requested.
10615
e1ea3ade
VS
106162012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10617
10618 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
10619 Explicitly init restart while on it.
10620
27556881
VS
106212012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
10624 uninited variable.
10625
d65f6b36
VS
106262012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10627
10628 * util/grub-mknetdir.in: Use . rather than source for POSIX
10629 compatibility.
10630
0a1e473c
VS
106312012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10632
10633 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
10634
ce6647c8
VS
106352012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10636
10637 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
10638 variable.
10639
66747894
VS
106402012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10641
10642 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
10643 without quotes.
10644
71645f6e
VS
106452012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10646
10647 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
10648
0e1c1f61
VS
106492012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10650
10651 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
10652 iteration of partitions.
10653
9c4b5c13
VS
106542012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
10655
10656 Improve gettext support. Stylistic fixes and error handling fixes while
10657 on it.
10658
215c90cb
VS
106592012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
10660
10661 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
10662 part. Instead setup the correct stack in RM.
10663 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
10664 for stack.
10665 * include/grub/i386/relocator_private.h: New file.
10666
b5c1f9bf
VS
106672012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10668
10669 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
10670 argument.
10671 * util/grub-fstest.c (options): Add missing DEVICE part.
10672
b525fd83
VS
106732012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10674
10675 Clarify and unify messages.
10676
10677 * grub-core/commands/hashsum.c (options): Unify messages.
10678 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
10679 literal-only message as translatable.
10680 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
10681 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
10682 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
10683 commands.
10684 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
10685 key, not the key used to unlock. Clarify what it's used for.
10686 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
10687 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
10688 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
10689 * util/grub-editenv.c (options): Unify "verbose" message.
10690 * util/grub-fstest.c (read_file): Unify error message.
10691 (fstest): Add quotes around commands.
10692 (options): Unify "verbose" message.
10693 * util/grub-install.in: Add quotes around variable name.
10694 * util/grub-kbdcomp.in: Unify error message.
10695 * util/grub-mkfont.c (main): Likewise.
10696 * util/grub-mkrescue.in: Likewise.
10697 * util/grub-mklayout.c (options): Unify "verbose" message.
10698 * util/grub-mkstandalone.in: Unify help and verbose messages.
10699 * util/grub-mount.c (options): Unify "verbose" message.
10700 * util/grub-probe.c (options): Likewise.
10701 * util/grub-script-check.c (options): Likewise.
10702 * util/grub-setup.c (setup): Unify no-terminator message.
10703 (options): Use DEVICE and not DEV.
10704 Unify "verbose" message.
10705 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
10706
0ae70393
VS
107072012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10708
10709 Improve and unify messages.
10710
10711 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
10712 name. All users updated.
10713 Print filename in error.
10714 (read_device_map): Print filename in error.
10715 * util/getroot.c (grub_guess_root_devices): Print filename in error.
10716 (grub_util_get_os_disk): Likewise.
10717 (grub_util_biosdisk_get_grub_dev): Likewise.
10718 (grub_util_check_block_device): Likewise.
10719 (grub_util_check_char_device): Likewise.
10720 (grub_make_system_path_relative_to_its_root): Likewise.
10721 * util/grub-editenv.c (create_envblk_file): Likewise.
10722 (open_envblk_file): Likewise.
10723 (write_envblk): Likewise.
10724 * util/grub-fstest.c (cmd_cp): Likewise.
10725 (cmd_cat): Likewise.
10726 (cmd_cmp): Likewise.
10727 * util/grub-menulst2cfg.c (main): Likewise.
10728 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
10729 (write_font_width_spec): Likewise.
10730 (write_font_pf2): Likewise.
10731 * util/grub-mkimage.c (generate_image): New argument outname.
10732 All users updated.
10733 Remove unreacheable message.
10734 (options): Unify messages.
10735 (help_filter): Likewise.
10736 * util/grub-mklayout.c (usage): Removed (unused).
10737 (main): Print filename in error.
10738 * util/grub-mkrescue.in: Fix wrong quoting.
10739 * util/grub-setup.c (setup): Print filename in error.
10740 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
10741 (check_sas): Likewise.
10742 * util/misc.c (grub_util_get_fp_size): Removed.
10743 (grub_util_get_image_size): Print filename in error.
10744 (grub_util_read_at): Removed.
10745 (grub_util_read_image): Print filename in error.
10746 (grub_util_load_image): Likewise.
10747 (grub_util_write_image_at): New argument filename. All users updated.
10748 Print filename in error.
10749 (grub_util_write_image): New argument filename. All users updated.
10750 Print filename in error.
10751 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
10752 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
10753
0a96117d
VS
107542012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * grub-core/Makefile.core.def (pxechain): New module.
10757 * grub-core/loader/i386/pc/pxechainloader.c: New file.
10758 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
10759 function.
10760 (grub_pc_net_config_real): Use grub_pxe_get_cached.
10761 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
10762
aca002f7
VS
107632012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10764
10765 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
10766 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
10767 * include/grub/err.h (grub_error_saved): New struct.
10768 (grub_errmsg): Make array size explicit.
10769 * include/grub/misc.h (grub_error_save): New function.
10770 (grub_error_load): Likewise.
10771 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
10772 (grub_error_push): Update `errno' member name.
10773 (grub_error_pop): Likewise
10774 * grub-core/net/tftp.c (tftp_data): New member save_err.
10775 (tftp_receive): Save error.
10776 (tftp_open): Restore error.
10777
a51dab13
VS
107782012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
10779
10780 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
10781 to real mode down to execute A20-related code in protected mode as
10782 intended.
10783
eb6e6649
GS
107842012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
10785
10786 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
10787 NULL when the argument `level' has an unexpected value.
10788
92cd0f6e
VS
107892012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10790
10791 Move platform-dependent files from $prefix to $prefix/$platform.
10792
10793 * config.h.in (GRUB_TARGET_CPU): New definition.
10794 (GRUB_PLATFORM): Likewise.
10795 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
10796 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
10797 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
10798 * grub-core/kern/dl.c (grub_dl_load): Likewise.
10799 * grub-core/normal/autofs.c (read_fs_list): Likewise.
10800 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
10801 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
10802 * grub-core/normal/term.c (read_terminal_list): Likewise.
10803 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
10804 $prefix/locale.
10805 (grub_gettext_init_ext): Likewise.
10806 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
10807 grub_platform.
10808 * util/grub-install.in: Update directories.
10809 * util/grub-mknetdir.in: Likewise.
10810 * util/grub-mkrescue.in: Likewise.
10811
db606889
VS
108122012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10813
10814 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
10815 grub_error framework. All users updated.
10816
c39992a4
VS
108172012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10818
10819 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
10820 lists (by always binsearching), improve caching (cache strings
10821 used for binsearch, not only results), improve
10822 maintainability (by using more structured binary search) and correct
10823 error handling.
10824
1e5ec32f
VS
108252012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10826
10827 * grub-core/script/execute.c (grub_script_return): Fix warning.
10828
ac576cde
VS
108292012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
10830
10831 * grub-core/script/execute.c (grub_script_return): Fix potential
10832 NULL-dereference.
10833 Reported by: Jim Meyering.
10834
498453f6
VS
108352012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10836
10837 * po/POTFILES.in: Regenerate.
10838 * util/grub-install.in: Gettextize the strings missed in first pass.
10839
8be63f2e
VS
108402012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10841
10842 * Makefile.util.def (grub-mkdevicemap): Removed.
10843 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
10844 * include/grub/util/deviceiter.h: Removed.
10845 * util/deviceiter.c: Likewise.
10846 * util/getroot.c (grub_util_get_os_disk): New function.
10847 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
10848 replacement for EFI.
10849 * util/grub-mkdevicemap.c: Removed.
10850 * util/grub-probe.c (probe): Handle PRINT_DISK.
10851 (argp_parser): Handle -t disk.
10852
8e1e4e39
VS
108532012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10854
10855 * util/grub-mkfont.c: Migrate to argp.
10856 * util/grub-mklayout.c: Likewise.
10857 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10858 * util/grub-mkrelpath.c: Likewise.
10859 * util/grub-probe.c: Likewise.
10860 * util/grub-script-check.c: Likewise.
10861
4459819a
VS
108622012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10863
10864 * util/grub-reboot.in: Add missing datarootdir.
10865 Add missing newline.
10866 * util/grub-set-default.in: Add missing datarootdir.
10867 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
10868 * util/grub-mkrescue.in: Likewise.
10869
f65741c7
VS
108702012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10871
10872 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
10873
c1a33466
VS
108742012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10875
10876 * util/grub-kbdcomp.in: Add decent help and gettextize.
10877 * docs/man/grub-kbdcomp.h2m: New file.
10878
c76899a0
VS
108792012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10880
10881 Migrate grub-mkimage.c to argp.
10882
10883 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
10884 (grub-setup): Likewise.
10885 * util/grub-setup.c (print_version): Move to ...
10886 * util/argp_common.c (print_version): ... here.
10887 * util/grub-setup.c (argp_program_version_hook): Move to ...
10888 * util/argp_common.c (argp_program_version_hook): ... here.
10889 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
10890 safety.
10891 * util/grub-mkimage.c (main): Migrate to argp.
10892
57db0757
VS
108932012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10894
10895 * util/grub-mkrescue.in: Use same message as
10896 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
10897 for better translations.
10898
18534ad9
VS
108992012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10900
10901 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
10902 options with generic grub-mkrescue.in with the goal of future
10903 merge.
10904
c84ba308
VS
109052012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10906
10907 * grub-core/kern/mm.c: Add missing include of i18n.h
10908 * grub-core/lib/relocator.c: Likewise.
10909
347998c2
VS
109102012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10911
10912 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
10913 error.
10914 (allocate_pages): Check return value.
10915 Replace fatal with error.
10916 (grub_linux_boot): Replace printf with dprintf.
10917 Check find_mmap_size return value.
10918 Replace fatal with error.
10919 Don't call grub_machine_fini.
10920 (grub_load_elf64): Replace printf with dprintf.
10921 (grub_cmd_linux): Likewise.
10922 (grub_cmd_initrd): Likewise.
10923 (grub_cmd_payload): Likewise.
10924
c779226e
VS
109252012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10926
10927 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
10928 message.
10929 * grub-core/video/radeon_fuloong2e.c
10930 (grub_video_radeon_fuloong2e_setup): Likewise.
10931 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
10932 * grub-core/video/video.c (grub_video_set_mode): Don't override
10933 standard out of memory message.
10934
dc87d45a
GS
109352012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
10936
10937 NetBSD disk wedge support.
10938
10939 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
10940 [__NetBSD__]: Handle NetBSD disk wedges.
10941 * util/getroot.c (convert_system_partition_to_system_disk)
10942 [__NetBSD__]: Likewise.
10943
055f856f
MW
109442012-02-03 Mark Wooding <mdw@distorted.org.uk>
10945
10946 * util/grub-mkconfig.in: Use umask rather than chmod to create
10947 grub.cfg.new to avoid insecure grub.cfg.
10948
4a9f8346
VS
109492012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10950
10951 * grub-core/commands/ls.c: Gettextize.
10952 * grub-core/commands/setpci.c: Likewise.
10953 * grub-core/commands/videotest.c: Likewise.
10954 * grub-core/disk/geli.c: Likewise.
10955 * grub-core/kern/mm.c: Likewise.
10956 * grub-core/lib/relocator.c: Likewise.
10957 * grub-core/loader/efi/appleloader.c: Likewise.
10958 * grub-core/loader/i386/xnu.c: Likewise.
10959 * grub-core/loader/ia64/efi/linux.c: Likewise.
10960 * grub-core/loader/xnu.c: Likewise.
10961 * grub-core/net/dns.c: Likewise.
10962 * grub-core/net/net.c: Likewise.
10963 * grub-core/script/lexer.c: Likewise.
10964 * grub-core/script/parser.y: Likewise.
10965 * grub-core/script/yylex.l: Likewise.
10966 * util/getroot.c: Likewise.
10967 * util/grub-setup.c: Likewise.
10968
a646a366
VS
109692012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10970
10971 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
10972 number.
10973
54e2be26
VS
109742012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10975
10976 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
10977
f7c71e68
VS
109782012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10979
10980 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
10981 macro.
10982 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
10983 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
10984
a32d5c71
VS
109852012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10986
10987 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
10988 * util/grub-install.in: Gettextize.
10989 * util/grub-mkconfig.in: Likewise.
10990 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
10991 if not available.
10992 (grub_warn): Gettextize.
10993 * util/grub-mknetdir.in: Gettextize.
10994 * util/grub-mkrescue.in: Likewise.
10995 * util/grub-mkstandalone.in: Likewise.
10996 * util/grub-reboot.in: Likewise.
10997 * util/grub-set-default.in: Likewise.
10998 * util/grub.d/00_header.in: Likewise.
10999 * util/grub.d/10_hurd.in: Likewise.
11000 * util/grub.d/10_kfreebsd.in: Likewise.
11001 * util/grub.d/10_linux.in: Likewise.
11002 * util/grub.d/10_netbsd.in: Likewise.
11003 * util/grub.d/10_windows.in: Likewise.
11004 * util/grub.d/20_linux_xen.in: Likewise.
11005 * util/grub.d/30_os-prober.in: Likewise.
11006 * po/POTFILES-shell.in: Regenerate.
11007
69edd81a
RL
110082012-02-03 Richard Laager <rlaager@wiktel.com>
11009
11010 * util/grub-mkimage.c (main): Fix format-security warning.
11011 * util/grub-mkrelpath.c (main): Likewise.
11012 * util/grub-probe.c (main): Likewise.
11013
65f08dbf
RL
110142012-02-03 Richard Laager <rlaager@wiktel.com>
11015
11016 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
11017 failure.
11018 Put back lost PRINT_DRIVE.
11019
e9084abe
RL
110202012-02-03 Richard Laager <rlaager@wiktel.com>
11021
11022 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
11023 (grub_guess_root_devices): Replace strlen with sizeof.
11024 Avoid crash.
11025 (find_root_devices_from_poolname): Remove unused variable.
11026 Handle raidzN.
11027
cf5f7ee7
VS
110282012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
11029
11030 Support install on multi-device filesystems.
11031
11032 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
11033 (grub_guess_root_devices): ...this. Return char **. All users updated.
11034 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
11035 Removed.
11036 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
11037 (find_root_devices_from_poolname): ... here.
11038 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
11039 Support zfs-fuse.
11040 (grub_guess_root_device): Rename to ...
11041 (grub_guess_root_devices): ... this. Return char **. All users updated.
11042 * util/grub-install.in: Handle multi-device filesystems.
11043 * util/grub-probe.c (probe). Make device_names a char **. Add delim
11044 argument. All users updated.
11045 Handle multi-device filesystems.
11046 Use 'delim' as separator.
11047 Remove device check to allow filesystems on file.
11048 (main): Support -0 argument. Handle multi-device.
11049 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
11050 Fix a cross-device check while on it.
11051 (arguments): Remove root_dev.
11052 (argp_parser): Remove -r.
11053 (main): Remove root_dev.
11054
2f53a9ed
VS
110552012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11056
11057 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
11058
17e1d934
VS
110592012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11060
11061 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
11062 symbol.
11063 Reported by: NODA, Kai <nodakai>.
11064
d3e3fab5
VS
110652012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11066
11067 Fix ehci on amd64.
11068
11069 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
11070 pointers.
11071 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
11072 (grub_ehci_setup_qh): Likewise.
11073 (grub_ehci_find_qh): Likewise.
11074 (grub_ehci_transaction): Likewise.
11075 (grub_ehci_setup_transfer): Likewise.
11076 (grub_ehci_check_transfer): Likewise.
11077 (grub_ehci_portstatus): Likewise.
11078 (grub_ehci_detect_dev): Likewise.
11079 (grub_ehci_transfer_controller_data): New field td_last_phys.
11080 (grub_ehci_setup_transfer): Fill td_last_phys.
11081 (grub_ehci_check_transfer): Use td_last_phys.
11082
3008675b
SG
110832012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
11084
11085 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
11086 if no submenu is present.
11087
fc9b5652
AN
110882012-02-01 Aleš Nesrsta <starous@volny.cz>
11089
11090 CBI support.
11091
11092 * include/grub/usb.h (grub_usbms_protocol_t): New values
11093 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
11094 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
11095 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
11096 (grub_usbms_dev): Add subclass, protocol and intrpt.
11097 Remove in_maxsz and out_maxsz.
11098 (grub_usbms_reset): Rename to ...
11099 (grub_usbms_bo_reset): .. this.
11100 (grub_usbms_cbi_cmd): New function.
11101 (grub_usbms_cbi_reset): Likewise.
11102 (grub_usbms_reset): Likewise.
11103 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
11104 (grub_usbms_transfer): Rename to ...
11105 (grub_usbms_transfer_bo): ... this.
11106 (grub_usbms_transfer_cbi): Likewise.
11107 (grub_usbms_transfer): Likewise.
11108
a2b81d53
AN
111092012-02-01 Aleš Nesrsta <starous@volny.cz>
111102012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
11111
11112 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
11113 the support for the CS5536 modification thereos and few bugfixes.
11114
11115 * grub-core/Makefile.core.def (ehci): New module.
11116 * grub-core/bus/usb/ehci.c: New file.
11117 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
11118 port and hubaddr. All users updated.
11119 Save port and hubaddr into dev structure.
11120 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
11121 define.
11122 * include/grub/pci.h (grub_dma_phys2virt): New function.
11123 (grub_dma_virt2phys): Likewise.
11124 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
11125
b1d51f02
VS
111262012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11127
11128 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
11129 check as some mkfs implementations omit it.
11130
fc694106
VS
111312012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11132
11133 * docs/grub.texi (Unicode): Mention identifier and space limitations.
11134
6c0920e3
VS
111352012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11136
11137 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
11138 Add new member volname2.
11139 (grub_jfs_label): Use volname2 if available.
11140
d1a46f9a
VS
111412012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11142
11143 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
11144 over last_mounted as seen in image generated by mkfs.nilfs2.
11145 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
11146
dec8ed14
VS
111472012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11148
11149 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
11150 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
11151 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
11152
7397c69b
VS
111532012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11154
11155 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
11156 over the sector.
11157
b3fe42ad
VS
111582012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11159
11160 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
11161 subvolume name (by removing a bogus and useless check).
11162
10476bb0
VS
111632012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
11164
11165 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
11166 sizeof while on it.
11167
9c08ad87
VS
111682012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11169
11170 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
11171 (grub_scsi_read_capacity10): ... this.
11172 (grub_scsi_read_capacity16): New function.
11173 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
11174 0xffffffff.
11175 Fix off-by-one error.
11176 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
11177 64-bit unsigned.
11178 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
11179 (grub_scsi_read_capacity10): ... this.
11180 (grub_scsi_read_capacity_data): Rename to ...
11181 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
11182 (grub_scsi_read_capacity16): New struct.
11183 (grub_scsi_read_capacity16_data): Likewise.
11184 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
11185 grub_scsi_cmd_read_capacity10.
11186 New command grub_scsi_cmd_read_capacity16.
11187
bc8d0f45
VS
111882012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11189
11190 SCSI >2TiB support.
11191
11192 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
11193 (grub_scsi_write16): Likewise.
11194 (grub_scsi_read): Use read16 when necessary.
11195 (grub_scsi_write): Likewise.
11196 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
11197 (grub_scsi_write16): Likewise.
11198 (grub_scsi_cmd_t): Add READ16 and WRITE16.
11199
cc774926
VS
112002012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11201
11202 SCSI write support (for usbms mainly).
11203
11204 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
11205 a const pointer.
11206 (grub_scsi_write): Implement.
11207 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
11208
67639fd7
VS
112092012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
11210
11211 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
11212 variable.
11213
9079d3ed
VS
112142012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11215
11216 * grub-core/lib/posix_wrap/string.h (memchr): New function.
11217
c6a6f204
VS
112182012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11219
11220 * po/POTFILES.in: Regenerate.
11221
ecbf8cd1
VS
112222012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11223
11224 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
11225 with grub_printf to avoid unnecessary fatal failure.
11226
0b3b3b38
VS
112272012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11228
11229 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
11230 (INT_MAX): Likewise.
11231 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
11232 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
11233 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
11234 (strcpy): Likewise.
11235 (strstr): Likewise.
11236 (strchr): Likewise.
11237 (strncpy): Likewise.
11238 (strcat): Likewise.
11239 (strncat): Likewise.
11240 (strcoll): Likewise.
11241 * include/grub/types.h (GRUB_SHRT_MAX): New define.
11242 (GRUB_INT_MAX): Likewise.
11243
db7337a3
VS
112442012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11245
11246 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
11247 unexpected error.
11248 (optimize_utf8): Likewise.
11249 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
11250
f37c87e1
VS
112512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11252
11253 * grub-core/boot/i386/pc/lnxboot.S: Use
11254 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
11255 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
11256 location.
11257 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
11258 definition.
11259 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
11260
63fe43f3
VS
112612012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
11264 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
11265 now to avoid double free.
11266 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
11267 hostdisk.
11268 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
11269 * util/grub-probe.c (escape_of_path): Always return a new copy.
11270 (print_full_name): Escape path.
11271 (probe): Don't call grub_util_devname_to_ofpath on NULL.
11272 Fix hints on abstractions.
11273
ebe2c961
VS
112742012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11275
11276 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
11277 Don't add "root" line if no compatibility hont is available.
11278 Suggested by: Seth Goldberg.
11279
2b5336a2
VS
112802012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11281
11282 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
11283 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
11284 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
11285 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
11286
74310bd8
VS
112872012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11288
11289 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
11290
c30582ba
VS
112912012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11292
11293 * util/grub-pe2elf.c (ehdr): Make static.
11294 (shdr): Likewise.
11295 (num_sections): Likewise.
11296 (offset): Likewise.
11297
5f47782c
VS
112982012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11299
11300 Eliminate ofpath limits and possible overflows.
11301
11302 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
11303 (OF_PATH_MAX): Removed.
11304 (MAX_DISK_CAT): New const.
11305 (find_obppath): Use allocated rather than preallocated buffer.
11306 Return result. Argument of_path removed. All users updated.
11307 Add missing fdstat.
11308 (xrealpath): New function.
11309 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
11310 Allocate rather than use preallocated buffer. All users updated.
11311 (__of_path_common): Use allocated rather than preallocatecd buffer.
11312 Return result. Argument of_path removed. All users updated.
11313 (vendor_is_ATA): Read only needed part form the file.
11314 (check_sas): Allocate depending on contents rather than fixed.
11315 (main) [STANDALONE]: Handle NULL result.
11316
f990cbf9
VS
113172012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11318
11319 * grub-core/normal/completion.c (iterate_dev): Close the disk.
11320
9c6e84b8
VS
113212012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11322
11323 Cryptodisk write support.
11324
11325 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
11326 (grub_cryptodisk_decrypt): Moved logic to ...
11327 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
11328 (grub_cryptodisk_write): Implement.
11329 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
11330 (grub_util_fd_write): ... this. Make global.
11331 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
11332
87cf9744
VS
113332012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11334
11335 * include/grub/list.h (grub_list_remove): Don't crash if element is
11336 removed twice.
11337
ca8c0baf
VS
113382012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11339
11340 Rename ofconsole to console.
11341
11342 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
11343 as sysnonym to console.
11344 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
11345 * grub-core/term/ieee1275/console.c: ... this. All users updated.
11346 Rename grub_ofconsole_ to grub_console_. All users updated
11347 (grub_console_term_output): Rename "ofconsole" to "console".
11348 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
11349 as "console".
11350
64c8b8f6
VS
113512012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11352
11353 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
11354 handling.
11355 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
11356 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
11357 GRUB_DISK_DEVICE_FILE_ID.
11358
f6c434d5
VS
113592012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11360
11361 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
11362 and improve performance.
11363
5858b42d
VS
113642012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11365
11366 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
11367 missing ieee1275/ prefix on whole disk.
11368
4ed3c26b
VS
113692012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11370
11371 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
11372 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
11373
df71143e
VS
113742012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11375
11376 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
11377
076e7c0f
VS
113782012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
11379
11380 Merge common RAID and LVM logic to an abstract diskfilter.
11381 Add LDM support using the same framework.
11382
11383 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
11384 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
11385 (libgrubmods): Remove grub-core/disk/raid.c and
11386 grub-core/partmap/gpt.c.
11387 * grub-core/Makefile.core.def (ldm): New module.
11388 (raid): Renamed to diskfilter. All users updated.
11389 * grub-core/disk/raid.c: Moved to ...
11390 * grub-core/disk/diskfilter.c: ... here.
11391 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
11392 (lv_num): New var.
11393 (find_array): Renamed to ...
11394 (find_lv): ... this. Support multi-LV. Skip nameless LVs
11395 (grub_is_array_readable): Renamed to ...
11396 (grub_is_lv_readable): ... this. Support multinode hierarchy.
11397 (insert_array): New argument id.
11398 (is_node_readable): New function.
11399 (scan_device): Rename to ...
11400 (scan_disk): .. this. Restrict to one disk.
11401 (scan_devices): New function.
11402 (grub_diskfilter_iterate): Support multi-LV.
11403 Skip invisible and nameless LVs.
11404 (grub_diskfilter_memberlist): Support multi-LV.
11405 (grub_diskfilter_read_node): New function.
11406 (grub_raid_read): Most of logic moved to ...
11407 (read_segment): ... here
11408 (read_lv): New function.
11409 (grub_diskfilter_get_vg_by_uuid): New function.
11410 (grub_diskfilter_make_raid): Likewise.
11411 * grub-core/disk/ldm.c: New file.
11412 * grub-core/disk/lvm.c (vg_list): Removed.
11413 (lv_count): Likewise.
11414 (scan_depth): Likewise.
11415 (is_lv_readable): Likewise.
11416 (grub_lvm_getvalue): Advance pointer past the number.
11417 (find_lv): Removed.
11418 (do_lvm_scan): Refactored into ...
11419 (grub_lvm_detect): ... this. Support raid.
11420 (grub_lvm_iterate): Removed.
11421 (grub_lvm_memberlist): Likewise.
11422 (grub_lvm_open): Likewise.
11423 (grub_lvm_close): Likewise.
11424 (read_lv): Likewise.
11425 (read_node): Likewise.
11426 (is_node_readable): Likewise.
11427 (is_lv_readable): Likewise.
11428 (grub_lvm_read): Likewise.
11429 (grub_lvm_write): Likewise.
11430 (grub_lvm_dev): Use diskfilter
11431 (GRUB_MOD_INIT): Likewise.
11432 (GRUB_MOD_FINI): Likewise.
11433 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
11434 new interface.
11435 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
11436 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
11437 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
11438 grub_diskfilter_read_node.
11439 Fix a bug with xor.
11440 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
11441 grub_diskfilter_read_node.
11442 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
11443 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
11444 (grub_disk_dev_iterate): Move from here...
11445 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
11446 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
11447 Make global.
11448 (grub_hostdisk_find_partition_start): Likewise.
11449 (grub_hostdisk_os_dev_to_grub_drive): New function.
11450 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
11451 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
11452 * util/getroot.c (make_device_name): ... here.
11453 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
11454 Move to ...
11455 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
11456 * grub-core/kern/emu/hostdisk.c
11457 (convert_system_partition_to_system_disk): Move to ...
11458 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
11459 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
11460 * util/getroot.c (device_is_wholedisk): ... here.
11461 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
11462 * util/getroot.c (find_system_device): ... here.
11463 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
11464 Move to ...
11465 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
11466 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
11467 Move to ...
11468 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
11469 Handle LDM.
11470 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
11471 Move to ...
11472 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
11473 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
11474 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
11475 DISKFILTER.
11476 * include/grub/raid.h: Renamed to ...
11477 * include/grub/diskfilter.h: ... this.
11478 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
11479 (GRUB_RAID_LAYOUT_*): Make into array.
11480 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
11481 (grub_diskfilter_vg): New struct.
11482 (grub_diskfilter_pv_id): Likewise.
11483 (grub_raid_member): Removed.
11484 (grub_raid_array): Likewise.
11485 (grub_diskfilter_pv): New struct.
11486 (grub_diskfilter_lv): Likewise.
11487 (grub_diskfilter_segment): Likewise.
11488 (grub_diskfilter_node): Likewise.
11489 (grub_diskfilter_get_vg_by_uuid): New proto.
11490 (grub_raid_register): Inline.
11491 (grub_diskfilter_unregister): Likewise.
11492 (grub_diskfilter_make_raid): New proto.
11493 (grub_diskfilter_vg_register): Likewise.
11494 (grub_diskfilter_read_node): Likewise.
11495 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
11496 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
11497 (grub_util_is_ldm): Likewise.
11498 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
11499 (grub_hostdisk_find_partition_start): Likewise.
11500 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
11501 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
11502 New definition.
11503 (grub_gpt_partition_map_iterate): New proto.
11504 * include/grub/lvm.h (grub_lvm_vg): Removed.
11505 (grub_lvm_pv): Likewise.
11506 (grub_lvm_lv): Likewise.
11507 (grub_lvm_segment): Likewise.
11508 (grub_lvm_node): Likewise.
11509 * util/getroot.c [...]
11510 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
11511 (probe_abstraction): Likewise.
11512 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
11513 (main): Remove dead logic.
11514
8a7f9b9c
VS
115152012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
11516
11517 Simplify root device discover and don't fail when trying to open
11518 incorrect devices.
11519
11520 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
11521 function.
11522 (get_diskname_from_path): Likewise.
11523 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
11524 of iterating.
11525
30545b85
VS
115262012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11527
11528 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
11529
28ea58cf
VS
115302012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11531
11532 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
11533 pastthe end.
11534
692dabca
VS
115352012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * util/grub-install.in: Add missing \.
11538 Reported by: gentoofan
11539
f6e4ea70
VS
115402012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
11543 (direct_read): Use correct compressed size.
11544 (grub_squash_read_data): Likewise.
11545
115462012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
ca1dacea
VS
11547
11548 * docs/grub.texi (Platform limitations): New section.
11549 (Platform-specific operations): Likewise.
11550 * docs/grub-dev.texi (Porting): Likewise.
11551
76261110
VS
115522012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11553
11554 IEEE1275 disk write support.
11555
11556 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
11557 const void *.
11558 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
11559 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
11560 and seek loginc to ...
11561 (grub_ofdisk_prepare): ... here.
11562 (grub_ofdisk_write): Implement.
11563
fc36d603
VS
115642012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11565
11566 ARC disk write support.
11567
11568 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
11569 (reopen): New argument writable. All users updated.
11570 Handle required access mode.
11571 (grub_arcdisk_write): Implement.
11572 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
11573 (grub_arc_firmware_vector): Make buffer to write a const buffer.
11574
e06c2e7a
VS
115752012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11576
11577 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
11578 (read_sblock): Don't attempt to read superblocks outside the disk size.
11579
ff447958
VS
115802012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11581
11582 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
11583 first superblock to find the second one when possible.
11584
9e88df39
VS
115852012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
11586
11587 * util/grub-install.in: Fix an ARC bug.
11588 Print a warning if no platform-specific setup is available.
11589
bb26e4ff
VS
115902012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11591
11592 Use static allocation rather than scratch pointer in reed_solomon.
11593 It decreases its size significantly and avoids a variable in .text.
11594
11595 * grub-core/lib/reed_solomon.c (scratch): Removed.
11596 (chosenstat): New const or static array.
11597 (sigma): Likewise.
11598 (errpot): Likewise.
11599 (errpos): Likewise.
11600 (sy): Likewise.
11601 (mstat): Likewise.
11602 (errvals): Likewise.
11603 (eqstat): Likewise.
11604 (pol_evaluate): Replace x with log_x argument. All users updated.
11605 (syndroms): Removed.
11606 (gauss_solve): Use statically allocated arrays.
11607 (rs_recover): Likewise.
11608 Calculate syndroms directly.
11609 (decode_block): Use statically allocated arrays.
11610 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
11611 (main) [TEST]: Allow -DTEST -DSTANDALONE.
11612
2e13ede5
VS
116132012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11614
11615 Eliminate fixed limit on reed solomon decoder length.
11616
11617 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
11618 rather than hardcoding the address.
11619 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
11620 no_reed_solomon_length.
11621 Move gate_a20 to no-reed-solomon part.
11622 Don't force a particular size of no reed-solomon part.
11623 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
11624 Removed.
11625 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
11626 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
11627
f8a9ab12
VS
116282012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11629
11630 * grub-core/commands/wildcard.c (match_files): Handle filenames
11631 without explicit device.
11632 (wildcard_expand): Don't add explicit device if not already present.
11633 * tests/grub_script_echo1.in: Add a new expansion test.
11634
87edb894
VS
116352012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11636
11637 Replace single-linked with double-linked lists. It results in more
11638 compact and more efficient code.
11639
11640 * grub-core/kern/list.c (grub_list_push): Moved from here ...
11641 * include/grub/list.h (grub_list_push): ... to here. Set prev.
11642 (grub_list_remove): Moved from here ...
11643 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
11644 (grub_prio_list_insert): Set prev.
11645 * include/grub/list.h (grub_list): Add prev. All users updated.
11646
48b391e9
VS
116472012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
11648
11649 Handle newer autotools. Add some missing quotes while on it.
11650
11651 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
11652 (pkglib_DATA): Move grub-mkconfig_lib from here ...
11653 (pkgdata_DATA): ... here.
11654 * Makefile.util.def (update-grub_lib): Removed.
11655 * conf/Makefile.common (pkglib_DATA): Removed.
11656 (pkglib_SCRIPTS): Likewise.
11657 (pkgdata_DATA): New variable.
11658 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
11659 needed.
11660 Add missing quotes.
11661 Remove unused variable while on it.
11662 * tests/util/grub-shell.in: Likewise.
11663 * util/grub-install.in: Likewise.
11664 * util/grub-mkconfig.in: Likewise.
11665 * util/grub-mknetdir.in: Likewise.
11666 * util/grub-mkrescue.in: Likewise.
11667 * util/grub-mkstandalone.in: Likewise.
11668 * util/grub.d/00_header.in: Likewise.
11669 * util/grub.d/10_hurd.in: Likewise.
11670 * util/grub.d/10_illumos.in: Likewise.
11671 * util/grub.d/10_kfreebsd.in: Likewise.
11672 * util/grub.d/10_linux.in: Likewise.
11673 * util/grub.d/10_netbsd.in: Likewise.
11674 * util/grub.d/10_windows.in: Likewise.
11675 * util/grub.d/20_linux_xen.in: Likewise.
11676 * util/grub.d/30_os-prober.in: Likewise.
11677 * util/update-grub_lib.in: Removed.
11678
116792012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
e555f379
SG
11680
11681 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
11682 a workaround for intel problem.
11683
66832792
PRP
116842012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
116852012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
116862012-01-23 pfsmorigo
11687
11688 * util/grub-install.in: Support dd'in into PreP partition.
11689 * util/grub-probe.c (probe): Support discovering partition type.
11690 (main): Support -t msdos_parttype.
11691
7816a17e
VS
116922012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
11693
11694 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
11695 infinite recursion using counter.
11696 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
11697 init to skip it if the magic check fails.
11698 (dec_stream_header): Init s->crc32.
11699
8f9d3a8c
ZB
117002012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
117012012-01-22 Zachary Bedell <pendorbound@gmail.com>
117022012-01-22 Richard Laager <rlaager@wiktel.com>
11703
11704 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
11705 All users updated.
11706 (find_bestub): Determine correct size.
11707 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
11708 (scan_disk): Align the size down.
11709 Call check pool before find_bestub to have ashift.
11710
b055dd32
VS
117112012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
11712
11713 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
11714 dprintf in no-malloc zone.
11715
d779e9bd
ML
117162012-01-22 Mario Limonciello <mario_limonciello@dell.com>
11717
11718 * configure.ac: Add back in test for limits.h.
11719
b508af69
VS
117202012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11721
11722 Support 4K-sector NTFS.
11723
11724 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
11725 (grub_ntfs_data): Remove blocksize.
11726 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
11727 Remove data argument. All users updated.
11728
dad9c8b5
VS
117292012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
11730
11731 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
11732 being in .text to avoid dprel references.
11733 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
11734 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
11735 (grub_arch_highmemsize): Likewise.
11736 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
11737 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
11738 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
11739
d43a777e
VS
117402012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11741
11742 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
11743
11744 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
11745 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
11746
34e4208f
VS
117472012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11748
11749 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
11750 GRUB_UTIL.
11751 (grub_set_datetime_cmos): Likewise.
11752
3ec0fc1c
VS
117532012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11754
11755 Make XZ compression parameters dependent on target and not host CPU.
11756
11757 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
11758 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
11759
22489834
VS
117602012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
11761
11762 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
11763 set but not used variable.
11764
8502fbca
VS
117652012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11766
11767 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
11768 created when no uuid support is compiled into mkfs.reiser.
11769
76df2068
VS
117702012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11771
11772 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
11773 (utf8_to_macroman): Do the opposite.
11774 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
11775
64e3f8f6
VS
117762012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11777
11778 * configure.ac: Refise build qemu_mips w/o unifont.
11779
9c271078
VS
117802012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11781
11782 Eliminate grub_min/grub_max prone to overflow usage.
11783
11784 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
11785 (poll_nonroot_hub): Likewise.
11786 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
11787 (grub_affs_label): Likewise.
11788 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
11789 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
11790 (grub_hfs_label): Likewise.
11791 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
11792 * grub-core/fs/zfs/zfs.c (MIN): Remove.
11793 (zap_leaf_array_equal): Use grub_size. Remove MIN.
11794 (zap_leaf_array_get): Likewise.
11795 (dnode_get_path): Likewise.
11796 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
11797 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
11798 * grub-core/script/execute.c (grub_script_break): Likewise.
11799 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
11800 grub_max.
11801 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
11802 * include/grub/misc.h (grub_min): Removed.
11803 (grub_max): Likewise.
11804
80662dbc
VS
118052012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
11806
11807 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
11808 direct.inode = 0.
11809
e6da1467
VS
118102012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11811
11812 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
11813
b1ac4cb1
VS
118142012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11815
11816 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
11817
b4bf7c3b
VS
118182012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11819
11820 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
11821 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
11822
8ee1101a
VS
118232012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11824
11825 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
11826 rather than a hack for grub_strncasemap.
11827
118282012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11829
11830 Support multiple initrds
11831 Note: part of this was accidently committed in r3739.
11832
11833 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
11834 initrd.
11835 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
11836 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
11837 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11838 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11839 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11840
4d1e2bc9
VS
118412012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11842
11843 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
11844 disks with unknown size.
11845 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
11846
75b49ebe
VS
118472012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11848
11849 Remove defines pertaining to arbitrary limits not affecting GRUB
11850 anymore.
11851
11852 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
11853 (EXT2_MAX_SYMLINKCNT): Likewise.
11854 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
11855 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
11856 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
11857 (GRUB_PXE_MAX_BLKSIZE): Likewise.
11858 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
11859 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
11860 (DN_MAX_OBJECT_SHIFT): Likewise.
11861 (DN_MAX_OFFSET_SHIFT): Likewise.
11862 (DN_MAX_OBJECT): Likewise.
11863 (DNODES_PER_LEVEL_SHIFT): Likewise.
11864 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
11865 (SPA_MAXBLOCKSIZE): Likewise.
11866 (SPA_BLOCKSIZES): Likewise.
11867 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
11868 (MZAP_MAX_BLKSZ): Likewise.
11869
74a1dce7
VS
118702012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11871
11872 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
11873 handle NULL appropriately.
11874 Remove MIN.
11875
30c7d3ce
VS
118762012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11877
11878 Fix efiemu.
11879
11880 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
11881 cpu/types.h.
11882 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
11883 * configure.ac: Fix efiemu check.
11884
3c76ea0c
VS
118852012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11886
11887 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
11888 grub_probe.
11889 Reported by: adamwill
11890
7e532280
SG
118912012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
11892
11893 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
11894
30492374
VS
118952012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11896
11897 Fix handling of wide characters in gfxterm.
11898
11899 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
11900 (clear_char): Likewise.
11901 (paint_char): Skip code == NULL chars.
11902 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
11903
e70cb72f
VS
119042012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11905
11906 * grub-core/normal/charset.c: Move comment to right place.
11907
5c827cf9
VS
119082012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11909
11910 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
11911 (GRUB_AFFS_FLAG_FFS): Put back where it was.
11912 (grub_affs_mount): Revert the correct version checking.
11913
53603892
VS
119142012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
11915
11916 * docs/grub.texi (Unicode): Mention several other unsupported features.
11917
ff094b9b
VS
119182011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11919
11920 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
11921 case statements as compile-time one.
11922 (direct_read): Prevent spurious warnings.
11923 (grub_squash_read_data): Likewise.
11924
c029da8a
VS
119252011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11926
11927 Various squash4 fixes and LZO and XZ support.
11928
11929 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
11930 Add xzembed source files.
11931 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
11932 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
11933 (grub_squash_inode): New subtype long_dir.
11934 (SQUASH_TYPE_LONG_DIR): New inode type.
11935 (COMPRESSION): New enum.
11936 (XZBUFSIZ): New const.
11937 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
11938 (read_chunk): Use data->decompress.
11939 (zlib_decompress): New function.
11940 (lzo_decompress): Likewise.
11941 (xz_decompress): Likewise.
11942 (squash_mount): Set new data fields.
11943 (grub_squash_iterate_dir): Handle long dir.
11944 (squash_unmount): Free xzdec and xzbuf.
11945 (grub_squash_open): Check ino type.
11946 (direct_read): Stylistic fixes. Use data->decompress.
11947 (grub_squash_read_data): Likewise.
11948 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
11949 (get_byte): Likewise.
11950 (grub_zlib_disk_read): Removed.
11951 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
11952 (GRUB_POSIX_BOOL_DEFINED): New define.
11953 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
11954 * grub-core/lib/xzembed/xz.h: Addmissing includes.
11955 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
11956 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
11957
7a45a539
VS
119582011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
11959
11960 Don't override more informative errors.
11961
11962 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
11963 * grub-core/font/font.c (open_section): Likewise.
11964 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
11965 filename. Don't override errors.
11966 (grub_cmd_openbsd_ramdisk): Don't override errors.
11967 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
11968 (grub_cmd_initrd): Likewise.
11969 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
11970 (grub_cmd_initrd): Likewise.
11971 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
11972 (grub_cmd_linux): Likewise.
11973 (grub_cmd_initrd): Likewise.
11974 (grub_cmd_payload): Likewise.
11975 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
11976 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
11977 (grub_cmd_module): Likewise.
11978 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11979 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
11980 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
11981 (grub_cmd_xnu_mkext): Likewise.
11982 (grub_cmd_xnu_ramdisk): Likewise.
11983 (grub_xnu_check_os_bundle_required): Likewise.
11984 (grub_xnu_load_kext_from_dir): Likewise.
11985 (grub_cmd_xnu_kextdir): Likewise.
11986 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
11987
b2d004db
VS
119882011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11989
11990 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
11991 as 1024 in block size field. Found on one of my test images.
11992 Small optimisation while on it.
11993
ec000eac
VS
119942011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11995
11996 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
11997 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
11998 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
11999 performance fixes while on it.
12000 (grub_sfs_close): Fix memory leak while on it.
12001 (grub_sfs_label): Convert Latin1 to UTF-8.
12002
f50e1165
VS
120032011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12004
12005 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
12006 space to avoid overflows.
12007 (grub_hfs_label): Convert from macroman to UTF-8.
12008
2ae254de
VS
120092011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12010
12011 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
12012
0108f491
VS
120132011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12014
12015 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
12016
f45f5f89
VS
120172011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12018
12019 * unicode: Import Unicode 6.0 data.
12020
4d8c4765
VS
120212011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12022
63fa8ef9
VS
12023 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
12024 outside of range.
12025
120262011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12027
12028 Avoid cutting in the middle of UTF-8 character.
4d8c4765
VS
12029
12030 * include/grub/charset.h (grub_getend): New function.
12031 * grub-core/script/function.c (grub_script_function_find): Use
12032 grub_getend.
12033 * grub-core/normal/completion.c (add_completion): Likewise.
12034
f3cb4a4e
VS
120352011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12036
12037 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
12038 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
12039 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
12040 (GRUB_UNICODE_TAG_END): Likewise.
12041 (GRUB_UNICODE_LAST_VALID): Likewise.
12042
5da8dbc5
VS
120432011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12044
12045 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
12046 len and make it smaller. All users updated.
12047 * util/import_unicode.py: Put length and not end character.
12048 Check length.
12049
8569f13d
VS
120502011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12051
12052 Make better Unicode-compliant and unify some UTF-8 code pathes.
12053
12054 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
12055 valid character.
12056 (grub_is_valid_utf8): Use grub_utf8_process.
12057 Check resulting code range.
12058 (grub_utf8_to_ucs4): Use grub_utf8_process.
12059 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
12060 valid character.
12061
cc4fddf5
VS
120622011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12063
12064 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
12065
bbc47747
VS
120662011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12067
12068 * docs/grub.texi (Filesystems): Mention AFS.
12069
f63d6bf4
VS
120702011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12071
12072 * docs/grub.texi (Filesystems): Clarify restrictions.
12073 (Regexp): Mention non-Unicode regexp behaviour.
12074 (Other): Mention non-Unicode matching behaviour.
12075
74bbf0db
VS
120762011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12077
f63d6bf4 12078 Make HFS implementation use MacRoman.
74bbf0db
VS
12079
12080 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
12081 (macroman): New const array.
12082 (macroman_to_utf8): New function.
12083 (utf8_to_macroman): Likewise.
12084 (grub_hfs_find_dir): Use utf8_to_macroman.
12085 (grub_hfs_dir): Use macroman_to_utf8.
12086 Set case_insensitive.
12087
4ea0316e
VS
120882011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12089
12090 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
12091
d3c13cbd
VS
120922011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12093
12094 Integrate hints into autogeneration scripts.
12095
12096 * docs/grub.texi (Filesystems): Add a hostdisk example.
12097 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
12098 (grub-probe): Add ofpath.
12099 * gentpl.py: Remove group nosparc64.
12100 * grub-core/commands/search.c (cache_entry): New struct.
12101 (cache): New var.
12102 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
12103 * grub-core/commands/search_wrap.c (options): Add platform-specific
12104 hint options.
12105 (grub_cmd_search): Handle platform-specific hints.
12106 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
12107 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
12108 (grub_util_biosdisk_data): Likewise.
12109 (grub_util_biosdisk_open): Set device_map.
12110 (read_device_map): Handle "" as indication of no map.
12111 Set device_map.
12112 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
12113 (grub_util_biosdisk_get_compatibility_hint): New function.
12114 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
12115 * include/grub/emu/hostdisk.h
12116 (grub_util_biosdisk_get_compatibility_hint): New proto.
12117 * util/grub-install.in: Don't call grub-mkdevicemap.
12118 Add platform-specific hint to load.cfg.
12119 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
12120 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
12121 hints. Set root preliminary to compatibility hint, not to OS name.
12122 * util/grub-probe.c (PRINT_*): Add hints.
12123 (print): Make static.
12124 (escape_of_path): New function.
12125 (guess_bios_drive): Likewise.
12126 (guess_efi_drive): Likewise.
12127 (guess_baremetal_drive): Likewise.
12128 (print_full_name): Likewise.
12129 (probe): Handle hints.
12130 (main): Likewise.
12131 * util/ieee1275/devicemap.c: Removed.
12132 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
12133 updated.
12134 (grub_util_devname_to_ofpath): Return NULL on failure.
12135
12136 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
12137 resource leak.
12138 * util/getroot.c (grub_util_pull_device): Fix memory leak.
12139
12140 * po/POTFILES.in: Regenerated.
12141
12142 Allow purely long options
12143
12144 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
12145 (SHORT_ARG_USAGE): Likewise.
12146 (grub_arg_show_help): Compare opt with help_options.
12147 (parse_option): Receive opt as argument. If makes big simplificatons.
12148 All users updated
12149
00ce2df3
VS
121502011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12151
12152 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
12153 Restructure to avoid warning.
12154
e77e325f
VS
121552011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12156
12157 * util/grub-install.in: Account for possible escaped comma in device
12158 name.
12159
165099ea
VS
121602011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12161
12162 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
12163 channel.
12164
ce4a999d
VS
121652011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12166
12167 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
12168 allocation and zero-setting.
12169 (grub_ieee1275_get_devname): Check that alias is complete.
12170
379586ad
VS
121712011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12172
12173 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
12174 unaligned segments.
12175
9197b0ad
VS
121762011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
12177
12178 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
12179 prefix.
12180 (grub_ofdisk_open): Check and discard ieee1275 prefix.
12181 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
12182 Add ieee1275 prefix.
12183
edddb7f9
VS
121842011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12185
12186 * docs/grub.texi (Filesystems): Update.
12187
a1a8b1b9
VS
121882011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12189
12190 Support odc, newc and bigendian cpio formats.
12191
12192 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
12193 * grub-core/Makefile.core.def (newc): New module.
12194 (odc): Likewise.
12195 (cpio_be): Likewise.
12196 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
12197 (MAGIC): Likewise.
12198 (MAGIC2): Likewise.
12199 (head) [MODE_ODC]: Adapt for the format.
12200 (head) [MODE_NEWC]: Likewise.
12201 (head) [!MODE_*]: Write fields of interest as arrays.
12202 (MAGIC_USTAR): Removed.
12203 (read_number) [MODE_NEWC]: Change to hex.
12204 (read_number) [!MODE_*]: Parse binary arrays.
12205 (grub_cpio_find_file): Factor out the code for better structure and
12206 always use read_number.
12207 (grub_cpio_mount): Use MAGIC and MAGIC2.
12208 (grub_cpio_dir): Exit on first hook non-0 return.
12209 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
12210 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
12211 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
12212 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
12213 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
12214 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
12215 * grub-core/fs/newc.c: New file.
12216 * grub-core/fs/odc.c: Likewise.
12217 * grub-core/fs/cpio_be.c: Likewise.
12218
58eba9ee
VS
122192011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12220
12221 Fix handling of tar numbers occupying the whole field.
12222
12223 * grub-core/fs/cpio.c (read_number): New function.
12224 (grub_cpio_find_file): Use read_number instead of strtoull.
12225
a54a0e12
VS
122262011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12227
12228 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
12229 occupying the whole field size.
12230
a6120aca
LA
122312011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
12232
12233 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
12234
a93964ce
VS
122352011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12236
12237 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
12238
3ea1ca46
SG
122392011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
12240
12241 * grub-core/Makefile.core.def (lzma_decompress): Add missing
12242 TARGET_IMG_LDFLAGS.
12243
b87f7ef2
VS
122442011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12245
12246 * util/getroot.c (ESCAPED_PATH_MAX): New define.
12247 (mountinfo_entry): Increase the field size to take escaping into
12248 account.
12249 (find_root_device_from_libzfs): Add one byte to size of strings for
12250 security.
12251
62092395
VS
122522011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12253
12254 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
12255 an assert.
12256 * util/grub-setup.c (setup): Likewise.
12257
1f0b1a77
VS
122582011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12259
12260 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
12261 _LzmaDecodeA.
12262
8eba9997
VS
122632011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12264
12265 * docs/grub.texi (Internationalisation): New section.
12266
dd0c91e9
VS
122672011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12268
12269 * docs/grub.texi (Loopback booting): New section.
12270
122712011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
86717cbe
K
12272
12273 * util/grub-mkstandalone.in: Fix minor typo errors.
12274
198e150a
VS
122752011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12276
12277 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
12278
12279 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
12280 net/icmp.c and net/icmp6.c.
12281 (http): New module.
12282 (priority_queue): Likewise.
12283 * grub-core/io/bufio.c: Rewritten.
12284 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
12285 TYPE_WITH_CONFIGFILE_OPTION.
12286 (legacy_commands): Add bootp and dhcp.
12287 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
12288 (grub_legacy_parse): Likewise.
12289 * grub-core/lib/priority_queue.c: New file.
12290 * grub-core/net/arp.c: Add missing license header.
12291 (arp_find_entry): Removed.
12292 (arp_find_entry): Likewise.
12293 (grub_net_arp_resolve): Rename to ...
12294 (grub_net_arp_send_request): ...this.
12295 (grub_net_arp_receive): New card argument.
12296 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
12297 Set router and DNS server.
12298 (grub_net_configure_by_dhcp_ack): Handle routing information.
12299 (grub_cmd_bootp): Set checksum.
12300 (grub_bootp_init): Remove net_dhcp.
12301 * grub-core/net/dns.c: New file.
12302 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
12303 completion.
12304 (get_card_packet): Handle allocation.
12305 (grub_efinet_findcards): Set mtu.
12306 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
12307 (get_card_packet): Handle allocation.
12308 (emucard): Set mtu.
12309 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
12310 (GRUB_MOD_INIT): Set mtu.
12311 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
12312 mtu.
12313 (get_card_packet): Handle allocation.
12314 (grub_ofnet_findcards): Set mtu.
12315 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
12316 assert.
12317 (grub_net_recv_ethernet_packet): Handle IPv6.
12318 * grub-core/net/http.c: New file.
12319 * grub-core/net/icmp.c: Likewise.
12320 * grub-core/net/icmp6.c: Likewise.
12321 * grub-core/net/ip.c (ip6addr): New type.
12322 (ip6hdr): Likewise.
12323 (reassemble): Likewise.
12324 (cmp): New function.
12325 (reassembles): New variable.
12326 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
12327 (id): New variable.
12328 (send_fragmented): New function.
12329 (grub_net_send_ip_packet): Rename to ...
12330 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
12331 Handle non-UDP.
12332 (grub_net_recv_ip_packets): Rename to ...
12333 (handle_dgram): ... this. Check checksum. Handle non-UDP.
12334 (free_rsm): New function.
12335 (free_old_fragments): Likewise.
12336 (grub_net_recv_ip4_packets): New function.
12337 (grub_net_send_ip6_packet): Likewise.
12338 (grub_net_send_ip_packet): Likewise.
12339 (grub_net_recv_ip6_packets): Likewise.
12340 (grub_net_recv_ip_packets): Likewise.
12341 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
12342 (LINK_LAYER_CACHE_SIZE): New const.
12343 (link_layer_find_entry): New function.
12344 (grub_net_link_layer_add_address): Likewise.
12345 (grub_net_link_layer_resolve_check): Likewise.
12346 (grub_net_link_layer_resolve): Likewise.
12347 (grub_net_ipv6_get_slaac): Likewise.
12348 (grub_net_ipv6_get_link_local): Likewise.
12349 (grub_cmd_ipv6_autoconf): Likewise.
12350 (parse_ip): Handle one number representation.
12351 (parse_ip6): New functoion.
12352 (match_net): Handle IPv6.
12353 (grub_net_resolve_address): Handle IPv6 and DNS.
12354 (grub_net_resolve_net_address): Handle IPv6.
12355 (route_cmp): New function.
12356 (grub_net_route_address): Find best route.
12357 (grub_net_addr_to_str): Handle IPv6.
12358 (grub_net_addr_cmp): New function.
12359 (grub_net_add_addr): Register local route.
12360 (print_net_address): Handle net address.
12361 (grub_net_poll_cards): Retransmit TCP.
12362 (grub_net_poll_cards_idle_real): Likewise.
12363 (have_ahead): New function.
12364 (grub_net_seek_real): Use underlying seek.
12365 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
12366 * grub-core/net/tcp.c: New file.
12367 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
12368 (cmp): New function.
12369 (ack): Likewise.
12370 (tftp_receive): Handle unordered input.
12371 (destroy_pq): New function.
12372 (tftp_close): Close pq.
12373 * grub-core/net/udp.c: Put missing license header.
12374 (grub_net_udp_socket): New function.
12375 (udp_socket_register): Likewise.
12376 (grub_net_udp_close): Likewise.
12377 (grub_net_recv_udp_packet): Check checksum.
12378 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
12379 * include/grub/misc.h (grub_memchr): New function.
12380 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
12381 (grub_net_card_driver): Return buf in recv.
12382 (grub_net_slaac_mac_list): New struct.
12383 (grub_network_level_protocol_id): Add ipv6.
12384 (grub_net_network_level_addr): Likewise.
12385 (grub_net_network_level_net_addr): Likewise.
12386 (grub_net_app_protocol): Add seek.
12387 (grub_net_socket): Removed.
12388 (grub_net_sockets): Likewise.
12389 (grub_net_socket_register): Likewise.
12390 (grub_net_socket_unregister): Likewise.
12391 (FOR_NET_SOCKETS): Likewise.
12392 (grub_net_add_addr): Add const.
12393 (GRUB_NET_BOOTP_*): New enum.
12394 (grub_net_addr_cmp): New proto.
12395 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
12396 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
12397 (grub_net_hwaddr_to_str): NEw proto.
12398 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
12399 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
12400 (grub_dns_init): New proto.
12401 (grub_dns_fini): Likewise.
12402 (grub_net_tcp_retransmit): Likewise.
12403 (grub_net_link_layer_add_address): Likewise.
12404 (grub_net_link_layer_resolve_check): Likewise.
12405 (grub_net_link_layer_resolve): Likewise.
12406 (grub_net_dns_lookup): Likewise.
12407 (grub_net_add_dns_server): Likewise.
12408 (grub_net_remove_dns_server): Likewise.
12409 (GRUB_NET_TRIES): New const.
12410 (GRUB_NET_INTERVAL): Likewise.
12411 * include/grub/net/arp.h: Mostly rewritten.
12412 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
12413 * include/grub/net/ip.h: Mostly rewritten.
12414 * include/grub/net/netbuff.h: Indent.
12415 * include/grub/net/tcp.h: New file.
12416 * include/grub/net/udp.h: Mostly rewritten.
12417 * include/grub/priority_queue.h: New file.
12418 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
12419 (grub_swap_bytes64_compile_time): Likewise.
12420 (grub_cpu_to_be16_compile_time): Likewise.
12421 (grub_cpu_to_be32_compile_time): Likewise.
12422 (grub_cpu_to_be64_compile_time): Likewise.
12423 (grub_be_to_cpu64_compile_time): Likewise.
12424
215c1800
VS
124252011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12426
12427 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
12428 UINT_TO_PTR with cast.
12429
c17e546c
VS
124302011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12431
12432 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
12433 don't use them.
12434
ff6b18b6
VS
124352011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12436
12437 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
12438 already there.
12439
70ffcc93
VS
124402011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12441
12442 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
12443 confusing ipxe.
12444
e5f4d260
VS
124452011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12446
12447 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
12448 Add missing const attribute.
12449 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
12450 Likewise.
12451 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
12452 Likewise.
12453
8e54b4b7
VS
124542011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12455
12456 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
12457 misaligned access.
12458 (serpent_setkey): Likewise.
12459 (serpent_encrypt_internal): Likewise.
12460 (serpent_decrypt_internal): Likewise.
12461 (serpent_encrypt): Don't put an alignment-increasing cast.
12462 (serpent_decrypt): Likewise.
12463 (serpent_test): Likewise.
12464
813c0a2b
VS
124652011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12466
12467 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
12468
f2b60fbd
VS
124692011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12470
12471 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
12472
12473 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
12474 grub_addr_t casts.
12475 (PTR_TO_UINT64): Likewise.
12476 (PTR_TO_UINT32): Likewise.
12477
5ef5c511
VS
124782011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12479
12480 * util/grub-mkimage.c (generate_image): Decrease the higher limit
12481 because of stack.
12482 * util/grub-setup.c (setup): Don't add redundancy past the higher load
12483 limit.
12484
c476e6df
VS
124852011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
12488 text_width > available width a bit more gracefully.
12489
384ad7cc
VS
124902011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12491
12492 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
12493 current address calculation.
12494
96f8caf8
VS
124952011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12496
12497 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
12498 stack.
12499 (encode_block): Likewise.
12500
276b7a8b
VS
125012011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12502
12503 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
12504 certainety.
12505
e3fd394a
VS
125062011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12507
12508 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
12509 non-RS part to avoid RS messing with GDT.
12510 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
12511 Increase to suit in realmode routines.
12512
125132011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
12514
12515 * grub-core/kern/i386/realmode.S: Increase alignment.
12516 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
12517
ee9c2e7a
VS
125182011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12519
12520 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
12521 be deterministic.
12522 (syndroms): Compute 0 syndrom.
12523 (rs_recover): Use 0 syndrom.
12524
7a7f7cc9
VS
125252011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12526
12527 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
12528
a14b16d1
VS
125292011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12530
12531 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
12532 brackets.
12533
9f59e9fc
VS
125342011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12535
ca1b552c
VS
12536 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
12537 account.
12538 (get_top_pad): Likewise.
12539 (get_right_pad): Likewise.
12540 (get_bottom_pad): Likewise.
12541
125422011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12543
12544 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
9f59e9fc 12545
e739d698
VS
125462011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12547
12548 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
12549 attribute as the structure isn't guaranteed to be properly aligned.
12550 (grub_efi_pci_device_path): Likewise.
12551 (grub_efi_pccard_device_path): Likewise.
12552 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
12553 specify the size of `memory_type'.
12554 (grub_efi_vendor_device_path): Likewise.
12555 (grub_efi_controller_device_path): Likewise.
12556 (grub_efi_acpi_device_path): Likewise.
12557 (grub_efi_expanded_acpi_device_path): Likewise.
12558 (grub_efi_atapi_device_path): Likewise.
12559 (grub_efi_scsi_device_path): Likewise.
12560 (grub_efi_fibre_channel_device_path): Likewise.
12561 (grub_efi_1394_device_path): Likewise.
12562 (grub_efi_usb_device_path): Likewise.
12563 (grub_efi_usb_class_device_path): Likewise.
12564 (grub_efi_i2o_device_path): Likewise.
12565 (grub_efi_mac_address_device_path): Likewise.
12566 (grub_efi_ipv4_device_path): Likewise.
12567 (grub_efi_ipv6_device_path): Likewise.
12568 (grub_efi_infiniband_device_path): Likewise.
12569 (grub_efi_uart_device_path): Likewise.
12570 (grub_efi_vendor_messaging_device_path): Likewise.
12571 (grub_efi_hard_drive_device_path): Likewise.
12572 (grub_efi_cdrom_device_path): Likewise.
12573 (grub_efi_vendor_media_device_path): Likewise.
12574 (grub_efi_file_path_device_path): Likewise.
12575 (grub_efi_protocol_device_path): Likewise.
12576 (grub_efi_piwg_device_path): Likewise.
12577 (grub_efi_bios_device_path): Likewise.
12578
cb8f88ea
VS
125792011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12580
12581 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
12582 (grub_ucs4_to_utf8_alloc): Likewise.
12583 (grub_ucs4_to_utf8): Likewise.
12584 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
12585 (grub_ucs4_to_utf8_alloc): Likewise.
12586
309e5352
VS
125872011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
12588
12589 AFFS never uses unicode.
12590
12591 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
12592 (grub_latin1_to_utf8): New inline function.
12593 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
12594
e7987e1b
VS
125952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12596
12597 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
12598 overflow.
12599
efc2616e
VS
126002011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12601
12602 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
12603 (grub_squash_dirent_header): Likewise.
12604 (read_chunk): Don't double swap.
12605 (grub_squash_iterate_dir): Fix swap sizes.
12606
3c349f5a
VS
126072011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12608
12609 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
12610
b453412d
VS
126112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12612
12613 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
12614 (grub_hfs_iterate_dir): Likewise.
12615
12e9d4d1
VS
126162011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12617
12618 Fix video on platforms where unaligned access is forbidden.
12619 Make several optimisations while on it.
12620
12621 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
12622 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12623 (grub_video_fbblit_replace_32bit_1bit): Likewise.
12624 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12625 Disable.
12626 (grub_video_fbblit_replace_16bit_1bit):
12627 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12628 (grub_video_fbblit_replace_8bit_1bit): Likewise.
12629 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
12630 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
12631 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12632 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
12633 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
12634 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
12635 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
12636 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
12637 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
12638 (grub_video_fbblit_replace_index_RGB888): Likewise.
12639 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
12640 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
12641 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
12642 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
12643 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
12644 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
12645 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
12646 Disable.
12647 (grub_video_fbblit_blend_XXX565_1bit):
12648 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
12649 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
12650 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
12651 void *.
12652 * grub-core/video/fb/video_fb.c (common_blitter)
12653 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
12654 (grub_video_fb_create_render_target_from_pointer)
12655 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
12656 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
12657 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
12658 definition.
12659 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
12660
ace96609
VS
126612011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12662
12663 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
12664 HH22 and HM10 relocations.
12665
fd261d73
VS
126662011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12667
12668 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
12669
e59b7857
VS
126702011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12671
12672 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
12673 allocation succeeded.
12674
9b4baaa4
VS
126752011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12676
12677 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
12678 argument a u8 pointer. All users updated.
12679 Handle unaligned buffers.
12680
dc713193
VS
126812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12682
12683 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
12684 add_part to workaround compiler bug.
12685
30dd48c2
VS
126862011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12687
12688 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
12689
0c6087a8
VS
126902011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12691
12692 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
12693 Reserve alignment invariants.
12694 (grub_multiboot_load): Likewise.
12695 (retrieve_video_parameters): Likewise.
12696 (grub_multiboot_make_mbi): Likewise.
12697
c2e77777
VS
126982011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12699
12700 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
12701 incorrect pointer.
12702
b70b6d11
VS
127032011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12704
12705 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
12706 (grub_pata_pio_write): Likewise.
12707
02a2bf83
VS
127082011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12709
12710 Add noreturn attributes and remove unreachable code.
12711
12712 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
12713 code.
12714 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
12715 code. Mark as noreturn.
12716 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
12717 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
12718 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
12719 unreachable code.
12720 * grub-core/kern/main.c (grub_main): Mark as noreturn.
12721 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
12722 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
12723 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
12724 * include/grub/kernel.h (grub_main): Mark as noreturn.
12725 * include/grub/reader.h (grub_rescue_run): Likewise.
12726
2019d09e
VS
127272011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12728
12729 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
12730 redundant declaration.
12731
d1c501ee
VS
127322011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12733
12734 * include/grub/net.h (grub_net_network_level_interfaces): Remove
12735 redundant declaration.
12736 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
12737
61664420
VS
127382011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12739
12740 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
12741 to ensure alignment.
12742 (grub_hdparm_print_identify): Make argument uint16 * to ensure
12743 alignment. Ensure tmp alignment.
12744 (grub_cmd_hdparm): Ensure buf alignment.
12745 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
12746 to ensure alignment.
12747 (grub_ata_dumpinfo): Ensure text alignment.
12748 (grub_atapi_identify): Preserve alignment invariant.
12749 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
12750
0d51ee20
VS
127512011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12752
12753 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
12754 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
12755 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
12756 * include/grub/misc.h (grub_reboot)
12757 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
12758 (grub_halt) [__mips__]: Likewise.
12759
753ef8c1
VS
127602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12761
12762 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
12763 Remove redundant declaration.
12764 (grub_mmap_get_post64): Likewise.
12765 (grub_mmap_get_upper): Likewise.
12766 (grub_mmap_get_lower): Likewise.
12767
85c85365
VS
127682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12769
12770 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
12771 uint32_t * to ensure alignment.
12772 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
12773
a23f2cc4
VS
127742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12775
93018f64
VS
12776 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
12777 uint16_t * to ensure alignment.
12778 (sun_pc_partition_map_iterate): Make `block' a union to ensure
12779 alignment.
12780
127812011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12782
12783 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
a23f2cc4
VS
12784 to ensure alignment.
12785 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
12786
58acccd6
VS
127872011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12788
12789 * grub-core/fs/ntfs.c (u16at): Make into inline function.
12790 Handle unaligned pointers.
12791 (u32at): Likewise.
12792 (u64at): Likewise.
12793 (fixup): Use byte access instead of v16at.
12794 (find_attr): Fix imporper usage of v32at.
12795 (read_data): Likewise.
12796 (list_file): Handle byte-swapping and unaligned strings.
12797 (grub_ntfs_label): Likewise.
12798
9b05cad7
VS
127992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12800
12801 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
12802 as it's not necessarily aligned.
12803
b3950b84
VS
128042011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12805
12806 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
12807 redundant declaration.
12808 (grub_serial_init): Likewise.
12809 (grub_terminfo_init): Likewise.
12810
fcd232b7
VS
128112011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12812
12813 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
12814 function.
12815 (ZAP_HASH_IDX): Likewise.
12816 (ZAP_LEAF_HASH_SHIFT): Likewise.
12817 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
12818 (LEAF_HASH): Likewise.
12819 (ZAP_LEAF_NUMCHUNKS): Likewise.
12820 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
12821 alignment invariants. Return pointer. All users updated.
12822 (ZAP_LEAF_ENTRY): Make into inline function.
12823 (NBBY): Removed.
12824 (xor): LIkewise.
12825 (xor_out): Use grub_crypto_xor.
12826 (dnode_get_path): Use grub_get_unaligned.
12827 (nvlist_find_value): Likewise.
12828 (grub_zfs_nvlist_lookup_uint64): Likewise.
12829 (grub_zfs_nvlist_lookup_string): Likewise.
12830 (get_nvlist_size): Likewise.
12831 (grub_zfs_open): Likewise.
12832 (fill_fs_info): Likewise.
12833 (grub_zfs_dir): Likewise.
12834 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
12835 alignment invariants.
12836 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
12837 necessarily aligned.
12838
f138623a
VS
128392011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12840
12841 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
12842
564840dc
VS
128432011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12844
12845 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
12846 arithmetic to conserve alignment invariants.
12847
9b40df20
VS
128482011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12849
12850 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
12851 redundant declaration.
12852 (grub_efiemu_mm_obtain_request): Likewise.
12853 (grub_efiemu_prepare): Likewise.
12854
d1c930f9
VS
128552011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12856
12857 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
12858 to match types.
12859
4c5f3056
VS
128602011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12861
12862 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
12863 case of aunaligned recptr.
12864 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
12865 alignment.
12866 (grub_hfsplus_btree_search): Handle unaligned index.
12867
728cba91
VS
128682011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12869
12870 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
12871 to get freetag and skip.
12872
eb561f31
VS
128732011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12874
12875 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
12876 array.
12877 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
12878 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
12879
20993fbb
VS
128802011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12881
12882 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
12883 name for checksum and fix allocation algorithm.
12884
1f313b94
VS
128852011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12886
12887 * include/grub/types.h (grub_properly_aligned_t): New type.
12888 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
12889 (grub_get_unaligned16): Add explicit casts.
12890 (grub_get_unaligned32): Likewise.
12891 (grub_get_unaligned64): Likewise.
12892 (grub_set_unaligned16): New function.
12893 (grub_set_unaligned32): Likewise.
12894
47ae27ec
VS
128952011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12896
12897 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
12898
78c2cd1c
VS
128992011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12900
12901 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
12902 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
12903 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
12904
53072f9b
VS
129052011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12906
12907 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
12908 conditionals.
12909
055dc239
VS
129102011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12911
12912 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
12913 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
12914
496bd074
VS
129152011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12916
12917 Unify and improve RAID and crypto xor.
12918
12919 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
12920 changed to grub_crypto_xor
12921 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
12922 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
12923 Use bigger types when possible.
12924
ef6e4335
VS
129252011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12926
12927 * grub-core/disk/raid.c (scan_devices): Fix condition.
12928
5d048bf2
VS
129292011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12930
12931 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
12932 Make name a const ptr.
12933
ee533335
VS
129342011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12935
12936 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
12937 first argument a const pointer.
12938 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
12939 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
12940 proto.
12941 (grub_children_iterate): Likewise.
12942 (grub_machine_mmap_iterate): Remove redundant declaration.
12943
cc8f3668
VS
129442011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12945
12946 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
12947 (grub_cmd_acpi) [!x86]: Disable EBDA.
12948
c5fc563a
VS
129492011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12950
12951 Enable UTF8 in gnulib regexp.
12952
12953 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
12954 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
12955 (isupper): Use grub_isupper.
12956 (isascii): New inline function.
12957 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
12958 * grub-core/lib/posix_wrap/wctype.h: Likewise.
12959 * grub-core/normal/charset.c (grub_utf8_process): New function.
12960 (grub_utf8_to_utf16): Use grub_utf8_process.
12961 (grub_encode_utf8_character): New function.
12962 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
12963 * include/grub/charset.h (grub_utf8_process): New declaration.
12964 (grub_encode_utf8_character): Likewise.
12965 * include/grub/misc.h (grub_islower): New inline function.
12966 (grub_isupper): Likewise.
12967 (grub_strchrsub): Moved down to fix the definitions.
12968
0af2346f
VS
129692011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12970
12971 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
12972 specification.
12973
74dbd244
VS
129742011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12975
12976 * include/grub/loader.h (grub_loader_register_preboot_hook):
12977 Use struct preboot * and not void * for handle. All users updated.
12978 (grub_loader_unregister_preboot_hook): Likewise.
12979
1bc8f60d
VS
129802011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12981
12982 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
12983 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
12984 UTF-16-BE. All users updated.
12985 (grub_hfsplus_cmp_catkey): Fix unicode handling.
12986 (grub_hfsplus_iterate_dir): Likewise.
12987 (grub_hfsplus_label): Likewise.
12988
48d6e456
VS
129892011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
12990
12991 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
12992
bf3a3857
VS
129932011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
12994
12995 Add missing const qualifiers.
12996
12997 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
12998 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
12999 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
13000 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
13001 (grub_lvm_check_flag): Likewise.
13002 * grub-core/efiemu/i386/coredetect.c
13003 (grub_efiemu_get_default_core_name): Likewise
13004 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
13005 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
13006 * grub-core/fs/ntfs.c (fixup): Likewise.
13007 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
13008 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
13009 (fzap_lookup): Likewise.
13010 (zap_lookup): Likewise.
13011 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
13012 * grub-core/lib/legacy_parse.c (check_option): Likewise.
13013 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
13014 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
13015 (grub_freebsd_add_meta_module): Likewise.
13016 (grub_cmd_freebsd_module): Likewise.
13017 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
13018 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
13019 (grub_xnu_writetree_get_size): Likewise.
13020 (grub_xnu_writetree_toheap_real): Likewise.
13021 (grub_xnu_find_key): Likewise.
13022 (grub_xnu_create_key): Likewise.
13023 (grub_xnu_create_value): Likewise.
13024 (grub_xnu_register_memory): Likewise.
13025 (grub_xnu_check_os_bundle_required): Likewise.
13026 (grub_xnu_scan_dir_for_kexts): Likewise.
13027 (grub_xnu_load_kext_from_dir): Likewise.
13028 * grub-core/normal/color.c (color_list): Likewise.
13029 * grub-core/normal/completion.c (current_word): Likewise.
13030 * grub-core/normal/menu_entry.c (insert_string): Likewise.
13031 * grub-core/term/serial.c (grub_serial_find): Likewise.
13032 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
13033 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
13034 Likewise.
13035 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
13036 (grub_freebsd_add_meta_module): Likewise.
13037 * include/grub/lib/arg.h (grub_arg_option): Likewise.
13038 * include/grub/net.h (grub_net_card_driver): Likewise.
13039 (grub_net_card): Likewise.
13040 (grub_net_app_protocol): Likewise.
13041 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
13042 * include/grub/serial.h (grub_serial_find): Likewise.
13043 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
13044 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
13045 (grub_xnu_create_value): Likewise.
13046 (grub_xnu_find_key): Likewise.
13047 (grub_xnu_scan_dir_for_kexts): Likewise.
13048 (grub_xnu_load_kext_from_dir): Likewise.
13049
13050 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
13051 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
13052 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
13053 Moved from here ...
13054 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
13055
112b4837
CW
130562011-11-28 Colin Watson <cjwatson@ubuntu.com>
13057
13058 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
13059
49e891ac
VS
130602011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
13061
13062 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
13063 (read_device): Fix size calculation.
13064
fd258e5c
RM
130652011-11-25 Robert Millan <rmh@gnu.org>
13066
13067 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
13068 (find_root_device_from_libzfs): Add zpool output parser to be used
13069 as fallback when libzfs isn't available.
13070
78845dc2
SG
130712011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
13072
13073 * po/Makefile.in.in: Add missing escape-continuation.
13074
adac5211
VS
130752011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
13076
13077 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
13078
10b64f1c
VS
130792011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13080
13081 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
13082
bb416954
VS
130832011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13084
13085 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
13086
bdfe9eeb
VS
130872011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13088
13089 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
13090
581ffa8a
VS
130912011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
13092
13093 * grub-core/lib/adler32.c: Add missing license specification.
13094 * grub-core/lib/crc64.c: Likewise.
13095 * grub-core/loader/i386/pc/plan9.c: Likewise.
13096 * grub-core/partmap/plan.c: Likewise.
13097
2536cf64
LK
130982011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
13099
13100 Add facility to debug GRUB with gdb under qemu.
13101
13102 * grub-core/gdb_grub.in: New file.
13103 * grub-core/gmodule.pl.in: Likewise.
13104 * grub-core/Makefile.core.def (gmodule.pl): New script.
13105 (gdb_grub): Likewise.
13106
bc108a4a
VS
131072011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13108
13109 * util/grub-mount.c (argp_parser): Accept relative pathes.
13110 * util/grub-fstest.c (argp_parser): Likewise.
13111
111c1778
VS
131122011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13113
13114 Plan9 support.
13115
13116 * Makefile.util.def (libgrubmods): Add
13117 grub-core/partmap/plan.c.
13118 * docs/grub.texi: Notice Plan9 support.
13119 * grub-core/Makefile.core.def (plan9): New module.
13120 (part_plan): Likewise.
13121 * grub-core/loader/i386/pc/plan9.c: New file.
13122 * grub-core/partmap/plan.c: Likewise.
13123 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
13124 define.
13125 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
13126 * include/grub/mm.h (grub_extend_alloc): New inline function.
13127
c30be3b6
VS
131282011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
13129
13130 Make Reed-Solomon faster by using power of generator representation of
13131 GF(256)*.
13132
13133 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
13134 (gf_double_t): Likewise.
13135 (gf_invert): Removed.
13136 (gf_powx): New array.
13137 (gf_powx_inv): Likewise.
13138 (scratch): Move higher.
13139 (gf_reduce): Removed.
13140 (gf_mul): Use powx.
13141 (gf_invert): Likewise.
13142 (init_inverts): Replaced with ...
13143 (init_powx): ...this. All users updated.
13144 (pol_evaluate): Replace multiplications with additions.
13145 (rs_encode): Likewise.
13146 (gauss_eliminate): Call gf_invert.
13147 (grub_reed_solomon_add_redundancy): Call init_powx.
13148 (grub_reed_solomon_recover): Call init_powx unconditionally.
13149
fa5aeffc
VS
131502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13151
13152 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
13153
a346b81c
VS
131542011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13155
13156 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
13157 disk->partiton for safety.
13158
d89ee414
VS
131592011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13160
13161 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
13162 Fix a memory leak.
13163 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
13164
91ee7b6d
VS
131652011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13166
13167 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
13168
91e5a33d
VS
131692011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13170
13171 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
13172
9edd7be2
VS
131732011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13174
13175 Fix spaces handling in proc/self/mountinfo.
13176
13177 * util/getroot.c (unescape): New function.
13178 (grub_find_root_device_from_mountinfo): Use unescape.
13179
ba102053
VS
131802011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13181
13182 Support ZFS embedding.
13183
13184 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
13185 (grub_zfs_fs): Register grub_zfs_embed.
13186
aa94b870
VS
131872011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13188
13189 Fix MIPS compilation.
13190
13191 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
13192 * include/grub/offsets.h: Rename decompressor fields from
13193 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
13194 * util/grub-mkimage.c (image_targets): Use new names.
13195
5fbdac14
VS
131962011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13197
13198 Defer multiboot device parsing until we're in compressed part.
13199
13200 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
13201 bsd_part. setdevice has fallen into disuse.
13202 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
13203 (bsd_part): Likewise.
13204 (boot_dev): New variable.
13205 (multiboot_trampoline): Don't parse multiboot device.
13206 Pass multiboot device in %edx.
13207 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
13208 grub_boot_device.
13209 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
13210 Likewise.
13211 * grub-core/kern/i386/pc/startup.S: Save edx.
13212 (grub_boot_drive): Removed.
13213 (grub_install_dos_part): Likewise.
13214 (grub_install_bsd_part): Likewise.
13215 (grub_boot_device): New variable.
13216 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
13217 (grub_install_bsd_part): Likewise.
13218 (grub_boot_drive): Likewise.
13219 (grub_boot_device): New variable.
13220 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
13221 Removed.
13222 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
13223 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
13224 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
13225 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
13226 * util/grub-install.in: Remove redundant condition.
13227
691cbb58
VS
132282011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13229
13230 Fix bug introduced by previous commit.
13231
13232 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
13233
60240b8b
VS
132342011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13235
13236 Use decompressors framework on i386-pc. It increases core size
13237 by 46 bytes but improves compatibility and maintainability.
13238
13239 * grub-core/Makefile.core.def (lzma_decompress): New image.
13240 (kernel): Add i386_pc_ldflags.
13241 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
13242 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
13243 to real_to_prot, prot_to_real and device info.
13244 * include/grub/offsets.h: Renamed decompressor offsets.
13245 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
13246 (image_target_desc): Remove raw_size and rename decompressor fields.
13247 (compress_kernel): Handle lzma.
13248 (generate_image): Handle decompressors on i386-pc.
13249
e9d3421c
VS
132502011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13251
13252 * configure.ac: Add -fno-asynchronous-unwind-tables.
13253
2b23074a
VS
132542011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13255
13256 Move assembly code to C by using intwrap. It increases core size
13257 by 88 bytes but improves compatibility and maintainability.
13258
13259 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
13260 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
13261 ... here. Translated to C.
13262 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
13263 * grub-core/term/i386/pc/console.c (grub_console_getkey):
13264 ... here. Translated to C.
13265 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
13266 * grub-core/term/i386/pc/console.c (grub_console_getxy):
13267 ... here. Translated to C.
13268 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
13269 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
13270 ... here. Translated to C.
13271 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
13272 * grub-core/term/i386/pc/console.c (grub_console_cls):
13273 ... here. Translated to C.
13274 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
13275 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
13276 ... here. Translated to C.
13277 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
13278 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
13279 Translated to C.
13280 * grub-core/term/i386/pc/console.c (int10_9): New function.
13281 (grub_console_putchar): Likewise.
13282 * include/grub/i386/pc/console.h: Removed the not anymore shared
13283 functions.
13284
678f4b67
VS
132852011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
13286
13287 Move grub_chainloader_real_boot out of the kernel.
13288
13289 * grub-core/Makefile.am: Remove machine/loader.h.
13290 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
13291 Removed.
13292 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
13293 variable.
13294 (grub_relocator16_keep_a20_enabled): Likewise.
13295 (grub_relocator16_boot): Fill new variables.
13296 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
13297 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
13298 relocator.
13299 (grub_chainloader_unload): Likewise.
13300 (grub_chainloader_cmd): Likewise.
13301 * include/grub/i386/pc/loader.h: Removed.
13302 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
13303 and esi. All initialisers updated.
13304
4626edf6
VS
133052011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
133062011-11-12 Colin Watson <cjwatson@ubuntu.com>
13307
13308 * Makefile.util.def (grub-mount): New util.
13309 * .bzrignore: Add grub-mount.
13310 * configure.ac: Check for fuse and enable grub-mount if available.
13311 * docs/man/grub-mount.h2m: New file.
13312 * util/grub-mount.c: Likewise.
13313
10f0117b
VS
133142011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13315
13316 * grub-core/commands/efi/fixvideo.c: Gettextize.
13317 * grub-core/commands/hashsum.c: Likewise.
13318 * grub-core/commands/i386/cmostest.c: Likewise.
13319 * grub-core/commands/i386/pc/drivemap.c: Likewise.
13320 * grub-core/commands/i386/pc/lsapm.c: Likewise.
13321 * grub-core/commands/i386/pc/sendkey.c: Likewise.
13322 * grub-core/commands/lsmmap.c: Likewise.
13323 * grub-core/commands/menuentry.c: Likewise.
13324 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
13325 * grub-core/commands/setpci.c: Likewise.
13326 * grub-core/loader/i386/bsd.c: Likewise.
13327 * grub-core/loader/i386/linux.c: Likewise.
13328 * util/getroot.c: Likewise.
13329 * util/grub-editenv.c: Likewise.
13330 * util/grub-fstest.c: Likewise.
13331 * util/grub-mkfont.c: Likewise.
13332 * util/grub-mkimage.c: Likewise.
13333 * util/grub-mkpasswd-pbkdf2.c: Likewise.
13334 * util/grub-pe2elf.c: Likewise.
13335 * util/grub-probe.c: Likewise.
13336 * util/grub-setup.c: Likewise.
13337 * util/ieee1275/ofpath.c: Likewise.
13338 * util/misc.c: Likewise.
13339 * util/raid.c: Likewise.
13340
566f779b
RM
133412011-11-11 Robert Millan <rmh@gnu.org>
13342
13343 * util/getroot.c (grub_util_get_geom_abstraction): Remove
13344 __attribute__((unused)) from `os_dev', which *is* being used.
13345
b50787de
VS
133462011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13347
13348 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
13349 forgotten define.
13350 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
13351 GRUB_IA64_DL_GOT_ALIGN.
13352 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
13353 GRUB_IA64_DL_TRAMP_ALIGN.
13354
119d11c8
VS
133552011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13356
13357 Replace grub_fatal with normal errors in i386 linux loader.
13358
13359 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
13360 (allocate_pages): Check find_efi_mmap_size return value.
13361 (grub_e820_add_region): Return error.
13362 (grub_linux_boot): Check mmap return value.
13363
6e0632e2
VS
133642011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13365
13366 * grub-core/commands/acpihalt.c: Gettextized.
13367 * grub-core/commands/cacheinfo.c: Likewise.
13368 * grub-core/commands/cmp.c: Likewise.
13369 * grub-core/commands/efi/loadbios.c: Likewise.
13370 * grub-core/commands/gptsync.c: Likewise.
13371 * grub-core/commands/ieee1275/suspend.c: Likewise.
13372 * grub-core/commands/legacycfg.c: Likewise.
13373 * grub-core/commands/memrw.c: Likewise.
13374 * grub-core/commands/minicmd.c: Likewise.
13375 * grub-core/commands/parttool.c: Likewise.
13376 * grub-core/commands/time.c: Likewise.
13377 * grub-core/commands/videoinfo.c: Likewise.
13378 * grub-core/disk/geli.c: Likewise.
13379 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
13380 * grub-core/disk/luks.c: Likewise.
13381 * grub-core/disk/lvm.c: Likewise.
13382 * grub-core/font/font_cmd.c: Likewise.
13383 * grub-core/fs/zfs/zfscrypt.c: Likewise.
13384 * grub-core/fs/zfs/zfsinfo.c: Likewise.
13385 * grub-core/gfxmenu/view.c: Likewise.
13386 * grub-core/kern/emu/hostdisk.c: Likewise.
13387 * grub-core/kern/emu/main.c: Likewise.
13388 * grub-core/kern/emu/misc.c: Likewise.
13389 * grub-core/kern/emu/mm.c: Likewise.
13390 * grub-core/kern/mips/arc/init.c: Likewise.
13391 * grub-core/kern/mips/loongson/init.c: Likewise.
13392 * grub-core/kern/partition.c: Likewise.
13393 * grub-core/lib/i386/halt.c: Likewise.
13394 * grub-core/lib/mips/arc/reboot.c: Likewise.
13395 * grub-core/lib/mips/loongson/reboot.c: Likewise.
13396 * grub-core/loader/i386/pc/chainloader.c: Likewise.
13397 * grub-core/loader/i386/xnu.c: Likewise.
13398 * grub-core/loader/multiboot.c: Likewise.
13399 * grub-core/net/bootp.c: Likewise.
13400 * grub-core/net/net.c: Likewise.
13401 * grub-core/normal/term.c: Likewise.
13402 * grub-core/partmap/bsdlabel.c: Likewise.
13403 * grub-core/parttool/msdospart.c: Likewise.
13404 * grub-core/term/gfxterm.c: Likewise.
13405 * grub-core/term/terminfo.c: Likewise.
13406 * grub-core/video/i386/pc/vbe.c: Likewise.
13407 * util/grub-menulst2cfg.c: Likewise.
13408 * util/grub-mkdevicemap.c: Likewise.
13409 * util/grub-mklayout.c: Likewise.
13410 * util/grub-mkrelpath.c: Likewise.
13411 * util/grub-script-check.c: Likewise.
13412 * util/ieee1275/grub-ofpathname.c: Likewise.
13413 * util/resolve.c: Likewise.
13414
073aa7a9
VS
134152011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13416
13417 Support %1$d syntax.
13418
13419 * tests/printf_unit_test.c: New file.
13420 * Makefile.util.def (printf_test): New test.
13421 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
13422
c76b5417
VS
134232011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13424
13425 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
13426 fix.
13427
df067ad1
VS
134282011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13429
13430 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
13431 dprintf.
13432 * grub-core/font/font.c (grub_font_load): Likewise.
13433
5b289bc5
VS
134342011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13435
13436 * util/grub-macho2img.c: Add comment concerning gettext.
13437 * grub-core/lib/legacy_parse.c: Likewise.
13438
c1860f87
VS
134392011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13440
13441 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
13442 (grub_xvasprintf): Likewise.
13443
d35d0d37
VS
134442011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13445
13446 Add const keyword to grub_env_get and gettextize week days.
13447
13448 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
13449 (grub_read_hook_datetime): Return const char *.
13450 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
13451 updated.
13452 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
13453 Mark for gettext.
13454 (grub_get_weekday_name): Return const char *. Call gettext.
13455 * grub-core/script/argv.c (grub_script_argv_append): Receive const
13456 char * and len as the argument. All users updated.
13457 (grub_script_argv_split_append): Receive const char *.
13458 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
13459 * include/grub/env.h (grub_env_get): Likewise.
13460 (grub_env_read_hook_t): Return const char *.
13461 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
13462 (grub_script_argv_split_append): Likewise.
13463
9aed8a71
VS
134642011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13465
13466 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
13467
067fdf00
VS
134682011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13469
13470 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
13471 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
13472
a8bd9d39
VS
134732011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13474
13475 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
13476 Fix prototype.
13477
f7ce5baf
VS
134782011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13479
13480 Fix mips compilation.
13481
13482 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
13483 normal decoder.
13484 (hashes): Use in embed decoder as well (for sizes).
13485 (dec_stream_header): Fix embed decompressor logic.
13486 (dec_stream_footer): Likewise.
13487
9bb182f3
VS
134882011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13489
13490 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
13491 an error and not a fatal on unrecognised relocation types.
13492
63a9e6f6
VS
134932011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13494
13495 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
13496 Issue error rather than printf on unknown arguments.
13497
4c458569
VS
134982011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13499
13500 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
13501 Make buf a const.
13502
e2d22baf
VS
135032011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13504
13505 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
13506 Fix module name.
13507
53dc8590
VS
135082011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13509
13510 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
13511 leftover debug printf.
13512
6c189294
VS
135132011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13514
13515 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
13516
f7688369
VS
135172011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13518
13519 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
13520 A stylistic fix.
13521
11a775a3
VS
135222011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
13523
13524 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
13525
33f784e8
SL
135262011-11-10 Shea Levy <slevy@tieronedesign.com>
13527
13528 Allow all modules to perform serial IO
13529
13530 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
13531 * include/grub/serial.h (grub_serial_port_configure): New inline
13532 function.
13533 (grub_serial_port_fetch): Likewise.
13534 (grub_serial_port_put): Likewise.
13535 (grub_serial_port_fini): Likewise.
13536 (grub_serial_find): New proto.
13537
f6276525
VS
135382011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13539
13540 Put symlink at the end of the node and fix a potential
13541 memory corruption.
13542
13543 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
13544 Make symlink into an array.
13545 (set_rockridge): Set have_symlink and alloc_dirents.
13546 (grub_iso9660_read_symlink): Use new layout.
13547 (grub_iso9660_iterate_dir): Fix memory corruption.
13548 Use new layout.
13549 (grub_iso9660_dir): Set have_symlink.
13550 (grub_iso9660_open): Likewise.
13551
c3591189
VS
135522011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13553
13554 Remove local keyword.
13555
13556 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
13557 (version_test_gt): Likewise.
13558 (version_find_latest): Likewise.
13559 (gettext_printf): Likewise.
13560 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
13561
cb544caa
VS
135622011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13563
13564 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
13565
45bd824d
VS
135662011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13567
13568 Fix ZFS memory and resource leaks.
13569
13570 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
13571 All users updated.
13572 Free type on exit.
13573 (fill_vdev_info): New parameter inserted. All users updated.
13574 (check_pool_label): Likewise.
13575 (scan_disk): Likewise.
13576 (scan_devices): Close non-inserted disks.
13577 (fzap_iterate): Free l.
13578 (unmount_device): Free children descripto memory.
13579
ad9a2f44
VS
135802011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
13583 argument (access out of bounds).
13584
6b68db81
VS
135852011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
13588 >= 6 drives.
13589
28840fda
VS
135902011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
13591
13592 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
13593 Fix declaration.
13594
8a5a3a5b
VS
135952011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13596
13597 Fix several memory leaks.
13598
13599 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
13600 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
13601 (grub_cpio_dir): Likewise.
13602 * grub-core/fs/fat.c (grub_fat_label): Likewise.
13603 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
13604 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
13605 (grub_romfs_label): Likewise.
13606 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
13607 (squash_unmount): New function.
13608 (grub_squash_dir): Fix memory leak.
13609 (grub_squash_open): Likewise.
13610 (grub_squash_read): Likewise.
13611 (grub_squash_mtime): Likewise.
13612 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
13613 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
13614 * util/grub-fstest.c (fstest): Likewise.
13615
57b01250
VS
136162011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13617
13618 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
13619 avoid accessing beyond the array.
13620
19e81ba7
VS
136212011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13622
13623 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
13624
52b656c0
VS
136252011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13626
13627 Several AFFS fixes.
13628
13629 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
13630 (GRUB_AFFS_FLAG_FFS): Removed.
13631 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
13632 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
13633 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
13634 (grub_fshelp_node): Make block 32-bit.
13635 Add block_cache and last_block_cache.
13636 (grub_affs_read_block): Fill and use block cache.
13637 (grub_affs_read_file): Removed.
13638 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
13639 boot block.
13640 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
13641 safety.
13642 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
13643 space.
13644 (grub_affs_close): Free block cache.
13645 (grub_affs_read): Use grub_fshelp_read_file directly.
13646
438a746a
VS
136472011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13648
13649 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
13650 with no error set.
13651
49a45021
VS
136522011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13653
13654 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
13655 used variable.
13656 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
13657 Likewise.
13658
3ae17eb8
VS
136592011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13660
13661 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
13662
13663 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
13664 byteswap when needed.
13665
27610c38
VS
136662011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13667
13668 Fix FreeBSD compilation.
13669
13670 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
13671 to avoid circular dependency.
13672 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
13673 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
13674 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
13675
4a19b601
VS
136762011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13677
13678 Fix ZFS crypto error types.
13679
13680 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
13681 (grub_gcm_decrypt): Likewise.
13682 (grub_zfs_load_key_real): Fix error code type. Handle possible error
13683 from PBKDF2.
13684
958ee221
VS
136852011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13686
13687 Illumos support.
13688
13689 * Makefile.util.def (10_illumos): New script.
13690 * configure.ac: Set COND_HOST_ILLUMOS.
13691 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
13692 Support Illumos calls.
13693 (find_partition_start) [__sun__]: Likewise.
13694 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
13695 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
13696 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
13697 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
13698 device.
13699 * util/grub-probe.c (probe) [__sun__]: Do character check.
13700 * util/grub.d/10_illumos.in: New file.
13701
cac14fb6
VS
137022011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13703
13704 Support escaped commas in hostdisk.
13705
13706 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
13707 (find_grub_drive): Use unescape_cmp.
13708 (make_device_name): Escape commas.
13709
78e08dc3
VS
137102011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13711
13712 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
13713
9f421dd1
VS
137142011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13715
13716 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
13717 variable.
13718
ed64e9e2
VS
137192011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
13720
13721 Support trampoline jumps on powerpc.
13722
13723 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
13724 __ia64__ path.
13725 (grub_dl_load_segments): Set mod->sz.
13726 (grub_dl_flush_cache): Flush whole space occupied by module, not just
13727 segments.
13728 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
13729 (jump): Likewise.
13730 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
13731 function.
13732 (trampoline): New struct.
13733 (trampoline_template): New const.
13734 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
13735 * include/grub/dl.h (grub_dl): Add sz element.
13736 [__powerpc__]: Follow __ia64__.
13737 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
13738 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
13739 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
13740 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
13741
3084ede4
VS
137422011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
13743
13744 ZFS crypto support.
13745
13746 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
13747 * grub-core/Makefile.core.def (zfscrypt): New module.
13748 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
13749 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
13750 it. All users updated.
13751 (grub_zfs_decrypt): New var.
13752 (grub_zfs_load_key): Likewise.
13753 (zio_checksum_functions): Add SHA256+MAC.
13754 (zio_checksum_verify): Handle incomplete comparison due to MAC.
13755 (zio_read): Handle encrypted blocks.
13756 (zap_verify): Remove incorrect check.
13757 (fzap_iterate): Handle non-standard fzap.
13758 (zap_iterate): Likewise.
13759 (zap_iterate_u64): New function.
13760 (dnode_get_fullpath): Load keys.
13761 * grub-core/fs/zfs/zfscrypt.c: New file.
13762 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
13763 (grub_crypto_ecb_encrypt): Make input const.
13764 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
13765 (grub_crypto_ecb_encrypt): Make input const.
13766 (GRUB_CIPHER_AES): New macro.
13767 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
13768 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
13769 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
13770 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
13771 prefix. All users updated.
13772 (grub_zfs_add_key): New proto.
13773 (grub_zfs_decrypt): Likewise.
13774 (grub_zfs_load_key): Likewise.
13775 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
13776 * util/grub-fstest.c (options): Add -K option.
13777 (argp_parser): Likewise.
13778
b632b404
VS
137792011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13780
13781 Support zle compression on ZFS.
13782
13783 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
13784 (decomp_table): Add zle.
13785 * include/grub/zfs/zio.h (zio_compress): Add zle.
13786
c7ba4f69
VS
137872011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13788
13789 Support BtrFS embedding.
13790
13791 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
13792 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
13793 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
13794 * util/grub-setup.c (setup): Use fs embedding if available.
13795 Add additional sanity check.
13796
455377d9
VS
137972011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
13798
13799 * util/grub-install.in: Fix condition for config_opt.
13800
c2fd16ca
VS
138012011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13802
13803 Support third redundancy strip on raidz3.
13804
13805 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
13806 Return error on singularity. All users updated.
13807 (read_device): Don't stop on 3rd failure on raidz3.
13808
8622923b
VS
138092011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13810
13811 Support case-insensitive ZFS subvolumes.
13812
13813 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
13814 All users updated.
13815 (zap_hash): Likewise.
13816 (name_cmp): New function.
13817 (zap_leaf_array_equal): New parameter case_insensitive.
13818 All users updated.
13819 (zap_leaf_lookup): Likewise.
13820 (fzap_lookup): Likewise.
13821 (zap_lookup): Likewise.
13822 (dnode_get_path): New parameter case_insensitive. Retrieve case
13823 sensitiviness of a volume. All users updated.
13824 (dnode_get_fullpath): New parameter case_insensitive.
13825 All users updated.
13826 (grub_zfs_dir): Set info.case_insensitiveness.
13827
95f2e860
VS
138282011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13829
13830 Support second redundancy strip on raidz(2,3).
13831
13832 * grub-core/fs/zfs/zfs.c (powx): New array.
13833 (powx_inv): Likewise.
13834 (poly): New const.
13835 (xor_out): New function.
13836 (gf_mul): Likewise.
13837 (recovery): Likewise.
13838 (read_device): Use second redundancy strip.
13839
11ee4389
VS
138402011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13841
13842 Use a power of generator representation of GF(256) multiplication group
13843 to save space time and complexity.
13844
13845 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
13846 (raid6_table2): Likewise.
13847 (powx): New array.
13848 (powx_inv): Likewise.
13849 (poly): New const.
13850 (grub_raid_block_mul): Replace with ...
13851 (grub_raid_block_mulx): ...this.
13852 (grub_raid6_init_table): Rewritten.
13853 (grub_raid6_recover): Use power of generator representation.
13854
09e2763f
VS
138552011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13856
13857 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
13858 for the right device.
13859
8bec9a28
VS
138602011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13861
13862 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
13863 expected by grub-mkimage and it's more clear since there is no implicit
13864 padding.
13865
dbd3a32e
VS
138662011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
13867
13868 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
13869 disk.
13870 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
13871
182c872a
PMH
138722011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
13873
13874 * util/grub-mkrescue.in: Fix handling xorriso option.
13875
1e51cabd
VS
138762011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13877
13878 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
13879 NULL.
13880
9cc3581d 138812011-11-03 crocket <crockabiscuit@gmail.com>
13882
13883 * util/grub.d/10_linux.in: Add Slackware initrd naming.
13884
158dc1ea
VS
138852011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 XZ CRC64 and SHA256 support.
13888
13889 * Makefile.util.def (libgrubmods): Add crc64.c.
13890 * grub-core/Makefile.core.def (crc64): New module.
13891 * grub-core/lib/crc64.c: New file.
13892 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
13893 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
13894 Fix the type.
13895 (MAX_HASH_SIZE): New define.
13896 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
13897 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
13898 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13899 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
13900 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
13901 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
13902 Handle non-crc32 hashes.
13903 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
13904 (dec_stream_header): Handle non-crc32 hashes.
13905 (dec_stream_footer): Likewise.
13906 (dec_block_header): Likewise.
13907 (dec_main): Likewise.
13908 (xz_dec_init): Likewise.
13909 (xz_dec_reset): Likewise.
13910 (xz_dec_end): Likewise.
13911 * util/import_gcry.py: Add CRC64 line.
13912
9d9b3d2f
VS
139132011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13914
13915 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
13916 as well.
13917
7d0ac931
VS
139182011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13919
13920 Make reiserfs label retrieval similar to other *_label functions.
13921
13922 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
13923 (REISERFS_MAX_LABEL_LENGTH): Removed.
13924 (REISERFS_LABEL_OFFSET): Likewise.
13925 (grub_reiserfs_label): Rewritten.
13926
139272011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13928
13929 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
13930 field.
13931
cf5ba824
VS
139322011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
13933
13934 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
13935
17744004
VS
139362011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13937
13938 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
13939 drive failure on both raidz and raidz2.
13940
aca5aefc
VS
139412011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
13942
13943 Fix RAIDZ(2) for >= 5 devices.
13944
13945 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
13946 asize argument. All users updated.
13947
ce8ca56e
VS
139482011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
13949
13950 Fix RAIDZ(2).
13951
13952 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
13953 (fill_vdev_info_real): Set ashift.
13954 (read_device): Rewrite RAIDZ part based on reverse engineering.
13955
7c01e783
VS
139562011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13957
13958 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
13959 don't report potentially unavialiable fields in debug output.
13960 (find_path): Fix double-free and memory leak.
13961
ce109e84
VS
139622011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13963
13964 Read label on UFS1.
13965
13966 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
13967 (grub_ufs_fs): Always set .label.
13968
87661123
VS
139692011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13970
13971 Use shifts in UFS.
13972
13973 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
13974 (grub_ufs_data): New field log2_blksz.
13975 (grub_ufs_read_file): Use shifts.
13976 (grub_ufs_mount): Check block size and logarithm it.
13977
46bc1dc2
VS
139782011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
13979
13980 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
13981 long symlinks.
13982
19ee2987
VS
139832011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
13984
13985 Handle symlinks and long names on tar and cpio.
13986
13987 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
13988 (ATTR_FILE): Likewise.
13989 (ATTR_DIR): Likewise.
13990 (ATTR_LNK): Likewise.
13991 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
13992 (grub_cpio_find_file): Fill mode, handle linkname field as well as
13993 L and K entries.
13994 (grub_cpio_mount): Zero-fill data.
13995 (handle_symlink): New function.
46bc1dc2
VS
13996 (grub_cpio_dir): Handle symlinks.
13997 (grub_cpio_open): Likewise.
13998 (grub_cpio_close) [MODE_USTAR]: Free linkname.
19ee2987 13999
c83a08d8
VS
140002011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14001
14002 Fix iso9660 filename limitations and fix memory leaks.
14003
14004 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
14005 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
14006
45cdd3ea
VS
140072011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14008
14009 Fix JFS file name length limitations.
14010
14011 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
14012 (grub_jfs_diropen): Fix maximum filename length.
14013 (grub_jfs_getent): Fix filename length.
14014 (grub_jfs_lookup_symlink): Fix size checks.
14015
94ef05c2
VS
140162011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14017
14018 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
14019 string.
14020
785ab8c7
VS
140212011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14022
eb0b6b45
VS
14023 Leverage BFS implementation to read AFS.
14024
14025 * Makefile.util.def (libgrubmods): Add afs.c.
14026 * grub-core/Makefile.core.def (afs): New module
14027 * grub-core/fs/afs.c: New file.
14028 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
14029
140302011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14031
14032 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
785ab8c7 14033
c4a1628f
VS
140342011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14035
14036 * grub-core/fs/bfs.c: Run indent.
14037
5825b379
VS
140382011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14039
14040 BFS implementation based on the specification.
14041
14042 * grub-core/fs/bfs.c: New file.
14043 * Makefile.util.def (libgrubmods): Add bfs.c.
14044 * grub-core/Makefile.core.def (bfs): New module.
14045
42b2a706
VS
140462011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 * util/grub-fstest.c (cmd_cp): Clarify error message.
14049 (cmd_cmp): Likewise.
14050
61b99bfc
YB
140512011-10-30 Yves Blusseau <blusseau@zetam.org>
14052
14053 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
14054 and befs_be.
14055
faba3d16
VS
140562011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
14057
14058 Remove afs and befs because of copyright problem.
14059
14060 * grub-core/fs/afs.c: Removed.
14061 * grub-core/fs/afs_be.c: Removed.
14062 * grub-core/fs/befs.c: Removed.
14063 * grub-core/fs/befs_be.c: Removed.
14064 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
14065 * grub-core/Makefile.core.def (afs): Removed.
14066 (afs_be): Likewise.
14067 (befs): Likewise.
14068 (befs_be): Likewise.
14069
c39224b0
VS
140702011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14071
14072 Prefer rockridge over Joliet.
14073
14074 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
14075 to ...
14076 (set_rockridge): ... here.
14077 (grub_iso9660_mount): Check rockridge on the primary label when
14078 discovering. Ignore Joliet if Rockridge is present.
14079
e551115a
VS
140802011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14081
14082 Use shifts in nilfs2.
14083
14084 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
14085 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
14086 (grub_nilfs2_palloc_entries_per_group): Replace with ...
14087 (grub_nilfs2_log_palloc_entries_per_group): ... this.
14088 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
14089 (grub_nilfs2_entries_per_block): Replaced with ...
14090 (grub_nilfs2_log_entries_per_block_log): ... this.
14091 (grub_nilfs2_blocks_per_group): Replaced with ...
14092 (grub_nilfs2_blocks_per_group_log): ... this.
14093 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
14094 (grub_nilfs2_blocks_per_desc_block_log): ... this.
14095 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
14096 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
14097 (grub_nilfs2_palloc_entry_offset): Replaced ...
14098 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
14099 (grub_nilfs2_dat_translate): Use shifts.
14100 (grub_nilfs2_read_inode): Likewise.
14101 (GRUB_MOD_INIT): Ensure that logs are correct.
14102
564dd58c
VS
141032011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14104
14105 Use shifts in minix filesystem.
14106
14107 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
14108 (GRUB_MINIX_ZONE2SECT): Likewise.
14109 (grub_minix_data): Replace block_size with log_block_size.
14110 (grub_minix_read_file): Use shifts.
14111 (grub_minix_mount): Check block size and take a logarithm.
14112
ed9ba06d
VS
141132011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14114
14115 Use shifts in squash4.
14116
14117 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
14118 (squash_mount): Check block size and take logarithm.
14119 (direct_read): Use shifts.
14120
ad03fe76
VS
141212011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14122
14123 Correct befs block counting logic.
14124
14125 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
14126 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
14127 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
14128 (grub_afs_read_inode): Use block_shift.
14129 (RANGE_SHIFT): New definition.
14130 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
14131 unexpected conditions, use shifts and appropriate types.
14132 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
14133
6563f63d
VS
141342011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
14135
14136 * grub-core/disk/raid.c (scan_devices): Check partition.
14137 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
14138
5b1ae25f
VS
141392011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14140
14141 Support BFS (befs) UUID.
14142
14143 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
14144 (grub_afs_small_data_element_header): New struct.
14145 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
14146 (grub_afs_read_attribute) [MODE_BFS]: New function.
14147 (grub_afs_iterate_dir): Allocate for complete inode.
14148 (grub_afs_mount): Likewise.
14149 (grub_afs_uuid) [MODE_BFS]: New function.
14150 (grub_afs_fs) [MODE_BFS]: Add .uuid.
14151
f8d82408
VS
141522011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
14155 (zfs_unmount): Fix memory leak.
14156
5773fb64
VS
141572011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14158
14159 Support NTFS reparse points.
14160
14161 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
14162 (symlink_descriptor): New struct.
14163 (grub_ntfs_read_symlink): New function.
14164 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
14165 (grub_ntfs_open): Likewise.
14166
91c3fdde
VS
141672011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14168
14169 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
14170
3be82e10
VS
141712011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14172
14173 fstest xnu_uuid subcommand.
14174
14175 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
14176 grub-core/commands/xnu_uuid.c.
14177 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
14178 (fstest): Handle xnu_uuid.
14179 (options): Document xnu_uuid.
14180 (argp_parser): Parse xnu_uuid.
14181
8e32442e
VS
141822011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14183
14184 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
14185 -l argument. Add newline at the end if printing.
14186 (GRUB_MOD_INIT): Document -l.
14187
52a05075
VS
141882011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14189
14190 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
14191
1869edb5
VS
141922011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14193
14194 ZFS multi-device and version 33 support.
14195
14196 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
14197 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
14198 (grub_zfs_data): Add multidev-ice-related fields.
14199 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
14200 (dva_get_offset): Make dva const.
14201 (zfs_fetch_nvlist): New function.
14202 (fill_vdev_info_real): Likewise.
14203 (fill_vdev_info): Likewise.
14204 (check_pool_label): Likewise.
14205 (scan_disk): Likewise.
14206 (scan_devices): Likewise.
14207 (read_device): Likewise.
14208 (read_dva): Likewise.
14209 (zio_read_gang): Use read_dva.
14210 (zio_read_data): Likewise.
14211 (zap_leaf_lookup): Add missing endian conversion.
14212 (zap_verify): Add missing endian conversion. All users updated.
14213 (fzap_lookup): Likewise.
14214 (fzap_iterate): Likewise.
14215 (dnode_get_path): Handle SA bonus.
14216 (nvlist_find_value): Make input const. All users updated.
14217 (unmount_device): New function.
14218 (zfs_unmount): Use unmount_device.
14219 (zfs_mount): Use scan_disk.
14220 (zfs_mtime): New function.
14221 (grub_zfs_open): Handle system attributes.
14222 (fill_fs_info): Likewise.
14223 (grub_zfs_dir): Likewise.
14224 (grub_zfs_fs): Add mtime.
14225 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
14226 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
14227 (SA_MTIME_OFFSET): Likewise.
14228 (SA_SYMLINK_OFFSET): Likewise.
14229 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
14230 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
14231 (fstest): Support zfsinfo.
14232 (argp_parser): Likewise.
14233
186b4028
VS
142342011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
14235
14236 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
14237 error.
14238
142392011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
5587329c
VS
14240
14241 ZFS fixes.
14242
14243 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
14244 sharing the same block. Iterate over correct number of indices.
14245 (dnode_get_path): Handle symlinks correctly.
14246
c0584900
VS
142472011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14248
14249 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
14250
67e2bd71
VS
142512011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14252
14253 Read label on HFS+.
14254
14255 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
14256 (grub_hfsplus_btree_search): Fix types.
14257 (grub_hfsplus_label): Implement.
14258
e9cc6b7b
VS
142592011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14260
14261 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
14262
19832ddb
VS
142632011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14264
14265 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
14266
66b40850
VS
142672011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14268
14269 Fix symlink handling on iso9660.
14270
14271 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
14272 All users updated.
14273 (grub_iso9660_susp_iterate): Accept zero-size iterate.
14274 (grub_iso9660_read_symlink): Moved most of code ...
14275 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
14276
db821363
VS
142772011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14278
14279 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14280 Use union to avoid breaking strict-aliasing rules.
14281
e1211949
VS
142822011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14283
14284 Support multi-extent iso files.
14285
14286 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
14287 Add node.
14288 (grub_fshelp_node): Revamp. All users updated.
14289 (FLAG_*): New enum.
14290 (read_node): New function.
14291 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
14292 All users updated.
14293 (grub_iso9660_mount): Don't attempt to read sua when there is none.
14294 (get_node_size): New function.
14295 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
14296 entries.
14297 Fix memory leak on . and ..
14298 (grub_iso9660_read): Use read_node.
14299 (grub_iso9660_close): Free node.
14300
d4888031
VS
143012011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14302
14303 Fix tar 4G limit and handle paths containing dot.
14304
14305 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
14306 (canonicalize): New function.
14307 (grub_cpio_find_file): Use canonicalize. Store offs in
14308 grub_disk_addr_t.
14309 (grub_cpio_dir): Use grub_disk_addr_t.
14310 (grub_cpio_open): Likewise.
14311
9f12e664
VS
143122011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14313
14314 Fix handling of uncompressed blocks on squashfs and break 4G limit.
14315
14316 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
14317 unused flags.
14318 (grub_squash_inode): Add long_file and block_size.
14319 (grub_squash_cache_inode): New struct.
14320 (grub_squash_dirent): Make types into enum.
14321 (SQUASH_TYPE_LONG_REGULAR): New type.
14322 (grub_squash_frag_desc): Add field size.
14323 (SQUASH_BLOCK_FLAGS): New enum.
14324 (grub_squash_data): Use grub_squash_cache_inode.
14325 (grub_fshelp_node): Make ino_chunk 64-bit.
14326 (read_chunk): Minor argument change. All users updated.
14327 (squash_mount): Use correct le_to_cpu.
14328 (grub_squash_open): Handle LONG_REGULAR.
14329 (direct_read): New function.
14330 (grub_squash_read_data): Handle blocks correctly.
14331
9f326fba
VS
143322011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14333
14334 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
14335
f4d9b64b
VS
143362011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
14339
5bbd28b8
VS
143402011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14341
14342 Fix 2G limit on ZFS.
14343
14344 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
14345 types.
14346 (uberblock_verify): Likewise.
14347 (dmu_read): Likewise.
14348 (grub_zfs_read): Likewise. Remove invalid cast.
14349
68c72069
VS
143502011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14351
14352 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
14353 (grub_jfs_blkno): Fix incorrect shift.
14354 (grub_jfs_read_file): Use more appropriate types.
14355
6e536dc8
VS
143562011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14357
14358 Support triple indirect on minix2 and minix3.
14359
14360 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
14361 Declare triple_indir_zone.
14362 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
14363 indirect.
14364
e0864e7a
VS
143652011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
14366
14367 Minix FS fixes.
14368
14369 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
14370 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
14371 Rename ctime to mtime. All users updated.
14372 (grub_minix_get_file_block): Fix types and double indirect computations.
14373
89481cab
VS
143742011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14375
14376 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
14377 if no label is found.
14378 (grub_fat_iterate_dir): Fix file size type.
14379 (grub_fat_iterate_dir): Likewise.
14380
f646e143
VS
143812011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14382
14383 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
14384 save some space.
14385 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
14386 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14387
534d769e
VS
143882011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14389
14390 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
14391
e084ba18
VS
143922011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14393
14394 * util/import_gcry.py: Accept space between # and include.
14395
3471ecdf
VS
143962011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14397
14398 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
14399
124df5f6
VS
144002011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 Fine grainely disable warnings on lexer. Remove Wno-error on it.
14403
14404 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
14405 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
14406 yylex_strncpy.
14407 * grub-core/script/yylex.l: Add fine-grained #pragma.
14408
4defb8d5
VS
144092011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14410
14411 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
14412 New inline function.
14413 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
14414 Likewise.
14415 (memset) [GRUB_UTIL]: Likewise.
14416 (memcmp) [GRUB_UTIL]: Likewise.
14417
4e94ae65
VS
144182011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14419
14420 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
14421 inline function rather than a define.
14422
18c575e5
VS
144232011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14424
14425 * util/grub-setup.c: Add missing include.
14426
f8bc22a8
VS
144272011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14428
14429 * util/ieee1275/grub-ofpathname.c: Add missing include.
14430
3ce69fc9
VS
144312011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14432
14433 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
14434 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
14435 Likewise.
14436
d1e293bb
VS
144372011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
14440 grub_memcmp usage.
14441
7a5c54a4
VS
144422011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
14443
14444 * util/grub-install.in: Add datarootdir as per automake manual
14445 suggestion.
14446 * util/grub-mknetdir.in: Likewise.
14447
144482011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
7bec1053
VS
14449
14450 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
14451 suggestion.
14452 * util/grub.d/10_kfreebsd.in: Likewise.
14453 * util/grub.d/10_linux.in: Likewise.
14454 * util/grub.d/10_netbsd.in: Likewise.
14455 * util/grub.d/10_windows.in: Likewise.
14456 * util/grub.d/20_linux_xen.in: Likewise.
14457
766f7d08
VS
144582011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
14459
14460 Remove redundant grub_kernel_image_size.
14461
14462 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
14463 _edata and _start.
14464 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
14465 the small code. It moves it only by few bytes but simplifies the code.
14466 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
14467 _start.
14468 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
14469 (grub_kernel_image_size): Removed.
14470 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
14471 (grub_kernel_image_size): Removed.
14472 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
14473 compiled with Apple toolchain.
14474 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
14475 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
14476 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
14477 (grub_total_module_size): Likewise.
14478 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
14479 Removed.
14480 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
14481 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
14482 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
14483 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
14484 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
14485 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
14486 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
14487 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
14488 Removed.
14489 (grub_total_module_size): Removed.
14490 * util/grub-mkimage.c (image_target_desc): Remove image_size.
14491 (image_targets): Likewise.
14492 Set .compressed_size to no field on sparc.
14493 (generate_image): Remove kernel_image_size handling.
14494
fcf1d672
SJ
144952011-10-19 Szymon Janc <szymon@janc.net.pl>
14496
14497 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
14498 NULL pointer dereference.
14499
de9c615e
VS
145002011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14501
14502 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
14503 done with a dedicated section.
14504
14505 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
14506 Ensure the correct position of boot_path.
14507 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
14508 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
14509 other fields.
14510 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
14511 * include/grub/boot.h: Removed. All references removed.
14512 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
14513 Removed.
14514 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
14515
e55599dc
VS
145162011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14517
14518 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
14519 name.
14520
36dd20ad
VS
145212011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14522
14523 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
14524
f8f72eb8
VS
145252011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14526
14527 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
14528 Don't add the bogus brackets.
14529
a374751b
VS
145302011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14531
14532 ExFAT support.
14533
14534 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
14535 * grub-core/Makefile.core.def (exfat): New module.
14536 * grub-core/fs/exfat.c: New file.
14537 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
14538 (GRUB_FAT_ATTR_*): Make into an enum.
14539 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
14540 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
14541 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
14542 (GRUB_FAT_MAXFILE): Removed.
14543 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
14544 (grub_current_fat_bpb_t): New type.
14545 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
14546 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
14547 (grub_fat_dir_node_t): New type.
14548 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
14549 (fat_log2) [MODE_EXFAT]: Removed.
14550 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
14551 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
14552 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
14553 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
14554 (grub_fat_label) [MODE_EXFAT]: New function.
14555 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
14556 reserved_first_sector to 0.
14557
544c2487
VS
145582011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
14559
14560 Move grub_reboot out of the kernel.
14561
14562 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
14563 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
14564 * grub-core/lib/efi/reboot.c: ... here.
14565 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
14566 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
14567 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
14568 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
14569 * grub-core/lib/i386/reboot_trampoline.S: ... here.
14570 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
14571 * grub-core/lib/ieee1275/reboot.c: ... here.
14572 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
14573 * grub-core/lib/mips/arc/reboot.c: ... here.
14574 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
14575 * grub-core/lib/mips/loongson/reboot.c: ...here.
14576 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
14577 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
14578 * include/grub/emu/misc.h (grub_reboot): New function declaration.
14579 * include/grub/i386/reboot.h: New file.
14580 * include/grub/mips/loongson/ec.h: Fix includes.
14581 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
14582 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
14583 * grub-core/lib/i386/reboot.c: New file.
14584
a97501d2
VS
145852011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
14586
14587 Make grub_prefix into module to fix the arbitrary limit and save
14588 some space.
14589
14590 * grub-core/kern/emu/main.c (grub_prefix): Removed.
14591 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
14592 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
14593 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
14594 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
14595 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
14596 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
14597 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
14598 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
14599 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
14600 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
14601 * include/grub/ia64/efi/kernel.h: Removed.
14602 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
14603 (grub_prefix): Removed.
14604 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
14605 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
14606 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
14607 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
14608 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
14609 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
14610 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
14611 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
14612 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
14613 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
14614 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
14615 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
14616 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
14617 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
14618 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
14619 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
14620 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
14621 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
14622 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
14623 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
14624 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
14625 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
14626 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
14627 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
14628 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
14629 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
14630 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
14631 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
14632 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
14633 from module.
14634 * util/grub-mkimage.c (image_target_desc): Removed prefix and
14635 prefix_end.
14636 (image_targets): Likewise.
14637 (generate_image): Put prefix as a module.
14638
39705fad
VS
146392011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14640
14641 Replace grub_module_iterate with FOR_MODULES.
14642
14643 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
14644 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
14645 (grub_efi_modules_addr): ...this.
14646 * grub-core/kern/efi/init.c (grub_modbase): New variable.
14647 (grub_efi_init): Set grub_modbase.
14648 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
14649 (grub_modbase): New variable.
14650 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
14651 (grub_modbase): New variable.
14652 (grub_machine_init): Set grub_modbase.
14653 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
14654 (grub_modbase): New variable.
14655 (grub_machine_init): Set grub_modbase.
14656 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
14657 (grub_modbase): New variable.
14658 (grub_machine_init): Set grub_modbase.
14659 * grub-core/kern/main.c (grub_module_iterate): Remove.
14660 (grub_modules_get_end): Use grub_modbase.
14661 (grub_load_modules): Use FOR_MODULES.
14662 (grub_load_config): Likewise.
14663 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
14664 (grub_modbase): New variable.
14665 (grub_machine_init): Set grub_modbase.
14666 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
14667 (grub_modbase): New variable.
14668 (grub_machine_init): Set grub_modbase.
14669 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
14670 Removed.
14671 (grub_modbase): New variable.
14672 (grub_machine_init): Set grub_modbase.
14673 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
14674 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
14675 (grub_module_iterate): Likewise.
14676 (grub_modbase): New variable declaration.
14677 (FOR_MODULES): New macro.
14678
2afb7f6c
VS
146792011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14680
14681 * configure.ac: Check for __ctzdi2 and __ctzsi2.
14682 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
14683
366e34fa
VS
146842011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14685
14686 Fix few obvious type discrepancies.
14687
14688 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
14689 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
14690 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
14691 variable.
14692 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
14693 and connected types.
14694 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
14695 offset.
14696 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
14697 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
14698 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
14699 and connected types.
14700
177b960e
VS
147012011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14702
14703 Fix python 3.x incompatibilities.
14704
14705 * gentpl.py: Put brackets around print strings.
14706 * util/import_gcry.py: Open explicitly as utf-8.
14707 Use in instead of has_key.
14708
3b619ae1
VS
147092011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14710
14711 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
14712 (GRUB_XFS_INO_AGBITS): Make into inline function.
14713 (GRUB_XFS_INO_INOINAG): Likewise.
14714 (GRUB_XFS_INO_AG): Likewise.
14715 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14716 (GRUB_XFS_EXTENT_OFFSET): Likewise.
14717 (GRUB_XFS_EXTENT_BLOCK): Likewise.
14718 (GRUB_XFS_EXTENT_SIZE): Likewise.
14719 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
14720 (GRUB_XFS_NEXT_DIRENT): Likewise.
14721 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
14722 (grub_xfs_read_file): Fix offset type.
14723
8bcebcb8
RM
147242011-10-15 Robert Millan <rmh@gnu.org>
14725
14726 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
14727
0017e5ef
RM
147282011-10-15 Robert Millan <rmh@gnu.org>
14729
14730 Fix build problem on FreeBSD and GNU/kFreeBSD.
14731
14732 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
14733
d8919552
VS
147342011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14735
14736 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
14737
14738 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
14739 types.
14740 (grub_hfsplus_btree_recoffset): Likewise.
14741 (grub_hfsplus_btree_recptr): Likewise.
14742 (grub_hfsplus_find_block): Likewise.
14743 (grub_hfsplus_btree_search): Likewise.
14744 (grub_hfsplus_read_block): Likewise.
14745 (grub_hfsplus_read_file): Likewise.
14746 (grub_hfsplus_mount): Likewise.
14747 (grub_hfsplus_btree_iterate_node): Likewise.
14748 (grub_hfsplus_btree_search): Likewise.
14749 (grub_hfsplus_iterate_dir): Likewise.
14750 (grub_hfsplus_read): A small code simplification.
14751
c81296b6
VS
147522011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14753
14754 * grub-core/kern/emu/hostdisk.c
14755 (convert_system_partition_to_system_disk): Don't assume that children
14756 of mapper nodes are mapper nodes.
14757
0eb8ffb1
VS
147582011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
14759
14760 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
14761 * include/grub/misc.h (grub_isxdigit): New function.
14762 * grub-core/video/colors.c (my_isxdigit): Removed. All users
14763 switched to grub_isxdigit.
14764 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
14765 number starting with a letter.
14766
a98f4a08
RM
147672011-10-09 Robert Millan <rmh@gnu.org>
14768
14769 LVM support for FreeBSD and GNU/kFreeBSD.
14770
14771 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
14772 GNU/kFreeBSD.
14773 (LVM_DEV_MAPPER_STRING): Move from here ...
14774 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
14775 * util/getroot.c: Include `<grub/util/lvm.h>'.
14776 (grub_util_get_dev_abstraction): Enable
14777 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
14778 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
14779 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
14780 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
14781 support it.
14782 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
14783 GNU/kFreeBSD.
14784 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
14785 when LVM abstraction is required for ${GRUB_DEVICE}.
14786
050e8e90
SJ
147872011-10-06 Szymon Janc <szymon@janc.net.pl>
14788
14789 Add support for LZO compression in GRUB:
14790 - import of minilzo library,
14791 - LZO decompression for btrfs,
14792 - lzop files decompression.
14793
14794 * grub-core/io/lzopio.c: New file.
14795 * grub-core/lib/adler32.c: Likewise.
14796 * grub-core/lib/minilzo/lzoconf.h: Likewise.
14797 * grub-core/lib/minilzo/lzodefs.h: Likewise.
14798 * grub-core/lib/minilzo/minilzo.c: Likewise.
14799 * grub-core/lib/minilzo/minilzo.h: Likewise.
14800 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
14801 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
14802 grub-core/lib/minilzo/minilzo.c to common.
14803 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
14804 cflags in cppflags.
14805 * grub-core/Makefile.core.def (btrfs): Likewise.
14806 * grub-core/Makefile.core.def (lzopio): New module.
14807 (adler32): Likewise.
14808 * grub-core/fs/btrfs.c: Include minilzo.h.
14809 (GRUB_BTRFS_COMPRESSION_LZO): New define.
14810 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
14811 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
14812 (grub_btrfs_lzo_decompress): New function.
14813 (grub_btrfs_extent_read): Add support for LZO compression type.
14814 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
14815 (GRUB_USHRT_MAX): Likewise.
14816 (GRUB_UINT_MAX): Likewise.
14817 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
14818 (UINT_MAX): Likewise.
14819 (CHAR_BIT): Likewise.
14820 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
14821 grub-core/lib/posix_wrap/limits.h
14822 (UCHAR_MAX): Likewise.
14823 * include/grub/file.h (grub_file_filter_id): New compression filter
14824 GRUB_FILE_FILTER_LZOPIO.
14825 * include/grub/file.h (grub_file_filter_id): Set
14826 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
14827 * include/grub/types.h (grub_get_unaligned16): New function.
14828 (grub_get_unaligned32): Likewise.
14829 (grub_get_unaligned64): Likewise.
14830 * util/import_gcry.py (cryptolist): Add adler32.
14831
0eb8ffb1
VS
148322011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
14833
14834 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
14835 in perspective decreases the complexity of build system and fixes
14836 compilation right now.
14837
ce79cc99 148382011-10-01 Ales Nesrsta <starous@volny.cz>
14839
14840 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
14841 (fixed problem related to using UHCI with coreboot).
14842
8667a314
BC
148432011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
14844
14845 * gentpl.py: Use Autogen macros so that the output template file
14846 (Makefile.tpl) size is reduced.
14847
fc5efcc0
MK
148482011-09-29 Mads Kiilerich <mads@kiilerich.com>
14849
14850 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
14851 extra_dist.
14852
d1ab689d
ML
148532011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14854
14855 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
14856 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
14857
c05de032
ML
148582011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14859
14860 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
14861 _fullpath.
14862
cca7ccd8
ML
148632011-09-29 Mario Limonciello <mario_limonciello@dell.com>
14864
14865 Remove extra declaration of sleep for mingw32.
14866
14867 * util/misc.c (sleep) [__MINGW32__]: Removed.
14868 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
14869
e0b0dc83
GS
148702011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
14871
14872 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
14873 type and packname.
14874 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
14875 Resurrected.
14876 (NETBSD_BTINFO_BOOTWEDGE): New definition.
14877 (grub_netbsd_btinfo_bootwedge): New struct.
14878 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
14879 New function.
14880 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
14881
91a1a164
TH
148822011-09-28 Thomas Haller <thomas.haller@fen-net.de>
14883
14884 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
14885 loader.
14886
2ded951e
AB
148872011-09-28 Andreas Born <futur.andy@googlemail.com>
14888
14889 Fix incorrect identifiers in bash-completion.
14890
14891 * util/bash-completion.d/grub-completion.bash.in
14892 (_grub_mkpasswd-pbkdf2): Rename to ...
14893 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
14894 (_grub_script-check): Rename to ...
14895 (_grub_script_check): ... this. All users updated.
14896
69915030
VS
148972011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
14898
14899 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
14900 Return 0 if disk isn't biosdisk.
14901
20fd15f9
GS
149022011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14903
14904 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
14905 on NetBSD.
14906 * Makefile.util.def (grub-fstest): Likewise.
14907
1a7d7db9
GS
149082011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
14909
14910 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
14911 Get sector size from disk label.
14912
2221ab6c
CW
149132011-09-05 Colin Watson <cjwatson@ubuntu.com>
14914
14915 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
14916 */README* as well as README*.
14917 Reported by: Axel Beckert.
14918
ca51c4a0
VS
149192011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14920
14921 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
14922 case of less than 256 MiB of RAM.
14923
ab80f326
VS
149242011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14925
14926 * grub-core/commands/wildcard.c (make_regex): Handle @.
14927
4155e697
VS
149282011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * util/grub-install.in: Move cryptodisk logic to appropriate place.
14931
ab178c08
SJ
149322011-08-21 Szymon Janc <szymon@janc.net.pl>
14933
14934 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
14935 AC_LANG_CONFTEST macros.
14936
7dc3c686
SJ
149372011-08-20 Szymon Janc <szymon@janc.net.pl>
14938
14939 Add grub-fstest option to uncompress data for commands.
14940
14941 * util/grub-fstest.c (uncompress): New var.
14942 (options): New option -u.
14943
fe8d4a7b
SJ
149442011-08-20 Szymon Janc <szymon@janc.net.pl>
14945
14946 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
14947 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
14948
a5219af1
SJ
149492011-08-20 Szymon Janc <szymon@janc.net.pl>
14950
14951 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
14952 file type was not recognized correctly (not gzip or corrupted).
14953
f87abff5
VS
149542011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
14957 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
14958
d94497ea
VS
149592011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14960
14961 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
14962 loongson.
14963 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
14964 video_radeon_fuloong2e.
14965 * grub-core/video/radeon_fuloong2e.c: New file.
14966 * include/grub/video.h (grub_video_id_t): Add new ID
14967 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
14968
0d1fd011
VS
149692011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
14972 define.
14973 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
14974 that PRID matches the detected subplatform and reset the subplatform
14975 if it doesn't.
14976
84beb0ee
VS
149772011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14978
14979 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
14980
1227c133
VS
149812011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14982
14983 Fix PCI iterating on functions >= 4.
14984
14985 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
14986 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
14987 Removed.
14988 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
14989 (grub_pci_read): Fix bitmask.
14990 (grub_pci_read_word): Likewise.
14991 (grub_pci_read_byte): Likewise.
14992 (grub_pci_write): Likewise.
14993 (grub_pci_write_word): Likewise.
14994 (grub_pci_write_byte): Likewise.
14995
9594c689
VS
149962011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
14997
14998 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
14999 can still be specified in TARGET_CFLAGS)
15000
14a2562c
VS
150012011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
15002
15003 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
15004
15005 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
15006 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
15007 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
15008 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
15009 (FULOONG): Rename to ...
15010 (FULOONG2F): ... this. All users updated.
15011 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
15012 (machtype_fuloong2f_str): ... this.
15013 (machtype_fuloong2e_str): New string.
15014 Check for machtype_fuloong2e_str.
15015 * grub-core/loader/mips/linux.c (loongson_machtypes)
15016 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
15017 * grub-core/term/serial.c (loongson_defserial)
15018 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
15019 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
15020 loongson_defserial.
15021 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
15022 Rename to ...
15023 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
15024 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
15025 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
15026 to IMAGE_FULOONG2F_FLASH. All users updated.
15027 (image_targets): Rename images.
15028 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
15029
b526cbb6
SJ
150302011-08-19 Szymon Janc <szymon@janc.net.pl>
15031
15032 Make enable of disk cache statistics code configurable.
15033
15034 * configure.ac: --enable-cache-stats added.
15035 * config.h.in (DISK_CACHE_STATS): New define.
15036 * grub-core/Makefile.core.def (cacheinfo): New command.
15037 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
15038 * grub-core/commands/cacheinfo.c: New file.
15039 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
15040 moved to cacheinfo.c.
15041 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
15042 debug code.
15043 * include/grub/disk.h: Likewise.
15044
fb739ccd
SJ
150452011-08-19 Szymon Janc <szymon@janc.net.pl>
15046
15047 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
15048 * grub-core/Makefile.am: Likewise.
15049
2bba8cfd
VS
150502011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15051
15052 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
15053 non-zero pull.
15054
43526629
VS
150552011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15056
15057 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
15058 All users updated.
15059 (grub_jfs_lookup_symlink): Use correct starting inode.
15060
5c144cc8
VS
150612011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15062
15063 * util/grub-setup.c (main): Add missing gcry initialisation.
15064
b1257f65
VS
150652011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
15066
15067 Don't accept text modes on EFI when booting Linux.
15068
15069 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
15070 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
15071
828bc390
ML
150722011-08-15 Mario Limonciello <mario_limonciello@dell.com>
150732011-08-15 Colin Watson <cjwatson@ubuntu.com>
15074
15075 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
15076 use of "/path/.." as in grub-install for EFI as well as handling
15077 symlinks correctly.
15078 Fixes Debian bug #637768.
15079
5f60ccac
CW
150802011-08-15 Colin Watson <cjwatson@ubuntu.com>
15081
15082 * util/grub-probe.c: Remove duplicate #include.
15083
6dc212f9
RM
150842011-08-10 Robert Millan <rmh@gnu.org>
15085
15086 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
15087
15088 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
15089 function.
15090 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
15091 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
15092
66816d85
RM
150932011-08-03 Robert Millan <rmh@gnu.org>
15094
15095 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
15096 la_array as packed.
15097 Reported by: Zachary Bedell
15098
20168fca
CW
150992011-07-26 Colin Watson <cjwatson@ubuntu.com>
15100
15101 * configure.ac: The Loongson port requires grub-mkfont due to its
15102 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
15103 be built.
15104
303b6246
CW
151052011-07-26 Colin Watson <cjwatson@ubuntu.com>
15106
15107 * util/grub-install.in: Don't source grub-mkconfig_lib until after
15108 processing arguments (otherwise help2man fails when GRUB has not yet
15109 been installed).
15110
6795300e
VS
151112011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15112
41aa28ea
VS
15113 New script grub-mkstandalone.
15114
15115 * Makefile.util.def (grub-mkstandalone): New script.
15116 * docs/man/grub-mkstandalone.h2m: New file.
15117 * util/grub-mkstandalone.in: Likewise.
15118
151192011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 Support ATA disks with 4K sectors.
6795300e
VS
15122
15123 * include/grub/ata.h (grub_ata): New member log_sector_size.
15124 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
15125 (grub_ata_identify): Read sector size.
15126 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
15127
92227597
VS
151282011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15129
15130 * util/grub-install.in: Don't use uhci outside of x86.
15131
c77069f5
VS
151322011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15133
15134 * util/grub-mkrescue.in: Add missing quotes.
15135
151362011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
b70e4cb0
VS
15137
15138 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
15139 dereference.
15140
583168a2
VS
151412011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15142
15143 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
15144
6be1c01f
VS
151452011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15146
15147 * include/grub/video.h: add missing EXPORT_FUND on
15148 grub_video_edid_checksum and grub_video_edid_preferred_mode.
15149
a1167439
VS
151502011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15151
15152 * include/grub/mips/kernel.h: Fix define conflict.
15153
bf66054f
VS
151542011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
15155
15156 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
15157 all four ways.
15158
8fc4fa45
CW
151592011-07-21 Colin Watson <cjwatson@ubuntu.com>
15160
15161 Preferred resolution detection for VBE.
15162
15163 * grub-core/video/video.c (grub_video_edid_checksum): New function.
15164 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
15165 the Flat Panel extension, in line with the X.org VESA driver.
15166 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
15167 New function.
15168 (grub_vbe_bios_get_ddc_capabilities): Likewise.
15169 (grub_vbe_bios_read_edid): Likewise.
15170 (grub_vbe_get_preferred_mode): Likewise.
15171 (grub_video_vbe_setup): When the mode is "auto", try to get the
15172 preferred mode from VBE, and use the largest mode that is no larger
15173 than the preferred mode (some BIOSes expose a preferred mode that is
15174 not in their mode list!). If this fails, fall back to 640x480 as a
15175 safe conservative choice.
15176 (grub_video_vbe_get_edid): New function.
15177 (grub_video_vbe_adapter): Add get_edid.
15178 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
15179 (struct grub_video_adapter): Add get_edid.
15180 (grub_video_edid_checksum): Add prototype.
15181 (grub_video_edid_preferred_mode): Likewise.
15182 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
15183 structure.
15184
15185 * grub-core/commands/videoinfo.c (print_edid): New function.
15186 (grub_cmd_videoinfo): Print EDID if available.
15187
15188 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
15189 is more appropriate on a wider range of platforms than 640x480.
15190 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
15191 documentation.
15192
ca5572a9
VS
151932011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15194
15195 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
15196
e4bcf625
VS
151972011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15198
15199 * po/POTFILES.in: Regenerate.
15200
c4edd548
VS
152012011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15202
15203 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
15204 incorrect memory usage.
15205
16a2bab0
VS
152062011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
15207
15208 * util/grub-install.in: Source grub-mkconfig_lib.
15209
2e418de6
VS
152102011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15211
15212 Remove getroot.c from core on emu platform.
15213
15214 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
15215 kern/emu/raid.c.
15216 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
15217 useless.
15218 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
15219 * util/getroot.c (get_win32_path): ... here.
15220 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
15221 * util/getroot.c (fini_libzfs): ... here.
15222 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
15223 * util/getroot.c (grub_get_libzfs_handle): ... here.
15224 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
15225 Moved from here...
15226 * util/getroot.c (grub_find_zpool_from_dir): ... here.
15227 * grub-core/kern/emu/misc.c
15228 (grub_make_system_path_relative_to_its_root): Moved from here...
15229 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
15230 * grub-core/kern/emu/getroot.c: Moved from here ...
15231 * util/getroot.c: ... here. All users updated.
15232 * grub-core/kern/emu/raid.c: Moved from here ...
15233 * util/raid.c: ... here. All users updated.
15234
def9832a
VS
152352011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * po/POTFILES.in: Regenerate.
15238
cd8fe79a
VS
152392011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 Fix compilation on GNU/Linux.
15242
15243 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
15244 Disable geli.
15245 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
15246 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
15247 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
15248
a251b719
VS
152492011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
152502011-07-07 Michael Gorven <michael@gorven.za.net>
152512011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
15252
15253 LUKS and GELI support.
15254
15255 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
15256 grub-core/disk/luks.c, grub-core/disk/geli.c,
15257 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
15258 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
15259 grub-core/lib/arg.c.
15260 (libgrubmods.a): Remove gcrypts cflags and cppflags.
15261 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
15262 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
15263 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
15264 (grub-bin2h): Add libgcry.a.
15265 (grub-mkimage): Likewise.
15266 (grub-mkrelpath): Likewise.
15267 (grub-script-check): Likewise.
15268 (grub-editenv): Likewise.
15269 (grub-mkpasswd-pbkdf2): Likewise.
15270 (grub-pe2elf): Likewise.
15271 (grub-fstest): Likewise.
15272 (grub-mkfont): Likewise.
15273 (grub-mkdevicemap): Likewise.
15274 (grub-probe): Likewise.
15275 (grub-ofpath): Likewise.
15276 (grub-mklayout): Likewise.
15277 (example_unit_test): Likewise.
15278 (grub-menulst2cfg): Likewise.
15279 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
15280 * grub-core/Makefile.core.def (cryptodisk): New module.
15281 (luks): Likewise.
15282 (geli): Likewise.
15283 * grub-core/disk/AFSplitter.c: New file.
15284 * grub-core/disk/cryptodisk.c: Likewise.
15285 * grub-core/disk/geli.c: Likewise.
15286 * grub-core/disk/luks.c: Likewise.
15287 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
15288 grub_util_is_lvm.
15289 (grub_util_get_dm_abstraction): New function.
15290 (grub_util_follow_gpart_up): Likewise.
15291 (grub_util_get_geom_abstraction): Likewise.
15292 (grub_util_get_dev_abstraction): Use new functions.
15293 (grub_util_pull_device): Pull GELI and LUKS.
15294 (grub_util_get_grub_dev): Handle LUKS and GELI.
15295 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
15296 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
15297 (follow_geom_up): Removed.
15298 (grub_util_fd_seek): New function.
15299 (open_device): Use grub_util_fd_seek.
15300 (nread): Rename to ..
15301 (grub_util_fd_read): ... this. All users updated.
15302 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
15303 (grub_crypto_cbc_decrypt): Likewise.
15304 (grub_crypto_hmac_write): Likewise.
15305 (grub_crypto_hmac_buffer): Likewise.
15306 (grub_password_get): Extend to util.
15307 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
15308 New member modname.
15309 (gcry_md_spec) [GRUB_UTIL]: Likewise.
15310 * include/grub/cryptodisk.h: New file.
15311 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
15312 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
15313 LUKS and GELI.
15314 (grub_util_follow_gpart_up): New proto.
15315 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
15316 (grub_util_fd_read): Likewise.
15317 (grub_cryptodisk_cheat_mount): Likewise.
15318 (grub_util_cryptodisk_print_uuid): Likewise.
15319 (grub_util_get_fd_sectors): Likewise.
15320 * util/grub-fstest.c (mount_crypt): New var.
15321 (fstest): Mount crypto if requested.
15322 (options): New option -C.
15323 (argp_parser): Parse -C.
15324 (main): Init and fini gcry.
15325 * util/grub-install.in: Support cryptodisk install.
15326 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
15327 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
15328 cryptodisk.
15329 (prepare_grub_to_access_device): Likewise.
15330 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
15331 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
15332 (probe_cryptodisk_uuid): New function.
15333 (probe_abstraction): Likewise.
15334 (probe): Use new functions.
15335 * util/import_gcry.py: Create Makefile.utilgcry.def.
15336 Add modname member.
15337
9bfdcbbc
VS
153382011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
15339
15340 Lazy device scanning.
15341
15342 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
15343 (grub-setup): Remove util/raid.c.
15344 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
15345 * grub-core/disk/lvm.c (scan_depth): New variable.
15346 (grub_lvm_iterate): Rescan if necessary.
15347 (find_lv): New function based on grub_lvm_open.
15348 (grub_lvm_open): Use find_lv. Rescan on error.
15349 (is_node_readable): New function.
15350 (is_lv_readable): Likewise.
15351 (grub_lvm_scan_device): Skip already found disks.
15352 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
15353 Stop if searched device is found and readable.
15354 * grub-core/disk/raid.c (inscnt): New variable.
15355 (scan_depth): Likewise.
15356 (scan_devices): New function based on grub_raid_register. Abort if
15357 looked for device is found.
15358 (grub_raid_iterate): Rescan if needed.
15359 (find_array): NEw function based on -grub_raid_open.
15360 (grub_raid_open): Use find_array and rescan.
15361 (insert_array): Set became_readable_at.
15362 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
15363 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
15364 New function.
15365 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
15366 (grub_util_pull_device): New function.
15367 (grub_util_get_grub_dev): Call grub_util_pull_device.
15368 * util/raid.c: Moved to ..
15369 * grub-core/kern/emu/raid.c: ... here.
15370 (grub_util_raid_getmembers): New parameter "bootable".
15371 All users updated. Support 1.x.
15372 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
15373 All users updated.
15374 * include/grub/disk.h (grub_disk_pull_t): New enum.
15375 (grub_disk_dev): Change iterate prototype.
15376 All users updated.
15377 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
15378 New proto.
15379 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
15380 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
15381 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
15382 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
15383 All users updated.
15384 * include/grub/util/raid.h: Removed.
15385
1c358e59
VS
153862011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15387
15388 * po/POTFILES.in: Regenerate.
15389
abee94ed
VS
153902011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
15391
15392 Unify sparc init with other ieee1275.
15393
15394 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
15395 instead of kern/sparc64/ieee1275/init.c.
15396 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
15397 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
15398 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
15399 grub/machine/kernel.h.
15400 (grub_ieee1275_original_stack) [__sparc__]: New variable.
15401 (grub_claim_heap) [__sparc__]: Use sparc version.
15402 (grub_machine_init): Moved args parsing to
15403 (grub_parse_cmdline): ...this.
15404 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
15405 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
15406 New definition.
15407 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
15408
15409 Move BOOTP to separate file.
15410
15411 * grub-core/Makefile.core.def (net): Add net/bootp.c.
15412 * grub-core/net/net.c: Move all BOOTP functions to
15413 * grub-core/net/bootp.c: ... here.
15414
15415 Use frame interface on PXE.
15416
15417 * grub-core/Makefile.core.def (pxecmd): Removed.
15418 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
15419 * grub-core/commands/i386/pc/pxecmd.c: Removed.
15420 * grub-core/i386/pc/pxe.c: Moved from here ...
15421 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
15422 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
15423 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
15424
15425 EFI network support.
15426
15427 * grub-core/Makefile.core.def (efinet): New module.
15428 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
15429 here...
15430 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
15431 All users updated.
15432 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
15433 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
15434 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
15435 * grub-core/net/drivers/efi/efinet.c: New file.
15436 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
15437 (grub_efi_net_config): New extern var.
15438
15439 Various cleanups and bugfixes.
15440
15441 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
15442 error.
15443 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
15444 disk declared as partition.
15445 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
15446 leak on failure.
15447 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
15448 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
15449 (grub_debug_zalloc): Likewise.
15450 (grub_debug_realloc): Likewise.
15451 (grub_debug_memalign): Likewise.
15452 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
15453 Check that target is IPv4.
15454 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
15455 local-mac-address as fallback.
15456 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
15457 memory leak.
15458 * grub-core/net/ip.c (ipchksum): Rename to ...
15459 (grub_net_ip_chksum): ... this. All users updated.
15460 (grub_net_recv_ip_packets): Special handling for DHCP.
15461 * util/grub-mkimage.c (generate_image): Zero-out aout header.
15462
15463 Unify prefix handling
15464
15465 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
15466 (grub_machine_get_bootlocation): ... this.
15467 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
15468 (grub_machine_get_bootlocation): ... this.
15469 (grub_prefix): New variable.
15470 (prefix): Removed.
15471 (root_dev): New variable.
15472 (dir): Likewise.
15473 (main): Use new variables.
15474 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
15475 Revamped into ...
15476 (grub_machine_get_bootlocation): ... this.
15477 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
15478 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
15479 (grub_machine_get_bootlocation): ... this.
15480 (grub_machine_set_prefix): Removed.
15481 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
15482 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
15483 Revamped into ...
15484 (grub_machine_get_bootlocation): ... this.
15485 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
15486 (grub_set_prefix_and_root): ... this. All users updated.
15487 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
15488 Revamped into ...
15489 (grub_machine_get_bootlocation): ... this.
15490 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
15491 (grub_machine_get_bootlocation): New proto.
15492 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
15493
15494 Less intrusive and more reliable seek on network implementation.
15495
15496 * grub-core/kern/file.c (grub_file_net_seek): Removed.
15497 (grub_file_seek): Don't call grub_file_net_seek.
15498 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
15499 (grub_net_fs_read_real): .. this.
15500 (grub_net_seek_real): Use net->offset.
15501 (grub_net_fs_read): Seek if necessary.
15502
15503 Unify IEEE1275 netwotk config with the other platforms.
15504
15505 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
15506 New variable.
15507 (grub_machine_get_bootlocation): Support network.
15508 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
15509 Support type and device parsing.
15510 (grub_ieee1275_get_device_type): New function.
15511 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
15512 into ...
15513 (grub_ieee1275_net_config_real): ... this.
15514 (grub_ofnet_probecards): Removed.
15515 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
15516 * include/grub/ieee1275/ofnet.h: Removed.
15517 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
15518 extern var.
15519 (grub_ieee1275_get_device_type): New function.
15520
15521 Unify network device closing across platforms and make more robust.
15522
15523 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
15524 grub_grubnet_fini.
15525 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
15526 already.
15527 * grub-core/net/net.c (grub_net_network_level_interface_register):
15528 Update num_ifaces.
15529 (grub_net_card_unregister): Close all interfaces.
15530 (receive_packets): Don't poll if no iterfaces are registered.
15531 Open if necessary.
15532 (grub_net_fini_hw): New function.
15533 (grub_net_restore_hw): Likewise.
15534 (fini_hnd): New variable.
15535 (GRUB_MOD_INIT): Register preboot hook.
15536 (GRUB_MOD_FINI): Run and unregister preboot hook.
15537
15538 Poll network cards when idle.
15539
15540 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
15541 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
15542 * grub-core/net/net.c (receive_packets): Save last poll time.
15543 (grub_net_poll_cards_idle_real): New function.
15544 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
15545 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
15546 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
15547
15548 Rename ofnet interfaces.
15549
15550 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
15551 (grub_ofnet_findcards): Use ofnet_%s names.
15552
15553 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
15554
15555 Cleanup socket opening.
15556
15557 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
15558 (grub_net_fs_close): Likewise.
15559 (grub_net_fs_read_real): Use eof member.
15560 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
15561 (+grub_net_udp_close): New inline function.
15562
15563 * include/grub/net/tftp.h: Moved to the top of ...
15564 * grub-core/net/tftp.c: ... here.
15565 * include/grub/net/ip.h: Moved mostly to the top of ...
15566 * grub-core/net/ip.c: ... here.
15567 * include/grub/net/ethernet.h: Moved mostly to the top of ...
15568 * grub-core/net/ethernet.c: ... here.
15569
15570 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
15571
15572 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
15573 FS name.
15574
15575 * include/grub/net/ip.h (ipv4_ini): Removed.
15576 (ipv4_fini): Likewise.
15577
15578 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
15579 (grub_net_send_ip_packets): Likewise.
15580
cf1337aa
VS
155812011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15582
15583 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
15584 grub_read_cmos prototype.
15585
93c06ff9
VS
155862011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15587
15588 VGA text support in qemu-mips
15589
15590 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
15591 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
15592 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
15593 text.
15594 * grub-core/kern/i386/qemu/init.c: Renamed to ...
15595 * grub-core/kern/vga_init.c: ... this.
15596 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
15597 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
15598 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
15599 Adjust.
15600 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
15601 GRUB_MACHINE_PCI_IO_BASE.
15602
748ccabe
VS
156032011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15604
15605 MIPS qemu flash support.
15606
15607 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
15608 magic.
15609 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
15610 (grub_machine_init): Probe memory if its size isn't known.
15611 * util/grub-mkimage.c (image_targets): Add flash targets.
15612 (generate_image): Handle flash targets.
15613
d7345994
VS
156142011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15615
15616 MIPS qemu at_keyboard support.
15617
15618 * gentpl.py (videoinkernel): Add qemu-mips.
15619 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
15620 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
15621 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
15622 modules.
15623 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
15624 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
15625 * grub-core/term/serial.c (grub_serial_register)
15626 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
15627
a07a81b3
VS
156282011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
15629
15630 CMOS support on sparc.
15631
15632 * gentpl.py (cmos): Add powerpc and sparc.
15633 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
15634 powerpc and sparc.
15635 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
15636 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
15637 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
15638 grub_set_datetime_cmos.
15639 * grub-core/lib/ieee1275/cmos.c: New file.
15640 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
15641 (find_rtc): Set no_ieee1275_rtc on error.
15642 (grub_get_datetime): Call grub_get_datetime_cmos on error.
15643 (grub_set_datetime): Call grub_set_datetime_cmos on error.
15644 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
15645 fail. Move value to argument. All users updated
15646 (grub_cmos_write): Likewise.
15647 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
15648 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
15649 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
15650 grub_get_datetime_cmos and grub_set_datetime_cmos.
15651
77546584
GS
156522011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
15653
15654 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
15655 sourcing grub-mkconfig_lib.
15656 * util/update-grub_lib.in: Likewise.
15657 * util/grub.d/00_header.in: Likewise.
15658 * util/grub.d/10_hurd.in: Likewise.
15659 * util/grub.d/10_kfreebsd.in: Likewise.
15660 * util/grub.d/10_linux.in: Likewise.
15661 * util/grub.d/10_netbsd.in: Likewise.
15662 * util/grub.d/10_windows.in: Likewise.
15663 * util/grub.d/20_linux_xen.in: Likewise.
15664 * util/grub.d/30_os-prober.in: Likewise.
15665
54894791
CW
156662011-06-28 Colin Watson <cjwatson@ubuntu.com>
15667
15668 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
15669 default_bg_color rather than black.
15670 (grub_gfxterm_fullscreen): Likewise.
15671 (grub_gfxterm_background_color_cmd): Save new background color in
15672 default_bg_color.
15673
8d5d8444
VS
156742011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15675
15676 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
15677
5afeb5bd
VS
156782011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15679
15680 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
15681 mismerge.
15682
ba7df45e
VS
156832011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15684
15685 Chainloading on coreboot support.
15686
15687 * grub-core/Makefile.core.def (chain): Add coreboot.
15688 * grub-core/loader/i386/coreboot/chainloader.c: New file.
15689
d0b526b2
VS
156902011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15691
15692 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
15693 if it happens.
15694
5ff1d945
VS
156952011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15696
15697 Implement time command.
15698
15699 * grub-core/Makefile.core.def (time): New module.
15700 * grub-core/commands/time.c: New file.
15701 * grub-core/script/parser.y: Remove "time" keyword.
15702 * grub-core/script/yylex.l: Likewise.
15703
5ebaad7e
VS
157042011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15705
15706 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
15707
bdea3798
VS
157082011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15709
15710 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
15711 when handling leftovers.
15712
b28c5655
VS
157132011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15714
15715 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
15716 so that help2man doesn't fail.
15717
b6f945dc
VS
157182011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15719
15720 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
15721 type in pointers on sparc64.
15722 (get_card_packet): Likewise.
15723
f9b75e8a
CW
157242011-06-27 Colin Watson <cjwatson@ubuntu.com>
15725
15726 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
15727 with `*'.
15728 (grub_cmd_videoinfo): Fetch current video mode.
15729
1e3d9b86
VS
157302011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15731
15732 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
15733 because of underlying system restrictions.
15734
efff4b1c
VS
157352011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15736
15737 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
15738 necessary.
15739
9fc9ce37
VS
157402011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15741
15742 Coreboot video support.
15743
15744 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
15745 (vbe): Likewise.
15746 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
15747 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
15748 here ...
15749 * grub-core/kern/i386/int.S: ... here.
15750 * grub-core/video/i386/pc/vbe.c: Updated includes.
15751 * grub-core/video/i386/pc/vga.c: Likewise.
15752 * include/grub/i386/coreboot/memory.h
15753 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
15754 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
15755 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
15756 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
15757 Disable interrupts.
15758 * include/grub/i386/pc/vga.h: Removed. All users updated.
15759
41bec7fe
VS
157602011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15761
15762 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
15763 definitions for dprintf.
15764 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
15765
ca80309d
VS
157662011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
15767
15768 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
15769 prototype.
15770 (get_card_packet): Likewise.
15771
9e322ce8
YB
157722011-06-26 Yves Blusseau <blusseau@zetam.org>
15773
15774 Display the path of the file when file is not found
15775
15776 * grub-core/fs/fat.c: Display the filename when file is not found.
15777 * grub-core/fs/fshelp.c: Likewise.
15778 * grub-core/fs/hfs.c: Likewise.
15779 * grub-core/fs/jfs.c: Likewise.
15780 * grub-core/fs/minix.c: Likewise.
15781 * grub-core/fs/ufs.c: Likewise.
15782 * grub-core/fs/btrfs.c: Likewise.
15783 * grub-core/commands/i386/pc/play.c: Likewise.
15784
cbf597af
SJ
157852011-06-26 Szymon Janc <szymon@janc.net.pl>
15786
15787 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
15788 pointer checks before calling grub_free().
15789 * grub-core/commands/wildcard.c (match_devices): Likewise.
15790 * grub-core/commands/wildcard.c (match_files): Likewise.
15791 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
15792 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
15793 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
15794 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
15795 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
15796 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
15797 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
15798 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15799 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
15800
6295b32f
P
158012011-06-25 Patrick <p55@mailinator.com>
15802
15803 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
15804
77c0840b
VS
158052011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
15806
15807 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
15808 (grub_pxe_send): Likewise.
15809 (GRUB_MOD_INIT): Fix types.
15810
40ea05de
SJ
158112011-06-24 Szymon Janc <szymon@janc.net.pl>
15812
15813 * grub-core/io/xzio.c: Fix code style issues
15814
90162423
MRA
158152011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
158162011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
423a1849
MRA
15817
15818 Network infrastructure.
15819 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
15820
15821 * include/grub/net/arp.h: New file.
90162423
MRA
15822 * include/grub/net/device.h: Likewise.
15823 * include/grub/net/ethernet.h: Likewise.
15824 * include/grub/net/ip.h: Likewise.
15825 * include/grub/net/netbuff.h: Likewise.
15826 * include/grub/net/tftp.h: Likewise.
15827 * include/grub/net/udp.h: Likewise.
15828 * include/grub/ieee1275/ofnet.h: Likewise.
15829 * include/grub/emu/export.h: Likewise.
15830 * include/grub/net.h: Likewise.
15831 * grub-core/net/arp.c: Likewise.
15832 * grub-core/net/ethernet.c: Likewise.
15833 * grub-core/net/ip.c: Likewise.
15834 * grub-core/net/udp.c: Likewise.
15835 * grub-core/net/tftp.c: Likewise.
15836 * grub-core/net/netbuff.c: Likewise.
15837 * grub-core/net/net.c: Likewise.
15838 * grub-core/net/drivers/emu/emunet.c: Likewise.
15839 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
15840 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
15841 export.h.
15842 * grub-core/Makefile.core.def (net): New module.
15843 (tftp): Likewise.
15844 (ofnet): Likewise.
15845 (emunet): Likewise.
15846 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
15847 network protocols.
15848 * grub-core/kern/device.c (grub_net_open) : New variable.
15849 (grub_device_open): Handle network device.
15850 (grub_device_close): Likewise.
15851 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
15852 (grub_grubnet_fini): Likewise.
15853 (grub_file_seek): Seek in network device.
15854 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
15855 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
15856 network root.
15857 (grub_machine_fini): Call grub_grubnet_fini.
15858 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
15859 network.
15860 (grub_ieee1275_get_aliasdevname): New function.
15861 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15862 Add unofficial Solaris network info.
15863 (grub_multiboot_make_mbi): Likewise.
15864 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
15865 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
15866 * include/grub/device.h (grub_fs): Removed.
15867 * include/grub/err.h (grub_err_t): Add network-related values.
15868 * include/grub/i386/pc/pxe.h: Removed bootp parts.
15869 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
15870 (grub_ieee1275_get_aliasdevname): New proto.
15871 * include/grub/net.h: Rewritten.
423a1849 15872
031f22a0
VS
158732011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15874
15875 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
15876 names.
15877
4388ca72
VS
158782011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15879
15880 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
15881 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
15882 it truncates the output.
15883 Reported by: Ximin Luo.
15884
98e2f506
VS
158852011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15886
15887 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
15888
2a5e94d8
VS
158892011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15890
15891 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15892 partmap before abstraction.
15893
535c1910
AK
158942011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
15895
15896 * util/grub-mkconfig_lib.in: Add missing quotes.
15897
bc09e1a2
VS
158982011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15899
15900 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
15901 old method if mountinfo would return /dev/root and /dev/root doesn't
15902 exist.
15903
290766fb
VS
159042011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15905
15906 ZFS zlib support
15907
15908 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
15909 (decomp_table): Add zlib entries.
15910 (zio_read): USe 8 bits for compression function rather than 3.
15911 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
15912
159132011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
15914
15915 * grub-core/disk/ahci.c: Add missing license statements.
15916 * grub-core/fs/romfs.c: Likewise.
15917 * grub-core/lib/ia64/setjmp.S: Likewise.
15918 * grub-core/loader/i386/pc/freedos.c: Likewise.
15919 * grub-core/loader/ia64/efi/linux.c: Likewise.
15920 * grub-core/video/colors.c: Likewise.
15921 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
15922
5ab3f48a
VS
159232011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15924
15925 AHCI support.
15926
15927 * grub-core/Makefile.core.def (ata_pthru): Removed.
15928 (ahci): New module.
15929 (pata): Likewise.
15930 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
15931 on unload.
15932 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
15933 readwrite.
15934 (grub_hdparm_do_check_powermode_cmd): Likewise.
15935 (grub_hdparm_do_smart_cmd): Likewise.
15936 (grub_hdparm_set_val_cmd): Likewise.
15937 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
15938 * grub-core/disk/ahci.c: New file.
15939 * grub-core/disk/ata.c: Factor out the low-level part into ...
15940 * grub-core/disk/pata.c: ... here.
15941 * grub-core/disk/ata_pthru.c: Contents moved to ...
15942 * grub-core/disk/pata.c: ... here.
15943 * grub-core/disk/scsi.c (grub_scsi_names): New array.
15944 (grub_scsi_iterate): Use grub_scsi_names.
15945 (grub_scsi_open): Likewise.
15946 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
15947 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
15948 (grub_ata_regs_t): New struct.
15949 (grub_disk_ata_pass_through_parms): Likewise.
15950 (grub_ata_device): Renamed to ...
15951 (grub_ata): ... this.
15952 (grub_ata_dev): New struct.
15953 Removed all low-level inline functions.
15954 * include/grub/scsi.h: Add PATA and AHCI subsystems.
15955 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
15956 iterate hooks and open. All users updated.
15957 * util/grub-install.in: Handle AHCI disk module.
15958
c31dc5f5
SJ
159592011-06-23 Szymon Janc <szymon@janc.net.pl>
15960
15961 Add support for DRI and RSTn markers in JPEG files.
15962
15963 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
15964 (JPEG_MARKER_RST0): Likewise.
15965 (JPEG_MARKER_RST1): Likewise.
15966 (JPEG_MARKER_RST2): Likewise.
15967 (JPEG_MARKER_RST3): Likewise.
15968 (JPEG_MARKER_RST4): Likewise.
15969 (JPEG_MARKER_RST5): Likewise.
15970 (JPEG_MARKER_RST6): Likewise.
15971 (JPEG_MARKER_RST7): Likewise.
15972 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
15973 (grub_jpeg_decode_dri): New function.
15974 (grub_jpeg_decode_sos): Move image data related part into
15975 grub_jpeg_decode_data function.
15976 (grub_jpeg_decode_data): New function.
15977 (grub_jpeg_reset): New function.
15978 (grub_jpeg_decode_jpeg): Handle new markers.
15979
fe12fd5b
VS
159802011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15981
15982 * util/ieee1275/ofpath.c (check_sas): Close fd.
15983 (main): Free of_path.
15984 Reported by: David Volgyes <dvolgyes>.
15985
03147f46
VS
159862011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15987
15988 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
15989 Reported by: David Volgyes <dvolgyes>.
15990
cad3237f
VS
159912011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15992
15993 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
15994 file after stat.
15995 Reported by: David Volgyes <dvolgyes>.
15996
13548d26
VS
159972011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
15998
15999 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
16000
16001 Reported by: David Volgyes <dvolgyes>.
16002
e061a1b5
VS
160032011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
16006 Prevent memory leak.
16007
1abe47dc
VS
160082011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16009
16010 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
16011 (main): Close file.
e061a1b5 16012 Reported by: David Volgyes <dvolgyes>.
1abe47dc 16013
fbc62666
VS
160142011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
16017 to continue if allocation is failed.
16018
16019 Reported by: David Volgyes <dvolgyes>.
16020
e98c83e9
DV
160212011-06-23 David Volgyes <dvolgyes>
16022
16023 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
16024 dereference.
16025
a199a8cd
VS
160262011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16027
16028 Fix spurious warning.
16029
16030 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
16031 (acorn_partition_map_find): Use .bin member.
16032
e2d1dba0
VS
160332011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16034
16035 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
16036 /dev/root as a valid device.
16037
8a5d6919
JM
160382011-06-23 Jim Meyering <meyering@redhat.com>
16039
e2d1dba0
VS
16040 Avoid NULL deref in grub_device_open.
16041
8a5d6919
JM
16042 * grub-core/kern/device.c (grub_device_open): Don't dereference
16043 a NULL pointer upon failed grub_env_get.
16044
f7db6f4a
VS
160452011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
16046
16047 Support non-512B sectors and agglomerate reads.
16048
16049 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
16050 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
16051 (disk_io_guid): Removed.
16052 (make_devices): Locate solely by BlockIO.
16053 (grub_efidisk_open): Fill log_sector_size and total_sectors.
16054 (grub_efidisk_read): Use read_blocks.
16055 (grub_efidisk_write): Use write_blocks.
16056 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
16057 log_sector_size.
16058 (get_safe_sectors): Handle non-512B sectors.
16059 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
16060 sectors.
16061 (grub_biosdisk_write): Handle non-512B sectors.
16062 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
16063 (grub_scsi_read): Remove special non-512B block handling (now handled
16064 one level up).
16065 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
16066 and do sanity checks.
16067 (grub_disk_adjust_range): Handle non-512B sectors.
16068 (transform_sector): New function.
16069 (grub_disk_read_small): Likewise.
16070 (grub_disk_read): Rewritten.
16071 (grub_disk_write): Handle non-512B sectors.
16072 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
16073 log_sector_size.
16074 (open_device): Use log_sector_size.
16075 (grub_util_biosdisk_read): Likewise.
16076 (grub_util_biosdisk_write): Likewise.
16077 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
16078 non-512B sectors.
16079 (pc_partition_map_embed): Likewise.
16080 * include/grub/disk.h (grub_disk): New field log_sector_size.
16081 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
16082 (GRUB_DISK_CACHE_BITS): Increased to 6.
16083 * util/grub-fstest.c (fstest): New command testload.
16084 (argp_parser): Likewise.
16085
881ac815
RM
160862011-06-16 Robert Millan <rmh@gnu.org>
16087
16088 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
16089 `ata' driver on kernel of FreeBSD 9.
16090
16091 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
16092 (get_ataraid_disk_name): New functions.
16093 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
16094 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
16095 get_ataraid_disk_name() and get_ada_disk_name().
16096
1e9aef7d
CW
160972011-06-13 Colin Watson <cjwatson@ubuntu.com>
16098
16099 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
16100 input format.
16101
351c7c8a
CW
161022011-05-29 Colin Watson <cjwatson@ubuntu.com>
16103
16104 * docs/grub.texi (Obtaining and Building GRUB): Substitute
16105 `ftp.gnu.org' for `alpha.gnu.org'.
16106
6b4e6430
CW
161072011-05-27 Colin Watson <cjwatson@ubuntu.com>
16108
16109 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
16110 partitions under /dev/disk/by-id/.
16111
c64db050
CW
161122011-05-27 Colin Watson <cjwatson@ubuntu.com>
16113
16114 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
16115 after ten consecutive open failures. Scanning all the way up to
16116 10000 is excessive and can cause serious performance problems in
16117 some configurations.
16118 Fixes Ubuntu bug #787461.
16119
245f4aba
VS
161202011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16121
16122 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
16123 opening new one.
16124
f767c929
VS
161252011-05-21 Colin Watson <cjwatson@ubuntu.com>
161262011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
16127
16128 Don't stat devices unless we have to.
16129
16130 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
16131 dir == /dev/mapper.
16132 (grub_guess_root_device): Use already known os_dev if possible.
16133 * grub-core/kern/emu/hostdisk.c
16134 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
16135 if device is known to be a dm one.
16136
f35fa3a6
CW
161372011-05-20 Colin Watson <cjwatson@ubuntu.com>
16138
16139 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
16140 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
16141 Reported by: Pawel Tecza.
16142
9a79fcf2
VS
161432011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
16146 (lsefisystab): Likewise.
16147 (lssal): Likewise.
16148 (lsefimmap): Likewise.
16149 (hdparm): Enable on qemu-mips.
16150 (setjmp): Add ia64 nodist.
16151 (serial): Simplify tags.
16152
63e3eea9
CW
161532011-05-18 Colin Watson <cjwatson@ubuntu.com>
16154
16155 * Makefile.util.def (grub-ofpathname): Install manual page.
16156
09728256
CW
161572011-05-18 Colin Watson <cjwatson@ubuntu.com>
16158
16159 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
16160
8b63a142
CW
161612011-05-18 Colin Watson <cjwatson@ubuntu.com>
16162
16163 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
16164
e775d8ed
VS
161652011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16166
16167 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
16168 into dprintf.
16169
bf947d36
VS
161702011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16171
16172 Use full 64-bit division.
16173
16174 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
16175 (grub_divmod64): ... this.
16176 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
16177 version.
16178
b84f26c5
CW
161792011-05-18 Colin Watson <cjwatson@ubuntu.com>
16180
16181 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
16182 `source'.
16183
5626056f
CW
161842011-05-18 Colin Watson <cjwatson@ubuntu.com>
16185
16186 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
16187 to avoid accidents when debugging with 'sh -x'.
16188 * grub-core/gensyminfo.sh.in: Likewise.
16189 * tests/example_scripted_test.in: Likewise.
16190 * tests/grub_cmd_regexp.in: Likewise.
16191 * tests/grub_script_blanklines.in: Likewise.
16192 * tests/grub_script_dollar.in: Likewise.
16193 * tests/grub_script_expansion.in: Likewise.
16194 * tests/grub_script_final_semicolon.in: Likewise.
16195 * tests/partmap_test.in: Likewise.
16196 * tests/util/grub-shell-tester.in: Likewise.
16197 * tests/util/grub-shell.in: Likewise.
16198
e2965f4a
CW
161992011-05-18 Colin Watson <cjwatson@ubuntu.com>
16200
16201 Move gfxmenu color handling to video, so that gfxterm can use it
16202 too.
16203
16204 * grub-core/gfxmenu/named_colors.c: Move to ...
16205 * grub-core/video/colors.c: ... here. Rename
16206 grub_gui_get_named_color to grub_video_get_named_color.
16207 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
16208 * grub-core/video/colors.c (my_isxdigit): ... here.
16209 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
16210 Move to ...
16211 * grub-core/video/colors.c (parse_hex_color_component): ... here.
16212 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
16213 to ...
16214 * grub-core/video/colors.c (grub_video_parse_color): ... here.
16215
16216 * include/grub/gui.h (grub_gui_color_t): Move to ...
16217 * include/grub/video.h (grub_video_rgba_color_t): ... here.
16218 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
16219 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
16220 * include/grub/gui.h (grub_gui_map_color): Move to ...
16221 * include/grub/video.h (grub_video_map_rgba_color): ... here.
16222 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
16223 to ...
16224 * include/grub/video.h (grub_video_get_named_color): ... here.
16225 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
16226 * include/grub/video.h (grub_video_parse_color): ... here.
16227
16228 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
16229 video/colors.c.
16230 (gfxmenu): Remove gfxmenu/named_colors.c.
16231 (video) [videomodules]: Add video/colors.c.
16232
16233 Add a background_color command.
16234
16235 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
16236 function.
16237 (GRUB_MOD_INIT): Register background_color command.
16238 (GRUB_MOD_FINI): Unregister background_color command.
16239 (redraw_screen_rect): Allow blend/replace of text layer to be
16240 controlled independently from whether there is a background bitmap.
16241 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
16242 changing bitmap.
16243
1e4b4390
VS
162442011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16245
26618ff0
VS
16246 Patch BPB in ntldr and chainloader --bpb.
16247
1e4b4390
VS
16248 * grub-core/fs/fat.c: Include grub/fat.h.
16249 (grub_fat_bpb): Moved to ...
16250 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
16251 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
16252 grub/ntfs.h.
16253 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
16254 Moved from here...
16255 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
16256 here.
16257 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
16258 New function.
16259 (grub_chainloader_cmd): Patch BPB if --bpb is given.
16260 (GRUB_MOD_INIT): Show --bpb.
16261 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
16262 * grub-core/normal/main.c (features): New variable.
16263 (GRUB_MOD_INIT): Set feature_* variables.
16264 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
16265 proto.
16266 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
16267
cf02731e
VS
162682011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16269
16270 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
16271 for cleanness.
16272
e3a1073f
VS
162732011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16274
16275 FreeDOS direct loading support.
16276
16277 * docs/grub.texi (Supported OS): Add FreeDOS.
16278 * grub-core/Makefile.core.def (freedos): New module.
16279 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
16280 variable.
16281 (grub_relocator16_boot): Handle %ebx.
16282 * grub-core/lib/i386/relocator16.S: Likewise.
16283 * grub-core/loader/i386/pc/freedos.c: New file.
16284
05caa461
VS
162852011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16286
16287 Long Linux command line support.
16288
16289 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16290 (maximal_cmdline_size): New variable.
16291 (allocate_pages): Use maximal_cmdline_size.
16292 (grub_cmd_linux): Set and use maximal_cmdline_size.
16293 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
16294 (allocate_pages): Use maximal_cmdline_size.
16295 (grub_cmd_linux): Set and use maximal_cmdline_size.
16296 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
16297 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
16298 and cmdline_size.
16299
a2491e23
VS
163002011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
163012011-05-18 Colin Watson <cjwatson@ubuntu.com>
16302
16303 Improve devmapper support
16304
16305 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
16306 (grub_util_is_lvm): New function.
16307 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
16308 than lvm if not dmraid.
16309 Handle mapped md nodes.
16310 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
16311 (grub_util_device_is_mapped): ... this. Make always available. All users
16312 updated.
16313 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
16314 (convert_system_partition_to_system_disk): Handle lvm, mpath and
16315 dmraid nodes.
16316 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
16317
6ad6223e
VS
163182011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
16319
16320 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
16321
16322 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
16323 * grub-core/modinfo.sh.in: New file.
16324 * grub-core/Makefile.core.def (modinfo.sh): New script.
16325 * util/grub-mknetdir.in: Use modinfo.sh.
16326 * util/grub-mkrescue.in: Likewise.
16327
543a8f6e
VS
163282011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16329
16330 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
16331 Fix potential usage of Elf32 instead of Elf64 when compiling on
16332 32-bit architecture. Add endianness macros while on it.
16333
4959e111
VS
163342011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16335
16336 Use mipsel- rather than mips- in directories involving mipsel ports to
16337 allow both endiannesses coexist.
16338
16339 * configure.ac: proparate target_cpu=mipsel rather than resetting to
16340 mips. All conditions adjusted.
16341 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
16342 variable.
16343 * util/grub-install.in: Adjust conditions to take renaming into account.
16344 * util/grub-mkimage.c (image_targets): Likewise. New target
16345 mips-qemu_mips-elf for bigendian mips.
16346
35341bbc
VS
163472011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16348
16349 Avoid unnecessary copying on MIPS.
16350
16351 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
16352 early if src == dest.
16353 * util/grub-mkimage.c (generate_image): Arange for src == dest if
16354 compression is none.
16355
b772baed
VS
163562011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16357
16358 Reduce memory footprint on SGI by putting modules before the kernel
16359 as opposed to after.
16360
16361 * grub-core/Makefile.core.def (kernel): Increase linking address.
16362 (none_decompress): Likewise.
16363 (xz_decompress): Likewise.
16364 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
16365 address.
16366 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
16367 layout change.
16368 (grub_arch_modules_addr): New function.
16369 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
16370 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
16371 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
16372 here.
16373 * grub-core/kern/mips/startup.S (total_size): Rename to ...
16374 (grub_total_modules_size): ... this. Make global.
16375 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
16376 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
16377 New definition.
16378 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
16379 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
16380 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
16381 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
16382 * util/grub-mkimage.c (image_target_desc): New flag
16383 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
16384 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
16385 (generate_image): Handle images with modules before kernel.
16386
566a1917
VS
163872011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16388
16389 Prevent potential loss of memory map by overwrite on qemu-mips.
16390
16391 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16392 Save ram size in $s4.
16393 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
16394 All users changed to grub_arch_memsize.
16395 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
16396 Loongson.
16397 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
16398 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
16399 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
16400 external variable.
16401
5d420cd9
CW
164022011-05-17 Colin Watson <cjwatson@ubuntu.com>
16403
16404 * .bzrignore: Remove grub-dumpbios.
16405
d064b830
CW
164062011-05-17 Colin Watson <cjwatson@ubuntu.com>
16407
16408 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
16409 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
16410 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
16411 existing options which append).
16412 * docs/grub.texi (Simple configuration): Document new options.
16413 Reported by: Ian Jackson. Fixes Debian bug #617538.
16414
3ca2b466
CW
164152011-05-17 Colin Watson <cjwatson@ubuntu.com>
16416
16417 * util/grub-fstest.c (cmd_cat): New function.
16418 (fstest): Handle CMD_CAT.
16419 (options): Add cat.
16420 (argp_parser): Handle cat.
16421
24c9143a
CW
164222011-05-17 Colin Watson <cjwatson@ubuntu.com>
16423
16424 * Makefile.util.def (grub-bin2h): Don't install.
16425 * docs/man/grub-bin2h.h2m: Remove.
16426
90f7ac19
VS
164272011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16428
16429 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
16430 place.
16431
8d4a5178
VS
164322011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16433
16434 Reenable qemu-mips port.
16435
16436 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
16437 Fix small arc bug while on it.
16438 * gentpl.py: Handle qemu_mips.
16439 * grub-core/Makefile.am: Likewise.
16440 * grub-core/Makefile.core.def: Likewise.
16441 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
16442 inappropriate includes.
16443 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
16444 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
16445 * grub-core/kern/main.c (grub_modules_get_end)
16446 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
16447 * grub-core/kern/mips/qemu-mips: Moved to ..
16448 * grub-core/kern/mips/qemu_mips: ... this.
16449 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
16450 (grub_machine_init): Call terminfo_init and serial_init.
16451 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
16452 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
16453 New variable.
16454 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
16455 parameter passing.
16456 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
16457 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
16458 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
16459 * include/grub/mips/qemu_mips/cmos.h: New file.
16460 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
16461 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
16462 Removed.
16463 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
16464 Use correct mips-style address.
16465 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
16466 (GRUB_TICKS_PER_SECOND): Removed.
16467 (grub_get_rtc): Likewise.
16468 (grub_cpu_idle): Likewise.
16469 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
16470 New definition.
16471 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
16472 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
16473 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
16474 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
16475 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
16476 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
16477 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
16478 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
16479
400b9371
VS
164802011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16481
16482 SGI ARCS port.
16483
16484 * Makefile.util.def (libgrubmods.a): Add dvh.c.
16485 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
16486 platforms.
16487 * configure.ac: New target mips-arc.
16488 * gentpl.py: Likewise.
16489 * grub-core/Makefile.am: Likewise.
16490 * grub-core/Makefile.core.def: Likewise.
16491 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
16492 (none_decompress): Likewise.
16493 (lsdev): New module.
16494 (datetime): Use lib/arc/datetime.c on ARC.
16495 (part_dvh): New module.
16496 * grub-core/commands/arc/lsdev.c: New file.
16497 * grub-core/disk/arc/arcdisk.c: Likewise.
16498 * grub-core/kern/mips/arc/init.c: Likewise.
16499 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
16500 aligned addresses.
16501 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
16502 support.
16503 (grub_arch_dl_relocate_symbols): Likewise.
16504 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
16505 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
16506 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
16507 platforms.
16508 * grub-core/lib/arc/datetime.c: New file.
16509 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
16510 pci.h on non-loongson.
16511 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
16512 (grub_linux_boot): Set unused registers to 0.
16513 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
16514 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
16515 * grub-core/mmap/mips/uppermem.c: ...here.
16516 * grub-core/partmap/dvh.c: New file.
16517 * grub-core/term/arc/console.c: Likewise.
16518 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
16519 (grub_terminfo_set_current): Add terminal "arc".
16520 (grub_terminfo_readkey): Support ARC sequences.
16521 * include/grub/arc/arc.h: New file.
16522 * include/grub/arc/console.h: Likewise.
16523 * include/grub/disk.h (grub_disk_dev_id): Add
16524 GRUB_DISK_DEVICE_ARCDISK_ID.
16525 * include/grub/mips/arc/kernel.h: New file.
16526 * include/grub/mips/arc/memory.h: Likewise.
16527 * include/grub/mips/arc/time.h: Likewise.
16528 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
16529 * include/grub/mips/kernel.h (grub_halt): ... here.
16530 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
16531 here...
16532 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
16533 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
16534 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
16535 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
16536 proto.
16537 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
16538 from here ...
16539 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
16540 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
16541 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
16542 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
16543 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
16544 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
16545 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
16546 (grub_phys_addr_t): Moved from here ...
16547 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
16548 (grub_vtop): Moved from here ...
16549 * include/grub/mips/memory.h (grub_vtop): ... here.
16550 (grub_map_memory): Moved from here ...
16551 * include/grub/mips/memory.h (grub_map_memory): ... here.
16552 (grub_unmap_memory): Moved from here ...
16553 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
16554 (grub_machine_mmap_iterate): Moved from here ...
16555 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
16556 (grub_mmap_get_lower): Moved from here ...
16557 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
16558 (grub_mmap_get_upper): Moved from here ...
16559 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
16560 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16561 here ...
16562 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16563 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
16564 here ...
16565 * include/grub/mips/time.h (grub_get_rtc): ... here.
16566 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
16567 here ...
16568 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
16569 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
16570 here ...
16571 * include/grub/mips/time.h (grub_cpu_idle): ... here.
16572 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
16573 definition.
16574 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
16575 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
16576 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
16577 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
16578 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
16579 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
16580 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
16581 (GRUB_MACHINE_LINK_ADDR): Likewise.
16582 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
16583 to 6.
16584 * util/grub-install.in: Run dvhtool on ARC.
16585 * util/grub-mkimage.c (image_targets): Add mips-arc.
b6296b3f 16586 (generate_image): Handle ECOFF output for mips-arc.
400b9371 16587
c8ecc840
VS
165882011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16589
16590 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
16591 blocks.
16592
153a4b55
VS
165932011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16594
16595 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
16596 after enabling port.
16597
ff44d107
VS
165982011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16599
16600 Skip incorrect USB devices.
16601
16602 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
16603 configcnt == 0.
16604 * include/grub/usb.h (grub_usb_err_t): New enum value
16605 GRUB_USB_ERR_BADDEVICE.
16606
638dbe4f
VS
166072011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 Fuloong video init support.
16610
16611 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
16612 well.
16613 (grub_vga_read_arx): New function.
16614 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
16615 definition.
16616 (framebuffer): New members io, mmioptr and mmiobase.
16617 (read_sis_cmd): New function.
16618 (write_sis_cmd): Likewise.
16619 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
16620 rather than 640x400.
16621 * grub-core/video/sis315_init.c: New file.
16622
c3fc520c
VS
166232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16624
16625 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
16626 non-loongson.
16627 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
16628 to grub_dl_register_symbol.
16629
67b1e5c9
VS
166302011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16631
16632 Fix compilation errors.
16633
16634 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
16635 potentially unused.
16636 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
16637 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
16638 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
16639 to loongson machines.
16640
b756f75f
VS
166412011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16642
16643 Several FS mtime support.
16644
16645 * grub-core/fs/affs.c (grub_affs_time): New struct.
16646 (grub_affs_file): New field mtime.
16647 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
16648 type. Removed 'size'. New field 'di'. All users updated.
16649 (grub_affs_mount): Simplify checsum checking.
16650 (grub_affs_iterate_dir): New helper grub_affs_create_node.
16651 (grub_affs_dir): Handle mtime.
16652 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
16653 (grub_cpio_dir): Likewise.
16654 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
16655 (grub_hfs_filerec): New field mtime.
16656 (grub_hfs_dir): Handle mtime.
16657 (grub_hfs_mtime): New function.
16658 (grub_hfs_fs): Register grub_hfs_mtime.
16659 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
16660 (grub_iso9660_dir): New field mtime.
16661 (grub_fshelp_node): New field dirent.
16662 (iso9660_to_unixtime): New function.
16663 (iso9660_to_unixtime2): Likewise.
16664 (grub_iso9660_read_symlink): Use node->dirent.
16665 (grub_iso9660_iterate_dir): Likewise.
16666 (grub_iso9660_dir): Set mtime.
16667 (grub_iso9660_mtime): New function.
16668 (grub_iso9660_fs): Register grub_iso9660_mtime.
16669 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
16670 (grub_jfs_inode): New fields atime, ctime and mtime.
16671 (grub_jfs_dir): Set mtime.
16672 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
16673 * grub-core/fs/ntfs.c (list_file): Set mtime.
16674 (grub_ntfs_dir): Likewise.
16675 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
16676 (grub_reiserfs_iterate_dir): Set mtime.
16677 (grub_reiserfs_dir): Likewise.
16678 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
16679 (grub_fshelp_node): Likewise.
16680 (grub_sfs_iterate_dir): Set mtime.
16681 (grub_sfs_dir): Likewise.
16682 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
16683 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
16684 (grub_xfs_inode): New fields atime, mtime, ctime.
16685 (grub_xfs_dir): Set mtime.
16686 * include/grub/datetime.h (grub_datetime2unixtime): New function.
16687 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
16688 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
16689
16690 Support UDF symlinks.
16691
16692 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
16693 (grub_ufs_read_symlink): New function. All users updated.
16694
16695 Check amiga partmap checksum.
16696
16697 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
16698 (grub_amiga_partition): Likewise.
16699 (amiga_partition_map_checksum): New function.
16700 (amiga_partition_map_iterate): Check checksum.
16701
5470225d
VS
167022011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16703
16704 ROMFS support.
16705
16706 * Makefile.util.def (libgrubmods.a): Add romfs.
16707 * grub-core/Makefile.core.def (romfs): New module.
16708 * grub-core/fs/romfs.c: New file.
16709
d4680a35
VS
167102011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16711
16712 Squashfs v4 support.
16713
16714 * Makefile.util.def (libgrubmods.a): Add squash4.
16715 * grub-core/Makefile.core.def (squash4): New module.
16716 * grub-core/fs/squash4.c: New file.
16717 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
16718 disk_input_start, disk_input.
16719 (get_byte): Handle disk_input.
16720 (grub_zlib_disk_read): New function.
16721 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
16722
bcb18e74
FZ
167232011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
167242011-05-15 Feiran Zheng <famcool@gmail.com>
16725
16726 * Makefile.util.def (libgrubmods.a): Add minix3.
16727 * grub-core/Makefile.core.def (minix3): New module.
16728 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
16729 (GRUB_MINIX_BSIZE): Removed.
16730 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
16731 (grub_minix_ino_t): New type.
16732 (grub_minix_le_to_cpu_ino): New macro.
16733 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
16734 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
16735 (grub_minix_data): New field block_size.
16736 (grub_minix_read_file): Handle 64-bit correctly.
16737 * grub-core/fs/minix3.c: New file.
16738
32297d5f
TG
167392011-05-15 Tristan Gingold <gingold@free.fr>
167402011-05-15 Robert Millan <rmh.grub@aybabtu.com>
167412011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16742
16743 IA64 support.
16744
16745 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
16746 * configure.ac: Add ia64-efi target.
16747 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
16748 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
16749 * gentpl.py: Add ia64_efi platform.
16750 Rename x86_efi to efi and Add ia64-efi. All users updated.
16751 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
16752 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
16753 Remove kern/generic/rtc_get_time_ms.c on EFI.
16754 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
16755 kern/ia64/dl_helper.c on ia64-efi.
16756 Add kern/emu/cache.c on emu.
16757 (linux): Use on loader/ia64/efi/linux.c on ia64.
16758 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
16759 whether symbol is a function.
16760 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
16761 (grub_symbol): New field 'isfunc'.
16762 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
16763 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
16764 (grub_dl_load_segments): Place all sections into the same region.
16765 [__ia64__]: Create trampolines and got.
16766 [GRUB_MACHINE_EMU]: Call mprotect.
16767 (grub_dl_resolve_symbols): Resolve symbol type as well.
16768 [__ia64__]: Create function descriptors.
16769 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
16770 (grub_rtc_get_time_ms): ... this. Expressions simplified.
16771 (grub_get_rtc): New function.
16772 * grub-core/kern/emu/cache.c [__ia64__]: New file.
16773 * grub-core/kern/emu/cache.S: Renamed to ...
16774 * grub-core/kern/emu/cache_s.S: ... this.
16775 [__ia64__]: Add a nop.
16776 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
16777 [__ia64__]: New function.
16778 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
16779 * grub-core/kern/ia64/dl.c: New file.
16780 * grub-core/kern/ia64/dl_helper.c: Likewise.
16781 * grub-core/kern/ia64/efi/init.c: New file.
16782 * grub-core/kern/ia64/efi/startup.S: Likewise.
16783 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
16784 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
16785 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
16786 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
16787 * grub-core/loader/ia64/efi/linux.c: New file.
16788 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
16789 (GRUB_MOD_DEP): Likewise.
16790 (grub_dl) [__ia64__]: New fields got and tramp.
16791 (grub_dl): New field 'base'.
16792 (grub_dl_register_symbol): New argument isfunc. All users updated.
16793 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
16794 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
16795 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
16796 (grub_ia64_dl_get_tramp_got_size): New proto.
16797 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
16798 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
16799 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
16800 * include/grub/efi/api.h: Skip call wrappers on ia64.
16801 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
16802 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
16803 * include/grub/elf.h (ELF_ST_INFO): New definition.
16804 * include/grub/ia64/efi/kernel.h: New file.
16805 * include/grub/ia64/efi/memory.h: Likewise.
16806 * include/grub/ia64/efi/time.h: Likewise.
16807 * include/grub/ia64/kernel.h: Likewise.
16808 * include/grub/ia64/setjmp.h: Likewise (from glibc).
16809 * include/grub/ia64/time.h: New file.
16810 * include/grub/ia64/types.h: Likewise.
16811 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
16812 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
16813 New protos.
16814 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
16815 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
16816 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
16817 * util/grub-mkimage.c (image_target_desc): New field pe_target.
16818 All users updated.
16819 (EFI64_HEADER_SIZE): New definition. All users updated.
16820 (image_targets): Add ia64-efi.
16821 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
16822 jumpers_addr. All users updated.
16823 Create function descriptors.
16824 (count_funcs): New function.
16825 (unaligned_uint32): New struct.
16826 (MASK20): New definition.
16827 (MASK19): Likewise.
16828 (MASKF21): Likewise.
16829 (add_value_to_slot_20b): New function.
16830 (add_value_to_slot_21_real): Likewise.
16831 (add_value_to_slot_21): Likewise.
16832 (ia64_kernel_trampoline): New struct.
16833 (nopm): New variable.
16834 (jump): Likewise.
16835 (make_trampoline): New function.
16836 (relocate_addresses): Handle ia64.
16837 (make_reloc_section): Likewise.
16838 (load_image): Likewise.
16839
983b414d
VS
168402011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16841
16842 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
16843 warning. Move variables before code while on it.
16844
5d063cdc
VS
168452011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
16846
16847 Fuloong support.
16848
16849 * configure.ac: Rename yeeloong platform to loongson. All users updated.
16850 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
16851 * grub-core/boot/mips/loongson/fuloong.S: New file.
16852 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
16853 Explicitly init CS5536.
16854 [FULOONG]: Don't use serial until CS5536 is available.
16855 Set GPIO based on dumps.
16856 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
16857 [FULOONG]: Handle GPIO and memory controller differences.
16858 Parse machine type in $a2.
16859 * grub-core/boot/mips/startup_raw.S: Determine and save the
16860 architecture.
16861 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
16862 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
16863 init on architecture type.
16864 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
16865 SIS315E. Don't init at_keyboard on fuloong.
16866 (grub_halt): Support Fuloong.
16867 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
16868 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
16869 (loongson_machtypes): New array.
16870 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
16871 type.
16872 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
16873 config. All users updated. Handle CS5536 serial.
16874 * grub-core/term/serial.c (grub_serial_register): Conditionalise
16875 default port on machine type. Register serial as inactive.
16876 * grub-core/video/sis315pro.c: New file.
16877 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
16878 definition.
16879 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
16880 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
16881 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
16882 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
16883 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
16884 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
16885 to ...
16886 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
16887 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
16888 definition.
16889 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
16890 (grub_arch_machine): New extern var.
16891 * include/grub/mips/loongson/serial.h
16892 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
16893 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
16894 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
16895 (GRUB_MACHINE_SERIAL_PORT0): ... this.
16896 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
16897 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
16898 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
16899 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
16900 * include/grub/term.h (grub_term_register_input_inactive): New inline
16901 function.
16902 (grub_term_register_output_inactive): Likewise.
16903 * include/grub/video.h (grub_video_driver_id): New value
16904 GRUB_VIDEO_DRIVER_SIS315PRO.
16905 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
16906 New field "names". All users updated.
16907 New field value IMAGE_FULOONG_FLASH.
16908 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
16909
6ada82d1
JU
169102011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
16911
16912 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
16913 and add some clarification.
16914
90c571a4
VS
169152011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
16918 platforms if kernel is compressed.
16919
de04eecf
VS
169202011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16921
16922 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
16923 unused modules since currently referrence counter isn't reliable and
16924 there isn't much memory to recover there anyway.
16925
57688121
VS
169262011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16927
16928 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
16929 rather than resetting it to allow modules to reference themselves
16930 in init.
16931
3d2c7e35
VS
169322011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16933
16934 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
16935 counter on dependencies since grub_dl_unref already handles this.
16936
b25db218
VS
169372011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16938
16939 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
16940 on error if not already done.
16941
25a45338
VS
169422011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16943
16944 Fix few potential memory misusage.
16945
16946 * grub-core/font/font.c (load_font_index): Don't free char_index to
16947 avoid double free.
b25db218
VS
16948 (grub_font_load): Zero-fill font at alloc for safety.
16949 Close file on error.
16950 (free_font): Free bmp_idx.
25a45338 16951
0cac83df
VS
169522011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16953
16954 * docs/grub.texi (Installation): Fix several outdated claims.
16955
2217a143
VS
169562011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16957
16958 Handle module_license on windows.
16959
16960 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
16961 sections shifted.
16962 (insert_string): Make argument const char * instead of char *.
16963 (write_section_data): Handle long section names.
16964 Handle module_license.
16965
d4de6b01
VS
169662011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16967
16968 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
16969 handle class-free menuentries.
16970 (grub_normal_add_menu_entry): Add a check to be sure.
16971
4c2a3b43
VS
169722011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
16973
16974 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
16975 PgUp and PgDown.
16976
85c6210f
VS
169772011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16978
16979 * configure.ac: Bump version to 1.99.
16980
36084912
VS
169812011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16982
16983 Give ATA device a bit more time on first try in order to allow disks
16984 to spin up.
16985
16986 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
16987 if dev->present is 1. Reset dev->present on failure.
16988 (grub_ata_device_initialize): Set dev->present to 1.
16989 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
16990 (grub_ata_device): New member 'present'.
16991
bda0e219
VS
169922011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16993
16994 * util/grub-mkimage.c (generate_image): Update hash.
16995
19e1c41b
VS
169962011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
16997
16998 Flush caches on DMA memory.
16999
17000 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
17001 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
17002 (grub_dma_free): Likewise.
17003 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
17004
91bbcc0c
VS
170052011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17006
17007 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
17008 to avoid asm treating ld and sd as macros.
17009
60ddfad3
VS
170102011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17011
17012 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
17013 decompressor.
17014
a298aa04
VS
170152011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17016
17017 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
17018 grub_decompress_core since later would fail if grub_decompress_core
17019 is too far.
17020
9b44feca
VS
170212011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
17022
17023 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
17024 R_MIPS_JALR since it's used by newer compiler.
17025
56dbe7b4
VS
170262011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
17027
17028 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
17029
52856af2
VS
170302011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17031
17032 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
17033 file_path to 0 for surety.
17034 (grub_chainloader_boot): Set exit_data to NULL.
17035 Unset the loader once done.
17036 (grub_cmd_chainloader): Fix confusing error message if file is empty.
17037
9c9bfc6d
VS
170382011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17039
17040 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
17041 unknown key into a dprintf.
17042
dd94a3df
VS
170432011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17044
17045 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
17046 on first non-existant partition.
17047
fa68d99c
VS
170482011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17049
17050 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
17051 openning fails.
17052 Reported by: Mark Korenberg.
17053
157effb7
VS
170542011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17055
17056 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
17057 overflow.
17058
ea75312f
VS
170592011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17060
17061 * util/grub-mkimage.c (main): Explicitely flush and sync the output
17062 before closing to ensure that it will be readable by grub-setup.
17063
072b5d31
VS
170642011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17065
17066 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
17067 (devpath_1): Use MAKE_PIWG_PATH.
17068 (devpath_2): Likewise.
17069 (devpath_3): Likewise.
17070 (devpath_4): Likewise.
17071 (devpath_5): Likewise.
17072 (devpath_6): Likewise.
17073
17074 The appleldr.mod was checked that to be binary identical to previous
17075 version.
17076
7fae0051
Z
170772011-05-05 Zach <mikezackles>
17078
17079 Support 2010 Macbooks.
17080
17081 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
17082 (devs): Add devpath_6.
17083
7c515bee
VS
170842011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17085
17086 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
17087 /dev/random. /dev/urandom is good enough for our purposes (salting).
17088
ed660bd8
VS
170892011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17090
17091 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
17092
ee5614b7
VS
170932011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17094
17095 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
17096 hexadecimal.
17097
664889a6
VS
170982011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
17099
17100 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
17101 and not 0 on failure.
17102
bd405bbc
CW
171032011-05-03 Colin Watson <cjwatson@ubuntu.com>
17104
17105 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
17106 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
17107 disk; otherwise grub_fs_probe will not fall back to the next
17108 filesystem.
17109 (grub_pxefs_open): Likewise, for consistency.
17110 Reported and tested by: Ezekiel Grave.
17111
4ebff753
CW
171122011-05-03 Colin Watson <cjwatson@ubuntu.com>
17113
17114 * tests/partmap_test.in: Don't hardcode path to parted.
17115 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
17116
8f942553
CW
171172011-05-01 Colin Watson <cjwatson@ubuntu.com>
17118
17119 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
17120 of `ls' to find out which devices are available.
17121
3c62402d
VS
171222011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17123
17124 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
17125 than source address for efi mmap buffer.
17126
723f63f2
VS
171272011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17128
17129 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
17130 wrong action on non-detecting the magic.
17131
68797f92
VS
171322011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17133
17134 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
17135 already supplied by another part of the module (fixes compilation on
17136 FreeBSD).
17137
6be8715d
VS
171382011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17139
17140 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
17141 match the one used by mdadm.
17142
e91dba5b
CW
171432011-04-21 Colin Watson <cjwatson@ubuntu.com>
17144
17145 * po/README: Add instructions for creating po/LINGUAS.
17146
c85140b3
CW
171472011-04-21 Colin Watson <cjwatson@ubuntu.com>
17148
17149 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
17150 #551428.
17151
17152 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
17153 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
17154 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
17155 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
17156 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
17157 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
17158 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
17159 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
17160 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
17161 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
17162 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
17163 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
17164 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
17165 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
17166 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
17167 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
17168 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
17169 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
17170 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
17171 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
17172 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
17173 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
17174
92051871
CW
171752011-04-21 Colin Watson <cjwatson@ubuntu.com>
17176
17177 * grub-core/kern/emu/getroot.c
17178 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
17179 test that was incorrectly reintroduced in r3214.
17180 Reported by: Ian Dall. Fixes Savannah bug #33133.
17181
b13f79a4
CW
171822011-04-21 Colin Watson <cjwatson@ubuntu.com>
17183
17184 Fix stack pointer handling in 16-bit relocator.
17185
17186 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
17187 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
17188 Fixes Ubuntu bug #683904.
17189
9b710a88
VS
171902011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17191
17192 * configure.ac: Bump version to 1.99~rc2.
17193
d97e7b59
VS
171942011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17195
17196 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
17197 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
17198 * grub-core/lib/x86_64/setjmp.S: Likewise.
17199 * grub-core/lib/mips/setjmp.S: Likewise.
17200 * grub-core/lib/powerpc/setjmp.S: Likewise.
17201 * grub-core/lib/sparc64/setjmp.S: Likewise.
17202
0624551c
VS
172032011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
17204
17205 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
17206 * grub-core/lib/efi/datetime.c: Likewise.
17207
e8f28d4c
VS
172082011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17209
17210 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
17211 New function.
17212 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
17213 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
17214 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
17215
bba79a15
VS
172162011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17217
17218 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
17219 bitmap.
17220 (grub_gfxterm_term_init): Likewise.
17221
abc474ef
VS
172222011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
17223
17224 Take into account the decorations the computing menu entry width.
17225
17226 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
17227 (grub_gfxmenu_create_box): Register get_border_width.
17228 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
17229 if available.
17230 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
17231 get_border_width.
17232
e74b3947
EP
172332011-04-18 Endres Puschner <code@e7p.de>
17234
17235 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
17236 Don't skip first class.
17237
34faa595
VS
172382011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17239
17240 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
17241 chunks.
17242 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
17243
93a777e3
VS
172442011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17245
17246 Complete 64-bit division support.
17247
17248 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
17249 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
17250 * include/grub/misc.h (grub_divmod64): Rename to ...
17251 (grub_divmod64_full): ... this.
17252 (grub_divmod64): New inline function.
17253
a5102d94
VS
172542011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17255
17256 * util/grub-mkimage.c (generate_image): Add forgotten comma.
17257
f3fb7b36
VS
172582011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
17259
17260 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
17261 performing the necessary test.
17262
9ac718b0
VS
172632011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17264
17265 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
17266 (kfreebsd.elf): Likewise.
17267 (pc-chainloader.elf): Likewise.
17268 (ntldr.elf): Likewise.
17269
50d2cc5a
VS
172702011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
17271
17272 Identify RAID by its UUID rather than (guessed) name.
17273
17274 * grub-core/disk/raid.c (ascii2hex): New function.
17275 (grub_raid_open): Accept mduuid/%s specification.
17276 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
17277 (get_mdadm_uuid): ... this.
17278 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
17279
e03f7bea
VS
172802011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
17281
17282 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
17283 to negative size.
17284
e74c3112
CW
172852011-04-13 Colin Watson <cjwatson@ubuntu.com>
17286
17287 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
17288 btrfs subvolume.
17289 * util/grub.d/20_linux_xen.in: Likewise.
17290
78fa584f
CW
172912011-04-13 Colin Watson <cjwatson@ubuntu.com>
17292
17293 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
17294 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
17295
17296 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
17297 Build a list of relevant visible mounts using the mnt_id and
17298 parent_mnt_id fields, and then scan that list at the end.
17299
9d5f8162
CW
173002011-04-12 Colin Watson <cjwatson@ubuntu.com>
17301
17302 * docs/grub.texi (normal): New section.
17303 (normal_exit): New section.
17304 (Embedded configuration): Add reference to normal.
17305 (GRUB only offers a rescue shell): Likewise.
17306 * docs/grub-dev.texi (Error Handling): Fix typo.
17307
09a9d66f
CW
173082011-04-12 Colin Watson <cjwatson@ubuntu.com>
17309
17310 * NEWS: Drop obsolete entry about probe-only btrfs support.
17311
0c676933
CW
173122011-04-12 Colin Watson <cjwatson@ubuntu.com>
17313
17314 * util/import_gcry.py: Fix typo.
17315
ec9f5e0d
VS
173162011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17317
17318 * NEWS: Add btrfs support.
17319
fe6b2cba
VS
173202011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
173212011-04-11 Colin Watson <cjwatson@ubuntu.com>
17322
17323 BtrFS support. Written by me (Vladimir) with important bugfixes and
17324 even more important testing by Colin.
17325
17326 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
17327 * grub-core/Makefile.core.def (btrfs): Add crc.c.
17328 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
17329 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
17330 mem_input_off and mem_input. All users updated to accept in-RAM input.
17331 (gzio_seek): New function.
17332 (test_zlib_header): Likewise.
17333 (grub_gzio_read): Likewise.
17334 (grub_zlib_decompress): Likewise.
17335 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
17336 Accept partial and non-virtual mounts.
17337 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
17338 avoid receiving /dev/dm-X as device.
17339 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
17340 Handle bind and partial mounts.
17341 * grub-core/lib/crc.c: New file.
17342 * include/grub/deflate.h: Likewise.
17343 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
17344 proto.
17345 * include/grub/lib/crc.h: New file.
17346
e745cf0c
VS
173472011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17348
17349 Implement automatic module license checking according to new GNU
17350 guidelines.
17351
17352 * grub-core/kern/dl.c (grub_dl_check_license): New function.
17353 (grub_dl_load_core): Use grub_dl_check_license.
17354 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
17355 (GRUB_MOD_LICENSE): Likewise.
17356 (GRUB_MOD_DUAL_LICENSE): Likewise.
17357 All modules updated.
17358
2a9bc016
CW
173592011-04-11 Colin Watson <cjwatson@ubuntu.com>
17360
17361 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
17362 reserved_first_sector to 1. btrfs reserves plenty of space for boot
17363 loaders.
17364 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
17365
8a3bc88e
VS
173662011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17367
17368 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
17369
af869a4a
VS
173702011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17371
17372 * util/grub-fstest.c (read_file): Report GRUB error if file opening
17373 failed.
17374
9ee8d94f
VS
173752011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
17376
17377 * grub-core/kern/file.c (grub_file_open): Don't take into account the
17378 parenthesis in the middle of the filename.
17379
b01abe3e
VS
173802011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17381
17382 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
17383 rather than trying to put initrd way too high.
17384 Reported by: Ryan Lortie <desrt@desrt.ca>
17385
335bda1e
VS
173862011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17387
17388 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
17389 improperly removed string.
17390
5ca1a64d
VS
173912011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17392
17393 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
17394 is_disk.
17395 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
17396 (open_device) Likewise.
17397 (grub_util_biosdisk_close): Likewise.
d8ce9995 17398 Reported by: Mark Korenberg.
5ca1a64d 17399
cbac5b1e
AK
174002011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
17401
17402 * util/grub-mkconfig_lib.in: Add missing quotes.
17403
088cdb65
CW
174042011-04-10 Colin Watson <cjwatson@ubuntu.com>
17405
17406 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
17407 is NULL.
17408
8b8a81fa
VS
174092011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17410
17411 Dynamically count the number of lines for the lower banner.
17412
17413 * grub-core/normal/menu_entry.c (per_term_screen): New member
17414 num_entries.
17415 (print_down): Use num_entries.
17416 (update_screen): Likewise.
17417 (grub_menu_entry_run): Set num_entries.
17418 * grub-core/normal/menu_text.c (menu_viewer_data): New member
17419 num_entries.
17420 (grub_print_message_indented): Move real part to ...
17421 (grub_print_message_indented_real): ... here. Additional argument
17422 dry_run.
17423 (draw_border): Additional argument num_entries.
17424 (print_message): Additional argument dry_run.
17425 (print_entries): Receive menu viewer data.
17426 (grub_menu_init_page): New argment num_entries.
17427 (menu_text_set_chosen_entry): Use num_entries.
17428 (grub_menu_try_text): Likewise.
17429 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
17430 All users updated.
17431 (grub_ucs4_count_lines): New function.
17432 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
17433 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
17434 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
17435 (grub_term_border_height): Likewise.
17436 (grub_term_num_entries): Likewise.
17437
277f955b
VS
174382011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
17439
17440 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
17441 Remove now unused string.
17442
536ce85a
CW
174432011-04-09 Colin Watson <cjwatson@ubuntu.com>
17444
17445 * docs/grub-dev.texi (Finding your way around): Update for 1.99
17446 build system.
17447 (Getting started): GRUB is developed in Bazaar now, not Subversion.
17448
17449 (Comment): Fix typo.
17450 (Getting started): General copy-editing.
17451 (Typical Development Experience): Likewise.
17452 (Error Handling): Likewise.
17453 (Video API): Likewise.
17454
2cf09e32
CW
174552011-04-09 Colin Watson <cjwatson@ubuntu.com>
17456
17457 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
17458 throughout.
17459
1ec652f4
VS
174602011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17461
17462 * util/grub-mkimage.c (main): Handle special naming of yeeloong
17463 directory.
17464
2c583728
CW
174652011-04-08 Colin Watson <cjwatson@ubuntu.com>
17466
17467 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
17468 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
17469 "development".
17470
d7a565e9
VS
174712011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17472
17473 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
17474 grub_strcpy since the lines aren't necessarily 0-terminated.
17475
7c2e4909
VS
174762011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17477
17478 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
17479 root on legacy.
17480
34c09785
VS
174812011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17482
17483 * grub-core/commands/probe.c (options): Argument to set isn't optional.
17484 (GRUB_MOD_INIT): DEVICE isn't optional.
17485
6a6f8058
VS
174862011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17487
17488 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
17489 word on new line if it's too long anyway. Fixes a hang.
17490
2e335e90
VS
174912011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17492
17493 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
17494 const.
17495 * util/grub-setup.c (main): Reuse md device name if available.
17496 * util/raid.c (grub_util_raid_getmembers): Receive device name and
17497 not GRUB name as argument.
17498 Based on patch by: Florian Wagner <fwagner>.
17499
10a7a867
VS
175002011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17501
17502 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
17503 Place mbi on low memory for better compatibility.
17504
7a3d6cd9
VS
175052011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17506
17507 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
17508
18dd6b47
VS
175092011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
175102011-04-08 Colin Watson <cjwatson@ubuntu.com>
17511
17512 * autogen.sh: Ensure that collate and ctype locale is C.
4ed4ce58 17513 * conf/Makefile.common: Likewise.
18dd6b47 17514
3c0e3f14
VS
175152011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17516
f7148863
VS
17517 * grub-core/normal/menu.c: Add missing include.
17518
175192011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17520
17521 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
3c0e3f14 17522
6d1fa41f
MZ
175232011-04-08 Martin Zuther <mzuther@mzuther.de>
17524
17525 * util/grub-mkconfig.in: Ignore emacsen backup.
17526
478182a8
VS
175272011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17528
17529 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
17530 on open.
17531 (grub_util_biosdisk_close): Likewise.
17532
72a89a54
VS
175332011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
17534
17535 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
17536 const attribute and use grub_isdigit.
17537
b5ebecfa
A
175382011-04-06 Andrey <dev_null@ukr.net>
17539
17540 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
17541 gcc warning.
17542
7755f66e
VS
175432011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17544
17545 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
17546 useful grub_dprintf's.
17547
461121ff
VS
175482011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17549
17550 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
17551
2a961775
VS
175522011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17553
17554 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
17555
adf594cc
VS
175562011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17557
17558 Output errors if theme loading failed.
17559
17560 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
17561 grub_gfxterm_fullscreen on error paths to ...
17562 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
17563 theme loading error.
17564
665900a3
VS
175652011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17566
17567 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
17568 space for older compilers.
17569 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
17570
a562b479
VS
175712011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
17572
17573 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
17574 and report them as not RAID members since they are useless for GRUB.
17575 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
17576
850e9373
VS
175772011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17578
17579 Increase LVM implementation robustness in order not to crash on
17580 configurations like pvmove. Previously code assumed that in some places
17581 only lvs or only pvs are used whereas it seems that they are used
17582 interchangeably.
17583
17584 * grub-core/disk/lvm.c (read_node): New function.
17585 (read_lv): Use read_node.
17586 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
17587 Match volumes only at the end when all lvs are found. Take both
17588 pvs (first) and lvs (second) into account.
17589 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
17590 mirror_* into node_*. All users updated.
17591 (grub_lvm_stripe): Merge this ...
17592 (grub_lvm_mirror): ... and this ...
17593 (grub_lvm_node): ... into this. All users updated.
17594
6f332153
VS
175952011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17596
17597 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
17598 of function to allow further scanning for LVMs.
17599
829ea451
VS
176002011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17601
17602 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
17603 on failed seek as it breaks open fd reusage.
17604
09ceb9a5
VS
176052011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17606
17607 * util/grub-install.in: Add a recommendation to use --recheck before
17608 reporting bugs.
17609
67e11623
VS
176102011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17611
17612 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
17613 are obtained.
17614
caee5efd
VS
176152011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
17616
17617 GRUB developper manual based on existing Internals section and
17618 contributions by the various authors with active copyright assignment.
17619
17620 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
17621 * docs/font_char_metrics.png: New file.
17622 * docs/font_char_metrics.txt: Likewise.
17623 * docs/grub-dev.texi: Likewise.
17624 * docs/grub.texi (Internals): Move from here ...
17625 * docs/grub-dev.texi: ... here.
17626
2cccc747
CW
176272011-04-01 Colin Watson <cjwatson@ubuntu.com>
17628
17629 Store the loopback device as data on loopback grub_disk structures,
17630 rather than the file it points to. This fixes use of freed memory
17631 if an existing loopback device is replaced.
17632
17633 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
17634 disk->data, not dev->file.
17635 (grub_loopback_read): Adjust file assignment to match.
17636 Fixes Ubuntu bug #742967.
17637
186ae367
CW
176382011-04-01 Colin Watson <cjwatson@ubuntu.com>
17639
17640 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
17641 when replacing an existing device.
17642
cfed2ad0
VS
176432011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
17644
17645 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
17646 memory corruptions.
17647
17648 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
17649 unsigned.
17650 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
17651 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
17652 (grub_jfs_read_inode): Likewise.
17653 (grub_jfs_opendir): Likewise. Remove now useless casts.
17654 (grub_jfs_getent): Likewise.
17655 Make ino a grub_uint32_t rather than int.
17656 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
17657 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
17658 division and module with bit operations.
17659 (grub_jfs_find_file): Make ino a grub_uint32_t.
17660 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
17661
05d2ed32
CW
176622011-04-01 Colin Watson <cjwatson@ubuntu.com>
17663
17664 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
17665 warning. (This was in fact always initialised before use, but GCC
17666 wasn't smart enough to prove that.)
17667 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
17668
91dc6073
VS
176692011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
17670
17671 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
17672 stack alignment.
17673 (efi_wrap_1): Likewise.
17674 (efi_wrap_2): Likewise.
17675 (efi_wrap_3): Likewise.
17676 (efi_wrap_4): Likewise.
17677 (efi_wrap_5): Likewise.
17678 (efi_wrap_6): Likewise.
17679 (efi_wrap_10): Likewise.
17680 Based on information by: Red Hat/Peter Jones.
17681
a8afc1d1
CW
176822011-03-31 Colin Watson <cjwatson@ubuntu.com>
17683
17684 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
17685 set-but-not-used variable.
17686
a826cc7d
CW
176872011-03-31 Colin Watson <cjwatson@ubuntu.com>
17688
17689 * docs/grub.texi (Simple configuration): Be more explicit about
17690 GRUB_DEFAULT, and add an example.
17691 Reported by: Leslie Rhorer.
17692
875b67ba
CW
176932011-03-30 Colin Watson <cjwatson@ubuntu.com>
17694
17695 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
17696 shell".
17697
fd7cd914
AS
176982011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17699
17700 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
17701 * util/grub.d/20_linux_xen.in: Likewise.
17702
090b1b6a
VS
177032011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17704
17705 * util/grub.d/10_linux.in: Try alternative config filenames where
17706 we parse config file.
17707 * util/grub.d/20_linux_xen.in: Likewise.
17708
baad885c
AS
177092011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
17710
17711 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
17712 * util/grub.d/20_linux_xen.in: Likewise.
17713
241e41f5
VS
177142011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17715
17716 * grub-core/disk/raid.c (insert_array): Add few potentially
17717 useful grub_util_info.
17718 (grub_raid_register): Likewise.
17719
56445fb2
VS
177202011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17721
17722 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
17723 Preserve partition number in mdadm code path.
17724
c871b1c6
VS
177252011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17726
17727 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
17728 few potentially useful grub_util_info.
17729
5e631b4f
CW
177302011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17731
17732 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
17733
2d5d0333
CW
177342011-03-30 Colin Watson <cjwatson@ubuntu.com>
17735
17736 * docs/grub.texi (default): Use @example rather than nested
17737 itemized lists to avoid breaking gendocs.
17738
3d7ed04e
CW
177392011-03-30 Colin Watson <cjwatson@ubuntu.com>
17740
17741 * docs/grub.texi (Future): Update.
17742
abf04200 177432011-03-30 Colin Watson <cjwatson@ubuntu.com>
17744
17745 * docs/grub.texi (Environment): New chapter.
17746 (Changes from GRUB Legacy): Link to "Environment block" section for
17747 details of limitations.
17748 (Simple configuration): Likewise. Link to documentation of gfxmode
17749 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
17750 respectively.
17751 (Shell-like scripting): Note that normal variables are stored in the
17752 environment.
17753 (gettext): Link to documentation of lang and locale_dir.
17754 (list_env): New section.
17755 (load_env): New section.
17756 (save_env): New section.
17757
17758 (Reporting bugs): Fix typo.
17759
e1ad0edd
VS
177602011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17761
17762 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
17763 the example.
17764
5d803174
VS
177652011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
17766
17767 * grub-core/term/at_keyboard.c (set_scancodes)
17768 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
17769
2a2da1d0
CW
177702011-03-30 Colin Watson <cjwatson@ubuntu.com>
17771
17772 * docs/grub.texi (Menu-specific commands): Remove some semantics
17773 that were true in GRUB Legacy but not in GRUB 2.
17774 (submenu): New section.
17775 (false): New section.
17776 (read): New section.
17777 (true): New section.
17778
a7527639
CW
177792011-03-30 Colin Watson <cjwatson@ubuntu.com>
17780
17781 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
17782
177832011-03-30 Colin Watson <cjwatson@ubuntu.com>
e30af029
CW
17784
17785 * docs/grub.texi (Simple configuration): Explain some of the
17786 current limitations of grub-mkconfig.
8a748df2 17787 Reported by: Leslie Rhorer.
e30af029 17788
fc858482
VS
177892011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17790
17791 Old macs search for boot.efi rather than for bootia32.efi.
17792
17793 * util/grub-install.in: Copy bootia32.efi to boot.efi.
17794 * util/grub-mkrescue.in: Likewise.
17795 Suggested by: Peter Jones.
17796
e1eb511d
VS
177972011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17798
17799 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
17800
70e75364
VS
178012011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17802
17803 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
17804 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
17805 (grub_lvm_mirror): New struct.
17806 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
17807 (grub_lvm_iterate): Iterate only visible volumes.
17808 (grub_lvm_read): Factor out to ..
17809 (read_lv): ... this. Support mirrors.
17810 (grub_lvm_read): New wrapper function.
17811 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
17812 stripped or mirrored.
17813
fc18f6a3
VS
178142011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17815
17816 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
17817
5c650f4c
CW
178182011-03-29 Colin Watson <cjwatson@ubuntu.com>
17819
17820 * docs/grub.texi (loopback): New section.
17821
61d7156b
CW
178222011-03-29 Colin Watson <cjwatson@ubuntu.com>
17823
17824 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
17825 removed -p option.
17826
994b8264
CW
178272011-03-29 Colin Watson <cjwatson@ubuntu.com>
17828
17829 * docs/grub.texi (BIOS installation): New section, partly based on
17830 previous text in other sections.
17831 (Installing GRUB using grub-install): Replace BIOS discussion with a
17832 cross-reference.
17833 (Images): Likewise.
17834
9e4d19e0
VS
178352011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17836
17837 * grub-core/kern/emu/hostdisk.c (find_partition_start)
17838 [HAVE_DIOCGDINFO]: Add safety checks.
17839
a307c0b2
VS
178402011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17841
17842 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
17843 per default compiled in kernel and prior to 8.0 isn't shipped at all.
17844
b4db4f39
CW
178452011-03-29 Colin Watson <cjwatson@ubuntu.com>
17846
17847 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
17848 real_sb->size is zero (e.g. RAID-0), get the disk size from
17849 real_sb->data_size instead.
17850 Fixes Ubuntu bug #743136.
17851
35e5f84c
VS
178522011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17853
17854 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
17855 printf clauses for printing size and start.
17856
d2e29d81
VS
178572011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17858
17859 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
17860 Reported and tested by: Timothy Nikkel.
17861
ed5587af
VS
178622011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17863
17864 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
17865 (dirty_region_add_real): ... this.
17866 (dirty_region_add): Don't discard margin refresh when performing
17867 scheduled repaint.
17868
a1dc717c
VS
178692011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
17870
17871 * grub-core/lib/relocator.c (allocate_regstart)
17872 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
17873 terminals are capabple of malloc-free operation.
17874 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17875 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
17876
9f3677d3
VS
178772011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
17878
17879 * util/grub-setup.c: Copy the partition table zone if floppy support
17880 is disabled, even if no partition table is found.
17881
17882 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
17883 during POST if an invalid partition table is contained in the PBR
17884 of the active partition when GRUB is installed to a partition.
17885
24148725
CW
178862011-03-28 Colin Watson <cjwatson@debian.org>
17887
17888 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
17889 comment.
17890
f329eda7
CW
178912011-03-28 Colin Watson <cjwatson@debian.org>
17892
17893 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
17894 to be specific about what kind of RAID device we're scanning for.
17895
c482ad98
SG
178962011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
17897
17898 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
17899 return freed string.
17900
5ee04984
VS
179012011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17902
17903 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
17904
f4727da9
VS
179052011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17906
17907 Use libgeom on FreeBSD to detect partitions.
17908
17909 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
17910 (grub-mkrelpath): Likewise.
17911 (grub-script-check): Likewise.
17912 (grub-editenv): Likewise.
17913 (grub-mkpasswd-pbkdf2): Likewise.
17914 (grub-fstest): Likewise.
17915 (grub-mkfont): Likewise.
17916 (grub-mkdevicemap): Likewise.
17917 (grub-probe): Likewise.
17918 (grub-setup): Likewise.
17919 (grub-ofpathname): Likewise.
17920 (grub-mklayout): Likewise.
17921 (example_unit_test): Likewise.
17922 (grub-menulst2cfg): Likewise.
17923 * grub-core/Makefile.core.def (grub-emu): Likewise.
17924 (grub-emu-lite): Likewise.
17925 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
17926 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
17927 define HAVE_DIOCGDINFO.
17928 (follow_geom_up) [FreeBSD]: New function.
17929 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
17930 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
17931 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
17932 unconditionally of HAVE_DIOCGDINFO.
17933
82fe6c75
VS
179342011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
17935
17936 Fix FreeBSD compilation problem.
17937
17938 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
17939 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
17940
4c6c9431
CW
179412011-03-24 Colin Watson <cjwatson@ubuntu.com>
17942
17943 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
17944 Switch back to page zero before loading a kernel, since some kernel
17945 drivers expect that.
17946 Thanks to: Felix Kuehling.
17947
c7064d94
VS
179482011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17949
17950 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
17951 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
17952 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
17953
3f71cded
VS
179542011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17955
17956 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
17957 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
17958
ef6de21a
VS
179592011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17960
17961 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
17962 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
17963 malloc is disabled.
17964
8bc66a2c
VS
179652011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
17966
17967 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
17968 for modules headers when counting the needed allocation size.
17969
5657722c
VS
179702011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17971
17972 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
17973 if no ASCII character is found to prevent crash.
17974
41a85f55
AK
179752011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
17976
17977 * grub-core/video/bitmap.c (match_extension): Ignore case.
17978
59e1e5f1
VS
179792011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17980
17981 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
17982
bd4d051a
VS
179832011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
17984
17985 * grub-core/script/parser.y: Declare "time" as valid argument.
17986
bae7fcc1
PJ
179872011-03-23 Peter Jones <pjones@redhat.com>
17988
17989 Fix incorrect assert failure reporting.
17990
17991 * grub-core/tests/example_functional_test.c (example_test): Add
17992 a failure comment.
17993 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
17994 (failure_start): ...this. Check that malloc succeeded.
17995 Don't call xvasprintf. Return failure struct.
17996 (failure_append_vtext): New function.
17997 (failure_append_text): Likewise.
17998 (add_failure): Likewise.
17999 (grub_test_assert_helper): Likewise.
18000 * include/grub/test.h (grub_test_assert_helper): New declaration.
18001 (grub_test_assert): Macro rewritten.
18002
537dc9be
VS
180032011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18004
18005 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
18006
fa3e01bf
VS
180072011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18008
18009 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
18010
b1d28404
VS
180112011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18012
18013 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
18014 into GRUB-style one.
18015
2e3e2e09
VS
180162011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18017
18018 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
18019 error and not grub_errno.
18020 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
18021
ed57e557
VS
180222011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18023
18024 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
18025 GRUB_USB_SPEED_NONE in case of failure and not the error code.
18026
d1611f01
VS
180272011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18028
18029 * grub-core/efiemu/i386/pc/cfgtables.c
18030 (grub_machine_efiemu_init_tables): Make declaration a prototype.
18031 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
18032 (grub_xnu_unlock): Likewise.
18033 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
18034
7d4e39d6
VS
180352011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18036
18037 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
18038 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
18039 * grub-core/commands/hashsum.c (aliases): Likewise.
18040 * grub-core/commands/setpci.c (pci_registers): Likewise.
18041 * grub-core/disk/usbms.c (attach_hook): Likewise.
18042 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
18043 (zio_checksum_table): Likewise.
18044 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
18045 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
18046 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
18047 * grub-core/lib/relocator.c (leftovers): Likewise.
18048 (extra_blocks): Likewise.
18049 * grub-core/loader/i386/bsd.c (relocator): Likewise.
18050 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
18051 (modules_last): Likewise.
18052 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
18053 (devices): Likewise.
18054 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
18055 (modules_last): Likewise.
18056 * grub-core/normal/auth.c (users): Likewise.
18057 * grub-core/normal/context.c (initial_menu): Likewise.
18058 (current_menu): Likewise.
18059 * grub-core/normal/crypto.c (crypto_specs): Likewise.
18060 * grub-core/term/serial.c (grub_serial_ports): Likewise.
18061 (grub_serial_terminfo_input_template): Likewise.
18062 (grub_serial_terminfo_output_template): Likewise.
18063 (grub_serial_terminfo_input): Likewise.
18064 (grub_serial_terminfo_output): Likewise.
18065 (registered): Likewise.
18066 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
18067
40fc4659
VS
180682011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18069
18070 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
18071 grub_video_mode_type_t.
18072 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
18073 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
18074 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
18075
2da48d28
VS
180762011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
18077
18078 * util/grub-install.in: Correct the x86-64 name as x86_64.
18079
9b43bf39
CW
180802011-03-11 Colin Watson <cjwatson@ubuntu.com>
18081
18082 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
18083 initial chunk read from the kernel always includes GRUB's multiboot
18084 header, which is now outside the first sector.
18085
be1a7ce0
CW
180862011-03-09 Colin Watson <cjwatson@ubuntu.com>
18087
18088 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
18089 cached mmap_size, so that this works correctly when called multiple
18090 times.
18091 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
18092
83a3c48d
CW
180932011-03-09 Colin Watson <cjwatson@ubuntu.com>
18094
18095 * docs/grub.texi (Simple configuration): Tidy up formatting.
18096
57d75699
SJ
180972011-03-07 Szymon Janc <szymon@janc.net.pl>
18098
18099 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
18100 Set-but-not-used variable removed.
18101
028501a0
VS
181022011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18103
18104 Workaround yet another IEEE1275 bug.
18105
18106 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
18107 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
18108 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
18109 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
18110 is set.
18111 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
18112 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
18113
d998657d
VS
181142011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
18115
18116 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
18117 error.
18118
fee7cdd4
CW
181192011-02-11 Colin Watson <cjwatson@ubuntu.com>
18120
18121 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
18122 empty, since in that case we can only generate either nothing or a
18123 syntactically invalid configuration file.
18124 Reported by: Michal Suchanek. Fixes Debian bug #612898.
18125
97286eb5
CW
181262011-02-09 Colin Watson <cjwatson@ubuntu.com>
18127
18128 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
18129 (Making a GRUB bootable CD-ROM): Likewise.
18130 (Invoking grub-mkrescue): New section.
18131 Reported by: Yann Dirson. Fixes Debian bug #612585.
18132
22b28eb3
CW
181332011-02-09 Colin Watson <cjwatson@ubuntu.com>
18134
18135 * util/grub-install.in: Remove unnecessary brackets from tr
18136 arguments.
18137 * util/grub.d/10_hurd.in: Likewise.
18138 * util/grub.d/10_kfreebsd.in: Likewise.
18139 * util/grub.d/10_linux.in: Likewise.
18140 * util/grub.d/20_linux_xen.in: Likewise.
18141 Reported by: Jamie Heilman. Fixes Debian bug #612564.
18142
7e735e43
CW
181432011-02-08 Colin Watson <cjwatson@ubuntu.com>
18144
18145 * include/grub/file.h (not_easly_seekable): Rename to ...
18146 (not_easily_seekable): ... this. Update all users.
18147
800f1881
CW
181482011-01-28 Colin Watson <cjwatson@ubuntu.com>
18149
18150 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
18151 grub-mkrescue.
18152
3281d3d6
VS
181532011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
18154
18155 * util/grub-mkimage.c (generate_image): Refuse to create the images
18156 bigger than the actual flash (512K) in Loongson machines. 512K is also
18157 the biggest chip supported by them.
18158
3533413c
VS
181592011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18160
18161 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
18162
73ae4f4f
VS
181632011-01-22 Anthony DeRobertis <anthony@derobert.net>
18164
18165 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
18166 super_offset field.
18167
37f4f608
VS
181682011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18169
18170 * util/grub-install.in: Ignore install device on platforms
18171 where it doesn't make sense. Always use UUIDs except on pc, efi and
18172 sparc64.
18173 Reported by: Daniel Kahn Gillmor.
18174
03a4ccb5
VS
181752011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18176
18177 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
18178
ffc8f4d8
VS
181792011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18180
18181 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
18182 (iterate_real): Don't rely on partition being non-NULL.
18183
80f23be7
VS
181842011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18185
18186 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
18187 supported platforms. Put a compile time assert for this rather than
18188 generate a warning with 32-bit shift.
18189
5d4f4dd5
VS
181902011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18191
18192 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
18193 logical expression more readable.
18194
e489601a
VS
181952011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
18196
18197 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
18198 even if some elements have a name.
18199 Reported by: Alexander GQ Gerasiov.
18200
96e0a6ea
CW
182012011-01-22 Colin Watson <cjwatson@ubuntu.com>
18202
18203 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
18204 path unreadable if `grub-probe -t abstraction' fails, for example if
18205 memberlist fails on an LVM volume group.
18206 Reported by: Darius Jahandarie.
18207
81431e2b
CW
182082011-01-22 Colin Watson <cjwatson@ubuntu.com>
18209
18210 * docs/grub.texi (Simple configuration): Document
18211 GRUB_PRELOAD_MODULES.
18212
5e79d66a
CW
182132011-01-17 Colin Watson <cjwatson@ubuntu.com>
18214
18215 * .bzrignore: Remove nonexistent grub-pbkdf2.
18216
646ada34
VS
182172011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
18218
18219 * configure.ac: Bump version to 1.99~rc1.
18220
04360337
VS
182212011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
18222
18223 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
18224 for safety.
18225
46c9db88
VS
182262011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
18227
18228 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
18229 module.
18230
182312011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
1d955d00
VS
18232
18233 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
18234
4fbf1852
VS
182352011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18236
18237 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
18238 diskdevid.
18239
f1632d4d
VS
182402011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
18241
18242 Fix compilation on cygwin.
18243
18244 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
18245 -R .drectve on cygwin.
18246 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
18247 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
18248 (COND_CYGWIN): New condition.
18249 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
18250 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
18251 not @TARGET_OBJ2ELF@.
18252 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
18253 type to determine whether aux is to be used.
18254
0b5e127b
VS
182552011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18256
18257 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
18258 realpath'ed device string.
18259 Handle floppy (somewhat).
18260 Issue error in unknown case rather than garbage.
18261 Reported by: Axel Beckert.
18262
173b71e9
VS
182632011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18264
18265 * util/grub.d/00_header.in (load_video): Handle the case when no video
18266 drivers available.
18267 Thanks to: Axel Beckert.
18268
f8f479db
VS
182692011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18270
18271 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
18272 variable. Fixes problem on big endian platforms.
18273
8fc0a245
VS
182742011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18275
18276 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
18277 It doesn't work well there.
18278
b8494fbe
VS
182792011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18280
18281 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
18282 warning.
18283 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
18284 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
18285 counter.
18286
b44a558c
VS
182872011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
18288
18289 Use alias->path rather than buggy "canon".
18290
18291 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
18292 (ofdisk_hash_add): New argument curcan. All users updated.
18293
51fa856c
CW
182942011-01-11 Colin Watson <cjwatson@ubuntu.com>
18295
18296 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
18297
9da068a5
VS
182982011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18299
18300 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
18301 loadmask before doing any calculations. Use correct type for offset.
18302 (grub_linux_load64): Likewise.
18303
86205c94
CW
183042011-01-11 Colin Watson <cjwatson@ubuntu.com>
18305
18306 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
18307 with NULL.
18308 (console_grub_equivalences_unshift): Likewise.
18309 Reported by: Daniel Dehennin.
18310
4531a206
VS
183112011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18312
18313 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
18314 (set_env_limn_ro): Likewise.
18315 (GRUB_MOD_INIT): Likewise.
18316 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
18317 ARRAY_SIZE while on it.
18318 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
18319 * grub-core/normal/context.c (grub_env_export): Move from here ...
18320 * grub-core/kern/env.c (grub_env_export): ... here.
18321 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
18322 prefix.
18323 * grub-core/kern/main.c (grub_main): Export root and prefix.
18324 * include/grub/env.h (grub_env_export): Export.
18325 Reported by: Seth Goldberg.
18326
45146057
VS
183272011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18328
18329 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18330 Take into account space used by ELF sections and multiboot palette.
18331 Reported by: Grégoire Sutre.
18332
f093110b
VS
183332011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
18334
18335 * BUGS: New file.
18336
3395fe52
VS
183372011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18338
18339 Pass more appropriate video id to Linux.
18340
18341 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
18342 grub_video_get_driver_id and variable gfxpayloadforcelfb to
18343 fill have_vga.
18344 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
18345 shift params->lfb_size.
18346 * include/grub/i386/linux.h: Make an enume out of have_vga values.
18347
c2fa6cbb
VS
183482011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18349
18350 * util/grub-menulst2cfg.c: Add missing include of misc.h.
18351
b3ff6ff0
VS
183522011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18353
18354 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
18355 separator and pass bootpath/devid even if only one of them is available.
18356 Reported by: Seth Goldberg.
18357
ae67942e
VS
183582011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18359
18360 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
18361 implementations bug on them.
18362
18363 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
18364 memory.
18365 (filter_memory_map): Likewise.
18366
d570097a
VS
183672011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18368
18369 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
18370 Reported by: nebuchadnezzar.
18371
a508e776
VS
183722011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18373
18374 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
18375 Reported by: nebuchadnezzar.
18376
dcb883b1
VS
183772011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18378
18379 Submenu default support.
18380
18381 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
18382 auto_boot. All users updated.
18383 Declared static.
18384 Handle chosen and default with submenus.
18385 (grub_menu_execute_with_fallback): Declared static.
18386 Don't notify failure if autobooted. Upper level does it.
18387 (menuentry_eq): New function.
18388 (get_entry_number): Use menuentry_eq.
18389 (show_menu): New parameter "autobooted". All users updated.
18390 (grub_show_menu): Likewise.
18391 * include/grub/normal.h (grub_show_menu): Likewise.
18392 * include/grub/menu.h (grub_menu_execute_entry): Removed.
18393 (grub_menu_execute_with_fallback): Likewise.
18394
6fef99b4
VS
183952011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18396
18397 * util/grub-mklayout.c (usage): Update help text.
18398
47a77af5
VS
183992011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18400
18401 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
18402
ce6bb3ee
VS
184032011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18404
18405 * util/grub-menulst2cfg.c (main): Trim the line.
18406
db87be2a
VS
184072011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18408
18409 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
18410 (grub_machine_init): Don't check amount of low memory as reportedly
18411 INT 12h can be broken and if low memory is too low we wouldn't have
18412 gotten into grub_machine_init anyway.
18413
c49849cc
VS
184142011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18415
18416 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
18417 (grub_machine_mmap_iterate): Take low memory into account
18418
b1969b30
VS
184192011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18420
18421 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
18422 badfs.
18423 Reported by: TiCPU.
18424
cf0eaf13
VS
184252011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
18426
18427 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
18428 members errors.
18429
1f060f39
GS
184302011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18431
18432 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
18433 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
18434
a21e5672
GS
184352011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
18436
18437 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
18438 openbsd and netbsd types being in part_bsd module.
18439
c88172fa
VS
184402011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18441
18442 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
18443 (_FILE_OFFSET_BITS): Likewise.
18444 Reported by: Seth Goldberg.
18445
53798c4b
GS
184462011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
18447
18448 * configure.ac: Check for libdevmapper header.
18449
e7121b69
VS
184502011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18451
18452 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
18453 avoid aliasing.
18454 (fzap_lookup): Likewise.
18455 (dnode_get): Likewise.
18456 (make_mdn): Likewise.
18457 (zfs_mount): Likewise.
18458 (fzap_iterate): Use temporary pointer to avoid aliasing.
18459 (grub_zfs_read): Likewise.
18460 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
18461 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
18462 pointers to avoid aliasing.
18463 (grub_cmd_xnu_kernel64): Likewise.
18464 (grub_xnu_load_driver): Likewise.
18465
fc836af9
VS
184662011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18467
18468 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
18469 aliasing warning.
18470 (grub_cmd_terminal_output): Likewise.
18471 Reported and tested by: Grégoire Sutre.
18472
f9f37648
VS
184732011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18474
18475 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
18476 warning.
18477 Reported and tested by: Grégoire Sutre.
18478
ec1dfd63
VS
184792011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18480
18481 * configure.ac: Do CPU substitution even if it's specified explicitly.
18482 Reported and tested by: Alain Greppin.
18483
9462775a
VS
184842011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18485
18486 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
18487 Reported and tested by: Alain Greppin.
18488
0fd48e35
VS
184892011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18490
18491 Satisfy some bison versions need for inttypes.h.
18492
18493 * grub-core/lib/posix_wrap/inttypes.h: New file.
18494 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
18495 (int16_t): Likewise.
18496 (int32_t): Likewise.
18497 (int64_t): Likewise.
18498 Reported and tested by: Alain Greppin.
18499
43f1bc83
VS
185002011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
18501
18502 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
18503 Silence spurious warning.
18504 Reported and tested by: Alain Greppin.
18505
64d1f041
SJ
185062011-01-07 Szymon Janc <szymon@janc.net.pl>
18507
18508 * docs/grub.texi (Support automatic decompression): Update with xz
18509 decompression support.
18510
25953e10
SJ
185112011-01-07 Szymon Janc <szymon@janc.net.pl>
18512
18513 Improve loaders' kernel command line handling.
18514
18515 * grub-core/lib/cmdline.c: New file.
18516 * include/grub/lib/cmdline.h: Likewise.
18517 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
18518 grub_create_loader_cmdline to create kernel command line.
18519 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
18520 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
18521 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
18522 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18523 (linux): Add lib/cmdline.c on common.
18524
e72d259f
VS
185252011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18526
18527 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
18528 inopos might be unaligned.
18529
c0cf26da
VS
185302011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18531
18532 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
18533 endian transformations.
18534 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
18535 Based on report by: Doug Nazar.
18536
0ca09e6c
DN
185372011-01-07 Doug Nazar <nazard.michi@gmail.com>
18538
18539 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
18540 array->members[i].start_sector.
18541 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
18542
014b6806
VS
185432011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
18544
18545 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
18546 Reported and tested by: Grégoire Sutre.
18547
415502c2
CW
185482011-01-06 Colin Watson <cjwatson@ubuntu.com>
18549
18550 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
18551 avoid causing test failures by clearing the screen.
18552
71b6a2b7
CW
185532011-01-06 Colin Watson <cjwatson@ubuntu.com>
18554
18555 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
18556 Fix prefix check to handle the case where dir ends with a slash
18557 (most significantly, "/" itself).
18558 Reported by: Michael Vogt.
18559
b3f8d28a
VS
185602011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18561
18562 Run terminfo_cls on initing terminfo output to clear the screen and
18563 move the cursor to (0,0).
18564
18565 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
18566 Call grub_terminfo_output_init.
18567 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
18568 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
18569 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
18570
4c3e4f37
VS
185712011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18572
18573 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
18574 only when needed.
18575
488f71f1
VS
185762011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18577
18578 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
18579 CTRL.
18580
18a38098
VS
185812011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
18582
18583 The E820 type 5 is BADRAM, not EXEC_CODE.
18584
18585 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18586 (GRUB_E820_BADRAM): New define.
18587 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
18588 into reserved. Propagate BADRAM.
18589 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
18590 (GRUB_E820_BADRAM): New define.
18591
9eae2084
VS
185922011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18593
18594 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
18595 Ignore the memory post-4G.
18596 (grub_relocator_firmware_alloc_region): Additional debug statement.
18597
ebc71d28
VS
185982011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18599
18600 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
18601 names.
18602 Reported by: David Pravec.
18603
446fa400
VS
186042011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18605
18606 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
18607 BIOSes.
18608
a0159f37
VS
186092011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18610
18611 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
18612 Prevent overflow.
18613 (grub_reed_solomon_recover): Likewise.
18614
e5146ca1
VS
186152011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18616
18617 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
18618
186192011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
18620
18621 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
18622 variable.
18623
5b1bdf12
CW
186242011-01-04 Colin Watson <cjwatson@ubuntu.com>
18625
18626 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
18627 descriptions of extract_legacy_entries_source and
18628 extract_legacy_entries_configfile.
18629 Reported by: Seung Soo, Ha.
18630
99d925aa
CW
186312011-01-03 Colin Watson <cjwatson@ubuntu.com>
18632
18633 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
18634 on devices that do not implement function 0.
18635
4af0504b
DV
186362011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
18637
18638 * grub-core/fs/hfsplus.c: Make parent unsigned.
18639 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
18640 overflows.
18641 (grub_hfsplus_cmp_extkey): Likewise
18642
469ee10a
VS
186432011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18644
18645 * util/grub-install.in: Correctly use bootloader_id and not
18646 GRUB_DISTRIBUTOR on efibootmgr line.
18647
323a8e9c
VS
186482011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
18649
18650 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
18651
1b394975
IC
186522010-12-31 Ian Campbell <ijc@hellion.org.uk>
18653
18654 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
18655 Xen and reorder menu item wording to make it clearer that this entry
18656 will launch Xen. Print separate messages when loading Xen and
18657 Linux.
18658
275bff5f
VS
186592010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18660
18661 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
18662 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
18663 loop in case of incorrect amiga partmap.
18664
307806cb
VS
186652010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18666
18667 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
18668 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
18669 Reported by:EHeM.
18670
b12b923e
VS
186712010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
18672
18673 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
18674 spurious warning.
18675 Reported by: crocket
18676
14b48a19
VS
186772010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18678
18679 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
18680 Preload EFIemu.
18681 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
18682
693db2df
VS
186832010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18684
18685 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
18686 is loaded
18687 (grub_cmd_xnu_kextdir): Likewise.
18688 (grub_cmd_xnu_splash): Likewise.
18689
c7638645
VS
186902010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18691
18692 Avoid using Reed-Solomon with 0 redundancy.
18693
18694 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
18695 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
18696 or 0 redundancy.
18697 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
18698 (grub_reed_solomon_recover): Likewise.
18699
25dd4780
VS
187002010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18701
18702 Don't use disk subsystem in freebsd_boot.
18703
18704 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
18705 (freebsd_biosdev): Likewise.
18706 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
18707 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
18708
0b2db943
VS
187092010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
18710
18711 Handling of files of unknown size is currently limited. They can't be
18712 used e.g. for initrd or modules. Moreover gzip handling of not
18713 easily seekable files is buggy. Disable unknown file size for now. May
18714 be inefficient but works.
18715
18716 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
18717 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
18718
5c408d0f
MP
187192010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
18720
18721 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
18722 floppy probe.
18723
190a011a
JD
187242010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
18725
18726 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
18727
022d01b8
SL
187282010-12-25 Shea Levy <shlevy>
18729
18730 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
18731
c4855fdc
VS
187322010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18733
18734 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
18735 Windows Server 2008.
18736 Reported by: Devin Giddings.
18737
0354b867
VS
187382010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18739
18740 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
18741 writing an error message because of async power management.
18742 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
18743 (grub_reboot): Likewise.
18744
ab66c69f
JU
187452010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
18746
18747 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
18748 keep unit tests from failing when they shouldn't.
18749
1426ef35
CW
187502010-12-21 Colin Watson <cjwatson@ubuntu.com>
18751
18752 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
18753 previous patch increased the size of the RS code by 20 bytes (at
18754 least with gcc-4.4), so increase this by 20 bytes to match.
18755 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
18756
20641b6b
CW
187572010-12-21 Colin Watson <cjwatson@ubuntu.com>
18758
18759 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
18760 scratch area. Make sure to initialise chosen in standalone mode as
18761 well as non-standalone.
18762 Reported by: Robert Hooker and Andy Whitcroft.
18763 Tested by: Andy Whitcroft.
18764
d060ad60
CW
187652010-12-21 Colin Watson <cjwatson@ubuntu.com>
18766
18767 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
18768 constructing a new unescaped string and passing it to grub_xputs in
18769 one go, rather than passing characters to grub_printf one at a time.
18770
b889cfad
CW
187712010-12-21 Colin Watson <cjwatson@ubuntu.com>
18772
18773 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
18774 initialising utf16.
18775
4e01b6c8
CW
187762010-12-21 Colin Watson <cjwatson@ubuntu.com>
18777
18778 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
18779 comment. Add an extra layer of quotation, requiring the output of
18780 this function to be used in a printf format string.
18781 (gettext_printf): New function.
18782 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
18783 Extract translatable strings from here-documents and use a temporary
18784 variable instead, so that xgettext can find them.
18785 * util/grub.d/10_kfreebsd.in: Likewise.
18786 * util/grub.d/10_linux.in: Likewise.
18787 * util/grub.d/20_linux_xen.in: Likewise.
18788
18789 * po/grub.d.sed: New file.
18790 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
18791 arguments. Set c-format flags on all strings extracted from
18792 util/grub.d/ (xgettext refuses to include these itself for strings
18793 it extracted from a shell file, but these really are c-format).
18794
5318fe98
VS
187952010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
18796
18797 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
18798 Avoid next pointing to nowhere.
18799
6c85b743
VS
188002010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18801
18802 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
18803 rather than assuming than rootblock is exactly in the middle.
18804 (grub_affs_label): Likewise.
18805
a2a08a35
VS
188062010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18807
18808 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
18809 reserved_first_sector to 0.
18810 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
18811 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
18812 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
18813
7059d1ec
VS
188142010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
18815
18816 Fix handling of UTF-16 UDF labels.
18817
18818 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
18819 (read_string): .. here.
18820 (grub_udf_label): Use read_string.
18821
30aff4cb
BC
188222010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
18823
18824 * grub-core/normal/menu_entry.c (run): Execute commands from menu
18825 editor under argument scope.
18826 Reported by: Jordan Uggla
18827
5cf86f4b
VS
188282010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18829
18830 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
18831
32570200
CW
188322010-12-18 Colin Watson <cjwatson@ubuntu.com>
18833
18834 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
18835 line, and other keys scroll an entire page (previous handling was
18836 for \r and \n to scroll a page and other keys to scroll two lines).
18837
e1dffcf2
VS
188382010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
18839
18840 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
18841 Set ptrdest to correct get_physical_target_address rather than
18842 incorrect get_virtual_current_address.
18843
b04298cf 188442010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
18845
18846 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
18847 correct cat to grub_uint8_t * rather than grub_uint32_t *.
18848
5367ecd3
CW
188492010-12-10 Colin Watson <cjwatson@ubuntu.com>
18850
18851 * .bzrignore: Ignore grub-core/rs_decoder.S.
18852
1fb430f8
CW
188532010-12-10 Colin Watson <cjwatson@ubuntu.com>
18854
18855 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
18856 .mo/.mo.gz opening sequence to ...
18857 (grub_mofile_open_lang): ... here.
18858 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
18859 * util/grub.d/00_header.in (grub_lang): Include country part of
18860 locale.
18861 Reported by: Mario Limonciello.
18862
a94a6671
RM
188632010-12-09 Robert Millan <rmh@gnu.org>
18864
18865 * NEWS: Document addition of ZFS support.
18866
24b7938b
CW
188672010-12-04 Colin Watson <cjwatson@ubuntu.com>
18868
18869 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
18870 rather than `/ 2', as the latter requires -Wa,--divide which would
18871 require bumping our minimum binutils version.
18872
bddc3ef6
BC
188732010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
18874
18875 * util/grub-script-check.c (main): Print script line number on
18876 error.
18877
bf78d5b2
RM
188782010-12-01 Robert Millan <rmh@gnu.org>
18879
18880 * grub-core/fs/zfs/zfs.c: New file.
18881 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
18882 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
18883 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
18884 * grub-core/fs/zfs/zfsinfo.c: Likewise.
18885
18886 * include/grub/zfs/dmu.h: Likewise.
18887 * include/grub/zfs/dmu_objset.h: Likewise.
18888 * include/grub/zfs/dnode.h: Likewise.
18889 * include/grub/zfs/dsl_dataset.h: Likewise.
18890 * include/grub/zfs/dsl_dir.h: Likewise.
18891 * include/grub/zfs/sa_impl.h: Likewise.
18892 * include/grub/zfs/spa.h: Likewise.
18893 * include/grub/zfs/uberblock_impl.h: Likewise.
18894 * include/grub/zfs/vdev_impl.h: Likewise.
18895 * include/grub/zfs/zap_impl.h: Likewise.
18896 * include/grub/zfs/zap_leaf.h: Likewise.
18897 * include/grub/zfs/zfs.h: Likewise.
18898 * include/grub/zfs/zfs_acl.h: Likewise.
18899 * include/grub/zfs/zfs_znode.h: Likewise.
18900 * include/grub/zfs/zil.h: Likewise.
18901 * include/grub/zfs/zio.h: Likewise.
18902 * include/grub/zfs/zio_checksum.h: Likewise.
18903
18904 * Makefile.util.def: Build ZFS into libgrubmods.
18905 * grub-core/Makefile.core.def: Build zfs.mod.
18906
3f0f3831
SJ
189072010-11-30 Szymon Janc <szymon@janc.net.pl>
18908
18909 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
18910 variable.
18911 * grub-core/commands/wildcard.c (match_files): Likewise.
18912
3a4253b2
RM
189132010-11-30 Robert Millan <rmh@gnu.org>
18914
18915 * grub-core/loader/i386/bsd.c
18916 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
18917 whether kernel is loaded using grub_loader_is_loaded(), rather
18918 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
18919 certain error conditions.
18920
8c317b27
RM
189212010-11-30 Robert Millan <rmh@gnu.org>
18922
c5c9cd3e
RM
18923 * grub-core/commands/echo.c: Include `<grub/term.h>'.
18924 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 18925
49d3ab46
VS
189262010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18927
18928 Avoid using tricks for initialising endian variables.
18929
18930 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
18931 Make const.
18932 (GRUB_MOD_INIT): Don't byte-swap.
18933 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
18934 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
18935 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
18936 (grub_swap_bytes32_compile_time): Likewise.
18937 (grub_cpu_to_le32_compile_time): Likewise.
18938 (grub_cpu_to_le16_compile_time): Likewise.
18939
f420a804
VS
189402010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
18941
18942 * util/grub-setup.c (setup): Stop recommending --force. People who
18943 understand the dangers of blocklists are able to find this option
18944 anyway and the ones who don't shouldn't use it anyway.
18945
4e7db17b
RM
189462010-11-26 Robert Millan <rmh@gnu.org>
18947
18948 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
18949 Update all users.
18950
9be57a0d
CW
189512010-11-26 Colin Watson <cjwatson@ubuntu.com>
18952
18953 Fix LVM-on-RAID probing.
18954
18955 * util/grub-probe.c (probe): Remember which disk was detected as
18956 RAID (perhaps an LVM physical volume). Use that disk's raidname
18957 rather than that of the top-level disk.
18958
2c7859b3 189592010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 18960
d7647bb6
BC
18961 Fix cmdline argument quotes for setparams command of menuentry
18962 definitions.
7e623b0d
BC
18963
18964 * grub-core/commands/menuentry.c (setparams_prefix): Use single
18965 quotes for arguments.
f866fe80 18966 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 18967 grub_strchrsub function instead.
f866fe80 18968
7955bea0 18969 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 18970
74f72a64
CW
189712010-11-24 Colin Watson <cjwatson@ubuntu.com>
18972
18973 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
18974 effort by skipping "." and ".." entries up-front.
18975 Suggested by: Michael Lazarev.
18976
5a407278
CW
189772010-11-24 Colin Watson <cjwatson@ubuntu.com>
18978
18979 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
18980 ldflags to ldadd, to fix link line ordering.
18981 (none_decompress): Likewise.
18982
3030d8ec
CW
189832010-11-24 Colin Watson <cjwatson@ubuntu.com>
18984
18985 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
18986 platforms.
18987 (grub-emu-lite): Remove kern/emu/cache.S.
18988
b7fbac12
CW
189892010-11-23 Colin Watson <cjwatson@ubuntu.com>
18990
18991 * util/deviceiter.c (compare_devices): If the by-id link for a
18992 device couldn't be resolved, fall back to sorting by the by-id link
18993 rather than segfaulting.
18994 Reported and tested by: Daniel Mierswa.
18995
5225f328
CW
189962010-11-23 Colin Watson <cjwatson@ubuntu.com>
18997
18998 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
18999 ldflags, to fix link line ordering.
19000
038b3ce8
CW
190012010-11-23 Colin Watson <cjwatson@ubuntu.com>
19002
19003 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
19004 linkers are picky about this.
19005
bf16e98e
CW
190062010-11-23 Colin Watson <cjwatson@ubuntu.com>
19007
19008 * grub-core/Makefile.am (command.lst): Adjust sed expression
19009 ordering so that extended and priority commands aren't treated as
19010 ordinary commands.
19011
7242bab6
CW
190122010-11-23 Colin Watson <cjwatson@ubuntu.com>
19013
19014 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
19015 Remove byte-swapping function calls, which are not valid in
19016 structure initialisers.
19017 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
19018 non-const.
19019 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
19020 grub_gpt_partition_type_bios_boot.
19021
14e8b279
CW
190222010-11-22 Colin Watson <cjwatson@ubuntu.com>
19023
19024 Fix test program build on GNU/kFreeBSD.
19025
19026 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
19027 $(LIBNVPAIR)' library dependencies.
19028
e6f63338 190292010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
19030
19031 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
19032
cf8ffc38
CW
190332010-11-22 Colin Watson <cjwatson@ubuntu.com>
19034
19035 * util/grub-install.in: Remove excessive quoting that broke
19036 installations to RAID devices.
19037
7f8b0fd7
VS
190382010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19039
19040 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
19041 bootloader version instead of 0.
19042
dfd240b1
VS
190432010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19044
19045 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
19046 warning.
19047
7b61e609
VS
190482010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
19049
19050 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
19051 retrieve the metadat sector if size isn't known.
19052 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19053
9dfe92d0
RM
190542010-11-18 Robert Millan <rmh@gnu.org>
19055
19056 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
19057 with grub_memcmp().
19058
41cc919e
VS
190592010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
19060
19061 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
19062 arrow.
19063 Reported by: Jordan Uggla.
19064
1afcc914
VS
190652010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19066
19067 Make better UTF compliant.
19068
19069 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
19070 sequences as incorrect.
19071 (grub_is_valid_utf8): Likewise.
19072 (grub_utf8_to_ucs4): Likewise.
19073 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
19074 (grub_ucs4_to_utf8_alloc): Likewise.
19075 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
19076
f1808884
VS
190772010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 Make legacy_source behave like source.
19080
19081 * grub-core/commands/legacycfg.c (legacy_file): Don't call
19082 grub_show_menu.
19083 (grub_cmd_legacy_source): Call grub_show_menu if needed.
19084
24ec575b
CW
190852010-11-16 Colin Watson <cjwatson@debian.org>
19086
19087 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
19088 (-Wunused implies -Wunused-parameter, but not vice versa).
19089
72b7c7aa
CW
190902010-11-16 Colin Watson <cjwatson@ubuntu.com>
19091
19092 * configure.ac: Make error messages less confusing by testing for
19093 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
19094 accepted, but produces a diagnostic if something else is wrong).
19095
e98937aa
VS
190962010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19097
19098 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
19099 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
19100 (now unused).
19101 (grub_keyboard_controller_init)
19102 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
19103 read the initial state since controller isn't inited yet.
19104
f6bbabc3
VS
191052010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
19106
19107 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
19108 allocate_regbeg may need to create new chunk header.
19109
22e7dbb2
VS
191102010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19111
19112 Fix quoting in legacy parser.
19113
19114 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
19115 single quotes.
19116 (grub_legacy_parse): Likewise.
19117 Reported by: Jordan Uggla.
19118 Tested by: Jordan Uggla.
19119
03f80960
VS
191202010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19121
19122 Don't add -lgcc on i386 and x86_64.
19123
19124 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
19125 * conf/Makefile.common (LDADD_KERNEL): Likewise.
19126 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
19127
779dc15b
VS
191282010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19129
19130 * configure.ac: Add -Wno-trampolines when supported.
19131
d20a3b37
MV
191322010-11-14 Modestas Vainius <modax@debian.org>
19133
19134 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
19135 fakeraid.
19136
e5360933
GC
191372010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19138
19139 Add generic logical block size support for UDF.
19140
19141 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
19142 (GRUB_UDF_BLKSZ): Removed.
19143 (struct grub_udf_data): New field "lbshift" to hold the logical block
19144 size of the file system in log2 format. All users updated.
19145 (sblocklist): Change type to unsigned.
19146 (grub_udf_mount): Change type of "sblklist" to unsigned.
19147 Move AVDP search before VRS recognition, because the latter requires
19148 knowledge of the logical block size, which is detected during the
19149 former.
19150 Detect and validate logical block size during AVDP search, adding
19151 support for block sizes 512, 1024 and 4096.
19152 Make VRS recognition independent of block size.
19153
cb0229c5
GC
191542010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19155
19156 Properly handle deleted files on UDF.
19157
19158 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
19159 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
19160 set.
19161
406858a8
GC
191622010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
19163
19164 Support reading files larger than 2 GiB.
19165
19166 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
19167 "offset" to grub_off_t.
19168 (grub_udf_read_file): Likewise for parameter "pos".
19169
130da6a7
VS
191702010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19171
19172 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
19173 unavailable.
19174 (Simple configuration): Refer to Changes from GRUB Legacy about
19175 save_env availability.
19176
65e93f6b
VS
191772010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19178
19179 * util/grub-install.in: Ignore empty partition table detection
19180 instead of trying to include part_ module.
19181
1fd08bf1
VS
191822010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19183
19184 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
19185 LVM on RAID support.
19186
de1a024f
VS
191872010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
19188
19189 Properly define WORDS_BIGENDIAN in wrapped environments.
19190
19191 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
19192 definition.
19193 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
19194
19195 Reported by: Manoel Rebelo Abranches.
19196 Tested by: Manoel Rebelo Abranches.
19197
bc5dd0b9
VS
191982010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19199
19200 * util/grub-mkconfig.in: Fix quoting.
19201
58c184be
VS
192022010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19203
19204 Support big ext2 files.
19205
19206 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
19207 (grub_ext2_read_block): Support triple indirect blocks.
19208 (grub_ext2_read_file): Use 64-bit types and read size_high.
19209 (grub_ext2_open): Read size_high.
19210 Reported by: Ximin Luo.
19211 Tested by: Manoel Rebelo Abranches.
19212
5f0c02b3
VS
192132010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19214
19215 * util/grub-install.in: Handle filenames containing spaces.
19216 Reported by: Jordan Uggla.
19217 Tested by: Jordan Uggla.
19218
4417aae6
VS
192192010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19220
19221 * util/grub-mkconfig.in (grub_script_check): New variable.
19222 Use grub_script_check instead of grub-script-check.
19223 Reported by: Barry Jackson.
19224
7625a68e
VS
192252010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
19226
19227 * docs/grub.texi (menu): Correct the order.
19228 Reported by: D. Hugh Redelmeier.
19229
10001ac5
VS
192302010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
19231
19232 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
19233 jump.
19234
9c4cf53b
MRA
192352010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
19236
10001ac5
VS
19237 * include/grub/elfload.h (grub_elf32_size): New parameter.
19238 All users updated.
9c4cf53b
MRA
19239 Return maximum segments alignment.
19240 (grub_elf64_size): Likewise.
19241 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
19242 Return maximum segments alignment.
19243 (grub_elf64_size): Likewise.
19244 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
19245 (grub_linux_claimmap_iterate): New function. Uses the
19246 "available" property in the "memory" node for memory allocation
19247 for kernel in the PowerPC loader.
9c4cf53b
MRA
19248 (grub_linux_load32): Correctly find linux entry point offset.
19249 (grub_linux_load64): Likewise.
19250
d2bf06bf
RM
192512010-11-07 Robert Millan <rmh@gnu.org>
19252
19253 On mips-yeeloong, build with -march=loongson2f when this flag is
19254 available (GCC >= 4.4).
19255 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
19256 `-march=mips3'.
19257 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
19258 or otherwise add -march=mips3.
19259
898c99a2
BC
192602010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
19261
87220a68
BC
19262 Suppress shell expansion on echo '*' and echo "*" like cases.
19263 Reported by: Jordan Uggla.
898c99a2
BC
19264
19265 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
19266 string arguments before shell expansion.
19267 * tests/grub_cmd_echo.in: New testcases.
19268
4f9b406a
RM
192692010-11-07 Robert Millan <rmh@gnu.org>
19270
19271 * conf/mips-qemu-mips.rmk: Remove stale file from previous
19272 transition.
19273
80c6d25e
VS
192742010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
19275
19276 * grub-core/kern/emu/hostdisk.c
19277 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
19278
4a1a0153
VS
192792010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19280
19281 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
19282 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
19283 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
19284
34706ddc
VS
192852010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19286
19287 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
19288
6972dea9
VS
192892010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19290
19291 * util/grub-install.in: Replace useless recomendation to pass
19292 --modules with a recomendation to report a bug.
19293
9c693bd6
VS
192942010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
19295
19296 Properly register serial terminfo.
19297 Reported by: Jordan Uggla
19298
19299 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
19300 const.
19301 (grub_serial_terminfo_output_template): Likewise.
19302 (grub_cmd_serial): Register "serial" with terminfo.
19303 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
19304 grub_serial_terminfo_output.
19305
6c9e4c0c
RM
193062010-11-05 Robert Millan <rmh@gnu.org>
19307
19308 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
19309 needed).
19310
b9b3839f
RM
193112010-11-05 Robert Millan <rmh@gnu.org>
19312
19313 On Yeeloong, pass machine type information to Linux.
19314
19315 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
19316 (LOONGSON_MACHTYPE): New macro, set to
19317 "machtype=lemote-yeeloong-2f-8.9inches".
19318 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
19319 additional argument to Linux.
19320
1a3aaff4
RM
193212010-11-04 Robert Millan <rmh@gnu.org>
19322
19323 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
19324 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
19325 (its SATA disks are detected as slaveless IDE master drives on
19326 kFreeBSD).
19327 Reported by Carsten Aulbert.
19328
a75f4f62
CW
193292010-11-02 Colin Watson <cjwatson@ubuntu.com>
19330
19331 * util/bin2h.c (main): Fix spelling error in generated output.
19332
33b4b0c6
GS
193332010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
19334
19335 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
19336
2b36fbf4
VS
193372010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19338
19339 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
19340 vga= option is supplied.
19341
74aaf558
VS
193422010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19343
19344 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
19345 * util/grub.d/10_kfreebsd.in: Likewise.
19346 * util/grub.d/10_linux.in: Likewise.
19347 * util/grub.d/20_linux_xen.in: Likewise.
19348
6428dec3
VS
193492010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19350
19351 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
19352 argument as an argument to no-argument option.
19353
f8729d98
VS
193542010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19355
19356 * util/grub.d/10_linux.in: Add missing load_video with explicit
19357 GRUB_GFXPAYLOAD_LINUX.
19358
89d68fa6
VS
193592010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19360
19361 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
19362
3a1197cd
VS
193632010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19364
19365 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
19366 elements with invlid index.
19367 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
19368 * grub-core/disk/raid.c (insert_array): Automatically reallocate
19369 members.
19370 * include/grub/raid.h (grub_raid_member): New struct.
19371 (grub_raid_array): Transform devices and start_sector into usage of
19372 grub_raid_member. All users updated
19373 (allocated_devs): New member.
19374
71574288
VS
193752010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
19376
19377 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
19378 is modified
19379
8d40ec65
BC
193802010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
19381
19382 NetBSD build fix for getline function conflict from gnulib.
19383
19384 * Makefile.util.def (libgrubkern.a): New library for grub kernel
19385 components that depend on gnulib headers.
19386 (libgrubmods.a): Renamed from earlier libgrub.a.
19387 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
19388
95b9257e
VS
193892010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19390
19391 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
19392 install rather than creating a broken install.
19393
26c53dc6
VS
193942010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19395
19396 * util/grub-setup.c (argp): Remove misleading example of installing to
19397 a partition.
19398
4171b3c5
VS
193992010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19400
19401 * util/grub-setup.c (setup): Clarify the error message.
19402
18568d18
VS
194032010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
19404
19405 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
19406
4f6a2e21
VS
194072010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
19408
19409 * grub-core/kern/emu/misc.c
19410 (grub_make_system_path_relative_to_its_root)
19411 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
19412
194132010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
19414
19415 * grub-core/kern/emu/misc.c
19416 (grub_make_system_path_relative_to_its_root): Revert r2882.
19417
e138c458
VS
194182010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
19419
19420 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
19421 useless field head. All users updated.
19422 (free_subchunk): Correct handling of IN_REGION subchunk.
19423
0cbcdf0e
CW
194242010-10-22 Colin Watson <cjwatson@ubuntu.com>
19425
19426 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
19427 (Supported kernels): Likewise.
19428
b65ea155
GS
194292010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
19430
19431 Make mktemp invocations portable.
19432
19433 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
19434 exit if mktemp fails.
19435 * tests/grub_script_blockarg.in: Likewise.
19436 * tests/partmap_test.in: Likewise.
19437 * tests/util/grub-shell-tester.in: Likewise.
19438 * tests/util/grub-shell.in: Likewise.
19439 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
19440 * Makefile.am: Likewise, and chain shell commands with `&&'
19441 instead of ';'.
19442 * util/grub-mkrescue.in: Use the same explicit template as above, and
19443 exit if mktemp fails.
19444
05f43cdd
BC
194452010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
19446
19447 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
19448 Linux kernel, reported by Dennis Schridde.
19449
800e6a9b
SJ
194502010-10-17 Szymon Janc <szymon@janc.net.pl>
19451
19452 * grub-core/normal/auth.c (grub_auth_check_authentication):
19453 Set-but-not-used variable removed.
19454
d82df574
VS
194552010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19456
19457 * docs/grub.texi (GNU/Linux): Document APM unavailability with
19458 32-bit linux protocol.
19459
7bced458
VS
194602010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19461
19462 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
19463 cursor shape for sanity.
19464
5b027690
VS
194652010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19466
19467 * docs/grub.texi (Installation): Document buggy BIOS install.
19468
ba5f65cf
VS
194692010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19470
19471 * docs/grub.texi (Installation): Indent.
19472
fdf2ec9c
VS
194732010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19474
19475 * util/grub-setup.c (setup): New parameter allow_floppy.
19476 (arguments): New member allow_floppy.
19477 (argp_parser): Handle --allow-floppy.
19478 (main): Pass allow_floppy.
19479 * util/grub-install.in: New option --allow-floppy passed though to
19480 grub-setup.
19481
861dfd4c
VS
194822010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19483
19484 * util/grub-install.in: Handle partitionless disks.
19485
f77a8c24
VS
194862010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
19487
19488 * util/grub-setup.c (setup): Don't clean blocklists before readability
19489 verfification.
19490
27d9ee32
VS
194912010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19492
19493 * docs/grub.texi (Installation): Document embedding zone. Remove
19494 obsolete grub-install example.
19495
6bdda8f8
SJ
194962010-10-16 Szymon Janc <szymon@janc.net.pl>
19497
19498 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
19499 Set-but-not-used variable ifdef'ed.
19500 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
19501 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
19502 variable removed.
19503 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
19504 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
19505 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
19506 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
19507 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
19508 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
19509 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
19510 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
19511 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
19512 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
19513 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
19514 Likewise.
19515
e19b016b
VS
195162010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19517
19518 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
19519 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
19520 enum value.
19521
6c8d3002
VS
195222010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19523
19524 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
19525 synonym to _S5_. Needed for some DSDTs.
19526
c32b51c9
VS
195272010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19528
19529 Userspace ACPI parser debugging.
19530
19531 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
19532 headers and add relevant defines. Don't include standard headers.
19533 (main) [GRUB_DSDT_TEST]: New function.
19534 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
19535 Don't declare functions.
19536
fbfbeb39
VS
195372010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19538
19539 Remove dead grub_efi_mm_fini.
19540
19541 * grub-core/kern/efi/mm.c (allocated_page): Removed.
19542 (ALLOCATED_PAGES_SIZE): Likewise.
19543 (MAX_ALLOCATED_PAGES): Likewise.
19544 (allocated_pages): Likewise.
19545 (grub_efi_allocate_pages): Don't record allocated pages.
19546 (grub_efi_free_pages): Likewise.
19547 (grub_efi_mm_init): Likewise.
19548 (grub_efi_mm_fini): Removed.
19549
65f7ed7c
VS
195502010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19551
19552 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
19553 (grub_efi_mm_init): Take into account the memory map size increase.
19554
24977b44
VS
195552010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
19556
19557 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
19558 (serial_hw_put): Wait based on real time rather than port reads. Don't
19559 roken ports.
19560 * include/grub/serial.h (grub_serial_port): New field broken.
19561
1eb01cd2
RM
195622010-10-16 Robert Millan <rmh@gnu.org>
19563
19564 * grub-core/kern/emu/misc.c
19565 (grub_make_system_path_relative_to_its_root): Fix premature return
19566 when processing non-root ZFS filesystems.
5f8b440b 19567 Reported by Sergio Talens-Oliag.
1eb01cd2 19568
2d5fed60
RM
195692010-10-15 Robert Millan <rmh@gnu.org>
19570
19571 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
19572 guarantee compressed ones are processed first.
19573
d0f4c1ea
VS
195742010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19575
19576 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
19577 grub_efiemu_autocore.
19578
d87c681f
VS
195792010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
19580
19581 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
19582 rather than 0x1b.
19583 (grub_console_getkey): Use correct jae opcode rather than ja.
19584
219b3564
RM
195852010-10-12 Robert Millan <rmh@gnu.org>
19586
19587 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
19588 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
19589 variable. All references updated.
19590
19591 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
19592
20c6bb7e
VS
195932010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
19594
19595 Correctly distinguish mdraid flavours.
19596
19597 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
19598 (insert_array): New argument raid.
19599 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
19600 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
19601 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
19602
74baff84
VS
196032010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
19604
19605 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
19606 handling of special keys.
19607
3ef068df 196082010-10-02 Aleš Nesrsta <starous@volny.cz>
19609
c7980ad9
VS
19610 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
19611 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 19612
a9455194 196132010-10-02 Aleš Nesrsta <starous@volny.cz>
19614
c7980ad9
VS
19615 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
19616 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
19617 users updated.
a9455194 19618 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 19619 Use right endpoint when querying descriptor.
a9455194 19620
441cfe65
VS
196212010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19622
19623 Clear out 0x80 color bit on EFI.
19624 Tested by: decoder
19625 Reported by: decoder and meta tech.
19626
19627 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
19628 (grub_console_setcolorstate): Clear out 0x80 bit.
19629 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
19630 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
19631 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
19632
bf26bcc4
VS
196332010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
19634
19635 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
19636 Set to "auto".
19637
6e3c515d
VS
196382010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19639
19640 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
19641 mo_file after freeing.
19642
e6d983ba
VS
196432010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19644
19645 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
19646
74ccb5b5
VS
196472010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19648
19649 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
19650 flags.
19651
17821956
VS
196522010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19653
19654 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
19655 usage.
19656
ee74fa48
VS
196572010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
19658
19659 Put terminfo into core on ieee1275 and yeeloong (needed for console).
19660
19661 * gentpl.py: New groups terminfoinkernel and terminfomodule.
19662 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
19663 and terminfo.h when needed.
19664 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
19665 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
19666 (terminfo): Enable only on terminfokernel.
19667 (extcmd): Likewise.
19668 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
19669 * include/grub/lib/arg.h: Likewise.
19670 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
19671 incorrect usage of ->.
19672
aa438e68
VS
196732010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19674
19675 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
19676 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
19677
57994012
VS
196782010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19679
19680 Fix coreboot compilation.
19681
19682 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
19683 Take VBE info into account even if only text is supported.
19684 (fill_vbe_info): Take into account the case when only VGA text
19685 is supported.
19686 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
19687 on coreboot, multiboot and qemu.
19688
2a406611
VS
196892010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19690
19691 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
19692 debug messages.
19693 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
19694
d33613fc
VS
196952010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19696
19697 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
19698 parameters.
19699
44a1b432
VS
197002010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19701
19702 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
19703 if they were BSD-style.
19704
edde54e6
VS
197052010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19706
19707 * grub-core/boot/i386/pc/lnxboot.S: Replace
19708 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
19709 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
19710
b65830fa
VS
197112010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
19712
19713 Write embedding zone using Reed-Solomon.
19714
19715 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
19716 * grub-core/Makefile.am (rs_decoder.S): New target.
19717 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
19718 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
19719 (multiboot): Move to RS part.
19720 (post_reed_solomon): New label.
19721 (grub_boot_drive): Move to non-RS part since it's modified in memory
19722 on boot.
19723 Include rs_decoder.S.
19724 * grub-core/lib/reed_solomon.c: New file.
19725 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
19726 New definition.
19727 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
19728 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
19729 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
19730 * include/grub/partition.h (grub_partition_map): Change prototype of
19731 embed to allow returning additional sectors.
19732 * include/grub/reed_solomon.h: New file.
19733 * util/grub-setup.c (setup): Handle Reed-Solomon.
19734
0b4b227f
CW
197352010-09-28 Colin Watson <cjwatson@ubuntu.com>
19736
19737 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19738 i386 and x86-64 definedness tests.
19739
f772623b
YB
197402010-09-27 Yves Blusseau <blusseau@zetam.org>
19741
19742 Fix generation of kernel_syms.lst
19743
19744 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
19745 ASM_PREFIX
19746
8e57a6ca
RM
197472010-09-26 Robert Millan <rmh@gnu.org>
19748
19749 Support degraded ZFS arrays in "grub-probe -t device" resolution.
19750
19751 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
19752 the pool is an array of devices, iterate through it and return the
19753 first device that passes a stat() test (instead of blindly returning
19754 the first one).
19755
f9130836
RM
197562010-09-26 Robert Millan <rmh@gnu.org>
19757
19758 Build fixes for GNU/kFreeBSD.
19759
19760 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
19761 to programs that require ZFS conversion.
19762 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
19763 kernels that don't have FLOPPY_MAJOR.
19764
96510faf
BC
197652010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19766
19767 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
19768
449333eb
BC
197692010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
19770
19771 Fix grub-emu build.
19772
19773 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
19774 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
19775 mdraid09 and mdraid1x.
19776
e1fd1939
CW
197772010-09-24 Colin Watson <cjwatson@ubuntu.com>
19778
19779 Re-enable grub-extras.
19780
19781 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
19782 avoid confusing Automake. Run autogen only twice, once for the top
19783 level and once for grub-core. Add Makefile.util.def and
19784 Makefile.core.def from extra modules to the appropriate autogen
19785 invocations. If Makefile.common exists in an extra module, include
19786 it in both Makefile.util.am and grub-core/Makefile.core.am;
19787 similarly, include any Makefile.util.common file in Makefile.util.am
19788 and any Makefile.core.common file in grub-core/Makefile.core.am.
19789 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
19790 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
19791 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
19792 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
19793
19794 * gentpl.py (gvar_add): Turn GVARS into a set.
19795 (global_variable_initializers): Sort global variables on output.
19796 (vars_init): New function.
19797 (first_time): Likewise.
19798 (library): Ensure that non-global variable initialisations are
19799 emitted before the first time we emit code for a library block.
19800 Append to variables rather than setting them. Only emit
19801 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
19802 each conditional path.
19803 (program): installdir() emits an Autogen macro, so must be passed to
19804 var_add rather than gvar_add.
19805 (data): Likewise.
19806 (script): Likewise.
19807 (rules): New function, centralising handling for different target
19808 types. Set up Guile association lists for first_time and vars_init,
19809 and send most output to a diversion so that variable initialisations
19810 can be emitted first.
19811 (module_rules): Use new rules function.
19812 (kernel_rules): Likewise.
19813 (image_rules): Likewise.
19814 (library_rules): Likewise.
19815 (program_rules): Likewise.
19816 (script_rules): Likewise.
19817 (data_rules): Likewise.
19818
19819 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
19820
19821 * .bzrignore: Add contrib and grub-core/contrib. Remove
19822 grub-core/Makefile.gcry.am.
19823
1d12cf29
YB
198242010-09-24 Yves Blusseau <blusseau@zetam.org>
19825
19826 * grub-core/lib/LzFind.c: Add missing include.
19827 * grub-core/lib/LzmaEnc.c: Likewise.
19828 * grub-core/script/lexer.c: Likewise.
19829 * grub-core/script/yylex.l: Likewise.
19830 * util/grub-macho2img.c: Likewise.
19831 * util/grub-menulst2cfg.c: Likewise.
19832 * util/grub-mklayout.c: Likewise.
19833 * util/grub-mkpasswd-pbkdf2.c
19834 * util/grub-mkrelpath.c: Likewise.
19835 * util/resolve.c: Likewise.
19836
dd363028
BC
198372010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
19838
19839 * Makefile.util.def (example_unit_test): Add
19840 grub-core/gnulib/libgnu.a.
19841
f5a109e2
GS
198422010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
19843
19844 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
19845
6d0fa83c
VS
198462010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
19847
19848 Support xz compression on yeeloong.
19849
19850 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
19851 * configure.ac: Check for LZMA.
19852 * grub-core/Makefile.core.def (xz_decompress): New target.
19853 (none_decompress): Likewise.
19854 * grub-core/boot/decompressor/minilib.c: New file.
19855 * grub-core/boot/decompressor/none.c: Likewise.
19856 * grub-core/boot/decompressor/xz.c: Likewise.
19857 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
19858 * grub-core/kern/mips/cache_flush.S: Likewise.
19859 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
19860 * grub-core/kern/mips/startup.S: Move first stage to ...
19861 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
19862 nomacro.
19863 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
19864 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
19865 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
19866 Allocate statically.
19867 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
19868 Allocate statically or use scratch. Don't check CRC32.
19869 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
19870 Allocate statically. Don't check CRC32.
19871 * include/grub/decompressor.h: New file.
19872 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
19873 Removed.
19874 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
19875 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
19876 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
19877 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
19878 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
19879 * util/grub-mkimage.c (grub_compression_t): New type.
19880 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
19881 (image_target_desc): New field default_compression.
19882 (image_targets): Adjust yeeloong targets.
19883 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
19884 (compress_kernel): New parameter comp.
19885 (generate_image): Likewise. Handle new compression case.
19886 (options): New option --compression
19887 (help): Likewise.
19888 (main): Handle new option.
19889
1b655af6
GS
198902010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
19891
19892 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
19893
8f03f0b5
CW
198942010-09-22 Colin Watson <cjwatson@ubuntu.com>
19895
19896 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
19897 typo in __i386__ conditional.
19898
7835dfd3
VS
198992010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19900
19901 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
19902 include.
19903
e255597e
VS
199042010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
19905
6d0fa83c 19906 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
19907
19908 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
19909 new tags as supported.
19910 (acpiv2_size): New function.
19911 (grub_multiboot_get_mbi_size): Take new tags into account.
19912 (grub_multiboot_make_mbi): Add new tags.
19913 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 19914
6cc14051 199152010-09-21 Aleš Nesrsta <starous@volny.cz>
19916
19917 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
19918 Added missing configuration of USB device.
19919
df7769d8
CW
199202010-09-21 Colin Watson <cjwatson@ubuntu.com>
19921
19922 * grub-core/normal/menu_entry.c (run): Make sure we always return
19923 a value.
19924
b031012d
CW
199252010-09-21 Colin Watson <cjwatson@ubuntu.com>
19926
19927 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
19928 NumberOfPages is UINT64 according to the UEFI specification, not
19929 UINTN. Fix printf format.
19930
174de8f3
CW
199312010-09-21 Colin Watson <cjwatson@ubuntu.com>
19932
19933 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
19934 `err' to grub_usb_err_t.
19935 Reported and tested by: KESHAV P.R.
19936
d7dbe923
CW
199372010-09-21 Colin Watson <cjwatson@ubuntu.com>
19938
19939 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
19940 tpart non-const, so that we can assign to it. (Since this is a
19941 typedef, the constness refers to the pointer rather than what it
19942 points to.)
19943
8d5e2af3
CW
199442010-09-21 Colin Watson <cjwatson@ubuntu.com>
19945
19946 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
19947 $(top_srcdir)/grub-core/gnulib as well as
19948 $(top_builddir)/grub-core/gnulib.
19949 Reported by: KESHAV P.R.
19950
5c527783
CW
199512010-09-21 Colin Watson <cjwatson@ubuntu.com>
19952
19953 * util/grub-install.in: Fix the bootloader ID option to be
19954 consistently --bootloader-id, not --bootloader_id.
19955 Reported by: KESHAV P.R.
19956
d309a16e
CW
199572010-09-21 Colin Watson <cjwatson@ubuntu.com>
19958
19959 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
19960 check hash checksum." consistently translatable.
19961
b830cd16
YB
199622010-09-21 Yves Blusseau <blusseau@zetam.org>
19963
19964 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
19965 $(top_builddir).
19966
c4fe27a8
CW
199672010-09-21 Colin Watson <cjwatson@ubuntu.com>
19968
19969 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
19970 (GRUB_MOD_INIT): Register sha1sum command.
19971 (GRUB_MOD_FINI): Unregister sha1sum command.
19972
a4c1d277
YB
199732010-09-21 Yves Blusseau <blusseau@zetam.org>
19974
19975 Keep boot and grub directory names in sync with utils scripts
19976
19977 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
19978 * config.h.in: Add previous macros.
19979 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
19980 * util/grub-install.in: Use $bootdir and $grubdir variables.
19981
4eff79d2
CW
199822010-09-21 Colin Watson <cjwatson@ubuntu.com>
19983
19984 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
19985 convert partition names to disk names if the new `convert' parameter
19986 is set.
19987 (grub_util_biosdisk_get_grub_dev): If opening the disk device
19988 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
19989 disk in its own right. This can happen with Xen disk images.
19990
934d7e44
YB
199912010-09-21 Yves Blusseau <blusseau@zetam.org>
19992
19993 * util/grub-editenv.c: Update strings to avoid warnings when generating
19994 grub.pot file.
19995 * util/grub-setup.c: Likewise.
934d7e44 19996
df3367cc
VS
199972010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
19998
19999 * configure.ac: Change version to 1.99~beta0.
20000
77a94e98
VS
200012010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
20002
20003 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
20004 Add BADRAM.
20005 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
20006 Likewise.
20007 * include/multiboot.h: Resynced with specification.
20008 * include/multiboot2.h: Likewise.
20009
269004c1
CW
200102010-09-21 Colin Watson <cjwatson@ubuntu.com>
20011
20012 Fix po directory handling.
20013
20014 * configure.ac: Create po/Makefile.in rather than po/Makefile.
20015 * grub-core/gnulib/Makefile.am: Import gettext module.
20016 * m4/gnulib-cache.m4: Likewise.
20017 * m4/gnulib-comp.m4: Likewise.
20018 * m4/gettext.m4: New file, from gnulib.
20019 * m4/glibc2.m4: Likewise.
20020 * m4/iconv.m4: Likewise.
20021 * m4/intdiv0.m4: Likewise.
20022 * m4/intl.m4: Likewise.
20023 * m4/intldir.m4: Likewise.
20024 * m4/intlmacosx.m4: Likewise.
20025 * m4/intmax.m4: Likewise.
20026 * m4/inttypes-pri.m4: Likewise.
20027 * m4/lcmessage.m4: Likewise.
20028 * m4/lib-ld.m4: Likewise.
20029 * m4/lib-link.m4: Likewise.
20030 * m4/lib-prefix.m4: Likewise.
20031 * m4/lock.m4: Likewise.
20032 * m4/nls.m4: Likewise.
20033 * m4/po.m4: Likewise.
20034 * m4/printf-posix.m4: Likewise.
20035 * m4/progtest.m4: Likewise.
20036 * m4/threadlib.m4: Likewise.
20037 * m4/uintmax_t.m4: Likewise.
20038 * m4/visibility.m4: Likewise.
20039 * po/Makefile.am: Remove.
20040 * po/Makefile.in.in: New file, from gettext.
20041 ($(DOMAIN).pot-update): Support POTFILES-shell.
20042 * po/Makevars: New file.
20043 * po/POTFILES-shell: Rename to ...
20044 * po/POTFILES-shell.in: ... this. Update.
20045 * po/POTFILES: Rename to ...
20046 * po/POTFILES.in: ... this. Update.
20047 * po/Rules-quot: New file, from gettext.
20048 * po/boldquot.sed: Likewise.
20049 * po/en@boldquot.header: Likewise.
20050 * po/en@quot.header: Likewise.
20051 * po/insert-header.sin: Likewise.
20052 * po/quot.sed: Likewise.
20053 * po/remove-potcdate.sin: Likewise.
20054
3e0fa5d0
VS
200552010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20056
20057 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
20058
ade9bd66
VS
200592010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20060
20061 * util/grub.d/20_linux_xen.in: Use submenus.
20062
fc55cc4c
VS
200632010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20064
20065 Support submenus.
20066
20067 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
20068 parameter submenu. All users updated.
20069 * grub-core/normal/main.c (free_menu): Rename to ...
20070 (grub_normal_free_menu): ... this. Made global.
20071 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
20072 if requested.
20073 * grub-core/normal/menu_entry.c (screen): New field submenu.
20074 (make_screen): Set submenu.
20075 (run): Open new context if requested.
20076 * include/grub/menu.h (grub_menu_entry): New field submenu.
20077 * include/grub/normal.h (grub_normal_free_menu): New proto.
20078
600cedf7
VS
200792010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20080
20081 Menu entries extractor.
20082
20083 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
20084 variants.
20085 (GRUB_MOD_INIT): Register new variants.
20086 (GRUB_MOD_FINI): Unregister new variants.
20087 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
20088 into grub_cmd_legacy_source.
20089 (grub_cmd_legacy_source): Implement extractor variants.
20090 (GRUB_MOD_INIT): Register new variants.
20091 (GRUB_MOD_FINI): Unregister new variants.
20092 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
20093 as an extractor.
20094 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
20095 search as an extractor.
20096 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
20097 test as an extractor.
20098 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
20099 as an extractor.
20100 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
20101 (grub_env_new_context): New function.
20102 (grub_env_context_open): Likewise.
20103 (grub_env_extractor_open): Likewise.
20104 (grub_env_extractor_close): Likewise.
20105 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
20106 grub_extractor_level.
20107 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
20108 * include/grub/env.h (grub_env_extractor_open): New proto.
20109 (grub_env_extractor_close): Likewise.
20110 * include/grub/normal.h (grub_extractor_level): New external variable.
20111
7bda3a87
VS
201122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20113
20114 Make cutmem accept a region specification.
20115 Suggested by: Samuel Thibault
20116
20117 * grub-core/mmap/mmap.c (parsemem): New function.
20118 (grub_cmd_cutmem): Handle new arguments.
20119
2ea57f88
VS
201202010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20121
20122 New command cutmem.
20123
20124 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
20125 (GRUB_MOD_INIT): Register new command.
20126 (GRUB_MOD_FINI): Unregister new command.
20127
74342e31
VS
201282010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20129
20130 Support some annoying BSD and Minix subpartitions.
20131
20132 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
20133 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
20134 Properly handle concatenation.
20135 * grub-core/kern/device.c (grub_device_iterate): Likewise.
20136 * grub-core/normal/completion.c (iterate_partition): Likewise.
20137 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
20138 contain partition. All users updated.
20139 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
20140 struct.
20141 (grub_openbsdlabel_partition_map): Likewise.
20142 (bsdlabel_partition_map_iterate): Rename to ..
20143 (iterate_real): ... this. New arguments sector, freebsd and pmap.
20144 (bsdlabel_partition_map_iterate): New function.
20145 (netopenbsdlabel_partition_map_iterate): Likewise.
20146 (netbsdlabel_partition_map_iterate): Likewise.
20147 (openbsdlabel_partition_map_iterate): Likewise.
20148 (GRUB_MOD_INIT): Register new partmaps.
20149 (GRUB_MOD_FINI): Unregister new partmaps.
20150 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
20151 (grub_partition_msdos_iterate): ... this. All users updated.
20152 Don't support embedding other than in a minix partition.
20153 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
20154 proto.
20155 * include/grub/partition.h (grub_partition): New field msdostype.
20156 * util/grub-install.in: Handle openbsd and netbsd types being in
20157 part_bsd module.
20158
1e8d555b
VS
201592010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20160
20161 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
20162
20163 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
20164 * grub-core/Makefile.core.def (mdraid): Renamed to ...
20165 (mdraid09): ... this.
20166 (mdraid1x): New module.
20167 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
20168 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
20169
899d8af4
VS
201702010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20171
20172 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
20173 vsprintf.
20174
40901acd
CW
201752010-09-20 Colin Watson <cjwatson@ubuntu.com>
20176
20177 * grub-core/commands/efi/lsefimmap.c: Correct header.
20178 * NEWS: Update.
20179
dfe3b247
CW
201802010-09-20 Colin Watson <cjwatson@ubuntu.com>
20181
20182 * util/grub-editenv.c (argp_parser): Don't pass translated strings
20183 as printf format strings; the translations might contain '%' which
20184 could cause a crash.
20185 (main): Likewise.
20186 * util/grub-fstest.c (argp_parser): Likewise.
20187 * util/grub-setup.c (argp_parser): Likewise.
20188 (main): Likewise.
20189
3286a4b4
VS
201902010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20191
20192 Use argp in grub-fstest.
20193
20194 * util/grub-fstest.c: Don't include getopt.h.
20195 Include argp.h.
20196 (root): New variable.
20197 (args_count): Likewise.
20198 (nparm): Likewise.
20199 (num_disks): Likewise.
20200 (images): Likewise.
20201 (cmd): Likewise.
20202 (debug_str): Likewise.
20203 (args): Likewise.
20204 (options): Transformed to argp.
20205 (usage): Removed.
20206 (main): Split argument parsing into ...
20207 (argp_parser): ... this. Changed to argp format.
20208 (argp): New variable.
20209 (main): Use argp_parse.
20210
3dccbe4b
TG
202112010-09-20 Tristan Gingold <gingold@free.fr>
202122010-09-20 Robert Millan <rmh.grub@aybabtu.com>
202132010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20214
20215 * grub-core/commands/efi/lsefimmap.c: New file.
20216 * grub-core/Makefile.core.def (lsefimmap): New module.
20217 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
20218
38c259a7
VS
202192010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20220
20221 Pause the execution (10s max) if any errors are displayed so the user
20222 has a chance to see them.
20223
20224 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
20225 (grub_print_error): Increment grub_err_printed_errors.
20226 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
20227 execution if any errors were displayed.
20228 (show_menu): Remove old code for pause.
20229 * grub-core/normal/menu_entry.c (run): Likewise.
20230 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
20231 users updated.
20232 (grub_normal_get_char_counter): Likewise.
20233 * include/grub/err.h (grub_err_printed_errors): New external variable.
20234 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
20235
f218b09c
VS
202362010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20237
20238 Support multiboot VBE info.
20239
20240 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
20241 Take VBE info into account.
20242 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
20243 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20244 Call fill_vbe_info when appropriate.
20245 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
20246 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
20247 as supported.
20248 (grub_multiboot_get_mbi_size): Take new tags into account.
20249 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
20250 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
20251 Call fill_vbe_tag when appropriate.
20252 (grub_multiboot_make_mbi): Properly align tags.
20253 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
20254 function.
20255 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
20256 proto.
20257 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
20258
a9cc5438
VS
202592010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20260
20261 Suport manual terminal geometry specification.
20262
20263 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
20264 Save state in grub_ofconsole_terminfo_output.
20265 (grub_ofconsole_term): Use grub_terminfo_getwh.
20266 (grub_ofconsole_getwh): Removed.
20267 * grub-core/term/serial.c (grub_serial_getwh): Removed.
20268 (grub_serial_term): Use grub_terminfo_getwh.
20269 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
20270 (options): New struct.
20271 (OPTION_*): New enum.
20272 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
20273 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
20274 width and height.
20275 (grub_terminfo_getwh): New proto.
20276 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
20277
1a8fed20
VS
202782010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20279
20280 Handle legacy "terminal" command.
20281
20282 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
20283 and FLAG_TERMINAL.
20284 (legacy_commands): Add terminal and title.
20285 (grub_legacy_parse): Handle terminal. Simplify title handling.
20286
41e9c57d
VS
202872010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20288
20289 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
20290 parameters overflow.
20291
61c874c5
CW
202922010-09-20 Colin Watson <cjwatson@ubuntu.com>
20293
20294 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
20295 widthspec.h.
20296
20297 * docs/grub.texi (Shell-like scripting): Document `!'.
20298 (Network): Simplify using new i386-pc-pxe format. Mention
20299 grub-mknetdir.
20300
20301 * NEWS: Update.
20302
943682b4
CW
203032010-09-20 Colin Watson <cjwatson@ubuntu.com>
20304
20305 * Makefile.am (SUBDIRS): Restore "."; it's important to force
20306 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
20307 when needed.
20308
6d3d698d
CW
203092010-09-20 Colin Watson <cjwatson@ubuntu.com>
20310
20311 * grub-core/commands/efi/lsefisystab.c: Correct header.
20312 * grub-core/commands/efi/lssal.c: Likewise.
20313 * grub-core/commands/testload.c: Likewise.
20314
c982589f
CW
203152010-09-20 Colin Watson <cjwatson@ubuntu.com>
20316
20317 * util/grub-mkrescue.in: Add explicit root argument to --set to
20318 prevent the UUID being interpreted as an argument to --set (matches
20319 previous change to prepare_grub_to_access_device).
20320
a63c31b6
CW
203212010-09-20 Colin Watson <cjwatson@ubuntu.com>
20322
20323 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
20324 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
20325 the verbosity of later #ifs.
20326 (find_partition_start): Define this function on FreeBSD too.
20327 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
20328 function.
20329 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
20330 on FreeBSD.
20331
6439b8ee
YB
203322010-09-20 Yves Blusseau <blusseau@zetam.org>
20333
20334 * util/grub-editenv.c: Use argp instead of getopt.
20335
c5930ec8
YB
203362010-09-20 Yves Blusseau <blusseau@zetam.org>
20337
20338 * util/grub-setup.c: Use argp instead of getopt.
20339
15c69261
YB
203402010-09-20 Yves Blusseau <blusseau@zetam.org>
20341
20342 Use gnulib-tool to create gnulib source files.
20343
20344 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
20345 grub-core/gnulib directories
20346 * .bzignore: Add **/.deps and autogenerated gnulib files
20347 * configure.ac: Assign auxiliary directory to build-aux, add invocation
20348 of gnulib macros, add grub-core/gnulib/Makefile
20349 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
20350 include m4 directory to aclocal.
20351 * Makefile.util.def: Remove direct compilation of gnulib source files
20352 and use the new grub-core/gnulib/libgnu.a.
20353 * build-aux/config.rpath: move config.rpath from top directory to
20354 build-aux
20355 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
20356 in gnulib headers
20357 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
20358 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
20359 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
20360 header.
20361 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
20362 string.
20363
e511c9f5
YB
203642010-09-20 Yves Blusseau <blusseau@zetam.org>
20365
20366 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
20367 grub-core/genmod.sh and grub-core/gensyminfo.sh
20368
c2dede05
BC
203692010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
20370
20371 Add a test for echo command options.
20372
20373 * tests/grub_cmd_echo.in: New test.
20374 * Makefile.util.def: Rules for new test.
20375
c55f5018
SJ
203762010-09-20 Szymon Janc <szymon@janc.net.pl>
20377
20378 Remove crc.mod and move crc command to hashsum.mod.
20379 Remove lib/crc.c - users updated to use gcrypt implementation.
20380
20381 * grub-core/commands/crc.c: Removed.
20382 * grub-core/Makefile.core.def (crc): Module removed.
20383 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
20384 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
20385 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
20386 * grub-core/lib/crc.c: Removed.
20387 * include/grub/lib/crc.h: Removed.
20388 * Makefile.util.def (crc): Remove lib/crc.c
20389 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
20390 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
20391 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
20392 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
20393 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
20394 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
20395
e0337366
VS
203962010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
20397
20398 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
20399
742f9232
VS
204002010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20401
20402 Split config.h for util and core.
20403
20404 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
20405 (ADDR32): Likewise.
20406 (DATA32): Likewise.
20407 (BSS_START_SYMBOL): Likewise.
20408 (END_SYMBOL): Likewise.
20409 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
20410 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
20411 * config.h.in: New file.
20412 * configure.ac: Use config-util.h as config define file.
20413 Rename MACHINE into GRUB_MACHINE. All users updated.
20414 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
20415 updated.
20416 (NESTED_FUNC_ATTR): Likewise.
20417 Substitue new variables.
20418 (COND_HAVE_ASM_USCORE): New conditional.
20419 * grub-core/Makefile.am (ASM_PREFIX): New variable.
20420 (kernel_syms.lst): Use ASM_PREFIX.
20421 * grub-core/kern/emu/console.c: Include config-util.h.
20422 * grub-core/kern/emu/misc.c: Likewise.
20423 * grub-core/kern/emu/mm.c: Likewise.
20424 * include/grub/emu/misc.h: Likewise.
20425 * include/grub/libgcc.h: Likewise.
20426
39feb0e8
VS
204272010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20428
20429 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
20430 constants usage.
20431 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
20432 Fix GRUB_TERM_KEY_* constants usage.
20433 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
20434
9af6dac3
VS
204352010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20436
20437 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
20438 print pointer.
20439 * grub-core/bus/usb/uhci.c: Remove empty define.
20440 (grub_uhci_check_transfer): Add missing cast.
20441 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
20442 print pointer.
20443 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
20444 PRIuGRUB_SIZE.
20445 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
20446
d6d94820
VS
204472010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20448
20449 * grub-core/Makefile.core.def (legacycfg): Add
20450 lib/i386/pc/vesa_modes_table.c on emu.
20451
3572f2b6
BC
204522010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20453
20454 Reduce number of temporary files generated by build system.
20455
20456 * grub-core/gencmdlist.sh: Removed.
20457 * grub-core/genfslist.sh: Removed.
20458 * grub-core/genhandlerlist.sh: Removed.
20459 * grub-core/genmodsrc.sh: Removed.
20460 * grub-core/genpartmaplist.sh: Removed.
20461 * grub-core/genparttoollist.sh: Removed.
20462 * grub-core/gentermiinallist.sh: Removed.
20463 * grub-core/genvideolist.sh: Removed.
20464
20465 * grub-core/genmod.sh.in: New file.
20466 * grub-core/gensyminfo.sh.in: New file.
20467
20468 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
20469 * conf/Makefile.extra-dist: Update with new files.
20470 * gentpl.py: Remove rules related to unnecessary temporary files.
20471 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
20472 and und-* files.
20473 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
20474 genmod.sh scripts.
20475 * grub-core/bus/usb/uhci.c: Remove empty #define.
20476 * grub-core/genmoddep.awk: Updated with new syminfo format.
20477 * util/bash-completion.d/Makefile.am: Add config.log to
20478 CLEANFILES.
20479
c836b030
YB
204802010-09-19 Yves Blusseau <blusseau@zetam.org>
20481
20482 * Makefile.util.def: Add forgotten $(LIBINTL) library.
20483
2f4e8053
BC
204842010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
20485
20486 * util/grub-mkconfig.in: Check the config script for syntax errors
20487 before saving.
20488
75831c34
CW
204892010-09-19 Colin Watson <cjwatson@ubuntu.com>
204902010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20491
20492 * Makefile.util.def (grub-install): Use util/grub-install.in on all
20493 platforms.
20494 * util/grub-install.in: Add EFI and IEEE1275 support.
20495 * util/i386/efi/grub-install.in: Removed.
20496 * util/ieee1275/grub-install.in: Likewise.
20497
eaf41b25
VS
204982010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
20499
20500 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
20501 (grub_cmd_cmosclean): Likewise.
20502 (GRUB_MOD_INIT): Register command cmosclean.
20503 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
20504 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
20505
1a9130dd
CPE
205062010-09-18 Carles Pina i Estany <carles@pina.cat>
205072010-09-18 Aleš Nesrsta <starous@volny.cz>
205082010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20509
20510 Add keyboard layouts support.
20511
20512 * Makefile.util.def (grub-mklayout): New file.
20513 (grub-kbdcomp): New script.
20514 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
20515 Add keyboard_layouts.h.
20516 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
20517 commands/boot.c on yeeloong.
20518 (keylayouts): New module.
20519 * grub-core/bus/usb/ohci.c
20520 * grub-core/bus/usb/uhci.c
20521 * grub-core/bus/usb/usbhub.c (rescan): New variable.
20522 (grub_usb_add_hub): Poll interrupt pipe for device handling.
20523 (attach_root_port): Likewise.
20524 (poll_nonroot_hub): Likewise.
20525 (grub_usb_poll_devices): Likewise.
20526 (detach_device): Close transfer.
20527 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
20528 function.
20529 (grub_usb_bulk_setup_readwrite): Likewise.
20530 (grub_usb_bulk_finish_readwrite): Likewise.
20531 * grub-core/commands/keylayouts.c: New file.
20532 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
20533 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
20534 aliases.
20535 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
20536 support scancode 2.
20537 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
20538 * include/grub/keyboard_layouts.h: New file.
20539 * util/grub-mklayout.c: New file.
20540 * util/grub-kbdcomp.in: Likewise.
20541
a1d84a5e
VS
205422010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20543
20544 Unify memory types.
20545
20546 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
20547 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
20548 types.
20549 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
20550 (grub_upper_mem): Likewise.
20551 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
20552 * include/grub/memory.h (grub_memory_type_t): New enum.
20553 All users updated.
20554
9696382e
VS
205552010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20556
20557 * grub-core/Makefile.core.def (lsapm): New module.
20558 * grub-core/commands/i386/pc/lsapm.c: New file.
20559 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
20560 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
20561 Likewise.
20562 * include/grub/i386/pc/apm.h: New file.
20563 * include/multiboot.h (multiboot_apm_info): New struct.
20564
205652010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
20566
20567 GRUB-legacy configuration file support.
20568
20569 * Makefile.util.def (grub-menulst2cfg): New util.
20570 * docs/man/grub-menulst2cfg.h2m: New file.
20571 * grub-core/Makefile.core.def (legacycfg): New module.
20572 * grub-core/commands/legacycfg.c: New file.
20573 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
20574 (grub_normal_add_menu_entry): ... this.
20575 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
20576 (grub_normal_set_password): ...this.
20577 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
20578 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
20579 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
20580 * grub-core/lib/legacy_parse.c: New file.
20581 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
20582 * include/grub/i386/pc/vesa_modes_table.h: New file.
20583 * include/grub/legacy_parse.h: Likewise.
20584 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
20585 * util/grub-menulst2cfg.c: New file.
20586
bf8d1338
CW
205872010-09-17 Colin Watson <cjwatson@ubuntu.com>
20588
20589 * grub-core/kern/emu/hostdisk.c
20590 (convert_system_partition_to_system_disk): Initialise node.
20591
9c0bad2e
CW
205922010-09-17 Colin Watson <cjwatson@ubuntu.com>
20593
20594 * grub-core/kern/emu/hostdisk.c
20595 (convert_system_partition_to_system_disk): Fix devmapper memory pool
20596 leak.
20597 Reported and based on patch by: Modestas Vainius.
20598
a939d135
CW
205992010-09-17 Colin Watson <cjwatson@ubuntu.com>
20600
20601 Fix DM-RAID probing with recent versions of device-mapper udev
20602 rules.
20603
20604 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
20605 canonicalise device paths under /dev/mapper/.
20606 (convert_system_partition_to_system_disk): Compare the
20607 uncanonicalised path to /dev/mapper/ rather than the canonicalised
20608 path, since device nodes under /dev/mapper/ are often symlinks.
20609
0f7ee3c9
YB
206102010-09-17 Yves Blusseau <blusseau@zetam.org>
20611
20612 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
20613
10854d0d
YB
206142010-09-16 Yves Blusseau <blusseau@zetam.org>
20615
20616 * configure.ac: Avoid some annoying error messages if freetype-config
20617 program is not found.
20618
108538d8
CW
206192010-09-16 Colin Watson <cjwatson@ubuntu.com>
20620
20621 Support RAID on virtio devices, and others.
20622
20623 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
20624 Rename to ...
20625 [__MINGW32__] (grub_find_device): ... this.
20626 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
20627 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
20628 reasonable default if dir is NULL.
20629 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
20630 ...
20631 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
20632 (grub_guess_root_device): Update callers.
20633 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
20634
20635 * util/raid.c (grub_util_getdiskname): Remove.
20636 (grub_util_raid_getmembers): Use grub_find_device rather than
20637 grub_util_getdiskname.
20638
e5bfc130
CW
206392010-09-16 Colin Watson <cjwatson@ubuntu.com>
20640
20641 * docs/grub.texi (serial): Remove obsolete comment about GRUB
20642 needing to be compiled with serial support.
20643 (ls): Indicate that multiple files are accepted.
20644 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
20645 indicate that multiple files are accepted.
20646
be458ae2
CW
206472010-09-16 Colin Watson <cjwatson@ubuntu.com>
20648
20649 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
20650 libgrub_a_init.c, and util/bash-completion.d/grub.
20651
cb731b5e
VS
206522010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20653
20654 * util/grub-setup.c (setup): Fix incorrect container semantics.
20655
35139e8a
VS
206562010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20657
20658 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
20659 misusage.
20660 Reported by: J. Nick Terry
20661
e50fca4a
VS
206622010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20663
20664 Move embedding routines to partmap sources files.
20665
20666 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
20667 [GRUB_UTIL]: New variable.
20668 (gpt_partition_map_iterate): Set part.parent.
20669 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
20670 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
20671 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
20672 New function.
20673 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
20674 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
20675 (grub_partition_map) [GRUB_UTIL]: New field embed.
20676 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
20677 (setup): Use ->embed.
20678
f00478b7
VS
206792010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20680
20681 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
20682 function.
20683 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
20684 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
20685
2b94e3ff
YB
206862010-09-15 Yves Blusseau <blusseau@zetam.org>
20687
20688 Add function to get completions from usage.
20689
20690 * util/bash-completion.d/grub-completion.bash.in: Add function to get
20691 completions from usage. Use LC_ALL=C to get options properly.
20692
2e04a006
VS
206932010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20694
20695 * grub-core/gnulib/basename-lgpl.c: Imported.
20696 * grub-core/gnulib/basename.c: Likewise.
20697 * grub-core/gnulib/dirname-lgpl.c: Likewise.
20698 * grub-core/gnulib/dirname.c: Likewise.
20699 * grub-core/gnulib/dirname.h: Likewise.
20700 * grub-core/gnulib/stripslash.c: Likewise.
20701
5dcdf93a
VS
207022010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
20703
20704 * grub-core/gnulib/error.c: Resynced.
20705 * grub-core/gnulib/getopt.c: Likewise.
20706 * grub-core/gnulib/getopt_int.h: Likewise.
20707 * grub-core/gnulib/regex.h: Likewise.
20708 * grub-core/gnulib/regex_internal.c: Likewise.
20709 * grub-core/gnulib/regex_internal.h: Likewise.
20710
014f47b7
SJ
207112010-09-15 Szymon Janc <szymon@janc.net.pl>
20712
20713 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
20714 CRC calculations and validity checks.
20715 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
20716 calculations.
20717
dd521a4a
SJ
207182010-09-15 Szymon Janc <szymon@janc.net.pl>
20719
20720 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
20721
79c4eeb9
VS
207222010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20723
20724 Fix incorrect echo options handling.
20725 Reported by: Yves Blusseau.
20726
20727 * include/grub/command.h (grub_command_flags_t): New flags
20728 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
20729 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
20730 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
20731
ed80f7d5
VS
207322010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20733
20734 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
20735 users updated.
20736 (GRUB_COMMAND_FLAG_MENU): Likewise.
20737 (GRUB_COMMAND_FLAG_BOTH): Likewise.
20738 (GRUB_COMMAND_FLAG_TITLE): Removed.
20739 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
20740 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
20741 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
20742 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
20743 (grub_command_flags_t): New enum. All users updated.
20744
5fe7620a
SG
207452010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
20746
20747 Fix solaris compilation.
20748
20749 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
20750 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
20751 (grub-emu-list): Likewise.
20752
545b752f
VS
207532010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20754
20755 Remove deprecated root command.
20756
20757 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
20758 updated.
20759
6c1a338c
VS
207602010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20761
20762 * util/i386/pc/grub-setup.c: Merge this ...
20763 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
20764 * util/grub-setup.c: ... into this.
20765 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
20766 New struct.
20767
207682010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20769
20770 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
20771 possible.
20772
d2ea4551
VS
207732010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20774
20775 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
20776 allocate p.
20777
3c3b5040
VS
207782010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20779
20780 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
20781 explicit root argument to set to prevent UUID to be interpreted as
20782 argument to set.
20783
b71c3fae
VS
207842010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20785
20786 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
20787
275433e6
VS
207882010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20789
20790 Don't export grub_gate_a20.
20791
20792 * grub-core/kern/i386/pc/init.c: Remove leftovers.
20793 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
20794 to ...
20795 (grub_gate_a20): ... this. All users updated.
20796 * include/grub/i386/pc/init.h: Removed. All users updated.
20797
a5dbb1f1
VS
207982010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20799
20800 Create euro.pf2 which supports most European languages.
20801
20802 * Makefile.am (grubdata_DATA): Add euro.pf2.
20803 (euro.pf2): New target.
20804 (CLEANFILES): Add euro.pf2.
20805
62a747cb
VS
208062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
20807
20808 * configure.ac: Disable emu-usb by default to prevent inadvertent
20809 device takeover.
20810
608e43b1
VS
208112010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20812
20813 Disable usbserial on grub-emu since our libusb code isn't good enough
20814 yet.
20815
20816 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
20817 (usbserial_pl2303): Likewise.
20818 (usbserial_ftdi): Likewise.
20819
94564f81
VS
208202010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20821
20822 * include/grub/disk.h (grub_disk): Remove has_partitions.
20823 All users updated.
20824 * disk/loopback.c (grub_loopback): Remove has_partitions.
20825 All users updated.
20826 (options): Remove partitions. All users updated.
20827 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
20828 * util/i386/pc/grub-setup.c (setup): copy partition table only when
20829 actual partition table is found.
20830
3352800b
VS
208312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20832
20833 Remove readability checks (too many false negatives).
20834
20835 * util/grub-install.in: Remove readability checks.
20836 * util/grub-mkconfig.in: Likewise.
20837 * util/grub.d/10_hurd.in: Likewise.
20838 * util/grub.d/10_kfreebsd.in: Likewise.
20839 * util/grub.d/10_linux.in: Likewise.
20840 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
20841 way.
20842
2419f17a
VS
208432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20844
20845 Enable acpi shutdown on all ACPI platforms.
20846
20847 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
20848 on coreboo, multiboot and EFI.
20849 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
20850 (grub_acpi_halt): Likewise.
20851 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
20852 (grub_cmd_halt): Don't call grub_acpi_halt directly.
20853 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
20854 * grub-core/lib/i386/halt.c (grub_halt)
20855 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
20856
0575c7c3
VS
208572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20858
20859 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
20860 context.
20861
54ac3cd1
VS
208622010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20863
20864 * grub-core/video/efi_gop.c: Fix over-80-chars line.
20865 * grub-core/video/efi_uga.c: Likewise.
20866
b2a30ac5
VS
208672010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20868
20869 Filter devaliases and never open same device twice.
20870
20871 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
20872 (last_ihandle): Likewise.
20873 (ofdisk_hash_ent): New member shortest.
20874 (ofdisk_hash_add): Add canonical path too.
20875 (scan): New function.
20876 (grub_ofdisk_iterate): Iterate over hashed entries.
20877 (compute_dev_path): Don't add :0.
20878 (grub_ofdisk_open): Don't really open the disk.
20879 (grub_ofdisk_close): Avoid closing unrelated disk.
20880 (grub_ofdisk_read): Implement reopen logic.
20881 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
20882 New function.
20883 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
20884 New proto.
20885
fb53b340
VS
208862010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20887
20888 Fix sparc64.
20889
20890 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
20891 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
20892 right address. Add sparc64_ieee1275_ldflags.
20893 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
20894 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
20895 to grub_host_to_target_addr
20896 (load_image): Likewise.
20897
f452b040
VS
208982010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20899
20900 * grub-core/normal/completion.c (complete_file): Handle device
20901 containing slash.
20902 Fix based on patch by Doug Nazar.
20903
9b5b2541
VS
209042010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20905
20906 grub-mknetdir script.
20907
20908 * Makefile.util.def (grub-mknetdir): New module.
20909 * tests/util/grub-shell.in: Support boot=net
20910 * util/grub-mknetdir.in: New file.
20911
9d2be652
VS
209122010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20913
20914 videoinfo on non-vbe.
20915
20916 * grub-core/Makefile.core.def (vbeinfo): Removed.
20917 (vbetest): Removed.
20918 (videoinfo): New module.
20919 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
20920 * grub-core/commands/i386/pc/vbetest.c: Removed.
20921 * grub-core/commands/videoinfo.c: New file.
20922 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
20923 specification.
20924 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
20925 as vbetest.
20926 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
20927 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
20928 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
20929 mode_number. New parameter mode. All users updated.
20930 (grub_video_gop_iterate): New function.
20931 (grub_video_efi_gop): New member iterate.
20932 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
20933 (grub_vbe_set_video_mode): Remove setting useless fields.
20934 (vbe2videoinfo): New function.
20935 (grub_video_vbe_iterate): Likewise.
20936 (grub_video_vbe_setup): Use vbe2videoinfo.
20937 (grub_video_vbe_print_adapter_specific_info): New function.
20938 (grub_video_vbe_adapter): New fields iterate and
20939 print_adapter_specific_info.
20940 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
20941 All users updated.
20942 (grub_video_mode_info): New field mode_number.
20943 (grub_video_adapter): New fields iterate and
20944 print_adapter_specific_info.
20945
179503f5
TG
209462010-09-13 Tristan Gingold <gingold@free.fr>
209472010-09-13 Robert Millan <rmh.grub@aybabtu.com>
209482010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20949
20950 * grub-core/commands/efi/lsefisystab.c: New file.
20951 * grub-core/commands/efi/lssal.c: Likewise.
20952 * grub-core/Makefile.core.def (lsacpi): New module.
20953 (lsefisystab): Likewise.
20954 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
20955 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
20956 (grub_efi_sal_system_table): New struct.
20957 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
20958 (grub_efi_sal_system_table_memory_descriptor): Likewise.
20959 (grub_efi_sal_system_table_platform_features): Likewise.
20960 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
20961 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
20962 (grub_efi_sal_system_table_ap_wakeup): Likewise.
20963 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
20964
cf9827de
VS
209652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20966
20967 Support explicit user claim that a device is BIOS-visible.
20968
20969 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
20970 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
20971 * grub-core/kern/emu/hostdisk.c
20972 (convert_system_partition_to_system_disk): Support mdX.
20973 (find_system_device): New parameter add. All users updated.
20974 (grub_util_biosdisk_is_present): New function.
20975 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
20976 proto.
20977
53f0eb1f
VS
209782010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
20979
20980 Search hints support.
20981
20982 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
20983 All users updated.
20984
b23ffd70
YB
209852010-09-13 Yves Blusseau <blusseau@zetam.org>
20986
20987 Bash completion script for util commands
20988
20989 * Makefile.am: Add util/bash-completion.d directory
20990 * configure.ac: Likewise.
20991 * util/bash-completion.d/Makefile.am: New file.
20992 * util/bash-completion.d/grub-completion.bash.in: Likewise.
20993
d547dc28
VS
209942010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
20995
20996 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
20997 (print_backlog): set backlog_ucs4 and backlog_glyphs.
20998 Reported by: Yves Blusseau.
20999
2fc8ccb9
VS
210002010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21001
21002 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
21003 partition size and offset.
21004
d8a84076
VS
210052010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21006
21007 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
21008
84fb3b3d
VS
210092010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21010
21011 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
21012
768ec2e2
VS
210132010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21014
21015 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
21016 (grub_xvasprintf): Likewise.
21017
4870900f
VS
210182010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21019
21020 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
21021
faca6bec
VS
210222010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
21023
21024 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
21025 args ending with NULL.
21026
210272010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
21028
21029 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
21030 pointer.
21031
3c70f225
SJ
210322010-09-11 Szymon Janc <szymon@janc.net.pl>
21033
21034 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
21035
4df7996d
VS
210362010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21037
21038 Shutdown using ACPI.
21039
21040 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
21041 * grub-core/commands/acpihalt.c: New file.
21042 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
21043 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
21044 (grub_acpi_halt): New proto.
21045 (GRUB_ACPI_SLP_EN): New const.
21046 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
21047 (GRUB_ACPI_OPCODE_*): New enum.
21048 (GRUB_ACPI_EXTOPCODE_*): Likewise.
21049
126b4c32
TG
210502010-09-11 Tristan Gingold <gingold@free.fr>
210512010-09-11 Robert Millan <rmh.grub@aybabtu.com>
210522010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21053
21054 * commands/lsacpi.c: New file.
21055 * grub-core/Makefile.core.def (lsacpi): New module.
21056 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
21057 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
21058 (grub_acpi_madt_entry_header): New struct.
21059 (grub_acpi_madt): Likewise.
21060 (grub_acpi_madt_entry_interrupt_override): Likewise.
21061 (grub_acpi_madt_entry_sapic): Likewise.
21062 (grub_acpi_madt_entry_lsapic): Likewise.
21063 (grub_acpi_madt_entry_platform_int_source): Likewise.
21064 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
21065 (PRIuGRUB_UINT32_T): Likewise.
21066 (PRIxGRUB_UINT64_T): Likewise.
21067
1aa4fe88
VS
210682010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21069
21070 Implement loading palette on ieee1275_fb.
21071
21072 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
21073 (have_setcolors): Likewise.
21074 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
21075 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
21076 (grub_video_ieee1275_set_palette): Implement.
21077
25761e13
VS
210782010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
210792010-09-11 Colin Watson <cjwatson@ubuntu.com>
21080
21081 * util/grub-install.in (grub_partition): New variable.
21082 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
21083 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
21084 Fixes a bug reported by Yves Blusseau.
21085
050abaea
VS
210862010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
21087
21088 Fix emu on mipsel.
21089
21090 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
21091 =grub_cpu_flush_cache on all mips and not only yeeloong.
21092 * configure.ac (COND_mips): New conditional.
21093 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
21094 platforms.
21095 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
21096 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
21097 [GRUB_LINKER_HAVE_INIT]: New function.
21098 (grub_emu_post_init): Likewise.
21099 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
21100 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
21101 * include/grub/cache.h (_mips): Include mips/cache.h.
21102 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
21103 LVM and RAID prototypes.
21104 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
21105 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
21106 function.
21107
5ed7d816
CW
211082010-09-10 Colin Watson <cjwatson@ubuntu.com>
21109
21110 * util/grub-install.in: Don't try to verify core.img until after
21111 running grub-mkimage to create it.
21112
90367e04
RM
211132010-09-10 Robert Millan <rmh@gnu.org>
21114
21115 * util/grub.d/10_hurd.in: Add misc readability checks.
21116 * util/grub.d/10_kfreebsd.in: Likewise.
21117 * util/grub.d/10_linux.in: Likewise.
21118
c452fa66
CW
211192010-09-10 Colin Watson <cjwatson@ubuntu.com>
21120
21121 * util/grub-install.in: ${imgext} won't be defined here until the
21122 install branch is merged. For the meantime, only verify core.img on
21123 i386-pc and sparc64-ieee1275 platforms.
21124
c38fe9f4
RM
211252010-09-10 Robert Millan <rmh@gnu.org>
21126
21127 Solaris support in grub_find_zpool_from_dir(). Thanks
21128 Seth Goldberg for referring to getextmntent() facility.
21129
21130 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
21131 `sys/mkdev.h'.
21132 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
21133 `<sys/mnttab.h>'.
21134 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
21135 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
21136 method for finding zpool name.
21137
905f7773
CW
211382010-09-10 Colin Watson <cjwatson@ubuntu.com>
21139
21140 grub-fstest needs the host and hostfs modules while other utilities
21141 actively require those modules to be absent, so grub-fstest needs
21142 its own initialisation and finalisation code.
21143
21144 * Makefile.am (grub_fstest.pp): New target.
21145 (grub_fstest_init.lst): Likewise.
21146 (grub_fstest_init.c): Likewise.
21147 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
21148
fb90b546
RM
211492010-09-10 Robert Millan <rmh@gnu.org>
21150
21151 * configure.ac: Check for `struct statfs.f_fstypename' and
21152 `struct statfs.f_mntfromname'.
21153
21154 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
21155 kFreeBSD-specific code.
21156
66d4bea5
RM
211572010-09-10 Robert Millan <rmh@gnu.org>
21158
21159 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
21160 on ZFS. Now non-main filesystems are supported as / too.
21161
b6a690ee
CW
211622010-09-09 Colin Watson <cjwatson@ubuntu.com>
21163
21164 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
21165 and grub-core/disk/host.c to ...
21166 (grub-fstest): ... here. Having the host disk implementation
21167 present confuses grub-probe and other utility programs.
21168
21169 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
21170 when writing to a file, not when writing to stdout.
21171
8901b00c 211722010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
21173
21174 * tests/partmap_test.in: New test for partitions.
21175 * Makefile.util.def: Rules for new test.
21176
7bf45fdd
RM
211772010-09-09 Robert Millan <rmh@gnu.org>
21178
21179 * util/grub-probe.c (probe): Fix a pair of unhandled error
21180 conditions.
21181
4dfbc574
RM
211822010-09-09 Robert Millan <rmh@gnu.org>
21183
21184 Basic Btrfs support (detection and UUID).
21185
21186 * grub-core/fs/btrfs.c: New file.
21187 * Makefile.util.def (library): Register btrfs.c.
21188 * grub-core/Makefile.core.def: Likewise.
21189
6b8e78ae
RM
211902010-09-08 Robert Millan <rmh@gnu.org>
21191
21192 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
21193 with (optional) parameters to specify device and relative path.
21194 * util/grub-install.in: Use is_path_readable_by_grub() to
21195 verify readability of a few critical files.
21196 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
21197 verify readability of grub.cfg.new.
21198
27f21a8b
VS
211992010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21200
21201 Split minix.mod into minix.mod and minix2.mod.
21202
21203 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
21204 * grub-core/Makefile.core.def (minix2): New module.
21205 * grub-core/fs/minix.c: Use definitions instead of runtime version
21206 checking.
21207 * grub-core/fs/minix2.c: New file.
21208
c0e53ea5
YB
212092010-09-08 Yves Blusseau <blusseau@zetam.org>
21210
21211 Add new --boot-directory option to replace --root-directory
21212
21213 * util/grub-install.in: Add new --boot-directory option
21214 * util/grub-reboot.in: Likewise.
21215 * util/grub-set-default.in: Likewise.
21216
b9fe6ea2
YB
212172010-09-08 Yves Blusseau <blusseau@zetam.org>
21218
21219 * util/grub-mkconfig.in: Use new variable.
21220
d87aedff
YB
212212010-09-08 Yves Blusseau <blusseau@zetam.org>
21222
21223 * configure.ac: Define some useful variables.
21224
e55e8495
VS
212252010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
21226
21227 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21228 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
21229 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
21230 Use terminfo and don't use cursor-on/cursor-off unless it's known
21231 to work.
21232 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
21233 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
21234
6fa6d675
CW
212352010-09-08 Colin Watson <cjwatson@ubuntu.com>
21236
21237 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
21238 starts with "(,", fill the drive containing the loaded image in
21239 between those two characters, but expect that a full partition
21240 specification including partition map names will follow.
21241
92f2aef0
RM
212422010-09-08 Robert Millan <rmh@gnu.org>
21243
21244 * configure.ac: Remove `--enable-grub-fstest' option.
21245 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
21246
21247 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
21248 `grub-fstest' instead of `grub-probe' for readability verification.
21249 * util/grub-probe.c (probe): Remove readability verification kludge.
21250
99fd620d
RM
212512010-09-08 Robert Millan <rmh@gnu.org>
21252
21253 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
21254 initializing `GRUB_FS'.
21255
058e30ac 212562010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
21257
21258 Not command (!) support to GRUB script.
21259
21260 * tests/grub_script_not.in: New test.
21261 * Makefile.util.def: Rules for new test.
21262
21263 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
21264 ! command as a special case.
21265 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
21266
b61d05ed 212672010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21268
058e30ac 21269 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
21270 grub_free.
b61d05ed 21271
4d69c786 212722010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21273
21274 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
21275
aa3119c4 212762010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
21277
21278 * docs/grub.texi (Shell-like scripting): Documentation for break,
21279 continue, shift and return commands.
21280
db0f7e3d
VS
212812010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
21282
21283 Rename CD-ROM to cd on BIOS.
21284
21285 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
21286 "cd".
21287 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
21288
88b87c93
VS
212892010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21290
21291 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
21292 * util/grub-probe.c (main): Likewise.
21293 * util/i386/pc/grub-setup.c (main): Likewise.
21294 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21295 Reported and debugged by: alexxy
21296
294f324d
VS
212972010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21298
21299 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
21300 diagnostic info.
21301
d7ee3441
JS
213022010-09-05 Jo Shields <directhex@apebox.org>
21303
21304 * util/grub.d/30_os-prober.in: Add missing classes.
21305
d7e06c1f
VS
213062010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21307
21308 * docs/grub.texi (Theme file format): Document new position format.
21309
fc157e53
VS
213102010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21311
21312 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
21313 a table. Use @code instead of @verbatim.
21314
506e9a1c
CB
213152010-09-05 Colin D Bennett <colin@gibibit.com>
21316
21317 Gfxmenu documentation.
21318
21319 * docs/grub.texi (Theme file format): New chapter.
21320
f0aff67c
SJ
213212010-09-05 Szymon Janc <szymon@janc.net.pl>
21322
21323 * grub-core/Makefile.core.def (xzio): New module.
21324 * grub-core/io/xzio.c: New file.
21325 * grub-core/lib/xzembed/xz.h: New file (from xembed).
21326 * grub-core/lib/xzembed/xz_config.h: Likewise.
21327 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
21328 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
21329 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
21330 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
21331 * grub-core/lib/xzembed/xz_private.h: Likewise.
21332 * grub-core/lib/xzembed/xz_stream.h: Likewise.
21333 * include/grub/file.h (grub_file_filter_id): New compression filter
21334 GRUB_FILE_FILTER_XZIO.
21335
82a85062
VS
213362010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21337
21338 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
21339 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
21340 size.
21341
3579415d
VS
213422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21343
21344 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
21345 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
21346
5124ae6d
VS
213472010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21348
21349 Uncompressed checksum support.
21350
21351 * grub-core/commands/hashsum.c (options): Add option --uncompress.
21352 (check_list): New parameter uncompress.
21353 (grub_cmd_hashsum): Handle --uncompress.
21354
9aadb3d1
VS
213552010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21356
21357 Reintroduce testload.
21358
21359 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
21360 from here ...
21361 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
21362 (GRUB_MOD_INIT): New function.
21363 (GRUB_MOD_FINI): Likewise.
21364 * grub-core/Makefile.core.def (testload): New module.
21365
a17792c3
SJ
213662010-09-05 Szymon Janc <szymon@janc.net.pl>
21367
21368 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
21369 (uint8_t): New type.
21370 (uint16_t): Likewise.
21371 (uint32_t): Likewise.
21372 (uint64_t): Likewise.
21373
b81e40a3
SJ
213742010-09-05 Szymon Janc <szymon@janc.net.pl>
21375
21376 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
21377
fc2ef117
VS
213782010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
21379
21380 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
21381 Made static.
21382 (grub_gzfile_open): Removed. All users updated.
21383 (GRUB_MOD_INIT): New function.
21384 (GRUB_MOD_FINI): Likewise.
21385 * grub-core/kern/file.c (grub_file_filters_all): New variable.
21386 (grub_file_filters_enabled): Likewise.
21387 (grub_file_open): Handle filters.
21388 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
21389 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
21390 * include/grub/file.h (grub_file_filter_id_t): New type.
21391 (grub_file_filter_t): Likewise.
21392 (grub_file_filters_all): New extern variable.
21393 (grub_file_filters_enabled): Likewise.
21394 (grub_file_filter_register): New inline function.
21395 (grub_file_filter_unregister): Likewise.
21396 (grub_file_filter_disable): Likewise.
21397 (grub_file_filter_disable_compression): Likewise.
21398 * include/grub/gzio.h: Removed.
21399
35ee15e0
BC
214002010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21401
21402 Filename expansion support for wildcards in GRUB script.
21403
21404 * tests/grub_script_expansion.in: New test.
21405 * Makefile.util.def: Rule for new test.
21406
21407 * grub-core/commands/wildcard.c: New file, implements filename
21408 expansion support for GRUB script.
21409 * grub-core/Makefile.core.def: Rule update for regexp.mod.
21410 * grub-core/script/argv.c: Cosmetic changes.
21411 * grub-core/script/execute.c (grub_script_arglist_to_argv):
21412 Refactored to perform wildcard expansion on arguments.
21413 * include/grub/script_sh.h (grub_script_wildcard_translator): New
21414 struct.
21415
21416 * tests/util/grub-shell.in: Fix quoting for read input.
21417
5f0c4aca
BC
214182010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21419
21420 Support for updating environment variables with matched substrings
21421 of regexp.
21422
21423 * tests/grub_cmd_regexp.in: New test.
21424 * Makefile.util.def: Rule for new test.
21425
21426 * grub-core/commands/regexp.c: New option -s to update environment
21427 variables with regexp matches.
21428
3759a35f
SJ
214292010-09-04 Szymon Janc <szymon@janc.net.pl>
21430
21431 * include/grub/file.h (grub_file): New member not_easly_seekable.
21432 (grub_file_seekable): New inline function.
21433 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
21434 easily seekable.
21435 (grub_gzio_open): Set not_easly_seekable.
21436 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
21437 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
21438
ed8c6dec
BC
214392010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21440
21441 Support for options to appear multiple times on cmdline.
21442
21443 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
21444 * grub-core/commands/extcmd.c: Support for repeatable option.
21445 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
21446 repeatable option support.
21447
21448 Refactor menuentry into a regular command.
21449
21450 * grub-core/commands/menuentry.c: New file, menuentry command
21451 implementation.
21452 * grub-core/Makefile.core.def: Rule update for normal.mod.
21453 * grub-core/normal/main.c: Moved menuentry creation to
21454 grub-core/commands/menuentry.c.
21455 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
21456 (grub_menu_execute_entry_real): Removed.
21457 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
21458 function.
21459 (grub_script_execute_menuentry): Removed.
21460 * grub-core/script/parser.y (menuentry): Removed.
21461 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
21462 * grub-core/script/yylex.l (menuentry): Removed.
21463 * include/grub/menu.h (grub_menu_init): New prototype.
21464 (grub_menu_fini): New prototype.
21465 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
21466 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
21467 (grub_script_execute_sourcecode): New prototype.
21468
dacd0cf0
BC
214692010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21470
21471 "return" command for GRUB script functions.
21472
21473 * tests/grub_script_return.in: New test.
21474 * Makefile.util.def: Rules for new test.
21475
21476 * grub-core/script/execute.c (grub_script_return): New function.
21477 * grub-core/script/main.c: Register/unregister return commaond.
21478 * include/grub/script_sh.h (grub_script_return): New prototype.
21479
52e72f9d
BC
214802010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21481
21482 "setparams" command to update positional parameters.
21483
21484 * tests/grub_script_setparams.in: New test.
21485 * Makefile.util.def: Rules for new test.
21486
21487 * grub-core/script/argv.c (grub_script_argv_make): New function.
21488 * grub-core/script/execute.c (replace_scope): New function.
21489 (grub_script_setparams): New function.
21490 * grub-core/script/lexer.c: Remove unused variables.
21491 * grub-core/script/main.c: Register/unregister setparams command.
21492 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
21493 (grub_script_setparams): New prototype.
21494
25b60c91
BC
214952010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21496
21497 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
21498 grub_free order.
21499
37e7bf68
BC
215002010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21501
21502 Support for passing block of commands as an argument to extcmds.
21503
21504 * Makefile.util.def: Rules for new test.
21505 * tests/grub_script_blockarg.in: New test.
21506 * grub-core/tests/test_blockarg.c: New file, block argument
21507 command used in the test.
21508
21509 * include/grub/extcmd.h (grub_extcmd_context): New struct.
21510 (grub_register_extcmd_prio): New function prototype.
21511 (grub_extcmd_dispatcher): New function prototype.
21512 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
21513 type.
21514 * include/grub/script_sh.h (struct grub_script): New members
21515 `children', `next_siblings' and `refcnt' for block arguments and
21516 reference counting.
21517 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
21518 (grub_script_arg): New member `script' for block argument.
21519 (grub_script_argv): New member `script' for block argument.
21520 (grub_parser_param): New member `scripts' for block argument.
21521 (grub_script_mem_free): New extern function prototype.
21522 (grub_script_ref): New function prototype.
21523 (grub_script_unref): New function prototype.
21524
21525 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
21526 extcmd form to support block arguments.
21527 * grub-core/script/argv.c: Block arguments support.
21528 * grub-core/script/execute.c: Likewise.
21529 * grub-core/script/lexer.c: Likewise.
21530 * grub-core/script/main.c: Likewise.
21531 * grub-core/script/script.c: Likewise.
21532 * grub-core/script/parser.y: Likewise. New `block' and `block0'
21533 non-terminals.
21534
21535 * grub-core/commands/acpi.c: Update extcmd implementations with
21536 grub_extcmd_context_t.
21537 * grub-core/commands/cat.c: Likewise.
21538 * grub-core/commands/echo.c: Likewise.
21539 * grub-core/commands/extcmd.c: Likewise.
21540 * grub-core/commands/hashsum.c: Likewise.
21541 * grub-core/commands/hdparm.c: Likewise.
21542 * grub-core/commands/help.c: Likewise.
21543 * grub-core/commands/hexdump.c: Likewise.
21544 * grub-core/commands/i386/cpuid.c: Likewise.
21545 * grub-core/commands/i386/pc/drivemap.c: Likewise.
21546 * grub-core/commands/i386/pc/halt.c: Likewise.
21547 * grub-core/commands/i386/pc/sendkey.c: Likewise.
21548 * grub-core/commands/iorw.c: Likewise.
21549 * grub-core/commands/keystatus.c: Likewise.
21550 * grub-core/commands/loadenv.c: Likewise.
21551 * grub-core/commands/ls.c: Likewise.
21552 * grub-core/commands/lspci.c: Likewise.
21553 * grub-core/commands/memrw.c: Likewise.
21554 * grub-core/commands/probe.c: Likewise.
21555 * grub-core/commands/search_wrap.c: Likewise.
21556 * grub-core/commands/setpci.c: Likewise.
21557 * grub-core/commands/sleep.c: Likewise.
21558 * grub-core/disk/loopback.c: Likewise.
21559 * grub-core/hello/hello.c: Likewise.
21560 * grub-core/loader/i386/bsd.c: Likewise.
21561 * grub-core/loader/xnu.c: Likewise.
21562 * grub-core/term/gfxterm.c: Likewise.
21563 * grub-core/term/serial.c: Likewise.
21564 * grub-core/tests/lib/functional_test.c: Likewise.
21565
888d1500
BC
215662010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
21567
21568 Multi-line quoted strings support.
21569
21570 * grub-core/script/lexer.c (append_newline): Removed.
21571 (grub_script_lexer_yywrap): Refactored.
21572 (grub_script_lexer_init): Refactored.
21573 * grub-core/script/yylex.l (yywrap): New function.
21574 (grub_lexer_resplit): New function.
21575 (grub_lexer_unput): New function.
21576 * include/grub/script_sh.h (grub_lexer_param): New members, unput
21577 and resplit.
21578 * tests/grub_script_echo1.in: Added few more testcases.
21579
dda060dd
VS
215802010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21581
21582 * grub-core/kern/misc.c: Don't add abort alias in utils.
21583 Reported by: echoline.
21584
6556eba9
BC
215852010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
21586
21587 Add missing files into "make dist" tarball for other platforms.
21588
21589 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
21590 * conf/Makefile.common (dist_noinst_DATA): New variable.
21591 * conf/Makefile.extra-dist: Added missing make dist files.
21592 * grub-core/Makefile.core.def: Likewise.
21593
c8e7bf5f
VS
215942010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21595
21596 Compress grub_prefix.
21597
21598 * grub-core/boot/i386/pc/lnxboot.S: Use
21599 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
21600 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
21601 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
21602 GRUB_MACHINE_PREFIX_END. All users updated.
21603 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
21604 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
21605 + 0x40.
21606 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
21607 * util/grub-mkimage.c (image_target_desc): Change data_end to
21608 prefix_end. All users updated.
21609
a7c00cdb
VS
216102010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
21611
21612 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
21613 value.
21614 (grub_openbsd_boot): Likewise.
21615 (grub_netbsd_boot): Likewise.
21616 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
21617 (grub_xnu_boot): Likewise.
21618
9f915872
VS
216192010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21620
21621 * configure.ac: Clean LIBS variable after tests.
21622
efa1bee7
CW
216232010-09-02 Colin Watson <cjwatson@ubuntu.com>
21624
21625 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
21626
61d720e5
VS
216272010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21628
21629 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
21630 echo if libdevmapper will be used.
21631
ef8e0ec8
IT
216322010-09-02 Ian Turner <Ian.Turner@deshaw.com>
21633
21634 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
21635 constant for the same file.
21636
03e261d8
VS
216372010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21638
21639 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
21640
c2a4eba6
CW
216412010-09-02 Colin Watson <cjwatson@ubuntu.com>
21642
21643 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
21644 grub-core/*.pp.
21645
9056cbf3
CW
216462010-09-02 Colin Watson <cjwatson@ubuntu.com>
21647
21648 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
21649 required by the boot protocol.
21650
21651 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
21652 ebp and edi members.
21653 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
21654 state.ebp and state.edi.
21655 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
21656 %ebp and %edi according to grub_relocator32_ebp and
21657 grub_relocator32_edi respectively.
21658 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
21659 and state.edi.
21660
529cc99a
VS
216612010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21662
21663 Add i386-pc-pxe image target.
21664
21665 * util/grub-mkimage.c (image_target_desc): New enum value
21666 IMAGE_I386_PC_PXE.
21667 (image_targets): New target i386-pc-pxe.
21668 (generate_image): Handle i386-pc-pxe image.
21669
9a093920
VS
216702010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21671
21672 Fix grub_pxe_scan.
21673
21674 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
21675 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
21676 All users updated.
21677 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
21678 (grub_pxe_pxenv): Correct type.
21679
f9cefc4e
CW
216802010-09-01 Colin Watson <cjwatson@ubuntu.com>
21681
21682 * NEWS: Document most of the important changes since 1.98.
21683
4066f57f
CW
216842010-09-01 Colin Watson <cjwatson@ubuntu.com>
21685
21686 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
21687 generated manual page) a little.
21688
da2891f9
CW
216892010-09-01 Colin Watson <cjwatson@ubuntu.com>
21690
21691 * docs/grub.texi: Add myself as an author.
21692
ad717fae
VS
216932010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21694
21695 * Makefile.util.def (libgrub.a): Add missing sunpc.
21696 Reported by: Seth Goldberg.
21697
eefe8abd
VS
216982010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21699
21700 Interrupt wrapping and code simplifications.
21701
9494ef9a
VS
21702 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
21703 x86_noieee1275 which are functionaly equivalent in this case.
21704 (grub-install): Make source on each platform explicit. Enable on
21705 all noemu.
21706 * gentpl.py (x86_efi_pc): Removed group.
21707 (x86_noefi): Likewise.
21708 (i386_noefi): Likewise.
21709 (x86_noieee1275): Likewise.
21710 (i386_noieee1275): Likewise.
21711 (i386_noefi_noieee1275): Likewise.
21712 (i386_pc_qemu_coreboot): Likewise.
21713 (i386_coreboot_multiboot): Likewise.
21714 (i386_pc_coreboot_multiboot_qemu): Likewise.
21715 (x86_noefi_mips): Likewise.
21716 (noieee1275): Likewise.
21717 (ieee1275_mips): Likewise.
21718 (noemu_noieee1275): Likewise.
21719 (cmos): New group.
21720 (usb): Likewise.
21721 (videoinkernel): Likewise.
21722 (videomodules): Likewise.
eefe8abd 21723 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
21724 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
21725 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
21726 include/grub/loader.h, include/grub/msdos_partition.h,
21727 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
21728 include/grub/machine/console.h, include/grub/machine/vga.h,
21729 include/grub/machine/vbe.h, include/grub/machine/init.h,
21730 include/grub/machine/kernel.h, include/grub/cpu/time.h,
21731 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 21732 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
21733 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
21734 * grub-core/Makefile.core.def (kernel): Explicit the source for
21735 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
21736 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
21737 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
21738 Use videoinkernel tag.
21739 (usb): Enable on all usb.
21740 (usbserial_common): Likewise.
21741 (usbserial_pl2303): Likewise.
21742 (usbserial_ftdi): Likewise.
21743 (uhci): Enable on all x86.
21744 (ohci): Enable on all pci.
21745 (cmostest): Enable on all CMOS.
21746 (acpi): Include commands/acpi.c on all platforms.
21747 (halt): Add relevant lib/*/halt.c.
21748 (hdparm): Enable on all pci.
21749 (lspci): Likewise.
21750 (usbtest): Enable on all usb.
21751 (ata): Enable on all pci.
21752 (ata_pthru): Likewise.
21753 (usbms): Enable on all usb.
21754 (usb_keyboard): Likewise.
21755 (font): Use tag videomodules.
21756 (bufio): Likewise.
21757 (datetime): Use tag cmos. Enable on all noemu.
21758 (mmap): Use tags common and x86.
21759 (gfxterm): Use tag videomodules.
21760 (bitmap): Likewise.
21761 (bitmap_scale): Likewise.
21762 (video_fb): Likewise.
21763 (video): Likewise.
21764 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
21765 adjust padding accordingly. All users updated.
21766 (grub_ohci_transaction): Fix bad format specification.
21767 (GRUB_MOD_INIT): Add asserts for struct size.
21768 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
21769 (grub_alloc_td): Likewise.
21770 (grub_free_queue): Likewise.
21771 (grub_uhci_transfer): Likewise.
21772 (grub_uhci_transaction): Fix bad format specification.
21773 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21774 (grub_usb_bulk_readwrite): Likewise.
21775 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
21776 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
21777 Made static.
21778 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
21779 Made static.
21780 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
21781 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
21782 Transformed into C.
21783 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
21784 Moved from here ...
21785 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
21786 ... here. Transformed into C. Made static.
21787 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
21788 Moved from here ...
21789 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
21790 ... here. Transformed into C. Made static.
21791 * grub-core/kern/i386/pc/startup.S
21792 (grub_biosdisk_check_int13_extensions): Moved from here ...
21793 * grub-core/disk/i386/pc/biosdisk.c
21794 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
21795 Made static.
21796 * grub-core/kern/i386/pc/startup.S
21797 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
21798 * grub-core/disk/i386/pc/biosdisk.c
21799 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
21800 Transformed into C. Made static.
21801 * grub-core/kern/i386/pc/startup.S
21802 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
21803 * grub-core/disk/i386/pc/biosdisk.c
21804 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
21805 Transformed into C. Made static.
21806 * grub-core/kern/i386/pc/startup.S
21807 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
21808 * grub-core/disk/i386/pc/biosdisk.c
21809 (grub_biosdisk_get_diskinfo_standard): ... here.
21810 Transformed into C. Made static.
21811 * grub-core/kern/i386/pc/startup.S
21812 (grub_biosdisk_get_num_floppies): Moved from here ...
21813 * grub-core/disk/i386/pc/biosdisk.c
21814 (grub_biosdisk_get_num_floppies): ... here.
21815 Transformed into C. Made static.
21816 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
21817 New function.
21818 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
21819 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
21820 Transformed into C. Made static.
21821 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
21822 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
21823 Transformed into C. Made static.
21824 * grub-core/kern/i386/ieee1275/init.c: Removed.
21825 * grub-core/kern/i386/misc.S: Likewise.
21826 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
21827 Splitted from here ...
21828 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
21829 Transformed into C. Made static. All users updated.
21830 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
21831 Transformed into C. Made static. All users updated.
21832 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
21833 Moved from here...
21834 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
21835 Transformed into C. Made static. All users updated.
21836 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
21837 Moved from here...
21838 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
21839 Transformed into C. Made static. All users updated.
21840 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
21841 Removed (replaced by C version).
21842 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
21843 Moved from here...
21844 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
21845 Transformed into C. Made static.
21846 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
21847 Moved from here...
21848 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
21849 ... here. Transformed into C.
21850 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
21851 Moved from here...
21852 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
21853 ... here. Transformed into C.
21854 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
21855 Moved from here...
21856 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
21857 ... here. Transformed into C. Made static.
21858 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
21859 Moved from here...
21860 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
21861 ... here. Transformed into C.
21ed554b
VS
21862 * grub-core/kern/i386/pc/startup.S
21863 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
21864 * grub-core/video/i386/pc/vbe.c
21865 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
21866 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
21867 Moved from here...
21868 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
21869 ... here. Transformed into C.
21870 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
21871 Moved from here...
21872 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
21873 ... here. Transformed into C.
21874 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
21875 Moved from here...
21876 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
21877 ... here. Transformed into C.
21878 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
21879 Moved from here...
21880 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
21881 ... here. Transformed into C.
21882 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
21883 Moved from here...
21884 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
21885 ... here. Transformed into C. Made static.
21886 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
21887 Moved from here...
21888 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
21889 ... here. Transformed into C. Made static.
21890 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
21891 Moved from here...
21892 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
21893 ... here. Transformed into C. Made static.
21894 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
21895 pxe_rm_entry as third argument.
21896 (grub_bios_interrupt): New function.
21897 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
21898 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
21899 of calling grub_stop.
21900 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
21901 * grub-core/lib/efi/halt.c (grub_halt): ...here.
21902 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
21903 * grub-core/lib/emu/halt.c (grub_halt): ... here.
21904 * grub-core/lib/i386/halt.c: Moved from here ...
21905 * grub-core/lib/i386/halt.c: ... here.
21906 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
21907 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
21908 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
21909 grub_stop_floppy.
21910 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
21911 * include/grub/i386/coreboot/init.h: Removed.
21912 * include/grub/i386/multiboot/init.h: Likewise.
21913 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
21914 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
21915 * include/grub/i386/pc/int.h: New file.
21916 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
21917 (grub_pxe_scan): Removed.
21918 (grub_pxe_call): Update prototype.
21919 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
21920 prototypes.
21921 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
21922 * include/grub/i386/qemu/init.h: Removed.
21923 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
21924 noreturn.
21925 (grub_halt): Likewise.
21926 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
21927 (grub_reboot): Likewise.
21928 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
21929 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
21930 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
21931
215dd471
RM
219322010-08-30 Robert Millan <rmh@gnu.org>
21933
21934 * NEWS: Document addition of ZFS support in `grub-install' and
21935 `grub-mkconfig'.
21936
ebd65b82
BC
219372010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
21938
21939 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
21940 dprintf output.
21941
11721d19
VS
219422010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21943
21944 Remove leftover embedding of font objects.
21945
21946 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21947 * util/grub-install.in (font): Removed.
21948 * util/grub-mkimage.c (generate_image): Remove font support. All users
21949 updated.
21950
37837d4e
VS
219512010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21952
21953 Remove leftover embedding of font objects.
21954
21955 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
21956 * util/grub-install.in (font): Removed.
21957 * util/grub-mkimage.c (generate_image): Remove font support. All users
21958 updated.
21959
b4c1aae0
VS
219602010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21961
21962 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 21963 Reported by: Ian Turner
b4c1aae0 21964
8920a08d
VS
219652010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21966
21967 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
21968 timeout to avoid indefinite boot stalling.
21969
f21db033
VS
219702010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21971
21972 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
21973 (grub_env_write_color_highlight): Likewise.
21974
9a9de209
VS
219752010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21976
21977 * grub-core/normal/term.c (print_more): Return to normal and not
21978 to standard state after printing "---MORE---".
21979
3dca01d7
VS
219802010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21981
21982 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
21983 Mask out the bit 0x80 since it has other meaning that specifiing color.
21984
0b986c40
VS
219852010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21986
21987 New relocator. Allows for more kernel support and more straightforward
21988 loader writing.
21989
21990 * Makefile.am (BOOTTARGET): New variable.
21991 (QEMU32): Likewise.
21992 (linux.init.x86_64): New target.
21993 (linux.init.i386): Likewise.
21994 (multiboot.elf): Likewise.
21995 (kfreebsd.elf): Likewise.
21996 (kfreebsd.aout): Likewise.
21997 (pc-chainloader.elf): Likewise.
21998 (pc-chainloader.bin): Likewise.
21999 (ntldr.elf): Likewise.
22000 (ntldr.bin): Likewise.
22001 (multiboot2.elf): Likewise.
22002 (kfreebsd.init.x86_64): Likewise.
22003 (kfreebsd.init.i386): Likewise.
22004 (knetbsd.init.i386): Likewise.
22005 (kopenbsd.init.i386): Likewise.
22006 (knetbsd.init.x86_64): Likewise.
22007 (kopenbsd.init.x86_64): Likewise.
22008 (linux-initramfs.i386): Likewise.
22009 (linux-initramfs.x86_64): Likewise.
22010 (kfreebsd-mfsroot.i386.img): Likewise.
22011 (knetbsd.image.i386): Likewise.
22012 (kopenbsd.image.i386): Likewise.
22013 (kopenbsd.image.x86_64): Likewise.
22014 (knetbsd.miniroot-image.i386.img): Likewise.
22015 (kfreebsd-mfsroot.x86_64.img): Likewise.
22016 (knetbsd.image.x86_64): Likewise.
22017 (knetbsd.miniroot-image.x86_64.img): Likewise.
22018 (kfreebsd-mfsroot.i386.gz): Likewise.
22019 (bootcheck-kfreebsd-i386): Likewise.
22020 (kfreebsd-mfsroot.x86_64.gz): Likewise.
22021 (bootcheck-kfreebsd-x86_64): Likewise.
22022 (knetbsd.miniroot-image.i386.gz): Likewise.
22023 (bootcheck-knetbsd-i386): Likewise.
22024 (bootcheck-kopenbsd-i386): Likewise.
22025 (bootcheck-kopenbsd-x86_64): Likewise.
22026 (knetbsd.miniroot-image.x86_64.gz): Likewise.
22027 (bootcheck-knetbsd-x86_64): Likewise.
22028 (bootcheck-linux-i386): Likewise.
22029 (bootcheck-linux-x86_64): Likewise.
22030 (bootcheck-linux16-i386): Likewise.
22031 (bootcheck-linux16-x86_64): Likewise.
22032 (bootcheck-multiboot): Likewise.
22033 (bootcheck-multiboot2): Likewise.
22034 (bootcheck-kfreebsd-aout): Likewise.
22035 (bootcheck-pc-chainloader): Likewise.
22036 (bootcheck-ntldr): Likewise.
22037 (CLEANFILES): Add new targets.
22038 (BOOTCHECKS): New variable.
22039 (.PHONY): Add bootchecks.
22040 (SUCCESSFUL_BOOT_STRING): New variable.
22041 (BOOTCHECK_TIMEOUT): Likewise.
22042 (bootcheck): New target
22043 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
22044 * configure.ac: Correct efiemu excuse.
22045 * docs/grub.texi (Supported kernels): New chapter.
22046 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
22047 include/grub/mm_private.h. Simplify inclusion of
22048 include/grub/boot.h, include/grub/loader.h
22049 and include/grub/msdos_partition.h
22050 (KERNEL_HEADER_FILES) [i386_coreboot]:
22051 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
22052 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
22053 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
22054 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
22055 include/grub/machine/loader.h.
22056 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
22057 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
22058 extra_dist.
22059 (pci.mod): Enable on i386-multiboot.
22060 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
22061 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
22062 i386-qemu.
22063 (relocator.mod): Rewritten.
22064 (aout.mod): Enable on all x86.
22065 (bsd.mod): Likewise.
22066 (ntldr.mod): New module.
22067 (linux.mod): Use loader/i386/linux.c on all x86.
22068 (xnu.mod): Enable on all x86.
22069 (vga_text.mod): disable on EFI and QEMU.
22070 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
22071 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
22072 * grub-core/efiemu/loadcore.c: Likewise.
22073 * grub-core/efiemu/main.c: Likewise.
22074 (grub_efiemu_exit_boot_services): Removed.
22075 (grub_efiemu_finish_boot_services): Likewise.
22076 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
22077 function.
22078 * grub-core/efiemu/i386/nocfgtables.c: New file.
22079 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
22080 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
22081 (grub_efi_finish_boot_services): Moved from here ...
22082 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
22083 Fille finish memory map and related data.
22084 (finish_mmap_buf): New variable.
22085 (grub_efi_uintn_t finish_mmap_size): Likewise.
22086 (grub_efi_uintn_t finish_key): Likewise.
22087 (grub_efi_uintn_t finish_desc_size): Likewise.
22088 (grub_efi_uint32_t finish_desc_version): Likewise.
22089 (grub_efi_is_finished): Likewise.
22090 (grub_efi_get_memory_map): Use saved memory map if EFI is already
22091 finished.
22092 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
22093 (grub_elf64_phdr_iterate): Likewise.
22094 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
22095 (grub_os_area_size): Likewise.
22096 (grub_machine_init): Don't reserve os area.
22097 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
22098 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
22099 * grub-core/kern/i386/loader.S: Removed.
22100 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
22101 (grub_os_area_size): Likewise.
22102 (grub_machine_init): Don't reserve os area.
22103 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
22104 Don't call grub_dl_unload_all.
22105 Don't include loader.S.
22106 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
22107 Declare the memory after _end as available.
22108 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 22109 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 22110 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
22111 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
22112 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
22113 * include/grub/mm_private.h (grub_mm_header): ... here.
22114 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
22115 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
22116 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
22117 (grub_mm_region): ..here. Removed addr. Added pre_size.
22118 All users updated.
22119 * grub-core/kern/mm.c (base): Renamed to ...
22120 (grub_mm_base): ... this. Made global.
22121 (grub_real_malloc): Alloc from end of region.
22122 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
22123 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
22124 * grub-core/kern/powerpc/cache_flush.S: ... here.
22125 * grub-core/lib/efi/relocator.c: New file.
22126 * grub-core/lib/i386/relocator.c: Rewritten.
22127 * grub-core/lib/i386/relocator16.S: New file.
22128 * grub-core/lib/i386/relocator32.S: Likewise.
22129 * grub-core/lib/i386/relocator64.S: Likewise.
22130 * grub-core/lib/i386/relocator_asm.S: Rewritten.
22131 * grub-core/lib/i386/relocator_common.S: New file.
22132 * grub-core/lib/ieee1275/relocator.c: Likewise.
22133 * grub-core/lib/mips/relocator.c: Rewritten.
22134 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
22135 stylistic adjustments.
22136 * grub-core/lib/powerpc/relocator.c: New file.
22137 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
22138 * grub-core/lib/relocator.c: Rewritten.
22139 * grub-core/lib/x86_64/relocator_asm.S: New file.
22140 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
22141 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
22142 (bsd_tag): New struct.
22143 (tags): New variable.
22144 (tags_last): Likewise.
22145 (netbsd_module): New struct.
22146 (netbsd_mods): New variable.
22147 (netbsd_mods_last): Likewise.
22148 (openbsd_opts): New parameter "serial".
22149 (OPENBSD_SERIAL_ARG): New definition.
22150 (netbsd_opts): New parameter "serial".
22151 (NETBSD_SERIAL_ARG): New definition.
22152 (grub_freebsd_add_meta): Reorganised into ...
22153 (grub_bsd_add_meta): ...this. All users updated.
22154 (grub_freebsd_add_mmap): Reorganised into ...
22155 (generate_e820_mmap): ...this...
22156 (grub_bsd_add_mmap): ...and this. All users updated.
22157 (grub_freebsd_list_modules): Use tags.
22158 (grub_netbsd_add_meta_module): New function.
22159 (grub_netbsd_list_modules): Likewise.
22160 (grub_freebsd_boot): Use relocator and finish EFI.
22161 (grub_openbsd_boot): Likewise.
22162 (grub_netbsd_setup_video): New function.
22163 (grub_netbsd_add_modules): Likewise.
22164 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
22165 and finish EFI.
22166 (grub_bsd_unload): Unload tags.
22167 (grub_bsd_load_aout): Use relocator.
22168 (grub_bsd_elf32_size_hook): New function.
22169 (grub_bsd_elf32_hook): Use relocator.
22170 (grub_bsd_elf64_size_hook): New function.
22171 (grub_bsd_elf64_hook): Use relocator.
22172 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
22173 (grub_bsd_load): Zero-out openbsd_ramdisk.
22174 (grub_bsd_load): Use relocator.
22175 (grub_cmd_openbsd): Support serial.
22176 (grub_cmd_netbsd): Support modules.
22177 (grub_cmd_freebsd_module): Use relocator.
22178 (grub_netbsd_module_load): New function.
22179 (grub_cmd_netbsd_module): Likewise.
22180 (grub_cmd_openbsd_ramdisk): Likewise.
22181 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
22182 kopenbsd_ramdisk.
22183 (GRUB_MOD_FINI): Unregister new commands.
22184 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
22185 (grub_freebsd_load_elfmodule_obj): Use relocator.
22186 (grub_freebsd_load_elfmodule): Likewise.
22187 (grub_freebsd_load_elf_meta): Likewise.
22188 (grub_netbsd_load_elf_meta): New function.
22189 (grub_openbsd_find_ramdisk): Likewise.
22190 * grub-core/loader/i386/bsd_helper.S: Removed.
22191 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
22192 * grub-core/loader/i386/bsd_trampoline.S: Removed.
22193 * grub-core/loader/i386/efi/linux.c: Likewise.
22194 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
22195 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
22196 (DEFAULT_VIDEO_MODE): Likewise.
22197 (real_mode_target): New variable.
22198 (prot_mode_target): Likewise.
22199 (initrd_mem_target): Likewise.
22200 (relocator): Likewise.
22201 (efi_mmap_buf): Likewise.
22202 (efi_mmap_size): Likewise.
22203 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
22204 (free_pages): Use relocator.
22205 (allocate_pages): Account for efi_mmap and use relocator. Return error.
22206 (grub_linux_setup_video): Return error.
22207 (grub_linux_trampoline_start): Removed.
22208 (grub_linux_trampoline_end): Likewise.
22209 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
22210 andd video parameters depending on firmware.
22211 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
22212 [GRUB_MACHINE_EFI]: Pass EFI parameters.
22213 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
22214 (grub_cmd_initrd): Use relocator.
22215 * grub-core/loader/i386/linux_trampoline.S: Removed.
22216 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
22217 (elf_sec_entsize): Likewise.
22218 (elf_sec_shstrndx): Likewise.
22219 (elf_sections): Likewise.
22220 (grub_multiboot_load): Use relocator.
22221 (grub_multiboot_get_mbi_size): Account for sections.
22222 (grub_multiboot_make_mbi): Use relocator and support sections.
22223 (grub_multiboot_add_elfsyms): New function.
22224 (grub_multiboot_free_mbi): Free sections.
22225 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
22226 (grub_linux_real_target): Likewise.
22227 (grub_linux_real_chunk): Likewise.
22228 (grub_linux16_prot_size): Likewise.
22229 (grub_linux16_boot): Use relocator.
22230 (grub_linux_unload): Unload relocator.
22231 (grub_cmd_linux): Use relocator.
22232 (grub_cmd_initrd): Likewise.
22233 * grub-core/loader/i386/pc/ntldr.c: New file.
22234 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
22235 Don't try to guess CPU frequency.
22236 (grub_xnu_set_video): Stretch bitmap.
22237 (grub_xnu_boot): Use relocator.
22238 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
22239 (grub_linux_unload): Free relocator.
22240 (grub_linux_load32): Use relocator.
22241 (grub_linux_load64): Likewise.
22242 (grub_cmd_initrd): Likewise.
22243 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
22244 (grub_multiboot_unload): Unload relocator.
22245 (grub_cmd_multiboot): Use relocator.
22246 (grub_cmd_module): Likewise.
22247 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
22248 Use relocator and support sections.
22249 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
22250 (elf_sec_entsize): Likewise.
22251 (elf_sec_shstrndx): Likewise.
22252 (elf_sections): Likewise.
22253 (grub_multiboot_load): Use relocator.
22254 (grub_multiboot_get_mbi_size): Account for sections.
22255 (grub_multiboot_make_mbi): Use relocator and support sections.
22256 (grub_multiboot_add_elfsyms): New function.
22257 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
22258 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
22259 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
22260 Prototype changed. All users updated.
22261 (grub_xnu_align_heap): Simplified.
22262 (grub_xnu_writetree_toheap): Likewise.
22263 (grub_xnu_unload): Unload relocator.
22264 (grub_cmd_xnu_kernel): Use relocator.
22265 (grub_cmd_xnu_kernel64): Likewise.
22266 (grub_xnu_register_memory): Simplified.
22267 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
22268 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
22269 EFI is finished.
22270 (grub_console_checkkey): Likewise.
22271 (grub_console_getkey): Likewise.
22272 (grub_console_getwh): Likewise.
22273 (grub_console_getxy): Likewise.
22274 (grub_console_gotoxy): Likewise.
22275 (grub_console_cls): Likewise.
22276 (grub_console_setcolorstate): Likewise.
22277 (grub_console_setcursor): Likewise.
22278 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
22279 * grub-core/tests/boot/kbsd.init-i386.S: New file.
22280 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
22281 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
22282 * grub-core/tests/boot/kernel-8086.S: Likewise.
22283 * grub-core/tests/boot/kernel-i386.S: Likewise.
22284 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
22285 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
22286 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
22287 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
22288 * grub-core/tests/boot/knetbsd.cfg: Likewise.
22289 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
22290 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
22291 * grub-core/tests/boot/linux.cfg: Likewise.
22292 * grub-core/tests/boot/linux.init-i386.S: Likewise.
22293 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
22294 * grub-core/tests/boot/linux16.cfg: Likewise.
22295 * grub-core/tests/boot/multiboot.cfg: Likewise.
22296 * grub-core/tests/boot/multiboot2.cfg: Likewise.
22297 * grub-core/tests/boot/ntldr.cfg: Likewise.
22298 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
22299 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
22300 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
22301 New definition.
22302 * include/grub/dl.h (grub_dl_unload_all): Removed.
22303 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
22304 (grub_efi_finish_boot_services): Change prototype.
22305 (grub_efi_is_finished): New variable.
22306 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
22307 Changed prototype.
22308 (grub_efiemu_finish_boot_services): Removed.
22309 (grub_machine_efiemu_init_tables): New prototype.
22310 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
22311 (grub_elf64_phdr_iterate): Likewise.
22312 * include/grub/i386/bsd.h: Include relocator.h.
22313 (freebsd_tag_header): New struct.
22314 (grub_openbsd_bios_mmap): Removed.
22315 (grub_unix_real_boot): Removed.
22316 (grub_freebsd_load_elfmodule32): Changed prototype.
22317 (grub_freebsd_load_elfmodule_obj64): Likewise.
22318 (grub_freebsd_load_elf_meta32): Likewise.
22319 (grub_freebsd_load_elf_meta64): Likewise.
22320 (grub_freebsd_add_meta): Removed.
22321 (grub_netbsd_load_elf_meta32): New prototype.
22322 (grub_netbsd_load_elf_meta64): Likewise.
22323 (grub_bsd_add_meta): Likewise.
22324 (grub_openbsd_ramdisk_descriptor): New struct.
22325 (grub_openbsd_find_ramdisk32): New prototype.
22326 (grub_openbsd_find_ramdisk64): Likewise.
22327 * include/grub/i386/coreboot/loader.h: Removed.
22328 * include/grub/i386/efi/loader.h: Likewise.
22329 * include/grub/i386/ieee1275/loader.h: Likewise.
22330 * include/grub/i386/linux.h (linux_kernel_header): Change void *
22331 to grub_uint32_t.
22332 * include/grub/i386/loader.h: Removed.
22333 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
22334 value.
22335 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
22336 (grub_phys_addr_t): New type.
22337 (grub_vtop): New inline function.
22338 (grub_map_memory): Likewise.
22339 (grub_unmap_memory): Likewise.
22340 * include/grub/i386/multiboot/loader.h: Removed.
22341 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
22342 (NETBSD_BTINFO_CONSOLE): New definition.
22343 (NETBSD_BTINFO_SYMTAB): Likewise.
22344 (NETBSD_BTINFO_MODULES): Likewise.
22345 (NETBSD_BTINFO_FRAMEBUF): Likewise.
22346 (grub_netbsd_bootinfo): New struct.
22347 (grub_netbsd_btinfo_common): Use explicit bitsize.
22348 (grub_netbsd_btinfo_mmap_entry): Removed.
22349 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
22350 (grub_netbsd_btinfo_bootdisk): New struct.
22351 (grub_netbsd_btinfo_symtab): Likewise.
22352 (grub_netbsd_btinfo_serial): Likewise.
22353 (grub_netbsd_btinfo_modules): Likewise.
22354 (grub_netbsd_btinfo_framebuf): Likewise.
22355 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
22356 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
22357 Likewise.
22358 (grub_openbsd_bootargs): Use explicit bitsize.
22359 (grub_openbsd_bootarg_console): New struct.
22360 (GRUB_OPENBSD_COM_MAJOR): New definition.
22361 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
22362 * include/grub/i386/pc/efiemu.h: Removed.
22363 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
22364 * include/grub/i386/qemu/loader.h: Removed.
22365 * include/grub/i386/relocator.h: Rewritten.
22366 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
22367 * include/grub/mips/memory.h: New file.
22368 * include/grub/mips/multiboot.h: Rewritten.
22369 * include/grub/mips/relocator.h: Rewritten.
22370 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
22371 (grub_vtop): New function.
22372 (grub_map_memory): Likewise.
22373 (grub_unmap_memory): Likewise.
22374 * include/grub/misc.h (ALIGN_DOWN): New definition.
22375 * include/grub/mm.h (grub_mm_check_real): New proto.
22376 (GRUB_MM_CHECK): New definition.
22377 * include/grub/mm_private.h: New file.
22378 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
22379 (grub_multiboot_get_mbi_size): Removed.
22380 (grub_multiboot_make_mbi): Change prottype.
22381 (grub_multiboot_set_accepts_video): New proto.
22382 (grub_multiboot_add_elfsyms): Likewise.
22383 (grub_multiboot_payload_eip): New variable.
22384 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
22385 New prototype.
22386 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
22387 New definition.
22388 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
22389 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
22390 * include/grub/powerpc/ieee1275/loader.h: Removed.
22391 * include/grub/powerpc/memory.h: New file.
22392 * include/grub/powerpc/relocator.h: Likewise.
22393 * include/grub/relocator.h: Likewise.
22394 * include/grub/relocator_private.h: Likewise.
22395 * include/grub/sparc64/ieee1275/loader.h: Removed.
22396 * include/grub/x86_64/memory.h: New file.
22397 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
22398 (grub_xnu_heap_malloc): Likewise.
22399 (grub_xnu_heap_real_start): Removed.
22400 (grub_xnu_heap_start): Likewise.
22401 (grub_xnu_relocator): New variable.
22402 (grub_xnu_heap_target_start): Likewise.
22403 * tests/util/grub-shell.in: Support non-pc.
22404 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 22405
5303b85d
VS
224062010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22407
22408 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
22409 on malloc error.
22410 (grub_bidi_logical_to_visual): Check that malloc succeded.
22411 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
22412 puts.
22413 (grub_xputs_normal): Likewise.
22414
d768d159
VS
224152010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22416
22417 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
22418 extra_dist.
22419
224202010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22421
22422 * grub-core/efiemu/runtime/efiemu.sh: Removed.
22423
5bf84df4
VS
224242010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22425
22426 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
22427
3626810e
VS
224282010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
22429
22430 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
22431 dprintf.
22432
a7363f53
BC
224332010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
22434
22435 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
22436
902f75f6
VS
224372010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22438
22439 * grub-core/normal/term.c (print_more): Fix a memory leak.
22440 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
22441 (grub_xputs_normal): Likewise.
22442
3c707967
VS
224432010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22444
22445 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
22446 the begining of the string
22447
2053cc07
VS
224482010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22449
22450 * grub-core/script/script.c (grub_script_parse): Free parsed on
22451 failure.
22452
46422ebf
VS
224532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22454
22455 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
22456 on failure.
22457
9e0fa3f6
VS
224582010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22459
22460 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
22461 return.
22462
3393cf16
VS
224632010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22464
22465 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
22466 (scroll_up): Fix a memory leak.
22467
b17540cb
VS
224682010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
22469
22470 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
22471 errors.
22472
67140446
VS
224732010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
22474
22475 Handle USB pendrives exposed as floppies.
22476
22477 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
22478 floppy.
22479 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22480 Check for partitions on all devices.
22481
e35e46fc
VS
224822010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
22483
22484 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
22485 (readkey): Likewise.
22486
d24c6190
BC
224872010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
22488
22489 Multiple variable names support to "export" command.
22490
22491 * normal/context.c (grub_cmd_export): "export" command supports
22492 multiple variable names.
22493
04ddcc6a
ST
224942010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
22495
22496 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
22497 --target=drive output to Mach device name.
22498
0c8b61d8
BC
224992010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22500
22501 New Automake based build system for GRUB.
22502
22503 * ABOUT-NLS: New file.
22504 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
22505 in Makefile.util.def file.
22506 * Makefile.util.def: New file. Autogen build definitions file for
22507 GRUB host utils.
22508 * conf/Makefile.common: New file. Common variables for GRUB host
22509 utils and target modules.
22510 * conf/Makefile.extra-dist: New file. Extra files for make dist.
22511 * docs/Makefile.am: New file. Automake file for docs.
22512 * gentpl.py: New file. Python script to generate Autogen
22513 template.
22514 * grub-core/Makefile.am: New file. GRUB target modules' rules
22515 that doesn't fit in Makefile.core.def file.
22516 * grub-core/Makefile.core.def: New file. Autogen build
22517 definitions file for GRUB target modules.
22518 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
22519 specific setjmp.S file.
22520 * po/Makefile.am: New file.
22521
22522 * .bzrignore: New ignores.
22523 * INSTALL: New requirements, without Ruby.
22524 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
22525 * autogen.sh: Updated to invoke autogen as necessary.
22526 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
22527 and defines for Automake conditionals.
22528 * geninit.sh: Refactoring.
22529
22530 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
22531 necessary.
22532 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
22533 New prototype.
22534
22535 * include/grub/test.h: Fix functional test modules' naming.
22536 * grub-core/tests/example_functional_test.c: Fix test module name.
22537
22538 * util/misc.c: Hosted versions' of grub functions for libgrub.a
22539 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
22540 * util/grub-editenv.c: Likewise.
22541 * util/grub-fstest.c: Likewise.
22542 * util/grub-mkdevicemap.c: Likewise.
22543 * util/grub-mkfont.c: Likewise.
22544 * util/grub-mkimage.c: Likewise.
22545 * util/grub-mkpasswd-pbkdf2.c: Likewise.
22546 * util/grub-probe.c: Likewise.
22547 * util/grub-script-check.c: Likewise.
22548 * util/i386/pc/grub-setup.c: Likewise.
22549 * util/sparc64/ieee1275/grub-setup.c: Likewise.
22550
22551 * tests/util/grub-shell.in: Fix override directory path.
22552 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
22553 * util/import_gcry.py: Create Makefile.gcry.def file instead.
22554
22555 * util/lvm.c: Update #includes.
22556 * util/raid.c: Likewise.
22557 * util/resolve.c: Likewise.
22558 * grub-core/bus/emu/pci.c: Likewise.
22559 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
22560 * grub-core/lib/posix_wrap/string.h: Likewise.
22561 * grub-core/kern/emu/main.c: Likewise.
22562
22563 * grub-core/gensymlist.sh: New file. Script for generating kernel
22564 symbols file.
22565 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
22566
22567 * grub-core/gentrigtables.c: Fix unused variable warnings.
22568
22569 * Makefile.in: Removed.
22570 * conf/any-emu.rmk: Removed.
22571 * conf/common.rmk: Removed.
22572 * conf/i386-coreboot.rmk: Removed.
22573 * conf/i386-efi.rmk: Removed.
22574 * conf/i386-ieee1275.rmk: Removed.
22575 * conf/i386-multiboot.rmk: Removed.
22576 * conf/i386-pc.rmk: Removed.
22577 * conf/i386-qemu.rmk: Removed.
22578 * conf/i386.rmk: Removed.
22579 * conf/mips-yeeloong.rmk: Removed.
22580 * conf/mips.rmk: Removed.
22581 * conf/powerpc-ieee1275.rmk: Removed.
22582 * conf/sparc64-ieee1275.rmk: Removed.
22583 * conf/tests.rmk: Removed.
22584 * conf/x86-efi.rmk: Removed.
22585 * conf/x86_64-efi.rmk: Removed.
22586 * gendistlist.sh: Removed.
22587 * geninitheader.sh: Removed.
22588 * genkernsyms.sh.in: Removed.
22589 * genmk.rb: Removed.
22590 * gensymlist.sh.in: Removed.
22591 * mkinstalldirs: Removed.
22592 * boot: Moved ...
22593 * grub-core/boot: ... to here.
22594 * bus: Moved ...
22595 * grub-core/bus: ... to here.
22596 * commands: Moved ...
22597 * grub-core/commands: ... to here.
22598 * disk: Moved ...
22599 * grub-core/disk: ... to here.
22600 * efiemu: Moved ...
22601 * grub-core/efiemu: ... to here.
22602 * font: Moved ...
22603 * grub-core/font: ... to here.
22604 * fs: Moved ...
22605 * grub-core/fs: ... to here.
22606 * gencmdlist.sh: Moved ...
22607 * grub-core/gencmdlist.sh: ... to here.
22608 * genemuinit.sh: Moved ...
22609 * grub-core/genemuinit.sh: ... to here.
22610 * genemuinitheader.sh: Moved ...
22611 * grub-core/genemuinitheader.sh: ... to here.
22612 * genfslist.sh: Moved ...
22613 * grub-core/genfslist.sh: ... to here.
22614 * genhandlerlist.sh: Moved ...
22615 * grub-core/genhandlerlist.sh: ... to here.
22616 * genmoddep.awk: Moved ...
22617 * grub-core/genmoddep.awk: ... to here.
22618 * genmodsrc.sh: Moved ...
22619 * grub-core/genmodsrc.sh: ... to here.
22620 * genpartmaplist.sh: Moved ...
22621 * grub-core/genpartmaplist.sh: ... to here.
22622 * genparttoollist.sh: Moved ...
22623 * grub-core/genparttoollist.sh: ... to here.
22624 * genterminallist.sh: Moved ...
22625 * grub-core/genterminallist.sh: ... to here.
22626 * gentrigtables.c: Moved ...
22627 * grub-core/gentrigtables.c: ... to here.
22628 * genvideolist.sh: Moved ...
22629 * grub-core/genvideolist.sh: ... to here.
22630 * gettext: Moved ...
22631 * grub-core/gettext: ... to here.
22632 * gfxmenu: Moved ...
22633 * grub-core/gfxmenu: ... to here.
22634 * gnulib: Moved ...
22635 * grub-core/gnulib: ... to here.
22636 * hello: Moved ...
22637 * grub-core/hello: ... to here.
22638 * hook: Moved ...
22639 * grub-core/hook: ... to here.
22640 * io: Moved ...
22641 * grub-core/io: ... to here.
22642 * kern: Moved ...
22643 * grub-core/kern: ... to here.
22644 * lib: Moved ...
22645 * grub-core/lib: ... to here.
22646 * loader: Moved ...
22647 * grub-core/loader: ... to here.
22648 * mmap: Moved ...
22649 * grub-core/mmap: ... to here.
22650 * normal: Moved ...
22651 * grub-core/normal: ... to here.
22652 * partmap: Moved ...
22653 * grub-core/partmap: ... to here.
22654 * parttool: Moved ...
22655 * grub-core/parttool: ... to here.
22656 * script: Moved ...
22657 * grub-core/script: ... to here.
22658 * term: Moved ...
22659 * grub-core/term: ... to here
22660 * tests/example_functional_test.c: Moved ...
22661 * grub-core/tests/example_functional_test.c: ... to here.
22662 * tests/lib/functional_test.c: Moved ...
22663 * grub-core/tests/lib/functional_test.c: ... to here.
22664 * tests/lib/test.c: Moved ...
22665 * grub-core/tests/lib/test.c: ... to here.
22666 * video: Moved ...
22667 * grub-core/video: ... to here.
22668
645586e6
BC
226692010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
22670
22671 Replace --enable-grub-emu-modules with grub-emu-lite.
22672
22673 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
22674 cache.S.
22675
22676 * include/grub/emu/misc.h (grub_emu_init): New prototype.
22677 * kern/emu/full.c: New file. For grub-emu specific initialization.
22678 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
22679 * kern/emu/main.c: Call initialization function grub_emu_init.
22680
22681 * Makefile.in: Include grub-emu-lite in install.
22682 * commands/parttool.c: Use grub_no_autoload to differentiate
22683 between grub-emu and grub-emu-lite.
22684 * include/grub/misc.h: New variable grub_no_autoload.
22685
22686 * conf/any-emu.rmk: New rules for grub-emu-lite.
22687 * configure.ac: Remove --enable-grub-emu-modules.
22688 * genmk.rb: Cleanup unnecessary rules.
22689 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
22690
22691 * normal/main.c: Don't load list files on grub-emu-lite.
22692 * util/misc.c (grub_arch_sync_caches): Removed.
22693
f86a4030
CW
226942010-08-23 Colin Watson <cjwatson@ubuntu.com>
22695
22696 * kern/mips/startup.S (grub_prefix): Update comment to refer to
22697 grub-mkimage rather than grub-mkelfimage.
22698 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
22699
06776944
VS
227002010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
22701
22702 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
22703 a key after CapsLock or NumLock. It's just a qemu bug.
22704
df262419
VS
227052010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22706
22707 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
22708 needed by libusb wrapper.
22709
b40ea81b
ST
227102010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
22711
22712 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
22713
dee50575
VS
227142010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
22715
22716 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
22717 --nounzip is passed.
22718
fb1d7b79
VS
227192010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
22720
22721 USB hotunplugging and USB serial support.
22722
22723 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
22724 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
22725 (grub_uhci_transfer): Respect timeout and set *actual.
22726 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
22727 non-standard length.
22728 (grub_usb_device_attach): Autoload modules.
22729 (GRUB_MOD_INIT): Set grub_term_poll_usb.
22730 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
22731 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
22732 users updated.
22733 (grub_usb_add_hub): Fill nports and children.
22734 (attach_root_port): Receive hub instead of controller.
22735 All users updated. Fill hub->devices.
22736 (grub_usb_root_hub): Allocate hub->devices.
22737 (detach_device): New function.
22738 (poll_nonroot_hub): Fill children and detach devices.
22739 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
22740 actual arguments. All users updated.
22741 (grub_usb_bulk_read_extended): New function.
22742 * bus/usb/serial/common.c: New file.
22743 * bus/usb/serial/ftdi.c: Likewise.
22744 * bus/usb/serial/pl2303.c: Likewise.
22745 * commands/terminal.c (handle_command): Support wildcard.
22746 * commands/usbtest.c: Output "Unknown" instead of empty string.
22747 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
22748 (usbserial_common_mod_SOURCES): New variable.
22749 (usbserial_common_mod_CFLAGS): Likewise.
22750 (usbserial_common_mod_LDFLAGS): Likewise.
22751 (pkglib_MODULES): Add usbserial_pl2303.mod.
22752 (usbserial_pl2303_mod_SOURCES): New variable.
22753 (usbserial_pl2303_mod_CFLAGS): Likewise.
22754 (usbserial_pl2303_mod_LDFLAGS): Likewise.
22755 (pkglib_MODULES): Add usbserial_ftdi.mod.
22756 (usbserial_ftdi_mod_SOURCES): New variable.
22757 (usbserial_ftdi_mod_CFLAGS): Likewise.
22758 (usbserial_ftdi_mod_LDFLAGS): Likewise.
22759 (pkglib_MODULES): Add serial.mod.
22760 (serial_mod_SOURCES): New variable.
22761 (serial_mod_CFLAGS): Likewise.
22762 (serial_mod_LDFLAGS): Likewise.
22763 * conf/i386-pc.rmk: Likewise.
22764 * conf/mips-yeeloong.rmk: Likewise.
22765 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
22766 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
22767 * disk/usbms.c (first_available_slot): New variable.
22768 (grub_usbms_attach): Don't reuse free slots due to potential cache
22769 problems.
22770 * include/grub/serial.h: Moved to ..
22771 * include/grub/ns8250.h: ...this.
22772 * include/grub/serial.h: New file.
22773 * include/grub/term.h (grub_term_poll_usb): New variable.
22774 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
22775 readkey. All users updated.
22776 (grub_terminfo_output_state): Pass term to put.
22777 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
22778 (grub_usb_controller_dev): Add timeout and actual arguments to
22779 transfer. All users updated.
22780 (grub_usb_interface): New field detach_data.
22781 (grub_usb_device): New fields children and nports.
22782 (grub_usb_ep_type_t): New type.
22783 (grub_usb_get_ep_type): New function.
22784 (grub_usb_bulk_read_extended): Likewise.
22785 * include/grub/usbdesc.h (grub_usb_desc): New type.
22786 * include/grub/usbserial.h: New file.
22787 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
22788 * kern/term.c (grub_term_poll_usb): New variable.
22789 (grub_getkey): Call grub_term_poll_usb if set.
22790 (grub_checkkey): Likewise.
22791 (grub_getkeystatus): Likewise.
22792 * term/serial.c: Moved controller-specific parts to ...
22793 * term/ns8250.c: ... here.
22794 * term/serial.c: Mostly rewritten.
22795 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
22796 according to spec.
22797
21a313de
RM
227982010-08-20 Robert Millan <rmh@gnu.org>
22799
22800 Make kFreeBSD code more generic to support ext2fs as root, ufs as
22801 a separate module and maybe other interesting combinations.
22802
22803 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
22804 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
22805 (kfreebsd_entry): Add generic filesystem module load routine.
22806 Map GRUB `ext2' to kFreeBSD `ext2fs'.
22807
63c734a6
CW
228082010-08-20 Colin Watson <cjwatson@ubuntu.com>
22809
22810 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
22811 "numcenter" (I misunderstood the purpose of this entry).
22812 * docs/grub.texi (sendkey): Likewise.
22813
c4d16542
CW
228142010-08-20 Colin Watson <cjwatson@ubuntu.com>
22815
22816 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
22817 status flag options; simply omitting the option is equivalent and
22818 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
22819 (keysym_table): Rename "num5numlock" to "numlock".
22820 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
22821 can uniformly say that only the last of multiple `sendkey'
22822 invocations has any effect.
22823 * docs/grub.texi (sendkey): New section.
22824
93541d66
CW
228252010-08-19 Colin Watson <cjwatson@ubuntu.com>
22826
22827 * commands/i386/pc/sendkey.c (options): Fix three typos.
22828
b4ece5e1
VS
228292010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
22830
22831 Implement sendkey support.
22832
22833 * commands/i386/pc/sendkey.c: New file.
22834 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
22835 (sendkey_mod_SOURCES): New variable.
22836 (sendkey_mod_CFLAGS): Likewise.
22837 (sendkey_mod_LDFLAGS): Likewise.
22838
51f1f5af
CW
228392010-08-18 Colin Watson <cjwatson@ubuntu.com>
22840
22841 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
22842 fix warnings from Autoconf.
22843
9da94e05
CW
228442010-08-18 Colin Watson <cjwatson@ubuntu.com>
22845
22846 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
22847 to avoid false positives with some assemblers that output things
22848 like "someprefix_func" as part of their output.
22849
729a0f2e
RM
228502010-08-15 Robert Millan <rmh@gnu.org>
22851
22852 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
22853 errors.
22854 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
22855 grub_get_libzfs_handle() errors.
22856
f3710e08
RM
228572010-08-14 Robert Millan <rmh@gnu.org>
22858
22859 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
22860 filesystem is not ZFS.
22861
7a3c13de
BC
228622010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22863
22864 Fix for misspelled color names defaulting to black/black (bug
22865 reported by Doug Nazar)
22866
22867 * include/grub/normal.h (grub_parse_color_name_pair): Add return
22868 status to prototype.
22869 * normal/color.c (grub_parse_color_name_pair): Return failure
22870 status.
22871 (grub_env_write_color_normal): Ignore bad color names.
22872 (grub_env_write_color_highlight): Likewise.
22873 * normal/main.c (GRUB_MOD_INIT): Set default color names.
22874
ab8ba50d
BC
228752010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22876
22877 "shift" command support to GRUB script.
22878
22879 * include/grub/script_sh.h (grub_script_shift): New prototype.
22880 * script/execute.c (grub_script_shift): New function.
22881 * script/main.c (grub_script_init): Register shift command.
22882 (grub_script_fini): Unregister shift command.
22883 * util/grub-script-check.c (grub_script_cmd_shift): New function.
22884
22885 * tests/grub_script_shift.in: New testcase.
22886 * conf/tests.rmk: Rules for new testcase.
22887
4d61999e
BC
228882010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22889
22890 "continue" command support to GRUB script.
22891
22892 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
22893 (grub_script_break): Continue support.
22894 * script/main.c (grub_script_init): Register continue command.
22895 (grub_script_fini): Unregister continue command.
22896
22897 * tests/grub_script_continue.in: New testcase.
22898 * conf/tests.rmk: Rules for new testcase.
22899
4df51e00
BC
229002010-08-12 BVK Chaitanya <bvk@dbook>
22901
22902 "break" command support to GRUB script.
22903
22904 * conf/common.rmk: Rule updates to grub-script-check.
22905 * include/grub/misc.h (grub_min): New function.
22906 * include/grub/script_sh.h (grub_script_init): New prototype.
22907 (grub_script_fini): New prototype.
22908 (grub_script_break): New prototype.
22909 * script/main.c (grub_script_init): New function.
22910 (grub_script_fini): New function.
22911 * script/execute.c (grub_script_break): New function.
22912 * normal/main.c: Calls to grub_script_{init,fini}.
22913 * util/grub-script-check.c (grub_script_break): New function.
22914
22915 * tests/grub_script_break.in: New testcase.
22916 * conf/tests.rmk: Rules for new test case.
22917
f12c8420
BC
229182010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22919
22920 Function parameters support to GRUB script.
22921
22922 * script/yylex.l (VARIABLE): Regular expression update.
22923 * script/function.c (grub_script_function_call): Moved ...
22924 * script/execute.c (grub_script_function_call): ... to here.
22925 (grub_script_execute_arglist_to_argv): Removed.
22926 (grub_script_arglist_to_argv): New function.
22927 * script/argv.c: New file.
22928 (grub_script_argv_free): New function.
22929 (grub_script_argv_next): Likewise.
22930 (grub_script_argv_append): Likewise.
22931 (grub_script_argv_split_append): Likewise.
22932 * include/grub/script_sh.h (grub_script_argv): New struct.
22933 (grub_script_argv_free): New function.
22934 (grub_script_argv_next): Likewise.
22935 (grub_script_argv_append): Likewise.
22936 (grub_script_argv_split_append): Likewise.
22937
22938 * conf/common.rmk (normal.mod): New source script/argv.c.
22939
22940 * tests/grub_script_echo1.in: More tests.
22941 * tests/grub_script_vars1.in: Likewise.
22942 * tests/grub_script_functions.in: New test case.
22943 * conf/tests.rmk: Rules for new testcase.
22944
8022b748
BC
229452010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
22946
22947 Remove grub_script_cmdblock struct.
22948
22949 * include/grub/script_sh.h: Remove grub_script_cmdblock.
22950 * script/parser.y: Likewise.
22951 * script/execute.c: Rename cmdblock suffix to cmdlist.
22952 * script/script.c: Likewise.
22953 * util/grub-script-check.c: Likewise.
22954
79a6ba61
YB
229552010-08-11 Yves Blusseau <blusseau@zetam.org>
22956
22957 * .bzrignore: add grub-macho2img
22958
d04b9414
VS
229592010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22960
22961 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
22962
f947ab49
VS
229632010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
22964
22965 Remove the dump of sm712 initialisation sequence.
22966
22967 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
22968 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
22969 (GRUB_VGA_IO_MISC_WRITE): Likewise.
22970 (GRUB_VGA_CR_*): Added many registers.
22971 (GRUB_VGA_SR_*): Likewise.
22972 (GRUB_VGA_GR_*): Likewise.
22973 (grub_vga_write_arx): New function.
22974 (grub_video_hw_config): New struct.
22975 (grub_vga_set_geometry): New function.
22976 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
22977 GRUB_PCI_CLASS_SUBCLASS_VGA.
22978 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
22979 * video/sm712.c (grub_sm712_write_reg): New function
22980 (grub_sm712_read_reg): Likewise.
22981 (grub_sm712_sr_write): Likewise.
22982 (grub_sm712_gr_write): Likewise.
22983 (grub_sm712_cr_write): Likewise.
22984 (grub_sm712_write_arx): Likewise.
22985 (grub_sm712_cr_shadow_write): Likewise.
22986 (grub_sm712_write_dda_lookup): Likewise.
22987 (grub_video_sm712_setup): Initialise the video rather then
22988 blindly replay the dump.
22989 (main) [TEST]: Add a routine to be able to compile as standalone for
22990 tests.
22991 * video/sm712_init.c (sm712_init): Removed.
22992 (sm712_sr_seq1): New array.
22993 (sm712_sr_seq2): Likewise.
22994
f0206638
VS
229952010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
22996
22997 * include/grub/vga.h: Add missing grub/pci.h include.
22998
2764da3b
YB
229992010-08-10 Yves Blusseau <blusseau@zetam.org>
23000
23001 * util/grub-macho2img.c (main): fix typo
23002
cf0c775e
VS
230032010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
23004
23005 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
23006 (grub_vga_gr_read): Likewise.
23007 (grub_vga_cr_write): Likewise.
23008 (grub_vga_cr_read): Likewise.
23009 (grub_vga_sr_write): Likewise.
23010 (grub_vga_sr_read): Likewise.
23011 (grub_vga_palette_read): Likewise.
23012 (grub_vga_palette_write): Likewise.
23013 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
23014 (grub_sm712_sr_read): New function.
23015 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
23016 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
23017
07f360e9
RM
230182010-08-09 Robert Millan <rmh@gnu.org>
23019
23020 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
23021 out unused variables on non-ZFS build.
23022
346c2072
RM
230232010-08-08 Robert Millan <rmh@gnu.org>
23024
23025 Fix path generation for sub-filesystems in ZFS.
23026
23027 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
23028 missing slash.
23029
71175420
RM
230302010-08-08 Robert Millan <rmh@gnu.org>
23031
23032 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
23033
0d8286f3
RM
230342010-08-08 Robert Millan <rmh@gnu.org>
23035
23036 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
23037 exist, issue a proper error message (rely on `ls' for translated
23038 strings).
23039
55dd2924
RM
230402010-08-08 Robert Millan <rmh@gnu.org>
23041
23042 Fix grub-probe invocation.
23043
23044 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
23045
d3dd9e80
RM
230462010-08-04 Robert Millan <rmh@gnu.org>
23047
23048 * configure.ac: Remove checks for getfsstat() and getmntany().
23049 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
23050 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
23051 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
23052 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
23053 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
23054 function.
23055 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
23056 via find_mount_point_from_dir() and getfsstat() / getmntany().
23057
0de22aa9
RM
230582010-08-04 Robert Millan <rmh@gnu.org>
23059
23060 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23061 (grub_find_zpool_from_mount_point): Merge into ...
23062 (grub_find_zpool_from_dir): ... this.
23063 * kern/emu/misc.c: Likewise.
23064
23065 * kern/emu/misc.c
23066 (grub_make_system_path_relative_to_its_root): Replace
23067 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
23068 with grub_find_zpool_from_dir().
23069 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
23070
62858144
RM
230712010-08-04 Robert Millan <rmh@gnu.org>
23072
23073 Support OpenSolaris in ZFS device resolution.
23074
23075 * configure.ac: Check for getmntany().
23076 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
23077 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
23078 support.
23079
9dd6fd50
RM
230802010-08-03 Robert Millan <rmh@gnu.org>
23081
23082 Fix grub-emu build.
23083
23084 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
23085 * include/grub/emu/misc.h: ... here.
23086
23087 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
23088 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
23089
23090 * util/misc.c: Remove `<grub/util/libzfs.h>'.
23091 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
23092 (grub_get_libzfs_handle): Move to ...
23093 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
23094 (grub_get_libzfs_handle): ... here.
23095
c9f7ff97
BC
230962010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
23097
23098 * script/execute.c (grub_script_execute_cmdline): Check for NULL
23099 as command name case.
23100
a870a783
CW
231012010-08-02 Colin Watson <cjwatson@ubuntu.com>
23102
23103 * disk/raid.c (insert_array): Select unique numbers for named arrays
23104 as well, for use as keys in the disk cache.
23105
c7db243b
RM
231062010-08-01 Robert Millan <rmh@gnu.org>
23107
23108 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
23109 kFreeBSD device name, except on ZFS where the filesystem label is
23110 used.
23111 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
23112 `/boot/zfs/zpool.cache'.
23113 Set mountfrom kernel variable using ${kfreebsd_device}.
23114
f7abdefb
RM
231152010-08-01 Robert Millan <rmh@gnu.org>
23116
23117 Make it even harder to use uninitialized `libzfs_handle' (and
23118 make the interface a bit simpler).
23119
23120 * include/grub/util/misc.h (grub_util_init_libzfs)
23121 (libzfs_handle): Remove.
23122 (grub_get_libzfs_handle): New prototype.
23123
23124 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
23125 attribute.
23126 (grub_util_init_libzfs): Remove.
23127 (grub_get_libzfs_handle): New function.
23128
23129 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
23130 grub_get_libzfs_handle() to obtain a libzfs handle instead of
23131 accessing `libzfs_handle' directly.
23132
c882acc0
RM
231332010-08-01 Robert Millan <rmh@gnu.org>
23134
23135 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23136 (grub_find_zpool_from_mount_point): New function prototypes.
23137
23138 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23139 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23140
23141 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23142 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23143 `static' attribute.
23144
23145 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23146 finding zpool from mount point into ...
23147 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23148
23149 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23150 requested path is part of a ZFS pool, use
23151 grub_find_zpool_from_mount_point() to detect its filesystem name,
23152 and generate a path with `/fsname@path' syntax.
23153
8bfe31d8
CW
231542010-08-01 Colin Watson <cjwatson@ubuntu.com>
23155
23156 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
23157 (void) rather than () so that this is a proper prototype.
23158
553df63d
VS
231592010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23160
23161 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
23162
8687cf07
VS
231632010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
23164
23165 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
23166 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
23167
ea9be8ea
CW
231682010-08-01 Colin Watson <cjwatson@ubuntu.com>
23169
23170 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
23171
6eea041a
CW
231722010-08-01 Colin Watson <cjwatson@ubuntu.com>
23173
23174 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
23175
2cfb45df
CW
231762010-08-01 Colin Watson <cjwatson@ubuntu.com>
23177
23178 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
23179 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
23180 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
23181 disable gfxpayload.
23182 (Shell-like scripting): Add real content.
23183 (Serial terminal): Suggest `terminal_input serial; terminal_output
23184 serial' rather than putting the two commands on separate lines,
23185 since console input will be inoperative after the first command.
23186 (menuentry): Document --class, --users, and --hotkey options.
23187 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
23188 Vladimir Serbinenko).
23189
7decd202
VS
231902010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
231912010-08-01 Colin Watson <cjwatson@ubuntu.com>
23192
23193 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
23194
c882acc0
RM
231952010-08-01 Robert Millan <rmh@gnu.org>
23196
23197 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
23198 (grub_find_zpool_from_mount_point): New function prototypes.
23199
23200 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
23201 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
23202
23203 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
23204 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
23205 `static' attribute.
23206
23207 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
23208 finding zpool from mount point into ...
23209 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
23210
23211 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
23212 requested path is part of a ZFS pool, use
23213 grub_find_zpool_from_mount_point() to detect its filesystem name,
23214 and generate a path with `/fsname@path' syntax.
23215
deb0caa3
RM
232162010-08-01 Robert Millan <rmh@gnu.org>
23217
23218 Prevent accidental use of uninitialized libzfs_handle.
23219
23220 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
23221 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
23222 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
23223
ce04ef47
CW
232242010-08-01 Colin Watson <cjwatson@ubuntu.com>
23225
23226 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
23227 util/grub.d/10_linux.in). Fixes Debian bug #591093.
23228
ebf53056
RM
232292010-08-01 Robert Millan <rmh@gnu.org>
23230
23231 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 23232
3710bb6b
RM
232332010-07-31 Robert Millan <rmh@gnu.org>
23234
23235 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
23236
8072efeb
RM
232372010-07-31 Robert Millan <rmh@gnu.org>
23238
23239 * kern/emu/misc.c: Add missing license header.
23240
3169f4c7
RM
232412010-07-31 Robert Millan <rmh@gnu.org>
23242
23243 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
23244
23245 * include/grub/util/libnvpair.h: Include `<config.h>'.
23246 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
23247 declaring libnvpair prototypes ourselves.
23248 * include/grub/util/libzfs.h: Include `<config.h>'.
23249 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
23250 declaring libzfs prototypes ourselves.
23251
23252 (libzfs_handle): Moved to ...
23253 * include/grub/util/misc.h (libzfs_handle): ... here.
23254 Include `<grub/util/libzfs.h>'.
23255
c9a00aee
RM
232562010-07-30 Robert Millan <rmh@gnu.org>
23257
23258 * include/grub/emu/misc.h: Add missing license header.
23259
a184f9c8
RM
232602010-07-30 Robert Millan <rmh@gnu.org>
23261
23262 Enable `grub-probe -t device' resolution on ZFS.
23263
23264 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
23265 * include/grub/util/libnvpair.h: New file.
23266 * include/grub/util/libzfs.h: New file.
23267
23268 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
23269 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
23270 `<grub/util/libnvpair.h>'.
23271 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
23272
23273 (find_mount_point_from_dir): New static function.
23274 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
23275 function.
23276 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
23277 find_root_device_from_libzfs() before ressorting to find_root_device().
23278
23279 * include/grub/util/misc.h (grub_util_init_libzfs): New function
23280 prototype.
23281 * util/misc.c: Include `<grub/util/libzfs.h>'.
23282 (grub_util_init_libzfs): New function.
23283 [HAVE_LIBZFS] (libzfs_handle): New global variable.
23284 [HAVE_LIBZFS] (fini_libzfs): New static function.
23285 (grub_util_init_libzfs): New function.
23286 * util/grub-probe.c (main): Call grub_util_init_libzfs().
23287
f7790cdd
RM
232882010-07-30 Robert Millan <rmh@gnu.org>
23289
23290 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
23291 (xmalloc, xrealloc, xstrdup, xasprintf): Add
23292 `warn_unused_result' attribute.
23293 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
23294 (grub_xasprintf, grub_xvasprintf): Likewise.
23295 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
23296
0806b63c
RM
232972010-07-29 Robert Millan <rmh@gnu.org>
23298
23299 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
23300 (probe): Handle `PRINT_FS_LABEL'.
23301 (main): Handle `-t fs_label'.
23302
9f841f5c
RM
233032010-07-29 Robert Millan <rmh@gnu.org>
23304
23305 * configure.ac: Remove grub-mkisofs checks.
23306
46371121
VS
233072010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
23308
23309 * util/ieee1275/grub-install.in: Don't use empty grub_device.
23310 Reported by: Lennart Sorensen.
23311
233122010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23313
23314 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
23315 prior to terminal_input/terminal_output separation. It's been over 1.5
23316 years and those versions weren't widely deployed.
23317
a9600892
CW
233182010-07-22 Colin Watson <cjwatson@ubuntu.com>
23319
23320 * disk/raid.c (insert_array): Don't count named arrays when looking
23321 for unused array numbers.
697e053c 23322 Reported and tested by: Michael Guntsche.
a9600892 23323
c03507df
CW
233242010-07-20 Colin Watson <cjwatson@ubuntu.com>
23325
23326 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
23327 implementation of this so that grub-emu links again, with a note
23328 that this should support hotplugging in the future.
23329
b26f1c11
CW
233302010-07-20 Colin Watson <cjwatson@ubuntu.com>
23331
23332 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
23333
efc9d7f1
CW
233342010-07-20 Colin Watson <cjwatson@ubuntu.com>
23335
23336 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
23337 handle on failure.
23338 (grub_loopback_close): Remove empty function.
23339 (grub_loopback_dev): Remove close method.
23340
dd8ff5c9
CW
233412010-07-20 Colin Watson <cjwatson@ubuntu.com>
23342
23343 Disable EFI cursor when the EFI console becomes inactive.
23344
23345 * term/efi/console.c (grub_efi_console_init): New function.
23346 (grub_efi_console_fini): New function.
23347 (grub_console_term_output): Register init and fini methods.
23348
5e3bec67
VS
233492010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23350
23351 * tests/util/grub-shell-tester.in: Remove bashism and declare as
23352 sh script.
23353
afaec079
VS
233542010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23355
23356 * disk/loopback.c (grub_loopback): Replace filename with file.
23357 (delete_loopback): Handle new semantics.
23358 (grub_cmd_loopback): Likewise.
23359 (grub_loopback_iterate): Likewise.
23360 (grub_loopback_close): Likewise.
23361
a6a11f3c
VS
233622010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23363
23364 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
23365 with -p "".
23366 Reported by: Tito Keitel.
23367
64a638b0
VS
233682010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23369
23370 * docs/grub.texi (Naming convention): Document new naming convention.
23371
ab8ba957
VS
233722010-07-20 Vadim Solomin <vadic052@gmail.com>
233732010-07-20 Colin Watson <cjwatson@ubuntu.com>
23374
23375 Generate device.map in something closer to the old ordering.
23376
23377 * util/deviceiter.c (struct device): New declaration.
23378 (compare_file_names): Rename to ...
23379 (compare_devices): ... this. Sort by kernel name in preference to
23380 the stable by-id name, but keep the latter as a fallback comparison.
23381 Update header comment.
23382 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
23383 of `struct device' rather than of plain file names.
23384
a29d6a4b
TF
233852010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
23386
23387 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
23388 on i386.
23389
39d824e8
VS
233902010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
23391
23392 * commands/acpi.c (setup_common_tables): Use sizeof instead of
23393 hardcoding size.
23394 (setv1table): Likewise.
23395
f058276b
FZ
233962010-07-20 Colin Watson <cjwatson@ubuntu.com>
23397
23398 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
23399 removing the homehost if present.
23400 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
23401 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
23402 removing the homehost if present.
23403 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
23404 if possible.
23405 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
23406
23407 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
23408 parameter. Set its pointer target to 0.
23409 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
23410 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
23411 `data_offset' value from the superblock for 1.x metadata.
23412 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
23413 data on the device.
23414 (insert_array): Record the start sector of data on the device.
23415 (grub_raid_register): Pass start_sector parameters to
23416 grub_raid_list->detect and insert_array.
23417 * include/grub/raid.h (struct grub_raid_array): Add start_sector
23418 member.
23419 (struct grub_raid): Add start_sector parameter to `detect'.
23420
23421 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
23422 __attribute__ ((packed)), leaving a comment.
23423 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
23424 (grub_mdraid_detect_09): ... here and ...
23425 (grub_mdraid_detect_1x): ... here.
23426
234272010-07-20 Peter Henn <peter.henn@web.de>
23428
23429 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
23430 chunk size and disk size, which are already given as sector counts
23431 as distinct from the 0.90 units. Fetch the correct device number
23432 from the role table instead of using the table index.
23433
234342010-07-20 Felix Zielcke <fzielcke@z-51.de>
23435
23436 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
23437 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
23438 (WriteMostly1): New macro.
23439 Set array->name to NULL for metadata format 0.90. Add support for
23440 metadata 1.x. Fix some comments.
23441 * disk/raid.c (): Add support for name based RAID arrays. Fix a
23442 few comments.
23443 * util/getroot.c (grub_util_get_grub_dev): Add support for
23444 /dev/md/name style devices.
23445
4b761da9
CW
234462010-07-20 Colin Watson <cjwatson@ubuntu.com>
23447
23448 * .bzrignore: Ignore 20_linux_xen.
23449
5771289a
CW
234502010-07-17 Colin Watson <cjwatson@ubuntu.com>
23451
23452 * util/import_unicode.py: Remove unnecessary imports.
23453
5dab68df
AN
234542010-07-17 Aleš Nesrsta <starous@volny.cz>
23455
23456 Hotplugging and USB hub support.
23457
23458 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
23459 (grub_ohci): Likewise.
23460 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
23461 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
23462 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
23463 (GRUB_OHCI_CTRL_EDS): Likewise.
23464 (GRUB_OHCI_BULK_EDS): Likewise.
23465 (GRUB_OHCI_TDS): Likewise.
23466 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
23467 (grub_ohci_ed_phys2virt): New function.
23468 (grub_ohci_virt_to_phys): Likewise.
23469 (grub_ohci_td_phys2virt): Likewise.
23470 (grub_ohci_td_virt2phys): Likewise.
23471 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
23472 attachment.
23473 (grub_ohci_find_ed): New function.
23474 (grub_ohci_alloc_td): Likewise.
23475 (grub_ohci_free_td): Likewise.
23476 (grub_ohci_free_tds): Likewise.
23477 (grub_ohci_transfer): Use previously allocated memory.
23478 (grub_ohci_portstatus): Reset status changed bit.
23479 (grub_ohci_detect_dev): Supply status changed.
23480 (grub_ohci_fini_hw): Free memory.
23481 (grub_ohci_restore_hw): Reallocate memory.
23482 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
23483 Reset status change.
23484 (grub_uhci_detect_dev): Supply status_change.
23485 * bus/usb/usb.c (attach_hooks): New var.
23486 (grub_usb_device_attach): New function.
23487 (grub_usb_register_attach_hook_class): Likewise.
23488 (grub_usb_unregister_attach_hook_class): Likewise.
23489 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
23490 (grub_usb_add_hub): Reset connection changed bit.
23491 (attach_root_port): New function.
23492 (grub_usb_root_hub): Likewise.
23493 (poll_nonroot_hub): Likewise.
23494 (grub_usb_poll_devices): Likewise.
23495 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
23496 * disk/usbms.c (grub_usbms_open): Use device hooks.
23497 (grub_usbms_iterate) :Poll devices.
23498 (grub_usbms_finddevs): Split into ...
23499 (grub_usbms_attach): ... this ...
23500 (grub_usbms_attach): ... and this.
23501 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
23502 in detect_dev.
23503 (grub_usb_interface): New fields attached and detach_hook.
23504 (grub_usb_attach_hook_class): New type.
23505 (grub_usb_attach_desc): New struct.
23506 (grub_usb_register_attach_hook_class): New function.
23507 (grub_usb_unregister_attach_hook_class): Likewise.
23508 (grub_usb_poll_devices): Likewise.
23509 (grub_usb_device_attach): Likewise.
23510 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
23511 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
23512
3222efaf
VS
235132010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23514
23515 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
23516 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
23517 delta determination style. Works with most NetBSD partitions too.
23518
139b714a
VS
235192010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23520
23521 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
23522 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
23523
986aad56
VS
235242010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
23525
23526 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
23527
99be513c
AB
235282010-07-14 Anton Blanchard <anton@samba.org>
23529
23530 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
23531 ET_DYN files.
23532
18075f62
GS
235332010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23534
23535 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
23536
8d9a5b15
GS
235372010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
23538
23539 * kern/partition.c (grub_partition_check_containment): New function to
23540 check that a partition is physically contained in a parent. Since
23541 offsets are relative (and non-negative), this reduces to checking that
23542 the partition ends before its parent.
23543 (grub_partition_map_probe): Discard out-of-range sub-partitions.
23544 (grub_partition_iterate): Likewise.
23545 * include/grub/partition.h (grub_partition_map): Slightly more detailed
23546 comments.
23547 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
23548 partitions that start before their parent, and add debug printfs.
23549
19563c25
CW
235502010-07-13 Colin Watson <cjwatson@ubuntu.com>
23551
23552 * Makefile.in (.SUFFIX): Spell correctly, as ...
23553 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
23554 bare module name without `.mod', e.g. `test') tried to invoke a
23555 Modula-2 compiler.
23556
1a1f1e67
CW
235572010-07-13 Colin Watson <cjwatson@ubuntu.com>
23558
23559 * README: Point to the Info manual.
23560
811b0dca
JS
235612010-07-13 Jiro SEKIBA <jir@unicus.jp>
23562
23563 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
23564 2nd superblock position from partition size.
23565
e4f4eafc
CW
235662010-07-10 Colin Watson <cjwatson@ubuntu.com>
23567
23568 * Makefile.in (MAINTAINER_CLEANFILES): Remove
23569 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
23570 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
23571 outputs.
23572
4274c30f
VS
235732010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23574
23575 Restructure SCSI .id handling.
23576 Reported and tested by: Aleš Nesrsta.
23577
23578 * disk/ata.c (grub_atapi_close): Removed. All users updated.
23579 (grub_atapi_dev): Changed .name to "ata". New field .id.
23580 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
23581 (grub_usbms_dev): New field .id.
23582 * disk/scsi.c (grub_scsi_iterate): Generate name.
23583 (grub_scsi_open): Parse name.
23584 * include/grub/scsi.h (grub_make_scsi_id): New function.
23585 (grub_scsi_dev): Change iterate and open to number instead of naming
23586 busses. All users updated.
23587 (grub_scsi): Remove name. Add .bus.
23588
5bc24388
VS
235892010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23590
23591 * commands/help.c (grub_cmd_help): Fix a typo.
23592
249975ba
VS
235932010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23594
23595 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
23596 Reported and tested by: Colin Watson.
23597
3eaac1a1
VS
235982010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
23599
23600 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
23601 in this context.
23602
becce1b1
VS
236032010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
23604
23605 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
23606
f7bf0918
CW
236072010-07-07 Colin Watson <cjwatson@ubuntu.com>
23608
23609 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
23610 indentation.
23611
0b0f9620
CW
236122010-07-06 Colin Watson <cjwatson@ubuntu.com>
23613
23614 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
23615 and disk/raid6_recover.c.
23616 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
23617 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
23618
1e545469
CW
236192010-07-06 Colin Watson <cjwatson@ubuntu.com>
23620
23621 * term/gfxterm.c (repaint_schedulded): Rename to ...
23622 (repaint_scheduled): ... this. Update all callers.
23623 (repaint_was_schedulded): Rename to ...
23624 (repaint_was_scheduled): ... this. Update all callers.
23625
5357687a
CW
236262010-07-06 Colin Watson <cjwatson@ubuntu.com>
23627
23628 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
23629 which we expect to be handled by upper layers.
23630
29d7e783
BC
236312010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
23632
23633 * bus/usb/usbhub.c: #include time.h header.
23634
37582066
CW
236352010-07-06 Colin Watson <cjwatson@ubuntu.com>
23636
23637 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
23638 entry_name also for entries without stat blocks (e.g. ".."); fixes
23639 corruption of the first entry in a directory.
23640
c8c06953
CW
236412010-07-06 Colin Watson <cjwatson@ubuntu.com>
23642
23643 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
23644 after setting gfxterm as the active terminal. GRUB_BACKGROUND
23645 doesn't work otherwise.
23646
e75056f1
CW
236472010-07-05 Colin Watson <cjwatson@ubuntu.com>
23648
23649 * docs/grub.texi (Features): Update list of supported file systems.
23650 (GNU/Linux): Update for GRUB 2.
23651 (Serial terminal): Remove mention of --disable-serial, which was a
23652 GRUB Legacy configure option. Update instructions to use
23653 `terminal_input' and `terminal_output' rather than `terminal'.
23654 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
23655 configuration' and `Installing GRUB using grub-install'.
23656 (Menu entry editor): Update for GRUB 2.
23657 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
23658 Document new -a, -u, and -v options.
23659 (initrd): New section.
23660 (initrd16): New section.
23661 (linux): New section.
23662 (linux16): New section.
23663 (search): The `var' argument to `--set' is optional.
23664 (GRUB only offers a rescue shell): Go into a little more detail on
23665 drive ordering.
23666
5cf69151
CW
236672010-07-05 Colin Watson <cjwatson@ubuntu.com>
23668
23669 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
23670
e3f90044
CW
236712010-07-05 Colin Watson <cjwatson@ubuntu.com>
23672
23673 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
23674 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
23675
38d8f4f3
CW
236762010-07-05 Colin Watson <cjwatson@ubuntu.com>
23677
23678 * util/i386/pc/grub-setup.c (setup): Rename prefix to
23679 install_prefix, in line with install_dos_part and install_bsd_part.
23680 Add new prefix variable, which is copied to install_prefix after
23681 comparing core.img in memory with the one read from disk in the
23682 no-embedding case, and use that rather than overwriting
23683 install_prefix immediately when installing to a partition.
23684 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
23685 Bicakci.
23686
57ebd41e
GS
236872010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23688
23689 * configure.ac: Avoid == in test command, it's not portable.
23690 * util/grub.d/30_os-prober.in: Likewise.
23691
cb7f64b2
CW
236922010-07-04 Colin Watson <cjwatson@ubuntu.com>
23693
23694 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
23695
6b654bb0
GS
236962010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
23697
23698 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
23699 multiple (top-level) partmaps.
23700
72a2026d
VS
237012010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23702
23703 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 23704 Reported by: Tino Keitel.
72a2026d 23705
df3eb88f
VS
237062010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
23707
23708 Bidi and diacritics support.
23709
23710 * Makefile.in (widthspec.bin): New target.
23711 (widthspec.h): Likewise.
23712 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
23713 * autogen.sh: Generate unidata.c.
23714 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
23715 * commands/ls.c (grub_ls_list_devices): Likewise.
23716 (grub_ls_list_files): Likewise.
23717 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
23718 (grub_mini_cmd_lsmod): Likewise.
23719 * commands/read.c: Likewise.
23720 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
23721 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
23722 * lib/arg.c (grub_arg_show_help): Likewise.
23723 * lib/crypto.c (grub_password_get): Likewise.
23724 * normal/auth.c (grub_username_get): Likewise.
23725 * normal/misc.c (grub_normal_print_device_info): Likewise.
23726 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
23727 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
23728 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
23729 (normal/charset.c_DEPENDENCIES): New variable.
23730 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
23731 (pkglib_MODULES): Remove charset.mod.
23732 (charset_mod_SOURCES): Removed.
23733 (charset_mod_CFLAGS): Likewise.
23734 (charset_mod_LDFLAGS): Likewise.
23735 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
23736 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
23737 and term/tparm.c.
23738 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23739 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
23740 (kernel_img_HEADERS): Add terminfo.h.
23741 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
23742 Fill ->font. Reverse ascii bitmaps.
23743 (grub_font_get_xheight): New function.
23744 * font/font.c (grub_font_get_string_width): Moved from here ...
23745 * gfxmenu/font.c (grub_font_get_string_width): ... here.
23746 * font/font.c (grub_font_draw_string): Moved from here ...
23747 * gfxmenu/font.c (grub_font_draw_string): ... here.
23748 * font/font.c (grub_font_dup_glyph): New function.
23749 (grub_font_blit_glyph): Likewise.
23750 (grub_font_blit_glyph_mirror): Likewise.
23751 (blit_comb): Likewise.
23752 (grub_font_construct_dry_run): Likewise.
23753 (grub_font_get_constructed_device_width): Likewise.
23754 (grub_font_construct_glyph): Likewise.
23755 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
23756 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
23757 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
23758 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
23759 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
23760 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
23761 (grub_font_get_xheight): New proto.
23762 (grub_font_get_constructed_device_width): Likewise.
23763 (grub_font_construct_glyph): Likewise.
23764 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
23765 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
23766 * include/grub/font.h (grub_font_draw_string): Moved from here ...
23767 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
23768 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
23769 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
23770 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
23771 (grub_console_getcharwidth): Likewise.
23772 * include/grub/misc.h (grub_xputs): New proto.
23773 (grub_puts): Inlined.
23774 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
23775 (grub_normal_get_line_counter): Removed.
23776 (grub_install_newline_hook): Likewise.
23777 (grub_normal_get_char_counter): New proto.
23778 (grub_normal_reset_more): Likewise.
23779 (grub_xputs_normal): Likewise.
23780 * include/grub/powerpc/ieee1275/console.h: Removed.
23781 * include/grub/sparc64/ieee1275/console.h: Likewise.
23782 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
23783 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
23784 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
23785 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
23786 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
23787 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
23788 (grub_term_input): Pass reference to self. All users updated.
23789 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
23790 Pass reference to self. New fields normal_color, highlight_color and
23791 data. All users updated.
23792 (grub_putchar): Removed.
23793 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
23794 (grub_unicode_estimate_width): New function.
23795 (grub_term_getcharwidth): Add defaults.
23796 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
23797 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
23798 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
23799 (grub_cls): Remove EXPORT_FUNC.
23800 (grub_setcolorstate): Inline.
23801 (grub_newline_hook): Removed.
23802 * include/grub/terminfo.h: Rewritten. All users updated.
23803 * include/grub/unicode.h: New file.
23804 * include/grub/video.h (grub_video_signed_rect): New type.
23805 * kern/emu/console.c (grub_console_highlight_color): Removed.
23806 (grub_console_normal_color): Likewise.
23807 (grub_console_standard_color): Made static.
23808 (grub_ncurses_putchar): Remove mapping.
23809 (grub_ncurses_getcharwidth): Removed.
23810 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23811 (grub_ncurses_setcolor): Removed.
23812 (grub_ncurses_getcolor): Likewise.
23813 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
23814 (grub_console_putchar): ... this.
23815 (grub_console_putchar): Handle argument difference.
23816 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
23817 console_init_early and console_init_lately.
23818 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
23819 * kern/misc.c (grub_puts): Removed.
23820 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
23821 (grub_vsnprintf_real): Remove str = NULL support.
23822 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
23823 * normal/charset.c (grub_utf8_to_ucs4): ... here.
23824 * kern/term.c (grub_putcode): Renamed to ...
23825 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
23826 (grub_putchar): Removed.
23827 (grub_xputs_dumb): New function.
23828 (grub_xputs): New variable.
23829 * lib/charset.c: Move from here ...
23830 * normal/charset.c: ... to here.
23831 (grub_ucs4_to_utf8): New function.
23832 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
23833 (join_types): New variable.
23834 (unpack_join): New function.
23835 (bidi_types): New variable.
23836 (unpack_bidi): New function.
23837 (get_bidi_type): Likewise.
23838 (get_join_type): Likewise.
23839 (is_mirrored): Likewise.
23840 (grub_unicode_get_comb_type): Likewise.
23841 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
23842 (is_type_after): Likewise.
23843 (grub_unicode_aglomerate_comb): Likewise.
23844 (bidi_line_wrap): Likewise.
23845 (grub_bidi_line_logical_to_visual): Likewise.
23846 (grub_bidi_logical_to_visual): Likewise.
23847 (grub_unicode_mirror_code): Likewise.
23848 (grub_unicode_shape_code): Likewise.
23849 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
23850 Don't use grub_putchar.
23851 * normal/main.c (grub_normal_init_page): Use grub_putcode.
23852 (grub_normal_reader_init): Likewise.
23853 (grub_xputs_saved): New variable.
23854 (GRUB_MOD_INIT): Set grub_xputs.
23855 (GRUB_MOD_FINI): Restore grub_xputs.
23856 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
23857 (menu_init): Avoid printing gfxmenu error.
23858 (show_menu): Use grub_normal_get_char_counter.
23859 * normal/menu_entry.c (update_screen): Fix out-of-array.
23860 (complete): Avoid NULL dereferencing.
23861 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
23862 * normal/menu_text.c (print_spaces): Removed.
23863 (grub_print_ucs4): Likewise.
23864 (grub_print_message_indented): Use grub_print_ucs4.
23865 (print_message): Use grub_putcode.
23866 (print_entry): Hanlde diacritics.
23867 * normal/term.c (term_state): New type.
23868 (grub_more_lines): Removed.
23869 (term_states): New variable.
23870 (grub_normal_line_counter): Renamed to ..
23871 (grub_normal_char_counter): ...this. All users updated.
23872 (grub_normal_get_line_counter): Renamed to ...
23873 (grub_normal_get_char_counter): ... this.
23874 (grub_normal_reset_more): New function.
23875 (process_newline): Removed.
23876 (print_more): New function.
23877 (grub_install_newline_hook): Removed.
23878 (map_code): New function.
23879 (grub_puts_terminal): Use grub_print_ucs4.
23880 (putglyph): New function.
23881 (putcode_real): Likewise.
23882 (grub_putcode): Use putcode_real.
23883 (get_maxwidth): New function.
23884 (get_startwidth): Likewise.
23885 (print_ucs4_terminal): Likewise.
23886 (find_term_state): Likewise.
23887 (put_glyphs_terminal): Likewise.
23888 (print_backlog): Likewise.
23889 (print_ucs4_real): Likewise.
23890 (grub_print_ucs4): Likewise.
23891 (grub_xputs_normal): Likewise.
23892 * term/efi/console.c (grub_console_putchar): Output diacritics.
23893 (grub_console_getcharwidth): Removed.
23894 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23895 * term/gfxterm.c (clear_char): Free chars.
23896 (scroll_up): Avoid leaking memory.
23897 (grub_gfxterm_putchar): Support diacritics.
23898 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
23899 * term/i386/pc/console.c (grub_console_term_output): Declare as
23900 GRUB_TERM_CODE_TYPE_VGA.
23901 * term/i386/pc/vga.c (grub_vga_term): Declare as
23902 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
23903 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
23904 GRUB_TERM_CODE_TYPE_VGA.
23905 * term/i386/vga_common.c (map_char): Removed.
23906 (grub_console_putchar): Likewise.
23907 (grub_console_getcharwidth): Likewise.
23908 * term/ieee1275/ofconsole.c: Simplify using terminfo.
23909 (colors): Reordered to match terminfo.
23910 (grub_ofconsole_normal_color): Removed.
23911 (grub_ofconsole_writeesc): Likewise.
23912 (grub_ofconsole_highlight_color): Likewise.
23913 (grub_ofconsole_getcharwidth): Likewise.
23914 (grub_ofconsole_setcolorstate): Likewise.
23915 (grub_ofconsole_setcolor): Likewise.
23916 (grub_ofconsole_getcolor): Likewise.
23917 (grub_ofconsole_readkey): Renamed to ...
23918 (readkey): ... this. Remove escape sequence handling. Return -1 on no
23919 key.
23920 (grub_ofconsole_checkkey): Removed.
23921 (grub_ofconsole_getkey): Likewise.
23922 (grub_ofconsole_getxy): Likewise.
23923 (grub_ofconsole_gotoxy): Likewise.
23924 (grub_ofconsole_cls): Likewise.
23925 (grub_ofconsole_refresh): Likewise.
23926 (grub_ofconsole_terminfo_input): New struct.
23927 (grub_ofconsole_terminfo_output): Likewise.
23928 (grub_ofconsole_term_input): Use terminfo.
23929 (grub_ofconsole_term_output): Likewise.
23930 (grub_console_init): Split into ...
23931 (grub_console_init_early): ...this and ...
23932 (grub_console_init_lately): ...this. Use terminfo.
23933 (grub_ofconsole_putchar): Renamed to ...
23934 (put): ... this. Remove mapping.
23935 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
23936 * term/serial.c: Simplify using terminfo.
23937 (xpos): Removed.
23938 (ypos): Likewise.
23939 (keep_track): Likewise.
23940 (registered): Likewise.
23941 (input_buf): Likewise.
23942 (npending): Likewise.
23943 (serial_translate_key_sequence): Likewise.
23944 (fill_input_buf): Likewise.
23945 (grub_serial_checkkey): Likewise.
23946 (grub_serial_getkey): Likewise.
23947 (grub_serial_getxy): Likewise.
23948 (grub_serial_gotoxy): Likewise.
23949 (grub_serial_putchar): Likewise.
23950 (grub_serial_cls): Likewise.
23951 (grub_serial_setcolorstate): Likewise.
23952 (grub_serial_setcursor): Likewise.
23953 (serial_hw_init): Use serial_hw_fetch.
23954 (grub_serial_terminfo_input): New variable.
23955 (grub_serial_terminfo_output): Likewise.
23956 (grub_serial_term_input): Use terminfo.
23957 (grub_serial_term_output): Likewise.
23958 * term/terminfo.c (putstr): Use put.
23959 (grub_terminfo_all_free): New function
23960 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
23961 (grub_terminfo_output_register): New function.
23962 (grub_terminfo_output_unregister): Likewise.
23963 (grub_terminfo_getxy): Likewise.
23964 (grub_terminfo_readkey): Likewise.
23965 (grub_terminfo_checkkey): Likewise.
23966 (grub_terminfo_getkey): Likewise.
23967 (grub_terminfo_input_init): Likewise.
23968 (print_terminfo): Likewise.
23969 (grub_cmd_terminfo): Handle encoding.
23970 (grub_terminfo_gotoxy): Track position.
23971 (grub_terminfo_cls): Likewise.
23972 (grub_terminfo_putchar): Likewise.
23973 (grub_terminfo_setcolorstate): Handle colors
23974 (grub_terminfo_cursor_on): This ...
23975 (grub_terminfo_cursor_off): ... and this merged into ...
23976 (grub_terminfo_setcursor): ... this.
23977 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
23978 * unicode/ArabicShaping.txt: New file (imported from Unicode).
23979 * unicode/BidiMirroring.txt: Likewise.
23980 * unicode/UnicodeData.txt: Likewise.
23981 * unicode/COPYING: Likewise.
23982 * util/grub-editenv.c (grub_putchar): Removed.
23983 (grub_xputs_real): New function.
23984 (grub_xputs): New variable.
23985 * util/grub-fstest.c (grub_putchar): Removed.
23986 (grub_xputs_real): New function.
23987 (grub_xputs): New variable.
23988 * util/grub-mkdevicemap.c (grub_putchar): Removed.
23989 (grub_xputs_real): New function.
23990 (grub_xputs): New variable.
23991 * util/grub-probe.c (grub_putchar): Removed.
23992 (grub_xputs_real): New function.
23993 (grub_xputs): New variable.
23994 * util/grub-script-check.c (grub_putchar): Removed.
23995 (grub_xputs_real): New function.
23996 (grub_xputs): New variable.
23997 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
23998 (grub_xputs_real): New function.
23999 (grub_xputs): New variable.
24000 * util/import_unicode.py: New file.
24001 * util/grub-mkfont.c (ft_errmsgs): New array.
24002 (grub_glyph_info): Make bitmap a pointer.
24003 (file_formats): New type WIDTH_SPEC.
24004 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
24005 (options): Add width-spec.
24006 (help): Likewise.
24007 (add_char): Renamed to ...
24008 (add_glyph): ... this.
24009 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
24010 (glyph_replace): New type.
24011 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
24012 (add_char): New function.
24013 (add_subst): Likewise.
24014 (process_cursive): Likewise.
24015 (add_font): Handle GSUB.
24016 (write_font_width_spec): New function.
24017 (main): Sort glyphs.
24018 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
24019 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
24020 * kern/term.c (grub_cls): Moved from here...
24021 * normal/term.c (grub_cls): ... here.
24022
50f0bcda
CW
240232010-07-02 Colin Watson <cjwatson@ubuntu.com>
24024
24025 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
24026 suitable for using within the format argument of printf when
24027 converting grub_size_t.
24028 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
24029 "x" to convert grub_size_t arguments.
24030
40372103
VS
240312010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24032
24033 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
24034 too long captions.
24035 (list_get_minimal_size): Take selection box into account.
24036
942a10c7
VS
240372010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24038
24039 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
24040 NULL font.
24041
2bdb2892
CW
240422010-07-02 Colin Watson <cjwatson@ubuntu.com>
24043
24044 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
24045 devices when iterating over /dev/disk/by-id; they will be handled
24046 later if appropriate, which they aren't always (e.g. LVM).
24047
e03ed6c1
CW
240482010-07-02 Colin Watson <cjwatson@ubuntu.com>
24049
24050 * include/grub/misc.h (grub_reboot): Declare as noreturn.
24051 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
24052 fails.
24053 (grub_halt): Likewise.
24054 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
24055 reset-all fails.
24056 (grub_halt): Don't return, even if all of shut-down, power-off, and
24057 poweroff fail.
24058
47695765
CW
240592010-07-02 Colin Watson <cjwatson@ubuntu.com>
24060
24061 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
24062 arguments, not three.
24063
507736c8
CW
240642010-07-02 Colin Watson <cjwatson@ubuntu.com>
24065
24066 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
24067 * util/grub.d/10_linux.in: Use it to check for LVM, so that
24068 LVM-on-RAID is handled correctly.
24069
e3c8cd37
CW
240702010-07-02 Colin Watson <cjwatson@ubuntu.com>
24071
24072 * docs/grub.texi (Changes from GRUB Legacy): New section.
24073 (Future): Fix typo.
24074
8d4a2fec
CW
240752010-07-02 Colin Watson <cjwatson@ubuntu.com>
24076
24077 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
24078 grub.d/README accidentally ends up executable for one reason or
24079 another. Ignore it.
24080
1c4827be
VS
240812010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24082
24083 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
24084 (gpt_partition_map_iterate): Support non-512B sectors.
24085
d9a0c941
VS
240862010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24087
24088 * kern/efi/init.c (grub_efi_init): Disable watchdog.
24089 Tested by: Seth Goldberg.
24090
48f27e87
VS
240912010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
24092
24093 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
24094 Properly align mbi.
24095 Reported by: Seth Goldberg.
24096
b0c4f956
VS
240972010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24098
24099 * util/grub-mkrescue.in: Avoid module duplication.
24100
105a2e8c
SF
241012010-07-01 Sean Finney <seanius@seanius.net>
24102
24103 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
24104
5944958c
SF
241052010-07-01 Sean Finney <seanius@seanius.net>
24106
24107 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
24108
241092010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24110
24111 * disk/lvm.c (grub_lvm_checkvalue): New function.
24112 (grub_lvm_check_flag): Likewise.
24113
b79889ba
RM
241142010-07-01 Robert Millan <rmh@gnu.org>
24115
24116 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
24117 Support 'p' as partition separator on kernel of FreeBSD (used
24118 with GPT labels).
24119 (grub_util_biosdisk_get_grub_dev): Likewise.
24120
ec1d04f1
VS
241212010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
24122
24123 Yeeloong firmware port.
24124
24125 * boot/mips/yeeloong/fwstart.S: New file.
24126 * bus/cs5536.c (gpiodump): New const.
24127 (set_io_space): New function.
24128 (set_iod): Likewise.
24129 (set_p2d): Likewise.
24130 (grub_cs5536_init_geode): Likewise.
24131 * commands/mips/yeeloong/lsspd.c: New file.
24132 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
24133 (serial_mod_SOURCES): New variable.
24134 (serial_mod_CFLAGS): Likewise.
24135 (serial_mod_LDFLAGS): Likewise.
24136 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
24137 term/terminfo.c and term/tparm.c.
24138 (pkglib_IMAGES): Add fwstart.img.
24139 (fwstart_img_SOURCES): New variable.
24140 (fwstart_img_CFLAGS): Likewise.
24141 (fwstart_img_ASFLAGS): Likewise.
24142 (fwstart_img_LDFLAGS): Likewise.
24143 (fwstart_img_FORMAT): Likewise.
24144 (pkglib_MODULES): Add lsspd.mod.
24145 (lsspd_mod_SOURCES): New variable.
24146 (lsspd_mod_CFLAGS): Likewise.
24147 (lsspd_mod_LDFLAGS): Likewise.
24148 (pkglib_MODULES): Add halt.mod.
24149 (halt_mod_SOURCES): New variable.
24150 (halt_mod_CFLAGS): Likewise.
24151 (halt_mod_LDFLAGS): Likewise.
24152 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
24153 (serial_mod_SOURCES): Removed.
24154 (serial_mod_CFLAGS): Likewise.
24155 (serial_mod_LDFLAGS): Likewise.
24156 * disk/ata.c (check_device): New function.
24157 (grub_ata_device_initialize): Use check_device.
24158 (grub_ata_iterate): Recheck devices.
24159 (grub_ata_open): Likewise.
24160 (grub_atapi_iterate): Likewise.
24161 (grub_atapi_open): Likewise.
24162 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
24163 (GRUB_ATA_CH1_PORT1): Likewise.
24164 (GRUB_ATA_CH0_PORT2): Likewise.
24165 (GRUB_ATA_CH1_PORT2): Likewise.
24166 * include/grub/mips/loongson.h: New file.
24167 * include/grub/mips/yeeloong/ec.h: Likewise.
24168 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
24169 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
24170 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
24171 * include/grub/misc.h (grub_halt): Declare as noreturn.
24172 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
24173 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
24174 (UART_ENABLE_FIFO_TRIGGER1): New definition.
24175 (UART_ENABLE_DTRRTS): Likewise.
24176 (UART_ENABLE_MODEM): Removed.
24177 (UART_ENABLE_OUT2): New const.
24178 * include/grub/term.h (grub_term_register_input_active): New function.
24179 (grub_term_register_output_active): Likewise.
24180 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
24181 argument.
24182 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
24183 (init_pci): New function.
24184 (grub_machine_init): Execute platform init when firmware. Init serial.
24185 (grub_halt): Implement.
24186 (grub_exit): Likewise.
24187 (grub_reboot): Likewise.
24188 * term/serial.c (serial_hw_init): Update macros.
24189 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
24190 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
24191 (image_targets): New target mipsel-yeeloong-flash.
24192 (generate_image): Support IMAGE_YEELOONG_FLASH.
24193 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
24194 (grub_video_sm712_setup): Init card.
24195 (grub_video_sm712_set_palette): Removed.
24196 * video/sm712_init.c: New file.
24197
ff4a70d2
CW
241982010-06-30 Colin Watson <cjwatson@ubuntu.com>
24199
24200 * Makefile.in (install-local): Temporarily prepend $(builddir) to
24201 PATH when running help2man and then run it on the unadorned
24202 executable names, rather than passing $(builddir)/* paths to
24203 help2man. This avoids the build directory ending up in generated
24204 manual pages.
24205
1246efeb
CW
242062010-06-29 Colin Watson <cjwatson@ubuntu.com>
24207
24208 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
24209 to avoid accidents when debugging with 'sh -x'.
24210 * util/grub-mkrescue.in: Likewise.
24211 * util/grub.d/00_header.in: Likewise.
24212 * util/grub.d/10_hurd.in: Likewise.
24213 * util/grub.d/10_kfreebsd.in: Likewise.
24214 * util/grub.d/10_linux.in: Likewise.
24215 * util/grub.d/10_netbsd.in: Likewise.
24216 * util/grub.d/10_windows.in: Likewise.
24217 * util/grub.d/20_linux_xen.in: Likewise.
24218 * util/grub.d/30_os-prober.in: Likewise.
24219 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24220
1ba9b889
CW
242212010-06-29 Colin Watson <cjwatson@ubuntu.com>
24222
24223 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
24224 last character in the buffer.
24225 Reported by: Vladimir Serbinenko.
24226
dccaf99d
RM
242272010-06-29 Robert Millan <rmh@gnu.org>
24228
24229 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
24230 (Command-line and menu entry commands): Document `badram' command.
24231
d500ed12
RM
242322010-06-28 Robert Millan <rmh@gnu.org>
24233
24234 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
24235 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
24236 command using ${GRUB_BADRAM} as parameter.
24237
20bc84a6
CW
242382010-06-28 Colin Watson <cjwatson@ubuntu.com>
24239
24240 * docs/grub.texi (Device map): New section.
24241 (Themes): New section (stub).
24242 * Makefile.in (docs/grub.info): The info documentation now builds
24243 without errors. Make sure it stays that way.
24244
4045dee1
VS
242452010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24246
24247 Use normal parser for menu entries.
24248 Reported by: Thomas Frauendorfer
24249
24250 * include/grub/parser.h (grub_parser_execute): Don't export.
24251 * normal/menu.c (grub_menu_execute_entry_real): New function.
24252 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
24253
bca58c7b
CW
242542010-06-28 Colin Watson <cjwatson@ubuntu.com>
24255
24256 * docs/grub.texi (Embedded configuration): New section (replacing
24257 old "Preset Menu" stub).
24258 (Images): New section.
24259 (configfile): Note that any menu entries defined in `file' are shown
24260 immediately.
24261
dec53e63
JT
242622010-06-28 Josh Triplett <josh@joshtriplett.org>
24263
24264 * mmap/i386/pc/mmap_helper.S: Set CF on return.
24265
c06e40f7
CW
242662010-06-28 Colin Watson <cjwatson@ubuntu.com>
24267
24268 * util/grub-install.in: Add --debug-image= option.
24269
cb88052b
CW
242702010-06-28 Colin Watson <cjwatson@ubuntu.com>
24271
24272 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
24273 possible on Linux.
24274
24275 * util/deviceiter.c (check_device): Rename to ...
24276 (check_device_readable_unique): ... this. Update all callers.
24277 Maintain and check a list of which devices (by canonicalized name)
24278 have already been seen.
24279 (clear_seen_devices): New function.
24280 (compare_file_names) [__linux__]: New function.
24281 (grub_util_iterate_devices): Clear the list of seen devices on exit
24282 and (just in case) on entry.
24283 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
24284 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
24285 seen-devices list, superseded by general code in check_device.
24286
bbe34652
CW
242872010-06-28 Colin Watson <cjwatson@ubuntu.com>
24288
24289 * commands/cat.c (options): New variable.
24290 (grub_cmd_cat): Parse options. If the --dos option is given, print
24291 DOS-style "\r\n" line endings as simple newlines (Debian bug
24292 #586358).
24293 (GRUB_MOD_INIT): Use extcmd.
24294 (GRUB_MOD_FINI): Likewise.
24295 * docs/grub.texi (cat): Document --dos.
24296
412e09f3
VS
242972010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
24298
24299 XEN with Linux grub-mkconfig support.
24300
24301 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
24302 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
24303 GRUB_CMDLINE_XEN_DEFAULT.
24304 * util/grub.d/20_linux_xen.in: New file.
24305
53f3ef38 243062010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
24307
24308 Initialise VGA video on qemu ourselves.
24309
24310 * boot/i386/qemu/boot.S: Don't call 0xc000.
24311 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
24312 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
24313 (kernel_img_HEADERS): Add pci.h.
24314 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
24315 * configure.ac: Force unifont on qemu and yeeloong.
24316 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
24317 (grub_vga_palette_write): Use correct register.
24318 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
24319 Call grub_qemu_init_cirrus.
24320 * kern/i386/qemu/init.c: New file.
24321 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
24322
24323 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
24324
c75be4fb
PR
243252010-06-26 Pavel Roskin <proski@gnu.org>
24326
24327 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
24328 13.
24329
d8034603
CW
243302010-06-26 Colin Watson <cjwatson@ubuntu.com>
24331
24332 * docs/grub.texi (Simple configuration): Explain that
24333 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
24334 set to `true' to disable their respective recovery entries, not
24335 merely set.
24336
3fa06487
CW
243372010-06-26 Colin Watson <cjwatson@ubuntu.com>
24338
24339 Make the `source' command slightly faster.
24340
24341 * normal/main.c (grub_normal_execute): Don't re-read list files when
24342 nested.
24343
e9b29642
CW
243442010-06-23 Colin Watson <cjwatson@ubuntu.com>
24345
24346 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
24347 field position and mask size to red fields from mode_info, not
24348 green.
24349 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
24350 Remove redundant tag->common.framebuffer_type assignment.
24351 Reported by: Seth Goldberg.
24352
e726542f
CW
243532010-06-23 Colin Watson <cjwatson@ubuntu.com>
24354
24355 Sync up other versions of the Linux loader with Robert Millan's
24356 change of 2010-01-09, "Make loader output a bit more user-friendly".
24357
24358 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
24359 grub_dprintf().
24360 (grub_cmd_linux): Likewise.
24361 (grub_cmd_initrd): Likewise.
24362 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
24363 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
24364
d6e98a17
CW
243652010-06-21 Colin Watson <cjwatson@ubuntu.com>
24366
24367 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
24368 larger than MEMORY_MAP_SIZE.
24369
14d3f08e
BC
243702010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
24371
24372 Fix parallel build.
24373
24374 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
24375 dependency.
24376 * script/parser.y: #include grub_script.tab.h header.
24377
4f9613a3
VS
243782010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24379
24380 Support >3GiB and <16MiB RAM in i386-qemu.
24381
24382 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
24383 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
24384 (grub_lower_mem): Removed.
24385 (grub_upper_mem): Likewise.
24386 (mem_size): Made static.
24387 (above_4g): New variable.
24388 (grub_machine_mmap_init): Detect small mem_size and above_4g.
24389 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
24390 support.
24391
05e51879
VS
243922010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24393
24394 Cirrus 5446 and Bochs video cards support.
24395
24396 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
24397 video_bochs.mod
24398 (video_cirrus_mod_SOURCES): New variable.
24399 (video_cirrus_mod_CFLAGS): Likewise.
24400 (video_cirrus_mod_LDFLAGS): Likewise.
24401 (video_bochs_mod_SOURCES): Likewise.
24402 (video_bochs_mod_CFLAGS): Likewise.
24403 (video_bochs_mod_LDFLAGS): Likewise.
24404 * include/grub/vga.h: New file.
24405 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
24406 (grub_video_fb_set_page_t): New type.
24407 (grub_video_fb_setup): New prototype.
24408 (grub_video_fb_swap_buffers): Likewise.
24409 (grub_video_fb_get_info_and_fini): Likewise.
24410 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
24411 (CRTC_DATA_PORT): Likewise.
24412 (CRTC_CURSOR): Likewise.
24413 (CRTC_CURSOR_ADDR_HIGH): Likewise.
24414 (CRTC_CURSOR_ADDR_LOW): Likewise.
24415 (CRTC_CURSOR_DISABLE): Likewise.
24416 (update_cursor): Use grub_vga_cr_write.
24417 (grub_vga_text_setcursor): Likewise.
24418 * video/bochs.c: New file.
24419 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
24420 (palette): Likewise.
24421 (palette_size): Likewise.
24422 (framebuffer): New variable.
24423 (grub_video_fb_init): Use 'framebuffer'.
24424 (grub_video_fb_fini): Likewise.
24425 (grub_video_fb_get_info): Likewise.
24426 (grub_video_fb_get_palette): Likewise.
24427 (grub_video_fb_set_palette): Likewise.
24428 (grub_video_fb_set_viewport): Likewise.
24429 (grub_video_fb_get_viewport): Likewise.
24430 (grub_video_fb_map_color): Likewise.
24431 (grub_video_fb_map_rgb): Likewise.
24432 (grub_video_fb_map_rgba): Likewise.
24433 (grub_video_fb_unmap_color): Likewise.
24434 (grub_video_fb_unmap_color_int): Likewise.
24435 (grub_video_fb_fill_rect): Likewise.
24436 (grub_video_fb_blit_bitmap): Likewise.
24437 (grub_video_fb_blit_render_target): Likewise.
24438 (grub_video_fb_scroll): Likewise.
24439 (grub_video_fb_create_render_target): Likewise.
24440 (grub_video_fb_doublebuf_blit_init): Likewise.
24441 (grub_video_fb_set_active_render_target): Handle doublebuffering.
24442 (doublebuf_pageflipping_update_screen): New function.
24443 (doublebuf_pageflipping_init): Likewise.
24444 (grub_video_fb_setup): Likewise.
24445 (grub_video_fb_swap_buffers): Likewise.
24446 (grub_video_fb_get_info_and_fini): Likewise.
24447 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
24448 All users updated.
24449 (doublebuf_pageflipping_commit): Restructured into ...
24450 (doublebuf_pageflipping_set_page): ... this.
24451 (doublebuf_pageflipping_update_screen): Removed.
24452 (doublebuf_pageflipping_init): Likewise.
24453 (double_buffering_init): Likewise.
24454 (grub_video_vbe_setup): Use grub_video_fb_setup.
24455 (grub_video_vbe_swap_buffers): Removed.
24456 (grub_video_vbe_set_active_render_target): Likewise.
24457 (grub_video_vbe_get_active_render_target): Likewise.
24458 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
24459 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
24460 grub_video_fb_set_active_render_target and
24461 grub_video_fb_get_active_render_target.
24462 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
24463 (SEQUENCER_DATA_PORT): Likewise.
24464 (MAP_MASK_REGISTER): Likewise.
24465 (CRTC_ADDR_PORT): Likewise.
24466 (CRTC_DATA_PORT): Likewise.
24467 (START_ADDR_HIGH_REGISTER): Likewise.
24468 (START_ADDR_LOW_REGISTER): Likewise.
24469 (GRAPHICS_ADDR_PORT): Likewise.
24470 (GRAPHICS_DATA_PORT): Likewise.
24471 (READ_MAP_REGISTER): Likewise.
24472 (INPUT_STATUS1_REGISTER): Likewise.
24473 (INPUT_STATUS1_VERTR_BIT): Likewise.
24474 (get_map_mask): Use grub_vga_sr_read.
24475 (set_map_mask): Use grub_vga_sr_write.
24476 (set_read_map): Use grub_vga_gr_write.
24477 (set_start_address): Use grub_vga_cr_write.
24478 * video/sm712.c (framebuffer): Remove leftover fields.
24479
4321c64a
CW
244802010-06-20 Colin Watson <cjwatson@ubuntu.com>
24481
24482 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
24483 setting GRUB_VIDEO_BACKEND. Make it available as a user override
24484 instead. Replace the gfxterm backend check with a check that
24485 ${GRUB_PREFIX}/video.lst is non-empty.
24486 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
24487 again.
24488 (load_video): New generated function. Call it before loading
24489 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
24490 * util/grub.d/10_linux.in (linux_entry): Call load_video.
24491 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
24492 * docs/grub.texi (Simple configuration): Document
24493 GRUB_VIDEO_BACKEND.
24494
244952010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
24496
24497 Use video functions in linux and xnu loaders.
24498
24499 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
24500 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
24501 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
24502 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
24503 loader/i386/pc/linux.c.
24504 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
24505 (find_line_len): Removed.
24506 (find_framebuf): Likewise.
24507 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
24508 * loader/i386/efi/xnu.c: Removed.
24509 * loader/i386/pc/xnu.c: Moved from here...
24510 * loader/i386/xnu.c: ...here.
24511
24512 Enable priorities in video drivers.
24513
24514 * include/grub/video.h (grub_video_adapter_prio_t): New type.
24515 (grub_video_adapter): New field prio.
24516 (grub_video_register): Respect prio when inserting.
24517 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
24518 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
24519 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
24520 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
24521 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
24522 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
24523 * video/sm712.c (grub_video_sm712_adapter): Likewise.
24524
24525 Fix SDL driver ID.
24526
24527 * include/grub/video.h (grub_video_driver_id_t): New value
24528 GRUB_VIDEO_DRIVER_SDL.
24529 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
24530
7d24e434
CW
245312010-06-17 Colin Watson <cjwatson@ubuntu.com>
24532
24533 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
24534 argument to printf.
24535 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24536
c88a83f6
CW
245372010-06-17 Colin Watson <cjwatson@ubuntu.com>
24538
24539 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
24540 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24541
094dfb69
CW
245422010-06-17 Colin Watson <cjwatson@ubuntu.com>
24543
24544 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
24545 directly, and recommend grub-install instead.
24546 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
24547
2164da6b
CW
245482010-06-17 Colin Watson <cjwatson@ubuntu.com>
24549
24550 Fix i386-pc prefix handling with nested partitions (Debian bug
24551 #585068). Note that the case where the core image is booted using
24552 multiboot and relocated from its original location still requires
24553 more work.
24554
24555 * kern/i386/pc/init.c (make_install_device): If the prefix starts
24556 with "(,", fill the boot drive in between those two characters, but
24557 expect that a full partition specification including partition map
24558 names will follow.
24559 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
24560 specified, write a prefix without the drive name but including a
24561 full partition specification.
24562
044e2e60
CW
245632010-06-16 Colin Watson <cjwatson@ubuntu.com>
24564
24565 * util/grub-mkconfig.in: Ignore non-option arguments, for
24566 compatibility with older versions (before 2010-06-12) which did the
24567 same. In particular, this makes it easier to ship an update-grub
24568 wrapper which is compatible with that used with GRUB Legacy (Debian
24569 bug #586056).
24570
5591324f
GS
245712010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24572
24573 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
24574 for manual page generation.
24575
662e24d5
GS
245762010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
24577
24578 * po/POTFILES: Remove leftover commands/handler.c.
24579
8d70754e
CW
245802010-06-14 Colin Watson <cjwatson@ubuntu.com>
24581
24582 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
24583 left this script non-functional.
24584
41160e2e
CW
245852010-06-14 Colin Watson <cjwatson@ubuntu.com>
24586
24587 * docs/man/grub-emu.h2m: New file.
24588
b5309cc1
CW
245892010-06-13 Colin Watson <cjwatson@ubuntu.com>
24590
24591 * docs/grub.texi (Commands): Document reduced command set in rescue
24592 mode.
24593 (cpuid): New section.
24594
fcb2d090
GS
245952010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
24596
24597 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
24598 new partition naming style.
24599 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
24600
96e5c556
BC
246012010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
24602
24603 Add "-o grub.iso" like cmdline options support.
24604
24605 * util/grub-install.in: Improve cmdline option parsing.
24606 * util/grub-mkconfig.in: Likewise.
24607 * util/grub-mkrescue.in: Likewise.
24608 * util/grub-reboot.in: Likewise.
24609 * util/grub-set-default.in: Likewise.
24610 * util/i386/efi/grub-install.in: Likewise.
24611 * util/ieee1275/grub-install.in: Likewise.
24612 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24613
c16be99b
CW
246142010-06-12 Colin Watson <cjwatson@ubuntu.com>
24615
24616 * .bzrignore: Ignore 41_custom.
24617
ce08a9fb
TS
246182010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24619
24620 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
24621
7beac90c
CW
246222010-06-12 Colin Watson <cjwatson@ubuntu.com>
24623
24624 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
24625 prototype declarations.
24626
24627 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
24628 generating fs, partmap, and video lists.
24629 * include/grub/fs.h (grub_fs_register): Omit prototype if
24630 GRUB_LST_GENERATOR is defined.
24631 * include/grub/partition.h (grub_partition_map_register): Likewise.
24632 * include/grub/video.h (grub_video_register): Likewise.
24633
1c8f0f8d
JM
246342010-06-12 Javier Martín <lordhabbit@gmail.com>
24635
24636 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
24637
a6085973
TS
246382010-06-12 Thomas Schmitt <scdbackup@gmx.net>
24639
24640 * util/grub-mkrescue.in: Support --xorriso argument.
24641
25c56d29
VS
246422010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24643
24644 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
24645 Suggested by: Thomas Schmitt.
24646
e03e4b24
VS
246472010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24648
24649 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
24650 Suggested by: Thomas Schmitt.
24651
57711df6
VS
246522010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
24653
24654 custom.cfg support.
24655
24656 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
24657 * util/grub.d/41_custom.in: New file.
24658
ee62c427
CW
246592010-06-12 Colin Watson <cjwatson@ubuntu.com>
24660
24661 * util/grub-mkrescue.in (make_image): Remove sh module, which has
24662 been merged back into normal.
24663
283af07a
CW
246642010-06-11 Colin Watson <cjwatson@ubuntu.com>
24665
24666 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
24667 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
24668
56a0d956
CW
246692010-06-11 Colin Watson <cjwatson@ubuntu.com>
24670
24671 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
24672 when generating manual pages.
24673 * docs/man/grub-bin2h.h2m: New file.
24674 * docs/man/grub-editenv.h2m: New file.
24675 * docs/man/grub-fstest.h2m: New file.
24676 * docs/man/grub-install.h2m: New file.
24677 * docs/man/grub-macho2img.h2m: New file.
24678 * docs/man/grub-mkconfig.h2m: New file.
24679 * docs/man/grub-mkdevicemap.h2m: New file.
24680 * docs/man/grub-mkfont.h2m: New file.
24681 * docs/man/grub-mkimage.h2m: New file.
24682 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
24683 * docs/man/grub-mkrelpath.h2m: New file.
24684 * docs/man/grub-mkrescue.h2m: New file.
24685 * docs/man/grub-ofpathname.h2m: New file.
24686 * docs/man/grub-pe2elf.h2m: New file.
24687 * docs/man/grub-probe.h2m: New file.
24688 * docs/man/grub-reboot.h2m: New file.
24689 * docs/man/grub-script-check.h2m: New file.
24690 * docs/man/grub-set-default.h2m: New file.
24691 * docs/man/grub-setup.h2m: New file.
24692
3a37e322
VS
246932010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
24694
24695 Use FOR_* macros instead of *_iterate whenever possible.
24696
24697 * commands/handler.c: Removed.
24698 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
24699 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
24700 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24701 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
24702 (grub_probe_SOURCES): Remove kern/parser.c.
24703 (util/grub-script-check.c_DEPENDENCIES): Removed.
24704 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
24705 and grub_script_check_init.c.
24706 (grub_script_check_init.lst): Removed.
24707 (grub_script_check_init.h): Likewise.
24708 (grub_script_check_init.c): Likewise.
24709 (pkglib_MODULES): Remove handler.mod and sh.mod.
24710 (handler_mod_SOURCES): Removed.
24711 (handler_mod_CFLAGS): Likewise.
24712 (handler_mod_LDFLAGS): Likewise.
24713 (normal_mod_SOURCES): Remove normal/handler.c.
24714 Add script/main.c, script/script.c, script/execute.c,
24715 script/function.c, script/lexer.c, grub_script.tab.c
24716 and grub_script.yy.c.
24717 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24718 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24719 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
24720 (grub_setup_SOURCES): Remove kern/parser.c.
24721 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24722 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
24723 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
24724 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24725 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
24726 (grub_setup_SOURCES): Remove kern/parser.c.
24727 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
24728 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
24729 * include/grub/command.h (grub_command_iterate): Removed.
24730 (FOR_COMMANDS): New macro.
24731 * include/grub/dl.h (grub_dl): New member next.
24732 (grub_dl_iterate): Removed.
24733 (grub_dl_head): New variable declaration.
24734 (FOR_DL_MODULES): New macro.
24735 * include/grub/fs.h: Include list.h.
24736 (grub_fs): Make next first element.
24737 (grub_fs_list): New variable declaration.
24738 (grub_fs_register): Make inline.
24739 (grub_fs_unregister): Likewise.
24740 (grub_fs_iterate): Removed.
24741 (FOR_FILESYSTEMS): New macro.
24742 * include/grub/handler.h: Removed.
24743 * include/grub/list.h (grub_list_hook_t): Removed.
24744 (grub_list_test_t): Likewise.
24745 (grub_list_pop): Likewise.
24746 (grub_list_iterate): Likewise.
24747 (grub_list_insert): Likewise.
24748 (FOR_LIST_ELEMENTS): New macro.
24749 * include/grub/parser.h (grub_parser_class): Removed.
24750 (grub_parser_register): Likewise.
24751 (grub_parser_unregister): Likewise.
24752 (grub_parser_get_current): Likewise.
24753 (grub_parser_set_current): Likewise.
24754 (grub_register_rescue_parser): Likewise.
24755 (grub_rescue_parse_line): New function.
24756 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
24757 * include/grub/script_sh.h (grub_script_function_list): New variable
24758 declaration.
24759 (FOR_SCRIPT_FUNCTIONS): New macro.
24760 (grub_script_function_iterate): Removed.
24761 (grub_normal_parse_line): New prototype.
24762 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
24763 (FOR_DISABLED_TERM_INPUTS): Likewise.
24764 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24765 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24766 * include/grub/video.h (grub_video_adapter): Move 'next' to first
24767 element.
24768 (grub_video_register): Inline.
24769 (grub_video_unregister): Likewise.
24770 (grub_video_adapter_list): New variable declaration.
24771 (grub_video_iterate): Removed.
24772 (FOR_VIDEO_ADAPTERS): New macro.
24773 * kern/dl.c (grub_dl_list): Removed. All users updated.
24774 (grub_dl_iterate): Removed.
24775 * kern/fs.c (grub_fs_list): Make global.
24776 (grub_fs_register): Removed.
24777 (grub_fs_unregister): Likewise.
24778 (grub_fs_iterate): Likewise.
24779 * kern/handler.c: Removed.
24780 * kern/list.c (grub_list_pop): Removed.
24781 (grub_list_iterate): Likewise.
24782 (grub_list_insert): Likewise.
24783 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
24784 (grub_prio_list_insert): Don't use grub_list_insert.
24785 * kern/main.c (grub_register_rescue_parser): Don't call
24786 grub_register_rescue_parser.
24787 * kern/parser.c (grub_parser_class): Removed.
24788 (grub_parser_execute): Use grub_rescue_parse_line.
24789 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
24790 (grub_rescue_parser): Removed.
24791 (grub_register_rescue_parser): Likewise.
24792 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
24793 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
24794 (grub_auth_check_authentication): Likewise.
24795 * normal/completion.c (iterate_command): Removed.
24796 (grub_normal_do_completion): Use FOR_COMMANDS.
24797 * normal/handler.c: Removed.
24798 * normal/main.c (read_config_file): Remove parser changing.
24799 (grub_normal_execute): Don't call read_handler_list.
24800 (grub_normal_read_line_real): Statically allocate prompt.
24801 (grub_cmdline_run): Use grub_normal_parse_line.
24802 (GRUB_MOD_FINI): Don't call free_handler_list.
24803 * normal/menu_entry.c (run): Likewise.
24804 * script/function.c (grub_script_function_list): Make global.
24805 (grub_script_function_iterate): Removed.
24806 * script/main.c (grub_normal_parse_line): Make global.
24807 (grub_sh_parser): Removed.
24808 (GRUB_MOD_INIT): Likewise.
24809 (GRUB_MOD_FINI): Likewise.
24810 * tests/lib/functional_test.c (grub_functional_test): Use
24811 FOR_LIST_ELEMENTS.
24812 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
24813 (grub_test_run): Use FOR_LIST_ELEMENTS.
24814 * tests/lib/unit_test.c (main): Likewise.
24815 * util/deviceiter.c (grub_util_iterate_devices): Don't use
24816 grub_list_pop.
24817 * util/grub-fstest.c (grub_term_input_class): Removed.
24818 (grub_term_output_class): Likewise.
24819 * util/grub-probe.c: Likewise.
24820 * util/i386/pc/grub-setup.c: Likewise.
24821 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24822 * util/grub-script-check.c (main): Don't call grub_init_all and
24823 grub_fini_all.
24824 * video/video.c (grub_video_adapter_list): Make global.
24825 (grub_video_register): Removed.
24826 (grub_video_unregister): Likewise.
24827 (grub_video_iterate): Likewise.
24828
6289c3a7
VS
248292010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
24830
24831 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
24832 reported by Henrique Ferreiro.
24833
91460247
RM
248342010-06-09 Robert Millan <rmh@gnu.org>
24835
24836 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
24837 ones, when both are available.
24838
0ea7c4f9
GS
248392010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24840
24841 Make --version uniform and avoid hard-coded program name.
24842
24843 * util/grub-mkimage.c (main): Use `program_name' instead of
24844 hard-coded string.
24845 * util/i386/pc/grub-setup.c (main): Likewise.
24846 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
24847 * util/grub-install.in: Save the basename of $0 in $self, and use the
24848 latter in informational messages. Use the same format for --version
24849 as the binary programs.
24850 * util/grub-mkconfig.in: Likewise.
24851 * util/grub-mkrescue.in: Likewise.
24852 * util/grub-reboot.in: Likewise.
24853 * util/grub-set-default.in: Likewise.
24854 * util/i386/efi/grub-install.in: Likewise.
24855 * util/ieee1275/grub-install.in: Likewise.
24856 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
24857
e8a6f3b6
GS
248582010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24859
24860 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
24861 embedding area. Use <= instead of == when checking for non-emptiness.
24862
f4d095d7
GS
248632010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
24864
24865 * configure.ac: Add `.' to the directories searched for unifont.
24866
50e532ca
CW
248672010-06-08 Colin Watson <cjwatson@ubuntu.com>
24868
24869 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
24870 grub_script.yy.h.
24871
d39f3dec
CW
248722010-06-08 Colin Watson <cjwatson@ubuntu.com>
24873
24874 * docs/grub.texi (History): Expand to cover GRUB 2.
24875 (Serial terminal): Refer to `terminal_input' and `terminal_output'
24876 commands, not `terminal'.
24877 (serial): Likewise.
24878 (terminal_input): New section.
24879 (terminal_output): New section.
24880 (uppermem): New section (stub).
24881 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
24882
6ef0ddb4
CW
248832010-06-08 Colin Watson <cjwatson@ubuntu.com>
24884
24885 * docs/grub.texi (Security): Menu entries are unrestricted by
24886 default, not restricted to superusers as I had previously thought.
24887 Reword to account for this.
24888
e0f4c438
CW
248892010-06-07 Colin Watson <cjwatson@ubuntu.com>
24890
24891 * kern/emu/misc.c (device_mapper_null_log): New function.
24892 (grub_device_mapper_supported): New function.
24893 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
24894 prototype.
24895 * kern/emu/hostdisk.c (find_partition_start): Check whether
24896 device-mapper is supported before trying to use it.
24897 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
24898
da908200
CW
248992010-06-07 Colin Watson <cjwatson@ubuntu.com>
24900
24901 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
24902 (File name syntax): Likewise.
24903 (help): --all is no longer supported in GRUB 2. Be more precise
24904 about pattern matching.
24905
fb55c3ac
CW
249062010-06-07 Colin Watson <cjwatson@ubuntu.com>
24907
24908 * normal/completion.c (grub_normal_do_completion): When completing
24909 arguments to "set" and the current word contains an equals sign,
24910 skip to after the equals sign before starting completion.
24911
258c2573
CW
249122010-06-07 Colin Watson <cjwatson@ubuntu.com>
24913
24914 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
24915
ee75515e
CW
249162010-06-07 Colin Watson <cjwatson@ubuntu.com>
24917
24918 * docs/grub.texi (Network): New section.
24919 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
24920 `(nd)' as in GRUB Legacy.
24921 (pxe_unload): New section.
24922
a6a700aa
CW
249232010-06-07 Colin Watson <cjwatson@ubuntu.com>
24924
24925 * docs/grub.texi (Troubleshooting): `echo' is not usually available
24926 in the rescue shell, so recommend using `set' instead. Thanks,
24927 Jordan Uggla.
24928
4003dd38
CW
249292010-06-07 Colin Watson <cjwatson@ubuntu.com>
24930
24931 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
24932 (password): New section.
24933 (password_pbkdf2): New section.
24934 (search): New section.
24935 (Security): New section.
24936 (Troubleshooting): New section, currently very incomplete.
24937 (Invoking grub-mkpasswd-pbkdf2): New section.
24938 (Internals): New section, currently very incomplete.
24939
e1cbcc40
CW
249402010-06-07 Colin Watson <cjwatson@ubuntu.com>
24941
24942 * util/grub.d/00_header.in: Add some more quoting (of
24943 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
24944 work again.
24945 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
24946
db8fa1ad
CW
249472010-06-07 Colin Watson <cjwatson@ubuntu.com>
24948
24949 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
24950 to `count', fixing variable shadowing that broke the -c option.
24951
249522010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
24953
24954 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
24955 in case they contain spaces.
24956
f28a9212
CW
249572010-06-04 Colin Watson <cjwatson@ubuntu.com>
24958
24959 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
24960 "part_" to partmap module names, in line with grub-install.
24961 Reported by: Jindřich Makovička (Debian bug #584426).
24962
9cdfe32f
CW
249632010-06-04 Colin Watson <cjwatson@ubuntu.com>
24964
24965 * util/grub-mkimage.c: Make target-related error messages slightly
24966 more helpful; -O talks about "format". Explicitly point to the use
24967 of -O if no target is specified.
24968 Reported by: Didier Raboud (Debian bug #584415).
24969
795b593a
CW
249702010-06-03 Colin Watson <cjwatson@ubuntu.com>
24971
24972 * INSTALL: Document several build requirements for optional features
24973 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
24974
9d9b5833
GS
249752010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
24976
24977 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
24978 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
24979 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
24980
0819fec8
CW
249812010-06-02 Colin Watson <cjwatson@ubuntu.com>
24982
24983 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
24984 Thanks to Jordan Uggla for spotting this.
24985
49396b4f
VS
249862010-06-02 Aleš Nesrsta <starous@volny.cz>
24987
24988 Finally make USB usable.
24989
24990 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
24991 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
24992 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
24993 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
24994 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
24995 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
24996 (GRUB_OHCI_FSMPS): Likewise.
24997 (GRUB_OHCI_PERIODIC_START): Likewise.
24998 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
24999 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
25000 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
25001 (GRUB_OHCI_SET_PORT_RESET): Likewise.
25002 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
25003 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
25004 (grub_ohci_transaction): Likewise.
25005 (grub_ohci_transfer): Improve condition detection algorithms.
25006 Handle toggle property. Program the transactions correctly.
25007 Improve error handling. Various important fixups.
25008 (grub_ohci_portstatus): Put register writes in right order.
25009 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
25010 (grub_uhci_transfer): Don't show "failed" message on success.
25011 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
25012 array.
25013 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
25014 determine its size.
25015 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
25016 before initialization is completed. Use IN direction for empty
25017 transfers. Use last_trans and compute toggle.
25018 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
25019 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
25020 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
25021 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
25022 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
25023 (grub_usb_device): Increase toggle to 256.
25024 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
25025 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
25026 GRUB_USBMS_SUBCLASS_SFF8070.
25027 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
25028 (grub_scsi_inquiry): New member page and alloc_length.
25029 (grub_scsi_request_sense): New structure.
25030 (grub_scsi_request_sense_data): Likewise.
25031 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
25032 control.
25033 * disk/scsi.c (grub_scsi_request_sense): New function.
25034 (grub_scsi_test_unit_ready): Likewise.
25035 (grub_scsi_inquiry): Fill new fields.
25036 (grub_scsi_read_capacity): Likewise.
25037 (grub_scsi_read10): Add request sense at the end.
25038 (grub_scsi_read12): Likewise.
25039 (grub_scsi_write10): Likewise.
25040 (grub_scsi_write12): Likewise.
25041 (grub_scsi_open): Add Test Unit Ready.
25042 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
25043 Support additional subclasses. Con't clear halt yet. Activate the
25044 proper config. Calculate LUNs correctly.
25045 (grub_usbms_transfer): Various important fixups.
25046
250472010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25048
25049 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
25050 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
25051 (grub_ohci_fini_hw): New function.
25052 (grub_ohci_restore_hw): Likewise.
25053 (GRUB_MOD_INIT(ohci)): Register preboot hook.
25054 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
25055 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
25056
250572010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25058
25059 Dedicated DMA allocations.
25060
25061 * bus/pci.c (grub_memalign_dma32): New function
25062 (grub_dma_free): Likewise.
25063 (grub_dma_get_virt): Likewise.
25064 (grub_dma_get_phys): Likewise.
25065 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
25066 (grub_ohci_pci_iter): Use dma32_alloc.
25067 (grub_ohci_transfer): Likewise.
25068 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
25069 (grub_usb_bulk_readwrite): Likewise.
25070 * include/grub/pci.h: Add declarations.
25071
250722010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
25073
25074 CS5536 support.
25075
25076 * bus/cs5536.c: New file.
25077 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
25078 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
25079 (cs5536_mod_SOURCES): New variable.
25080 (cs5536_mod_CFLAGS): Likewise.
25081 (cs5536_mod_LDFLAGS): Likewise.
25082 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
25083 machine/pci.h.
25084 (kernel_img_SOURCES): Add bus/cs5536.c.
25085 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
25086 usb_keyboard.mod.
25087 (usb_mod_SOURCES): New variable.
25088 (usb_mod_CFLAGS): New variable.
25089 (usb_mod_LDFLAGS): New variable.
25090 (usbtest_mod_SOURCES): New variable.
25091 (usbtest_mod_CFLAGS): New variable.
25092 (usbtest_mod_LDFLAGS): New variable.
25093 (ohci_mod_SOURCES): New variable.
25094 (ohci_mod_CFLAGS): New variable.
25095 (ohci_mod_LDFLAGS): New variable.
25096 (usbms_mod_SOURCES): New variable.
25097 (usbms_mod_CFLAGS): New variable.
25098 (usbms_mod_LDFLAGS): New variable.
25099 (usb_keyboard_mod_SOURCES): New variable.
25100 (usb_keyboard_mod_CFLAGS): New variable.
25101 (usb_keyboard_mod_LDFLAGS): New variable.
25102 * include/grub/smbus.h: New file.
25103 * include/grub/cs5536.h: New file.
25104
0b35b2a9
CW
251052010-06-02 Colin Watson <cjwatson@ubuntu.com>
25106
25107 * util/grub.d/00_header.in: Add safety check to make sure that
25108 ${locale_dir} exists before trying to probe it.
25109
ca0afd5b
CW
251102010-06-02 Colin Watson <cjwatson@ubuntu.com>
25111
25112 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
25113 per the GNU Coding Standards; this is now too obscure to be worth
25114 documenting.
25115 (QNX): Likewise.
25116 (chainloader): Remove cross-reference to `SCO UnixWare'.
25117
1c41aa78
CW
251182010-06-02 Colin Watson <cjwatson@ubuntu.com>
25119
25120 * docs/grub.texi (Chain-loading): New section.
25121 (DOS/Windows): New section, borrowed from GRUB Legacy with details
25122 adjusted for GRUB 2.
25123 (SCO UnixWare): Likewise.
25124 (QNX): Likewise.
25125 (chainloader): Add reference to `Block list syntax'.
25126 (drivemap): New section.
25127 (parttool): New section.
25128
bb8ea0f5
CW
251292010-06-02 Colin Watson <cjwatson@ubuntu.com>
25130
25131 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
25132 the grub shell'.
25133 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
25134 (Installing GRUB using grub-install): Remove reference to the grub
25135 shell; mention `grub-mkimage' and `grub-setup' instead.
25136 (Invoking grub-install): Likewise.
25137 (Interface): Add reference to `Menu entry editor'.
25138 (serial): Remove `--device' option.
25139
288dd6ed
CW
251402010-06-02 Colin Watson <cjwatson@ubuntu.com>
25141
25142 * docs/grub.texi (Configuration): New section, documenting
25143 configuration file generation using grub-mkconfig. I've left a slot
25144 for documenting the full shell scripting format but have not yet
25145 started on writing that up.
25146 (Invoking grub-mkconfig): New section.
25147
34c9f0e9
CW
251482010-06-02 Colin Watson <cjwatson@ubuntu.com>
25149
25150 * docs/grub.texi (direntry): Remove grub-terminfo reference.
25151 (GNU GRUB manual): Likewise.
25152 (General commands): Update description of `terminfo' for GRUB 2.
25153
9121567e
CW
251542010-06-02 Colin Watson <cjwatson@ubuntu.com>
25155
25156 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
25157 (GRUB_MOD_INIT): Fix capitalisation.
25158 * docs/grub.texi (Command-line and menu entry commands): Document
25159 gettext and gptsync commands.
25160
ab631611
CW
251612010-06-02 Colin Watson <cjwatson@ubuntu.com>
25162
25163 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
25164 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
25165
bde4a9ac
CW
251662010-06-01 Colin Watson <cjwatson@ubuntu.com>
25167
25168 Add btrfs probing support, currently only in the single-device case.
25169
25170 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
25171 function.
25172 (grub_guess_root_device): Call find_root_device_from_mountinfo
25173 before looking in /dev.
25174
b1d17e10
VS
251752010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25176
25177 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
25178 GRUB_DISK_SIZE_UNKNOWN.
25179 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
25180
dfbfe004
JS
251812010-05-31 Jiro SEKIBA <jir@unicus.jp>
25182
25183 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
25184 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
25185 corrupted or not synced properly.
25186
c2ffc8e9
VS
251872010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25188
25189 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
25190 Reported by: Seth Goldberg.
25191
56293166
VS
251922010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25193
25194 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
25195 addition of dest.
25196 Reported by: Seth Goldberg.
25197
7620e7de
VS
251982010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25199
25200 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
25201 Reported by: Seth Goldberg.
25202
c837af3f
VS
252032010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
25204
25205 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
25206 64-bit address as signed on MIPS.
25207
c7c75cf4
CW
252082010-05-28 Colin Watson <cjwatson@ubuntu.com>
25209
25210 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
25211 to the empty string.
25212
fa4b8490
BC
252132010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
25214
25215 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
25216
25217 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
25218 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
25219 * kern/misc.c (__enable_execute_stack): Disable on
25220 GRUB_MACHINE_EMU.
25221
a33075b9
CW
252222010-05-28 Colin Watson <cjwatson@ubuntu.com>
25223
25224 Make grub-probe work with symbolic links under /dev/mapper as well
25225 as with real block devices. The Linux world seems to be (at best)
25226 in transition here, and GRUB shouldn't get caught in the middle.
25227
25228 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
25229 /dev/mapper.
25230
d8708134
CW
252312010-05-27 Colin Watson <cjwatson@ubuntu.com>
25232
25233 * util/grub-script-check.c (main): Ensure defined behaviour on empty
25234 input files (in which case exit zero).
25235
db2102a0
CW
252362010-05-27 Colin Watson <cjwatson@ubuntu.com>
25237
25238 * kern/emu/misc.c (canonicalize_file_name): realpath can still
25239 return NULL for various reasons even if it has a maximum-length
25240 buffer: for example, there might be a symlink loop, or the path
25241 might exceed PATH_MAX. If this happens, return NULL.
25242
5fdba519
RM
252432010-05-27 Robert Millan <rmh@gnu.org>
25244
25245 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
25246 partmap module to handle cross-partmap setups.
25247 Reported by Orestes Mas. Gràcies!
25248
d1d368e4
CW
252492010-05-27 Colin Watson <cjwatson@ubuntu.com>
25250
25251 * util/grub-mkrescue.in: Initialise override_dir rather than
25252 assuming that it's unset or empty in the environment.
25253
95ac3c73
GS
252542010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
25255
25256 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
25257 variable index into p_index to suppress a warning with -Wshadow.
25258
7d8c0213
BC
252592010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
25260
25261 * INSTALL: Added flex >= 2.5.35 requirement.
25262
db4d5813
VS
252632010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25264
25265 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
25266
f24f4300
VS
252672010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25268
25269 cmostest support.
25270
25271 * commands/i386/cmostest.c: New file.
25272 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
25273 (cmostest_mod_SOURCES): New variable.
25274 (cmostest_mod_CFLAGS): Likewise.
25275 (cmostest_mod_LDFLAGS): Likewise.
25276 * conf/i386-pc.rmk: Likewise.
25277 * docs/grub.texi (Vendor power-on keys): New section.
25278 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
25279 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
25280 and GRUB_BUTTON_CMOS_ADDRESS.
25281 * util/grub.d/00_header.in: Handle powering-on by separate button.
25282
ad603f61
VS
252832010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25284
25285 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
25286 Removed drawing_scrollbar argument. All users updated
25287 Fixes #29792.
25288 Reported by Jo Shields
25289
3ecb080a
VS
252902010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25291
25292 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
25293 buffer since gfxterm handles double repaint.
25294
5f2316c1
VS
252952010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
25296
25297 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
25298 * term/gfxterm.c (real_scroll): Likewise.
25299
9a25f885
VS
253002010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25301
25302 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
25303 before calling BIOS.
25304
39fbb79a
VS
253052010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25306
25307 * include/grub/i18n.h: Always enable grub_gettext.
25308
228cfa97
VS
253092010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
25310
25311 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
25312 partition naming style.
25313
21717c8f
CW
253142010-05-21 Colin Watson <cjwatson@ubuntu.com>
25315
25316 * util/grub-mkconfig.in: Fix handling of -o so that it works when
25317 not the first option.
25318
c0f48e65
CW
253192010-05-20 Colin Watson <cjwatson@ubuntu.com>
25320
25321 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
25322
96779aec
CW
253232010-05-20 Colin Watson <cjwatson@ubuntu.com>
25324
25325 * util/misc.c: Move inclusion of <limits.h> to ...
25326 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
25327
fa9d256e
GS
253282010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
25329
25330 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
25331 Fix merge error in NetBSD code.
25332 (find_partition_start) [__NetBSD__]: Likewise.
25333
123b7a85
BC
253342010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
25335
25336 Fix grub-mkrescue usage unit testing.
25337
25338 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
25339
74276c0d
CF
253402010-05-18 Christian Franke <franke@computer.org>
25341
25342 * util/grub.d/10_windows.in: Use path names instead of
25343 drive letters to prevent warning from Cygwin 1.7.
25344 Add drivemap command to menuentry if needed.
25345
c4f7b523
ST
253462010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
25347
25348 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
25349 gnumach and gnumach.gz.
25350
95b97950
VS
253512010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25352
25353 * include/grub/i18n.h (gettext): Inline instead of using #define.
25354 (grub_gettext): Likewise.
25355 (_): Likewise.
25356
01b8d2d7
VS
253572010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25358
25359 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
25360 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
25361 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
25362 (main): Add a slash after pkglibdirroot.
25363
654e1d1e
VS
253642010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25365
25366 * util/grub-install.in: Add missing "in" keyword.
25367
26966aeb
VS
253682010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25369
25370 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
25371 Reported by: Seth Goldberg.
25372
75006747
VS
253732010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
25374
25375 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
25376
74cbf5bd
CW
253772010-05-18 Colin Watson <cjwatson@ubuntu.com>
25378
25379 * configure.ac: Check for Linux device-mapper support.
25380
25381 * util/hostdisk.c (device_is_mapped): New function.
25382 (find_partition_start): New function, partly broken out from
25383 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
25384 device-mapper support added.
25385 (linux_find_partition): Use find_partition_start.
25386 (convert_system_partition_to_system_disk): Add `st' argument.
25387 Support Linux /dev/mapper/* devices if device-mapper support is
25388 available; only DM-RAID devices are understood at present.
25389 (find_system_device): Add `st' argument. Pass it to
25390 convert_system_partition_to_system_disk.
25391 (grub_util_biosdisk_get_grub_dev): Pass stat result to
25392 find_system_device and convert_system_partition_to_system_disk. Use
25393 find_partition_start.
25394
25395 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
25396 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
25397 * util/deviceiter.c [__linux__]: Define MINOR.
25398 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
25399 * util/mkdevicemap.c (grub_putchar): New function.
25400 (grub_getkey): New function.
25401 (grub_refresh): New function.
25402 (main): Set debug=all if -v -v is used.
25403
355b51e9
CW
254042010-05-18 Colin Watson <cjwatson@ubuntu.com>
25405
25406 Fix build with non-GNU libcs.
25407
25408 * util/misc.c (canonicalize_file_name): Move to ...
25409 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
25410 grub_make_system_path_relative_to_its_root.
25411
7fb5c25f
CW
254122010-05-18 Colin Watson <cjwatson@ubuntu.com>
25413
25414 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
25415 we handle finding grub-mkimage. Default to finding grub-mkimage in
25416 ${bindir} with program_transform_name applied, and provide a
25417 --grub-mkimage option to override this.
25418
1d3293d6
VS
254192010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25420
25421 Remove grub-mkisofs.
25422
25423 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
25424 (grub_mkisofs_SOURCES): Removed.
25425 (grub_mkisofs_CFLAGS): Removed.
25426 * util/mkisofs/defaults.h: Removed.
25427 * util/mkisofs/eltorito.c: Likewise.
25428 * util/mkisofs/exclude.h: Likewise.
25429 * util/mkisofs/hash.c: Likewise.
25430 * util/mkisofs/include/: Likewise.
25431 * util/mkisofs/include/fctldefs.h: Likewise.
25432 * util/mkisofs/include/mconfig.h: Likewise.
25433 * util/mkisofs/include/prototyp.h: Likewise.
25434 * util/mkisofs/include/statdefs.h: Likewise.
25435 * util/mkisofs/iso9660.h: Likewise.
25436 * util/mkisofs/joliet.c: Likewise.
25437 * util/mkisofs/match.c: Likewise.
25438 * util/mkisofs/match.h: Likewise.
25439 * util/mkisofs/mkisofs.c: Likewise.
25440 * util/mkisofs/mkisofs.h: Likewise.
25441 * util/mkisofs/msdos_partition.h: Likewise.
25442 * util/mkisofs/multi.c: Likewise.
25443 * util/mkisofs/name.c: Likewise.
25444 * util/mkisofs/rock.c: Likewise.
25445 * util/mkisofs/tree.c: Likewise.
25446 * util/mkisofs/write.c: Likewise.
25447
5dde9afe
VS
254482010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
25449
25450 Unify grub-mkimage accross platforms.
25451
25452 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
25453 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
25454 (grub_mkelfimage_SOURCES): Removed.
25455 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
25456 (util/grub-mkimage.c_DEPENDENCIES): .. this.
25457 (bin_UTILITIES): Add grub-mkimage.
25458 (grub_mkimage_SOURCES): New variable.
25459 (kernel_img_HEADERS): Remove machine/kernel.h.
25460 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
25461 (pkglib_PROGRAMS): Add kernel.img.
25462 (kernel_img_HEADERS): Add machine/kernel.h.
25463 (kernel_img_FORMAT): Removed.
25464 (bin_UTILITIES): Remove grub-mkimage.
25465 (grub_mkimage_SOURCES): Removed.
25466 (grub_mkimage_CFLAGS): Likewise.
25467 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25468 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
25469 (pkglib_PROGRAMS): Add kernel.img.
25470 (bin_UTILITIES): Remove grub-mkimage.
25471 (grub_mkimage_SOURCES): Removed.
25472 (grub_mkimage_CFLAGS): Likewise.
25473 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25474 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
25475 (pkglib_PROGRAMS): Add kernel.img.
25476 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
25477 (pkglib_PROGRAMS): Add kernel.img.
25478 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
25479 (grub_mkimage_SOURCES): Removed.
25480 (grub_mkimage_CFLAGS): Likewise.
25481 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25482 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
25483 (pkglib_PROGRAMS): Add kernel.img.
25484 (bin_UTILITIES): Remove grub-mkimage.
25485 (grub_mkimage_SOURCES): Removed.
25486 (grub_mkimage_CFLAGS): Likewise.
25487 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25488 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
25489 (grub_mkimage_SOURCES): Removed.
25490 (grub_mkimage_CFLAGS): Likewise.
25491 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
25492 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
25493 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
25494 (grub_pe32_optional_header): ... this.
25495 (grub_pe64_optional_header): ... and this. All users updated.
25496 (GRUB_PE32_PE32_MAGIC): Split into ..
25497 (GRUB_PE32_PE32_MAGIC): .. this.
25498 (GRUB_PE32_PE64_MAGIC): .. and this.
25499 (GRUB_PE32_SIGNATURE_SIZE): New definition.
25500 * include/grub/elf.h (PT_GNU_STACK): New definition.
25501 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
25502 * include/grub/i386/efi/kernel.h: Likewise.
25503 * include/grub/i386/kernel.h: Likewise.
25504 * include/grub/i386/pc/kernel.h: Likewise.
25505 * include/grub/i386/qemu/boot.h: Likewise.
25506 * include/grub/mips/kernel.h: Likewise.
25507 * include/grub/mips/qemu-mips/kernel.h: Likewise.
25508 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
25509 * include/grub/powerpc/kernel.h: Likewise.
25510 * include/grub/sparc64/ieee1275/boot.h: Likewise.
25511 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
25512 * include/grub/sparc64/kernel.h: Likewise.
25513 * include/grub/x86_64/efi/kernel.h: Likewise.
25514 * include/grub/x86_64/kernel.h: Likewise.
25515 * include/grub/offsets.h: New file.
25516 * include/grub/kernel.h (grub_module_info): Split into ...
25517 (grub_module_info32): ... this.
25518 (grub_module_info64): ... and this.
25519 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
25520 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
25521 (grub_boot_blocklist): Moved from here ...
25522 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
25523 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
25524 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
25525 * include/grub/types.h (grub_target_to_host16): Removed.
25526 (grub_target_to_host32): Likewise.
25527 (grub_target_to_host64): Likewise.
25528 (grub_host_to_target16): Likewise.
25529 (grub_host_to_target32): Likewise.
25530 (grub_host_to_target64): Likewise.
25531 (grub_host_to_target_addr): Likewise.
25532
25533 Support grub-mkrescue for efi, coreboot and qemu.
25534
25535 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
25536 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
25537 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
25538 * util/grub-mkrawimage.c: Moved from here ...
25539 * util/grub-mkimage.c: ... here. All users updated.
25540 (ALIGN_ADDR): Use image_target.
25541 (TARGET_NO_FIELD): New const.
25542 (image_target_desc): New type.
25543 (image_targets): New array.
25544 (grub_target_to_host64): Use image_target.
25545 (grub_target_to_host32): Likewise.
25546 (grub_target_to_host16): Likewise.
25547 (grub_host_to_target64): Likewise.
25548 (grub_host_to_target32): Likewise.
25549 (grub_host_to_target16): Likewise.
25550 (grub_host_to_target_addr): Likewise.
25551 (generate_image): Handle multiimage.
25552 (main): Require -O parameter. All users updated.
25553 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
25554 util/efi/grub-mkimage.c
25555 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
25556 New option --rom-directory.
25557 Use xorriso.
25558 * util/i386/efi/grub-mkimage.c: Removed.
25559 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
25560 (grub_target_to_host32): Likewise.
25561 (grub_target_to_host64): Likewise.
25562 (grub_host_to_target16): Likewise.
25563 (grub_host_to_target32): Likewise.
25564 (grub_host_to_target64): Likewise.
25565 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
25566 (grub_target_to_host32): Likewise.
25567 (grub_target_to_host64): Likewise.
25568 (grub_host_to_target16): Likewise.
25569 (grub_host_to_target32): Likewise.
25570 (grub_host_to_target64): Likewise.
25571
f4fc97d0
BC
255722010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
25573
25574 Source tree is reorganized for emu build.
25575
25576 * include/grub/util/console.h: Move from here...
25577 * include/grub/emu/console.h: ...to here.
25578 * include/grub/util/getroot.h: Move from here...
25579 * include/grub/emu/getroot.h: ...to here.
25580 * include/grub/util/hostdisk.h: Move from here...
25581 * include/grub/emu/hostdisk.h: ...to here.
25582 * util/console.c: Move from here...
25583 * kern/emu/console.c: ...to here.
25584 * util/getroot.c: Move from here...
25585 * kern/emu/getroot.c: ...to here.
25586 * util/grub-emu.c: Move from here...
25587 * kern/emu/main.c: ...to here.
25588 * util/hostdisk.c: Move from here...
25589 * kern/emu/hostdisk.c: ...to here.
25590 * util/hostfs.c: Move from here...
25591 * kern/emu/hostfs.c: ...to here.
25592 * util/mm.c: Move from here...
25593 * kern/emu/mm.c: ...to here.
25594 * util/pci.c: Move from here...
25595 * bus/emu/pci.c: ...to here.
25596 * util/sdl.c: Move from here...
25597 * video/emu/sdl.c: ...to here.
25598 * util/time.c: Move from here...
25599 * kern/emu/time.c: ...to here.
25600 * util/usb.c: Move from here...
25601 * bus/usb/emu/usb.c: ...to here.
25602
25603 * include/grub/emu/misc.h: New header for grub-emu functions.
25604 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
25605
25606 * conf/any-emu.rmk: Rule updates for above renames.
25607 * conf/common.rmk: Likewise.
25608 * conf/i386-pc.rmk: Likewise.
25609 * conf/i386-qemu.rmk: Likewise.
25610 * conf/mips.rmk: Likewise.
25611 * conf/sparc64-ieee1275.rmk: Likewise.
25612 * conf/x86-efi.rmk: Likewise.
25613
25614 * disk/lvm.h: #include updates for above renames.
25615 * util/grub-mkrelpath.c: Likewise.
25616 * util/grub-probe.c: Likewise.
25617 * util/i386/pc/grub-setup.c: Likewise.
25618 * util/sparc64/ieee1275/grub-setup.c: Likewise.
25619 * kern/emu/console.c: Likewise.
25620 * kern/emu/getroot.c: Likewise.
25621 * kern/emu/hostdisk.c: Likewise.
25622 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
25623
25624 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
25625 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
25626 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
25627 * util/misc.c: Remove grub-emu functions.
25628
cced9145
VS
256292010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
25630
25631 Fix gfxmenu crash.
25632 Reported by: Thorsten Grützmacher.
25633
25634 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
25635 timeout hook.
25636 (circprog_set_property): Register and unregister timeout hook.
25637 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
25638 (label_destroy): Free template. and unregister hook.
25639 (label_set_state): New function.
25640 (label_set_property): Handle templates and hooks.
25641 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
25642 timeout hook.
25643 (progress_bar_set_property): Register and unregister timeout hook.
25644 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
25645 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
25646 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
25647 (update_timeout_visit): Removed.
25648 (update_timeouts): New function.
25649 (redraw_timeouts): Likewise.
25650 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
25651 (grub_gfxmenu_clear_timeout): Likewise.
25652 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
25653 (grub_gfxmenu_timeout_notify): Likewise.
25654 (grub_gfxmenu_timeout_notifications): New external variable.
25655 (grub_gfxmenu_timeout_register): New function.
25656 (grub_gfxmenu_timeout_unregister): Likewise.
25657
c6e5caab
VS
256582010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
25659
25660 Transform (broken) vga terminal into (working) vga video driver.
25661
25662 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
25663 video/i386/pc/vga.c.
25664 * include/grub/video.h (grub_video_driver_id):
25665 Add GRUB_VIDEO_DRIVER_VGA.
25666 * term/i386/pc/vga.c: Renamed to ...
25667 * video/i386/pc/vga.c: ...this
25668 (DEBUG_VGA): Removed.
25669 (CHAR_WIDTH): Likewise.
25670 (CHAR_HEIGHT): Likewise.
25671 (TEXT_WIDTH): Likewise.
25672 (TEXT_HEIGHT): Likewise.
25673 (DEFAULT_FG_COLOR): Likewise.
25674 (DEFAULT_BG_COLOR): Likewise.
25675 (colored_char): Likewise.
25676 (xpos): Likewise.
25677 (ypos): Likewise.
25678 (cursor_state): Likewise.
25679 (fg_color): Likewise.
25680 (bg_color): Likewise.
25681 (text_buf): Likewise.
25682 (page): Likewise.
25683 (font): Likewise.
25684 (framebuffer): New variable.
25685 (set_read_map): Disabled.
25686 (setup): New variable.
25687 (is_target): Likewise.
25688 (grub_vga_mod_init): Likewise.
25689 (grub_vga_mod_fini): Likewise.
25690 (check_vga_mem): Likewise.
25691 (write_char): Likewise.
25692 (write_cursor): Likewise.
25693 (scroll_up): Likewise.
25694 (grub_vga_putchar): Likewise.
25695 (grub_vga_getcharwidth): Likewise.
25696 (grub_vga_getwh): Likewise.
25697 (grub_vga_getxy): Likewise.
25698 (grub_vga_gotoxy): Likewise.
25699 (grub_vga_cls): Likewise.
25700 (grub_vga_setcolorstate): Likewise.
25701 (grub_vga_setcursor): Likewise.
25702 (grub_video_vga_init): New function.
25703 (grub_video_vga_setup): Likewise.
25704 (grub_video_vga_fini): Likewise.
25705 (update_target): Likewise.
25706 (grub_video_vga_blit_bitmap): Likewise.
25707 (grub_video_vga_blit_render_target): Likewise.
25708 (grub_video_vga_set_active_render_target): Likewise.
25709 (grub_video_vga_get_active_render_target): Likewise.
25710 (grub_video_vga_swap_buffers): Likewise.
25711 (grub_video_vga_set_palette): Likewise.
25712 (grub_video_vga_get_info_and_fini): Likewise.
25713 (grub_vga_term): Removed.
25714 (grub_video_vga_adapter): New variable.
25715 (GRUB_MOD_INIT): Register a video driver instead of terminal.
25716 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
25717
2bf61a98
VS
257182010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25719
25720 * video/readers/jpeg.c: Indented.
25721
09ddcd11
VS
257222010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25723
25724 Various jpeg cleanups.
25725
25726 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
25727 (grub_jpeg_decode_quan_table): Use sizeof.
25728 (grub_jpeg_decode_du): Use ARRAY_SIZE.
25729
e5507505
PH
257302010-05-05 Peter Hurley <No e-mail available> (tiny change)
25731
25732 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
25733 tables. Ignore non-last ac bit.
25734 (grub_jpeg_decode_quan_table): Likewise.
25735
7e720a9b
VS
257362010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25737
25738 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
25739 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
25740 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
25741 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
25742 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
25743 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
25744
a7fc080b
VS
257452010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25746
25747 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
25748 error.
25749
2bf6012d
VS
257502010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
25751
25752 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
25753
265d68cd
VS
257542010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25755
25756 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
25757 condition.
25758
257592010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
25760
25761 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
25762 part.
25763
265d68cd 257642010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
25765
25766 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
25767 pointers.
25768
265d68cd 257692010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
25770
25771 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
25772
d1b61374
CF
257732010-05-01 Christian Franke <franke@computer.org>
25774
25775 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
25776 Remove broken Cygwin path conversion.
25777 * util/misc.c: [__CYGWIN__] Add include and define.
25778 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
25779 for Cygwin 1.7.
25780 (make_system_path_relative_to_its_root): Simplify loop, replace early
25781 return by break.
25782 [__CYGWIN__] Add conversion to win32 path.
25783 Include "/" case in trailing slash removal.
25784
3558c6e9
VS
257852010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25786
25787 * kern/main.c (grub_load_config): Fix copy-pasted comment.
25788 Reported by: Seth Goldberg
25789
f5f3ff93
VS
257902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25791
25792 * commands/help.c (grub_cmd_help): Fix a typo.
25793 Reported by: Seth Goldberg
25794
d8b5cd40
VS
257952010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25796
25797 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
25798 name and add N_.
25799 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
25800 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
25801 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
25802 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
25803 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
25804 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
25805 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25806 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25807 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25808 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25809 * normal/context.c (GRUB_MOD_INIT): Likewise.
25810 * normal/main.c (GRUB_MOD_INIT): Likewise.
25811 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25812 * term/serial.c (GRUB_MOD_INIT): Likewise.
25813 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25814
88c14915
VS
258152010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25816
25817 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
25818 extra == 0.
25819
165134bc
VS
258202010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25821
25822 * commands/iorw.c: New file.
25823 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
25824 (iorw_mod_SOURCES): New variable.
25825 (iorw_mod_CFLAGS): Likewise.
25826 (iorw_mod_LDFLAGS): Likewise.
25827
c5ac9b32
VS
258282010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25829
25830 Hotkey support
25831
25832 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
25833 * normal/main.c (hotkey_aliases): New variable.
25834 (grub_normal_add_menu_entry): Parse "--hotkey".
25835 * normal/menu_text.c (run_menu): Handle hotkeys.
25836
ce60689c
VS
258372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25838
25839 * kern/i386/coreboot/init.c (grub_machine_init): Call
25840 grub_machine_mmap_init on qemu.
25841
0359d006
VS
258422010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25843
25844 * boot/i386/qemu/boot.S: Add a missing .code16.
25845
7819a456
VS
258462010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25847
25848 Use LBIO on coreboot.
25849
25850 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
25851 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
25852 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
25853 New declaration.
25854 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
25855 grub_machine_mmap_init on coreboot.
25856 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
25857 GRUB_LINUXBIOS_MEMBER_LINK.
25858 (grub_machine_mmap_iterate): Fix declaration.
25859 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
25860
7210dca9
VS
258612010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25862
25863 Split coreboot and multiboot ports.
25864
25865 * conf/i386-multiboot.rmk: New file.
25866 * configure.ac: Add multiboot port.
25867 * include/grub/i386/multiboot/boot.h: New file.
25868 * include/grub/i386/multiboot/console.h: Likewise.
25869 * include/grub/i386/multiboot/init.h: Likewise.
25870 * include/grub/i386/multiboot/kernel.h: Likewise.
25871 * include/grub/i386/multiboot/loader.h: Likewise.
25872 * include/grub/i386/multiboot/memory.h: Likewise.
25873 * include/grub/i386/multiboot/serial.h: Likewise.
25874 * include/grub/i386/multiboot/time.h: Likewise.
25875 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
25876 * loader/multiboot.c: Likewise.
25877 * loader/multiboot_mbi2.c: Likewise.
25878 * util/grub-mkrescue.in: Generate multiboot rescue.
25879
6f8aaf68
VS
258802010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25881
3080f7a7
VS
25882 * kern/parser.c (grub_parser_execute): Cope with read-only config.
25883
258842010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
25885
25886 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
25887
25888 * commands/terminal.c (abstract_terminal): New struct.
25889 (handle_command): New function. Based on grub_cmd_terminal_input.
25890 (grub_cmd_terminal_input): Use handle_command.
25891 (grub_cmd_terminal_output): Use handle_command.
25892
a8ebb841
BC
258932010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
25894
25895 Fix comment handling.
25896
25897 * tests/grub_script_comments.in: New testcase.
25898 * conf/tests.rmk: Rules for new testcase.
25899 * script/yylex.l: Updated flex rules.
25900
bb06ba08
ST
259012010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
25902
25903 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
25904 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
25905 if argc is 1.
bb06ba08 25906
cc9d2425
VS
259072010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25908
25909 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
25910 autogen issues.
25911
460d8402
CF
259122010-04-26 Christian Franke <franke@computer.org>
25913
25914 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
25915 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
25916 (grub_get_prefix): Remove function.
25917 * util/grub-emu.c (main): Replace grub_get_prefix () call by
25918 make_system_path_relative_to_its_root ().
25919 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
25920
553c01f9
CF
259212010-04-24 Christian Franke <franke@computer.org>
25922
25923 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
25924 (kernel_img_LDFLAGS): Remove -static-libgcc.
25925
2aec1692
CF
259262010-04-24 Christian Franke <franke@computer.org>
25927
25928 * configure.ac: Do not CHECK_BSS_START_SYMBOL
25929 and CHECK_END_SYMBOL if grub-emu is built.
25930 Unset TARGET_OBJ2ELF if grub-emu is built
25931 without module support.
25932
f67dc308
JS
259332010-04-24 Jiro SEKIBA <jir@unicus.jp>
25934
25935 Nilfs2 support.
25936
25937 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
25938 (grub_fstest_SOURCES): Likewise.
25939 (pkglib_MODULES): Add nilfs2.mod.
25940 (nilfs2_mod_SOURCES): New variable.
25941 (nilfs2_mod_CFLAGS): Likewise.
25942 (nilfs2_mod_LDFLAGS): Likewise.
25943 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25944 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
25945 * fs/nilfs2.c: New file.
25946
4ba8d354
VS
259472010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
25948
25949 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
25950 is not supported.
25951
0d2c20c6
GS
259522010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
25953
25954 Add grub-mkconfig support for NetBSD.
25955
25956 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
25957 * util/grub-mkconfig.in: export new NetBSD specific variables.
25958 * po/POTFILES-shell: added 10_netbsd.in.
25959 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
25960
bc4a2d83
BC
259612010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
25962
25963 Fix emu build with grub-emu-pci and grub-emu-modules.
25964
25965 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
25966 functions.
25967 * include/grub/libpciaccess.h: New file.
25968 * conf/any-emu.rmk: Update kernel headers for emu build.
25969
f48c87aa
VS
259702010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25971
25972 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
25973
18959385
VS
259742010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25975
25976 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
25977
0037de3f
VS
259782010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
25979
25980 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
25981 Retrieve chosen/bootpath if bootpath isn't hardcoded.
25982 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
25983 util/ieee1275/ofpath.c.
25984 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
25985 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
25986 * include/grub/sparc64/ieee1275/boot.h
25987 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
25988 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
25989 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
25990 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
25991 const char *.
25992 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
25993 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
25994 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
25995 install.
25996
38e55e90
GS
259972010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
25998
25999 * util/grub-mkconfig.in: Corrected two == equality tests.
26000 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
26001 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
26002 expect a number appended to it.
26003 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
26004 expects a number appended to it.
26005
a9e6ff28
VS
260062010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26007
26008 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
26009
0b830b8f
VS
260102010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
26011
26012 * util/hostdisk.c (make_device_name): Change to new partition naming.
26013
0973daeb
VS
260142010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
26015
26016 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
26017
460d8402 260182010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
26019
26020 * Makefile.in: Add missing localedir setting.
26021
0b456309
CW
260222010-04-14 Colin Watson <cjwatson@ubuntu.com>
26023
26024 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
26025 mistake in r2156. Noticed by Anthony Fok.
26026
26027 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
26028 @localedir@.
26029 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26030
08f46d62
BC
260312010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
26032
26033 Fix a spurious, uninitialized variable warning.
26034
26035 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
26036 Initialize variable, shdr.
26037 (grub_freebsd_load_elfmodule): Likewise.
26038 (grub_freebsd_load_elf_meta): Likewise.
26039
8c4a72d4
BC
260402010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
26041
26042 Fix for escaped dollar in double quoted strings.
26043
26044 * script/yylex.l: Updated flex rules.
26045 * conf/tests.rmk: Rule for new testcase.
26046 * tests/grub_script_dollar.in: New testcase.
26047
ce44826e
CPE
260482010-04-13 Carles Pina i Estany <carles@pina.cat>
260492010-04-13 Colin Watson <cjwatson@ubuntu.com>
26050
26051 Enclose all translated strings in grub.cfg in single quotes, and
26052 escape them appropriately (Ubuntu bug #552921).
26053
26054 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
26055 * util/grub.d/10_hurd.in: Use it.
26056 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26057 * util/grub.d/10_linux.in (linux_entry): Likewise.
26058
4b0cd8f8
VS
260592010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26060
26061 Fix cygwin compilation.
26062
26063 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
26064 * include/grub/misc.h (__register_frame_info)
26065 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
26066 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26067 * kern/misc.c (__register_frame_info)
26068 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
26069 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
26070
01fcf061
VS
260712010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26072
26073 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
26074
5d04b11e
VS
260752010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
26076
26077 Unify libgcc processing.
26078
26079 * Makefile.in (kernel_img_LDFLAGS): New variable.
26080 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
26081 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
26082 overwriting.
26083 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
26084 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
26085 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
26086 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
26087 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
26088 overwriting. Remove -lgcc and -static-libgcc
26089 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
26090 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26091 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
26092 (kernel_img_LDFLAGS): Append instead of overwriting.
26093 Remove -lgcc and -static-libgcc
26094 * conf/sparc64-ieee1275.rmk: Likewise.
26095 * include/grub/powerpc/libgcc.h: Move to ...
26096 * include/grub/libgcc.h: .. this.
26097 * include/grub/libgcc.h: Don't export most of the function on x86.
26098 (__bswapsi2): New export.
26099 (__bswapdi2): Likewise.
26100 * include/grub/mips/libgcc.h: Removed.
26101 * include/grub/sparc64/libgcc.h: Likewise.
26102
b7f3ac29
VS
261032010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26104
26105 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
26106 disk_info_msg (conflicts with gettexting into languages with cases).
26107
2c7031b1
GS
261082010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
26109
26110 Add grub-probe support for NetBSD.
26111
26112 * util/getroot.c (find_root_device): Convert block device to
26113 character device on NetBSD.
26114 * util/probe.c (probe): Require character device on NetBSD.
26115 * util/hostdisk.c: NetBSD specific headers.
26116 (configure_device_driver): new function to tune device driver
26117 parameters (currently only for NetBSD floppy driver).
26118 (grub_util_biosdisk_open): NetBSD specific code (get disk size
26119 via disklabel ioctl).
26120 (open_device): call configure_device_driver on NetBSD.
26121 (convert_system_partition_to_system_disk): NetBSD specific code.
26122 (device_is_wholedisk): Likewise.
26123 (grub_util_biosdisk_get_grub_dev): Likewise.
26124 (make_device_name): Fixed a typo in bsd_part_str.
26125 * configure.ac: check for opendisk() and getrawpartition() on
26126 NetBSD and set LIBUTIL.
26127 * Makefile.in: add LIBUTIL to LIBS.
26128
f516290c
BC
261292010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26130
26131 Documentation fix.
26132
26133 * util/grub-script-check.c: Better help message.
26134
d8dcc0df
BC
261352010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
26136
26137 Fix FreeBSD build.
26138
26139 * configure.ac: Flex version check.
26140 * conf/common.rmk: Add -Wno-error to sh.mod.
26141 * script/yylex.l: Remove all #pragma.
26142
6734334a
VS
261432010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26144
26145 * include/grub/util/misc.h (canonicalise_file_name): Add missing
26146 prototype.
26147 Reported by: Seth Goldberg.
26148
daea6abd
VS
261492010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26150
26151 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
26152 Rename "module" to "module2".
26153 Reported by: Seth Goldberg.
26154
f2fd9d2b
VS
261552010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26156
26157 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
26158 EXPORT_FUNC.
26159 Reported by: Seth Goldberg.
26160
be124579
VS
261612010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26162
26163 * lib/posix_wrap/locale.h: Add missing file.
26164 Reported by: Seth Goldberg.
26165
ef5da797
VS
261662010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
26167
26168 grub-emu module load support.
26169
26170 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
26171 NO_DYNAMIC_MODULES switched to this.
26172 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
26173 (CFLAGS): Likewise.
26174 * conf/any-emu.rmk: Generate symlist.
26175 (kernel_img_HEADERS): Add util/datetime.h.
26176 (kernel_img_HEADERS) [sdl]: Add sdl.h.
26177 (kernel_img_HEADERS) [libusb]: Add libusb.h.
26178 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
26179 kern/$(target_cpu)/cache.S.
26180 * configure.ac (grub-emu-modules): New option.
26181 * genmk.rb: Handle multiple source lists.
26182 * include/grub/sdl.h: New file.
26183 * include/grub/libusb.h: Likewise.
26184 * util/grub-emu.c (main): Hanle (host) root.
26185 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
26186 GRUB_ERR_UNKNOWN_DEVICE.
26187 * util/misc.c: Move mm functions to ...
26188 * util/mm.c: ... here. All users updated.
26189
47822096
VS
261902010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26191
26192 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
26193 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
26194 missing files.
26195 (maintainer-clean): Remove libgcrypt-grub.
26196
5d7e7445
VS
261972010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26198
26199 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
26200
25f4e252
EC
262012010-04-09 EFI Coder <eficoder@hotmail.com>
26202
26203 * normal/menu_text.c (print_message): Clean up the message and show
26204 the Fn information when on EFI
26205 * term/efi/console.c (grub_console_checkkey): Add F4 support.
26206
027de555
VS
262072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26208
26209 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
26210 All users updated.
26211 * normal/crypto.c (read_crypto_list): Likewise.
26212 * normal/dyncmd.c (read_command_list): Likewise.
26213 * normal/term.c (read_terminal_list): Likewise.
26214 * normal/main.c (read_lists): Use explicit prefix.
26215 (read_lists_hook): Use read_lists.
26216 (grub_normal_execute): Likewise.
26217
47779711
VS
262182010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26219
26220 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
26221 Reported by: Thomas Schmitt.
26222 Add -no-emul-boot to grub-mkisofs parameters.
26223
1118c32e
VS
262242010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26225
26226 * font/font.c: Indented.
26227
7d652447
BC
262282010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26229
26230 Elif support to GRUB script (by Deepak Vankadaru).
26231
26232 * tests/grub_script_if.in: New testcase.
26233 * conf/tests.rmk: Rule for new testcase.
26234 * script/parser.y: Grammar rules for elif.
26235
34bb22df
BC
262362010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
26237
26238 While and until loops support to GRUB script.
26239
26240 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
26241 (grub_script_create_cmdwhile): New function prototype.
26242 (grub_script_execute_cmdwhile): New function prototype.
26243 * script/execute.c (grub_script_execute_cmdwhile): New function.
26244 * script/parser.y (command): New commands.
26245 (whilecmd): New grammar rule.
26246 (untilcmd): New grammar rule.
26247 * script/script.c (grub_script_create_cmdwhile): New function.
26248 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
26249 function.
26250
26251 * tests/grub_script_while1.in: New testcase.
26252 * conf/tests.rmk: Rule for new testcase.
26253
e215d8e0
VS
262542010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26255
26256 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
26257 as *.jpg.
26258
d7c43ba1
MV
262592010-04-09 Mario Vazquez <mariovazq@gmail.com>
26260
26261 GRUB_BACKGROUND support.
26262
26263 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
26264 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
26265
d64795c0
VS
262662010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26267
26268 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 26269 Idea by: Mario Vazquez
d64795c0
VS
26270
26271 * util/grub.d/00_header.in: Load pf2 and image modules.
26272
f267f83a
VS
262732010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26274
26275 grub-mkconfig multiple terminal support.
26276
26277 * util/grub-mkconfig.in: Handle multiple terminals correctly.
26278 * util/grub.d/00_header.in: Likewise.
26279
b7841ceb
VS
262802010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
26281
26282 * Makefile.in: Specify files explicitly instead of using $< and $@ since
26283 we use cd $(srcdir).
26284
df60998c
CW
262852010-04-08 Colin Watson <cjwatson@ubuntu.com>
26286
26287 * util/grub.d/10_linux.in: Only use the first word of
26288 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
26289 spaces in GRUB_DISTRIBUTOR.
26290 * util/grub.d/10_kfreebsd.in: Likewise.
26291 * util/grub.d/10_hurd.in: Likewise.
26292
fa09c82e
BC
262932010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
26294
14e18ae3 26295 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
26296
26297 * tests/util/grub-shell.in: Remove -serial stdio option.
26298
daf892b3
BC
262992010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
26300
26301 POSIX header file wrappers.
26302
26303 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
26304 equivalents.
26305 * lib/posix_wrap/ctype.h: Likewise.
26306 * lib/posix_wrap/errno.h: Likewise.
26307 * lib/posix_wrap/langinfo.h: Likewise.
26308 * lib/posix_wrap/limits.h: Likewise.
26309 * lib/posix_wrap/localcharset.h: Likewise.
26310 * lib/posix_wrap/stdint.h: Likewise.
26311 * lib/posix_wrap/stdio.h: Likewise.
26312 * lib/posix_wrap/stdlib.h: Likewise.
26313 * lib/posix_wrap/string.h: Likewise.
26314 * lib/posix_wrap/sys/types.h: Likewise.
26315 * lib/posix_wrap/unistd.h: Likewise.
26316 * lib/posix_wrap/wchar.h: Likewise.
26317 * lib/posix_wrap/wctype.h: Likewise.
26318 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
26319 (grub_script.yy.h): Likewise.
26320 * script/yylex.l: Remove POSIX emulation #defines.
26321 * Makefile.in (POSIX_CFLAGS): New variable.
26322 (GNULIB_UTIL_CFLAGS): Likewise.
26323
26324 Regexp support.
26325
26326 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
26327 (regexp_mod_SOURCES): New variable.
26328 (regexp_mod_CFLAGS): Likewise.
26329 (regexp_mod_LDFLAGS): Likewise.
26330 * commands/regexp.c: New file.
26331 * gnulib/regcomp.c: New file. Imported from gnulib.
26332 * gnulib/regex.c: Likewise.
26333 * gnulib/regex_internal.c: Likewise.
26334 * gnulib/regex_internal.h: Likewise.
26335 * gnulib/regexec.c: Likewise.
26336 * gnulib/regex.h: Likewise.
26337
974ac4f7
VS
263382010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26339
26340 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
26341 unsupported video mode types.
26342
2622c3ff
VS
263432010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26344
26345 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
26346
064cb524
VS
263472010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
26348
26349 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
26350 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
26351
a8c3b552
VS
263522010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
26353
26354 Remove unused grub_vga_get_font.
26355
26356 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
26357 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
26358
187bbe3d
GS
263592010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26360
26361 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
26362 * include/grub/misc.h: Likewise.
26363
b9396631
GS
263642010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26365
26366 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
26367 for which failure is fatal.
26368
50479feb
GS
263692010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26370
26371 * util/grub-install.in: Use mkdir -p to create grub directory.
26372 * util/i386/efi/grub-install.in: Likewise.
26373 * util/ieee1275/grub-install.in: Likewise.
26374
b1654fdf
GS
263752010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26376
26377 * Makefile.in (LEX): new variable.
26378
bd5a6415
GS
263792010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
26380
26381 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
26382 `=' and added double quotes on operands of this equality test.
26383
3db3a82b
VS
263842010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26385
26386 * Makefile.in (uninstall): Remove a leftover debug echo.
26387 Reported by: Grégoire Sutre
26388
38023412
VS
263892010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
26390
26391 MIPS multiboot2 support.
26392
26393 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
26394 (multiboot2_mod_SOURCES): New variable.
26395 (multiboot2_mod_CFLAGS): Likewise.
26396 (multiboot2_mod_LDFLAGS): Likewise.
26397 (multiboot2_mod_ASFLAGS): Likewise.
26398 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
26399 definition.
26400 (MULTIBOOT_ENTRY_REGISTER): Likewise.
26401 (MULTIBOOT_MBI_REGISTER): Likewise.
26402 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
26403 (MULTIBOOT_ELF32_MACHINE): Likewise.
26404 (MULTIBOOT_ELF64_MACHINE): Likewise.
26405 * include/grub/mips/multiboot.h: New file.
26406 * include/grub/video.h (grub_video_driver_id): New type
26407 GRUB_VIDEO_DRIVER_SM712.
26408 (grub_video_get_info_and_fini): Export.
26409 (grub_video_get_palette): Likewise.
26410 (grub_video_get_driver_id): Likewise.
26411 * include/multiboot2.h: Resynced with spec.
26412 * loader/i386/multiboot.c: Moved from here ...
26413 * loader/multiboot.c: ... here. All users updated.
26414 (grub_multiboot_boot): Use platform-specific macros.
26415 * loader/i386/multiboot_elfxx.c: Moved from here ...
26416 * loader/multiboot_elfxx.c: ... here. All users updated.
26417 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
26418 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
26419 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
26420
47674667
VS
264212010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
26422
26423 Import gnulib argp module.
26424
26425 * gnulib/argp-ba.c: New file.
26426 * gnulib/argp-eexst.c: Likewise.
26427 * gnulib/argp-fmtstream.c: Likewise.
26428 * gnulib/argp-fmtstream.h: Likewise.
26429 * gnulib/argp-fs-xinl.c: Likewise.
26430 * gnulib/argp-help.c: Likewise.
26431 * gnulib/argp-namefrob.h: Likewise.
26432 * gnulib/argp-parse.c: Likewise.
26433 * gnulib/argp-pin.c: Likewise.
26434 * gnulib/argp-pv.c: Likewise.
26435 * gnulib/argp-pvh.c: Likewise.
26436 * gnulib/argp-version-etc.c: Likewise.
26437 * gnulib/argp-version-etc.h: Likewise.
26438 * gnulib/argp-xinl.c: Likewise.
26439 * gnulib/argp.h: Likewise.
26440
495442ed
VS
264412010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26442
26443 * kern/device.c (grub_device_iterate): Clear errors after failed
26444 opening device.
26445
f9fd65df
VS
264462010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
26447
26448 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
26449 returned by firmware.
26450
af09641e
VS
264512010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
26452
26453 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
26454 compilation on coreboot and qemu
26455
016883a5
VS
264562010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26457
26458 * include/multiboot2.h: Resync with spec.
26459
f97e1f7d
VS
264602010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
26461
26462 Multiboot2 tag support
26463
26464 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
26465 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
26466 Remove loader/multiboot_loader.c.
26467 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
26468 (grub_multiboot2_real_boot): Likewise.
26469 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
26470 (grub_get_multiboot_mmap_count): New proto.
26471 (grub_fill_multiboot_mmap): Likewise.
26472 (grub_multiboot_set_video_mode): Likewise.
26473 (grub_multiboot_set_console): Likewise.
26474 (grub_multiboot_load): Likewise.
26475 (grub_multiboot_load_elf): Likewise.
26476 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
26477 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
26478 * include/multiboot.h: Resynced with specification.
26479 * include/multiboot2.h: Resynced with specification.
26480 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
26481 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
26482 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
26483 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
26484 users updated.
26485 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
26486 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
26487 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
26488 Removed.
26489 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
26490 Moved from here...
26491 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
26492 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
26493 Moved from here...
26494 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
26495 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
26496 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
26497 All users updated.
26498 * loader/i386/multiboot_mbi2.c: New file.
26499
3506b90b
VS
265002010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26501
26502 Resync with gnulib.
26503
26504 * Makefile.in (GNULIB_CFLAGS): New variable.
26505 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
26506 (grub_script_check_CFLAGS): New variable.
26507 * gnulib/alloca.h: Resync with gnulib.
26508 * gnulib/error.c: Likewise.
26509 * gnulib/error.h: Likewise.
26510 * gnulib/fnmatch.c: Likewise.
26511 * gnulib/fnmatch_loop.c: Likewise.
26512 * gnulib/getdelim.c: Likewise.
26513 * gnulib/getline.c: Likewise.
26514 * gnulib/getopt.c: Likewise.
26515 * gnulib/getopt1.c: Likewise.
26516 * gnulib/getopt_int.h: Likewise.
26517 * gnulib/gettext.h: Likewise.
26518 * gnulib/progname.c: Likewise.
26519 * gnulib/progname.h: Likewise.
26520
394a3120
GS
265212010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
26522
26523 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
26524 which is the case with --disabled-nls.
26525
26526 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
26527 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
26528 * util/misc.c: Likewise.
26529 * util/mkisofs/mkisofs.c: Likewise.
26530 * util/mkisofs/mkisofs.h: Likewise.
26531
969d1c78
VS
265322010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
26533
26534 Simplify Apple CC support.
26535
26536 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
26537 Add 0 byte at the end not to have a symbol with empty target.
26538 * mmap/i386/pc/mmap_helper.S: Likewise.
26539 * genmk.rb: Ignore errors 2030 and 2050.
26540 * kern/i386/pc/startup.S: Use LOCAL when possible.
26541
8d2977bb
BC
265422010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
26543
26544 Testcase and the fix for final semicolon on cmdline.
26545
26546 * tests/grub_script_final_semicolon.in: New testcase.
26547 * conf/tests.rmk: Rules for the new testcase.
26548 * script/parser.y: Grammar fix.
26549
a7bd6915
BC
265502010-03-26 BVK Chaitanya <bvk@localhost>
26551
26552 Blank lines testcase for GRUB script.
26553
26554 * tests/grub_script_blanklines.in: New testcase.
26555 * conf/tests.rmk: Rules for the new testcase.
26556
e4ff6628
VS
265572010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26558
26559 Don't use __FILE__.
26560
26561 * genmk.rb: Add -DGRUB_FILE to all C targets.
26562 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
26563 * include/grub/list.h: Likewise.
26564 * include/grub/misc.h: Likewise.
26565 * include/grub/mm.h: Likewise.
26566 * include/grub/test.h: Likewise.
26567 * kern/mm.c: Likewise.
26568 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
26569
6a5cf6b6
VS
265702010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26571
26572 Sunpc partitions support.
26573
26574 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
26575 (grub_fstest_SOURCES): Likewise.
26576 (pkglib_MODULES): Add part_sunpc.mod.
26577 (part_sunpc_mod_SOURCES): New variable.
26578 (part_sunpc_mod_CFLAGS): Likewise.
26579 (part_sunpc_mod_LDFLAGS): Likewise.
26580 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
26581 * partmap/sunpc.c: New file.
26582
746d9045
BC
265832010-03-26 BVK Chaitanya <bvk@localhost>
26584
26585 For loop support to GRUB script.
26586
26587 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
26588 (grub_script_create_cmdfor): New function prototype.
26589 (grub_script_execute_cmdfor): New function prototype.
26590 * script/execute.c (grub_script_execute_cmdfor): New function.
26591 * script/parser.y (command): New for command.
26592 (forcmd): New grammar rule.
26593 * script/script.c (grub_script_create_cmdfor): New function.
26594 * util/grub-script-check.c (grub_script_execute_cmdfor): New
26595 function.
26596 * tests/grub_script_for1.in: New testcase.
26597 * conf/tests.rmk: Rules for new testcase.
26598
18486b18
VS
265992010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
26600
26601 Nested partitions
26602
26603 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
26604 'partition' is NULL, grub_partition_get_start already does that.
26605 * commands/loadenv.c (check_blocklists): Likewise.
26606 (write_blocklists): Likewise.
26607 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
26608 (grub_fstest_SOURCES): Likewise.
26609 (pkglib_MODULES): Add part_bsd.mod.
26610 (part_bsd_mod_SOURCES): New variable.
26611 (part_bsd_mod_CFLAGS): Likewise.
26612 (part_bsd_mod_LDFLAGS): Likewise.
26613 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
26614 (grub_emu_SOURCES): Likewise.
26615 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26616 * include/grub/bsdlabel.h: New file.
26617 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
26618 'get_name'.
26619 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
26620 (grub_partition_map_list): New variable.
26621 (grub_partition_map_register): Inline.
26622 (grub_partition_map_unregister): Likewise.
26623 (FOR_PARTITION_MAPS): New macro.
26624 (grub_partition_map_iterate): Removed.
26625 (grub_partition_get_start): Handle nested partitions.
26626 * include/grub/msdos_partition.h: Remove bsd-related entries.
26627 (grub_pc_partition): Remove.
26628 * kern/disk.c (grub_disk_close): Free partition data.
26629 (grub_disk_adjust_range): Handle nested partitions.
26630 * kern/partition.c (grub_partition_map_probe): New function.
26631 (grub_partition_probe): Parse name to number, handle subpartitions.
26632 (get_partmap): New function.
26633 (grub_partition_iterate): Handle subpartitions.
26634 (grub_partition_get_name): Likewise.
26635 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
26636 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
26637 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
26638 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
26639 Set 'number'.
26640 (acorn_partition_map_probe): Remove.
26641 (acorn_partition_map_get_name): Likewise.
26642 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
26643 Set 'number'.
26644 Set 'index' to 0 since there can be only one partition entry per sector.
26645 (amiga_partition_map_probe): Remove.
26646 (amiga_partition_map_get_name): Likewise.
26647 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
26648 Set 'number'.
26649 Set 'offset' and 'index' to real positions of partitions.
26650 (apple_partition_map_probe): Remove.
26651 (apple_partition_map_get_name): Likewise.
26652 * partmap/bsdlabel.c: New file.
26653 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
26654 Set 'number'.
26655 Allocate 'data' so it can be correctly freed.
26656 Set 'index' to offset inside sector.
26657 (gpt_partition_map_probe): Remove.
26658 (gpt_partition_map_get_name): Likewise.
26659 * partmap/msdos.c (grub_partition_parse): Remove.
26660 (pc_partition_map_iterate): Don't force raw access.
26661 Set 'number'.
26662 Make 'ext_offset' a local variable.
26663 (pc_partition_map_probe): Remove.
26664 (pc_partition_map_get_name): Remove.
26665 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
26666 Set 'number'.
26667 (sun_partition_map_probe): Remove.
26668 (sun_partition_map_get_name): Likewise.
26669 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
26670 (grub_pcpart_type): Likewise.
26671 * util/hostdisk.c (open_device): Handle new numbering scheme.
26672 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
26673 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
26674 * util/grub-probe.c (probe_partmap): Handle nested paritions.
26675 * util/grub-install.in: Insert all subpartition modules.
26676 * util/ieee1275/grub-install.in: Likewise.
26677
a3940f88
AG
266782010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
26679
26680 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
26681 grammar.
26682
21b99926 266832010-03-24 Colin Watson <cjwatson@ubuntu.com>
26684
26685 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
26686
bed1d352
CW
266872010-03-21 Colin Watson <cjwatson@ubuntu.com>
26688
26689 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
26690 match where 'make install' puts them.
26691 * util/i386/efi/grub-install.in: Likewise.
26692
c9f58427
CW
266932010-03-19 Colin Watson <cjwatson@ubuntu.com>
26694
26695 * .bzrignore: Add gentrigtables, grub-script-check,
26696 grub_script_check_init.c, grub_script_check_init.h, and
26697 trigtables.c.
26698
f84afb27
VS
266992010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
26700
26701 * kern/parser.c: Indented.
26702
ed0e3d30
VS
267032010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26704
26705 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
26706
0ea81d98
VS
267072010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
26708
26709 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
26710 alpha_mask_size == 0 case.
26711
0cdc2a09
BC
267122010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
26713
26714 GRUB shell lexer and parser improvements.
26715
26716 * conf/any-emu.rmk: Build rule updates.
26717 * conf/common.rmk: Likewise.
26718 * conf/i386-coreboot.rmk: Likewise.
26719 * conf/i386-efi.rmk: Likewise.
26720 * conf/i386-ieee1275.rmk: Likewise.
26721 * conf/i386-pc.rmk: Likewise.
26722 * conf/powerpc-ieee1275.rmk: Likewise.
26723 * conf/x86_64-efi.rmk: Likewise.
26724
26725 * configure.ac: Configure check for flex.
26726
26727 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
26728 types.
26729 (grub_lexer_param): Struct member updates.
26730 (grub_parser_param): Likewise.
26731 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
26732 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
26733 (grub_script_lexer_init): Prototype update.
26734 (grub_script_lexer_record_start): Likewise.
26735 (grub_script_lexer_record_stop): Likewise.
26736 (grub_script_lexer_yywrap): New function prototype.
26737 (grub_script_lexer_fini): Likewise.
26738 (grub_script_execute_argument_to_string): Removed by...
26739 (grub_script_execute_argument_to_argv): ...better version.
26740
26741 * script/execute.c (ROUND_UPTO): New macro.
26742 (grub_script_execute_cmdline): Out of memory fixes.
26743 (grub_script_execute_menuentry): Likewise.
26744 (grub_script_execute_argument_to_string): Removed. Update all
26745 users by...
26746 (grub_script_execute_argument_to_argv): ...better version.
26747 * script/function.c (grub_script_function_create): Use
26748 grub_script_execute_argument_to_argv instead of
26749 grub_script_execute_argument_to_string.
26750
26751 * script/lexer.c (check_varstate): Removed.
26752 (check_textstate): Removed.
26753 (grub_script_lexer_record_start): Likewise.
26754 (grub_script_lexer_record_stop): Likewise.
26755 (recordchar): Replaced with...
26756 (grub_script_lexer_record): ...new function.
26757 (nextchar): Removed.
26758 (grub_script_lexer_init): Rewritten.
26759 (grub_script_yylex): Rewritten.
26760 (append_newline): New function.
26761 (grub_script_lexer_yywrap): New function.
26762 (grub_script_lexer_fini): New function.
26763 (grub_script_yyerror): Sets error flag.
26764
26765 * script/yylex.l: New file.
26766 (grub_lexer_yyfree): Wrapper for flex yyffre.
26767 (grub_lexer_yyalloc): Likewise.
26768 (grub_lexer_yyrealloc): Likewise.
26769 * script/parser.y: Refactored.
26770
26771 * script/script.c (grub_script_arg_add): Out of memory fixes.
26772 (grub_script_add_arglist): Likewise.
26773 (grub_script_create_cmdline): Likewise.
26774 (grub_script_create_cmdmenu): Likewise.
26775 (grub_script_add_cmd): Likewise.
26776 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
26777 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
26778 unnecessary code.
26779
26780 * tests/grub_script_echo1.in: New testcase.
26781 * tests/grub_script_vars1.in: New testcase.
26782 * tests/grub_script_echo_keywords.in: New testcase.
26783
1d63a066
VS
267842010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26785
26786 Remove some redundancy in build system.
26787
26788 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
26789 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
26790 (TARGET_LDFLAGS): Add -nostdlib.
26791 (TARGET_IMG_LDFLAGS): Likewise.
26792 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
26793 anything since mmap isn't available.
26794 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
26795 Add util/time.c.
26796 (pkglib_MODULES): Remove reboot.mod.
26797 (reboot_mod_SOURCES): Removed.
26798 (reboot_mod_CFLAGS): Likewise.
26799 (reboot_mod_LDFLAGS): Likewise.
26800 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
26801 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
26802 (DEFSYMFILES): Add kernel_syms.lst.
26803 (kernel_img_HEADERS): Add common headers.
26804 (symlist.c): New target.
26805 (kernel_syms.lst): Likewise.
26806 (pkglib_MODULES): Add memdisk.mod.
26807 (memdisk_mod_SOURCES): New variable.
26808 (memdisk_mod_CFLAGS): Likewise.
26809 (memdisk_mod_LDFLAGS): Likewise.
26810 (pkglib_MODULES): Add reboot.mod.
26811 (reboot_mod_SOURCES): New variable.
26812 (reboot_mod_CFLAGS): Likewise.
26813 (reboot_mod_LDFLAGS): Likewise.
26814 (pkglib_MODULES): Add date.mod.
26815 (date_mod_SOURCES): New variable.
26816 (date_mod_CFLAGS): Likewise.
26817 (date_mod_LDFLAGS): Likewise.
26818 (pkglib_MODULES): Add datehook.mod.
26819 (datehook_mod_SOURCES): New variable.
26820 (datehook_mod_CFLAGS): Likewise.
26821 (datehook_mod_LDFLAGS): Likewise.
26822 (pkglib_MODULES): Add lsmmap.mod.
26823 (lsmmap_mod_SOURCES): New variable.
26824 (lsmmap_mod_CFLAGS): Likewise.
26825 (lsmmap_mod_LDFLAGS): Likewise.
26826 (pkglib_MODULES): Add boot.mod.
26827 (boot_mod_SOURCES): New variable.
26828 (boot_mod_CFLAGS): Likewise.
26829 (boot_mod_LDFLAGS): Likewise.
26830 * conf/i386-coreboot.rmk: Removed redundant parts.
26831 * conf/i386-ieee1275.rmk: Likewise.
26832 * conf/i386-pc.rmk: Likewise.
26833 * conf/mips-yeeloong.rmk: Likewise.
26834 * conf/mips.rmk: Likewise.
26835 * conf/powerpc-ieee1275.rmk: Likewise.
26836 * conf/sparc64-ieee1275.rmk: Likewise.
26837 * conf/x86_64-efi.rmk: Likewise.
26838 * conf/i386-coreboot.rmk: Moved qemu parts ..
26839 * conf/i386-qemu.rmk: ... here
26840 * conf/i386-efi.rmk: Moved common parts to...
26841 * conf/x86-efi.rmk: ... here.
26842 * conf/i386.rmk: Added modules common to all x86 variants.
26843 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
26844 * disk/memdisk.c: Remove grub/machine/kernel.h.
26845 * gensymlist.sh.in: Include symbol.h.
26846 * hook/datehook.c: Correct module name.
26847 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
26848 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
26849 * include/grub/i386/efi/serial.h: New file.
26850 * include/grub/x86_64/efi/serial.h: Likewise.
26851 * util/time.c: Likewise.
26852 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
26853
463ac55f
CK
268542010-03-14 Colin King <colin.king@ubuntu.com>
268552010-03-14 Colin Watson <cjwatson@ubuntu.com>
26856
26857 Shrink the pre-partition-table part of boot.img by eight bytes.
26858
26859 * boot/i386/pc/boot.S (ERR): New macro.
26860 (chs_mode): Use ERR.
26861 (geometry_error): Likewise.
26862 (hd_probe_error): Remove. This is only used once, so we wrwite
26863 it inline instead.
26864 (read_error): Instead of printing read_error_string, just set up
26865 %si and fall through to ...
26866 (error_message): ... this new function, also used by ERR.
26867
08e46ede
CW
268682010-03-14 Colin Watson <cjwatson@ubuntu.com>
26869
26870 Speed up consecutive hostdisk operations on the same device.
26871
26872 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
26873 (grub_util_biosdisk_open): Initialise disk->data.
26874 (struct linux_partition_cache): New structure.
26875 (linux_find_partition): Cache partition start positions; these are
26876 expensive to compute on every read and write.
26877 (open_device): Cache open file descriptor in disk->data, so that we
26878 don't have to reopen it and flush the buffer cache for consecutive
26879 operations on the same device.
26880 (grub_util_biosdisk_close): New function.
26881 (grub_util_biosdisk_dev): Set `close' member.
26882
26883 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
26884 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
26885 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
26886 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
26887 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
26888
4a6d2d06
VS
268892010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26890
26891 Compile parts of grub-emu as modules.
26892
26893 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
26894 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
26895 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
26896 (all-local): Add $(GRUB_EMU).
26897 (install-local): Install $(GRUB_EMU).
26898 (uninstall): Uninstall $(GRUB_EMU).
26899 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
26900 * kern/dl.c: Likewise.
26901 * commands/sleep.c: Not include machine/time.h.
26902 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
26903 (COMMON_CFLAGS): Likewise.
26904 (sbin_UTILITIES): Remove grub-emu.
26905 (grub_emu_SOURCES): Removed.
26906 (kernel_img_RELOCATABLE): New variable.
26907 (pkglib_PROGRAMS): Add kernel.img.
26908 (kernel_img_SOURCES): New variable
26909 (kernel_img_CFLAGS): Likewise.
26910 (kernel_img_LDFLAGS): Likewise.
26911 (TARGET_NO_STRIP): Likewise.
26912 (TARGET_NO_DYNAMIC_MODULES): Likewise.
26913 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
26914 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
26915 (grub-emu): New target.
26916 (GRUB_EMU): New variable.
26917 * configure.ac: Whitelist -emu as possible x86_64 architecture.
26918 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
26919 * loader/xnu.c: Likewise.
26920 * include/grub/pci.h: Likewise.
26921 * genemuinit.sh: New file.
26922 * genemuinitheader.sh: Likewise.
26923 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
26924 Support TARGET_NO_DYNAMIC_MODULES.
26925 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
26926 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
26927 * disk/loopback.c: Likewise.
26928 * font/font_cmd.c: Likewise.
26929 * partmap/acorn.c: Likewise.
26930 * partmap/amiga.c: Likewise.
26931 * partmap/apple.c: Likewise.
26932 * partmap/gpt.c: Likewise.
26933 * partmap/msdos.c: Likewise.
26934 * partmap/sun.c: Likewise.
26935 * parttool/msdospart.c: Likewise.
26936 * term/gfxterm.c: Likewise.
26937 * video/bitmap.c: Likewise.
26938 * video/readers/jpeg.c: Likewise.
26939 * video/readers/png.c: Likewise.
26940 * video/readers/tga.c: Likewise.
26941 * video/video.c: Likewise.
26942 * util/grub-emu.c (read_command_list): Removed.
26943 (main): Don't call util_init_nls.
26944 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
26945 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
26946
91fdd2ed
VS
269472010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26948
26949 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
26950 date.mod, datehook.mod.
26951 (datetime_mod_SOURCES): New variable.
26952 (datetime_mod_CFLAGS): Likewise.
26953 (datetime_mod_LDFLAGS): Likewise.
26954 (date_mod_SOURCES): Likewise.
26955 (date_mod_CFLAGS): Likewise.
26956 (date_mod_LDFLAGS): Likewise.
26957 (datehook_mod_SOURCES): Likewise.
26958 (datehook_mod_CFLAGS): Likewise.
26959 (datehook_mod_LDFLAGS): Likewise.
26960 * conf/sparc64-ieee1275.rmk: Likewise.
26961 * lib/ieee1275/datetime.c: New file.
26962
873ccae6
VS
269632010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26964
26965 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
26966 (ieee1275_fb_mod_SOURCES): New variable.
26967 (ieee1275_fb_mod_CFLAGS): Likewise.
26968 (ieee1275_fb_mod_LDFLAGS): Likewise.
26969 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
26970 New proto.
26971 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
26972 (HEAP_MAX_ADDR): Likewise.
26973 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
26974 type.
26975 Correct stop condition.
26976 (grub_ieee1275_devices_iterate): New function.
26977 * video/ieee1275.c: New file.
26978
601c97c0
VS
269792010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
26980
26981 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
26982
26983 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
26984 as scratch.
26985 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
26986 SCRATCH_PAD_DISKBOOT as scratch.
26987 (bootit): Pass Openfirmware pointer in %o4.
26988 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
26989 of 0x200000.
26990 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
26991 with util/grub-mkrawimage.c.
26992 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
26993 * include/grub/aout.h (AOUT_MID_SUN): New definition.
26994 (grub_aout_get_type) [GRUB_UTIL]: Removed.
26995 (grub_aout_load) [GRUB_UTIL]: Likewise.
26996 * include/grub/kernel.h (grub_modules_get_end): New proto.
26997 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
26998 (SCRATCH_PAD_BOOT): New definition.
26999 (SCRATCH_PAD_DISKBOOT): Likewise.
27000 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
27001 * include/grub/sparc64/ieee1275/ieee1275.h
27002 (grub_ieee1275_original_stack): New variable
27003 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
27004 New definition
27005 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
27006 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
27007 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
27008 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
27009 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
27010 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
27011 (grub_platform_image_format_t): New type.
27012 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
27013 * kern/main.c (grub_modules_get_end)
27014 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
27015 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
27016 (codestart): Switch stacks.
27017 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
27018 variable.
27019 (grub_heap_init): Use grub_modules_get_end.
27020 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
27021 stack.
27022 * util/grub-mkrawimage.c (generate_image): Support sparc64.
27023 (main): Likewise.
27024 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
27025
d68b491e
TG
270262010-03-14 Thorsten Glaser <tg@mirbsd.org>
27027
27028 * util/grub-mkrescue.in: Base ISO UUID on UTC.
27029
4e02ed50
MK
270302010-03-08 Matt Kraai <kraai@ftbfs.org>
27031
27032 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
27033 bug #559005).
27034
1f15fc1e
VS
270352010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
27036
27037 * genmoddep.awk: Output all missing symbols and not only first.
27038
fce5d8ff
VS
270392010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27040
27041 * NEWS: Put the date of 1.98 release.
27042
d1e8a02f
VS
270432010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27044
27045 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
27046 ft2build.h.
27047
696fd607
VS
270482010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27049
27050 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
27051 completition in the middle of string.
27052
33e2e6f3
VS
270532010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27054
27055 * util/grub-mkrescue.in: Use mktemp with explicit template.
27056
b1f6d291
VS
270572010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27058
27059 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
27060
2ac227c7
VS
270612010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
27062
27063 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
27064 right pointer.
27065
8f9a632b
VS
270662010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27067
27068 Fix FreeBSD compilation.
27069
27070 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
27071 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
27072
60b03859
VS
270732010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
27074
27075 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
27076
48a5a769
VS
270772010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27078
27079 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
27080
3ab4bd77
VS
270812010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27082
27083 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
27084
d116e0d8
RM
270852010-03-04 Robert Millan <rmh.grub@aybabtu.com>
27086
27087 Support relative image path in theme file.
27088
27089 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
27090 (image_set_property): Handle theme_dir and relative path.
27091
c7ef54aa
VS
270922010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27093
27094 * configure.ac: Alias amd64 to x86_64.
27095
fcee14ed
VS
270962010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27097
27098 * NEWS: mention multiboot on EFI.
27099
d0780363
VS
271002010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27101
27102 * kern/main.c (grub_load_modules): Handle errors from init functions of
27103 embeded modules.
27104
41168ea4
VS
271052010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27106
27107 * normal/autofs.c (autoload_fs_module): Handle errors.
27108
b54d93ac
VS
271092010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27110
27111 Disable linux.mod on qemu-mips since it's not functional and leads
27112 to compilation failure.
27113
27114 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
27115 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
27116 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
27117 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
27118 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
27119 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
27120 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
27121 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
27122 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
27123 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
27124 Reported by: BVK Chaitanya
27125
fc8345da
JU
271262010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
27127
27128 * INSTALL: Add gettext as a dependency and add qemu to a new section
27129 "Prerequisites for make-check".
27130
4760f979
CF
271312010-03-04 Christian Franke <franke@computer.org>
27132
27133 * util/grub-pe2elf.c: Add missing include "progname.h".
27134
f209b5b2
VS
271352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27136
27137 * normal/crypto.c (read_crypto_list): Fix a typo.
27138 Reported by: Seth Goldberg.
27139
b4b7be98
VS
271402010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27141
27142 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 27143 Reported by: Seth Goldberg.
b4b7be98 27144
c0ee0385
VS
271452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27146
27147 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
27148 ascii.bitmaps.
27149
a8efbf64
VS
271502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27151
27152 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 27153 Reported by: Seth Goldberg.
a8efbf64 27154
08dcd913
VS
271552010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
27156
27157 * util/i386/efi/grub-install.in: Copy gettext files.
27158
c4d0b332
VS
271592010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27160
27161 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
27162
c6f2fe52
VS
271632010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27164
27165 Wait for user entry basing on presence of output rather than on errors.
27166
27167 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
27168 (grub_install_newline_hook): Likewise.
27169 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
27170 * normal/menu.c (show_menu): Check line_counter to determine presence
27171 of output.
27172 * normal/term.c (grub_normal_line_counter): New variable.
27173 (grub_normal_get_line_counter): New function.
27174 (grub_install_newline_hook): Likewise.
27175
5382b1e4
VS
271762010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27177
27178 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
27179
5519963b
VS
271802010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
27181
27182 * configure.ac: Update version to 1.98.
27183
72b28631
VS
271842010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
27185
27186 * util/grub.d/10_linux.in (linux_entry): Don't default to
27187 gfxpayload=keep if Linux doesn't support video handover.
27188
c140a180
VS
271892010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
27190
27191 Don't compile video modules on yeeloong since video subsystem is part
27192 of kernel.
27193
27194 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
27195 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
27196 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
27197 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
27198 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
27199 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
27200 * include/grub/bitmap_scale.h: Likewise.
27201 * include/grub/bufio.h: Likewise.
27202 * include/grub/font.h: Likewise.
27203 * include/grub/gfxterm.h: Likewise.
27204 * include/grub/video.h: Likewise.
27205 * include/grub/vbe.h: Don't include video_fb.h.
27206 * video/i386/pc/vbe.c: Include video_fb.h.
27207 * commands/i386/pc/vbetest.c: Include video.h.
27208
a0ca21c2
CW
272092010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
27210
27211 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
27212 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
27213 default entry if GRUB_SAVEDEFAULT=true. This allows using
27214 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
27215 saving a new default on every boot.
27216
4a8a763c
VS
272172010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27218
27219 * normal/crypto.c (read_crypto_list): Fix a memory leak.
27220 * normal/term.c (read_terminal_list): Likewise.
27221 * normal/main.c (grub_normal_init_page): Likewise.
27222 (grub_normal_read_line_real): Likewise.
27223
607ffde2
VS
272242010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
27225
27226 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
27227 memory leak.
27228 Reported by: Seth Goldberg.
27229
2b8fa975
CW
272302010-02-24 Joey Korkames <joey+lists@kidfixit.com>
27231
27232 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
27233 duplicate declaration of `start'.
27234
618307dd
VS
272352010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27236
27237 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
27238 filename.
27239 Reported by: Georgy Buranov
27240
7dd05b96 272412010-02-20 Carles Pina i Estany <carles@pina.cat>
27242
27243 * util/grub-mkrawimage.c (usage): Change string formatting to
27244 improve gettext.
27245
d1484a42
MRA
272462010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
27247
27248 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
27249 backspace keys.
27250
42b1d186
VS
272512010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
27252
27253 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
27254 Reported by: Michael Suchanek.
27255
272562010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
27257
27258 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
27259 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
27260
d9f31a41
VS
272612010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
27262
27263 Remove any reference to non-free fonts.
27264
27265 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
27266 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
27267 uses non-free components.
27268 * font/font.c (grub_font_get_name): Remove example name.
27269 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
27270 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
27271 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
27272 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
27273
2793c71e
GB
272742010-02-16 Georgy Buranov <gburanov@gmail.com>
27275
27276 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
27277
402e3779
VS
272782010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27279
27280 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
27281 Double divisor.
27282 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
27283 features.
27284 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
27285
0dd1e0dd
VS
272862010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
27287
27288 * gensymlist.sh.in: Use TARGET_CC instead of CC.
27289
6fa7cfce
ST
272902010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27291
27292 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
27293 * docs/grub.texi (Command-line and menu entry commands): Document play
27294 command.
27295
37c8483b
ST
272962010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27297
27298 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
27299 parse arguments as inline tempo and notes. Move code for playing notes
27300 to...
27301 (play): ... new function.
27302
14da0fb7
ST
273032010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
27304
27305 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
27306 grub_uint16_t instead of short.
27307 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
27308 disk from little endian to cpu endianness.
27309
04459e70
ST
273102010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
27311
27312 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
27313 GRUB_TICKS_PER_SECOND instead of 120.
27314
a0876943
VS
273152010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27316
27317 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
27318 escape sequence after \e.
27319
e29f95dc
VS
273202010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27321
27322 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
27323 non-ASCII characters.
27324
d27859b2
VS
273252010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27326
27327 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
27328 set root in single quotes to prevent \, from being unescaped.
27329
bc028f2f
VS
273302010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27331
27332 Prevent unknown commands from stopping menuentry execution.
27333
27334 * script/execute.c (grub_script_execute_cmdline): Print error after
27335 unknown command.
27336
095f5f82
VS
273372010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
27338
27339 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
27340 Reported by: Pavel Pisa.
27341
8c717950
VS
273422010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27343
27344 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
27345
904935c3
VS
273462010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27347
27348 Merge grub_ieee1275_map_physical into grub_map and rename to
27349 grub_ieee1275_map
27350
27351 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
27352 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
27353 Remove.
27354 * kern/ieee1275/openfw.c (grub_map): Rename to ...
27355 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
27356 necessary.
27357 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
27358
5b59a4e3
VS
273592010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27360
27361 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
27362 opening and not after.
27363
69e137e8
VS
273642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27365
27366 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
27367 constants.
27368
2c0fcc36
VS
273692010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27370
27371 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
27372 (alloc_phys): Use ALIGN_UP instead of align_addr.
27373
8c6052ce
VS
273742010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27375
27376 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
27377
17cec782
VS
273782010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27379
27380 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
27381
e0128bbd
VS
273822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27383
27384 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
27385 verbose dprintf.
27386
ca62070b
VS
273872010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27388
27389 Fix over-4GiB seek on sparc64.
27390
27391 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
27392 Replace pos_i and pos_lo with pos. All users updated.
27393 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27394 New constant.
27395 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
27396 Likewise.
27397 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
27398 and pos_lo.
27399
bdca2607
VS
274002010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27401
27402 * util/grub-mkrawimage.c (main): Call set_program_name.
27403
da278c4d
VS
274042010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27405
27406 Properly align 64-bit targets.
27407
27408 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
27409 (generate_image): Use ALIGN_ADDR.
27410
b274d734
VS
274112010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27412
27413 Properly create cross-endian images.
27414
27415 * include/grub/types.h (grub_host_to_target_addr): New macro
27416 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
27417
82da2062
VS
274182010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
27419
27420 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
27421
7cae4377
VS
274222010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27423
27424 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
27425
27426 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
27427 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
27428 (grub_linux_boot): Divide by 64K when on VESA.
27429
65a533e7
VS
274302010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27431
27432 Support GRUB_GFXPAYLOAD_LINUX.
27433
27434 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
27435 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
27436
dd01d397
VS
274372010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
27438
27439 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
27440 to show messages instead of discarding them.
27441 Process errors after executing command and not before. Keep old method
27442 too as precaution.
27443
660960d6
VS
274442010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
27445
27446 * configure.ac: Check for ft2build.h.
27447
62509f04
VS
274482010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27449
27450 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
27451
473df63d
VS
274522010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27453
27454 * genkernsyms.sh.in: Use TARGET_CC.
27455
c98d2a13
CW
274562010-02-07 Colin Watson <cjwatson@ubuntu.com>
27457
27458 * NEWS: Update.
27459
6e14234c
VS
274602010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27461
27462 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
27463 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
27464 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 27465
b255e9cf
YB
274662010-02-07 Yves Blusseau <blusseau@zetam.org>
27467
6e14234c 27468 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 27469
98e6959d
VS
274702010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27471
27472 Fix warnings in grub-emu when compiling with maximum warning options.
27473
27474 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
27475 (grub_arch_modules_addr): Return 0 and not NULL.
27476 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 27477 (xstrdup): Use newstr instead of dup.
f88d801b
VS
27478 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
27479 of disk to dsk to avoid shadowing.
74e4934e
VS
27480 (find_free_slot): Fix prototype.
27481 * util/getroot.c (grub_util_is_dmraid): Make static.
27482 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
27483 Add missing prototype.
27484 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 27485
74e31b5c
VS
274862010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27487
27488 * loader/i386/linux.c (grub_linux_setup_video): Handle error
27489 appropriately.
27490
6b2ad14b
VS
274912010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27492
27493 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
27494 code out.
27495
8f891adc
VS
274962010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27497
27498 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
27499 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
27500 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
27501 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
27502 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
27503 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
27504
74b45184
VS
275052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27506
27507 * include/grub/err.h (grub_err_printf): Don't export.
27508
a4bced77
VS
275092010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27510
27511 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
27512
007d0695
VS
275132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
27514
27515 * include/grub/i18n.h (grub_gettext_dummy): Removed.
27516 * kern/misc.c (grub_gettext_dummy): Make static.
27517
b6c0d9c2
VS
275182010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27519
27520 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
27521 by non-valid ones.
27522 * kern/term.c (grub_putchar): Likewise.
27523
f51a90d0
VS
275242010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27525
27526 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
27527 buggy hook call and memory leak.
27528
6846cec5
VS
275292010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27530
27531 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
27532
468d69fe
VS
275332010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27534
27535 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
27536
51906b8c
VS
275372010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27538
27539 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
27540 modevar.
27541 Return grub_errno on allocation error.
27542
09706ce5
VS
275432010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27544
27545 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
27546
911df80c
YB
275472010-02-06 Yves Blusseau <blusseau@zetam.org>
27548
27549 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
27550 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
27551
3746a6bc
VS
275522010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27553
27554 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
27555 non-pxe disk.
27556 (grub_pxefs_open): Likewise.
27557
09706ce5
VS
275582010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27559
27560 * util/grub.d/10_hurd.in: Add --class information to menuentries.
27561 * util/grub.d/10_kfreebsd.in: Likewise.
27562 * util/grub.d/10_linux.in: Likewise.
27563
7cc192d9
VS
275642010-02-06 Colin D Bennett <colin@gibibit.com>
27565
27566 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
27567 (gfxmenu_mod_SOURCES): New variable.
27568 (gfxmenu_mod_CFLAGS): Likewise.
27569 (gfxmenu_mod_LDFLAGS): Likewise.
27570 * include/grub/term.h (grub_term_set_current_output): Declare
27571 argument as const.
27572 * docs/gfxmenu-theme-example.txt: New file.
27573 * gfxmenu/gfxmenu.c: Likewise.
27574 * gfxmenu/gui_box.c: Likewise.
27575 * gfxmenu/gui_canvas.c: Likewise.
27576 * gfxmenu/gui_circular_progress.c: Likewise.
27577 * gfxmenu/gui_image.c: Likewise.
27578 * gfxmenu/gui_label.c: Likewise.
27579 * gfxmenu/gui_list.c: Likewise.
27580 * gfxmenu/gui_progress_bar.c: Likewise.
27581 * gfxmenu/gui_string_util.c: Likewise.
27582 * gfxmenu/gui_util.c: Likewise.
27583 * gfxmenu/icon_manager.c: Likewise.
27584 * gfxmenu/model.c: Likewise.
27585 * gfxmenu/named_colors.c: Likewise.
27586 * gfxmenu/theme_loader.c: Likewise.
27587 * gfxmenu/view.c: Likewise.
27588 * gfxmenu/widget-box.c: Likewise.
27589 * include/grub/gfxmenu_model.h: Likewise.
27590 * include/grub/gfxmenu_view.h: Likewise.
27591 * include/grub/gfxwidgets.h: Likewise.
27592 * include/grub/gui.h: Likewise.
27593 * include/grub/gui_string_util.h: Likewise.
27594 * include/grub/icon_manager.h: Likewise.
27595
275962010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27597
27598 Agglomerate scrolling in gfxterm.
27599
27600 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
27601 (grub_virtual_screen_setup): Initialise 'total_screen'.
27602 (write_char): Split to ...
27603 (paint_char): ... this ...
27604 (write_char): ... and this.
27605 (paint_char): Handle delayed scrolling.
27606 (draw_cursor): Likewise.
27607 (scroll_up): Split to ...
27608 (real_scroll): ... this ...
27609 (scroll_up): ... and this.
27610 (real_scroll): Handle multi-line scroll and draw below-the-bottom
27611 characters.
27612 (grub_gfxterm_refresh): Call real_scroll.
27613
276142010-02-06 Colin D Bennett <colin@gibibit.com>
27615
27616 * include/grub/misc.h (grub_iscntrl): New inline function.
27617 (grub_isalnum): Likewise.
27618 (grub_strtol): Likewise.
27619
276202010-02-06 Colin D Bennett <colin@gibibit.com>
27621
27622 * normal/menu_text.c (get_entry_number): Move from here ...
27623 * normal/menu.c (get_entry_number): ... moved here.
27624 * include/grub/menu.h (grub_menu_get_default_entry_index):
27625 New prototype.
27626 * normal/menu.c (grub_menu_get_default_entry_index): New function.
27627 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
27628 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
27629 (grub_menu_viewer_should_return): Likewise.
27630 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
27631 * normal/menu_text.c (run_menu): Enable menu switching.
27632 * normal/menu_viewer.c (should_return): New variable.
27633 (menu_viewer_changed): Likewise.
27634 (grub_menu_viewer_show_menu): Handle menu viewer changes.
27635 (grub_menu_viewer_should_return): New function.
27636 (menuviewer_write_hook): Likewise.
27637 (grub_menu_viewer_init): Likewise.
27638
276392010-02-06 Colin D Bennet <colin@gibibit.com>
276402010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27641
27642 Support for gfxterm in a window.
27643
27644 * include/grub/gfxterm.h: New file.
27645 * include/grub/video.h (struct grub_video_rect): New declaration.
27646 (grub_video_rect_t): Likewise.
27647 * term/gfxterm.c (struct grub_gfxterm_window): New type.
27648 (refcount): New variable.
27649 (render_target): Likewise.
27650 (window): Likewise.
27651 (repaint_callback): Likewise.
27652 (grub_virtual_screen_setup): Use 'render_target'.
27653 (init_window): New function.
27654 (grub_gfxterm_init_window): Likewise.
27655 (grub_gfxterm_init): Check reference counter.
27656 Use init_window.
27657 (destroy_window): New function.
27658 (grub_gfxterm_destroy_window): Likewise.
27659 (grub_gfxterm_fini): Check reference counter.
27660 Use destroy_window.
27661 (redraw_screen_rect): Restore viewport.
27662 Use 'render_target' and 'window'.
27663 Call 'repaint_callback'.
27664 (write_char): Use 'render_target'.
27665 (draw_cursor): Likewise.
27666 (scroll_up): Restore viewport.
27667 Use 'render_target' and 'window'.
27668 Call 'repaint_callback'.
27669 (grub_gfxterm_cls): Likewise.
27670 (grub_gfxterm_refresh): Use 'window'.
27671 (grub_gfxterm_set_repaint_callback): New function.
27672 (grub_gfxterm_background_image_cmd): Use 'window'.
27673 (grub_gfxterm_get_term): New function.
27674 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
27675
276762010-02-06 Colin D Bennett <colin@gibibit.com>
27677
27678 Bitmap scaling support.
27679
27680 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
27681 (bitmap_scale_mod_SOURCES): New variable.
27682 (bitmap_scale_mod_CFLAGS): Likewise.
27683 (bitmap_scale_mod_LDFLAGS): Likewise.
27684 * include/grub/bitmap_scale.h: New file.
27685 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
27686 (background_image_cmd_options): New variable.
27687 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
27688 (cmd): Rename and change type to ...
27689 (background_image_cmd_handle): ... this. All users updated.
27690 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
27691 * video/bitmap_scale.c: New file.
27692
276932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27694
27695 SDL support.
27696
27697 * Makefile.in (LIBSDL): New variable.
27698 (enable_grub_emu_sdl): Likewise.
27699 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
27700 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
27701 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
27702 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
27703 * util/sdl.c: New file.
27704
277052010-02-06 Colin D Bennett <colin@gibibit.com>
277062010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27707
27708 Double buffering support.
27709
27710 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
27711 * include/grub/video.h: Update comment.
27712 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
27713 New type.
27714 (grub_video_fb_doublebuf_blit_init): New prototype.
27715 * term/gfxterm.c (scroll_up): Support double buffering.
27716 (grub_gfxterm_refresh): Likewise.
27717 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
27718 (grub_video_fb_doublebuf_blit_init): Likewise.
27719 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
27720 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
27721 'displayed_page', 'render_page' and 'update_screen'.
27722 (grub_video_vbe_fini): Free offscreen buffer.
27723 (doublebuf_pageflipping_commit): New function.
27724 (doublebuf_pageflipping_update_screen): Likewise.
27725 (doublebuf_pageflipping_init): Likewise.
27726 (double_buffering_init): Likewise.
27727 (grub_video_vbe_setup): Enable doublebuffering.
27728 (grub_video_vbe_swap_buffers): Implement.
27729 (grub_video_vbe_set_active_render_target): Handle double buffering.
27730 (grub_video_vbe_get_active_render_target): Likewise.
27731 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
27732 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
27733 (grub_video_vbe_enable_double_buffering): Likewise.
27734 (grub_video_vbe_swap_buffers): Use update_screen.
27735 (grub_video_set_mode): Use double buffering.
27736
277372010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27738
27739 * maintainance/gentrigtables.py: Remove.
27740 * lib/trig.c: Likewise.
27741
27742 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
27743
27744 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
27745 `trigtables.c'.
27746 (trigtables.c): New rule.
27747 (gentrigtables): Likewise.
27748 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
27749
277502010-02-06 Robert Millan <rmh.grub@aybabtu.com>
27751
27752 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
27753 integer constants.
27754
277552010-02-06 Colin D Bennet <colin@gibibit.com>
27756
27757 Trigonometry support.
27758
27759 * include/grub/trig.h: New file.
27760 * lib/trig.c: Likewise.
27761 * maintainance/gentrigtables.py: Likewise.
27762 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
27763 (trig_mod_SOURCES): New variable.
27764 (trig_mod_CFLAGS): Likewise.
27765 (trig_mod_LDFLAGS): Likewise.
27766
5562834e
VS
277672010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27768
27769 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
27770 disk devices.
27771
4f8528fc
VS
277722010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
27773
27774 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
27775 error.
27776
2b4068e9
VS
277772010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27778
27779 * util/hostdisk.c (open_device): Don't use partition device when reading
27780 before the partition.
27781 (grub_util_biosdisk_read): Don't read from partition and before the
27782 partition in single operation.
27783 (grub_util_biosdisk_write): Don't write to partition and before the
27784 partition in single operation.
27785
399f6e4d
TL
277862010-02-03 Torsten Landschoff <torsten@debian.org>
27787
27788 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27789 last sectors.
27790
996649b0
VS
277912010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
27792
27793 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
27794 CDROM reads.
27795 (grub_biosdisk_write): Refuse to write to CDROM.
27796
3b205d4d
VS
277972010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27798
27799 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
27800
61e89d9d
VS
278012010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
27802
27803 * font/font.c (find_glyph): Check that bmp_idx is available before
27804 using it.
27805 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
27806 with (font == NULL).
27807
bf7fcba2
CS
278082010-01-28 Christian Schmitt <chris@ilovelinux.de>
27809
27810 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
27811
f45d2663
BC
278122010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
27813
27814 * include/grub/script_sh.h (sourcecode): Add const qualifier.
27815 * util/grub-script-check.c (getline): Fix empty lines case.
27816
ec1444e6
RM
278172010-01-28 Robert Millan <rmh.grub@aybabtu.com>
27818
27819 * Makefile.in (check): Exit with fail status when one of the tests
27820 fails.
27821 * tests/example_functional_test.c (example_test): Fix reversed assert.
27822 * tests/example_unit_test.c (example_test): Likewise.
27823
2e1cb9bb
CW
278242010-01-28 Colin Watson <cjwatson@ubuntu.com>
27825
27826 * util/grub.d/10_linux.in: This script does not use any of the
27827 contents of gettext.sh, only the external command `gettext', so stop
27828 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
27829 the same prefix as GRUB.)
27830 * util/grub.d/10_kfreebsd.in: Likewise.
27831
63533ab0
VS
278322010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27833
27834 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
27835 of the line.
27836
989e1f93
VS
278372010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27838
27839 * kern/disk.c (grub_disk_read): Fix offset computation when reading
27840 last sectors.
27841
e709ebe2
VS
278422010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
27843
27844 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
27845 having a 4KiB and not 32KiB buffer size.
27846
27dea7ed
RM
278472010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27848
27849 * util/hostfs.c: Include `<errno.h>'.
27850 (grub_hostfs_read): Handle errors from fseeko() and fread().
27851
67667b9c
RM
278522010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27853
27854 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
27855 loop when using read hooks on files whose size isn't sector-aligned.
27856
c294d9d8
RM
278572010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27858
27859 Remove unused parameter.
27860
27861 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
27862 (grub_iso9660_open): Remove initialization of `data->length'.
27863
af75a9f1
RM
278642010-01-27 Robert Millan <rmh.grub@aybabtu.com>
27865
27866 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
27867 memleak conditions.
27868
254e2ce5 278692010-01-27 Carles Pina i Estany <carles@pina.cat>
27870
27871 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
27872 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
27873
b510928c 278742010-01-26 Carles Pina i Estany <carles@pina.cat>
27875
27876 * util/bin2h.c (usage): Fix warning (space after backslash).
27877
aa2f9dd2 278782010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 27879
27880 * font/font.c: Include `grub/fontformat.h.
27881 Remove font file format constants.
27882 (grub_font_load): Use the new macros.
27883 * include/grub/fontformat.h: New file.
27884 * util/grub-mkfont.c: Include `grub/fontformat.c'.
27885 (write_font_pf2): Use the new macros.
27886
94e7e712
RM
278872010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27888
27889 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
27890 does.
27891
3973a59a
RM
278922010-01-26 Robert Millan <rmh.grub@aybabtu.com>
27893
27894 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
27895
27896 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
27897 (_start): Macroify `0x7F'.
27898
27899 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
27900 (make_install_device): Use "(pxe)" as fallback prefix when booting
27901 via PXE.
27902
42e0cba3
GS
279032010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
27904
27905 * configure.ac: Reset LIBS after check for libgcc symbols.
27906
847effd8
CW
279072010-01-25 Colin Watson <cjwatson@ubuntu.com>
27908
27909 * util/hostdisk.c (open_device): Add trailing newline to debug
27910 message.
27911
ea4a7e35
GS
279122010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
27913
27914 * configure.ac: Check for `limits.h'.
27915 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
27916
67951a53
RM
279172010-01-24 Robert Millan <rmh.grub@aybabtu.com>
27918
27919 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
27920 capitalize error strings.
27921
c273d4ce
ST
279222010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
27923
27924 * util/grub.d/10_hurd.in: Add a recovery mode.
27925
69be5b74
VS
279262010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
27927
27928 * configure.ac: Check for libgcc symbols with -nostdlib.
27929
fc9e5810
BC
279302010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
27931
27932 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
27933
4b358c0a
VS
279342010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27935
27936 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
27937 stack since heap may be unavailable at that point.
27938 (grub_ofconsole_gotoxy): Likewise.
27939
454fcd1c
VS
279402010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27941
27942 * configure.ac: Check for _restgpr_14_x.
27943 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
27944 and _savegpr_* prototypes.
27945
566863ca
RM
279462010-01-22 Robert Millan <rmh.grub@aybabtu.com>
27947
27948 Use generic grub_reboot() for i386-efi.
27949
27950 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
27951 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
27952 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
27953
bf86e59a
VS
279542010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
27955
27956 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
27957 presence of "prefix" variable as it breaks when normal.mod is
27958 embedded.
27959
d645e0f8
VS
279602010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27961
27962 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
27963 stack since heap is unavailable at that point.
27964
f9ab2e25
VS
279652010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27966
27967 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
27968 (grub_freebsd_bootinfo): Rewritten.
27969 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
27970
01fc7054
VS
279712010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
27972
27973 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
27974
caab4fd6
RM
279752010-01-21 Robert Millan <rmh.grub@aybabtu.com>
27976
27977 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
27978 domain now.
27979
67eb1427
FZ
279802010-01-20 Felix Zielcke <fzielcke@z-51.de>
27981
27982 * util/misc.c (make_system_path_relative_to_its_root): Change the work
27983 around for handling "/" to the correct fix. Fix a memory leak. Use
27984 xstrdup instead of strdup.
27985
a9ed4ff3
VS
279862010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
27987
27988 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
27989
279902010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
27991
27992 Optimise glyph lookup by Basic Multilingual Plane lookup array.
27993
27994 * font/font.c (struct grub_font): New member 'bmp_idx'.
27995 (font_init): Initialise 'bmp_idx'.
27996 (load_font_index): Fill 'bmp_idx'.
27997 (find_glyph): Make inline. Use bmp_idx for BMP characters.
27998
48209f4f
VS
279992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28000
28001 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
28002 unnecessary calls.
28003
9f0a4bb7
VS
280042010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28005
28006 Move context handling out of the kernel.
28007
28008 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
28009 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
28010 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
28011 * conf/i386-efi.rmk: Likewise.
28012 * conf/i386-ieee1275.rmk: Likewise.
28013 * conf/i386-pc.rmk: Likewise.
28014 * conf/powerpc-ieee1275.rmk: Likewise.
28015 * conf/sparc64-ieee1275.rmk: Likewise.
28016 * conf/x86_64-efi.rmk: Likewise.
28017 * include/grub/env.h: Include grub/menu.h.
28018 (grub_env_var_type): Removed.
28019 (grub_env_var): Replaced field 'type' with 'global'.
28020 (grub_env_find): New prototype.
28021 (grub_env_context_open): Remove EXPORT_FUNC.
28022 (grub_env_context_close): Likewise.
28023 (grub_env_export): Likewise.
28024 (grub_env_set_data_slot): Removed.
28025 (grub_env_get_data_slot): Likewise.
28026 (grub_env_unset_data_slot): Likewise.
28027 (grub_env_unset_menu): New prototype.
28028 (grub_env_set_menu): Likewise.
28029 (grub_env_get_menu): Likewise.
28030 * include/grub/env_private.h: New file.
28031 * include/grub/normal.h (grub_context_init): New prototype.
28032 (grub_context_fini): Likewise.
28033 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
28034 * normal/context.c (grub_cmd_export): ... to here.
28035 * kern/env.c: Include env_private.h.
28036 (HASHSZ): Moved to include/grub/env_private.h.
28037 (grub_env_context): Likewise.
28038 (grub_env_sorted_var): Likewise.
28039 (current_context): Renamed from this ...
28040 (grub_current_context): ...to this. 'static' removed. All users updated.
28041 (grub_env_find): Removed 'static'.
28042 (grub_env_context_open): Moved to normal/context.c.
28043 (grub_env_context_close): Likewise.
28044 (grub_env_export): Likewise.
28045 (mangle_data_slot_name): Removed.
28046 (grub_env_set_data_slot): Likewise.
28047 (grub_env_get_data_slot): Likewise.
28048 (grub_env_unset_data_slot): Likewise.
28049 * kern/main.c (grub_set_root_dev): Don't export root.
28050 It will be done later.
28051 (grub_main): Don't export prefix.
28052 It will be done later.
28053 * normal/context.c: New file.
28054 * normal/main.c (free_menu): Use grub_env_unset_menu.
28055 (grub_normal_add_menu_entry): Use grub_env_get_menu.
28056 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
28057 (GRUB_MOD_INIT(normal)): Call grub_context_init.
28058 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
28059
8dd35b8c
VS
280602010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28061
28062 setpci support.
28063
28064 * commands/setpci.c: New file.
28065 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
28066 (setpci_mod_SOURCES): New variable.
28067 (setpci_mod_CFLAGS): Likewise.
28068 (setpci_mod_LDFLAGS): Likewise.
28069
449193d5
VS
280702010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28071
28072 Byte-addressable PCI configuration space.
28073
28074 * bus/pci.c (grub_pci_make_address): Use byte address instead of
28075 dword address.
28076 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
28077 GRUB_PCI_REG_CACHELINE.
28078 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
28079 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
28080 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
28081 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
28082 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
28083 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
28084 grub_pci_make_address.
28085 (lock_rom_area): Likewise.
28086 * commands/lspci.c (grub_lspci_iter): Use macroses
28087 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
28088 of grub_pci_make_address.
28089 * disk/ata.c (grub_ata_pciinit): Likewise.
28090 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
28091 (GRUB_PCI_REG_VENDOR): Likewise.
28092 (GRUB_PCI_REG_DEVICE): Likewise.
28093 (GRUB_PCI_REG_COMMAND): Likewise.
28094 (GRUB_PCI_REG_STATUS): Likewise.
28095 (GRUB_PCI_REG_REVISION): Likewise.
28096 (GRUB_PCI_REG_CLASS): Likewise.
28097 (GRUB_PCI_REG_CACHELINE): Likewise.
28098 (GRUB_PCI_REG_LAT_TIMER): Likewise.
28099 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
28100 (GRUB_PCI_REG_BIST): Likewise.
28101 (GRUB_PCI_REG_ADDRESSES): Likewise.
28102 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28103 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28104 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28105 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28106 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28107 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
28108 (GRUB_PCI_REG_CIS_POINTER): Likewise.
28109 (GRUB_PCI_REG_SUBVENDOR): Likewise.
28110 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
28111 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
28112 (GRUB_PCI_REG_CAP_POINTER): Likewise.
28113 (GRUB_PCI_REG_IRQ_LINE): Likewise.
28114 (GRUB_PCI_REG_IRQ_PIN): Likewise.
28115 (GRUB_PCI_REG_MIN_GNT): Likewise.
28116 (GRUB_PCI_REG_MAX_LAT): Likewise.
28117 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
28118 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
28119 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 28120 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
28121 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
28122 space.
28123
96d73208
RM
281242010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28125
28126 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
28127 can be reliably determined to be supported.
28128
d4484482
RM
281292010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28130
28131 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
28132 that VESA is supported.
28133 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
28134 supported.
28135
00308ecf
VS
281362010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28137
28138 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
28139
f66924a4
RM
281402010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28141
28142 * util/misc.c (make_system_path_relative_to_its_root): Work around
28143 special-casing of "/", as previous incarnation of this routine did.
28144
cbca0ada
VS
281452010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28146
28147 Fix any-emu compilation.
28148
28149 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
28150 * grub_bin2h_SOURCES: New variable.
28151
34a66d99
RM
281522010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28153
28154 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
28155
94fabf58
RM
281562010-01-20 Robert Millan <rmh.grub@aybabtu.com>
28157
28158 * util/grub.d/00_header.in: Fix handling of locale_dir.
28159
02cf98ca
VS
281602010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28161
28162 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
28163 as possible unifont location (Gentoo).
28164 Reported by: Alexander Brüning
28165
327dbcd7
VS
281662010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28167
28168 Don't try to generate lists for kernel.img.
28169
28170 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
28171 (pkglib_MODULES): Remove kernel.img.
28172 (kernel_img_EXPORTS): Removed.
28173 (kernel_img_RELOCATABLE): New variable.
28174 * conf/x86_64-efi.rmk: Likewise.
28175 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
28176
ca467290
VS
281772010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28178
28179 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
28180 grub_xasprintf or grub_snprintf.
28181 (grub_vsprintf): Likewise.
28182 (grub_snprintf): New proto.
28183 (grub_vsnprintf): Likewise.
28184 (grub_xasprintf): Likewise.
28185 (grub_xvasprintf): Likewise.
28186 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
28187 (grub_sprintf): Removed.
28188 (grub_vsnprintf): New function.
28189 (grub_snprintf): Likewise.
28190 (grub_xvasprintf): Likewise.
28191 (grub_xasprintf): Likewise.
28192 (grub_vsprintf): Renamed to ...
28193 (grub_vsnprintf_real): ...this. New argument max_len.
28194
aca655fd
BC
281952010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
28196
28197 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
28198 fix grub-script-check warning.
28199
7ee92c32
VS
282002010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28201
28202 * include/grub/font.h (grub_font_load): Fix prototype.
28203
f80927ca
VS
282042010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28205
28206 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
28207
119c50ea
VS
282082010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28209
28210 * include/grub/x86_64/at_keyboard.h: New file.
28211
47d5f3c1
VS
282122010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28213
28214 * loader/mips/linux.c: Include missing grub/i18n.h.
28215
55ff5266
RM
282162009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28217
28218 * normal/menu.c (notify_execution_failure): Clarify error message.
28219
c893cc87
RM
282202009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28221
28222 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
28223 return value (and revert all return statements). Update users.
28224
917dd370
CW
282252010-01-20 Dan Merillat <debian@dan.merillat.org>
28226
28227 * kern/device.c (grub_device_iterate): Allocate new part_ent
28228 structure based on sizeof (*p) rather than sizeof (p->next), to
28229 account for structure padding.
28230
28231 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
28232 disk is NULL, which might happen for LVM physical volumes with no
28233 LVM signature.
28234
d4a4ee57
RM
282352009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28236
28237 * loader/mips/linux.c (grub_cmd_initrd)
28238 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
28239
282402009-12-20 Robert Millan <rmh.grub@aybabtu.com>
28241
28242 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
28243 (grub_video_video_init, grub_video_bitmap_init)
28244 (grub_font_manager_init, grub_term_gfxterm_init)
28245 (grub_at_keyboard_init): New extern declarations.
28246 (grub_machine_init): Initialize gfxterm and at_keyboard.
28247
28248 * kern/main.c (grub_main): Revert grub_printf delay kludge.
28249
28250 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
28251 `gfxterm.mod' into core image.
28252
28253 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28254 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28255 (kernel_img_FORMAT): Copy to ...
28256
28257 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28258 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28259 (kernel_img_FORMAT): ... here, and ...
28260
28261 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
28262 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
28263 (kernel_img_FORMAT): ... here.
28264
28265 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
28266 and input (at_keyboard) terminals in kernel.
28267 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
28268
28269 (pkglib_MODULES): Remove `pci.mod'.
28270 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
28271 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
28272 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
28273 (at_keyboard_mod_LDFLAGS): Remove variables.
28274
282752010-01-11 Felix Zielcke <fzielcke@z-51.de>
28276
28277 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
28278
282792009-12-10 Robert Millan <rmh.grub@aybabtu.com>
28280
28281 * include/grub/mips/libgcc.h: Only export symbols for functions
28282 that libgcc provides.
28283
282842009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
28285
28286 MIPS support.
28287
28288 * bus/bonito.c: New file.
28289 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
28290 GRUB_PCI_NUM_DEVICES.
28291 * term/i386/pc/serial.c: Move to ...
28292 * term/serial.c: ... here. All users updated.
28293 * util/i386/pc/grub-mkimage.c: Move to ...
28294 * util/grub-mkrawimage.c: ... here. All users updated.
28295 * term/i386/pc/at_keyboard.c: Move to ...
28296 * term/at_keyboard.c: ... here. All users updated.
28297 * conf/mips-qemu-mips.rmk: New file.
28298 * conf/mips-yeeloong.rmk: Likewise.
28299 * conf/mips.rmk: Likewise.
28300 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
28301 mipsel-qemu-mips.
28302 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
28303 to port addresses.
28304 (grub_ata_pciinit): Support CS5536.
28305 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
28306 * font/font_cmd.c (loadfont_command): Open file before passing it to
28307 grub_font_load.
28308 (pseudo_file_read): New function.
28309 (pseudo_file_close): Likewise.
28310 (pseudo_fs): New structure.
28311 (load_font_module): New function.
28312 (GRUB_MOD_INIT(font_manager)): Load embedded font.
28313 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
28314 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
28315 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
28316 * include/grub/i386/at_keyboard.h: Split into ...
28317 * include/grub/at_keyboard.h: ... this ...
28318 * include/grub/i386/at_keyboard.h: ... and this.
28319 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
28320 New prototype.
28321 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
28322 updated.
28323 (grub_elf64_size): Likewise.
28324 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
28325 filename.
28326 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
28327 * include/grub/i386/coreboot/serial.h: Rewritten.
28328 * include/grub/i386/ieee1275/serial.h: Include
28329 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
28330 * include/grub/i386/pc/serial.h: Moved from here ...
28331 * include/grub/serial.h: ... to here. All users updated.
28332 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
28333 (GRUB_PCI_NUM_BUS): Likewise.
28334 (GRUB_PCI_NUM_DEVICES): Likewise.
28335 (grub_pci_device_map_range): Add missing volatile keyword.
28336 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
28337 * include/grub/mips/at_keyboard.h: New file.
28338 * include/grub/mips/cache.h: Likewise.
28339 * include/grub/mips/io.h: Likewise.
28340 * include/grub/mips/kernel.h: Likewise.
28341 * include/grub/mips/libgcc.h: Likewise.
28342 * include/grub/mips/pci.h: Likewise.
28343 * include/grub/mips/qemu-mips/boot.h: Likewise.
28344 * include/grub/mips/qemu-mips/kernel.h: Likewise.
28345 * include/grub/mips/qemu-mips/loader.h: Likewise.
28346 * include/grub/mips/qemu-mips/memory.h: Likewise.
28347 * include/grub/mips/qemu-mips/serial.h: Likewise.
28348 * include/grub/mips/qemu-mips/time.h: Likewise.
28349 * include/grub/mips/relocator.h: Likewise.
28350 * include/grub/mips/time.h: Likewise.
28351 * include/grub/mips/types.h: Likewise.
28352 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
28353 * include/grub/mips/yeeloong/boot.h: Likewise.
28354 * include/grub/mips/yeeloong/kernel.h: Likewise.
28355 * include/grub/mips/yeeloong/loader.h: Likewise.
28356 * include/grub/mips/yeeloong/memory.h: Likewise.
28357 * include/grub/mips/yeeloong/pci.h: Likewise.
28358 * include/grub/mips/yeeloong/serial.h: Likewise.
28359 * include/grub/mips/yeeloong/time.h: Likewise.
28360 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
28361 * kern/elf.c (grub_elf32_size): New parameter. All users
28362 updated.
28363 (grub_elf64_size): Likewise.
28364 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
28365 Load modules before saying "Welcome to GRUB!".
28366 Call grub_refresh after saying "Welcome to GRUB!".
28367 * kern/mips/cache.S: New file.
28368 * kern/mips/cache_flush.S: Likewise.
28369 * kern/mips/dl.c: Likewise.
28370 * kern/mips/init.c: Likewise.
28371 * kern/mips/qemu-mips/init.c: Likewise.
28372 * kern/mips/startup.S: Likewise.
28373 * kern/mips/yeeloong/init.c: Likewise.
28374 * kern/term.c (grub_putcode): Handle NULL terminal.
28375 (grub_getcharwidth): Likewise.
28376 (grub_getkey): Likewise.
28377 (grub_checkkey): Likewise.
28378 (grub_getkeystatus): Likewise.
28379 (grub_getxy): Likewise.
28380 (grub_getwh): Likewise.
28381 (grub_gotoxy): Likewise.
28382 (grub_cls): Likewise.
28383 (grub_setcolorstate): Likewise.
28384 (grub_setcolor): Likewise.
28385 (grub_getcolor): Likewise.
28386 (grub_refresh): Likewise.
28387 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
28388 (write_jump): Add hatch nop.
28389 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
28390 * lib/mips/setjmp.S: New file.
28391 * loader/mips/linux.c: Likewise.
28392 * term/i386/pc/at_keyboard.c: Move from here ...
28393 * term/at_keyboard.c: ... to here.
28394 * term/i386/pc/serial.c: Moved from here ...
28395 * term/serial.c: ... to here. All users updated.
28396 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
28397 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
28398 (serial_translate_key_sequence): Avoid deadlock.
28399 (grub_serial_getkey): Handle backspace.
28400 (grub_serial_putchar): Fix newline handling.
28401 * util/i386/pc/grub-mkimage.c: Move from here ...
28402 * util/grub-mkrawimage.c: ... to here. All users updated.
28403 (generate_image): New parameters 'font_path' and 'format'.
28404 Support embedding font.
28405 Use grub_host_to_target* instead of grub_cpu_to_le*.
28406 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
28407 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
28408 (options): New option "--font".
28409 (usage): Likewise.
28410 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
28411 (main): Handle "--font".
28412 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
28413 (grub_virtual_screen_setup): Set bg_color_display.
28414 (redraw_screen_rect): Use bg_color_display instead of incorrect
28415 bg_color.
28416 (grub_gfxterm_cls): Likewise.
28417 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
28418 Support embedding config file.
28419 (add_segments): Likewise.
28420 (options): New option "--config".
28421 (main): Handle "--config".
28422 * video/sm712.c: New file.
28423
25c2b5b3
RM
284242010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28425
28426 Fix parallel builds.
28427
28428 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
28429 font.c depend on ascii.h).
28430
284312010-01-12 Carles Pina i Estany <carles@pina.cat>
28432
28433 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
28434
284352010-01-11 Carles Pina i Estany <carles@pina.cat>
28436
28437 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
28438 By default: disabled.
28439 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
28440 parameter.
28441
284422010-01-10 Carles Pina i Estany <carles@pina.cat>
28443
28444 * font/font.c: Update copyright years.
28445 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
28446
284472010-01-10 Carles Pina i Estany <carles@pina.cat>
28448
28449 * font/font.c: Include `ascii.h'.
28450 (ASCII_BITMAP_SIZE): New macro.
28451 (ascii_font_glyph): Define.
28452 (ascii_glyph_lookup): New function.
28453 (grub_font_get_string_width): Change comment. If glyph not found, use
28454 ascii_glyph_lookup.
28455 (grub_font_get_glyph_with_fallback): If glyph not available returns
28456 ascii_glyph_lookup.
28457 * util/grub-mkfont.c (file_formats): New enum.
28458 (options): Add `ascii-bitmaps' new option.
28459 (usage): Add `asii-bitmaps' new option.
28460 (write_font_ascii_bitmap): New function.
28461 (write_font): Rename to ...
28462 (write_font_p2): ... this. Remove print_glyphs call.
28463 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
28464 used. Call print_glyphs.
28465 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
28466
284672010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28468
28469 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
28470 (grub_bin2h_SOURCES): New variable.
28471 * util/bin2h.c: New file.
28472
915fc1b8
VS
284732010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
28474
28475 * include/multiboot.h: Resynced with spec.
28476 * include/multiboot2.h: Likewise.
28477 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
28478 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
28479
9444b678
RM
284802010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28481
28482 * include/grub/term.h (grub_term_register_input,
28483 grub_term_register_output): Check return of terminal init()
28484 routines, and abort if errors are raised.
28485
28486 * commands/terminal.c: Update copyright year.
28487
cba98e8d
RM
284882010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28489
28490 * commands/terminal.c (grub_cmd_terminal_input)
28491 (grub_cmd_terminal_output): Check return of terminal init()
28492 routines, and abort if errors are raised.
28493
6f7db5d6
VS
284942010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28495
28496 * include/grub/i386/bsd.h: Fix include pathes.
28497
262bff8d
VS
284982010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
28499
28500 Add missing *BSD copyright headers.
28501
28502 * include/grub/aout.h: Add BSD licence.
28503 * include/grub/i386/bsd.h: Parts under different licences moved to ...
28504 * include/grub/i386/freebsd_linker.h: ... here,
28505 * include/grub/i386/freebsd_reboot.h: ... here,
28506 * include/grub/i386/netbsd_bootinfo.h: ... here,
28507 * include/grub/i386/netbsd_reboot.h: ... here,
28508 * include/grub/i386/openbsd_bootarg.h: ... here,
28509 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
28510 licence to each file.
28511
b2cab848
RM
285122010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28513
28514 * acinclude.m4: Remove `nop' assembly instruction; it's not
28515 implemented by all architectures.
28516
2cb6be4b
RM
285172010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28518
28519 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
28520 ELILO. This is no longer necessary.
28521
a2eaee15
BC
285222010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
28523
28524 Added new tool, grub-scrit-check to verify grub.cfg syntax.
28525
28526 * util/grub-script-check.c: grub-script-check tool.
28527 * conf/common.rmk: Make rules for grub-script-check.
28528
88d17012
RM
285292010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28530
28531 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
28532 spotting it back in 2008. Shame on me for forgetting he did.
28533
28534 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
28535
8040619d
RM
285362010-01-18 Robert Millan <rmh.grub@aybabtu.com>
28537
28538 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
28539 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
28540 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
28541 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
28542 (GRUB_VIDEO_TYPE_EFI): Rename to ...
28543 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
28544
a0c2a0f6
RM
285452010-01-17 Robert Millan <rmh.grub@aybabtu.com>
28546
28547 * include/grub/test.h: Add license header.
28548 * tests/example_functional_test.c: Likewise.
28549 * tests/example_unit_test.c: Likewise.
28550 * tests/lib/functional_test.c: Likewise.
28551 * tests/lib/test.c: Likewise.
28552 * tests/lib/unit_test.c: Likewise.
28553
b0b13907
VS
285542010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
28555
28556 Use flag-based instead of hook-based video mode selection and "auto"
28557 keyword.
28558
28559 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
28560 (grub_video_set_mode): Changed prototype. All users updated.
28561 (grub_video_check_mode_flag): New inline function.
28562 * video/video.c (parse_modespec): New function.
28563 (grub_video_set_mode): Parse flags and keywords.
28564
ea379330 285652010-01-17 Carles Pina i Estany <carles@pina.cat>
28566
28567 * util/misc.c (grub_util_info): Fix the order of the parameters in a
28568 fprintf call.
28569
e15c215e
FZ
285702010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
28571
28572 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
28573
409ae1c9 285742010-01-16 Carles Pina i Estany <carles@pina.cat>
28575
28576 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
28577 string.
28578 * util/grub-emu.c (usage): Likewise.
28579 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
28580 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28581 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28582 * util/i386/pc/grub-setup.c (usage): Likewise.
28583
70a14d3d 285842010-01-16 Carles Pina i Estany <carles@pina.cat>
28585
28586 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
28587 the message.
28588 (grub_util_info): Likewise.
28589 (grub_util_error): Likewise.
28590 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
28591 and/or new lines in `grub_util_warna', `grub_util_info',
28592 `grub_util_error' calls.
28593 * util/getroot.c: Likewise.
28594 * util/grub-editenv.c: Likewise.
28595 * util/grub-emu.c: Likewise.
28596 * util/grub-fstest.c: Likewise.
28597 * util/grub-mkdevicemap.c: Likewise.
28598 * util/grub-mkfont.c: Likewise.
28599 * util/grub-mkpasswd-pbkdf2.c: Likewise.
28600 * util/grub-mkrelpath.c: Likewise.
28601 * util/grub-pe2elf.c: Likewise.
28602 * util/grub-probe.c: Likewise.
28603 * util/hostdisk.c: Likewise.
28604 * util/i386/efi/grub-mkimage.c: Likewise.
28605 * util/i386/pc/grub-mkimage.c: Likewise.
28606 * util/i386/pc/grub-setup.c: Likewise.
28607 * util/ieee1275/ofpath.c: Likewise.
28608 * util/mkisofs/eltorito.c: Likewise.
28609 * util/mkisofs/rock.c: Likewise.
28610 * util/mkisofs/write.c: Likewise.
28611 * util/raid.c: Likewise.
28612 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
28613 * util/sparc64/ieee1275/grub-setup.c: Likewise.
28614
a0b766fc
VS
286152010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28616
28617 Enable multiboot on non-pc.
28618
28619 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
28620 multiboot.mod and multiboot2.mod to ...
28621 * conf/i386.rmk (pkglib_MODULES): ... here.
28622 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
28623 Moved to ...
28624 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
28625 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
28626 Moved to ...
28627 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
28628 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
28629 Moved to ...
28630 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
28631 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
28632 Moved to ...
28633 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
28634 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
28635 relocator.mod.
28636 (ata_mod_SOURCES): Removed.
28637 (ata_mod_CFLAGS): Likewise.
28638 (ata_mod_LDFLAGS): Likewise.
28639 (relocator_mod_SOURCES): Removed.
28640 (relocator_mod_CFLAGS): Likewise.
28641 (relocator_mod_ASFLAGS): Likewise.
28642 (relocator_mod_LDFLAGS): Likewise.
28643 Include i386.mk.
28644 * include/grub/x86_64/multiboot.h: New file.
28645 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
28646 Terminate EFI.
28647
884ade56
VS
286482010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28649
28650 Video multiboot support.
28651
28652 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
28653 New prototype.
28654 * include/multiboot.h: Resynced with multiboot specification.
28655 * include/multiboot2.h: Likewise.
28656 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
28657 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
28658 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
28659 (HAS_VGA_TEXT): Likewise.
28660 (accepts_video): New variable.
28661 (grub_multiboot_set_accepts_video): New function.
28662 (grub_multiboot_get_mbi_size): Account for video structures.
28663 (set_video_mode): New function.
28664 (retrieve_video_parameters): Likewise.
28665 (grub_multiboot_make_mbi): Fill video fields.
28666
0d90e8a6
VS
286672010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
28668
28669 Video driver ids.
28670
28671 * include/grub/video.h (grub_video_driver_id): New type.
28672 (grub_video_adapter): New member 'id'. All users updated.
28673 (grub_video_get_driver_id): New proto.
28674 * video/video.c (grub_video_get_driver_id): New function.
28675
5c71db1b 286762010-01-14 Carles Pina i Estany <carles@pina.cat>
28677
28678 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
28679 `var=val'.
28680
cca15b52 286812010-01-14 Carles Pina i Estany <carles@pina.cat>
28682
28683 * normal/cmdline.c (print_completion): Gettextizze.
28684
c586fbb2 286852001-01-14 Carles Pina i Estany <carles@pina.cat>
28686
28687 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
28688
ba2f6848 286892010-01-14 Carles Pina i Estany <carles@pina.cat>
28690
28691 * gettext/gettext.c (grub_gettext_translate): Push and pop
28692 grub_errno.
28693 (grub_gettext_delete_list): Change comment style.
28694 * kern/err.c (grub_error): Gettextizze.
28695 (grub_fatal): Gettextizze.
28696
0a46429a
RM
286972010-01-14 Robert Millan <rmh.grub@aybabtu.com>
28698
28699 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
28700 (grub_linux16_real_boot): ... this.
28701 * kern/i386/loader.S: Likewise.
28702 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
28703 (grub_linux16_boot): New function. Switches to text mode and calls
28704 grub_linux16_real_boot().
28705
28706 * loader/i386/bsd.c: Include `<grub/video.h>'.
28707 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
28708 text mode before calling grub_unix_real_boot().
28709
28710 * loader/i386/multiboot.c: Include `<grub/video.h>'.
28711 (grub_multiboot_boot): Switch to text mode before calling
28712 grub_relocator32_boot().
28713
28714 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
28715 (grub_chainloader_boot): Switch to text mode before calling
28716 grub_chainloader_real_boot().
28717
d6f93a66
RM
287182010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
287192010-01-05 Colin Watson <cjwatson@ubuntu.com>
28720
28721 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
28722 non-empty value.
28723
287242010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
287252010-01-05 Colin Watson <cjwatson@ubuntu.com>
28726
28727 * util/grub.d/00_header.in: Define a "savedefault" function for use
28728 in menu entries.
28729 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
28730
287312010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
287322010-01-05 Colin Watson <cjwatson@ubuntu.com>
28733
28734 * util/grub-mkconfig_lib.in (save_default_entry): Only set
28735 saved_entry if boot_once is unset.
28736 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
28737 previous saved entry (i.e. grub-reboot).
28738
287392009-12-08 Colin Watson <cjwatson@ubuntu.com>
28740
28741 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
28742
287432009-12-08 Colin Watson <cjwatson@ubuntu.com>
28744
28745 * util/grub.d/00_header.in: Use `set var=val' rather than plain
28746 `var=val'.
28747 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
28748
287492009-12-08 Colin Watson <cjwatson@ubuntu.com>
28750
28751 * util/grub-reboot.in: Fix --version output.
28752 * util/grub-set-default.in: Likewise.
28753
287542009-12-08 Colin Watson <cjwatson@ubuntu.com>
28755
28756 * util/grub.d/00_header.in: Silently ignore zero-sized environment
28757 blocks.
28758
287592009-12-08 Colin Watson <cjwatson@ubuntu.com>
28760
28761 * util/grub.d/00_header.in: Quote the value assigned to `default',
28762 in case it contains spaces.
28763
287642009-12-08 Colin Watson <cjwatson@ubuntu.com>
28765
28766 * util/grub.d/30_os-prober.in: Fix merge error that moved a
28767 `save_default_entry' call from the macosx case to the linux case.
28768
287692009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
287702009-10-25 Colin Watson <cjwatson@ubuntu.com>
28771
28772 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
28773 in `chosen' environment variable.
28774 * normal/menu_text.c (get_entry_number): Check if the variable
28775 matches the title of a menu entry.
28776 (run_menu): Pass menu to get_entry_number.
28777
28778 * util/grub-reboot.in: New file.
28779 * util/grub-set-default.in: New file.
28780 * conf/common.rmk (grub-reboot): New utility.
28781 (grub-set-default): New utility.
28782
28783 * util/grub-mkconfig_lib.in (save_default_entry): New function.
28784 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
28785 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
28786 move it to `saved_entry' for the next boot. Load environment on
28787 initialisation.
28788 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
28789 * util/grub.d/10_hurd.in: Likewise.
28790 * util/grub.d/10_linux.in (linux_entry): Likewise.
28791 * util/grub.d/10_windows.in: Likewise.
28792 * util/grub.d/30_os-prober.in: Likewise.
28793
28794 * util/grub-install.in: Create environment block.
28795 * util/i386/efi/grub-install.in: Likewise.
28796 * util/ieee1275/grub-install.in: Likewise.
28797 * util/sparc64/ieee1275/grub-install.in: Likewise.
28798
0934d184
BC
287992010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
28800
28801 Unit testing framework for GRUB.
28802
28803 * Makefile.in: Test framework build rules for 'make check'.
28804 * conf/tests.rmk: Build rules for individual tests and framework.
28805
28806 * include/grub/test.h: Header file for whitebox tests.
28807 * tests/lib/functional_test.c: Framework support for whitebox
28808 functional tests.
28809 * tests/lib/test.c: Common whitebox testing code for unit and
28810 functional tests.
28811 * tests/lib/unit_test.c: Framework support for whitebox unit
28812 tests.
28813
28814 * tests/util/grub-shell-tester.in: Support utility for grub-script
28815 tests.
28816 * tests/util/grub-shell.in: Utility to execute grub-script
28817 commands in a Qemu instance.
28818
28819 * tests/example_functional_test.c: Example whitebox functional
28820 test.
28821 * tests/example_grub_script_test.in: Example grub-script test.
28822 * tests/example_scripted_test.in: Example scripted test.
28823 * tests/example_unit_test.c: Example whitebox unit test.
28824
9c4ffeeb
VS
288252010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
28826
28827 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
28828 Add loader/i386/multiboot_mbi.c.
28829 (multiboot2_mod_SOURCES): Likewise.
28830 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
28831 (multiboot2_mod_SOURCES): Likewise.
28832 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
28833 (grub_multiboot_make_mbi): Likewise.
28834 (grub_multiboot_free_mbi): Likewise.
28835 (grub_multiboot_init_mbi): Likewise.
28836 (grub_multiboot_add_module): Likewise.
28837 (grub_multiboot_set_bootdev): Likewise.
28838 * loader/i386/multiboot.c (mbi): Removed.
28839 (mbi_dest): Likewise.
28840 (alloc_mbi): New variable.
28841 (grub_multiboot_payload_size): Removed. All users updated.
28842 (grub_multiboot_pure_size): New variable.
28843 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
28844 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
28845 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
28846 (grub_fill_multiboot_mmap): Likewise.
28847 (grub_multiboot_get_bootdev): Likewise.
28848 (grub_multiboot): Use multiboot_mbi functions.
28849 * loader/i386/multiboot_mbi.c: New file.
28850
17383dfe
VS
288512010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28852
28853 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
28854 it would result in module crash.
28855
c1f28820
VS
288562010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
28857
28858 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
28859 (grub_ofconsole_getwh): Split to ...
28860 (grub_ofconsole_getwh): ... this.
28861 (grub_ofconsole_dimensions): ...and this.
28862 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
28863
58655a16
RM
288642010-01-13 Robert Millan <rmh.grub@aybabtu.com>
28865
28866 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
28867
10891398
VS
288682010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28869
28870 * loader/i386/pc/multiboot2.c: Removed stalled file.
28871
0b8a223c
VS
288722010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
28873
28874 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
28875 Reported by: Grégoire Sutre
28876
92ab12b0
RM
288772010-01-11 Robert Millan <rmh.grub@aybabtu.com>
28878
28879 * util/misc.c (canonicalize_file_name): New function.
28880 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
28881 instead of realpath().
28882
a788afb6
CW
288832010-01-11 Colin Watson <cjwatson@ubuntu.com>
28884
28885 * util/grub-install.in (usage): Clarify meaning of --root-directory,
28886 and make it clearer that it's optional. Based on confusion
28887 witnessed on IRC.
28888
ffa8e3d2
VS
288892010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28890
28891 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
28892 in premature implicit newline.
28893
e9060a9d
VS
288942010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
28895
28896 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
28897 which resulted in garbled command line at the end of screen.
28898
f0d0c0b7
RM
288992010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28900
28901 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
28902 initialization with similar approach as with other Linux loaders.
28903
0e60bae7
RM
289042010-01-10 Robert Millan <rmh.grub@aybabtu.com>
28905
28906 Fix i386-ieee1275 build.
28907
28908 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
28909 and grub_term_height() for video_{width,height} initialization.
28910
289112010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
28912
28913 Fix grub-emu build.
28914
28915 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
28916
cdb3f378
RM
289172010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
289182010-01-09 Robert Millan <rmh.grub@aybabtu.com>
28919
28920 Support for multiple terminals.
28921
28922 * Makefile.in (pkglib_DATA): terminal.lst.
28923 (terminal.lst): New target.
28924 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
28925 (GRUB_MOD_INIT(handler)): Likewise.
28926 (GRUB_MOD_FINI(handler)): Likewise.
28927 * commands/help.c (grub_cmd_help): Handle multiple terminals.
28928 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
28929 * commands/sleep.c (do_print): Use grub_term_restore_pos.
28930 (grub_cmd_sleep): Use grub_term_save_pos.
28931 * commands/terminal.c: New file.
28932 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
28933 commands/terminal.c and lib/charset.c.
28934 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
28935 (pkglib_MODULES): Add terminal.mod.
28936 (terminal_mod_SOURCES): New variable.
28937 (terminal_mod_CFLAGS): Likewise.
28938 (terminal_mod_LDFLAGS): Likewise.
28939 * genhandlerlist.sh: Don't handle terminals.
28940 * genmk.rb: Generate terminal-*.lst.
28941 * genterminallist.sh: New file.
28942 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
28943 (grub_is_valid_utf8): Likewise.
28944 (grub_utf8_to_ucs4_alloc): Likewise.
28945 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
28946 (grub_menu_register_viewer): Changed argument.
28947 (grub_menu_try_text): New proto.
28948 (grub_gfxmenu_try_hook): New declaration.
28949 * include/grub/normal.h (grub_normal_exit_level): New declaration.
28950 (grub_menu_init_page): Additional argument term.
28951 (grub_normal_init_page): Likewise.
28952 (grub_cmdline_get): Arguments simplified.
28953 (grub_utf8_to_ucs4_alloc): Removed.
28954 (grub_print_ucs4): Additional argument term.
28955 (grub_getstringwidth): Likewise.
28956 (grub_print_message_indented): Likewise.
28957 (grub_menu_text_register_instances): New proto.
28958 (grub_show_menu): Likewise.
28959 (read_terminal_list): Likewise.
28960 (grub_set_more): Likewise.
28961 * include/grub/parser.h: Include handler.h.
28962 * include/grub/reader.h: Rewritten.
28963 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
28964 (GRUB_TERM_WIDTH): Changed to function.
28965 (GRUB_TERM_HEIGHT): Likewise.
28966 (GRUB_TERM_BORDER_WIDTH): Likewise.
28967 (GRUB_TERM_BORDER_HEIGHT): Likewise.
28968 (GRUB_TERM_NUM_ENTRIES): Likewise.
28969 (GRUB_TERM_ENTRY_WIDTH): Likewise.
28970 (GRUB_TERM_CURSOR_X): Likewise.
28971 (grub_term_input_class): Likewise.
28972 (grub_term_output_class): Likewise.
28973 (grub_term_outputs_disabled): New declaration.
28974 (grub_term_inputs_disabled): Likewise.
28975 (grub_term_outputs): Likewise.
28976 (grub_term_inputs): Likewise.
28977 (grub_term_register_input): Rewritten.
28978 (grub_term_register_output): Likewise.
28979 (grub_term_unregister_input): Likewise.
28980 (grub_term_unregister_output): Likewise.
28981 (FOR_ACTIVE_TERM_INPUTS): New macro.
28982 (FOR_DISABLED_TERM_INPUTS): Likewise.
28983 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
28984 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
28985 * include/grub/terminfo.h: Add oterm argument to all protypes.
28986 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
28987 Use grub_rescue_run.
28988 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
28989 All users updated.
28990 * kern/reader.c: Removed. All users updated.
28991 * kern/rescue_reader.c (grub_rescue_init): Removed.
28992 (grub_rescue_reader): Likewise.
28993 (grub_register_rescue_reader): Likewise.
28994 (grub_rescue_run): New function based on kern/reader.c.
28995 * kern/term.c: Adapted for multiterm.
28996 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
28997 (grub_is_valid_utf8): Likewise.
28998 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
28999 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
29000 right terminal.
29001 * loader/i386/linux.c (grub_linux_boot): Likewise.
29002 * normal/auth.c (grub_username_get): New function.
29003 (grub_auth_check_authentication): Use grub_username_get.
29004 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
29005 * normal/color.c: Adapt for multiterm.
29006 * normal/main.c (read_config_file): Don't use grub_reader_loop.
29007 (grub_normal_init_page): Additional argument term.
29008 (read_lists): Call read_terminal_lists.
29009 (grub_enter_normal_mode): Call grub_cmdline_run.
29010 Handle grub_normal_exit_level.
29011 (grub_cmd_normal): Make reentrant.
29012 (grub_cmd_normal_exit): New function.
29013 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
29014 * normal/menu.c: Adapt for multiterm.
29015 * normal/menu_entry.c: Likewise.
29016 * normal/menu_text.c: Likewise.
29017 * normal/menu_viewer.c: Removed. All users updated.
29018 * normal/term.c: New file.
29019 * util/console.c: Change order of includes to workaround a bug in
29020 ncurses headers.
29021 * term/terminfo.c: New argument oterm on all exported functions.
29022 All users updated.
29023 * util/grub-editenv.c (grub_term_input_class): Removed.
29024 (grub_term_output_class): Likewise.
29025
1a064917
RM
290262010-01-09 Robert Millan <rmh.grub@aybabtu.com>
29027
29028 Make loader output a bit more user-friendly.
29029
29030 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
29031 is being loaded. Likewise for the Hurd.
29032
29033 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
29034 that kernel of FreeBSD ${version} is being loaded.
29035
29036 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
29037 grub_dprintf().
29038 (grub_cmd_initrd): Likewise.
29039 * util/grub.d/10_linux.in (linux_entry): Print message indicating
29040 that Linux ${version} is being loaded. Likewise for initrd.
29041
5ce0a83a 290422010-01-09 Carles Pina i Estany <carles@pina.cat>
29043
29044 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
29045
809bbfeb 290462010-01-08 Carles Pina i Estany <carles@pina.cat>
29047
29048 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
29049 (GRUB_MOD_INIT): Gettextizze.
29050 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
29051 (GRUB_MOD_INIT): Gettextizze.
29052 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
29053 (grub_cmd_linux): Capitalise Linux.
29054 (GRUB_MOD_INIT): Gettextizze.
29055 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
29056 (grub_cmd_linux): Capitalise Linux.
29057 (GRUB_MOD_INIT): Gettextizze.
29058 * loader/i386/linux.c: Include `<grub/i18n.h>'.
29059 (grub_cmd_linux): Capitalise Linux.
29060 (GRUB_MOD_INIT): Gettextizze.
29061 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
29062 (GRUB_MOD_INIT): Gettextizze.
29063 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
29064 (grub_cmd_linux): Capitalise Linux.
29065 (GRUB_MOD_INIT): Gettextizze.
29066 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
29067 (grub_cpu_xnu_init): Gettextizze.
29068 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
29069 (GRUB_MOD_INIT): Gettextizze.
29070 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
29071 (GRUB_MOD_INIT): Gettextizze.
29072 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
29073 (grub_linux_load64): Capitalise Linux.
29074 (GRUB_MOD_INIT): Gettextizze.
29075 * loader/xnu.c: Include `<grub/i18n.h>'.
29076 (GRUB_MOD_INIT): Gettextizze.
29077 * po/POTFILES: Add `loader/efi/appleloader.c',
29078 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
29079 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
29080 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
29081 `loader/i386/xnu.c', `loader/multiboot_loader.c',
29082 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
29083 and `loader/xnu.c'.
29084
b394b2ca
RM
290852010-01-08 Robert Millan <rmh.grub@aybabtu.com>
29086
29087 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
29088
290892010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
29090
29091 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
29092 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
29093 * util/mkisofs/mkisofs.c (main): Readjust --version output.
29094
bc8b32b3
RM
290952010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29096
29097 Reset Multiboot 2 support. New loader implements the draft in
29098 /branches/multiboot2 and shares as much code as possible with the
29099 production Multiboot 1 implementation.
29100
29101 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
29102 * loader/multiboot2.c: Likewise.
29103 * loader/i386/multiboot_helper.S: Likewise.
29104 * include/multiboot2.h: Replace with latest version from the draft
29105 in /branches/multiboot2.
29106
29107 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
29108 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
29109 and `loader/multiboot2.c'.
29110 (pkglib_MODULES): Add `multiboot2.mod'.
29111 (multiboot2_mod_SOURCES): New variable.
29112 (multiboot2_mod_LDFLAGS): Likewise.
29113 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
29114
29115 * conf/i386-pc.rmk: Likewise.
29116
29117 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
29118 (multiboot_mod_SOURCES): Remove variable.
29119 (multiboot_mod_LDFLAGS): Likewise.
29120 (multiboot_mod_CFLAGS): Likewise.
29121
29122 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
29123 `<multiboot2.h>' instead of `<multiboot.h>'.
29124 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
29125 (MULTIBOOT_HEADER_MAGIC): New macros.
29126
29127 * loader/multiboot_loader.c (module_version_status): Remove variable.
29128 (find_multi_boot2_header): Remove function.
29129 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
29130 logic. Always check for the Multiboot version we're compiling for.
29131 (grub_cmd_module_loader): Likewise.
29132 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
29133 command instead of `multiboot'.
29134
5d2c52b8
RM
291352010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29136
29137 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
29138 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
29139 all users.
29140
53108d92
RM
291412010-01-07 Robert Millan <rmh.grub@aybabtu.com>
291422010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29143
29144 Fix breakage introduced with previous commit.
29145
29146 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
29147 commands.
29148 * normal/handler.c (read_handler_list): Revert part of previous commit
29149 affecting this file.
29150 * normal/main.c (read_lists): Move read_handler_list() call back to ...
29151 (grub_normal_execute): ... here.
29152
e2e936b2
RM
291532010-01-07 Robert Millan <rmh.grub@aybabtu.com>
29154
29155 Merge prefix-redefinition-fix branch.
29156
29157 * normal/autofs.c (read_fs_list): Make function capable of being
29158 run multiple times, gracefuly replacing the previous data
29159 structures.
29160 * normal/dyncmd.c (read_command_list): Likewise.
29161 * normal/handler.c (read_handler_list): Likewise.
29162 * normal/main.c (read_lists): New function. Calls all the
29163 list reading functions.
29164 (grub_normal_execute): Use read_lists() instead of calling all
29165 list reading functions explicitly. Register read_lists() as a
29166 variable hook attached to ${prefix}.
29167
607a3701
VS
291682010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
29169
29170 Merge crypto branch.
29171
29172 * Makefile.in (pkglib_DATA): Add crypto.lst.
29173 (crypto.lst): New target.
29174 * commands/hashsum.c: New file.
29175 * commands/password.c (check_password): Use grub_crypto_memcmp.
29176 * commands/password_pbkdf2.c: New file.
29177 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
29178 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
29179 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
29180 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
29181 -I$(srcdir)/lib/libgcrypt_wrap.
29182 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
29183 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
29184 password_pbkdf2.mod.
29185 (crypto_mod_SOURCES): New variable.
29186 (crypto_mod_CFLAGS): Likewise.
29187 (crypto_mod_LDFLAGS): Likewise.
29188 (hashsum_mod_SOURCES): New variable.
29189 (hashsum_mod_CFLAGS): Likewise.
29190 (hashsum_mod_LDFLAGS): Likewise.
29191 (pbkdf2_mod_SOURCES): New variable.
29192 (pbkdf2_mod_CFLAGS): Likewise.
29193 (pbkdf2_mod_LDFLAGS): Likewise.
29194 (password_pbkdf2_mod_SOURCES): New variable.
29195 (password_pbkdf2_mod_CFLAGS): Likewise.
29196 (password_pbkdf2_mod_LDFLAGS): Likewise.
29197 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
29198 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
29199 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
29200 Include conf/gcry.rmk.
29201 * include/grub/auth.h: Rewritten.
29202 * include/grub/crypto.h: New file.
29203 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
29204 * include/grub/normal.h (read_crypto_list): New prototype.
29205 * lib/crypto.c: New file.
29206 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
29207 * lib/pbkdf2.c: Likewise.
29208 * normal/auth.c (grub_auth_strcmp): Removed.
29209 (grub_iswordseparator): Likewise.
29210 (grub_auth_strword): Likewise.
29211 (is_authenticated): Use grub_strword.
29212 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
29213 and grub_strword. Pass entered password to authentication callback.
29214 * normal/crypto.c: New file.
29215 * normal/main.c: Call read_crypto_list.
29216 * util/grub-mkpasswd-pbkdf2.c: New file.
29217 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
29218
42841caa
VS
292192010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
29220
29221 Fix descent and ascent calculation.
29222
29223 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
29224 (options): New option "asce".
29225 (usage): Likewise.
29226 (add_char): Ignore invalid glyphs for descent calculation.
29227 Calculate ascent from actual content.
29228 (print_glyphs): Use 'asce'.
29229 (write_font): Likewise. Allow ascent override.
29230 (main): Handle "asce" option.
29231
e7730de7 292322010-01-06 Carles Pina i Estany <carles@pina.cat>
29233
29234 * kern/err.c: Include `<grub/i18n.h>'.
29235 (grub_print_error): Add full stop. Gettextizze.
29236 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
29237 (grub_bsd_load_elf): Capitalise ELF.
29238 (grub_cmd_freebsd_loadenv): Add `s' in error string.
29239 (grub_cmd_freebsd_module): Likewise.
29240 (grub_cmd_freebsd_module_elf): Likewise.
29241 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
29242
40e3a41f 292432010-01-06 Carles Pina i Estany <carles@pina.cat>
29244
29245 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
29246 * commands/search_file.c (HELP_MESSAGE): New macro.
29247 * commands/search_label.c (HELP_MESSAGE): Likewise.
29248 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
29249 * po/POTFILES: Add `commands/search_file.c',
29250 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
29251 `commands/search.c'.
29252
83507e68
RM
292532010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29254
29255 * config.rpath: Update from Gnulib.
29256
465c787b
YB
292572010-01-05 Yves Blusseau <blusseau@zetam.org>
29258
29259 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
29260
6581dd3a
YB
292612010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
29262
29263 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
29264
3bff18c5
CW
292652010-01-05 Colin Watson <cjwatson@ubuntu.com>
29266
29267 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
29268 arguments to fread so that we get a return value in bytes, rather
29269 than something that will normally be rounded down to 0.
29270 Adjust error handling to avoid producing garbage when size_t is not
29271 the same size as long long.
29272
a1368118
CW
292732010-01-05 Colin Watson <cjwatson@ubuntu.com>
29274
29275 * util/mkisofs/write.c (padblock_write): Check return value of
29276 fread.
29277
7c302978
RM
292782010-01-05 Robert Millan <rmh.grub@aybabtu.com>
29279
29280 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
29281 floppy images now.
29282
29283 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
29284
e33ace06
RM
292852010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29286
29287 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
29288 instead of manual alignment.
29289 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
29290 verbose). Avoid attempts to read past end of the device
29291 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
29292 but GRUB_DISK_CACHE_SIZE may exceed that).
29293
4b856776
RM
292942010-01-04 Robert Millan <rmh.grub@aybabtu.com>
29295
29296 * commands/crc.c (grub_cmd_crc): Abort on read errors.
29297 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
29298 it to upper layer.
29299
52c2d97f
VS
293002010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29301
29302 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
29303 New constant.
29304 (grub_efi_piwg_device_path): New structure
29305 (grub_efi_piwg_device_path_t): New type.
29306 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
29307 (devpath_1): Transform to a structure. All users updated.
29308 (devpath_2): Likewise.
29309 (devpath_3): Likewise.
29310 (devpath_4): Likewise.
29311 (devpath_5): Likewise.
29312
98ff6a54
VS
293132010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
29314
29315 * loader/efi/appleloader.c: Restored. Update all users.
29316
3a73dcb6
RM
293172010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29318
29319 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
29320
29321 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
29322 (struct boot_blocklist): Move from here ...
29323 * include/grub/i386/pc/boot.h [ASM_FILE]
29324 (struct grub_boot_blocklist): ... to here. Update all users.
29325 (setup): Only initialize `start' member of `first_block'
29326 structure. Add assert() calls to verify the other members.
29327
29328 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
29329 (generate_image): Fix broken blocklist length initialization.
29330 Add assert() call to verify blocklist `segment' field.
29331
ab0eeb0c
RM
293322010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29333
29334 * loader/efi/appleloader.c: Remove. Update all users.
29335
58bc8bd5
RM
293362010-01-03 Robert Millan <rmh.grub@aybabtu.com>
29337
29338 * boot/i386/pc/boot.S: Update copyright year.
29339 * boot/i386/pc/cdboot.S: Likewise.
29340 * boot/i386/pc/diskboot.S: Likewise.
29341 * boot/i386/pc/lnxboot.S: Likewise.
29342 * boot/i386/pc/pxeboot.S: Likewise.
29343 * bus/pci.c: Likewise.
29344 * commands/cmp.c: Likewise.
29345 * commands/help.c: Likewise.
29346 * commands/hexdump.c: Likewise.
29347 * commands/i386/pc/halt.c: Likewise.
29348 * commands/i386/pc/play.c: Likewise.
29349 * commands/i386/pc/vbeinfo.c: Likewise.
29350 * commands/ls.c: Likewise.
29351 * commands/test.c: Likewise.
29352 * disk/dmraid_nvidia.c: Likewise.
29353 * disk/i386/pc/biosdisk.c: Likewise.
29354 * disk/ieee1275/nand.c: Likewise.
29355 * disk/ieee1275/ofdisk.c: Likewise.
29356 * disk/lvm.c: Likewise.
29357 * disk/raid.c: Likewise.
29358 * disk/raid6_recover.c: Likewise.
29359 * disk/scsi.c: Likewise.
29360 * fs/affs.c: Likewise.
29361 * fs/cpio.c: Likewise.
29362 * fs/ext2.c: Likewise.
29363 * fs/hfs.c: Likewise.
29364 * fs/iso9660.c: Likewise.
29365 * fs/ntfs.c: Likewise.
29366 * fs/sfs.c: Likewise.
29367 * fs/udf.c: Likewise.
29368 * fs/ufs.c: Likewise.
29369 * fs/xfs.c: Likewise.
29370 * gencmdlist.sh: Likewise.
29371 * genmk.rb: Likewise.
29372 * include/grub/disk.h: Likewise.
29373 * include/grub/efi/api.h: Likewise.
29374 * include/grub/efi/efi.h: Likewise.
29375 * include/grub/efi/pe32.h: Likewise.
29376 * include/grub/elf.h: Likewise.
29377 * include/grub/fs.h: Likewise.
29378 * include/grub/i386/at_keyboard.h: Likewise.
29379 * include/grub/i386/pc/memory.h: Likewise.
29380 * include/grub/i386/pc/vbe.h: Likewise.
29381 * include/grub/i386/pci.h: Likewise.
29382 * include/grub/i386/tsc.h: Likewise.
29383 * include/grub/ieee1275/ieee1275.h: Likewise.
29384 * include/grub/ntfs.h: Likewise.
29385 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
29386 * include/grub/sparc64/libgcc.h: Likewise.
29387 * include/grub/symbol.h: Likewise.
29388 * include/grub/types.h: Likewise.
29389 * include/multiboot2.h: Likewise.
29390 * io/gzio.c: Likewise.
29391 * kern/device.c: Likewise.
29392 * kern/disk.c: Likewise.
29393 * kern/efi/efi.c: Likewise.
29394 * kern/efi/mm.c: Likewise.
29395 * kern/elf.c: Likewise.
29396 * kern/file.c: Likewise.
29397 * kern/i386/dl.c: Likewise.
29398 * kern/i386/pc/init.c: Likewise.
29399 * kern/i386/pc/startup.S: Likewise.
29400 * kern/ieee1275/ieee1275.c: Likewise.
29401 * kern/ieee1275/init.c: Likewise.
29402 * kern/main.c: Likewise.
29403 * kern/mm.c: Likewise.
29404 * kern/powerpc/dl.c: Likewise.
29405 * kern/sparc64/dl.c: Likewise.
29406 * kern/x86_64/dl.c: Likewise.
29407 * lib/hexdump.c: Likewise.
29408 * loader/efi/appleloader.c: Likewise.
29409 * loader/i386/ieee1275/linux.c: Likewise.
29410 * loader/i386/pc/chainloader.c: Likewise.
29411 * loader/i386/pc/linux.c: Likewise.
29412 * loader/i386/pc/multiboot2.c: Likewise.
29413 * loader/ieee1275/multiboot2.c: Likewise.
29414 * loader/multiboot2.c: Likewise.
29415 * loader/multiboot_loader.c: Likewise.
29416 * loader/powerpc/ieee1275/linux.c: Likewise.
29417 * normal/completion.c: Likewise.
29418 * normal/menu_entry.c: Likewise.
29419 * partmap/apple.c: Likewise.
29420 * util/grub.d/10_hurd.in: Likewise.
29421 * util/hostfs.c: Likewise.
29422 * video/readers/png.c: Likewise.
29423
e2d70b5c
CW
294242010-01-03 Colin Watson <cjwatson@ubuntu.com>
29425
29426 * include/grub/misc.h (GNUC_PREREQ): New macro.
29427 (ATTRIBUTE_ERROR): New macro.
29428 * include/grub/list.h (grub_bad_type_cast_real): Use
29429 ATTRIBUTE_ERROR.
29430
a173283f 294312010-01-03 Carles Pina i Estany <carles@pina.cat>
29432
29433 * normal/menu_text.c (print_message): Change messages.
29434
7fa7ff74 294352010-01-03 Carles Pina i Estany <carles@pina.cat>
29436
29437 * normal/menu_entry.c (store_completion): Gettextizze.
29438
136d24f6 294392010-01-03 Carles Pina i Estany <carles@pina.cat>
29440
29441 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
29442
f936862e 294432010-01-03 Carles Pina i Estany <carles@pina.cat>
29444
29445 * po/POTFILES: Sort correctly.
29446
29c44ad1 294472010-01-03 Carles Pina i Estany <carles@pina.cat>
29448
29449 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
29450 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
29451 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
29452 full stop.
29453 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
29454 summary. Gettextizze the strings.
29455 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
29456 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
29457 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
29458 full stop.
29459 (GRUB_MOD_INIT): Remove command name from summary.
29460 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
29461 summary.
29462 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
29463 * term/i386/pc/serial.c (options): Add full stops.
29464 (GRUB_MOD_INIT): Remove command name from the summary.
29465
77a79592 294662010-01-03 Carles Pina i Estany <carles@pina.cat>
29467
29468 * commands/acpi.c: Gettextizze help strings and/or options. Include
29469 `grub/i18n.h' if needed.
29470 * commands/blocklist.c: Likewise.
29471 * commands/boot.c: Likewise.
29472 * commands/cat.c: Likewise.
29473 * commands/cmp.c: Likewise.
29474 * commands/configfile.c: Likewise.
29475 * commands/crc.c: Likewise.
29476 * commands/date.c: Likewise.
29477 * commands/echo.c: Likewise.
29478 * commands/efi/fixvideo.c: Likewise.
29479 * commands/efi/loadbios.c: Likewise.
29480 * commands/gptsync.c: Likewise.
29481 * commands/halt.c: Likewise.
29482 * commands/handler.c: Likewise.
29483 * commands/hdparm.c: Likewise.
29484 * commands/hexdump.c: Likewise.
29485 * commands/i386/cpuid.c: Likewise.
29486 * commands/i386/pc/drivemap.c: Likewise.
29487 * commands/i386/pc/halt.c: Likewise.
29488 * commands/i386/pc/pxecmd.c: Likewise.
29489 * commands/i386/pc/vbeinfo.c: Likewise.
29490 * commands/i386/pc/vbetest.c: Likewise.
29491 * commands/ieee1275/suspend.c: Likewise.
29492 * commands/keystatus.c: Likewise.
29493 * commands/loadenv.c: Likewise.
29494 * commands/ls.c: Likewise.
29495 * commands/lsmmap.c: Likewise.
29496 * commands/lspci.c: Likewise.
29497 * commands/memrw.c: Likewise.
29498 * commands/minicmd.c: Likewise.
29499 * commands/parttool.c: Likewise.
29500 * commands/password.c: Likewise.
29501 * commands/probe.c: Likewise.
29502 * commands/read.c: Likewise.
29503 * commands/reboot.c: Likewise.
29504 * commands/search.c: Likewise.
29505 * commands/sleep.c: Likewise.
29506 * commands/test.c: Likewise.
29507 * commands/true.c: Likewise.
29508 * commands/usbtest.c: Likewise.
29509 * commands/videotest.c: Likewise.
29510 * commands/xnu_uuid.c: Likewise.
29511 * disk/loopback.c: Likewise.
29512 * hello/hello.c: Likewise.
29513 * loader/i386/bsd.c: Likewise.
29514 * term/i386/pc/serial.c: Likewise.
29515 * po/POTFILES: Add new files.
29516
da8d5c53
CW
295172010-01-02 Colin Watson <cjwatson@ubuntu.com>
29518
29519 * term/i386/pc/at_keyboard.c
29520 (keyboard_controller_wait_untill_ready): Rename to ...
29521 (keyboard_controller_wait_until_ready): ... this. Update all users.
29522
33937904 295232010-01-01 Carles Pina i Estany <carles@pina.cat>
29524
29525 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
29526 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
29527 string using string width.
29528 * normal/menu_text.c (grub_print_message_indented): Use
29529 grub_print_spaces and not print_spaces.
29530 (print_timeout): Likewise.
29531 (print_spaces): Move to...
29532 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
29533
3fd3b8d8
RM
295342010-01-01 Robert Millan <rmh.grub@aybabtu.com>
29535
29536 Import from Gnulib.
29537
29538 * gnulib/getdelim.c: New file.
29539 * gnulib/getline.c: Likewise.
29540
33433555
VS
295412009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
29542
29543 * include/grub/list.h (grub_assert_fail): Removed.
29544 (grub_bad_type_cast_real): New function.
29545 (grub_bad_type_cast): New macro.
29546 (GRUB_AS_LIST): Use grub_bad_type_cast.
29547 (GRUB_AS_LIST_P): Likewise.
e44721e8 29548 (GRUB_AS_NAMED_LIST): Likewise.
33433555 29549 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 29550 (GRUB_AS_PRIO_LIST): Likewise.
33433555 29551 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 29552 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 29553
f5a51306
VS
295542009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
29555
29556 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
29557 Fix syntax error.
29558
90d1e879
RM
295592009-12-29 Robert Millan <rmh.grub@aybabtu.com>
29560
29561 * configure.ac: Check for TARGET_CFLAGS initialization before we
29562 initialize it ourselves (sigh).
29563 Move a few modifications to TARGET_CFLAGS to be unconditional
29564 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
29565 eh_frame)
29566
29567 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
29568 * term/i386/pc/at_keyboard.c
29569 (keyboard_controller_wait_untill_ready): Likewise.
29570 (keyboard_controller_led): Rename `led_status' paramter to avoid
29571 name conflict.
29572
465b5a81 295732009-12-28 Carles Pina i Estany <carles@pina.cat>
29574
29575 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
29576 quotes.
29577
c181849b
VS
295782009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29579
29580 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
29581
9c8739a4
VS
295822009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29583
29584 * normal/menu_text.c (grub_print_message_indented): Prevent
29585 past-the-end-of-array dereference.
29586
3e74249c
VS
295872009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
29588
29589 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
29590 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
29591
64fd18ed 295922009-12-27 Carles Pina i Estany <carles@pina.cat>
29593
29594 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
29595 * normal/main.c (grub_normal_read_line): Remove a space from the
29596 default prompt.
29597
714af9b9 295982009-12-27 Carles Pina i Estany <carles@pina.cat>
29599
29600 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
29601 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29602 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29603 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29604 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29605 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29606 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29607
82f3e412 296082009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 29609
29610 * video/readers/jpeg.c (cmd): Declare.
29611 (grub_cmd_jpegtest): Use `grub_command_t' type.
29612 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29613 Assign to `cmd'.
29614 (GRUB_MOD_FINI): Use `cmd' to unregister.
29615 * video/readers/png.c (cmd): Declare.
29616 (grub_cmd_pngtest): Use `grub_command_t' type.
29617 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29618 Assign to `cmd'.
29619 (GRUB_MOD_FINI): Use `cmd' to unregister.
29620 * video/readers/tga.c (cmd): Declare.
29621 (grub_cmd_tgatest): Use `grub_command_t' type.
29622 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
29623 Assign to `cmd'.
29624 (GRUB_MOD_FINI): Use `cmd' to unregister.
29625
82f3e412 296262009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 29627
29628 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
29629 stops.
29630 * kern/corecmd.c (grub_register_core_commands): Likewise.
29631 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
29632 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29633 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
29634 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29635 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
29636 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
29637 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
29638 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
29639 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29640 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
29641 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29642 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29643 * normal/handler.c (insert_handler): Likewise.
29644 * normal/main.c (GRUB_MOD_INIT): Likewise.
29645 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
29646
fdcdbb66 296472009-12-26 Carles Pina i Estany <carles@pina.cat>
29648
29649 * commands/help.c (grub_cmd_help): Print the command name before the
29650 summary.
29651 (GRUB_MOD_INIT): Remove command name from the summary.
29652 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 29653 string as summary.
fdcdbb66 29654 * lib/arg.c (find_long): Print the command name before the summary.
29655 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
29656 summary.
29657 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
29658 * commands/cat.c (GRUB_MOD_INIT): Likewise.
29659 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
29660 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
29661 * commands/crc.c (GRUB_MOD_INIT): Likewise.
29662 * commands/date.c (GRUB_MOD_INIT): Likewise.
29663 * commands/echo.c (GRUB_MOD_INIT): Likewise.
29664 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
29665 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
29666 * commands/handler.c (GRUB_MOD_INIT): Likewise.
29667 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
29668 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
29669 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
29670 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
29671 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
29672 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
29673 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
29674 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
29675 * commands/ls.c (GRUB_MOD_INIT): Likewise.
29676 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
29677 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
29678 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
29679 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
29680 * commands/password.c (GRUB_MOD_INIT): Likewise.
29681 * commands/probe.c (GRUB_MOD_INIT): Likewise.
29682 * commands/read.c (GRUB_MOD_INIT): Likewise.
29683 * commands/search.c (GRUB_MOD_INIT): Likewise.
29684 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
29685 * commands/test.c (GRUB_MOD_INIT): Likewise.
29686 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
29687 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
29688 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
29689 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
29690 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
29691 * lib/arg.c (GRUB_MOD_INIT): Likewise.
29692 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
29693 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
29694 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
29695 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
29696 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
29697 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
29698 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
29699 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
29700
9c288be2
VS
297012009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29702
29703 Use search command for preliminar UUID search.
29704
29705 * commands/search.c: Split into ...
29706 * commands/search_wrap.c: ...this
29707 * commands/search.c: ...and this.
29708 * commands/search_file.c: New file.
29709 * commands/search_label.c: New file.
29710 * commands/search_uuid.c: New file.
29711 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
29712 Add commands/search_wrap.c, commands/search_file.c,
29713 commands/search_label.c and commands/search_uuid.c.
29714 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
29715 (search_mod_SOURCES): Set to commands/search_wrap.c.
29716 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
29717 search_label.mod.
29718 (search_fs_file_mod_SOURCES): New variable.
29719 (search_fs_file_mod_CFLAGS): Likewise.
29720 (search_fs_file_mod_LDFLAGS): Likewise.
29721 (search_label_mod_SOURCES): Likewise.
29722 (search_label_mod_CFLAGS): Likewise.
29723 (search_label_mod_LDFLAGS): Likewise.
29724 (search_fs_uuid_mod_SOURCES): New variable.
29725 (search_fs_uuid_mod_CFLAGS): Likewise.
29726 (search_fs_uuid_mod_LDFLAGS): Likewise.
29727 (fs_file_mod_SOURCES): Removed.
29728 (fs_file_mod_CFLAGS): Likewise.
29729 (fs_file_mod_LDFLAGS): Likewise.
29730 (fs_uuid_mod_SOURCES): Removed.
29731 (fs_uuid_mod_CFLAGS): Likewise.
29732 (fs_uuid_mod_LDFLAGS): Likewise.
29733 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
29734 Set to util/grub-install.in.
29735 * disk/fs_file.c: Removed.
29736 * disk/fs_uuid.c: Likewise.
29737 * include/grub/search.h: New file.
29738 * util/grub-install.in: Handle sparc64.
29739 Create and use load.cfg.
29740 * util/sparc64/ieee1275/grub-install.in: Removed.
29741
db943399
VS
297422009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29743
29744 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
29745 Ignore return status if CF is cleared.
29746 (grub_biosdisk_get_diskinfo_standard): Likewise.
29747
3fdae612
RM
297482009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29749
29750 * term/i386/pc/at_keyboard.c
29751 (keyboard_controller_wait_untill_ready): New function.
29752 (grub_keyboard_controller_write, grub_keyboard_controller_read)
29753 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
29754 for keyboard polling, rather than duplicate the same loop. This
29755 saves a few bytes in code size.
29756
7ebaa2b4
VS
297572009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
29758
29759 Support for (pxe[:server[:gateway]]) syntax and
29760 use environment variable for PXE.
29761
29762 * commands/i386/pc/pxecmd.c (options): Removed.
29763 (print_ip): Removed.
29764 (grub_cmd_pxe): Removed
29765 (grub_cmd_pxe_unload): New function.
29766 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
29767 (grub_pxe_your_ip): Made static.
29768 (grub_pxe_default_server_ip): Likewise.
29769 (grub_pxe_default_gateway_ip): Likewise.
29770 (grub_pxe_blksize): Likewise.
29771 (parse_ip): New function.
29772 (grub_pxe_open): Support server and gateway specification.
29773 (grub_pxe_close): Free disk->data.
29774 (grub_pxefs_open): Use disk->data.
29775 (grub_pxefs_read): Likewise.
29776 (grub_env_write_readonly): New function.
29777 (set_mac_env): Likewise.
29778 (set_env_limn_ro): Likewise.
29779 (parse_dhcp_vendor): Likewise.
29780 (grub_pxe_detect): Set the environment variables.
29781 (set_ip_env): New function.
29782 (write_ip_env): Likewise.
29783 (grub_env_write_pxe_default_server): Likewise.
29784 (grub_env_write_pxe_default_gateway): Likewise.
29785 (grub_env_write_pxe_blocksize): Likewise.
29786 (GRUB_MOD_INIT(pxe)): Set environment variables.
29787 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
29788 (grub_pxe_mac_addr_t): ... this. All users updated.
29789 (grub_pxe_your_ip): Removed.
29790 (grub_pxe_server_ip): Likewise.
29791 (grub_pxe_gateway_ip): Likewise.
29792 (grub_pxe_blksize): Likewise.
29793
ec5f98ab 297942009-12-25 Carles Pina i Estany <carles@pina.cat>
29795
29796 * commands/help.c: Include `<grub/i18n.h>'.
29797 (grub_cmd_help): Gettextizze.
29798 (GRUB_MOD_INIT): Likewise.
29799 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
29800 (GRUB_MOD_INIT): Gettextizze.
29801 * commands/search.c: Include `<grub/i18n.h>'.
29802 (options): Gettextizze.
29803 (GRUB_MOD_INIT): Gettextizze.
29804 * lib/arg.c: Include `<grub/i18n.h>'.
29805 (help_options): Gettextizze.
29806 (find_long): Likewise.
29807 (grub_arg_show_help): Likewise.
29808 * normal/dyncmd.c: Include `<grub/i18n.h>'.
29809 (read_command_list): Gettextizze.
29810 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 29811 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 29812
22815526
RM
298132009-12-25 Robert Millan <rmh.grub@aybabtu.com>
29814
29815 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
29816 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
29817 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
29818 (led_status): New variable.
29819 (keyboard_controller_led): New function.
29820 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
29821 update led status for caps lock, num lock and scroll lock.
29822
0ad46fd7
FZ
298232009-12-25 Felix Zielcke <fzielcke@z-51.de>
29824
29825 * util/hostdisk.c (open_device): Fix a comment.
29826
d0e158c2
RM
298272009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29828
29829 * util/grub-install.in (host_os): New variable.
29830 * util/i386/efi/grub-install.in (host_os): Likewise.
29831
401c0ad6
RM
298322009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29833
29834 * util/mkisofs/write.c (padblock_write): Abort when given an
29835 excedingly large embed image, instead of silently truncating it.
29836
d14d3370
RM
298372009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29838
29839 * include/multiboot.h: Indentation fixes.
29840
eeed10b4
RM
298412009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29842
29843 * include/multiboot.h (struct multiboot_aout_symbol_table)
29844 (struct multiboot_elf_section_header_table): New structure
29845 declarations (stolen from GRUB Legacy).
29846 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
29847 table information.
29848
29849 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
29850 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
29851 type aliases.
29852
681c70ab
RM
298532009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29854
29855 * include/multiboot.h: Make comments src2texi-friendly.
29856
e4d47d8d
RM
298572009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29858
29859 For consistency with [multiboot]/docs/boot.S.
29860
29861 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
29862 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
29863 (MULTIBOOT_MAGIC2): Rename from this ...
29864 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
29865
a0b70bda
RM
298662009-12-24 Robert Millan <rmh.grub@aybabtu.com>
29867
29868 * include/multiboot.h: Remove `<grub/types.h>'.
29869 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
29870 types. Update all users.
29871
61ba42be 298722009-12-25 Carles Pina i Estany <carles@pina.cat>
29873
29874 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
29875 `couldn't' and `can not' by `cannot'.
29876 * commands/i386/pc/drivemap.c: Likewise.
29877 * disk/ata.c: Likewise.
29878 * disk/ieee1275/nand.c: Likewise.
29879 * fs/affs.c: Likewise.
29880 * fs/fat.c: Likewise.
29881 * fs/hfs.c: Likewise.
29882 * fs/hfsplus.c: Likewise.
29883 * fs/iso9660.c: Likewise.
29884 * fs/jfs.c: Likewise.
29885 * fs/minix.c: Likewise.
29886 * fs/reiserfs.c: Likewise.
29887 * fs/sfs.c: Likewise.
29888 * fs/udf.c: Likewise.
29889 * fs/ufs.c: Likewise.
29890 * fs/xfs.c: Likewise.
29891 * loader/powerpc/ieee1275/linux.c: Likewise.
29892 * loader/sparc64/ieee1275/linux.c: Likewise.
29893 * util/grub-probe.c: Likewise.
29894 * util/misc.c: Likewise.
29895
7fd0baee 298962009-12-24 Carles Pina i Estany <carles@pina.cat>
29897
29898 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
29899 grub_errno calls.
29900 * commands/acpi.c: Likewise.
29901 * commands/blocklist.c: Likewise.
29902 * commands/efi/loadbios.c: Likewise.
29903 * commands/i386/pc/drivemap.c: Likewise.
29904 * commands/loadenv.c: Likewise.
29905 * commands/memrw.c: Likewise.
29906 * commands/password.c: Likewise.
29907 * commands/videotest.c: Likewise.
29908 * disk/ata.c: Likewise.
29909 * disk/ata_pthru.c: Likewise.
29910 * disk/dmraid_nvidia.c: Likewise.
29911 * disk/ieee1275/nand.c: Likewise.
29912 * disk/ieee1275/ofdisk.c: Likewise.
29913 * disk/loopback.c: Likewise.
29914 * disk/lvm.c: Likewise.
29915 * disk/mdraid_linux.c: Likewise.
29916 * disk/raid.c: Likewise.
29917 * disk/raid6_recover.c: Likewise.
29918 * disk/scsi.c: Likewise.
29919 * efiemu/main.c: Likewise.
29920 * efiemu/mm.c: Likewise.
29921 * efiemu/pnvram.c: Likewise.
29922 * efiemu/symbols.c: Likewise.
29923 * font/font.c: Likewise.
29924 * fs/cpio.c: Likewise.
29925 * fs/hfsplus.c: Likewise.
29926 * fs/iso9660.c: Likewise.
29927 * fs/jfs.c: Likewise.
29928 * fs/minix.c: Likewise.
29929 * fs/ntfs.c: Likewise.
29930 * fs/ntfscomp.c: Likewise.
29931 * fs/reiserfs.c: Likewise.
29932 * fs/ufs.c: Likewise.
29933 * fs/xfs.c: Likewise.
29934 * gettext/gettext.c: Likewise.
29935 * include/grub/auth.h: Likewise.
29936 * kern/elf.c: Likewise.
29937 * kern/file.c: Likewise.
29938 * kern/ieee1275/init.c: Likewise.
29939 * kern/ieee1275/mmap.c: Likewise.
29940 * kern/ieee1275/openfw.c: Likewise.
29941 * kern/powerpc/dl.c: Likewise.
29942 * kern/sparc64/dl.c: Likewise.
29943 * lib/arg.c: Likewise.
29944 * loader/i386/bsd.c: Likewise.
29945 * loader/i386/bsdXX.c: Likewise.
29946 * loader/i386/efi/linux.c: Likewise.
29947 * loader/i386/efi/xnu.c: Likewise.
29948 * loader/i386/ieee1275/linux.c: Likewise.
29949 * loader/i386/linux.c: Likewise.
29950 * loader/i386/multiboot.c: Likewise.
29951 * loader/i386/pc/linux.c: Likewise.
29952 * loader/i386/pc/multiboot2.c: Likewise.
29953 * loader/i386/xnu.c: Likewise.
29954 * loader/ieee1275/multiboot2.c: Likewise.
29955 * loader/macho.c: Likewise.
29956 * loader/machoXX.c: Likewise.
29957 * loader/multiboot2.c: Likewise.
29958 * loader/multiboot_loader.c: Likewise.
29959 * loader/powerpc/ieee1275/linux.c: Likewise.
29960 * loader/sparc64/ieee1275/linux.c: Likewise.
29961 * loader/xnu.c: Likewise.
29962 * loader/xnu_resume.c: Likewise.
29963 * mmap/i386/pc/mmap.c: Likewise.
29964 * normal/menu_viewer.c: Likewise.
29965 * partmap/acorn.c: Likewise.
29966 * partmap/amiga.c: Likewise.
29967 * partmap/apple.c: Likewise.
29968 * script/lexer.c: Likewise.
29969 * term/gfxterm.c: Likewise.
29970 * term/i386/pc/serial.c: Likewise.
29971 * term/i386/pc/vga.c: Likewise.
29972 * term/ieee1275/ofconsole.c: Likewise.
29973 * term/terminfo.c: Likewise.
29974 * video/bitmap.c: Likewise.
29975 * video/efi_gop.c: Likewise.
29976 * video/efi_uga.c: Likewise.
29977 * video/fb/video_fb.c: Likewise.
29978 * video/i386/pc/vbe.c: Likewise.
29979 * video/readers/tga.c: Likewise.
29980 * video/video.c: Likewise.
29981
0ad46fd7 299822009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
29983
29984 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
29985 * commands/lspci.c: Likewise.
29986 * commands/probe.c: Likewise.
29987 * commands/xnu_uuid.c: Likewise.
29988 * conf/i386-coreboot.rmk: Likewise.
29989 * conf/i386-efi.rmk: Likewise.
29990 * conf/i386-ieee1275.rmk: Likewise.
29991 * conf/i386-pc.rmk: Likewise.
29992 * conf/powerpc-ieee1275.rmk: Likewise.
29993 * conf/sparc64-ieee1275.rmk: Likewise.
29994 * conf/x86_64-efi.rmk: Likewise.
29995 * fs/i386/pc/pxe.c: Likewise.
29996 * gettext/gettext.c: Likewise.
29997 * include/grub/efi/graphics_output.h: Likewise.
29998 * include/grub/i386/pc/memory.h: Likewise.
29999 * kern/env.c: Likewise.
30000 * kern/i386/qemu/startup.S: Likewise.
30001 * lib/i386/pc/biosnum.c: Likewise.
30002 * lib/i386/relocator.c: Likewise.
30003 * lib/i386/relocator_asm.S: Likewise.
30004 * lib/relocator.c: Likewise.
30005 * loader/i386/bsd.c: Likewise.
30006 * loader/i386/multiboot.c: Likewise.
30007 * loader/i386/pc/chainloader.c: Likewise.
30008 * loader/i386/xnu.c: Likewise.
30009 * loader/xnu.c: Likewise.
30010 * normal/main.c: Likewise.
30011 * normal/menu_text.c: Likewise.
30012 * util/getroot.c: Likewise.
30013 * util/grub-mkconfig_lib.in: Likewise.
30014 * util/grub.d/00_header.in: Likewise.
30015 * util/i386/pc/grub-mkimage.c: Likewise.
30016 * util/mkisofs/eltorito.c: Likewise.
30017 * util/mkisofs/exclude.h: Likewise.
30018 * util/mkisofs/hash.c: Likewise.
30019 * util/mkisofs/iso9660.h: Likewise.
30020 * util/mkisofs/joliet.c: Likewise.
30021 * util/mkisofs/mkisofs.c: Likewise.
30022 * util/mkisofs/mkisofs.h: Likewise.
30023 * util/mkisofs/multi.c: Likewise.
30024 * util/mkisofs/name.c: Likewise.
30025 * util/mkisofs/rock.c: Likewise.
30026 * util/mkisofs/tree.c: Likewise.
30027 * util/mkisofs/write.c: Likewise.
30028 * video/efi_gop.c: Likewise.
30029
009ec743
VS
300302009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
30031
30032 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
30033 size counting.
30034
0ad46fd7 300352009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
30036
30037 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
30038 * genmk.rb (class SCRIPT): Modify the target file instead of source.
30039
d3d30ea0
VS
300402009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30041
30042 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
30043 (GRUB_MOD_INIT(memrw)): Update help line.
30044
a34f5c70
VS
300452009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30046
30047 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
30048 Use grub_extcmd_t. All users updated.
30049 (options): New variable.
30050 (grub_cmd_read): Restructure for readability. Support "-v" option.
30051 (grub_cmd_write): Restructure for readability.
30052
0ad46fd7 300532009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
30054
30055 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
30056
0ad46fd7 300572009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
30058
30059 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
30060 with the actual contents of the correspondending make variable.
30061 * util/grub-mkrescue.in (pkglib_DATA): New variable.
30062 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
30063 specifying `*.lst' and `efiemu??.o'
30064
0ad46fd7 300652009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
30066
30067 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
30068 after function name.
30069 Noticed by Rene Engelhard <rene@debian.org>.
30070
dc77a799
VS
300712009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30072
30073 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
30074 (options): New variable.
30075 (iospace): Likewise.
30076 (grub_lspci_iter): List IO spaces if "-i" was given.
30077 (grub_cmd_lspci): Parse options.
30078 (GRUB_MOD_INIT(lspci)): Use extcmd.
30079 (GRUB_MOD_FINI(lspci)): Likewise.
30080
0ad46fd7 300812009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
30082
30083 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
30084 `function' keyword.
30085 Patch by Tony Mancill <tmancill@debian.org>.
30086
b5d5993b
VS
300872009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
30088
30089 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
30090 (grub_uhci_portstatus): Likewise.
30091 (grub_uhci_portstatus): Add necessary delay.
11d18281 30092 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 30093
941903f2 300942009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 30095
941903f2 30096 * commands/acpi.c (options): Fix capitalizations and/or full stops.
30097 (GRUB_MOD_INIT): Likewise.
30098 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 30099 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
30100 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 30101 * commands/efi/loadbios.c (enable_rom_area): Likewise.
30102 (enable_rom_area): Likewise.
30103 (GRUB_MOD_INIT): Likewise.
30104 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
30105 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
30106 * commands/handler.c (GRUB_MOD_INIT): Likewise.
30107 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
30108 * commands/hexdump.c (options): Likewise.
30109 * commands/i386/cpuid.c (options): Likewise.
30110 (GRUB_MOD_INIT): Likewise.
30111 * commands/i386/pc/drivemap.c (options): Likewise.
30112 (GRUB_MOD_INIT): Likewise.
30113 * commands/i386/pc/halt (options): Likewise.
30114 (GRUB_MOD_INIT): Likewise.
30115 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
30116 * commands/i386/pc/pxecmd.c (options): Likewise.
30117 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
30118 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
30119 * commands/keystatus.c (options): Likewise.
30120 (GRUB_MOD_INIT): Likewise.
30121 * commands/loadenv.c (options): Likewise.
30122 * commands/ls.c (options): Likewise.
30123 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
30124 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
30125 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
30126 * commands/parttool.c (helpmsg): Likewise.
30127 * commands/probe.c (options): Likewise.
30128 * commands/read.c (GRUB_MOD_INIT): Likewise.
30129 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
30130 * commands/search.c (options): Likewise.
30131 * commands/sleep.c (options): Likewise.
30132 * commands/test.c (GRUB_MOD_INIT): Likewise.
30133 * commands/true.c (GRUB_MOD_INIT): Likewise.
30134 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
30135 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
30136 * lib/arg.c (help_options): Likewise.
e9bbb4e7 30137 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
30138 `$(XGETTEXT)'.
98a50553 30139 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 30140
0ad46fd7 301412009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 30142
ef3c2c3a 30143 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
30144 instead of specifying them explicit.
30145
7922f68b
RM
301462009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30147
30148 * NEWS: Add grub-probe support for GNU/Hurd.
30149
537ce47f
RM
301502009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30151
30152 * NEWS: gettext was added after 1.97.
30153
9b214e3a
RM
301542009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30155
30156 * util/mkisofs/msdos_partition.h: New file (based on
30157 include/grub/msdos_partition.h).
30158 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
30159 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
30160 (ld_options, main): Recognize --protective-msdos-label.
30161 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
30162 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
30163 (padblock_write): If `use_protective_msdos_label' is set, patch a
30164 protective DOS-style label in the output image.
30165
30166 * util/grub-mkrescue.in: Use --protective-msdos-label.
30167
e9309813
RM
301682009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30169
30170 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
30171 boot.
30172
0ae56929
RM
301732009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30174
30175 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
30176 variables.
30177 (ld_options, main): Recognize `--embedded-boot'.
30178 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
30179 declarations.
30180 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
30181 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
30182 (padblock_write): Likewise. Rewrite to support embedded boot image.
30183
30184 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
30185 for BIOS-based disk boot instead of only ElTorito.
30186
b15937b1
RM
301872009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30188
30189 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
30190 build (not needed for bootstrap).
30191
52cc3ce0
RM
301922009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30193
30194 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
30195 from i386-pc build (not needed for bootstrap).
30196 Rewrite a pair of strings.
30197
36f5ff04
RM
301982009-12-21 Robert Millan <rmh.grub@aybabtu.com>
30199
30200 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
30201
973c6c85 302022009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
30203
30204 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
30205
05d21547
AB
302062009-12-21 Andreas Born <futur.andy@googlemail.com>
30207
30208 * kern/env.c (grub_env_context_open): Mark exported variable for
30209 reexport.
30210
0175d51f
AB
302112009-12-21 Andreas Born <futur.andy@googlemail.com>
30212
30213 * kern/env.c (grub_env_export): Create nonexistent variables before
30214 exporting.
30215
7f39d92f 302162009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 30217
7f39d92f 30218 * include/grub/auth.h: Include `<grub/i18n.h>'.
30219 (GRUB_GET_PASSWORD): Gettextizze string.
30220 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
30221 menu_text.c.
30222 (grub_utf8_to_ucs4_alloc): Fix indentation.
30223 (grub_print_ucs4): Likewise.
30224 (grub_getstringwidth): Likewise.
30225 (print_message_indented): New declaration.
30226 * normal/auth.c: Include `<grub/i18n.h>'.
30227 (grub_auth_check_authentication): Gettexttize string.
30228 * normal/cmdline.c: Include `<grub/i18n.h>'.
30229 (grub_cmdline_get): Gettextizze.
30230 * normal/color.c: Include `<grub/i18n.h>'.
30231 (grub_parse_color_name_pair): Gettexttize strings.
30232 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
30233 string (use `print_message_indented').
30234 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
30235 `include/grub/normal.h'.
30236 (print_message_indented): Renamed to ...
30237 (grub_print_message_indented): ... this. Remove `static' qualifer (now
30238 used in normal/main.c).
30239 (print_message): Use `grub_print_message_indented' instead of
30240 `print_message_indented'.
30241 (print_timeout): Likewise.
30242 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
30243 (grub_normal_print_device_info): Gettexttize strings.
30244 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
30245
3041d898
VS
302462009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30247
30248 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
30249 of arguments. Return number of tokens and not arguments. All users
30250 updated.
30251
de15bf8e
VS
302522009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
30253
30254 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
30255 non-MSDOS paritions.
30256
e0a6ca52
VS
302572009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
30258
30259 * include/grub/types.h (UNUSED): Removed since it conflicts with
30260 NetBSD headers. All users changed to direct __attribute__ ((unused)).
30261 Reported by Grégoire Sutre.
30262
b99518d1 302632009-12-19 Carles Pina i Estany <carles@pina.cat>
30264
30265 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
30266 (grub_print_ucs4_alloc): Likewise.
30267 (grub_getstringwidth): Likewise.
30268 * normal/main.c (grub_normal_init_page): Gettextize version string.
30269 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
30270 (getstringwidth): Renamed to ...
30271 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
30272 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
30273 (grub_print_ucs4): Remove `static' qualifer (now used in
30274 normal/main.c).
30275 * po/POTFILES: Add normal/main.c.
30276
bfd5e52b 302772009-12-19 Carles Pina i Estany <carles@pina.cat>
30278
30279 * normal/menu_text.c (STANDARD_MARGIN): New macro.
30280 (print_message_indented): Add `margin_left' and `margin_right'
30281 parameters.
30282 (print_message): Update `print_message_indented' calls. Adds '\n' to the
30283 strings.
30284 (print_timeout): Use `print_message_indented' to print the message.
30285 Deletes `second_stage' parameter.
30286 (run_menu): Update `print_timeout' calls.
30287
5a1ad2b9
VS
302882009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30289
30290 Fix console palette on OpenFirmware.
30291
30292 * term/ieee1275/ofconsole.c (MAX): Removed.
30293 (colors): Redone based on VGA palette.
30294 (grub_ofconsole_setcolor): Discard brightness bit since only 8
30295 colors are supported.
30296 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
30297
b045f00a
VS
302982009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30299
30300 Fix potential EfiEmu double prepare.
30301
30302 * efiemu/main.c (prepared): New variable
30303 (grub_efiemu_unload): Set prepare to '0'.
30304 (grub_efiemu_prepare): Return if already prepared. Set prepared.
30305
30306 set_virtual_address_map support.
30307
30308 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
30309 prototype.
30310 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
30311 prototype.
30312 (grub_efiemu_crc32): Likewise.
30313 (grub_efiemu_crc64): Likewise.
30314 (grub_efiemu_set_virtual_address_map): Likewise.
30315 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
30316 New definition.
30317 (grub_autoefi_set_virtual_address_map): Likewise.
30318 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
30319 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
30320 Restructure flow to accomodate it.
30321 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
30322 (grub_efiemu_crc): Recompute CRC32.
30323 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
30324 (efiemu_ptv_relocated): ... this. Made global. All users updated.
30325 * efiemu/symbols.c (relocated_handle): New variable.
30326 (grub_efiemu_free_syms): Free relocated_handle.
30327 (grub_efiemu_alloc_syms): Allocate relocated_handle.
30328 (grub_efiemu_write_sym_markers): New function.
30329 (grub_efiemu_set_virtual_address_map): Likewise.
30330
30331 Newer XNU parameters.
30332
30333 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
30334 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
30335 (grub_xnu_fill_devicetree): New prototype.
30336 (grub_xnu_heap_real_start): New variable.
30337 * loader/xnu.c (get_name_ptr): New function.
30338 (grub_xnu_load_driver): Fill namelen and name.
30339
30340 64-bit xnu support.
30341
30342 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
30343 and 'loader/macho64.c'.
30344 * conf/i386-pc.rmk: Likewise.
30345 * conf/x86_64-efi.rmk: Likewise.
30346 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
30347 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
30348 * include/grub/macho.h (grub_macho_segment64): New structure.
30349 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
30350 (grub_macho_size32): ... to this.
30351 (grub_macho32_get_entry_point): Renamed from ...
30352 (grub_macho_get_entry_point32): ... to this.
30353 (grub_macho_contains_macho64): New prototype.
30354 (grub_macho_size64): Likewise.
30355 (grub_macho_get_entry_point64): Likewise.
30356 (grub_macho32_load): Renamed from ...
30357 (grub_macho_load32): ... to this.
30358 (grub_macho32_filesize): Renamed from ...
30359 (grub_macho_filesize32): ... to this.
30360 (grub_macho32_readfile): Renamed from ...
30361 (grub_macho_readfile32): ... to this.
30362 (grub_macho_filesize64): New prototype.
30363 (grub_macho_readfile64): Likewise.
30364 (grub_macho_parse32): Likewise.
30365 (grub_macho_parse64): Likewise.
30366 * loader/macho.c: Split into ...
30367 * loader/machoXX.c: ... and this. Replace 32 with XX.
30368 * loader/macho32.c: New file.
30369 * loader/macho64.c: Likewise.
30370 * loader/xnu.c (grub_xnu_is_64bit): New variable.
30371 (grub_cmd_xnu_kernel): Make 32-bit only.
30372 (grub_cmd_xnu_kernel64): New function.
30373 (grub_xnu_load_driver): Support Mach-O 64.
30374 (grub_cmd_xnu_mkext): Likewise.
30375 * util/grub.d/30_os-prober.in (osx_entry): New function.
30376 Generate entries for 64-bit boot too.
30377
30378 Eliminate ad-hoc tree format in XNU and EfiEmu.
30379
30380 * efiemu/main.c (grub_efiemu_prepare): Update comment.
30381 * efiemu/pnvram.c: Rewritten to use environment variables.
30382 All users updated.
30383
30384 Inline utf16_to_utf8.
30385
30386 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
30387 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
30388 All users updated.
30389 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
30390
30391 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
30392 * commands/usbtest.c (grub_usb_get_string): ... move here.
30393 (usb_print_str): Fix error handling.
30394 * include/grub/usb.h (grub_usb_get_string): Remove.
30395
30396 UTF-8 to UTF-16 transformation.
30397
30398 * conf/common.rmk (pkglib_MODULES): Add charset.mod
30399 (charset_mod_SOURCES): New variable.
30400 (charset_mod_CFLAGS): Likewise.
30401 (charset_mod_LDFLAGS): Likewise.
30402 * include/grub/utf.h: New file.
30403 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
30404
30405 Support for device properties.
30406
30407 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
30408 (grub_xnu_devprop_device_header): Likewise.
30409 (grub_xnu_devprop_device_descriptor): Likewise.
30410 (grub_xnu_devprop_add_device): New prototype.
30411 (grub_xnu_devprop_remove_device): Likewise.
30412 (grub_xnu_devprop_remove_property): Likewise.
30413 (grub_xnu_devprop_add_property_utf8): Likewise.
30414 (grub_xnu_devprop_add_property_utf16): Likewise.
30415 (grub_cpu_xnu_init): Likewise.
30416 (grub_cpu_xnu_fini): Likewise.
30417 (grub_cpu_xnu_unload): Likewise.
30418 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
30419 (property_descriptor): Likewise.
30420 (devices): New variable.
30421 (grub_xnu_devprop_remove_property): New function.
30422 (grub_xnu_devprop_add_device): Likewise.
30423 (grub_xnu_devprop_remove_device): Likewise.
30424 (grub_xnu_devprop_add_property): Likewise.
30425 (grub_xnu_devprop_add_property_utf8): Likewise.
30426 (grub_xnu_devprop_add_property_utf16): Likewise.
30427 (hextoval): Likewise.
30428 (grub_cpu_xnu_fill_devprop): Likewise.
30429 (grub_cmd_devprop_load): Likewise.
30430 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
30431 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
30432 (cmd_devprop_load): New variable.
30433 (grub_cpu_xnu_init): New function.
30434 (grub_cpu_xnu_fini): Likewise.
30435 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
30436 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
30437 (grub_cmd_xnu_devtree): Likewise.
30438 (hextoval): New function.
30439 (unescape): Likewise.
30440 (grub_xnu_fill_devicetree): Likewise.
30441
30442 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
30443 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
30444
0945f181
VS
304452009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
30446
30447 Workaround for broken ATI VBE.
30448
30449 * video/i386/pc/vbe.c (last_set_mode): New variable.
30450 (grub_vbe_set_video_mode): Set 'last_set_mode'.
30451 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
30452 (grub_video_vbe_setup): Don't check for reserved flag.
30453
0ad46fd7 304542009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
30455
30456 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
30457 the `find' command.
30458
c179ebe4
VS
304592009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
30460
30461 UUID support for HFS.
30462
30463 * fs/hfs.c (grub_hfs_uuid): New function.
30464 (grub_hfs_fs): New value .uuid.
30465 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
30466
0ad46fd7 304672009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
30468
30469 Fix a segfault with parsing unknown long options.
30470
30471 * util/grub-mkrelpath.c (options): Zero terminate it.
30472
c4a3e41a
CPE
304732009-12-13 Carles Pina i Estany <carles@pina.cat>
30474
30475 * include/grub/misc.h (grub_puts): New declaration.
30476 (grub_puts_): Likewise.
a22008a6 30477 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
30478 (grub_puts_): Likewise.
30479
2e8a7602
RM
304802009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30481
30482 * util/grub-probe.c (probe): Improve error message.
30483
b50b77b9
RM
304842009-12-13 Robert Millan <rmh.grub@aybabtu.com>
30485
30486 * loader/i386/multiboot_elfxx.c
30487 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
30488 initialization.
30489
304902009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30491
30492 Relocator framework
30493
30494 * loader/i386/xnu_helper.S: Removed. All users updated.
30495 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
30496 (relocator_mod_SOURCES): New variable.
30497 (relocator_mod_CFLAGS): Likewise.
30498 (relocator_mod_LDFLAGS): Likewise.
30499 (relocator_mod_ASFLAGS): Likewise.
30500 * conf/x86_64.rmk: Likewise.
30501 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
30502 (grub_multiboot_payload_entry_offset): Likewise.
30503 (grub_multiboot_forward_relocator): Likewise.
30504 (grub_multiboot_forward_relocator_end): Likewise.
30505 (grub_multiboot_backward_relocator): Likewise.
30506 (grub_multiboot_backward_relocator_end): Likewise.
30507 (grub_multiboot_payload_eip): New variable.
30508 (grub_multiboot_payload_orig): Likewise.
30509 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
30510 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
30511 * include/grub/i386/memory.h
30512 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
30513 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
30514 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
30515 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
30516 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
30517 * include/grub/i386/relocator.h: New file.
30518 * include/grub/x86_64/relocator.h: Likewise.
30519 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
30520 (XNU_RELOCATOR): New macro.
30521 (grub_xnu_launcher_start): Remove.
30522 (grub_xnu_launcher_end): Likewise.
30523 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
30524 (grub_xnu_heap_real_start): Remove.
30525 (grub_xnu_heap_start): Change to void *. All users updated.
30526 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
30527 * lib/i386/relocator.c: New file.
30528 * lib/i386/relocator_asm.S: Likewise.
30529 * lib/i386/relocator_backward.S: Likewise.
30530 * lib/mips/relocator.c: Likewise.
30531 * lib/mips/relocator_asm.S: Likewise.
30532 * lib/relocator.c: Likewise.
30533 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
30534 (entry): Removed.
30535 (playground): Likewise.
30536 (grub_multiboot_payload_orig): New variable.
30537 (grub_multiboot_payload_dest): Likewise.
30538 (grub_multiboot_payload_size): Likewise.
30539 (grub_multiboot_payload_eip): Likewise.
30540 (grub_multiboot_payload_esp): Likewise.
30541 (grub_multiboot_boot): Use grub_relocator32_boot.
30542 (grub_multiboot_unload): Free relocators.
30543 (grub_multiboot): Setup stack. Use relocators.
30544 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
30545 (grub_multiboot_load_elfXX): Use relocators.
30546 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
30547 (grub_multiboot_payload_size): Likewise.
30548 (grub_multiboot_payload_dest): Likewise.
30549 (grub_multiboot_payload_entry_offset): Likewise.
30550 (grub_multiboot_forward_relocator): Likewise.
30551 (grub_multiboot_backward_relocator): Likewise.
30552 (grub_multiboot_real_boot): Likewise.
30553 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
30554 (grub_xnu_entry_point): Likewise.
30555 (grub_xnu_arg1): Likewise.
30556 (grub_xnu_stack): Likewise.
30557 (grub_xnu_launch): Removed.
30558 (grub_xnu_boot_resume): New function.
30559 (grub_xnu_boot): Use relocators.
30560 * loader/i386/xnu_helper.S: Removed.
30561 * loader/xnu.c (grub_xnu_heap_start): New variable.
30562 (grub_xnu_heap_size): Likewise.
30563 (grub_xnu_heap_malloc): Use relocators.
30564 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
30565
29eb90c6
VS
305662009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
30567
30568 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
30569 anything.
30570
31027430
CPE
305712009-12-13 Carles Pina i Estany <carles@pina.cat>
30572
30573 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
30574 GRUB_ERR_NONE before calling grub_env_set.
30575
dc0c71d9
RM
305762009-12-12 Robert Millan <rmh@aybabtu.com>
30577
30578 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
30579 * genmk.rb (video): New variable.
30580 (CLEANFILES, VIDEOFILES): Add #{video}.
30581 (#{video}): New target rule.
30582 * genvideolist.sh: New file.
30583 * Makefile.in (pkglib_DATA): Add video.lst.
30584 (video.lst): New target rule.
30585 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
30586 `video.lst'.
30587 * util/grub.d/30_os-prober.in: Replace `vbe' with
30588 ${GRUB_VIDEO_BACKEND}.
30589
2a4bfcf0
RM
305902009-12-11 Robert Millan <rmh.grub@aybabtu.com>
30591
30592 * THANKS: Add David Miller.
30593
2a3aa4d5
RM
305942009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
30595
30596 libpciaccess support.
30597
30598 * Makefile.in (LIBPCIACCESS): New variable.
30599 (enable_grub_emu_pci): Likewise.
30600 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
30601 util/pci.c and commands/lspci.c.
30602 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
30603 * configure.ac (grub-emu-pci): New option.
30604 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
30605 (grub_pci_device_unmap_range): Likewise.
30606 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
30607 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
30608 (grub_pci_address_t) [!GRUB_UTIL]: New type.
30609 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
30610 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
30611 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
30612 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
30613 * include/grub/pciutils.h: New file.
30614 * util/pci.c: Likewise.
30615
0ad46fd7 306162009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
30617
30618 * util/misc.c: Don't include <errno.h> twice.
30619
0ad46fd7 306202009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
30621
30622 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
30623 name in an error message.
30624 (grub_biosdisk_rw): Likewise.
30625
2e59983c
VS
306262009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30627
30628 Eliminate NTFS 4Gib barrier.
30629
30630 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
30631 (read_run_data): Likewise.
30632 (grub_ntfs_read_run_list): Likewise.
30633 (grub_ntfs_read_block): Likewise.
30634 (grub_ntfs_iterate_dir): Likewise.
30635 (read_mft): Likewise.
30636 (read_data): Likewise.
30637 Use COM_LOG_LEN.
30638 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
30639 to avoid 64-bit division
30640 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
30641 (grub_ntfs_rlst): Use grub_disk_addr_t.
30642
71ee178a
VS
306432009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30644
30645 Eliminate grub-fstest 4Gib barrier.
30646
30647 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
30648 (read_file): Fix error reporting.
30649
2520d4b8
VS
306502009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30651
30652 Eliminate hexdump 4Gib barrier.
30653
30654 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
30655 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
30656
e1f27065
VS
306572009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
30658
30659 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
30660 Fixes amarsh bug.
30661
1a0f7f45
RM
306622009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
30663
30664 Remove miscellaneous files in distclean target.
30665
30666 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
30667
c631d9fb
CW
306682009-12-09 Colin Watson <cjwatson@ubuntu.com>
30669
30670 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
30671 if they're already set. This resolves the conflict between my
30672 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
30673 fixing the --grub-probe option again.
30674 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
30675 change on 2009-10-06, so that we now once again source
30676 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
30677
7c7b6106
RM
306782009-12-08 Robert Millan <rmh.grub@aybabtu.com>
30679
30680 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
30681 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
30682 `util/devicemap.c'.
30683
e3069ec1
CPE
306842009-12-08 Carles Pina i Estany <carles@pina.cat>
30685
30686 * include/grub/misc.h (grub_printf_): New declaration.
30687 * kern/misc.c (grub_printf_): New definition.
30688 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
30689 instead of `grub_printf' and `_'.
30690 * normal/menu_entry.c (store_completion): Likewise.
30691 (run): Likewise.
30692 (grub_menu_entry_run): Likewise.
30693 * normal/menu_text.c (grub_wait_after_message): Likewise.
30694 (notify_booting): Likewise.
30695 (notify_fallback): Likewise.
30696 (notify_execution_failure): Likewise.
30697
d6ceebf1
CW
306982009-12-07 Colin Watson <cjwatson@ubuntu.com>
30699
30700 * configure.ac: Check for vasprintf.
30701 * util/misc.c (asprintf): Move allocation from here ...
30702 (vasprintf): ... to here. New function.
30703 (xasprintf): New function.
30704 * include/grub/util/misc.h (vasprintf, xasprintf): Add
30705 prototypes.
30706 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
30707 * util/grub-mkfont.c (write_font): Likewise.
30708 * util/grub-probe.c (probe): Likewise.
30709 * util/hostdisk.c (make_device_name): Likewise.
30710
de6daa8b
DM
307112009-12-06 David S. Miller <davem@sunset.davemloft.net>
30712
30713 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
30714 anything even prefixed with 'cdrom' as a cdrom.
30715
0ad46fd7 307162009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
30717
30718 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
30719 mount points.
30720
98d3dc02
CPE
307212009-12-05 Carles Pina i Estany <carles@pina.cat>
30722
30723 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
30724 grub_gettext_msg_list.
30725 (grub_gettext_gettranslation_from_position): Return const char *
30726 and not char *.
a2c1332b 30727 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
30728 returns from the list if existing there.
30729 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
30730 (grub_gettext_delete_list): Delete the list.
30731 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
30732 lang environment variable is changed.
30733 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
30734
b283f108
VS
307352009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30736
30737 Rename kernel.mod to kernel.img.
30738
30739 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
30740 (kernel_mod_EXPORTS): Rename to ...
30741 (kernel_img_EXPORTS): ... this.
30742 (kernel_mod_SOURCES): Rename to ...
30743 (kernel_img_SOURCES): ... this.
30744 (kernel_mod_HEADERS): Rename to ...
30745 (kernel_img_HEADERS): ... this. All users updated.
30746 (kernel_mod_CFLAGS): Rename to ...
30747 (kernel_img_CFLAGS): ... this.
30748 (kernel_mod_ASFLAGS): Rename to ...
30749 (kernel_img_ASFLAGS): ... this.
30750 (kernel_mod_LDFLAGS): Rename to ...
30751 (kernel_img_LDFLAGS): ... this.
30752 * conf/x86_64-efi.rmk: Likewise.
30753 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
30754 (read_kernel_image): ... this. All users updated.
30755 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
30756
69055f8a
CPE
307572009-12-05 Carles Pina i Estany <carles@pina.cat>
30758
30759 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
30760 (print_spaces): New function.
30761 (grub_print_ucs4): New function.
30762 (getstringwidth): New function.
30763 (print_message_indented): New function.
30764 (print_message): Gettexttize strings using print_message_indented.
30765 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
30766 width.
30767 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 30768 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
30769 Gettextize.
30770 * normal/menu_entry.c (store_completion): Cleanup the gettextized
30771 string.
30772 (run): Likewise.
30773 (grub_menu_entry_run): Likewise.
30774 * PO/POTFILES: Add normal/menu_entry.c.
30775
f616f51c
VS
307762009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
30777
30778 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
30779
57bbe3be
CPE
307802009-12-05 Carles Pina i Estany <carles@pina.cat>
30781
30782 * util/grub-install.in: Install gettext .mo files.
30783 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
30784
013d67a1
CPE
307852009-12-05 Carles Pina i Estany <carles@pina.cat>
30786
30787 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
30788 grub_dprintf.
30789
fb954db0
RM
307902009-12-05 Robert Millan <rmh.grub@aybabtu.com>
30791
30792 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
30793 non-firmware-dependant one in realmode.S takes precedence.
30794
6b8474f8
RM
307952009-12-04 Robert Millan <rmh.grub@aybabtu.com>
30796
30797 * commands/halt.c: Replace misc arch-specific headers with
30798 `<grub/misc.h>'.
30799 * commands/reboot.c: Likewise.
30800 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
30801 `<grub/misc.h>'.
30802 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
30803 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
30804 (kernel_img_SOURCES): ... to here.
30805
30806 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
30807 * include/grub/i386/pc/init.h: Likewise.
30808 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
30809 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30810
30811 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
30812
30813 * include/grub/i386/halt.h: Remove.
30814 * include/grub/i386/reboot.h: Likewise.
30815
30816 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
30817
4b2e6ca2
DM
308182009-12-03 David S. Miller <davem@sunset.davemloft.net>
30819
30820 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
30821 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
30822 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
30823 "progname.h"
30824 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30825 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30826 (usage): Add missing comma in printf.
30827
5239348f
RM
308282009-12-02 Robert Millan <rmh.grub@aybabtu.com>
30829
30830 Use the same reboot approach on i386 coreboot and qemu as we do on
30831 BIOS.
30832
30833 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
30834 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
30835 * kern/i386/reboot.c: Remove.
30836 * include/grub/i386/reboot.h (grub_reboot): Export function.
30837 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
30838 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
30839 0xf000:0xfff0 instead of 0xffff:0x0000.
30840 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
30841 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
30842
ef34cbd4
RM
308432009-11-30 Robert Millan <rmh.grub@aybabtu.com>
30844
30845 Fix $srcdir != $objdir build.
30846
30847 * Makefile.in (po/%.po): Rewrite as ...
30848 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
30849
dc9837ea
ST
308502009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
30851
30852 Fix GNU/Hurd grub-install crash.
30853 * util/grub-probe.c (probe): Try to access `path' only when it is not
30854 NULL.
30855
2f857f98
VS
308562009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30857
30858 Correct module naming.
30859
30860 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30861 (GRUB_MOD_INIT(efi_uga)): ... to this
30862 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30863 (GRUB_MOD_FINI(efi_uga)): ... to this
30864 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
30865 (GRUB_MOD_INIT(efi_gop)): ... to this
30866 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
30867 (GRUB_MOD_FINI(efi_gop)): ... to this
30868
c5448046
RM
308692009-11-28 Robert Millan <rmh.grub@aybabtu.com>
30870
30871 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
30872 translatable.
30873 (usage): Translate `arg' strings using gettext().
30874 Thanks to Jordi Mallach for the suggestion.
30875
c85184ad
VS
308762009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30877
30878 GOP support. Based on patch from Bean
30879 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
30880
30881 * video/efi_gop.c: New file.
30882 * include/grub/efi/graphics_output.h: Likewise.
30883 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
30884 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
30885 variables.
30886 * conf/x86_64-efi.rmk: Likewise.
30887
8a4c48d8
VS
308882009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
30889
30890 Rename efi_fb to efi_uga.
30891
30892 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30893 'efi_uga.mod'.
30894 (efi_fb_mod_SOURCES): Rename this ...
30895 (efi_uga_mod_SOURCES): ... to this.
30896 (efi_fb_mod_CFLAGS): Rename this ...
30897 (efi_uga_mod_CFLAGS): ... to this.
30898 (efi_fb_mod_LDFLAGS): Rename this ...
30899 (efi_uga_mod_LDFLAGS): ... to this.
30900 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
30901 'efi_uga.mod'.
30902 (efi_fb_mod_SOURCES): Rename this ...
30903 (efi_uga_mod_SOURCES): ... to this.
30904 (efi_fb_mod_CFLAGS): Rename this ...
30905 (efi_uga_mod_CFLAGS): ... to this.
30906 (efi_fb_mod_LDFLAGS): Rename this ...
30907 (efi_uga_mod_LDFLAGS): ... to this.
30908 * video/efi_fb.c: Move this ...
30909 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
30910
fb6c1a7b
RM
309112009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30912
30913 * po/README: New file. Explain our PO file workflow.
30914
3bc7896c
RM
309152009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30916
30917 * po/ChangeLog: Remove. Move relevant entries back to ...
30918 * ChangeLog: ... here.
30919 * po/ca.po: Remove (now handled by TLP).
30920 * po/id.po: Likewise.
30921 * po/zh_CN.po: Likewise.
30922 * Makefile.in (LINGUAS): Initialize in a way that supports
30923 empty set.
30924
9ed4841d
RM
309252009-11-27 Robert Millan <rmh.grub@aybabtu.com>
30926
30927 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
30928 reliing on po/LINGUAS.
30929 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
30930 (po/%.po): ... this.
30931
0ad46fd7 309322009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
30933
30934 * util/i386/efi/grub-mkimage.c: Include "progname.h".
30935 (main): Use `program_name' instead of nonexistent `progname'.
30936
e30dd392
FZ
309372009-11-26 Felix Zielcke <fzielcke@z-51.de>
30938
30939 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
30940 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
30941
7656de4f
RM
309422009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30943
30944 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
30945 commit.
30946 * conf/i386-efi.rmk: Likewise.
30947 * conf/i386-ieee1275.rmk: Likewise.
30948 * conf/powerpc-ieee1275.rmk: Likewise.
30949 * conf/sparc64-ieee1275.rmk: Likewise.
30950 * conf/x86_64-efi.rmk: Likewise.
30951
db77c4d4
FZ
309522009-11-26 Felix Zielcke <fzielcke@z-51.de>
30953
30954 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
30955
a755bb04
FZ
309562009-11-26 Felix Zielcke <fzielcke@z-51.de>
30957
30958 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
30959
8a4c07fd
RM
309602009-11-26 Robert Millan <rmh.grub@aybabtu.com>
30961
30962 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
30963 (grub_mkdevicemap_SOURCES): New variable.
30964 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
30965 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
30966 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
30967 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
30968 (grub_mkdevicemap_SOURCES): Remove.
30969 * conf/i386-efi.rmk: Likewise.
30970 * conf/i386-ieee1275.rmk: Likewise.
30971 * conf/i386-pc.rmk: Likewise.
30972 * conf/powerpc-ieee1275.rmk: Likewise.
30973 * conf/sparc64-ieee1275.rmk: Likewise.
30974 * conf/x86_64-efi.rmk: Likewise.
30975 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
30976 (usage): Fix strings to use `program_name'.
30977 (main): Initialize gettext.
30978 * util/grub-editenv.c: Likewise.
30979 * util/grub-emu.c: Likewise.
30980 * util/grub-fstest.c: Likewise.
30981 * util/grub-mkdevicemap.c: Likewise.
30982 * util/grub-mkfont.c: Likewise.
30983 * util/grub-mkrelpath.c: Likewise.
30984 * util/grub-pe2elf.c: Likewise.
30985 * util/grub-probe.c: Likewise.
30986 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
30987 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
30988 * util/sparc64/ieee1275/grub-setup.c: Likewise.
30989
30990 * util/misc.c: Include `"progname.h"'.
30991 (progname): Remove variable.
30992 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
30993
6f61ed55
FZ
309942009-11-25 Felix Zielcke <fzielcke@z-51.de>
30995
30996 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
30997 printf and print a newline after the menuentry header line.
30998 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
30999
f022876b
FZ
310002009-11-25 Felix Zielcke <fzielcke@z-51.de>
31001
31002 autoconf >= 2.60 support $(localedir).
31003
31004 * INSTALL: Note that autoconf 2.60 is required.
31005 * configure.ac (AC_PREREQ): Bump to 2.60.
31006 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
31007 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
31008
6717926e
YB
310092009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
31010
31011 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
31012 aclocal is run.
31013
08806a54
RM
310142009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31015
31016 * normal/main.c (grub_normal_read_line): Fix off-by-one
31017 buffer overflow.
31018
13b33fba
RM
310192009-11-25 Robert Millan <rmh.grub@aybabtu.com>
31020
31021 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
31022 "parser.grub" in grub_command_execute() call.
31023
4a8572e9
CPE
310242009-11-24 Carles Pina i Estany <carles@pina.cat>
31025
31026 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
31027 * conf/i386-efi.rmk: Likewise.
31028 * conf/i386-ieee1275.rmk: Likewise.
31029 * conf/i386-pc.rmk: Likewise.
31030 * conf/powerpc-ieee1275.rmk: Likewise.
31031 * conf/sparc64-ieee1275.rmk: Likewise.
31032 * conf/x86_64-efi.rmk: Likewise.
31033 * gettext/gettex.c: Include <grub/i18n.h>.
31034 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
31035 here ...
31036 * include/grub/i18n.h: ... to here
31037 * include/grub/i18n.h: ... to here.
31038 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 31039 (grub_gettext_dummy): Move above user.
4a8572e9 31040
bee48093
FZ
310412009-11-24 Felix Zielcke <fzielcke@z-51.de>
31042
31043 * util/Makefile.in (install-local): Convert a `for' into a normal
31044 shell expansion.
31045
a031e91c
RM
310462009-11-24 Robert Millan <rmh.grub@aybabtu.com>
31047
31048 * autogen.sh: Add automake call.
31049 * config.guess: Remove.
31050 * config.sub: Likewise.
31051 * install-sh: Likewise.
31052
26bec39d
FZ
310532009-11-24 Felix Zielcke <fzielcke@z-51.de>
31054
31055 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
31056
8e2532fd
FZ
310572009-11-24 Felix Zielcke <fzielcke@z-51.de>
31058
31059 * util/Makefile.in (install-local): Convert a make `$(foreach)'
31060 function to a normal shell `for'.
31061
fefa1b7d
FZ
310622009-11-24 Felix Zielcke <fzielcke@z-51.de>
31063
31064 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31065
4501250b
FZ
310662009-11-24 Felix Zielcke <fzielcke@z-51.de>
31067
31068 * util/grub-mkrelpath.c: New file.
31069 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
31070 (grub_mkrelpath_SOURCES): New variable.
31071 * include/grub/util/misc.h: New function prototype.
31072 * util/misc.c (make_system_path_relative_to_its_root): New function.
31073
31074 * util/grub-mkconfig_lib.in (bindir): New variable.
31075 (grub_mkrelpath): Likewise.
31076 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
31077
31078 * util/probe.c (probe): Make the file path relative to its root.
31079 Change a info message to use the GRUB path. Enable again the
31080 check if we can read the file with GRUB facilities.
31081
31082 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
31083 to its root.
31084
11d9778b
FZ
310852009-11-24 Felix Zielcke <fzielcke@z-51.de>
31086
31087 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
31088 platform.
31089
4465287d
FZ
310902009-11-24 Felix Zielcke <fzielcke@z-51.de>
31091
31092 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
31093 strncmp().
31094
62b47f22
FZ
310952009-11-24 Felix Zielcke <fzielcke@z-51.de>
31096
31097 * util/getroot.c (grub_util_is_dmraid): New function.
31098 (grub_util_get_dev_abstraction): Treat dmraid and multipath
31099 devices as normal ones, not as LVM.
31100
1eafb9b9 311012009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
31102
31103 * conf/common.rmk: Add grub-gettext_lib target and updates
31104 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
31105 LDFLAGS.
31106 * gettext/gettext.c: New file. (Reads mo files).
31107 * include/grub/file.h (grub_file_pread): New prototype.
31108 * include/grub/i18n.h (_): New prototype.
31109 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
31110 prototypes.
31111 * kern/misc.c (grub_gettext_dummy): New function.
31112 * normal/menu_text.c: Include <grub/i18n.h>.
31113 * normal/menu_text.c (print_timeout): Gettexttize string.
31114 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
31115 * po/POTFILES: Add `normal/menu_text.c'.
31116 * po/ca.po: Add new translations.
c3ea6bd4
CPE
31117 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
31118 gettext module and defines locale_dir and lang in grub.cfg.
31119 * NEWS: Add gettext support.
31120
0fdb2568
RM
311212009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31122
31123 * util/hostdisk.c: Include `<grub/i18n.h>'.
31124 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
31125 (make_device_name): Rewrite using asprintf.
31126 (convert_system_partition_to_system_disk): Replace 0 with NULL.
31127 (find_system_device): If a device is not found, generate one just
31128 by reusing the OS path name.
31129 (read_device_map): Make it permissible for device.map not to exist.
31130
f515aa62
RM
311312009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31132
31133 * script/sh/execute.c: Move from here ...
31134 * script/execute.c: ... to here. Update all users.
31135 * script/sh/function.c: Move from here ...
31136 * script/function.c: ... to here. Update all users.
31137 * script/sh/lexer.c: Move from here ...
31138 * script/lexer.c: ... to here. Update all users.
31139 * script/sh/main.c: Move from here ...
31140 * script/main.c: ... to here. Update all users.
31141 * script/sh/parser.y: Move from here ...
31142 * script/parser.y: ... to here. Update all users.
31143 * script/sh/script.c: Move from here ...
31144 * script/script.c: ... to here. Update all users.
31145
f84b481b
RM
311462009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31147
31148 * configure.ac: Detect all `emu' platforms. Define
31149 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
31150 --enable-grub-emu logic. Disable include/grub/machine
31151 symlink on `emu' platforms.
31152
31153 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
31154 * gensymlist.sh.in: Likewise.
31155
31156 * include/grub/i386/coreboot/machine.h: Remove file.
31157 * include/grub/i386/efi/machine.h: Likewise.
31158 * include/grub/i386/ieee1275/machine.h: Likewise.
31159 * include/grub/i386/pc/machine.h: Likewise.
31160 * include/grub/i386/qemu/machine.h: Likewise.
31161 * include/grub/powerpc/ieee1275/machine.h: Likewise.
31162 * include/grub/sparc64/ieee1275/machine.h: Likewise.
31163 * include/grub/x86_64/efi/machine.h: Likewise.
31164
31165 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
31166 * commands/halt.c: Likewise.
31167 * commands/reboot.c: Likewise.
31168 * include/grub/autoefi.h: Likewise.
31169 * include/grub/i386/at_keyboard.h: Likewise.
31170 * include/grub/i386/kernel.h: Likewise.
31171 * include/grub/i386/loader.h: Likewise.
31172 * include/grub/i386/pc/memory.h: Likewise.
31173 * kern/dl.c: Likewise.
31174 * kern/i386/coreboot/init.c: Likewise.
31175 * loader/i386/bsd.c: Likewise.
31176 * loader/i386/linux.c: Likewise.
31177 * loader/multiboot_loader.c: Likewise.
31178 * term/i386/pc/serial.c: Likewise.
31179 * term/usb_keyboard.c: Likewise.
31180
31181 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
31182 `<grub/machine/machine.h>'
31183 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
31184 * util/misc.c: Remove `<grub/machine/machine.h>' and
31185 `<grub/machine/time.h>'.
31186
31187 * Makefile.in (enable_grub_emu): Remove variable.
31188 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
31189
31190 * conf/any-emu.rmk: New file.
31191 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
31192 (grub_emu_init.c): Move from here ...
31193 * conf/any-emu.rmk: ... to here.
31194
31195 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
31196 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
31197 * conf/any-emu.rmk: ... to here.
31198
4efeab03
RM
311992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31200
31201 * include/grub/parser.h (grub_parser_register): Document need
31202 of `name' parameter.
31203 * normal/main.c (grub_normal_read_line): Simplify prompt string.
31204 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
31205 "sh" to "grub".
31206
ea1dd8bf
RM
312072009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31208
31209 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
31210 `$(XGETTEXT)'.
31211 * include/grub/i18n.h (N_): New macro.
31212 * util/mkisofs/mkisofs.h: Likewise.
31213 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
31214 around N_().
31215 (usage): Use gettext() to translate help strings when printing them.
31216
0c140626
RM
312172009-11-23 Robert Millan <rmh.grub@aybabtu.com>
31218
31219 Based on patch from Bean
31220 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
31221
31222 * video/efi_fb.c: New file.
31223 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
31224 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
31225 variables.
31226 * conf/x86_64-efi.rmk: Likewise.
31227
87d58298
RM
312282009-11-22 Robert Millan <rmh.grub@aybabtu.com>
31229
31230 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
31231 * util/i386/pc/grub-setup.c: Likewise.
31232
994cc3a3
ST
312332009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
31234
31235 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
31236 <hurd/fs.h>
31237 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
31238 file_get_storage_info to implement grub_guess_root_device.
31239
26a61d6a
FZ
312402009-11-21 Felix Zielcke <fzielcke@z-51.de>
31241
31242 * Makefile.in (target): Use make's builtin $(shell) function
31243 instead of calling directly $(SHELL) to create the locale directories,
31244 inside the $(foreach) function.
31245
74ff1dd5
FZ
312462009-11-21 Felix Zielcke <fzielcke@z-51.de>
31247
31248 * util/grub-mkrescue.in: Print an error and usage if output option
31249 has not been given.
31250
0b787d0e
FZ
312512009-11-21 Felix Zielcke <fzielcke@z-51.de>
31252
31253 Patch from Loïc Minier <loic.minier@ubuntu.com>.
31254 * util/grub.d/30_os-prober.in: Cope with Linux entries where
31255 root and /boot are on different devices.
31256
1164b270
RM
312572009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31258
31259 Fix build for srcdir != objdir.
31260
31261 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
31262 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
31263 $(srcdir).
31264 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
31265 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
31266 reference for input.
31267
13774a2f
RM
312682009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31269
31270 * util/grub-mkrescue.in: Use source directory direcly (without copiing
31271 or hardlinking it). Remove -J option, Joliet is not compatible with
31272 multiple source directories.
31273
efda854e
RM
312742009-11-21 Carles Pina i Estany <carles@pina.cat>
312752009-11-21 Robert Millan <rmh.grub@aybabtu.com>
31276
31277 * util/grub-mkrescue.in: Recognize `--override-directory' option.
31278 (process_input_dir): New function. Process an arbitrary input
31279 directory.
31280 Misc adjustments to support both "override mode" and system-wide mode.
31281
6c09890c
FZ
312822009-11-20 Felix Zielcke <fzielcke@z-51.de>
31283
31284 * configure.ac (UNIFONT_BDF): Rename to ...
31285 (FONT_SOURCE): ... this. Update all users.
31286
a797824f
FZ
312872009-11-20 Felix Zielcke <fzielcke@z-51.de>
31288
31289 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
31290 to the list of unifont files to look for.
31291
cd4f42b0
RM
312922009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31293
31294 Patch from Joe Auricchio <jauricchio@gmail.com>
31295 * commands/minicmd.c (grub_mini_cmd_clear): New function.
31296 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
31297 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
31298
393c783d
FZ
312992009-11-19 Felix Zielcke <fzielcke@z-51.de>
31300
31301 * Makefile.in (install-local): Add a missing backslash.
31302
b2f1e327
FZ
313032009-11-19 Felix Zielcke <fzielcke@z-51.de>
31304
31305 * include/grub/x86_64/io.h: New file.
31306
f577f7a0
RM
313072009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31308
31309 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
31310 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
31311 Include `"progname.h"'.
31312 (main): Initialize gettext.
31313 * util/i386/pc/grub-setup.c: Gettexttize.
31314 * util/i386/pc/grub-mkimage.c: Likewise.
31315
31316 * Makefile.in (po/*.po): Redefine as ...
31317 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
31318
3bc7896c
RM
31319 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
31320
c37943b6
RM
313212009-11-19 Robert Millan <rmh.grub@aybabtu.com>
31322
31323 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
31324 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
31325 (program_name): Remove.
31326 (main): Initialize gettext support.
6323f705
RM
31327 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
31328 Include `<libintl.h>'.
31329 (_): New macro.
c37943b6
RM
31330
31331 * util/mkisofs/eltorito.c: Gettexttize.
31332 * util/mkisofs/joliet.c: Likewise.
31333 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
31334 * util/mkisofs/multi.c: Likewise.
31335 * util/mkisofs/rock.c: Likewise.
31336 * util/mkisofs/tree.c: Likewise.
31337 * util/mkisofs/write.c: Likewise.
31338
3bc7896c
RM
31339 * po/POTFILES: Update with new files.
31340
5ce77c6e
RM
313412009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31342
31343 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
31344 * util/mkisofs/iso9660.h: Likewise.
31345 * util/mkisofs/joliet.c: Likewise.
31346 * util/mkisofs/mkisofs.c: Likewise.
31347 * util/mkisofs/mkisofs.h: Likewise.
31348 * util/mkisofs/rock.c: Likewise.
31349 * util/mkisofs/tree.c: Likewise.
31350 * util/mkisofs/write.c: Likewise.
31351
31352 * util/mkisofs/eltorito.c (rcsid): Remove.
31353 * util/mkisofs/hash.c: Likewise.
31354 * util/mkisofs/joliet.c: Likewise.
31355 * util/mkisofs/name.c: Likewise.
31356 * util/mkisofs/rock.c: Likewise.
31357 * util/mkisofs/tree.c: Likewise.
31358 * util/mkisofs/write.c: Likewise.
31359
1dabbc77
RM
313602009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31361
31362 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
31363 instead of static allocation.
31364 * util/mkisofs/match.h: Likewise.
31365
633877cb
RM
313662009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31367
3bc7896c
RM
31368 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
31369 and `util/grub.d/10_linux.in'.
633877cb
RM
31370 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
31371 translatable Shell files.
31372
af1c0c85
RM
313732009-11-18 Robert Millan <rmh.grub@aybabtu.com>
31374
31375 * Makefile.in ($(srcdir)/aclocal.m4): New target.
31376
769ae37b
RM
313772009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31378
31379 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 31380 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
31381 * util/grub.d/10_kfreebsd.in (bindir): New variable.
31382 Add gettext initialization.
31383 (kfreebsd_entry): Make menuentry output translatable.
31384
313852009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31386
31387 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
31388 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
31389 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
31390 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
31391 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 31392 * po/LINGUAS: New file.
769ae37b
RM
31393
313942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31395
31396 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
31397 other things).
31398 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
31399 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
31400 bindtextdomain() calls for gettext initialization.
31401
314022009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31403
31404 * gnulib/progname.c: New file (imported from Gnulib).
31405 * gnulib/progname.h: Likewise.
31406 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
31407 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
31408 (usage): Replace `progname' with `program_name'.
31409 (main): Use set_program_name() for program name initialization.
31410
314112009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31412
31413 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
31414 from here ...
31415 * Makefile.in (CPPFLAGS): ... to here.
31416
314172009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31418
31419 * aclocal.m4: Move from here ...
31420 * acinclude.m4: ... to here.
31421 * autogen.sh: Add call to `aclocal'.
31422 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
31423
314242009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31425
31426 * Makefile.in (CLEANFILES): Add `po/*.mo'.
31427 (LINGUAS): New variable.
31428 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
31429 (install-local): Install MO files.
31430 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
31431 * include/grub/i18n.h: New file.
3bc7896c
RM
31432 * po/POTFILES: New file.
31433 * po/ca.po: New file.
769ae37b
RM
31434 * util/grub.d/10_linux.in (bindir): New variable.
31435 Add gettext initialization.
31436 (linux_entry): Make menuentry output translatable.
31437 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
31438 (usage): Make --help output translatable.
31439 (main): Initialize gettext.
31440
02c0a6ad
RM
314412009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31442
31443 * import_gcry.py: New file (written by Vladimir with minor
31444 adjustments).
31445 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
31446 ciphers.
31447 * INSTALL: Document that Python is required for bootstrap.
31448
314492009-11-17 Robert Millan <rmh.grub@aybabtu.com>
31450
31451 Import ciphers from libgcrypt 1.4.4.
31452
31453 * lib/libgcrypt/cipher/ChangeLog
31454 * lib/libgcrypt/cipher/ac.c
31455 * lib/libgcrypt/cipher/arcfour.c
31456 * lib/libgcrypt/cipher/bithelp.h
31457 * lib/libgcrypt/cipher/blowfish.c
31458 * lib/libgcrypt/cipher/camellia-glue.c
31459 * lib/libgcrypt/cipher/camellia.c
31460 * lib/libgcrypt/cipher/camellia.h
31461 * lib/libgcrypt/cipher/cast5.c
31462 * lib/libgcrypt/cipher/cipher.c
31463 * lib/libgcrypt/cipher/crc.c
31464 * lib/libgcrypt/cipher/des.c
31465 * lib/libgcrypt/cipher/dsa.c
31466 * lib/libgcrypt/cipher/ecc.c
31467 * lib/libgcrypt/cipher/elgamal.c
31468 * lib/libgcrypt/cipher/hash-common.c
31469 * lib/libgcrypt/cipher/hash-common.h
31470 * lib/libgcrypt/cipher/hmac-tests.c
31471 * lib/libgcrypt/cipher/md.c
31472 * lib/libgcrypt/cipher/md4.c
31473 * lib/libgcrypt/cipher/md5.c
31474 * lib/libgcrypt/cipher/primegen.c
31475 * lib/libgcrypt/cipher/pubkey.c
31476 * lib/libgcrypt/cipher/rfc2268.c
31477 * lib/libgcrypt/cipher/rijndael-tables.h
31478 * lib/libgcrypt/cipher/rijndael.c
31479 * lib/libgcrypt/cipher/rmd.h
31480 * lib/libgcrypt/cipher/rmd160.c
31481 * lib/libgcrypt/cipher/rsa.c
31482 * lib/libgcrypt/cipher/seed.c
31483 * lib/libgcrypt/cipher/serpent.c
31484 * lib/libgcrypt/cipher/sha1.c
31485 * lib/libgcrypt/cipher/sha256.c
31486 * lib/libgcrypt/cipher/sha512.c
31487 * lib/libgcrypt/cipher/tiger.c
31488 * lib/libgcrypt/cipher/twofish.c
31489 * lib/libgcrypt/cipher/whirlpool.c
31490
af2f93ac
RM
314912009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31492
31493 Fix build for systems without error().
31494
31495 * gnulib/error.c: New file (imported from Gnulib).
31496 * gnulib/error.h: Likewise.
31497 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
31498 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
31499 (this variable is now used by error()).
31500
73fb3dd5
FZ
315012009-11-16 Felix Zielcke <fzielcke@z-51.de>
31502
814f5e96
FZ
31503 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
31504 instead of relying that char is signed.
73fb3dd5 31505
a691ca33
VS
315062009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
31507
31508 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
31509 blocksize different from specified.
31510 (grub_pxefs_read): Likewise.
31511
2af8f0f4
FZ
315122009-11-16 Felix Zielcke <fzielcke@z-51.de>
31513
31514 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
31515
31516 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
31517 (grub_ata_readwrite): Likewise. Update 2 format strings.
31518 (grub_atapi_read): Likewise.
31519
31520 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
31521 * conf/i386.rmk (pkglib_MODULES): ... to here ...
31522 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
31523 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
31524 (ata_mod_LDFLAGS): Move from here ...
31525 * conf/i386.rmk: ... to here ...
31526 * conf/x86_64-efi.rmk: ... and here.
31527 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
31528 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
31529
83bdecaf
RM
315302009-11-16 Robert Millan <rmh.grub@aybabtu.com>
31531
31532 Relicense multiboot.h, with RMS' blessing.
31533
31534 * include/multiboot.h: Change to X11 license.
31535
fd6fd3d7
RM
315362009-11-15 Robert Millan <rmh.grub@aybabtu.com>
31537
31538 Support --version in grub-mkisofs.
31539
31540 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
31541 (OPTION_VERSION): New macro.
31542 (ld_options): Recognize --version.
31543 (usage): Move `program_name' from here ...
31544 (program_name): ... to here. Add `static' qualifier.
31545 (main): Recognize `OPTION_VERSION'.
31546
16a88c49
FZ
315472009-11-15 Felix Zielcke <fzielcke@z-51.de>
31548
31549 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
31550 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
31551
a4158476
RM
315522009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31553
31554 Fix help2man generation for mkisofs.
31555
31556 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
31557 (usage): Send output to stdout (rather than stderr).
31558
fc2208b0
RM
315592009-11-14 Robert Millan <rmh.grub@aybabtu.com>
31560
31561 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
31562 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31563 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
31564 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
31565 (bin_SCRIPTS): Add `grub-mkfloppy'.
31566 (grub_mkfloppy_SOURCES): New variable.
31567
31568 * util/grub-mkrescue.in: New file.
31569 * util/i386/pc/grub-mkfloppy.in: New file.
31570
31571 * util/i386/coreboot/grub-mkrescue.in: Remove.
31572 * util/i386/pc/grub-mkrescue.in: Remove.
31573
8d0edf4a
RM
315742009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31575
31576 * include/grub/multiboot.h (struct grub_multiboot_header): Move
31577 from here ...
31578 * include/multiboot.h (struct multiboot_header): ... to here. Update
31579 all users.
31580 * include/grub/multiboot.h (struct grub_multiboot_info): Move
31581 from here ...
31582 * include/multiboot.h (struct multiboot_info): ... to here. Update
31583 all users.
31584 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
31585 from here ...
31586 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
31587 Update all users.
31588 * include/grub/multiboot.h (struct grub_mod_list): Move
31589 from here ...
31590 * include/multiboot.h (struct multiboot_mod_list): ... to here.
31591 Update all users.
31592
a73f5969
RM
315932009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31594
31595 * include/multiboot2.h (multiboot_word): Rename from this ...
31596 (multiboot2_word): ... to this. Update all users.
31597 (multiboot_header): Rename from this ...
31598 (multiboot2_header): ... to this. Update all users.
31599 (multiboot_tag_header): Rename from this ...
31600 (multiboot2_tag_header): ... to this. Update all users.
31601 (multiboot_tag_start): Rename from this ...
31602 (multiboot2_tag_start): ... to this. Update all users.
31603 (multiboot_tag_name): Rename from this ...
31604 (multiboot2_tag_name): ... to this. Update all users.
31605 (multiboot_tag_module): Rename from this ...
31606 (multiboot2_tag_module): ... to this. Update all users.
31607 (multiboot_tag_memory): Rename from this ...
31608 (multiboot2_tag_memory): ... to this. Update all users.
31609 (multiboot_tag_unused): Rename from this ...
31610 (multiboot2_tag_unused): ... to this. Update all users.
31611 (multiboot_tag_end): Rename from this ...
31612 (multiboot2_tag_end): ... to this. Update all users.
31613
1c8927f0
RM
316142009-11-13 Robert Millan <rmh.grub@aybabtu.com>
31615
31616 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
31617 this platform we should support Multiboot1 first.
31618
31619 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
31620 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
31621 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
31622
6e1e0d89
RM
316232009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31624
31625 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
31626 of write calls (converting them to fwrite() if they aren't already).
31627 (get_torito_desc): Likewise.
31628 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
31629
7f2b34d8
RM
316302009-11-12 Robert Millan <rmh.grub@aybabtu.com>
31631
31632 * util/i386/pc/grub-install.in: Move from here ...
31633 * util/grub-install.in: ... to here. Update all users.
31634
c0ef3311
CW
316352009-11-11 Colin Watson <cjwatson@ubuntu.com>
31636
31637 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
31638
e1f240ff
RM
316392009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31640
31641 Support for El Torito without floppy emulation.
31642
31643 * util/mkisofs/eltorito.c: Include `<errno.h>'.
31644 (init_boot_catalog): Improve error handling.
31645 (get_torito_desc): Don't use floppy emulation unless requested by
31646 user. Patch boot information table when requested via
31647 `-boot-info-table'.
31648 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
31649 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
31650 (use_boot_info_table): New variables.
31651 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
31652 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
31653 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
31654 `--eltorito-emul-floppy'.
31655 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
31656 and `OPTION_ELTORITO_EMUL_FLOPPY'.
31657 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
31658 (use_boot_info_table, get_731): New prototypes.
31659 * util/mkisofs/write.c (get_731): New function.
31660
af7d4de5
FZ
316612009-11-11 Felix Zielcke <fzielcke@z-51.de>
31662
31663 Fix the generation of the man page.
31664
31665 * util/pc/i386/grub-install.in: Source
31666 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
31667
2c55dbc0
RM
316682009-11-11 Robert Millan <rmh.grub@aybabtu.com>
31669
31670 Large file support for grub-mkisofs.
31671
31672 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
31673 * util/mkisofs/mkisofs.c (next_extent, last_extent)
31674 (session_start): Upgrade type to `uint64_t'. Update all users.
31675 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
31676 (struct directory_entry): Upgrade type of `starting_block' and
31677 `size' to `uint64_t'. Update all users.
31678 (struct deferred): Remove unused structure.
31679 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
31680 Update all users.
31681 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
31682 file is larger than `UINT32_MAX'.
31683 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
31684 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
31685 return value.
31686 (struct deferred_write): Upgrade type of `extent' and `size' to
31687 `uint64_t'. Update all users.
31688 (last_extent_written): Upgrade type to `uint64_t'. Update all
31689 users.
31690 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
31691 Update all users. Upgrade type of `remain' to `int64_t' and
31692 `use' to `size_t'. Use error() to handle fread() errors.
31693 (write_files): Rely on write_one_file() rather than calling
31694 xfwrite() directly.
31695
6a9cead5
FZ
316962009-11-09 Felix Zielcke <fzielcke@z-51.de>
31697
31698 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
31699
4825d790
RM
317002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31701
31702 * util/mkisofs/fnmatch.c: Remove.
31703 * util/mkisofs/getopt1.c: Likewise.
31704 * util/mkisofs/getopt.c: Likewise.
31705 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
31706 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
31707 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
31708 `gnulib/getopt1.c' and `gnulib/getopt.c'.
31709 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
31710
31711 * configure.ac: Detect `mingw32msvc' host_os.
31712 Check for lstat(), getuid() and getgid().
31713
31714 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
31715 instances of `u_char' with `uint8_t'.
31716
31717 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
31718 [!HAVE_GETUID] (getuid): New function (stub).
31719 [!HAVE_GETGID] (getgid): Likewise.
31720 [!HAVE_LSTAT] (lstat): Likewise.
31721 [!S_IROTH] (S_IROTH): New macro (dummy).
31722 [!S_IRGRP] (S_IRGRP): Likewise.
31723
84b860d8
RM
317242009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31725
31726 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
31727 conditional expression).
31728
66e9b712
RM
317292009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31730
31731 Import from Gnulib.
31732
31733 * gnulib/fnmatch.c: New file.
31734 * gnulib/fnmatch.h: Likewise.
31735 * gnulib/fnmatch_loop.c: Likewise.
31736 * gnulib/getopt.c: Likewise.
31737 * gnulib/getopt.h: Likewise.
31738 * gnulib/getopt1.c: Likewise.
31739 * gnulib/getopt_int.h: Likewise.
31740 * gnulib/gettext.h: Likewise.
31741
34f4a5b0
RM
317422009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31743
31744 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
31745 * normal/handler.c (read_handler_list): Likewise.
31746
ac451143
RM
317472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31748
31749 Misc cleanup.
31750
31751 * kern/command.c (grub_register_command_prio): Use
31752 grub_zalloc() instead of explicitly zeroing data.
31753 * kern/list.c: Include `<grub/mm.h>'.
31754 (grub_named_list_find): Replace `0' with `NULL'.
31755 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
31756 (fs_module_list): Change type to `grub_named_list_t'. Update all
31757 users.
31758 * normal/dyncmd.c (read_command_list): Add space between function
31759 call and parenthesis.
31760 * normal/handler.c (read_handler_list): Likewise.
31761
4089b167
RM
317622009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31763
31764 * normal/auth.c (punishment_delay): Moved from here ...
31765 (grub_auth_strcmp): ... to here (inside function).
31766
325f5037
RM
317672009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31768
31769 * include/grub/list.h (struct grub_named_list): Remove `const'
31770 qualifier from `name'.
31771 (struct grub_prio_list): Likewise.
31772
7aea29a3
RM
317732009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31774
31775 * normal/auth.c: Include `<grub/time.h>'.
31776 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
31777
3fd6f044
RM
317782009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31779
31780 * normal/auth.c (punishment_delay): New variable.
31781 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
31782 (grub_auth_check_authentication): Punish failed login attempts with
31783 an incremental (2^N) delay.
31784
a4cd68e4
RM
317852009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31786
31787 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
31788 path with $(srcdir).
31789
7ad12f43
VS
317902009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31791
31792 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
31793
c1129f03
RM
317942009-11-09 Robert Millan <rmh.grub@aybabtu.com>
31795
31796 * util/i386/coreboot/grub-mkrescue.in: New file.
31797 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
31798 variables.
31799
31800 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
31801 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
31802 * configure.ac: Add header and function checks to satisfy grub-mkisofs
31803 requirements.
31804 * util/mkisofs/defaults.h: New file.
31805 * util/mkisofs/eltorito.c: Likewise.
31806 * util/mkisofs/exclude.h: Likewise.
31807 * util/mkisofs/fnmatch.c: Likewise.
31808 * util/mkisofs/getopt.c: Likewise.
31809 * util/mkisofs/getopt1.c: Likewise.
31810 * util/mkisofs/hash.c: Likewise.
31811 * util/mkisofs/include/fctldefs.h: Likewise.
31812 * util/mkisofs/include/mconfig.h: Likewise.
31813 * util/mkisofs/include/prototyp.h: Likewise.
31814 * util/mkisofs/include/statdefs.h: Likewise.
31815 * util/mkisofs/iso9660.h: Likewise.
31816 * util/mkisofs/joliet.c: Likewise.
31817 * util/mkisofs/match.c: Likewise.
31818 * util/mkisofs/match.h: Likewise.
31819 * util/mkisofs/mkisofs.c: Likewise.
31820 * util/mkisofs/mkisofs.h: Likewise.
31821 * util/mkisofs/multi.c: Likewise.
31822 * util/mkisofs/name.c: Likewise.
31823 * util/mkisofs/rock.c: Likewise.
31824 * util/mkisofs/tree.c: Likewise.
31825 * util/mkisofs/write.c: Likewise.
31826
ec8bb77d
VS
318272009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
31828
31829 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
31830 being insecure.
31831
3716b12c
RM
318322009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31833
31834 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
31835 `grub-mkimage' (and use $0 when possible).
31836
b97b7b91
RM
318372009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31838
31839 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
31840 error message for excessively large memory map.
31841
04114812
RM
318422009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31843
31844 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
31845 executable bit.
31846
e4eb2373
RM
318472009-11-08 Robert Millan <rmh.grub@aybabtu.com>
31848
31849 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
31850 message for coreboot users.
31851
c926e1d5 318522009-11-07 Robert Millan <rmh.grub@aybabtu.com>
31853
31854 Fix build with GNU gold.
31855
31856 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
31857 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
31858 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
31859 link addresses.
31860 * aclocal.m4: Likewise.
31861
86e5b1db 318622009-11-04 Felix Zielcke <fzielcke@z-51.de>
31863
31864 * configure.ac (AC_PREREQ): Bump to 2.59d.
31865 * INSTALL: Make it more clear when Autoconf and Ruby are
31866 needed and when to run `./autogen.sh'.
31867
246cd78f 318682009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
31869
31870 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
31871 OSes.
31872
4f9dfb37 318732009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31874
31875 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
31876
b82bd5e1 318772009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31878
31879 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
31880 giving it to GNU Mach.
31881
ff1a9bca 318822009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31883
31884 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
31885 GNU partition number to get internal GRUB partition number.
31886
61697d9c 318872009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
31888
31889 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
31890 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
31891
a50569e1 318922009-11-01 Robert Millan <rmh.grub@aybabtu.com>
31893
31894 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
31895 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
31896 case.
31897
5b153867 318982009-11-01 Felix Zielcke <fzielcke@z-51.de>
31899
31900 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
31901
d9e2cd70 319022009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31903
31904 Fix build problem.
31905
31906 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
31907 `-isystem=$(srcdir)/include'.
31908
805111a4 319092009-10-30 Robert Millan <rmh.grub@aybabtu.com>
31910
31911 * util/i386/pc/grub-install.in: Remove hint that device.map should be
31912 checked (grub-install doesn't currently rely on it).
31913
fa6e945f 319142009-10-29 Robert Millan <rmh.grub@aybabtu.com>
31915
31916 Revert SVN r2660.
31917
31918 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
31919 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31920 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
31921 * conf/i386-ieee1275.rmk: Likewise.
31922 * conf/i386-pc.rmk: Likewise.
31923 * conf/powerpc-ieee1275.rmk: Likewise.
31924 * conf/sparc64-ieee1275.rmk: Likewise.
31925 * conf/x86_64-efi.rmk: Likewise.
31926
cee15086 319272009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31928
31929 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
31930
95b9239e 319312009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31932
31933 * include/grub/misc.h: Stop checking for APPLE_CC.
31934
2ed19dfd 319352009-10-28 Robert Millan <rmh.grub@aybabtu.com>
31936
31937 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
31938 doesn't cause an infinite call loop.
31939
fdcdde19 319402009-10-28 Felix Zielcke <fzielcke@z-51.de>
31941
31942 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
31943 strings.
31944
cefabfe1 319452009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31946
31947 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
31948 variable.
31949 * Makefile.in: Likewise.
31950
ed96ab6d 319512009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31952
31953 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
31954
0579b753 319552009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31956
31957 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
31958
478df409 319592009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31960
31961 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
31962
083d1679 319632009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31964
31965 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
31966 from here ...
31967 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
31968
5947ae32 319692009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31970
31971 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
31972 in $(MAKEINFO) invocation. This makes it clear in output that
31973 errors are being ignored.
31974
94180ff6 319752009-10-26 Robert Millan <rmh.grub@aybabtu.com>
31976
31977 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
31978 from here ...
31979 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
31980 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
31981 * conf/i386-ieee1275.rmk: Likewise.
31982 * conf/i386-pc.rmk: Likewise.
31983 * conf/powerpc-ieee1275.rmk: Likewise.
31984 * conf/sparc64-ieee1275.rmk: Likewise.
31985 * conf/x86_64-efi.rmk: Likewise.
31986
9031b03a 319872009-10-26 Colin Watson <cjwatson@ubuntu.com>
31988
31989 * util/grub-editenv.c (main): If only a command is given, use
31990 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
31991 (usage): FILENAME is now optional and has a default.
31992
e4f6809b 319932009-10-26 Colin Watson <cjwatson@ubuntu.com>
31994
31995 Improve grub-mkconfig performance when there are several menu
31996 entries on a single filesystem.
31997
31998 * util/grub.d/10_linux.in (linux_entry): Cache the output of
31999 prepare_grub_to_access_device.
32000 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
32001 * util/grub.d/30_os-prober.in: Likewise.
32002
67937d4d 320032009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32004
32005 * util/grub.d/10_freebsd.in: Remove.
32006 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
32007 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
32008
ee3756cc 320092009-10-26 Robert Millan <rmh.grub@aybabtu.com>
32010
5c35048e 32011 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 32012
4dea1c6f 320132009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32014
32015 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
32016 grub_util_error() call.
32017
042484d7 320182009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32019
32020 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
32021 `reserved_first_sector' member.
32022 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
32023 `reserved_first_sector' to 1.
32024 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
32025 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
32026 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
32027 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
32028 filesystems which begin at first sector.
32029 (options): New option --skip-fs-probe.
32030 (main): Handle --skip-fs-probe and pass it to setup().
32031
d64448a7 320322009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32033
32034 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
32035 (memset): Fix function prototype.
32036
508d42ec 320372009-10-25 Robert Millan <rmh.grub@aybabtu.com>
320382009-10-25 Vasily Averin <vvs@parallels.com>
32039
32040 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
32041 `dirent.direntlen == 0'.
32042
b240e30c 320432009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32044
32045 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
32046 `cpio'.
32047 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
32048
346e7fbe 320492009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32050
32051 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
32052 `__trampoline_setup' and `__ucmpdi2'.
32053 * include/grub/powerpc/libgcc.h: Only export symbols for functions
32054 that libgcc provides.
32055
cdb308b0 320562009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32057
32058 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
32059 * include/grub/sparc64/libgcc.h (memset): Likewise.
32060 * include/grub/misc.h (memset, memcmp): New function prototypes.
32061
fb26abc2 320622009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32063
32064 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
32065 `cpio'.
32066 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
32067
f6693890 320682009-10-25 Robert Millan <rmh.grub@aybabtu.com>
32069
32070 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
32071 * docs/grub.cfg: Compensate for recent change in multiboot
32072 loader (since 2009-08-14 it won't pass filename to payload).
32073 * util/grub.d/10_hurd.in: Likewise.
32074
0933cdc0 320752009-10-21 Felix Zielcke <fzielcke@z-51.de>
32076
32077 * config.guess: Update to latest version from config git
32078 repository.
32079 * config.sub: Likewise.
32080
3b2fe8c2 320812009-10-20 Robert Millan <rmh.grub@aybabtu.com>
32082
32083 Fix build on sparc64.
32084
32085 * configure.ac: Perform checks for libgcc symbols before
32086 adding `-nostdlib' to LDFLAGS.
32087
46695a62 320882009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32089
32090 Let user specify OpenBSD root device.
32091
32092 * loader/i386/bsd.c (openbsd_root): New variable.
32093 (openbsd_opts): New option 'root'.
32094 (OPENBSD_ROOT_ARG): New macro.
32095 (grub_openbsd_boot): Use 'openbsd_root'.
32096 (grub_cmd_openbsd): Fill 'openbsd_root'.
32097
d2b6b7fc 320982009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32099
32100 * NEWS: Misc adjustments.
32101
421bd7ac 321022009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
32103
32104 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
32105
f1d29d87 321062009-10-16 Robert Millan <rmh.grub@aybabtu.com>
32107
32108 * configure.ac: Bump version to 1.97.
32109
6f3cd880 321102009-10-16 Colin Watson <cjwatson@ubuntu.com>
32111
32112 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
32113 -mno-3dnow on x86 architectures. Some toolchains enable these
32114 features by default, but they rely on registers that aren't enabled
32115 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
32116
035f7122 321172009-10-15 Robert Millan <rmh.grub@aybabtu.com>
32118
32119 Make entry text a bit more readable.
32120
32121 * util/grub.d/10_linux.in: Add `with' before `Linux'.
32122
44998e58 321232009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32124
32125 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
32126
cd2851b3 321272009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32128
32129 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
32130 operations.
32131
c6f3b249 321322009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32133
32134 * configure.ac: Add missing dollar.
32135
6b5886ba 321362009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
32137
32138 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
32139
32140 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
32141 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
32142 exports.
32143 * include/grub/sparc64/libgcc.h: Likewise. Use
32144 preprocessor conditionals.
32145
e9d66f6d 321462009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32147
32148 * conf/common.rmk (grub-dumpbios): Remove rule.
32149 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
32150 * util/grub-dumpbios.in: Remove file.
32151
9155bc17 321522009-10-14 Robert Millan <rmh.grub@aybabtu.com>
32153
32154 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
32155 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
32156
32157 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
32158 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
32159 users.
32160
32161 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
32162 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
32163 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
32164 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
32165 users.
32166
bf7f7a18 321672009-10-12 Robert Millan <rmh.grub@aybabtu.com>
32168
32169 * term/tparm.c: Switch to GPLv3.
32170
86564c26 321712009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32172
32173 * include/grub/i386/cpuid.h: Add header protection.
32174
5c936493 321752009-10-09 Robert Millan <rmh.grub@aybabtu.com>
32176
32177 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
32178
32179 * include/grub/i386/cpuid.h: New file.
32180 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
32181 (has_longmode): Rename to ...
32182 (grub_cpuid_has_longmode): ... this. Update all users. Remove
32183 `static' attribute.
32184 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
32185 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
32186 on a CPU that doesn't implement AMD64 instruction set.
32187
186e7cf2 321882009-10-06 Colin Watson <cjwatson@ubuntu.com>
32189
32190 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
32191 that version.texi is rebuilt on version number changes.
32192
83b65c4a 321932009-10-06 Colin Watson <cjwatson@ubuntu.com>
32194
32195 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
32196 Fixes bug #27602.
32197
d244281c 321982009-10-06 Colin Watson <cjwatson@ubuntu.com>
32199
32200 * util/i386/pc/grub-install.in: Source
32201 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
32202 that the --grub-probe option will work.
32203 * util/sparc64/ieee1275/grub-install.in: Likewise.
32204
da25306d 322052009-10-05 Robert Millan <rmh.grub@aybabtu.com>
32206
32207 * configure.ac: Bump version to 1.97~beta4.
32208
e8ee83c0 322092009-10-03 Robert Millan <rmh.grub@aybabtu.com>
32210
32211 Resync grub-mkdevicemap in x86_64-efi.
32212
32213 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
32214 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
32215 `util/devicemap.c'.
32216
50dcabcf 322172009-10-01 Colin Watson <cjwatson@ubuntu.com>
32218
32219 * util/grub-editenv.c (create_envblk_file): Write new block with a
32220 .new suffix and then rename it into place, to ensure atomic
32221 creation.
32222
0e51c3a7 322232009-09-28 Robert Millan <rmh.grub@aybabtu.com>
32224
32225 Do not automatically install headers.
32226
32227 * Makefile.in (include_DATA): Remove. Update all users.
32228
31299a95 322292009-09-26 Robert Millan <rmh.grub@aybabtu.com>
32230
32231 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
32232 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
32233
32234 * util/osdetect.lua: Remove.
32235 * script/lua/lauxlib.c: Likewise.
32236 * script/lua/ldebug.c: Likewise.
32237 * script/lua/grub_main.c: Likewise.
32238 * script/lua/lauxlib.h: Likewise.
32239 * script/lua/ldebug.h: Likewise.
32240 * script/lua/ltablib.c: Likewise.
32241 * script/lua/liolib.c: Likewise.
32242 * script/lua/lstrlib.c: Likewise.
32243 * script/lua/lualib.h: Likewise.
32244 * script/lua/ldo.c: Likewise.
32245 * script/lua/ldump.c: Likewise.
32246 * script/lua/ldo.h: Likewise.
32247 * script/lua/loslib.c: Likewise.
32248 * script/lua/lundump.c: Likewise.
32249 * script/lua/grub_lib.c: Likewise.
32250 * script/lua/ldblib.c: Likewise.
32251 * script/lua/lundump.h: Likewise.
32252 * script/lua/lmem.c: Likewise.
32253 * script/lua/grub_lib.h: Likewise.
32254 * script/lua/lmathlib.c: Likewise.
32255 * script/lua/lstate.c: Likewise.
32256 * script/lua/ltm.c: Likewise.
32257 * script/lua/lvm.c: Likewise.
32258 * script/lua/lmem.h: Likewise.
32259 * script/lua/lstate.h: Likewise.
32260 * script/lua/ltm.h: Likewise.
32261 * script/lua/ltable.c: Likewise.
32262 * script/lua/lvm.h: Likewise.
32263 * script/lua/llex.c: Likewise.
32264 * script/lua/lgc.c: Likewise.
32265 * script/lua/grub_lua.h: Likewise.
32266 * script/lua/loadlib.c: Likewise.
32267 * script/lua/lfunc.c: Likewise.
32268 * script/lua/lopcodes.c: Likewise.
32269 * script/lua/lparser.c: Likewise.
32270 * script/lua/ltable.h: Likewise.
32271 * script/lua/llex.h: Likewise.
32272 * script/lua/lgc.h: Likewise.
32273 * script/lua/lfunc.h: Likewise.
32274 * script/lua/lbaselib.c: Likewise.
32275 * script/lua/lopcodes.h: Likewise.
32276 * script/lua/lparser.h: Likewise.
32277 * script/lua/lzio.c: Likewise.
32278 * script/lua/linit.c: Likewise.
32279 * script/lua/lobject.c: Likewise.
32280 * script/lua/llimits.h: Likewise.
32281 * script/lua/lstring.c: Likewise.
32282 * script/lua/lzio.h: Likewise.
32283 * script/lua/lapi.c: Likewise.
32284 * script/lua/lcode.c: Likewise.
32285 * script/lua/lua.h: Likewise.
32286 * script/lua/lobject.h: Likewise.
32287 * script/lua/lstring.h: Likewise.
32288 * script/lua/lapi.h: Likewise.
32289 * script/lua/lcode.h: Likewise.
32290 * script/lua/luaconf.h: Likewise.
32291
cb8a2c38 322922009-09-26 Colin Watson <cjwatson@ubuntu.com>
32293
32294 * docs/grub.texi (Command-line and menu entry commands): Document
32295 date and echo commands.
32296
6b9b6276 322972009-09-24 Pavel Roskin <proski@gnu.org>
32298
32299 * include/grub/kernel.h (struct grub_module_header): Remove
32300 `grub_module_header_types'. Make `type' unsigned. Make `size'
32301 32-bit on all platforms.
32302 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
32303 8-bit field. Use grub_host_to_target32() for `size'.
32304 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
32305 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
32306 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
32307
4e5a02a7 323082009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32309
32310 Fix "lost keypress" bug in at_keyboard.
32311
32312 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
32313 Checks for readyness of input buffer (without flushing it).
32314 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
32315 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
32316
c6dcedf6 323172009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32318
32319 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
32320 size check within GRUB_MACHINE_PCBIOS section.
32321
74c958b1 323222009-09-24 Robert Millan <rmh.grub@aybabtu.com>
32323
32324 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
32325 return value.
32326 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
32327 KEYBOARD_ISREADY check.
32328 (grub_at_keyboard_checkkey): Rename to ...
32329 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
32330 Remove gratuitous cast.
32331
ff420223 323322009-09-23 Colin Watson <cjwatson@ubuntu.com>
32333
32334 * configure.ac: Call AC_PROG_MKDIR_P.
32335 * Makefile.in (docs/stamp-vti): Create docs directory. Create
32336 version.texi in $(builddir) rather than $(srcdir).
32337 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
32338 to makeinfo's @include search path.
32339
d96875df 323402009-09-23 Felix Zielcke <fzielcke@z-51.de>
32341
32342 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
32343
9b3f8365 323442009-09-23 Felix Zielcke <fzielcke@z-51.de>
32345
32346 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
32347 for `*.dpkg-new'.
32348
c44c90db 323492009-09-21 Colin Watson <cjwatson@ubuntu.com>
32350
32351 Build info documentation. Some code borrowed from Automake.
32352
32353 * configure.ac: Check for makeinfo.
32354 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
32355 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
32356 docs/version.texi.
32357 (MOSTLYCLEANFILES): Add vti.tmp.
32358 (docs/version.texi, docs/stamp-vti): Update automatically.
32359 (docs/grub.info): Build info documentation. Use --force and ignore
32360 errors for now.
32361 (all-local): Add $(INFOS).
32362 (install-local): Install info files.
32363 (uninstall): Uninstall info files.
32364 * docs/version.texi: Remove from revision control. This file is
32365 automatically generated on build now.
32366 * gendistlist.sh: Add `*.info'.
32367
e0b37bb5 323682009-09-21 Felix Zielcke <fzielcke@z-51.de>
32369
32370 * kern/term.c: Fix indentation.
32371
5a78865b 323722009-09-21 Felix Zielcke <fzielcke@z-51.de>
32373
32374 * util/hostdisk.c: Fix a comment.
32375
dace7e8a 323762009-09-20 Robert Millan <rmh.grub@aybabtu.com>
32377
32378 Fix regression introduced in r2539.
32379
32380 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
32381 to 0xA1.
32382
a83d079b 323832009-09-19 Colin Watson <cjwatson@ubuntu.com>
32384
32385 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 32386 os-prober. Under normal operation, it does not print anything to
32387 stderr; if it does, we need to debug it, and throwing away stderr
32388 makes that excessively difficult.
a83d079b 32389
be94a509 323902009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
32391
32392 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
32393
63f745e8 323942009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32395
32396 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
32397 AC_LANG_PROGRAM from autoconf.
32398 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
32399 prototypes (fixes warning).
32400
32401 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
32402 `--disable-werror' was used.
32403
bbb2a70f 324042009-09-16 Robert Millan <rmh.grub@aybabtu.com>
32405
32406 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
32407 uninitialized `lastaddr'.
32408
77c24f1d 324092009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
32410
0f0b8c87 32411 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 32412
07197f23 324132009-09-14 Colin Watson <cjwatson@ubuntu.com>
32414
32415 * commands/test.c (get_fileinfo): Return immediately if
32416 grub_fs_probe fails.
32417
dabf1798 324182009-09-14 José Martínez <xosemp@gmail.com>
32419
32420 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
32421
d52109a7 324222009-09-14 Colin Watson <cjwatson@ubuntu.com>
32423
32424 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
32425 output.
32426
56532179 324272009-09-13 Robert Millan <rmh.grub@aybabtu.com>
32428
32429 * configure.ac: Remove --enable-grub-pe2elf. Only build
32430 grub-pe2elf when needed by the build system itself.
32431 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
32432
8ef070f5 324332009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32434
32435 * configure.ac: Bump version to 1.97~beta3.
32436 * docs/version.texi: Likewise.
32437
61229557 324382009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32439
32440 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
32441 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
32442 from here ...
32443 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
32444 (grub_linux_setup_video): ... to here (with some adjustments).
32445
5c9f8d84 324462009-09-12 Robert Millan <rmh.grub@aybabtu.com>
32447
32448 Fix memory corruption issue (spotted by Colin Watson).
32449
32450 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
32451 causing returned size to be stored in an incorrect memory location.
32452 Fix use of uninitialized value when storing the returned size.
32453
e8f5d6e9 324542009-09-12 Yves Blusseau <blusseau@zetam.org>
32455
32456 Change clean rules to properly remove files
32457
32458 * genmk.rb: add new clean rules
32459 * Makefile.in (clean): add the new targets
32460 (mostlyclean): likewise
32461
cda2a409 324622009-09-11 Colin Watson <cjwatson@ubuntu.com>
32463
32464 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
32465 to grub_uint64_t.
32466 * fs/ntfs.c (init_file): Understand 64-bit sizes for
32467 non-resident files.
32468
86695375 324692009-09-11 Colin Watson <cjwatson@ubuntu.com>
32470
32471 * configure.ac: Don't look for help2man when cross-compiling. Fixes
32472 part of bug #27349.
32473
8aa1541a 324742009-09-10 Felix Zielcke <fzielcke@z-51.de>
32475
32476 * util/grub-mkconfig.in: Make the created config mode 400 and
32477 print a warning if it fails.
32478
48d9bb0a 324792009-09-10 Robert Millan <rmh.grub@aybabtu.com>
32480
32481 * util/grub.d/40_custom.in: Ask user to type custom entries below
32482 comment, rather than below 'exec tail' line.
32483
3b0521be 324842009-09-10 Colin Watson <cjwatson@ubuntu.com>
32485
32486 * util/grub.d/40_custom.in: Make sure that the explanatory text is
32487 visible in grub.cfg.
32488
50051d55 324892009-09-10 Colin Watson <cjwatson@ubuntu.com>
32490
32491 * util/grub.d/40_custom.in: Make it a little clearer how to use this
32492 file.
32493
c0d34387 324942009-09-10 Felix Zielcke <fzielcke@z-51.de>
32495
32496 * docs/grub.cfg: Add an example menu entry for memtest86+.
32497
80a608f3 324982009-09-09 Felix Zielcke <fzielcke@z-51.de>
32499
a2094832 32500 * config.guess: Update to latest version from config git.
80a608f3 32501 * config.sub: Likewise.
32502
99423078 325032009-09-08 Colin Watson <cjwatson@ubuntu.com>
32504
32505 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
32506 unknown-command case. Fixes bug #27320.
32507
44454e4c 325082009-09-08 Felix Zielcke <fzielcke@z-51.de>
32509
32510 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
32511 `help' if the command exists.
32512
e30d87ad 325132009-09-06 Robert Millan <rmh.grub@aybabtu.com>
32514
32515 * INSTALL: Require GCC 4.1.3 or later.
32516
9a86f1ec 325172009-09-06 Yves Blusseau <blusseau@zetam.org>
32518
32519 * Makefile.in (RMKFILES): add i386-qemu.rmk
32520 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
32521 $(srcdir)/stamp-h.in
32522
7f26d466 325232009-09-05 Robert Millan <rmh.grub@aybabtu.com>
32524
32525 * util/grub-probe.c (probe): Comment out buggy codepath, which
32526 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
32527 should be re-enabled after 1.97.
32528
3a613259 325292009-09-05 Felix Zielcke <fzielcke@z-51.de>
32530
32531 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
32532 find searches for.
32533
197f76c7 325342009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
32535
32536 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
32537 unnecessary calls to grub_error.
32538
70ba68ce 325392009-09-04 Colin Watson <cjwatson@ubuntu.com>
32540
32541 * NEWS: Mention `keystatus' and Unicode fonts.
32542
4ff0d7a4 325432009-09-04 Robert Millan <rmh.grub@aybabtu.com>
32544
32545 * configure.ac: Bump version to 1.97~beta2.
32546 * docs/version.texi: Likewise.
32547
77c55a87 325482009-09-03 Colin Watson <cjwatson@ubuntu.com>
32549
32550 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
32551 containing unwind information in some cases where it previously did
32552 not. Use -fno-dwarf2-cfi-asm if available to restore the old
32553 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
32554 discussion.
32555
f79572cd 325562009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
32557
32558 Embedding loadenv module into grub-emu
32559
32560 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
32561 commands/loadenv.c
32562 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
32563 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
32564 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
32565 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
32566 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
32567 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
32568
93a81088 325692009-09-03 Magnus Granberg <zorry@ume.nu>
32570
32571 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
32572 include -fPIE in the default specs.
32573 * configure.ac: Check if pie_possible is yes and add -fno-PIE
32574 to TARGET_CFLAGS.
32575
160034b2 325762009-09-03 Felix Zielcke <fzielcke@z-51.de>
32577
32578 * INSTALL: Note that GNU Bison 2.3 or later is required.
32579
087c07c4 325802009-09-03 Colin Watson <cjwatson@ubuntu.com>
32581
32582 * kern/i386/pc/startup.S: Fix typo.
32583
cbf978c0 325842009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
32585
32586 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
32587 according to GCS.
32588
325892009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 32590
32591 * docs/grub.texi (Naming convention): Describe one-based partition
32592 numbering.
32593 (Device syntax): Likewise.
32594 (File name syntax): Likewise.
32595 (Block list syntax): Likewise.
32596 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
32597 menu.lst.
32598 (File name syntax): Likewise.
32599 (Command-line and menu entry commands): Document acpi, blocklist,
32600 crc, export, insmod, keystatus, ls, set, and unset commands.
32601
f3e8cdfd 326022009-09-02 Colin Watson <cjwatson@ubuntu.com>
32603
32604 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
32605 to avoid implying that only one of --shift, --ctrl, or --alt may be
32606 used.
32607
c0bc232b 326082009-09-02 Colin Watson <cjwatson@ubuntu.com>
32609
32610 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
32611 rather than comparing against S_IFREG, which will almost never work.
32612
aa0f752d 326132009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
32614
32615 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
32616 (write_blocklists): Likewise.
32617
ecb3166a 326182009-09-01 Colin Watson <cjwatson@ubuntu.com>
32619
32620 * script/lua/grub_lua.h (fputs): Supply a format string as the first
32621 argument to grub_printf.
32622
c403a125 326232009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 32624
32625 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 32626 non GNU test.
31aba781 32627
b5e7312c 326282009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32629
32630 * kern/file.c (grub_file_read): Spelling fix
32631
fe00f472 326322009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
32633
32634 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
32635 loading of headers in some cases.
32636
cc55302e 326372009-08-30 Robert Millan <rmh.grub@aybabtu.com>
32638
32639 * configure.ac: Bump version to 1.97~beta1.
32640 * docs/version.texi: Likewise.
32641
5c90cdd2 326422009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 32643
32644 * include/grub/i386/xnu.h: Add license header.
32645 include grub/err.h explicitly.
32646
c90edae4 326472009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32648
32649 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
32650 to `ufs' in the vfs.root.mountfrom kernel parameter.
32651
d8888b5c 326522009-08-29 Robert Millan <rmh.grub@aybabtu.com>
32653
32654 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
32655
32656 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
32657 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
32658
32659 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
32660 `ARRAY_SIZE' macro.
32661
6f07b921 326622009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32663
32664 * kern/file.c (grub_file_read): Check offset.
32665 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
32666 * fs/jfs.c (grub_jfs_read_file): Likewise.
32667 * fs/ntfs.c (grub_ntfs_read): Likewise.
32668 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
32669 * fs/minix.c (grub_minix_read_file): Correct offset check.
32670 * fs/ufs.c (grub_ufs_read_file): Likewise.
32671
b4f34077 326722009-08-28 Colin Watson <cjwatson@ubuntu.com>
32673
32674 * term/i386/pc/console.c (bios_data_area): Cast
32675 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
32676
e7c69859 326772009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32678
32679 1-bit optimised blitters.
32680
32681 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
32682 prototype.
32683 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32684 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32685 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32686 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32687 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32688 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32689 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
32690 function.
32691 (grub_video_fbblit_replace_24bit_1bit): Likewise.
32692 (grub_video_fbblit_replace_16bit_1bit): Likewise.
32693 (grub_video_fbblit_replace_8bit_1bit): Likewise.
32694 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
32695 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
32696 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
32697 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
32698 when possible.
32699 * video/video.c (grub_video_get_blit_format): Return
32700 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
32701
a57da43f 327022009-08-28 Colin Watson <cjwatson@ubuntu.com>
32703
32704 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
32705 the first argument to grub_printf.
32706
4cbe67e5 327072009-08-28 Colin Watson <cjwatson@ubuntu.com>
327082009-08-28 Robert Millan <rmh.grub@aybabtu.com>
32709
32710 Add `getkeystatus' terminal method. Add a new `keystatus' command
32711 to query it.
32712
32713 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
32714 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
32715 modifier key bitmasks.
32716 (struct grub_term_input): Add `getkeystatus' member.
32717 (grub_getkeystatus): Add prototype.
32718 * kern/term.c (grub_getkeystatus): New function.
32719
32720 * include/grub/i386/pc/memory.h
32721 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
32722 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
32723 Data Area layout.
32724 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
32725 (grub_console_term_input): Set `getkeystatus' member.
32726 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
32727 constants.
32728 (grub_usb_keyboard_getreport): Likewise.
32729 (grub_usb_keyboard_checkkey): Likewise.
32730 (grub_usb_keyboard_getkeystatus): New function.
32731 (grub_usb_keyboard_term): Set `getkeystatus' member.
32732
32733 * commands/keystatus.c: New file.
32734 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
32735 (keystatus_mod_SOURCES): New variable.
32736 (keystatus_mod_CFLAGS): Likewise.
32737 (keystatus_mod_LDFLAGS): Likewise.
32738 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
32739 commands/keystatus.c.
32740 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32741 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32742 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32744 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32745 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 32746
6e2a9085 327472009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
32748
32749 Split befs.mod and afs.mod into *_be.mod and *.mod
32750
32751 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
32752 (grub_fstest_SOURCES): Likewise.
32753 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
32754 (afs_be_mod_SOURCES): New variable.
32755 (afs_be_mod_CFLAGS): Likewise.
32756 (afs_be_mod_LDFLAGS): Likewise.
32757 (befs_be_mod_SOURCES): Likewise.
32758 (befs_be_mod_CFLAGS): Likewise.
32759 (befs_be_mod_LDFLAGS): Likewise.
32760 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
32761 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32762 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32763 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
32764 (grub_emu_SOURCES): Likewise.
32765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32766 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32767 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32768 * fs/afs_be.c: New file.
32769 * fs/befs_be.c: New file.
32770 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
32771 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
32772 (U16): Replaced with ...
32773 (grub_afs_to_cpu16): ...this. All users updated.
32774 (U32): Replaced with ...
32775 (grub_afs_to_cpu32): ...this. All users updated.
32776 (U64): Replaced with ...
32777 (grub_afs_to_cpu64): ...this. All users updated.
32778 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
32779 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 32780 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 32781 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32782 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32783 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32784 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32785 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
32786 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
32787 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
32788 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
32789
32a71655 327902009-08-26 Bean <bean123ch@gmail.com>
32791
32792 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
32793 64-bit number.
32794 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
32795 (grub_xfs_inode_block): Change return type to grub_uint64_t.
32796 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
32797
552bf6c5 327982009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32799
32800 NetBSD memory map support.
32801
32802 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
32803 (grub_netbsd_btinfo_mmap_header): New structure.
32804 (grub_netbsd_btinfo_mmap_entry): Likewise.
32805 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
32806
1ae2078c 328072009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32808
32809 Enable bsd.mod on coreboot.
32810
32811 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
32812 (bsd_mod_SOURCES): New variable.
32813 (bsd_mod_CFLAGS): Likewise.
32814 (bsd_mod_LDFLAGS): Likewise.
32815 (bsd_mod_ASFLAGS): Likewise.
32816 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
32817 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
32818
beefc598 328192009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32820
32821 Cleanup NetBSD root support.
32822
32823 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
32824 grub_bsd_get_device.
32825 Fix typo.
32826
3b76e68b 328272009-08-25 Felix Zielcke <fzielcke@z-51.de>
32828
32829 * util/grub.d/00_header.in: Move check for the video backend of
32830 gfxterm from here ...
32831 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
32832 a suitable video backend.
32833
aea664ea 328342009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32835
32836 Fix breakage in grub-setup.
32837
32838 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
32839 "msdos_partition_map".
32840
ff747d50 328412009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32842
32843 Fix breakage in normal/auth.c.
32844
32845 * normal/auth.c (grub_iswordseparator): New function.
32846
e7e1f93f 328472009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
32848
32849 Authentication support.
32850
32851 * commands/password.c: New file.
32852 * conf/common.rmk (pkglib_MODULES): Add password.mod.
32853 (password_mod_SOURCES): New variable.
32854 (password_mod_CFLAGS): Likewise.
32855 (password_mod_LDFLAGS): Likewise.
32856 (normal_mod_SOURCES): Add normal/auth.c.
32857 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
32858 normal/auth.c.
32859 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32860 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32861 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
32862 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32863 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32864 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
32865 * include/grub/auth.h: New file.
32866 * include/grub/err.h (grub_err_t): New enum value
32867 GRUB_ERR_ACCESS_DENIED.
32868 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
32869 'users'.
32870 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
32871 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
32872 users updated.
32873 * normal/auth.c: New file.
32874 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
32875 (grub_cmdline_run): Don't allow to go to command line without
32876 authentication.
32877 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
32878 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
32879 menuentry without superuser rights.
32880 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
32881 user isn't a superuser.
32882
70f1161d 328832009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32884
32885 Save space by inlining misc.c functions.
32886
32887 * kern/misc.c (grub_iswordseparator): Made static.
32888 * kern/misc.c (grub_strcat): Moved from here ...
32889 * include/grub/misc.h (grub_strcat): ... here. Inlined.
32890 * kern/misc.c (grub_strncat): Moved from here ...
32891 * include/grub/misc.h (grub_strncat): ... here. Inlined.
32892 * kern/misc.c (grub_strcasecmp): Moved from here ...
32893 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
32894 * kern/misc.c (grub_strncasecmp): Moved from here ...
32895 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
32896 * kern/misc.c (grub_isalpha): Moved from here ...
32897 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
32898 * kern/misc.c (grub_isdigit): Moved from here ...
32899 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
32900 * kern/misc.c (grub_isgraph): Moved from here ...
32901 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
32902 * kern/misc.c (grub_tolower): Moved from here ...
32903 * include/grub/misc.h (grub_tolower): ... here. Inlined.
32904
48e40bff 329052009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32906
32907 * script/sh/function.c (grub_script_function_find): Cut error message
32908 not to flood terminal.
32909 * script/sh/lexer.c (grub_script_yylex): Remove command line length
32910 limit.
32911 * script/sh/script.c (grub_script_arg_add): Duplicate string.
32912
c385bfc3 329132009-08-24 Colin Watson <cjwatson@ubuntu.com>
32914
32915 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
32916 `report' grub_uint8_t *.
32917 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
32918 Use a 50-millisecond timeout rather than just repeating
32919 grub_usb_keyboard_getreport 50 times.
32920 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
32921
2d21e3e8 329222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32923
32924 Rename *_partition_map to part_*
32925
32926 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
32927 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
32928 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
32929 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
32930 All users updated.
32931 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
32932 All users updated.
32933 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
32934 * util/grub-probe.c (probe_partmap): Don't transform partition name
32935 to get module name.
32936
dd103c4e 329372009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32938
32939 Fix OpenBSD and NetBSD support.
32940
32941 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
32942 memory address conflict.
32943 (OPENBSD_MMAP_ACPI): New definition.
32944 (OPENBSD_MMAP_NVS): Likewise.
32945 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
32946 and OPENBSD_MMAP_NVS.
32947 Add memory map terminator
32948 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 32949 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 32950
16c84d74 329512009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32952
32953 Let user specify NetBSD root device.
32954
32955 * loader/i386/bsd.c (netbsd_root): New variable.
32956 (netbsd_opts): New option 'root'.
32957 (NETBSD_ROOT_ARG): New macro.
32958 (grub_netbsd_boot): Use 'netbsd_root'.
32959 (grub_bsd_unload): Free 'netbsd_root'.
32960 (grub_cmd_netbsd): Fill 'netbsd_root'.
32961
adb29902 329622009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32963
32964 Support for 64-bit NetBSD.
32965
32966 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
32967 point when booting non-FreeBSD.
32968
f5ae9f74 329692009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
32970
32971 Support --no-smp and --no-acpi for NetBSD.
32972
32973 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
32974 (NETBSD_AB_NOACPI): Likewise.
32975 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
32976 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
32977
de74f136 329782009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32979
32980 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
32981 errors.
32982 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
32983 errors. Call grub_error when needed.
32984
e9a925da 329852009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
32986
32987 * commands/search.c (search_fs): Try searching without autoload first.
32988 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
32989 filesystem module explicitly for faster booting.
32990
5174302b 329912009-08-23 Colin Watson <cjwatson@ubuntu.com>
32992
32993 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
32994
c8c80635 329952009-08-23 Colin Watson <cjwatson@ubuntu.com>
32996
32997 * util/grub.d/30_os-prober.in: Disable os-prober if
32998 `GRUB_DISABLE_OS_PROBER' was set to true.
32999
71acf5e5 330002009-08-23 Robert Millan <rmh.grub@aybabtu.com>
33001
33002 * partmap/pc.c: Rename to ...
33003 * partmap/msdos.c: ... this. Update all users.
33004 (grub_pc_partition_map): Rename to ...
33005 (grub_msdos_partition_map): ... this. Update all users.
33006
33007 * parttool/pcpart.c: Rename to ...
33008 * parttool/msdospart.c: ... this. Update all users.
33009
33010 * include/grub/pc_partition.h: Rename to ...
33011 * include/grub/msdos_partition.h: ... this. Update all users.
33012 (grub_pc_partition_bsd_entry): Rename to ...
33013 (grub_msdos_partition_bsd_entry): ... this. Update all users.
33014 (grub_pc_partition_disk_label): Rename to ...
33015 (grub_msdos_partition_disk_label): ... this. Update all users.
33016 (grub_pc_partition_entry): Rename to ...
33017 (grub_msdos_partition_entry): ... this. Update all users.
33018 (grub_pc_partition_mbr): Rename to ...
33019 (grub_msdos_partition_mbr): ... this. Update all users.
33020 (grub_pc_partition): Rename to ...
33021 (grub_msdos_partition): ... this. Update all users.
33022 (grub_pc_partition_is_empty): Rename to ...
33023 (grub_msdos_partition_is_empty): ... this. Update all users.
33024 (grub_pc_partition_is_extended): Rename to ...
33025 (grub_msdos_partition_is_extended): ... this. Update all users.
33026 (grub_pc_partition_is_bsd): Rename to ...
33027 (grub_msdos_partition_is_bsd): ... this. Update all users.
33028
33029 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
33030 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
33031 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
33032 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
33033 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
33034 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
33035 (gpt_mod_LDFLAGS): Rename to ...
33036 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
33037 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
33038 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
33039 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
33040 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
33041 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
33042 (part_gpt_mod_LDFLAGS): ... this.
33043 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
33044 `pcpart.mod' to `msdospart.mod'.
33045 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
33046 to ...
33047 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
33048 (msdospart_mod_LDFLAGS): ... this.
33049
c11fded5 330502009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
33051
33052 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
33053 (openbsd_opts): Likewise.
33054 (netbsd_opts): Likewise.
33055 (freebsd_flags): Added 0 terminator.
33056 (openbsd_flags): Likewise.
33057 (netbsd_flags): Likewise.
33058 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
33059 (grub_cmd_freebsd): Transformed into extended command.
33060 (grub_cmd_openbsd): Likewise.
33061 (grub_cmd_netbsd): Likewise.
33062 (cmd_freebsd): Changed type to grub_extcmd_t.
33063 (cmd_openbsd): Likewise.
33064 (cmd_netbsd): Likewise.
33065 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
33066 grub_cmd_openbsd as extended commands.
33067 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
33068 cmd_netbsd and cmd_openbsd
33069
11d1c769 330702009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
33071
33072 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
33073
7a9094e5 330742009-08-21 Pavel Roskin <proski@gnu.org>
33075
5496c37e 33076 * Makefile.in (install-local): When checking if a file is in the
33077 build directory, use "test -e" to detect symlinks.
33078
7a9094e5 33079 * Makefile.in (install-local): Remove all files in
33080 $(DESTDIR)$(pkglibdir) before installing new files there.
33081
e53cea11 330822009-08-18 Felix Zielcke <fzielcke@z-51.de>
33083
33084 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
33085 grub-mkelfimage.
33086
9aced544 330872009-08-18 Felix Zielcke <fzielcke@z-51.de>
33088
33089 * util/grub-mkconfig.in: Don't use gfxterm by default if not
33090 explicitly specified by the user.
33091
b7da6bab 330922009-08-18 Pavel Roskin <proski@gnu.org>
33093
33094 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
33095 grub_uint8_t pointer for data.
33096 * include/grub/fbutil.h (struct grub_video_fbblit_info):
33097 Likewise.
33098 * video/fb/fbutil.c: Remove unnecessary casts.
33099
19f1b335 331002009-08-17 Michal Suchanek <hramrach@centrum.cz>
33101
33102 VBE cleanup.
33103
33104 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
33105 (grub_vbe_set_video_mode): Save active mode info
33106 only after setting the mode.
33107 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
33108 second argument.
33109
2f467aa9 331102009-08-17 Michal Suchanek <hramrach@centrum.cz>
33111
33112 Rename variables for clarity.
33113
33114 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
33115 (active_vbe_mode_info): ... this. All users updated.
33116 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
33117 All users updated.
33118 (initial_mode): Rename to ...
33119 (initial_vbe_mode): ... this. All users updated.
33120 (mode_in_use): Rename to ..
33121 (vbe_mode_in_use): ... this. All users updated.
33122 (mode_list): Rename to ..
33123 (vbe_mode_list): ... this. All users updated.
33124 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
33125 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
33126 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
33127 'mode_list_size' to 'vbe_mode_list_size'.
33128 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
33129 'best_mode_info' to 'best_vbe_mode_info' and
33130 'best_mode' to 'best_vbe_mode'
33131
6025fcd7 331322009-08-17 Michal Suchanek <hramrach@centrum.cz>
33133
33134 Remove duplicate grub_video_fb_get_video_ptr.
33135
33136 * include/grub/fbutil.h (get_data_ptr): Rename to ...
33137 (grub_video_fb_get_video_ptr): ... this.
33138 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
33139 * video/fb/fbutil.c: Add comment about addressing.
33140 (get_data_ptr): Rename to ...
33141 (grub_video_fb_get_video_ptr): ... this. All users updated.
33142 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
33143
cc8c6faf 331442009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33145
33146 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
33147 grub_dprintf() that was just added.
33148
08aa61f0 331492009-08-17 Robert Millan <rmh.grub@aybabtu.com>
33150
33151 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
33152 (DEFAULT_VIDEO_MODE): Remove macros.
33153 (grub_linux_boot): Remove assumption that Linux has FB support,
33154 and use "text" as default video mode.
33155
7cef4f75 331562009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
33157
33158 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
33159 grub_dprintf.
33160 * fs/fat.c (grub_fat_read_data): Likewise.
33161
e1f39873 331622009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33163
33164 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
33165 payload.
33166 (grub_module): Likewise.
33167
c166d79e 331682009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33169
33170 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
33171 mbi->cmdline but free playground.
33172
c60cee8e 331732009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33174
33175 Handle group offset on UFS1.
33176
33177 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
33178 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
33179
c0d8b5d4 331802009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33181
33182 Split ufs.mod into ufs1.mod and ufs2.mod.
33183
33184 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
33185 (grub_fstest_SOURCES): Likewise.
33186 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
33187 (ufs_mod_SOURCES): Remove.
33188 (ufs_mod_CFLAGS): Likewise.
33189 (ufs_mod_LDFLAGS): Likewise.
33190 (ufs1_mod_SOURCES): New variable.
33191 (ufs1_mod_CFLAGS): Likewise.
33192 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 33193 (ufs2_mod_SOURCES): New variable.
33194 (ufs2_mod_CFLAGS): Likewise.
33195 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 33196 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
33197 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33198 Likewise.
33199 (grub_emu_SOURCES): Likewise.
33200 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33201 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33202 (grub_setup_SOURCES): Likewise.
33203 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33204 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
33205 (grub_setup_SOURCES): Likewise.
33206 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
33207 Likewise.
33208 * fs/ufs2.c: New file.
33209 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
33210
d3539132 332112009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
33212
33213 Framebuffer split.
33214
33215 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
33216 subsystem at the end.
33217 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
33218 (video_fb_mod_SOURCES): New variable.
33219 (video_fb_mod_CFLAGS): Likewise.
33220 (video_fb_mod_LDFLAGS): Likewise.
33221 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
33222 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
33223 * video/i386/pc/vbeblit.c: Moved from here ...
33224 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
33225 * video/i386/pc/vbefill.c: Moved from here ...
33226 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
33227 * video/i386/pc/vbeutil.c: Moved from here ...
33228 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
33229 * include/grub/i386/pc/vbeblit.h: Moved from here ...
33230 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
33231 * include/grub/i386/pc/vbefill.h: Moved from here ...
33232 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
33233 * include/grub/i386/pc/vbeutil.h: Moved from here ...
33234 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
33235 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
33236 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
33237 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
33238 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
33239 (grub_video_adapter): Added 'get_info_and_fini'.
33240 (grub_video_get_info_and_fini): New prototype.
33241 (grub_video_set_mode): make modestring const char *.
33242 * loader/i386/linux.c (grub_linux_setup_video): Use
33243 grub_video_get_info_and_fini.
33244 (grub_linux_boot): Move modesetting just before booting.
33245 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
33246 grub_video_get_info_and_fini.
33247 * video/i386/pc/vbe.c: Moved framebuffer part ...
33248 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
33249 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
33250 grub_video_fbstd_colors and grub_video_fb_set_palette.
33251 (grub_video_vbe_init): Clear 'framebuffer' variable and use
33252 grub_video_fb_init.
33253 (grub_video_vbe_fini): Use grub_video_fb_fini.
33254 (grub_video_vbe_setup): Use framebuffer.render_target instead of
33255 render_target and use grub_video_fb_set_active_render_target and
33256 grub_video_fb_set_palette.
33257 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
33258 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
33259 (grub_video_vbe_adapter): Use framebuffer.
33260 * video/video.c (grub_video_get_info_and_fini): New function.
33261 (grub_video_set_mode): Make modestring const char *.
33262 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
33263 values are already initialised.
33264
d404ee56 332652009-08-14 Pavel Roskin <proski@gnu.org>
33266
33267 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
33268 ABS and APPLE_CC.
33269 * boot/i386/pc/diskboot.S: Likewise.
33270 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
33271 sectors allow compilation on MacOSX.
33272 * conf/i386-pc.rmk: Enable unconditional compilation of
33273 lnxboot.img.
33274
9a10df16 332752009-08-13 Colin Watson <cjwatson@ubuntu.com>
33276
33277 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
33278 * util/grub.d/00_header.in: Enter interruptible sleep if
33279 GRUB_HIDDEN_TIMEOUT is set.
33280
be3c9ca7 332812009-08-13 Yves Blusseau <blusseau@zetam.org>
33282
33283 * include/grub/symbol.h: Add the LOCAL macro.
33284 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
33285 starting with "L_".
33286
1f9e557e 332872009-08-13 Pavel Roskin <proski@gnu.org>
33288
9ca62843 33289 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
33290 any modern compilers we support.
33291
1f9e557e 33292 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
33293 Use local labels starting with "L_" so that Apple assembler
33294 knows they are local.
33295
81623db6 332962009-08-10 Robert Millan <rmh.grub@aybabtu.com>
33297
33298 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
33299 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
33300 (bsd_kernel_types): ... this enum.
33301
33302 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
33303 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
33304 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
33305
33306 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
33307 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
33308 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
33309 messages.
33310
f5d35e7a 333112009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33312
33313 * util/grub-dumpdevtree: Moved from here ...
33314 * util/i386/efi/grub-dumpdevtree: ... to here.
33315 (hexify): New function. Converts a string to its hex version.
33316 Generate hex versions of "efi" and "device-properties" by calling
33317 hexify() on the ASCII strings rather than by hardcoding numbers.
33318
d1e1d527 333192009-08-08 Robert Millan <rmh.grub@aybabtu.com>
33320
33321 * fs/jfs.c: Update copyright year.
33322
1ebbe064 333232009-08-08 Felix Zielcke <fzielcke@z-51.de>
33324
33325 * util/grub.d/00_header.in: Fix a comment.
33326 * util/grub.d/10_linux.in: Likewise.
33327 * util/grub.d/10_windows.in: Likewise.
33328 * util/grub.d/10_hurd.in: Likewise.
33329
a78c8d24 333302009-08-08 Felix Zielcke <fzielcke@z-51.de>
33331
33332 * util/grub-mkconfig.in: Allow the user to specify the used font
33333 with GRUB_FONT.
33334
29a6b9e8 333352009-08-08 Pavel Roskin <proski@gnu.org>
33336
b5f16cc4 33337 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
33338 available, xfs.mod needs it now.
33339
2f5cb827 33340 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
33341 the "g" modifier in sed when the intention is to strip something
33342 once. This fixes comparison of kernels with multiple dashes.
33343
29a6b9e8 33344 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
33345 on it. Add missing space before closing bracket. Fix
33346 misleading formatting.
33347
892a3d98 333482009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33349
33350 * docs/grub.texi: Major overhaul. Remove all sections that are
33351 specific to GRUB Legacy, or mostly composed of Legacy-specific
33352 information.
33353
ed94253f 333542009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33355
33356 * docs/version.texi: New file. Provides version information for
33357 grub.texi.
33358
126d6628 333592009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33360
33361 * docs/grub.texi: Update CVS information to SVN.
33362 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
33363
998b5aa9 333642009-08-07 Felix Zielcke <fzielcke@z-51.de>
33365
33366 * util/grub-mkconfig.in: Remove a wrong `fi'.
33367
818e094a 333682009-08-07 Felix Zielcke <fzielcke@z-51.de>
33369
33370 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
33371 (grub_jfs_uuid): New function.
33372 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
33373
b969c52f 333742009-08-07 Felix Zielcke <fzielcke@z-51.de>
33375
33376 * util/grub-mkconfig_lib.in (font_path): Move the functionality
33377 of it to ...
33378 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
33379 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
33380
7a4894cc 333812009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33382
33383 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
33384 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
33385 Update all users.
33386
33387 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
33388 not just "vmlinu[zx]".
33389 Moved from here ...
33390 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
33391 all users.
33392
33393 * util/grub.d/10_linux.in (find_latest): Moved from here ...
33394 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
33395 all users.
33396
4e2171f8 333972009-08-07 Robert Millan <rmh.grub@aybabtu.com>
33398
33399 * util/grub.d/10_freebsd.in: Use an absolute device path for
33400 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
33401
6dcfcb32 334022009-08-06 Felix Zielcke <fzielcke@z-51.de>
33403
33404 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
33405 handling of multiple abstraction modules.
33406
f56a8756 334072009-08-04 Robert Millan <rmh.grub@aybabtu.com>
33408
33409 Fix a bug resulting in black screen when loading Linux using a
33410 packed video mode.
33411
33412 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
33413 function.
33414
33415 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
33416 (grub_vbe_bios_getset_dac_palette_width): New function.
33417 (grub_vbe_bios_get_dac_palette_width)
33418 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
33419 grub_vbe_bios_getset_dac_palette_width()).
33420
33421 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
33422 check for return status.
33423 (grub_vbe_get_video_mode_info): When getting information for a packed
33424 mode (<= 8 bpp), obtain DAC palette width using
33425 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
33426 {red,green,blue}_mark_size.
33427
222671b2 334282009-08-04 Felix Zielcke <fzielcke@z-51.de>
33429
ecb1a6d9 33430 * commands/search.c (options): Fix help output to match actual code.
222671b2 33431
f84114f5 334322009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
33433
33434 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
33435 of homegrown code.
33436
bd288a20 334372009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 33438
33439 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
33440 on XFS or ReiserFS.
33441
8aab5e25 334422009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
33443
33444 Support Apple partition map with sector size different from 512 bytes.
33445
33446 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
33447 (apple_partition_map_iterate): Respect 'aheader.blocksize'
33448 and 'apart.partmap_size'.
33449
6ad6258a 334502009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
334512009-08-01 Robert Millan <rmh.grub@aybabtu.com>
33452
33453 Fix cpuid command.
33454
33455 * commands/i386/cpuid.c (options): New variable.
33456 (grub_cmd_cpuid): Return real error.
33457 (GRUB_MOD_INIT(cpuid)): Declare options.
33458
67459bc6 334592009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
33460
33461 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
33462 valid.
33463
fbc6ab54 334642009-07-31 Bean <bean123ch@gmail.com>
33465
33466 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
33467 log2_inode.
33468 (grub_fshelp_node): Move inode field to the end.
33469 (grub_xfs_data): Remove inode field.
33470 (grub_xfs_inode_block): Calculate inode size using sblock.
33471 (grub_xfs_inode_offset): Likewise.
33472 (grub_xfs_read_inode): Calculate inode size using sblock.
33473 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
33474 (grub_xfs_iterate_dir): Calculate inode size using sblock.
33475 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
33476 to match inode size.
33477 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
33478 not accessible when data is null.
33479 (grub_xfs_open): Likewise.
33480
f45d6cfc 334812009-07-31 Bean <bean123ch@gmail.com>
33482
33483 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
33484 Don't change pv->disk if it's already set.
33485
33486 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
33487 (grub_raid_register): ... here.
33488 (grub_raid_rescan): Removed.
33489
33490 * include/grub/raid.h (grub_raid_rescan): Removed.
33491
33492 * util/grub-fstest.c: Remove include file <grub/raid.h>.
33493 (fstest): Replace grub_raid_rescan with module fini function followed
33494 by init function.
33495
33496 * util/grub-probe.c: Add include file <grub/raid.h>.
33497 (probe_raid_level): New function.
33498 (probe): Detect abstraction by walking the disk device, support two
33499 level of abstraction (LVM on RAID) when detecting partition map.
33500
24443b5a 335012009-07-31 Pavel Roskin <proski@gnu.org>
33502
33503 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
33504 to grub_zalloc(), it was erroneous.
33505 Reported by Bean <bean123ch@gmail.com>
33506
a275d9e7 335072009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
33508
33509 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 33510 embedding zone, not only the first one.
a275d9e7 33511
56c5a47f 335122009-07-29 Joe Auricchio <jauricchio@gmail.com>
33513
33514 * term/gfxterm.c (clear_char): New function.
33515 (grub_virtual_screen_setup): Use clear_char.
33516 (scroll_up): Likewise.
33517 (grub_virtual_screen_cls): Likewise.
33518
67bb323a 335192009-07-29 Felix Zielcke <fzielcke@z-51.de>
33520
33521 * util/deviceiter.c (get_acceleraid_disk_name): New static
33522 function.
33523 (grub_util_iterate_devices): Handle Accelraid devices.
33524 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
33525
388a7c75 335262009-07-28 Robert Millan <rmh.grub@aybabtu.com>
33527
33528 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
33529 separator for the suggested gfxpayload string (';' collides with the
33530 parser and needs escaping).
33531
3bb7abcf 335322009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
33533
33534 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
33535 Clear direction flag before jumping to OS.
33536 (grub_multiboot2_real_boot): Likewise.
33537
2ddd36d7 335382009-07-28 Felix Zielcke <fzielcke@z-51.de>
33539
33540 * util/i386/pc/grub-install: Fix parsing of --disk-module
33541 option.
33542
c521b62b 335432009-07-28 Felix Zielcke <fzielcke@z-51.de>
33544
33545 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
33546 when embedding.
33547
880e0a0c 335482009-07-26 Felix Zielcke <fzielcke@z-51.de>
33549
33550 * util/grub-mkconfig.in (package_version): New variable.
33551 Use it do display the version.
33552
2366e356 335532009-07-25 Felix Zielcke <fzielcke@z-51.de>
33554
33555 * kern/file.c (grub_file_open): Revert to previous check with
33556 grub_errno.
33557
7ad8c80e 335582009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33559
33560 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
33561 from help line. It's out of sync with code.
33562
72b9658b 335632009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
33564
33565 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
33566 entries on failed boot.
33567
77435277 335682009-07-25 Felix Zielcke <fzielcke@z-51.de>
33569
33570 * kern/file.c (grub_file_open): Fix an error check.
33571
fcaa8b21 335722009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
33573
35d16c74 33574 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
33575 partition map couldn't be identified.
fcaa8b21 33576
48904cd1 335772009-07-23 Pavel Roskin <proski@gnu.org>
33578
ef3c317f 33579 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
33580 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
33581 case of little endian words becomes just an optimization.
33582 Respect const modifier.
ad8ea1f4 33583 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 33584
48904cd1 33585 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
33586 to avoid loss of upper bits if align is unsigned and shorter
33587 than addr.
33588
260c9a89 335892009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33590
33591 UUID support for UFS
33592
33593 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
33594 (grub_ufs_uuid): New function.
33595 (grub_ufs_fs): add .uuid
33596
f76ce889 335972009-07-21 Pavel Roskin <proski@gnu.org>
33598
33599 * kern/dl.c (grub_dl_check_header): Make static.
33600
6a6cbcaf 336012009-07-21 Felix Zielcke <fzielcke@z-51.de>
33602
33603 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
33604 add drivemap for Vista. It breaks Windows 7.
33605
cffcddb2 336062009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
33607
33608 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
33609 128 bytes
33610
1ef44b80 336112009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33612
33613 Add BFS support
33614
33615 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
33616 (grub_fstest_SOURCES): Likewise.
33617 (pkglib_MODULES): Add befs.mod.
33618 (befs_mod_SOURCES): New variable.
33619 (befs_mod_CFLAGS): Likewise.
33620 (befs_mod_LDFLAGS): Likewise.
33621 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33622 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33623 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33624 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33625 (grub_setup_SOURCES): Likewise.
33626 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33627 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33628 (grub_setup_SOURCES): Likewise.
33629 * fs/befs.c: New file.
33630 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
33631 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
33632 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
33633 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
33634 (B_KEY_INDEX_ALIGN): New declaration.
33635 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
33636 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
33637 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
33638 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
33639 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
33640 (grub_afs_mount) [MODE_BFS]: Likewise.
33641 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
33642 (grub_afs_fs): Use GRUB_AFS_FSNAME
33643 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
33644 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
33645 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
33646 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
33647
4f253044 336482009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
33649
33650 * util/getroot.c (find_root_device): Add support for MacOSX.
33651 * util/hostdisk.c: Likewise.
33652
57a55913 336532009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33654
33655 * font/font.c (find_glyph): Check whether a font is present to avoid
33656 segmentation fault.
75421ca9 33657
336582009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 33659
33660 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
33661
e98cd0c2 336622009-07-20 Pavel Roskin <proski@gnu.org>
33663
33664 * configure.ac: Trim excessively wordy excuses.
33665
1d2d169a 336662009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33667
33668 Add symlink, mtime and label support to AtheFS.
33669
33670 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
33671 (grub_afs_iterate_dir): Handle symlinks.
33672 (grub_afs_open): Use grub_afs_read_symlink.
33673 (grub_afs_dir): Likewise.
33674 Pass mtime.
33675 (grub_afs_label): New function.
33676 (grub_afs_fs): Add grub_afs_label.
33677 (grub_afs_read_symlink): New function.
33678
186f3189 336792009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
33680
33681 Fix AtheFS support.
33682
33683 * fs/afs.c: Fix comments style.
33684 (grub_afs_blockrun): Declare as packed.
33685 (grub_afs_datastream): Likewise.
33686 (grub_afs_bnode): Likewise.
33687 (grub_afs_btree): Likewise.
33688 (grub_afs_sblock): Likewise.
33689 Declare `name' as char.
33690 (grub_afs_inode): Declare as packed.
33691 Change void *vnode to grub_uint32_t unused.
33692 (grub_afs_iterate_dir): Check that key_size is positive.
33693 (grub_afs_mount): Don't read superblock twice.
75421ca9 33694 (grub_afs_dir): Don't free node in case of error,
186f3189 33695 grub_fshelp_find_file already handles this.
33696 (grub_afs_open): Likewise.
33697
5680109e 336982009-07-19 Pavel Roskin <proski@gnu.org>
33699
33700 * Makefile.in: Remove LIBLZO and enable_lzo.
33701 * conf/i386-pc.rmk: Remove lzo support.
33702 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
33703 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
33704 support.
33705 * kern/i386/pc/lzo1x.S: Remove.
33706 * kern/i386/pc/startup.S: Remove lzo support.
33707 * util/i386/pc/grub-mkimage.c: Likewise.
33708
ac70fa32 337092009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
33710
33711 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
33712 * fs/xfs.c (grub_xfs_dir): Likewise.
33713 * fs/afs.c (grub_afs_dir): Likewise.
33714 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
33715 (grub_iso9660_open): Likewise.
33716 * fs/jfs.c (grub_jfs_open): Likewise.
33717 * fs/ext2.c (grub_ext2_dir): Likewise.
33718 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
33719 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 33720
eab58da2 337212009-07-16 Pavel Roskin <proski@gnu.org>
33722
d2838156 33723 * configure.ac: Never add "-c" to CFLAGS.
33724
55c70904 33725 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
33726
43e6200c 33727 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
33728 grub_cv_cc_efiemu should be used.
33729
ce7a733d 33730 * configure.ac: Typo fixes.
33731
eab58da2 33732 * kern/mm.c (grub_zalloc): New function.
33733 (grub_debug_zalloc): Likewise.
33734 * include/grub/mm.h: Declare grub_zalloc() and
33735 grub_debug_zalloc().
33736 * util/misc.c (grub_zalloc): New function.
33737 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
33738 instead of grub_malloc(), remove unneeded initializations.
33739 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
33740 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
33741 * commands/parttool.c (grub_cmd_parttool): Likewise.
33742 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
33743 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
33744 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
33745 * disk/usbms.c (grub_usbms_finddevs): Likewise.
33746 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
33747 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
33748 (grub_cmd_efiemu_pnvram): Likewise.
33749 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
33750 * fs/iso9660.c (grub_iso9660_mount): Likewise.
33751 (grub_iso9660_iterate_dir): Likewise.
33752 * fs/jfs.c (grub_jfs_opendir): Likewise.
33753 * fs/ntfs.c (list_file): Likewise.
33754 (grub_ntfs_mount): Likewise.
33755 * kern/disk.c (grub_disk_open): Likewise.
33756 * kern/dl.c (grub_dl_load_core): Likewise.
33757 * kern/elf.c (grub_elf_file): Likewise.
33758 * kern/env.c (grub_env_context_open): Likewise.
33759 (grub_env_set): Likewise.
33760 (grub_env_set_data_slot): Likewise.
33761 * kern/file.c (grub_file_open): Likewise.
33762 * kern/fs.c (grub_fs_blocklist_open): Likewise.
33763 * loader/i386/multiboot.c (grub_module): Likewise.
33764 * loader/xnu.c (grub_xnu_create_key): Likewise.
33765 (grub_xnu_create_value): Likewise.
33766 * normal/main.c (grub_normal_add_menu_entry): Likewise.
33767 (read_config_file): Likewise.
33768 * normal/menu_entry.c (make_screen): Likewise.
33769 * partmap/sun.c (sun_partition_map_iterate): Likewise.
33770 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
33771 * script/sh/script.c (grub_script_parse): Likewise.
33772 * video/bitmap.c (grub_video_bitmap_create): Likewise.
33773 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
33774 * video/readers/png.c (grub_png_output_byte): Likewise.
33775 (grub_video_reader_png): Likewise.
33776
830afef7 337772009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 33778
33779 Enable all targets that can be built by default
33780
830afef7 33781 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 33782 grub-mkfont and grub-fstest if they can be built
33783
ee293aee 337842009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33785
33786 Fix hang and segmentation fault in grub-emu-usb
33787
33788 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
33789 * util/usb.c (grub_libusb_devices): likewise
33790 (grub_libusb_init): rename to ...
33791 (GRUB_MOD_INIT (libusb)):...this
33792 (grub_libusb_fini): rename to ..
33793 (GRUB_MOD_FINI (libusb)):...this
33794 * disk/usbms.c (grub_usbms_transfer): fix retry logic
33795 * include/grub/disk.h (grub_raid_init): removed, it's useless
33796 (grub_raid_fini): likewise
33797 (grub_lvm_init): likewise
33798 (grub_lvm_fini): likewise
33799 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
33800 by grub_init_all
33801
94414221 338022009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33803
33804 Fix libusb
33805
33806 * Makefile.in (LIBUSB): new macro
33807 * genmk.rb (Utility/print_tail): new method
33808 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
33809 (top level): call util.print_tail at the end.
33810
59ade63d 338112009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33812
33813 Make FreeBSD accept zpool.cache
33814
33815 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
33816 type is /boot/zfs/zpool.cache
33817
a58da8c7 338182009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
33819
33820 Fix 64-bit efiemu
33821
33822 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
33823 correct wrong typedef
33824 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
33825
20591577 338262009-07-15 Pavel Roskin <proski@gnu.org>
33827
560ca572 33828 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
33829 * kern/disk.c (struct grub_disk_cache): Likewise.
33830
e8e8e4fd 33831 * commands/probe.c (options): Typo fix.
33832
fde24e10 33833 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
33834 Increase to 0x5a to accommodate FAT32. Adjust other offsets
33835 accordingly.
33836 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
33837
379c54c1 33838 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
33839 the end of "Error" to make the message more readable.
33840
7bd8f5bf 33841 * boot/i386/pc/boot.S (kernel_segment): Remove.
33842 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
33843 for destination.
33844
40b132c5 33845 * boot/i386/pc/boot.S (boot_version): Remove.
33846 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
33847 Remove.
33848
20591577 33849 * include/grub/i386/pc/boot.h: Sort all offsets.
33850 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
33851 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
33852 * boot/i386/pc/boot.S: Assert location of every offset listed in
33853 include/grub/i386/pc/boot.h.
33854
2df32b2c 338552009-07-13 Pavel Roskin <proski@gnu.org>
33856
44b5d879 33857 * include/grub/i386/coreboot/machine.h: Rename
33858 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
33859 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
33860 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
33861
17dc3751 33862 * kern/dl.c: Force native word size to suppress warnings when
33863 compiling grub-emu.
33864
2df32b2c 33865 * kern/device.c (grub_device_iterate): Change struct part_ent to
33866 hold the name, not a pointer to it. Use one grub_malloc() per
33867 partition, not two. Free partition_name if grub_malloc() fails.
33868 Set ents to NULL only before grub_partition_iterate() is called.
33869
75c59f59 338702009-07-11 Bean <bean123ch@gmail.com>
33871
33872 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
33873 childname.
33874
0ae1bf88 338752009-07-10 Bean <bean123ch@gmail.com>
338762009-07-10 Robert Millan <rmh.grub@aybabtu.com>
33877
33878 * kern/ieee1275/openfw.c (grub_children_iterate)
33879 (grub_devalias_iterate): Fix size evaluation for property or path
33880 strings, which was broken since r2132.
33881
8279cade 338822009-07-07 Pavel Roskin <proski@gnu.org>
33883
7d8a52d3 33884 * commands/search.c (search_file): Merge into ...
33885 (search_fs): ... this. Accept search type as argument.
33886 (grub_cmd_search): Pass search type to search_fs().
33887
25f9a05a 33888 * include/grub/util/console.h: New file.
33889 * util/console.c: Use it instead of grub/machine/console.h.
33890 * util/grub-emu.c: Likewise.
33891
8279cade 33892 * lib/arg.c (find_long_option): Remove.
33893 (find_long): Add `len' argument, make `s' const char *.
33894 (grub_arg_parse): Parse long options in place, not in a
33895 temporary buffer.
33896
4a11b60f 338972009-07-06 Pavel Roskin <proski@gnu.org>
33898
99f68041 33899 * commands/search.c (search_fs): Fix potential NULL pointer
33900 dereference.
33901
4a11b60f 33902 * commands/search.c (search_fs): Replace QUID macro with quid_fn
33903 function pointer.
33904
e110f4de 339052009-07-06 Daniel Mierswa <impulze@impulze.org>
33906
33907 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
33908 comparison.
33909
46eeb6a2 339102009-07-05 Pavel Roskin <proski@gnu.org>
33911
bab74958 33912 * include/grub/i386/linux.h (struct linux_kernel_params):
33913 Restore padding3, it's still needed.
33914
46eeb6a2 33915 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
33916 FreeBSD.
33917 * util/osdetect.lua: Likewise.
33918
b4a1dc79 339192009-07-05 Bean <bean123ch@gmail.com>
33920
33921 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
33922
33923 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
33924 (grub_lua_getenv): Likewise.
33925 (grub_lua_setenv): Likewise.
33926 (save_errno): New function.
33927 (push_result): Likewise.
33928 (grub_lua_enum_device): Likewise.
33929 (grub_lua_enum_file): Likewise.
33930 (grub_lua_file_open): Likewise.
33931 (grub_lua_file_close): Likewise.
33932 (grub_lua_file_seek): Likewise.
33933 (grub_lua_file_read): Likewise.
33934 (grub_lua_file_getline): Likewise.
33935 (grub_lua_file_getsize): Likewise.
33936 (grub_lua_file_getpos): Likewise.
33937 (grub_lua_file_eof): Likewise.
33938 (grub_lua_file_exist): Likewise.
33939 (grub_lua_add_menu): Likewise.
33940
33941 * script/lua/grub_lua.h (isupper): New inline function.
33942 (islower): Likewise.
33943 (ispunct): Likewise.
33944 (isxdigit): Likewise.
33945 (strcspn): Change to normal function.
33946 (strpbkr): New function declaration.
33947 (memchr): Likewise.
33948
33949 * script/lua/grub_main.c (scan_str): New function.
33950 (strcspn): Likewise.
33951 (strpbrk): Likewise.
33952 (memchr): Likewise.
33953
33954 * script/lua/linit.c (lualibs): Enable the string library.
33955
33956 * util/osdetect.lua: New file.
33957
2da92295 339582009-07-04 Robert Millan <rmh.grub@aybabtu.com>
33959
33960 * include/grub/i386/linux.h (struct linux_kernel_params): Add
33961 `capabilities' member.
33962
b2582ec9 339632009-07-02 Pavel Roskin <proski@gnu.org>
33964
33965 * genparttoollist.sh: Add missing newline at the end.
33966
32622956 339672009-07-01 Pavel Roskin <proski@gnu.org>
33968
87a7339e 33969 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
33970
d23af54e 33971 * util/hostdisk.c (open_device): Remove `const' from
33972 `sysctl_size', as sysctlbyname() can change it (in this case it
33973 doesn't actually happen).
33974
c94b18a9 33975 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
33976 using signed long int constants.
33977
c6cd3ef0 33978 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
33979 constant to avoid a warning on FreeBSD.
33980
0df63420 33981 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
33982 where it's needed.
33983
999577f1 33984 * Makefile.in: Install include/grub/machine symlink.
33985
6f41557f 33986 * Makefile.in: When installing symlinks, use "cp -fR", which
33987 works on FreeBSD and MacOSX.
33988 From Yves Blusseau <cl7m42e02@sneakemail.com>
33989
c8d22988 33990 * kern/dl.c (grub_dl_resolve_symbol): Make static.
33991 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
33992
1b96e952 33993 * util/misc.c: Move grub_reboot() and grub_halt() ...
33994 * util/grub-emu.c: ... here. Make main_env static.
33995 * include/grub/util/misc.h: Remove main_env.
33996
2ef0084d 33997 * kern/mm.c: Use correct format to print size_t.
33998
32622956 33999 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
34000 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
34001 * kern/powerpc/dl.c: Likewise.
34002 * kern/sparc64/dl.c: Likewise.
34003 * kern/x86_64/dl.c: Likewise.
34004
3f7f0cd0 340052009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34006
34007 Fix grub-emu build on sparc64-ieee1275.
34008
75421ca9 34009 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 34010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
34011
211d06b5 340122009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34013
34014 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
34015 (grub_reboot, grub_halt): New functions.
34016
34017 * util/i386/pc/misc.c: Delete. Update all users.
34018 * util/sparc64/ieee1275/misc.c: Likewise.
34019 * util/powerpc/ieee1275/misc.c: Likewise.
34020
aaf53e3c 340212009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34022
34023 * conf/i386.rmk (setjmp_mod_SOURCES)
34024 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
34025 * conf/common.rmk (setjmp_mod_SOURCES)
34026 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
34027 to use $(target_cpu).
34028 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
34029 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
34030 * conf/powerpc-ieee1275.rmk: Likewise.
34031 * conf/sparc64-ieee1275.rmk: Likewise.
34032
34033 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
34034 $(target_cpu) for kern/$(target_cpu)/dl.c.
34035 * conf/i386-efi.rmk: Likewise.
34036 * conf/i386-ieee1275.rmk: Likewise.
34037 * conf/x86_64-efi.rmk: Likewise.
34038 * conf/i386-coreboot.rmk: Likewise.
34039 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
34040 $(target_cpu) for kern/$(target_cpu)/dl.c and for
34041 kern/$(target_cpu)/cache.S.
34042 * conf/sparc64-ieee1275.rmk: Likewise.
34043
a337130b 340442009-07-01 Robert Millan <rmh.grub@aybabtu.com>
34045
34046 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
34047 type to `grub_uint8_t', and adjust `padding9' accordingly.
34048
c6fe4d53 340492009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34050
b09db61d 34051 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
34052
c6fe4d53 34053 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
34054 assembly in final jump, using register constraints.
34055
b09db61d 34056 (grub_linux_boot): For text mode, initialize `have_vga' using
34057 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
34058
34059 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
34060 right before the final jump.
34061
34062 Set `video_mode' to 0x3.
34063
34064 Document initialization of `video_page', `video_mode' and
34065 `video_ega_bx'.
34066
28333ad0 340672009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34068
34069 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
34070 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 34071 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 34072
02164e1b 340732009-06-29 Robert Millan <rmh.grub@aybabtu.com>
34074
34075 Fix build on Debian / sparc.
34076
34077 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
34078
18b6c557 340792009-06-28 Pavel Roskin <proski@gnu.org>
34080
85f2aab6 34081 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
34082 fix a warning.
34083
18b6c557 34084 * util/grub.d/10_linux.in: Match SUSE style initrd names.
34085
ad760f81 340862009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34087
34088 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
34089 `err'.
34090
87a4623b 340912009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34092
34093 Revert r2338.
34094
34095 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
34096 file can't be opened. grub_file_open() is already supposed to set
75421ca9 34097 grub_errno / grub_errmsg appropriately.
87a4623b 34098 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34099
8231fb77 341002009-06-27 Pavel Roskin <proski@gnu.org>
341012009-06-27 Robert Millan <rmh.grub@aybabtu.com>
34102
34103 * include/grub/dl.h: Include grub/elf.h.
34104 (struct grub_dl): Add symtab field.
34105 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
34106 GRUB_MODULES_MACHINE_READONLY.
34107 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
34108 of the header for read-only modules.
34109 (grub_dl_unload): Free mod->symtab for read-only modules.
34110 * kern/i386/dl.c: Use mod->symtab.
34111 * kern/powerpc/dl.c: Likewise.
34112 * kern/sparc64/dl.c: Likewise.
34113 * kern/x86_64/dl.c: Likewise.
34114
34115 * conf/i386-qemu.rmk: New file.
34116 * kern/i386/qemu/startup.S: Likewise.
34117 * kern/i386/qemu/mmap.c: Likewise.
34118 * boot/i386/qemu/boot.S: Likewise.
34119 * include/grub/i386/qemu/time.h: Likewise.
34120 * include/grub/i386/qemu/serial.h: Likewise.
34121 * include/grub/i386/qemu/kernel.h: Likewise.
34122 * include/grub/i386/qemu/console.h: Likewise.
34123 * include/grub/i386/qemu/boot.h: Likewise.
34124 * include/grub/i386/qemu/init.h: Likewise.
34125 * include/grub/i386/qemu/machine.h: Likewise.
34126 * include/grub/i386/qemu/loader.h: Likewise.
34127 * include/grub/i386/qemu/memory.h: Likewise.
34128
34129 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
34130 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
34131 [qemu] (pkglib_IMAGES): Add `boot.img'.
34132 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
34133 [qemu] (boot_img_FORMAT): New variables.
34134 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
34135 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
34136 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
34137 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
34138 [qemu] (kernel_img_FORMAT): New variables.
34139
34140 * configure.ac: Recognise `i386-qemu'.
34141
34142 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
34143 (for no compression).
34144 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
34145 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
34146 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
34147 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
34148 ifdefs).
34149
97fe384e 341502009-06-27 Pavel Roskin <proski@gnu.org>
34151
34152 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
34153 read.
34154 * efiemu/prepare32.c: Likewise.
34155 * efiemu/prepare64.c: Likewise.
34156
c402ab17 341572009-06-26 Pavel Roskin <proski@gnu.org>
34158
34159 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
34160 * include/grub/elf.h: Define symbols without "32" or "64" based
34161 on GRUB_TARGET_WORDSIZE.
34162 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
34163 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
34164 ELF definitions.
34165 * efiemu/loadcore64.c: Likewise.
34166 * loader/i386/bsd32.c: Likewise.
34167 * loader/i386/bsd64.c: Likewise.
34168 * kern/dl.c: Remove own ELF definitions.
34169 * util/i386/efi/grub-mkimage.c: Likewise.
34170
9bbdfd4d 341712009-06-23 Robert Millan <rmh.grub@aybabtu.com>
34172
34173 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
34174 segment 0x0 unconditionally, because the reference generated by
34175 GAS is an absolute address.
34176
a42ce6e9 341772009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34178
34179 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
34180 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
34181
c952cf92 341822009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34183
34184 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
34185 indexes. Check for -f explicitly.
cc3752ad 34186 (search_file): Improve error message.
34187 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 34188
132a0a59 341892009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34190
34191 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
34192 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
34193
387a140c 341942009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34195
34196 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
34197 * conf/i386-ieee1275.rmk: Likewise.
34198 * conf/i386-coreboot.rmk: Likewise.
34199
34200 * kern/i386/pc/startup.S (grub_stop): Remove function.
34201 * kern/i386/ieee1275/startup.S: Likewise.
34202 * kern/i386/coreboot/startup.S: Likewise.
34203 * kern/i386/misc.S (grub_stop): New function.
34204
41da9665 342052009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34206
34207 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
34208 * kern/i386/realmode.S (real_to_prot): ... to here.
34209
bf337234 342102009-06-22 Robert Millan <rmh.grub@aybabtu.com>
34211
34212 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
34213 with `kernel.img'.
34214 (kernel_elf_SOURCES): Rename to ...
34215 (kernel_img_SOURCES): ... this.
34216 (kernel_elf_HEADERS): Rename to ...
34217 (kernel_img_HEADERS): ... this. Update all users.
34218 (kernel_elf_ASFLAGS): Rename to ...
34219 (kernel_img_ASFLAGS): ... this.
34220 (kernel_elf_CFLAGS): Rename to ...
34221 (kernel_img_CFLAGS): ... this.
34222 (kernel_elf_LDFLAGS): Rename to ...
34223 (kernel_img_LDFLAGS): ... this.
34224 * conf/i386-coreboot.rmk: Likewise.
34225 * conf/powerpc-ieee1275.rmk: Likewise.
34226
34227 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
34228 with "kernel.img".
34229
f52196ff 342302009-06-21 Pavel Roskin <proski@gnu.org>
34231
c3cee413 34232 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
34233 to match nested functions.
34234 * loader/sparc64/ieee1275/linux.c: Likewise.
34235
f52196ff 34236 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
34237
58750afc 342382009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34239
34240 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
34241 all i386 platforms.
34242
15355c7d 342432009-06-21 Robert Millan <rmh.grub@aybabtu.com>
34244
34245 Fix asm file handling on ELF, and remove workarounds.
34246
34247 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 34248 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 34249 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
34250 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
34251
3f3ec72b 342522009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
34253
34254 Load BSD ELF modules
34255
34256 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
34257 and loader/i386/bsd64.c
34258 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
34259 (FREEBSD_MODTYPE_ELF_MODULE): New definition
34260 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
34261 (grub_freebsd_load_elfmodule32): New declaration
34262 (grub_freebsd_load_elfmoduleobj64): Likewise
34263 (grub_freebsd_load_elf_meta32): Likewise
34264 (grub_freebsd_load_elf_meta64): Likewise
34265 (grub_freebsd_add_meta): Likewise
34266 (grub_freebsd_add_meta_module): Likewise
34267 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
34268 (grub_freebsd_add_meta_module): Likewise and move module-specific
34269 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
34270 (grub_cmd_freebsd): Add elf-kernel specific parts
34271 based on grub_freebsd_add_meta_module
34272 (grub_cmd_freebsd_module): Add type parsing moved from
34273 grub_freebsd_add_meta_module
34274 (grub_cmd_freebsd_module_elf): New function
34275 (cmd_freebsd_module_elf): New variable
34276 (GRUB_MOD_INIT): Register freebsd_module_elf
34277 * loader/i386/bsd32.c: New file
34278 * loader/i386/bsd64.c: Likewise
34279 * loader/i386/bsdXX.c: Likewise
34280 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
34281 (grub_elf64_load): Likewise
34282 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
34283 All users updated
34284 (grub_elf64_load_hook_t): Likewise
34285
0db15301 342862009-06-21 Colin Watson <cjwatson@ubuntu.com>
34287
34288 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
34289 variable.
34290 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
34291 don't write a menu entry for recovery mode.
34292
546796c1 342932009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34294
34295 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
34296 after it's no longer needed.
34297
cd7310d5 342982009-06-20 Robert Millan <rmh.grub@aybabtu.com>
34299
34300 * include/grub/i386/loader.h (grub_linux_prot_size)
34301 (grub_linux_tmp_addr, grub_linux_real_addr)
34302 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
34303 GRUB_MACHINE_PCBIOS.
34304 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
34305 common grub_util_info() call to ...
34306 (generate_image): ... here.
34307 Fix use of uninitialized memory, comparison of signed with
34308 unsigned integers and memory leak.
34309 Remove bogus module address message.
34310
ab32d3b5 343112009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
34312
34313 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
34314 grub_raid_register
34315 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
34316
024ef597 343172009-06-19 Pavel Roskin <proski@gnu.org>
34318
34319 * configure.ac: Remove stray AC_MSG_CHECKING.
34320
3ac72b51 343212009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
34322
34323 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 34324
e14cd814 343252009-06-18 Pavel Roskin <proski@gnu.org>
34326
34327 * conf/common.rmk: Add fs_file.mod.
34328 * disk/fs_file.c: New file.
34329 * include/grub/disk.h (enum grub_disk_dev_id): Add
34330 GRUB_DISK_DEVICE_FILE_ID.
34331
26586d98 343322009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34333
34334 Fix build with Apple's toolchain. Part 2
34335
34336 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
34337 a fake start
34338
26de2bcd 343392009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34340
34341 Fix build with Apple's toolchain. Part 1
34342
34343 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
34344 for long calls
34345 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 34346 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 34347 Apple's toolchain
34348
09b3490b 343492009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
34350
34351 Fix warnings
34352
34353 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
34354 (decomp_block): initialize ch
34355 use grub_memcpy instead of memcpy
34356
c22a006a 343572009-06-17 Pavel Roskin <proski@gnu.org>
34358
d3638678 34359 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
34360 version, use declarations needed to use vga_text as the startup
34361 console.
34362
c22a006a 34363 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
34364 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
34365 the kernel.
34366 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
34367 and grub_at_keyboard_fini(), it's done on module load and
34368 unload.
34369
05b129e0 343702009-06-17 Felix Zielcke <fzielcke@z-51.de>
34371
34372 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
34373 file can't be found.
34374 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
34375
cf24ed9e 343762009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34377
34378 Fix newline handling
34379
34380 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 34381 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 34382 (grub_script_yylex): don't segfault on unterminated script
34383 newline terminates command and variable
34384
74aa8e4b 343852009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
34386
34387 avoid double grub_adjust_range call. Bug reported by David Simner
34388
34389 * kern/disk.c (grub_disk_write): change to raw disk access before
34390 calling disk_read
34391
1bd265f3 343922009-06-17 Colin Watson <cjwatson@ubuntu.com>
34393
34394 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
34395 spaces, for the benefit of help2man.
34396 * util/i386/efi/grub-mkimage.c (usage): Likewise.
34397
a2d08c06 343982009-06-16 Pavel Roskin <proski@gnu.org>
34399
34400 * kern/i386/halt.c: Include grub/machine/init.h.
34401 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
34402
b97bcb19 344032009-06-16 Felix Zielcke <fzielcke@z-51.de>
34404
34405 * util/grub.d/30_os-prober.in: Use ${root} in the generated
34406 drivemap menuentry.
34407
0644f96c 344082009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
34409
34410 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
34411 `echo' command.
34412
3ef17a2e 344132009-06-16 Pavel Roskin <proski@gnu.org>
34414
34415 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
34416 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
34417 save %dx, we only need %dl and we never change it.
34418 * boot/i386/pc/cdboot.S: Don't set the root drive.
34419 * boot/i386/pc/pxeboot.S: Likewise.
34420 * include/grub/i386/pc/boot.h: Remove
34421 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
34422 GRUB_BOOT_MACHINE_DRIVE_CHECK.
34423 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
34424 * kern/i386/pc/init.c (make_install_device): Remove references
34425 to grub_root_drive.
34426 * kern/i386/pc/startup.S: Likewise.
34427 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
34428
693fe637 344292009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34430
34431 xnu_uuid command
34432
34433 * commands/xnu_uuid.c: new file
34434 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
34435 (xnu_uuid_mod_SOURCES): new variable
34436 (xnu_uuid_mod_CFLAGS): likewise
34437 (xnu_uuid_mod_LDFLAGS): likewise
34438 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34439 * conf/i386-ieee1275.rmk: likewise
34440 * conf/i386-pc.rmk: likewise
34441 * conf/powerpc-ieee1275.rmk: likewise
34442 * conf/sparc64-ieee1275.rmk: likewise
34443 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
34444
c9da87d0 344452009-06-16 Pavel Roskin <proski@gnu.org>
34446
34447 * configure.ac: Avoid '==' in test command, it's not portable.
34448
9c6f4596 344492009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
34450
34451 Probe command
34452
34453 * commands/probe.c: new file
34454 * conf/common.rmk (pkglib_MODULES): add probe.mod
34455 (probe_mod_SOURCES): new variable
34456 (probe_mod_CFLAGS): likewise
34457 (probe_mod_LDFLAGS): likewise
34458 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
34459 * conf/i386-ieee1275.rmk: likewise
34460 * conf/i386-pc.rmk: likewise
34461 * conf/powerpc-ieee1275.rmk: likewise
34462 * conf/sparc64-ieee1275.rmk: likewise
34463
70b7f9fd 344642009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
34465
34466 Fix handling of string like \"hello\" and "a
34467 b"
34468
34469 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
34470 (grub_script_yylex): fix parsing of quoting, escaping and newline
34471
71c79a6b 344722009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
34473
dd74360c 34474 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 34475 handling
dd74360c 34476
0644f96c 344772009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 34478
34479 * util/grub-mkconfig.in: Fix parsing of --output option.
34480
e40893c3 344812009-06-12 Pavel Roskin <proski@gnu.org>
34482
34483 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
34484 genmk.rb don't need to be generated or installed.
34485
3a1acfe2 344862009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
34487
34488 * commands/i386/pc/drivemap_int13h.S: add more comments
34489
3a4575d4 344902009-06-11 Pavel Roskin <proski@gnu.org>
34491
0658e928 34492 * Makefile.in (uninstall): Uninstall manuals.
34493
ca0388f0 34494 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
34495 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
34496 and update-grub_lib in two places.
34497 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
34498
e3b27c39 34499 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
34500 a compiler warning.
34501
3a4575d4 34502 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
34503 `entry_lo' to fix variable shadowing.
34504
af1f4f55 345052009-06-11 Christian Franke <franke@computer.org>
34506
34507 * kern/misc.c (__enable_execute_stack): Add missing return type
34508 to prevent gcc warning.
34509
5225e649 345102009-06-11 Felix Zielcke <fzielcke@z-51.de>
34511
34512 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
34513
7d83bd47 345142009-06-11 Pavel Roskin <proski@gnu.org>
34515
c1cb63ba 34516 * Makefile.in: Don't rely on any scripts being executable.
34517 Always use $(SHELL) to run shell scripts.
34518
7d83bd47 34519 * configure.ac: Always define ___main if using -nostdlib. This
34520 fixes tests on Cygwin.
34521
948f48e7 345222009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
34523
34524 UDF fix
34525
7d83bd47 34526 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 34527 is in bytes and not in blocks
7d83bd47 34528
8ada9bc1 345292009-06-11 Pavel Roskin <proski@gnu.org>
34530
34531 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
34532 warning.
34533
25ad2323 345342009-06-11 Felix Zielcke <fzielcke@z-51.de>
34535
34536 * util/grub.d/30_os-prober.in: Fix a comment. Source
34537 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
34538 to set the root device. Place drivemap command in the generated
34539 chain entry.
34540
e65acb0c 345412009-06-11 Pavel Roskin <proski@gnu.org>
34542
34543 * configure.ac: Remove host_m32. Issues with 64-bit utilities
34544 have long been resolved.
34545
f285fe2d 345462009-06-11 Colin Watson <cjwatson@ubuntu.com>
34547
bd47b0b5 34548 * util/grub.d/10_linux.in: Capitalise "Linux".
34549
f285fe2d 34550 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
34551
a0c62e4e 345522009-06-11 Pavel Roskin <proski@gnu.org>
34553
b6783cb2 34554 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
34555 fix a gcc warning and ensure that the function won't ever exit.
34556
dde032e8 34557 * kern/i386/ieee1275/init.c: Add missing prototype for
34558 grub_stop_floppy().
34559
22cd079d 34560 * loader/ieee1275/multiboot2.c [__i386__]: Include
34561 grub/cpu/multiboot.h.
34562
a0c62e4e 34563 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
34564 casts to short - they are not portable and cause warnings. Fix
34565 use of uninitialized values in input_buf. Use ARRAY_SIZE.
34566
63963d17 345672009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
34568
34569 Drivemap fixes
34570
34571 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
34572 new function
34573 (grub_get_root_biosnumber_saved): new variable
34574 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
34575 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 34576 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 34577 %dx after the call if necessary
34578 * conf/common.rmk (pkglib_MODULES): remove boot.mod
34579 (boot_mod_SOURCES): remove
34580 (boot_mod_CFLAGS): remove
34581 (boot_mod_LDFLAGS): remove
34582 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
34583 (boot_mod_SOURCES): new variable
34584 (boot_mod_CFLAGS): likewise
34585 (boot_mod_LDFLAGS): likewise
34586 * conf/i386-efi.rmk: likewise
34587 * conf/i386-ieee1275.rmk: likewise
34588 * conf/i386-pc.rmk: likewise
34589 * conf/powerpc-ieee1275.rmk: likewise
34590 * conf/sparc64-ieee1275.rmk: likewise
34591 * conf/x86_64-efi.rmk: likewise
34592 * include/grub/i386/pc/biosnum.h: new file
34593 * lib/i386/pc/biosnum.c: likewise
34594 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
34595 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
34596 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 34597
33abf7ae 345982009-06-10 Pavel Roskin <proski@gnu.org>
34599
5ac35b35 34600 * io/gzio.c (test_header): Don't reuse one buffer for all data.
34601 Use separate variables. Read only the file size at the end, but
34602 not the checksum that we don't use.
34603
5c5215d5 34604 * kern/file.c (grub_file_read): Use void pointer for the buffer.
34605 Adjust all callers.
34606
27d5fef7 34607 * kern/ieee1275/openfw.c: Remove libc includes.
34608 * kern/ieee1275/cmain.c: Likewise.
34609 * include/grub/ieee1275/ieee1275.h: Likewise.
34610
33abf7ae 34611 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
34612 compiler warnings.
34613
19d50c2b 346142009-06-10 Felix Zielcke <fzielcke@z-51.de>
34615
34616 * Makefile.in: Remove all trailing whitespace.
34617 * conf/i386-pc.rmk: Likewise.
34618 * conf/powerpc-ieee1275.rmk: Likewise.
34619 * conf/sparc64-ieee1275.rmk: Likewise.
34620 * docs/grub.texi: Likewise.
34621 * docs/texinfo.tex: Likewise.
34622 * disk/fs_uuid.c: Likewise.
34623 * disk/lvm.c: Likewise.
34624 * disk/scsi.c: Likewise.
34625 * disk/ata.c: Likewise.
34626 * disk/ieee1275/ofdisk.c: Likewise.
34627 * disk/i386/pc/biosdisk.c: Likewise.
34628 * disk/host.c: Likewise.
34629 * disk/raid.c: Likewise.
34630 * disk/efi/efidisk.c: Likewise.
34631 * disk/usbms.c: Likewise.
34632 * disk/memdisk.c: Likewise.
34633 * disk/loopback.c: Likewise.
34634 * kern/powerpc/dl.c: Likewise.
34635 * kern/device.c: Likewise.
34636 * kern/dl.c: Likewise.
34637 * kern/sparc64/dl.c: Likewise.
34638 * kern/ieee1275/ieee1275.c: Likewise.
34639 * kern/term.c: Likewise.
34640 * kern/fs.c: Likewise.
34641 * kern/i386/dl.c: Likewise.
34642 * kern/i386/pc/startup.S: Likewise.
34643 * kern/i386/pc/init.c: Likewise.
34644 * kern/i386/pc/mmap.c: Likewise.
34645 * kern/i386/pc/lzo1x.S: Likewise.
34646 * kern/i386/ieee1275/init.c: Likewise.
34647 * kern/i386/realmode.S: Likewise.
34648 * kern/i386/tsc.c: Likewise.
34649 * kern/partition.c: Likewise.
34650 * kern/corecmd.c: Likewise.
34651 * kern/file.c: Likewise.
34652 * kern/efi/efi.c: Likewise.
34653 * kern/efi/init.c: Likewise.
34654 * kern/efi/mm.c: Likewise.
34655 * kern/main.c: Likewise.
34656 * kern/err.c: Likewise.
34657 * kern/env.c: Likewise.
34658 * kern/disk.c: Likewise.
34659 * kern/generic/millisleep.c: Likewise.
34660 * kern/generic/rtc_get_time_ms.c: Likewise.
34661 * kern/misc.c: Likewise.
34662 * kern/parser.c: Likewise.
34663 * genmk.rb: Likewise.
34664 * configure.ac: Likewise.
34665 * boot/i386/pc/diskboot.S: Likewise.
34666 * boot/i386/pc/pxeboot.S: Likewise.
34667 * boot/i386/pc/boot.S: Likewise.
34668 * boot/i386/pc/lnxboot.S: Likewise.
34669 * boot/i386/pc/cdboot.S: Likewise.
34670 * parttool/pcpart.c: Likewise.
34671 * video/readers/tga.c: Likewise.
34672 * video/video.c: Likewise.
34673 * video/bitmap.c: Likewise.
34674 * lib/envblk.c: Likewise.
34675 * lib/i386/setjmp.S: Likewise.
34676 * fs/xfs.c: Likewise.
34677 * fs/afs.c: Likewise.
34678 * fs/fat.c: Likewise.
34679 * fs/ntfs.c: Likewise.
34680 * fs/udf.c: Likewise.
34681 * fs/affs.c: Likewise.
34682 * fs/iso9660.c: Likewise.
34683 * fs/hfs.c: Likewise.
34684 * fs/fshelp.c: Likewise.
34685 * fs/ext2.c: Likewise.
34686 * fs/jfs.c: Likewise.
34687 * fs/reiserfs.c: Likewise.
34688 * fs/hfsplus.c: Likewise.
34689 * fs/minix.c: Likewise.
34690 * fs/cpio.c: Likewise.
34691 * fs/sfs.c: Likewise.
34692 * fs/ufs.c: Likewise.
34693 * efiemu/prepare.c: Likewise.
34694 * efiemu/loadcore_common.c: Likewise.
34695 * efiemu/runtime/efiemu.sh: Likewise.
34696 * efiemu/runtime/efiemu.S: Likewise.
34697 * efiemu/runtime/efiemu.c: Likewise.
34698 * efiemu/pnvram.c: Likewise.
34699 * efiemu/main.c: Likewise.
34700 * efiemu/i386/pc/cfgtables.c: Likewise.
34701 * efiemu/i386/loadcore64.c: Likewise.
34702 * efiemu/i386/loadcore32.c: Likewise.
34703 * efiemu/loadcore.c: Likewise.
34704 * efiemu/symbols.c: Likewise.
34705 * efiemu/mm.c: Likewise.
34706 * include/grub/autoefi.h: Likewise.
34707 * include/grub/datetime.h: Likewise.
34708 * include/grub/term.h: Likewise.
34709 * include/grub/hfs.h: Likewise.
34710 * include/grub/lvm.h: Likewise.
34711 * include/grub/i386/tsc.h: Likewise.
34712 * include/grub/i386/linux.h: Likewise.
34713 * include/grub/i386/xnu.h: Likewise.
34714 * include/grub/i386/efiemu.h: Likewise.
34715 * include/grub/i386/pc/biosdisk.h: Likewise.
34716 * include/grub/i386/pc/memory.h: Likewise.
34717 * include/grub/i386/pc/vbe.h: Likewise.
34718 * include/grub/parttool.h: Likewise.
34719 * include/grub/video.h: Likewise.
34720 * include/grub/memory.h: Likewise.
34721 * include/grub/fs.h: Likewise.
34722 * include/grub/partition.h: Likewise.
34723 * include/grub/xnu.h: Likewise.
34724 * include/grub/efi/api.h: Likewise.
34725 * include/grub/efi/pe32.h: Likewise.
34726 * include/grub/efi/memory.h: Likewise.
34727 * include/grub/multiboot.h: Likewise.
34728 * include/grub/usbdesc.h: Likewise.
34729 * include/grub/multiboot2.h: Likewise.
34730 * include/grub/acpi.h: Likewise.
34731 * include/grub/efiemu/efiemu.h: Likewise.
34732 * include/grub/disk.h: Likewise.
34733 * include/grub/ieee1275/ieee1275.h: Likewise.
34734 * include/grub/net.h: Likewise.
34735 * include/grub/machoload.h: Likewise.
34736 * include/grub/macho.h: Likewise.
34737 * include/multiboot.h: Likewise.
34738 * genmoddep.awk: Likewise.
34739 * normal/main.c: Likewise.
34740 * normal/menu_entry.c: Likewise.
34741 * normal/menu_viewer.c: Likewise.
34742 * normal/completion.c: Likewise.
34743 * normal/cmdline.c: Likewise.
34744 * normal/misc.c: Likewise.
34745 * normal/datetime.c: Likewise.
34746 * bus/usb/usbtrans.c: Likewise.
34747 * bus/usb/ohci.c: Likewise.
34748 * bus/usb/uhci.c: Likewise.
34749 * bus/usb/usb.c: Likewise.
34750 * mmap/efi/mmap.c: Likewise.
34751 * mmap/i386/pc/mmap_helper.S: Likewise.
34752 * mmap/i386/pc/mmap.c: Likewise.
34753 * mmap/i386/mmap.c: Likewise.
34754 * mmap/i386/uppermem.c: Likewise.
34755 * mmap/mmap.c: Likewise.
34756 * commands/acpi.c: Likewise.
34757 * commands/echo.c: Likewise.
34758 * commands/blocklist.c: Likewise.
34759 * commands/loadenv.c: Likewise.
34760 * commands/usbtest.c: Likewise.
34761 * commands/boot.c: Likewise.
34762 * commands/parttool.c: Likewise.
34763 * commands/search.c: Likewise.
34764 * commands/cat.c: Likewise.
34765 * commands/i386/pc/play.c: Likewise.
34766 * commands/i386/pc/drivemap.c: Likewise.
34767 * commands/i386/pc/vbeinfo.c: Likewise.
34768 * commands/i386/pc/acpi.c: Likewise.
34769 * commands/i386/pc/vbetest.c: Likewise.
34770 * commands/ls.c: Likewise.
34771 * commands/cmp.c: Likewise.
34772 * commands/test.c: Likewise.
34773 * commands/efi/acpi.c: Likewise.
34774 * commands/gptsync.c: Likewise.
34775 * commands/help.c: Likewise.
34776 * partmap/amiga.c: Likewise.
34777 * partmap/apple.c: Likewise.
34778 * partmap/acorn.c: Likewise.
34779 * partmap/pc.c: Likewise.
34780 * partmap/sun.c: Likewise.
34781 * partmap/gpt.c: Likewise.
34782 * script/sh/lexer.c: Likewise.
34783 * script/sh/function.c: Likewise.
34784 * font/font.c: Likewise.
34785 * font/font_cmd.c: Likewise.
34786 * loader/powerpc/ieee1275/linux.c: Likewise.
34787 * loader/efi/chainloader.c: Likewise.
34788 * loader/multiboot_loader.c: Likewise.
34789 * loader/macho.c: Likewise.
34790 * loader/i386/multiboot.c: Likewise.
34791 * loader/i386/linux.c: Likewise.
34792 * loader/i386/pc/linux.c: Likewise.
34793 * loader/i386/pc/multiboot2.c: Likewise.
34794 * loader/i386/pc/chainloader.c: Likewise.
34795 * loader/i386/pc/xnu.c: Likewise.
34796 * loader/i386/bsd_trampoline.S: Likewise.
34797 * loader/i386/efi/linux.c: Likewise.
34798 * loader/i386/multiboot_elfxx.c: Likewise.
34799 * loader/i386/bsd_helper.S: Likewise.
34800 * loader/i386/bsd.c: Likewise.
34801 * loader/i386/linux_trampoline.S: Likewise.
34802 * loader/i386/xnu_helper.S: Likewise.
34803 * loader/i386/xnu.c: Likewise.
34804 * loader/i386/bsd_pagetable.c: Likewise.
34805 * loader/i386/multiboot_helper.S: Likewise.
34806 * loader/xnu.c: Likewise.
34807 * loader/xnu_resume.c: Likewise.
34808 * io/gzio.c: Likewise.
34809 * term/efi/console.c: Likewise.
34810 * term/terminfo.c: Likewise.
34811 * term/ieee1275/ofconsole.c: Likewise.
34812 * term/i386/pc/serial.c: Likewise.
34813 * term/i386/pc/vesafb.c: Likewise.
34814 * term/i386/pc/vga.c: Likewise.
34815 * term/usb_keyboard.c: Likewise.
34816 * term/gfxterm.c: Likewise.
34817 * aclocal.m4: Likewise.
34818 * util/lvm.c: Likewise.
34819 * util/grub.d/30_os-prober.in: Likewise.
34820 * util/grub.d/10_hurd.in: Likewise.
34821 * util/console.c: Likewise.
34822 * util/grub-macho2img.c: Likewise.
34823 * util/grub-probe.c: Likewise.
34824 * util/hostfs.c: Likewise.
34825 * util/i386/pc/grub-mkimage.c: Likewise.
34826 * util/i386/pc/grub-setup.c: Likewise.
34827 * util/i386/efi/grub-mkimage.c: Likewise.
34828 * util/grub-mkconfig.in: Likewise.
34829 * util/raid.c: Likewise.
34830 * util/resolve.c: Likewise.
34831 * util/grub-mkdevicemap.c: Likewise.
34832 * util/grub-emu.c: Likewise.
34833 * util/getroot.c: Likewise.
34834 * util/hostdisk.c: Likewise.
34835 * util/usb.c: Likewise.
34836 * util/grub-editenv.c: Likewise.
34837 * util/misc.c: Likewise.
34838
d2d49665 348392009-06-10 Felix Zielcke <fzielcke@z-51.de>
34840
34841 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
34842 `genparttoollist.sh'.
34843 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
34844 Add `*.sh' to the list find searches for and change `mdate.sh'
34845 to `mdate-sh'.
34846
fe052e37 348472009-06-10 Pavel Roskin <proski@gnu.org>
34848
2763ac18 34849 * include/grub/multiboot2.h: Provide compatibility defines for
34850 multiboot2.h.
34851 * include/multiboot2.h: Include stdint.h only if needed, using
34852 angle brackets.
34853 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
34854 grub/multiboot2.h.
34855 * loader/ieee1275/multiboot2.c: Likewise.
34856 * loader/multiboot2.c: Likewise.
34857 * loader/multiboot_loader.c: Likewise.
34858
437e6adc 34859 * configure.ac: Use -nostdlib when probing for the target. It
34860 should not be required to have libc for the target.
34861
06a6836c 34862 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
34863 they fail without libc headers for the target.
34864 * include/grub/powerpc/libgcc.h: Use weak attribute for all
34865 exports.
34866 * include/grub/sparc64/libgcc.h: Likewise. Don't use
34867 preprocessor conditionals.
34868
fe052e37 34869 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
34870 build system doesn't need to be aware of the tar.c internals.
34871
afd22553 348722009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 34873
afd22553 34874 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 34875
6b787c4f 348762009-06-09 Robert Millan <rmh.grub@aybabtu.com>
34877
34878 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
34879 disk limit to 26 for IDE, Virtio, Xen and SCSI.
34880
348812009-06-09 Felix Zielcke <fzielcke@z-51.de>
34882
34883 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 34884 aren't available if ata.mod gets used.
6b787c4f 34885
473d1e45 348862009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 34887
473d1e45 34888 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 34889 initialising controller.
473d1e45 34890 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 34891
255a27d4 348922009-06-08 Felix Zielcke <fzielcke@z-51.de>
34893
34894 * util/i386/pc/grub-install.in: Add a parameter --disk-module
34895 to choose between ata and biosdisk module on i386-pc.
34896
473d1e45 348972009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 34898
d55842d8 34899 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
34900 Subclass and Programming Interface fields in terms of the 3 byte
34901 Class Code register.
34902 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
34903
fa5db0b1 34904 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
34905 interface is OHCI. Add grub_dprintf for symmetry with
34906 bus/usb/uhci.c.
34907 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
34908 interface is UHCI. Add interf variable for programming
34909 interface. Print interface with class/subclass.
34910
c0947beb 34911 * bus/usb/ohci.c: Set interf with correct field.
34912
69da8877 34913 * bus/usb/uhci.c: Remove unneeded doubled lines.
34914 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
34915 Remove whitespace inside comment.
34916
9e172e30 349172009-06-08 Robert Millan <rmh.grub@aybabtu.com>
34918
34919 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
34920 as fallback an equivalent option without depth.
34921
de65ee2b 349222009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34923
34924 Not fail if unable to retrieve C/H/S on LBA disks
34925
473d1e45 34926 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 34927 if unable to retrieve C/H/S on LBA disks
34928
b57ea2c9 349292009-06-08 Pavel Roskin <proski@gnu.org>
34930
34931 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
34932 about aliasing.
34933
af361263 349342009-06-08 Felix Zielcke <fzielcke@z-51.de>
34935
34936 * Makefile.in (uninstall): Remove all $lib_DATA files.
34937
4c9ec6b3 349382009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
34939
34940 Bugfix: install on partitionless device
34941
34942 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
34943 is a whole disk
34944
e76fc924 349452009-06-08 Felix Zielcke <fzielcke@z-51.de>
34946
34947 * Makefile.in (uninstall): Remove all $include_DATA files.
34948
ba5a0d05 349492009-06-08 Felix Zielcke <fzielcke@z-51.de>
34950
34951 * commands/true.c: New file. Implement the true and false commands.
34952 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
34953 (true_mod_SOURCES): New variable.
34954 (true_mod_CFLAGS): Likewise.
34955 (true_mod_LDFLAGS): Likewise.
34956
c8048e32 349572009-06-05 Colin D Bennett <colin@gibibit.com>
34958
34959 Optimized font character lookup using binary search instead of linear
34960 search. Fonts now are required to have the character index ordered by
34961 code point.
34962
34963 * font/font.c (load_font_index): Verify that fonts have ordered
34964 character indices.
34965 (find_glyph): Use binary search instead of linear search to find a
34966 character in a font.
34967
408305be 349682009-06-05 Michael Scherer <misc@mandriva.org>
34969
34970 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
34971 uses case sensitive btree.
34972 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
34973 only for case insensitive filesystems.
34974
8ee1e0d9 349752009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
34976
34977 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
34978 * conf/common.rmk (search_mod_CFLAGS): likewise
34979
a9966eb1 349802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34981
473d1e45 34982 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 34983 compensate a compiler bug
34984
9e7100fb 349852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34986
473d1e45 34987 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 34988 instead of '\b'
473d1e45 34989
ede21d71 349902009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34991
34992 Definitions for creating asm symbols with Apple's CC
34993
34994 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
34995 [APPLE_CC] (VARIABLE): likewise
34996
9dbf7653 349972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
34998
34999 Disable lnxboot.img when compiled
35000 with Apple's CC
35001
35002 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
35003 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
35004 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
35005 [! APPLE_CC] (CODE_LENG): skip
35006 [! APPLE_CC] (setup_sects): likewise
35007 [! APPLE_CC]: skip filling
473d1e45 35008
e93cdc3d 350092009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35010
35011 Address in trampolines based on 32-bit registers when compiled
35012 with Apple's CC
35013
473d1e45 35014 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 35015 for addresses
35016 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
35017
6c688477 350182009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35019
35020 Avoid aliases when compiling with Apple's CC for PCBIOS machine
35021
35022 * kern/misc.c [APPLE_CC] (memcpy): new function
35023 [APPLE_CC] (memmove): likewise
35024 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 35025 (memcpy): define alias conditionally on !APPLE_CC
6c688477 35026 (memset): likewise
35027 (abort): likewise
35028 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
35029 APPLE_CC are defined
35030 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
35031 (grub_assert_fail): make prototype conditional
35032
e37ffc5c 350332009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35034
35035 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
35036
473d1e45 35037 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
35038 grub-macho2img
e37ffc5c 35039 (CLEANFILES): add grub-macho2img
35040 (grub_macho2img_SOURCES): new variable
35041 * kern/i386/pc/startup.S (bss_start): new variable
35042 (bss_end): likewise
35043 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
35044 * util/grub-macho2img.c: new file
35045
cf00df31 350462009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35047
35048 Use objconv when compiling with Apple's CC
35049
35050 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
35051 (efiemu64.o): likewise
35052 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
35053 when compiling with Apple's CC
35054 (efiemu64_s.o): likewise
35055 * configure.ac: check for objconv when compiling with Apple's CC
35056 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 35057
d119a20c 350582009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35059
35060 Define segment as well as section when compiling with
35061 Apple's CC
35062
35063 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
35064 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
35065 (efiemu_convert_pointer): likewise
35066 (efiemu_set_virtual_address_map): likewise
35067 (efiemu_convert_pointer): likewise
35068 (efiemu_getcrc32): likewise
35069 (init_crc32_table): likewise
35070 (reflect): likewise
35071 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
35072 (GRUB_MOD_DEP): likewise
473d1e45 35073
c8600122 350742009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35075
35076 Allow a compilation without -mcmodel=large
35077
35078 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
35079 when compiled without -mcmodel=large
473d1e45 35080 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 35081 without -mcmodel=large
473d1e45 35082 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 35083 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 35084
e8df1d4e 350852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35086
35087 Remove nested functions in efiemu core
35088
35089 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 35090
cc6c3ac1 350912009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35092
35093 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
35094
35095 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
35096 temporary storage
473d1e45 35097 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
35098 using Apple's CC
cc6c3ac1 35099 (grub_cpu_is_tsc_supported): likewise
35100 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 35101
3e325901 351022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35103
35104 Absolute addressing through constant with Apple's cc
35105
35106 * kern/i386/pc/startup.S: Define necessary constants
35107 and address through it when using ABS with Apple's CC
35108 * boot/i386/pc/diskboot.S: likewise
35109 * boot/i386/pc/boot.S: likewise
35110 * boot/i386/pc/lnxboot.S: likewise
35111 * boot/i386/pc/cdboot.S: likewise
35112 * mmap/i386/pc/mmap_helper.S: likewise
35113 * commands/i386/pc/drivemap_int13h.S: likewise
35114
2b167a72 351152009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35116
35117 Check if compiler is apple cc
35118
35119 * Makefile.in (ASFLAGS): new variable
35120 (TARGET_ASFLAGS): likewise
35121 (TARGET_MODULE_FORMAT): likewise
35122 (TARGET_APPLE_CC): likewise
35123 (OBJCONV): likewise
35124 (TARGET_IMG_CFLAGS): likewise
35125 (TARGET_CPPFLAGS): add includedir
35126 * configure.ac: call grub_apple_cc and grub_apple_target_cc
35127 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
35128 Check for linker script only if compiler isn't Apple's CC
35129 (TARGET_MODULE_FORMAT): set
35130 (TARGET_APPLE_CC): likewise
35131 (TARGET_ASFLAGS): likewise
35132 (ASFLAGS): likewise
35133 Check for objcopy only if compiler isn't Apple's CC
35134 Check for BSS symbol only if compiler isn't Apple's CC
35135 * genmk.rb: adapt nm options if we use Apple's utils
35136 * aclocal.m4 (grub_apple_cc): new test
35137 (grub_apple_target_cc): likewise
473d1e45 35138
fb14123e 351392009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35140
35141 Simplify sed expressions and improve awk
35142
35143 * Makefile.in (install-local): simplify sed expression
35144 * gencmdlist.sh: likewise
35145 * genmoddep.awk: avoid adding module as a dependency of itself
35146
5b889789 351472009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35148
35149 Add missing start symbols
35150
35151 * boot/i386/pc/boot.S: add start
fb14123e 35152 * boot/i386/pc/pxeboot.S: likewise
473d1e45 35153
fd2bf2e3 351542009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35155
35156 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 35157
35158 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 35159 (relocate_addresses): consider both r_addend and value at offset
35160 (make_mods_section): zerofill modinfo and header
35161 (convert_elf): write prefix here
473d1e45 35162
5389763d 351632009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35164
35165 Use .asciz instead of .string
35166
35167 * i386/pc/diskboot.S: use .asciz instead of .string
35168 * i386/pc/boot.S: likewise
35169 * include/grub/dl.h (GRUB_MOD_DEP): likewise
35170 (GRUB_MOD_NAME): likewise
473d1e45 35171
3eb5ed4e 351722009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35173
35174 gfxpayload support
35175
35176 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
35177 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
35178 (grub_video_setup): remove
35179 (grub_video_set_mode): new prototype
35180 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
35181 (vid_mode): remove
35182 (linux_vesafb_res): compile only on PCBIOS
35183 (grub_linux_boot): support gfxpayload
35184 * loader/i386/pc/xnu.c (video_hook): new function
35185 (grub_xnu_set_video): support gfxpayload
35186 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
35187 (DEFAULT_VIDEO_HEIGHT): likewise
35188 (DEFAULT_VIDEO_FLAGS): likewise
35189 (DEFAULT_VIDEO_MODE): new definition
35190 (video_hook): new function
35191 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 35192 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 35193 loading xnu
35194 * video/video.c (grub_video_setup): removed
473d1e45 35195 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 35196 grub_video_setup
35197
4b0e1143 351982009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35199
35200 Avoid calling biosdisk in drivemap
35201
35202 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
35203 (revparse_biosdisk): likewise
35204 (list_mappings): derive name from id directly
35205 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 35206
fda6cb98 352072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
35208
35209 Script fixes
35210
35211 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
35212 (grub_lexer_param): add tokenonhold
35213 (grub_script_create_cmdline): remove cmdline. All callers updated
35214 (grub_script_function_create): make functionname
35215 grub_script_arg. All callers updated
35216 (grub_script_execute_argument_to_string): new prototype
35217 * kern/parser.c (state_transitions): reorder
35218 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 35219 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 35220 make global
35221 (grub_script_execute_cmdline): use new format
35222 * script/sh/function.c (grub_script_function_create): make functionname
35223 grub_script_arg. All callers updated
473d1e45 35224 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 35225 (grub_script_yylex): remove
35226 (grub_script_yylex2): renamed to ...
35227 (grub_script_yylex): ...renamed
35228 parse the expressions like a${b}c
35229 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
35230 (GRUB_PARSER_TOKEN_VAR): remove
35231 (GRUB_PARSER_TOKEN_NAME): likewise
35232 ("if"): declare as typeless
35233 ("while"): likewise
35234 ("function"): likewise
35235 ("else"): likewise
35236 ("then"): likewise
35237 ("fi"): likewise
35238 (text): remove
35239 (argument): likewise
35240 (script): accept empty scripts and make exit on error
35241 (arguments): use GRUB_PARSER_TOKEN_ARG
35242 (function): likewise
35243 (command): move error handling to script
35244 (menuentry): move grub_script_lexer_ref before
473d1e45 35245 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 35246 argument. All callers updated
35247
f4448a07 352482009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35249
35250 Prevent GRUB from probing floppies during boot.
35251
35252 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
35253 * commands/search.c (options): Add --no-floppy.
35254 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
35255 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
35256 --no-floppy when searching for UUIDs.
35257
2bf5885a 352582009-06-04 Robert Millan <rmh.grub@aybabtu.com>
35259
35260 Simplify the code duplication in commands/search.c.
35261
35262 * commands/search.c (search_label, search_fs_uuid): Merge into ...
35263 (search_fs): ... this. Update all users.
35264
f6fd460a 352652009-06-03 Felix Zielcke <fzielcke@z-51.de>
35266
35267 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
35268
cbb3c83e 352692009-05-28 Pavel Roskin <proski@gnu.org>
35270
57788cfd 35271 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
35272 Remove the original symlink explicitly.
35273
cbb3c83e 35274 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
35275 just one slash. That's how grub_fshelp_find_file() does it.
35276
cd0d5e30 352772009-05-26 Pavel Roskin <proski@gnu.org>
35278
f0f8bbe2 35279 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
35280 to `str'.
35281
cd0d5e30 35282 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
35283 possibly unused.
35284
8c2cab51 352852009-05-25 Christian Franke <franke@computer.org>
35286
35287 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
35288 register.
35289 (grub_atapi_identify): Add wait after drive select.
35290 (grub_ata_identify): Do more strict status register check before
35291 calling grub_atapi_identify (). Suppress error message if status
35292 register is 0x00 after command failure. Add status register
35293 check after PIO read to avoid bogus identify due to stuck DRQ.
35294 Thanks to Pavel Roskin for testing.
35295 (grub_device_initialize): Remove unsafe status register check.
35296 Thanks to 'phcoder' for problem report and patch.
35297 Prevent sign extension in debug message.
35298
230c0ad6 352992009-05-23 Colin D Bennett <colin@gibibit.com>
35300
35301 Cleaned up `include/grub/normal.h'. Grouped prototypes by
35302 definition file, and functions defined in `normal/menu.c' have had
35303 their prototypes moved to `include/grub/menu.h' for consistency.
35304
35305 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
35306 from normal.h.
35307 (grub_menu_get_entry): Likewise.
35308 (grub_menu_get_timeout): Likewise.
35309 (grub_menu_set_timeout): Likewise.
35310 (grub_menu_execute_entry): Likewise.
35311 (grub_menu_execute_with_fallback): Likewise.
35312 (grub_menu_entry_run): Likewise.
35313
35314 * include/grub/normal.h: Re-ordered and grouped function
35315 prototypes by file that the function is defined in.
35316 (grub_menu_execute_callback): Removed; moved to menu.h.
35317 (grub_menu_get_entry): Likewise.
35318 (grub_menu_get_timeout): Likewise.
35319 (grub_menu_set_timeout): Likewise.
35320 (grub_menu_execute_entry): Likewise.
35321 (grub_menu_execute_with_fallback): Likewise.
35322 (grub_menu_entry_run): Likewise.
35323 (grub_menu_addentry): Renamed from this ...
35324 (grub_normal_add_menu_entry): ... to this.
35325
35326 * normal/main.c (grub_menu_addentry): Renamed from this ...
35327 (grub_normal_add_menu_entry): ... to this.
35328
35329 * script/sh/execute.c (grub_script_execute_menuentry): Update
35330 reference to renamed grub_menu_addentry function.
35331
861f03a5 353322009-05-23 Felix Zielcke <fzielcke@z-51.de>
35333
35334 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
35335
96b1619a 353362009-05-22 Pavel Roskin <proski@gnu.org>
35337
bf6a5fb2 35338 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
35339 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
35340 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
35341 compiling for the i386 targets, but not for the utilities.
35342
96b1619a 35343 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
35344 to grub_uint8_t.
35345 (grub_root_drive): Likewise.
35346 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
35347 remove alignment.
35348 (grub_root_drive): Change size to byte.
35349 (grub_start_addr): Remove.
35350 (grub_end_addr): Likewise.
35351 (grub_apm_bios_info): Likewise.
35352
b729776b 353532009-05-21 Felix Zielcke <fzielcke@z-51.de>
35354
35355 * normal/i386: Remove.
35356 * normal/powerpc: Likewise.
35357 * normal/sparc64: Likewise.
35358 * normal/x86_64: Likewise.
35359
0a15ce80 353602009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
35361
35362 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 35363 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 35364 * loader/i386/xnu_helper.S: Likewise
d6da58e6 35365
33db9015 353662009-05-18 Colin D Bennett <colin@gibibit.com>
35367
d6da58e6 35368 Display error messages when parsing a Lua statement fails.
35369 Previously, executing a syntactically invalid statement like
35370 ")foo" or "bar;" would silently fail.
33db9015 35371
35372 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 35373 (grub_lua_parse_line): Improved reporting of Lua parser and
35374 execution errors.
33db9015 35375
46422c89 353762009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35377
35378 Remove -Werror which causes build to fail on some systems
35379
35380 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
35381 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
35382 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 35383
22f53a96 353842009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
35385
35386 trampoline for linux on 64-bit platform
35387
18f547ad 35388 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
35389 loader/i386/efi/linux_trampoline.S
35390 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 35391 declaration
d6da58e6 35392 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
35393 here
22f53a96 35394 * loader/i386/linux_trampoline.S: moved here
d6da58e6 35395 * loader/i386/efi/linux.c (allocate_pages): reserve space for
35396 trampoline
22f53a96 35397 (jumpvector): removed
35398 (grub_linux_trampoline_start): new declaration
35399 (grub_linux_trampoline_end): likewise
35400 (grub_linux_boot): use trampoline when on 64-bit platform
35401 * loader/i386/linux.c: likewise
35402
cb5a0f40 354032009-05-16 Pavel Roskin <proski@gnu.org>
35404
35405 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
35406 const to avoid a warning.
35407 (grub_lua_setenv): Likewise.
35408 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
35409 lmsg to fix a warning.
35410
334f2c28 354112009-05-16 Felix Zielcke <fzielcke@z-51.de>
35412
35413 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 35414 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35415 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
35416 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35417 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35418 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
35419 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
35420 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 35421
59e5d3ec 354222009-05-16 Felix Zielcke <fzielcke@z-51.de>
35423
35424 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
35425
9d87a1ba 354262009-05-16 Bean <bean123ch@gmail.com>
35427
35428 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
35429 (lua_mod_SOURCES): New variable.
35430 (lua_mod_CFLAGS): Likewise.
35431 (lua_mod_LDFLAGS): Likewise.
35432
35433 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
35434 (setjmp_mod_SOURCES): New variable.
35435 (setjmp_mod_CFLAGS): Likewise.
35436 (setjmp_LDFLAGS): Likewise.
35437
35438 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
35439 (setjmp_mod_SOURCES): New variable.
35440 (setjmp_mod_CFLAGS): Likewise.
35441 (setjmp_LDFLAGS): Likewise.
35442
35443 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35444 (setjmp_mod_SOURCES): New variable.
35445 (setjmp_mod_CFLAGS): Likewise.
35446 (setjmp_LDFLAGS): Likewise.
35447
35448 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
35449 (setjmp_mod_SOURCES): New variable.
35450 (setjmp_mod_CFLAGS): Likewise.
35451 (setjmp_LDFLAGS): Likewise.
35452
35453 * normal/i386/setjmp.S: Moved from here ...
35454 * lib/i386/setjmp.S: ... Moved here
35455 * normal/x86_64/setjmp.S: Moved from here ...
35456 * lib/x86_64/setjmp.S: ... Moved here
35457 * normal/powerpc/setjmp.S: Moved from here ...
35458 * lib/powerpc/setjmp.S: ... Moved here
35459 * normal/sparc64/setjmp.S: Moved from here ...
35460 * lib/sparc64/setjmp.S: ... Moved here
35461
35462 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
35463 returns_twice in mingw.
35464
35465 * script/lua/grub_lib.c: New file.
35466 * script/lua/grub_lib.h: Likewise.
35467 * script/lua/grub_lua.h: Likewise.
35468 * script/lua/grub_main.c: Likewise.
35469 * script/lua/lapi.c: Likewise.
35470 * script/lua/lapi.h: Likewise.
35471 * script/lua/lauxlib.c: Likewise.
35472 * script/lua/lauxlib.h: Likewise.
35473 * script/lua/lbaselib.c: Likewise.
35474 * script/lua/lcode.c: Likewise.
35475 * script/lua/lcode.h: Likewise.
35476 * script/lua/ldblib.c: Likewise.
35477 * script/lua/ldebug.c: Likewise.
35478 * script/lua/ldebug.h: Likewise.
35479 * script/lua/ldo.c: Likewise.
35480 * script/lua/ldo.h: Likewise.
35481 * script/lua/ldump.c: Likewise.
35482 * script/lua/lfunc.c: Likewise.
35483 * script/lua/lfunc.h: Likewise.
35484 * script/lua/lgc.c: Likewise.
35485 * script/lua/lgc.h: Likewise.
35486 * script/lua/linit.c: Likewise.
35487 * script/lua/liolib.c: Likewise.
35488 * script/lua/llex.c: Likewise.
35489 * script/lua/llex.h: Likewise.
35490 * script/lua/llimits.h: Likewise.
35491 * script/lua/lmathlib.c: Likewise.
35492 * script/lua/lmem.c: Likewise.
35493 * script/lua/lmem.h: Likewise.
35494 * script/lua/loadlib.c: Likewise.
35495 * script/lua/lobject.c: Likewise.
35496 * script/lua/lobject.h: Likewise.
35497 * script/lua/lopcodes.c: Likewise.
35498 * script/lua/lopcodes.h: Likewise.
35499 * script/lua/loslib.c: Likewise.
35500 * script/lua/lparser.c: Likewise.
35501 * script/lua/lparser.h: Likewise.
35502 * script/lua/lstate.c: Likewise.
35503 * script/lua/lstate.h: Likewise.
35504 * script/lua/lstring.c: Likewise.
35505 * script/lua/lstring.h: Likewise.
35506 * script/lua/lstrlib.c: Likewise.
35507 * script/lua/ltable.c: Likewise.
35508 * script/lua/ltable.h: Likewise.
35509 * script/lua/ltablib.c: Likewise.
35510 * script/lua/ltm.c: Likewise.
35511 * script/lua/ltm.h: Likewise.
35512 * script/lua/lua.h: Likewise.
35513 * script/lua/luaconf.h: Likewise.
35514 * script/lua/lualib.h: Likewise.
35515 * script/lua/lundump.c: Likewise.
35516 * script/lua/lundump.h: Likewise.
35517 * script/lua/lvm.c: Likewise.
35518 * script/lua/lvm.h: Likewise.
35519 * script/lua/lzio.c: Likewise.
35520 * script/lua/lzio.h: Likewise.
35521
5e898c9d 355222009-05-16 Bean <bean123ch@gmail.com>
35523
35524 * include/grub/kernel.h (grub_module_header_types): Add type
35525 OBJ_TYPE_CONFIG.
35526
35527 * kern/main.c (grub_load_config): New function.
35528 (grub_main): Call grub_load_config to read boot config.
35529
35530 * grub-mkimage (generate_image): New parameter config_path.
35531 (options): New option --config.
35532 (main): Parse --config option, and pass it to generate_image.
35533
cf353a47 355342009-05-14 Christian Franke <franke@computer.org>
35535
35536 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
35537 This fixes build on Cygwin.
35538
3834887f 355392009-05-14 Pavel Roskin <proski@gnu.org>
35540
35541 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
35542 jump. This saves two bytes, so the typical case of 2 swapped
35543 drives would fit 32 bytes.
35544
8090fc01 355452009-05-13 Pavel Roskin <proski@gnu.org>
35546
ac963883 35547 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
35548 grub_uint32_t to avoid a warning.
35549
8090fc01 35550 * loader/i386/linux.c (allocate_pages): When assigning
35551 real_mode_mem, cast through grub_size_t to fix a warning. The
35552 code already makes sure that the value would fit a pointer.
35553 (grub_linux_setup_video): Cast render_target->data to
35554 grub_size_t to fix a warning.
35555
18f547ad 355562009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 35557
35558 * commands/i386/pc/drivemap.c: New file - implement drivemap
35559 command.
35560 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
35561 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
35562
6f6a8b28 355632009-05-13 Pavel Roskin <proski@gnu.org>
35564
35565 * util/i386/pc/grub-setup.c (setup): Remove unused variable
35566 embedding_area_exists.
35567
15fbf4c4 355682009-05-13 Robert Millan <rmh.grub@aybabtu.com>
35569
35570 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
35571 it easier to understand / work with.
59978c8a 35572 Improve warning messages for cases where there's no embedding area,
35573 or when it is too small (or core.img too large).
15fbf4c4 35574
238e871f 355752009-05-13 Pavel Roskin <proski@gnu.org>
35576
0ab3a9a4 35577 * loader/i386/pc/multiboot2.c: Add necessary includes for
35578 grub_multiboot2_real_boot().
35579
a2c8c5f8 35580 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
35581 PX record is always little-endian. We only need the lower 2
35582 bytes of the mode.
35583
faec96af 35584 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
35585 facilitate code reuse.
35586 (grub_cpio_mount): Use "struct head", not a char buffer. This
35587 fixes a warning reported by gcc 4.4.
35588
238e871f 35589 * kernel/disk.c (grub_disk_read): Use void pointer for the
35590 buffer.
35591 (grub_disk_write): Use const void pointer for the buffer.
35592 Adjust all callers. Remove unnecessary casts.
35593
901d2f0c 355942009-05-10 Robert Millan <rmh.grub@aybabtu.com>
35595
35596 * util/i386/pc/grub-install.in: Update copyright year.
35597
18f547ad 355982009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 35599
35600 gptsync
35601
35602 * commands/gptsync.c: new file
35603 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
35604 (gptsync_mod_SOURCES): new variable
35605 (gptsync_mod_CFLAGS): likewise
35606 (gptsync_mod_LDFLAGS): likewise
18f547ad 35607 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 35608 new definition
35609 (GRUB_PC_PARTITION_TYPE_HFS): likewise
35610 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
35611 * conf/i386-ieee1275.rmk: likewise
35612 * conf/i386-pc.rmk: likewise
35613 * conf/powerpc-ieee1275.rmk: likewise
35614
b4ba690a 356152009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
35616
35617 Fixed grub-emu
35618
35619 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
35620 (grub_dl_ref): likewise
35621
317e1a44 356222009-05-08 Robert Millan <rmh.grub@aybabtu.com>
35623
35624 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
35625 split in two functions (one for msdos and one for gpt).
35626
041b8094 356272009-05-08 Pavel Roskin <proski@gnu.org>
35628
752473c2 35629 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
35630 not modified.
35631
041b8094 35632 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
35633 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
35634 Initialize them with -1. Add sanity check for bad1. Eliminate
35635 nerr variable.
35636
172800ce 356372009-05-08 David S. Miller <davem@davemloft.net>
35638
35639 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
35640
29aa5e81 356412009-05-06 Robert Millan <rmh.grub@aybabtu.com>
35642
35643 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 35644 existence.
29aa5e81 35645
96613b62 356462009-05-05 Felix Zielcke <fzielcke@z-51.de>
35647
35648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 35649 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 35650
eef73c8a 356512009-05-05 David S. Miller <davem@davemloft.net>
35652
35653 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
35654
119494b5 356552009-05-05 Pavel Roskin <proski@gnu.org>
35656
35657 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
35658 of grub_dl_ref() and grub_dl_unref().
35659 * commands/parttool.c: Remove preprocessor conditionals around
35660 grub_dl_ref() and grub_dl_unref().
35661 * fs/affs.c: Likewise.
35662 * fs/afs.c: Likewise.
35663 * fs/cpio.c: Likewise.
35664 * fs/ext2.c: Likewise.
35665 * fs/fat.c: Likewise.
35666 * fs/hfs.c: Likewise.
35667 * fs/hfsplus.c: Likewise.
35668 * fs/iso9660.c: Likewise.
35669 * fs/jfs.c: Likewise.
35670 * fs/minix.c: Likewise.
35671 * fs/ntfs.c: Likewise.
35672 * fs/reiserfs.c: Likewise.
35673 * fs/sfs.c: Likewise.
35674 * fs/udf.c: Likewise.
35675 * fs/ufs.c: Likewise.
35676 * fs/xfs.c: Likewise.
35677 * include/grub/dl.h: Likewise.
35678 * loader/xnu.c: Likewise.
35679
de5fd76e 356802009-05-04 Pavel Roskin <proski@gnu.org>
35681
35682 * commands/acpi.c: Remove unused variable my_mod.
35683 * partmap/amiga.c: Likewise.
35684 * partmap/apple.c: Likewise.
35685 * partmap/gpt.c: Likewise.
35686 * partmap/pc.c: Likewise.
35687 * partmap/sun.c: Likewise.
35688 * term/gfxterm.c: Likewise.
35689 * term/i386/pc/vesafb.c: Likewise.
35690 * term/i386/pc/vga.c: Likewise.
35691
983598ad 356922009-05-04 David S. Miller <davem@davemloft.net>
35693
35694 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
35695 pointer args to grub_ieee1275_get_property().
35696
8aadec43 35697 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
35698
9554b15e 35699 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
35700 devices, and do not traverse down under controller nodes.
35701
67e23c90 35702 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
35703 (grub_ofdisk_open): Use it to un-escape "," characters.
35704 * kern/disk.c (find_part_sep): New.
35705 (grub_disk_open): Use it to find the first non-escaped ','
35706 character in the disk name.
35707 * util/ieee1275/devicemap.c (escape_of_path): New.
35708 (grub_util_emit_devicemap_entry): Use it.
35709 * util/sparc64/ieee1275/grub-install.in: Update script to
35710 strip partition specifiers properly by not triggering on
35711 '\' escaped ',' characters.
35712
74bfdd2f 357132009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35714
35715 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
35716 to 0x300.
35717 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
35718 resolutions.
35719 (linux_vesafb_modes): Add a lot of additional modes to the list (based
35720 on documentation from Wikipedia).
35721
4241d2b1 357222009-05-04 Pavel Roskin <proski@gnu.org>
35723
35724 * disk/ata.c: Spelling fixes.
35725 * disk/raid.c: Likewise.
35726 * disk/usbms.c: Likewise.
35727 * disk/dmraid_nvidia.c: Likewise.
35728 * kern/ieee1275/openfw.c: Likewise.
35729 * kern/ieee1275/init.c: Likewise.
35730 * kern/ieee1275/cmain.c: Likewise.
35731 * boot/i386/pc/cdboot.S: Likewise.
35732 * video/readers/png.c: Likewise.
35733 * video/i386/pc/vbe.c: Likewise.
35734 * fs/udf.c: Likewise.
35735 * fs/hfs.c: Likewise.
35736 * fs/reiserfs.c: Likewise.
35737 * efiemu/runtime/efiemu.c: Likewise.
35738 * efiemu/main.c: Likewise.
35739 * efiemu/mm.c: Likewise.
35740 * include/grub/elf.h: Likewise.
35741 * include/grub/xnu.h: Likewise.
35742 * include/grub/usbdesc.h: Likewise.
35743 * include/grub/usb.h: Likewise.
35744 * include/grub/script_sh.h: Likewise.
35745 * include/grub/lib/LzmaEnc.h: Likewise.
35746 * include/grub/efiemu/efiemu.h: Likewise.
35747 * include/grub/command.h: Likewise.
35748 * normal/menu.c: Likewise.
35749 * normal/main.c: Likewise.
35750 * normal/datetime.c: Likewise.
35751 * bus/usb/uhci.c: Likewise.
35752 * mmap/i386/uppermem.c: Likewise.
35753 * mmap/mmap.c: Likewise.
35754 * commands/acpi.c: Likewise.
35755 * commands/test.c: Likewise.
35756 * partmap/apple.c: Likewise.
35757 * font/font.c: Likewise.
35758 * loader/sparc64/ieee1275/linux.c: Likewise.
35759 * loader/macho.c: Likewise.
35760 * loader/i386/bsd_trampoline.S: Likewise.
35761 * loader/i386/bsd.c: Likewise.
35762 * loader/xnu.c: Likewise.
35763 * term/i386/pc/vesafb.c: Likewise.
35764 * term/usb_keyboard.c: Likewise.
35765 * util/resolve.c: Likewise.
35766 * util/getroot.c: Likewise.
35767
0cfc0083 357682009-05-04 Felix Zielcke <fzielcke@z-51.de>
35769
35770 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
35771
7c1d00cd 357722009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35773
35774 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
35775 build error.
35776
b01f0548 357772009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35778
35779 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
35780 parameter only available on BIOS.
35781
ecc3eb22 357822009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35783
35784 Removed wrong semicolon in declaration
35785
35786 * grub/misc.h (grub_dprintf): remove semicolon
35787
112972a9 357882009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35789
35790 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
35791 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
35792 is done by grub_cmd_linux() now).
35793 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
35794 restore video to text mode.
35795 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
35796 indicates lack of "vga=" parameter. "vga=0" is mapped to
35797 `GRUB_LINUX_VID_MODE_NORMAL'.
35798
afd5c115 357992009-05-04 Felix Zielcke <fzielcke@z-51.de>
35800
35801 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
35802 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
35803 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 35804 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 35805 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
35806 `grub_script.tab.c'.
35807
35808 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35809 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35810 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35811 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
35812 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35813
faa517ce 35814 * Makefile.in: Remove duplicated 2008 in Copyright line.
35815
ae0c0bdc 358162009-05-04 Robert Millan <rmh.grub@aybabtu.com>
35817
473d1e45 35818 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 35819 unconditionally.
35820 * include/grub/util/misc.h (grub_util_warn): New declaration.
35821
35822 * util/i386/pc/grub-install.in: Understand --force and pass it down
35823 to grub-setup.
35824
35825 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
35826 down to setup().
35827 (setup): Improve error messages and add warnings when requested to
35828 install in odd layouts. Refuse to install using blocklists unless
35829 --force was set.
35830
18f547ad 358312009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 35832
35833 * disk/raid.c (grub_raid_scan_device): Improve debug message.
35834
6d260daa 358352009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35836
35837 Updated copyright year
35838
35839 * fs/hfsplus.c: updated copyright year
18f547ad 35840
69f853f8 358412009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
35842
35843 HFS+ UUID
35844
18f547ad 35845 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 35846 in the space previously used by unused3
35847 (grub_hfsplus_uuid): new function
35848 (grub_hfsplus_fs): added uuid field
35849
4c402e73 358502009-05-03 Pavel Roskin <proski@gnu.org>
35851
35852 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
35853 suppress warnings. It's no longer needed.
35854 * disk/host.c: Likewise.
35855 * disk/ata_pthru.c: Likewise.
35856 * disk/loopback.c: Likewise.
35857 * hook/datehook.c: Likewise.
35858 * parttool/pcpart.c: Likewise.
35859 * fs/i386/pc/pxe.c: Likewise.
35860 * fs/ntfscomp.c: Likewise.
35861 * efiemu/main.c: Likewise.
35862 * mmap/mmap.c: Likewise.
35863 * commands/crc.c: Likewise.
35864 * commands/hexdump.c: Likewise.
35865 * commands/hdparm.c: Likewise.
35866 * commands/acpi.c: Likewise.
35867 * commands/echo.c: Likewise.
35868 * commands/minicmd.c: Likewise.
35869 * commands/blocklist.c: Likewise.
35870 * commands/memrw.c: Likewise.
35871 * commands/loadenv.c: Likewise.
35872 * commands/usbtest.c: Likewise.
35873 * commands/lsmmap.c: Likewise.
35874 * commands/boot.c: Likewise.
35875 * commands/parttool.c: Likewise.
35876 * commands/configfile.c: Likewise.
35877 * commands/search.c: Likewise.
35878 * commands/ieee1275/suspend.c: Likewise.
35879 * commands/cat.c: Likewise.
35880 * commands/i386/pc/pxecmd.c: Likewise.
35881 * commands/i386/pc/play.c: Likewise.
35882 * commands/i386/pc/halt.c: Likewise.
35883 * commands/i386/pc/vbeinfo.c: Likewise.
35884 * commands/i386/pc/vbetest.c: Likewise.
35885 * commands/lspci.c: Likewise.
35886 * commands/date.c: Likewise.
35887 * commands/handler.c: Likewise.
35888 * commands/ls.c: Likewise.
35889 * commands/test.c: Likewise.
35890 * commands/cmp.c: Likewise.
35891 * commands/efi/loadbios.c: Likewise.
35892 * commands/efi/fixvideo.c: Likewise.
35893 * commands/halt.c: Likewise.
35894 * commands/help.c: Likewise.
35895 * commands/reboot.c: Likewise.
35896 * hello/hello.c: Likewise.
35897 * script/sh/main.c: Likewise.
35898 * loader/xnu.c: Likewise.
35899 * term/terminfo.c: Likewise.
35900 * term/i386/pc/serial.c: Likewise.
35901 * term/usb_keyboard.c: Likewise.
35902
515b5079 359032009-05-03 David S. Miller <davem@davemloft.net>
35904
35905 * normal/menu.c: Include grub/parser.h
35906
dfc31a22 359072009-05-03 Pavel Roskin <proski@gnu.org>
35908
2fee74f1 35909 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
35910 not char*.
35911 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
35912 Suggested by Javier Martín <lordhabbit@gmail.com>
35913
dfc31a22 35914 * util/i386/pc/grub-mkrescue.in: Allow for the case when
35915 efiemu??.o doesn't exist.
35916 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
35917 copying.
35918
18f547ad 359192009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 35920
35921 FreeBSD 64-bit support
35922
18f547ad 35923 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 35924 and loader/i386/bsd_trampoline.S
35925 (bsd_mod_ASFLAGS): new variable
35926 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
35927 (FREEBSD_MODTYPE_KERNEL64): likewise
35928 (grub_bsd64_trampoline_start): likewise
35929 (grub_bsd64_trampoline_end): likewise
35930 (grub_bsd64_trampoline_selfjump): likewise
35931 (grub_bsd64_trampoline_gdt): likewise
35932 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
35933 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
35934 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
35935 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 35936 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 35937 of "attrib" member
35938 * loader/i386/bsd_pagetable.c: new file
35939 * loader/i386/bsd_trampoline.S: likewise
35940 * loader/i386/bsd.c (ALIGN_QWORD): new macro
35941 (ALIGN_VAR): likewise
35942 (entry_hi): new variable
35943 (kern_end_mdofs): likewise
35944 (is_64bit): likewise
35945 (grub_freebsd_add_meta): use ALIGN_VAR
35946 (grub_e820_mmap): new declaration
35947 (grub_freebsd_add_mmap): new function
35948 (grub_freebsd_add_meta_module): support 64 bit kernels
35949 (grub_freebsd_list_modules): use ALIGN_VAR
35950 (gdt_descriptor): new declaration
35951 (grub_freebsd_boot): support 64 bit kernels
35952 (grub_bsd_elf64_hook): new function
35953 (grub_bsd_load_elf): support elf64
35954
038c5720 359552009-05-03 Bean <bean123ch@gmail.com>
35956
35957 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
35958 after we get the result of if statement.
35959
fc45fb58 359602009-05-03 Bean <bean123ch@gmail.com>
35961
35962 * Makefile.in (enable_efiemu): New variable.
35963
35964 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
35965 set.
35966 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
35967 path.
35968 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
35969 path, add -mno-red-zone option.
35970 (efiemu64_s.o): Likewise.
35971 (efiemu64.o): Use macro $^ for source file.
35972
35973 * configure.ac (--enable-efiemu): New option.
35974
bbee0f2b 359752009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
35976
35977 xnu support
35978
35979 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
35980 (pkglib_MODULES): add xnu.mod
35981 (xnu_mod_SOURCES): new variable
35982 (xnu_mod_CFLAGS): likewise
35983 (xnu_mod_LDFLAGS): likewise
35984 (xnu_mod_ASFLAGS): likewise
35985 * conf/i386-pc.rmk: likewise
35986 * conf/x86_64-efi.rmk: likewise
7dd4a573 35987 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 35988 new declaration
35989 * include/grub/i386/macho.h: new file
35990 * include/grub/i386/xnu.h: likewise
35991 * include/grub/macho.h: likewise
35992 * include/grub/machoload.h: likewise
35993 * include/grub/x86_64/macho.h: likewise
35994 * include/grub/x86_64/xnu.h: likewise
35995 * include/grub/xnu.h: likewise
35996 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
35997 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
35998 * loader/i386/efi/xnu.c: new file
35999 * loader/i386/pc/xnu.c: likewise
36000 * loader/i386/xnu.c: likewise
36001 * loader/i386/xnu_helper.S: likewise
36002 * loader/macho.c: likewise
36003 * loader/xnu.c: likewise
36004 * loader/xnu_resume.c: likewise
36005 * util/grub-dumpdevtree: likewise
36006 * include/grub/i386/pit.h: include grub/err.h
36007 (grub_pit_wait): export
36008 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 36009
5caf964d 360102009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36011
36012 Efiemu
7dd4a573 36013
5caf964d 36014 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 36015 _linux_efi, linux_efi.
36016 new files in grub-emu
5caf964d 36017 new targets efiemu32.o and efiemu64.o
36018 * loader/linux_normal_efiemu.c: likewise
36019 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 36020 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 36021 files to copy
36022 * include/grub/autoefi.h: new file
7dd4a573 36023 * include/grub/i386/efiemu.h: likewise
5caf964d 36024 * include/grub/i386/pc/efiemu.h: likewise
36025 * include/grub/efi/api.h: add LL suffix when necessary
36026 new definitions relating to tables
36027 * include/grub/efiemu/efiemu.h: new file
36028 * include/grub/efiemu/runtime.h: likewise
36029 * efiemu/prepare.c: likewise
36030 * efiemu/loadcore_common.c: likewise
36031 * efiemu/loadcore64.c: likewise
36032 * efiemu/runtime/efiemu.sh: likewise
36033 * efiemu/runtime/efiemu.S: likewise
36034 * efiemu/runtime/efiemu.c: likewise
36035 * efiemu/runtime/config.h: likewise
36036 * efiemu/prepare32.c: likewise
36037 * efiemu/main.c: likewise
36038 * efiemu/modules/pnvram.c: likewise
36039 * efiemu/modules/i386: likewise
36040 * efiemu/modules/i386/pc: likewise
36041 * efiemu/modules/acpi.c: likewise
36042 * efiemu/i386/pc/cfgtables.c: likewise
36043 * efiemu/i386/loadcore64.c: likewise
36044 * efiemu/i386/loadcore32.c: likewise
36045 * efiemu/prepare64.c: likewise
36046 * efiemu/loadcore.c: likewise
36047 * efiemu/symbols.c: likewise
36048 * efiemu/mm.c: likewise
36049 * efiemu/loadcore32.c: likewise
7dd4a573 36050
360512009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 36052
36053 ACPI spoofing
36054
36055 * commands/acpi.c: new file
36056 * commands/i386/pc/acpi.c: likewise
36057 * commands/efi/acpi.c: likewise
36058 * include/grub/acpi.h: likewise
36059 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
36060 (acpi_mod_SOURCES): new variable
36061 (acpi_mod_CFLAGS): likewise
36062 (acpi_mod_LDFLAGS): likewise
36063 * conf/i386-efi.rmk: likewise
36064 * conf/x86_64-efi.rmk: likewise
36065
7dd4a573 360662009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 36067
36068 Missing part from mmap patch
36069
36070 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
36071 (grub_mmap_unregister)
36072 (grub_mmap_free_and_unregister): use grub_mmap_register
36073
7dd4a573 360742009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 36075
36076 Mmap services
36077
36078 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
36079 * loader/i386/linux.c (find_mmap_size): likewise
36080 (allocate_pages): likewise
36081 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
36082 (grub_fill_multiboot_mmap): likewise
36083 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
36084 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
36085 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
36086 (OPENBSD_MMAP_RESERVED): likewise
36087 * include/grub/i386/pc/memory.h: include grub/memory.h
36088 (grub_lower_mem): removed
36089 (grub_upper_mem): likewise
36090 (GRUB_MACHINE_MEMORY_ACPI): new definition
36091 (GRUB_MACHINE_MEMORY_NVS): likewise
36092 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
36093 (GRUB_MACHINE_MEMORY_HOLE): likewise
36094 (grub_machine_mmap_register): likewise
36095 (grub_machine_mmap_unregister): likewise
36096 (grub_machine_get_upper): likewise
36097 (grub_machine_get_lower): likewise
36098 (grub_machine_get_post64): likewise
36099 * include/grub/i386/efi/memory.h: new file
36100 * include/grub/x86_64/efi/memory.h: likewise
36101 * include/grub/efi/memory.h: likewise
36102 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
36103 (mmap_mod_SOURCES): new variable
36104 (mmap_mod_LDFLAGS): likewise
36105 (mmap_mod_ASFLAGS): likewise
36106 * conf/i386-coreboot.rmk: likewise
36107 * conf/i386-ieee1275.rmk: likewise
36108 * conf/i386-efi.rmk: likewise
36109 * conf/x86_64-efi.rmk: likewise
36110 * include/grub/types.h (UINT_TO_PTR): new macro
36111 (PTR_TO_UINT32): likewise
36112 (PTR_TO_UINT64): likewise
36113 * include/grub/memory.h: new file
36114 * mmap/i386/pc/mmap.c: likewise
36115 * mmap/i386/pc/mmap_helper.S: likewise
36116 * mmap/i386/uppermem.c: likewise
36117 * mmap/mmap.c: likewise
36118 * mmap/efi/mmap.c: likewise
7dd4a573 36119 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 36120 grub_upper_mem
36121 * kern/i386/pc/init.c (grub_lower_mem): removed variable
36122 (grub_upper_mem): likewise
36123 (grub_machine_init): don't use grub_upper_mem,
36124 make grub_lower_mem local
36125 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
36126 grub_mmap_iterate and grub_mmap_get_upper
36127 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
36128
d558e6b5 361292009-05-02 Bean <bean123ch@gmail.com>
36130
36131 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
36132 script/sh/parser.y.
36133 (pkglib_MODULES): Add normal.mod and sh.mod.
36134 (normal_SOURCES): New variable.
36135 (normal_mod_CFLAGS): Likewise.
36136 (normal_mod_LDFLAGS): Likewise.
36137 (sh_mod_SOURCES): Likewise.
36138 (sh_mod_CFLAGS): Likewise.
36139 (sh_mod_LDFLAGS): Likewise.
36140
36141 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
36142 script/sh/lexer.c_DEPENDENCIES.
36143 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
36144 kern/rescue_reader.c and kern/rescue_parser.c.
36145 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
36146 (grub_emu_SOURCES): Change source files.
36147 (pkglib_MODULES): Remove normal.mod.
36148 (normal_SOURCES): Removed.
36149 (normal_mod_CFLAGS): Likewise.
36150 (normal_mod_LDFLAGS): Likewise.
36151 * conf/i386-coreboot.rmk: Likewise.
36152 * conf/i386-efi.rmk: Likewise.
36153 * conf/i386-ieee1276.rmk: Likewise.
36154 * conf/powerpc-ieee1275.rmk: Likewise.
36155 * conf/sparc64-ieee1275.rmk: Likewise.
36156 * conf/x86_64-efi.rmk: Likewise.
36157
36158 * include/grub/command.h (grub_command_execute): New inline function.
36159
36160 * include/grub/menu.h (grub_menu_entry): Removed commands field.
36161
36162 * include/grub/normal.h: Remove <grub/setjmp.h>.
36163 (grub_fs_module_list): Moved to normal/autofs.c.
36164 (grub_exit_env): Removed.
36165 (grub_command_execute): Likewise.
36166 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
36167 parameter script.
36168 (read_command_list): New function declaration.
36169 (read_fs_list): Likewise.
36170
36171 * include/parser.h: Include <grub/reader.h>.
36172 (grub_parser_split_cmdline): Change type of getline parameter.
36173 (grub_parser): New structure.
36174 (grub_parser_class): New variable.
36175 (grub_parser_execute): New function declaration.
36176 (grub_register_rescue_parser): Likewise.
36177 (grub_parser_register): New inline function.
36178 (grub_parser_unregister): Likewise.
36179 (grub_parser_get_current): Likewise.
36180 (grub_parser_set_current): Likewise.
36181
36182 * include/grub/reader.h: New file.
36183 * kern/reader.c: Likewise.
36184 * kern/rescue_parser.c: Likewise.
36185 * kern/rescue_reader.c: Likewise.
36186 * normal/autofs.c: Likewise.
36187 * normal/dyncmd.c: Likewise.
36188
36189 * include/grub/rescue.h: Removed.
36190 * normal/command.h: Likewise.
36191
36192 * include/grub/script.h: Moved to ...
36193 * include/grub/script_sh.h: ... Moved here.
36194 * normal/execute.c: Moved to ...
36195 * script/sh/execute.c: ... Moved here.
36196 * normal/function.c: Moved to ...
36197 * script/sh/function.c: ... Moved here.
36198 * normal/lexer.c: Moved to ...
36199 * script/sh/lexer.c: ... Moved here.
36200 * normal/parser.y: Moved to ...
36201 * script/sh/parser.y: ... Moved here.
36202 * normal/script.c: Moved to ...
36203 * script/sh/script.c: ... Moved here.
36204
36205 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
36206 <grub/reader.h>.
36207 (grub_exit_env): Removed.
36208 (fs_module_list): Moved to normal/autofs.c.
36209 (grub_file_getline): Don't handle comment here.
36210 (free_menu): Skip removed field entry->commands.
36211 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
36212 script parameter.
36213 (read_config_file): Removed nested parameter, change getline function.
36214 (grub_enter_normal_mode): Removed.
36215 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
36216 (read_command_list): Likewise.
36217 (autoload_fs_module): Moved to normal/autofs.c.
36218 (read_fs_list): Likewise.
36219 (reader_nested): New variable.
36220 (grub_normal_execute): Run parser.sh to switch to sh parser.
36221 (grub_cmd_rescue): Removed.
36222 (cmd_normal): Removed.
36223 (grub_cmd_normal): Unregister itself at the beginning. Don't register
36224 rescue command.
36225 (grub_cmdline_run): New function.
36226 (grub_normal_reader_init): Likewise.
36227 (grub_normal_read_line): Likewise.
36228 (grub_env_write_pager): Likewise.
36229 (cmdline): New variable.
36230 (grub_normal_reader): Likewise.
36231 (GRUB_MOD_INIT): Register normal reader and set as current, register
36232 pager hook, register normal command with grub_register_command_prio,
36233 so that it won't show up in command.lst.
36234 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
36235 grub_fs_autoload_hook.
36236
36237 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
36238 (grub_menu_execute_entry): Replace grub_script_execute with
36239 grub_parser_execute, change parameter to grub_command_execute.
36240
36241 * normal/menu_text.c: Remove <grub/script.h>.
36242
36243 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
36244 and <grub/parser.h>.
36245 (run): Change editor_getline to use new parser interface. Change
36246 parameter to grub_command_execute.
36247
36248 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
36249 <grub/reader.h> and <grub/parser.h>.
36250 (grub_load_normal_mode): Execute normal command.
36251 (grub_main): Call grub_register_core_commands,
36252 grub_register_rescue_parser and grub_register_rescue_reader, use
36253 grub_reader_loop to enter input loop.
36254
7dd4a573 36255 * kern/parser.c (grub_parser_split_cmdline): Change type of
36256 getline parameter.
d558e6b5 36257 (grub_parser_class): New variable.
36258 (grub_parser_execute): New function.
36259
36260 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
36261 * loader/multiboot2.c: Likewise.
36262 * loader/sparc64/ieee1275/linux.c: Likewise.
36263
36264 * util/grub-emu.c (read_command_list): New dummy function.
36265
18db813d 362662009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36267
36268 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
36269 count to 16 for CCISS and IDA.
36270
6c67de15 362712009-05-02 Robert Millan <rmh.grub@aybabtu.com>
36272
36273 * normal/menu_text.c (grub_wait_after_message): Print a newline
36274 after waiting for user input.
36275
36276 * loader/i386/linux.c: Include `<grub/normal.h>'.
36277 (grub_cmd_linux): Improve the error message about `ask' mode, by
36278 waiting for user input so it's not missed (we can do this, since
36279 user requested interaction).
36280
d9dc87b0 362812009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
36282
36283 Added missing lst to grub-mkrescue
36284
36285 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
36286 and ${input_dir}/parttool.lst
36287
ac8a2baa 362882009-04-30 David S. Miller <davem@davemloft.net>
36289
ad22a610 36290 * util/hostdisk.c (device_is_wholedisk): New function.
36291 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
36292 zero only if device_is_wholedisk() returns true.
36293
6966215d 36294 * util/hostdisk.c (convert_system_partition_to_system_disk):
36295 Handle virtual disk devices named /dev/vdiskX as found on sparc
36296 and powerpc.
36297
ac8a2baa 36298 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
36299 lettered partition specifier is found, convert to numbered.
36300
979b4fb4 363012009-04-29 David S. Miller <davem@davemloft.net>
36302
e2bf39b2 36303 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
36304 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36305
3c64e104 36306 * normal/command.c: Add missing newline at end of file.
36307
979b4fb4 36308 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
36309 warnings.
36310 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
36311 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
36312 grub_ofdisk_read): Likewise, and deal similarly with the fact that
36313 ihandles have a 32-bit type but need to be stored in a "void *".
36314
136d9f82 363152009-04-28 Pavel Roskin <proski@gnu.org>
36316
9459c306 36317 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
36318 not disk. Adjust all dependencies.
2e08a26a 36319 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 36320 grub_disk_close().
36321
136d9f82 36322 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
36323 parent's partition, don't copy it by reference, as it gets freed
36324 on close.
36325
7dd4a573 363262009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 36327
36328 Preboot hooks support
36329
36330 * commands/boot.c (struct grub_preboot_t): new declaration
36331 (preboots_head): new variable
36332 (preboots_tail): likewise
36333 (grub_loader_register_preboot_hook): new function
36334 (grub_loader_unregister_preboot_hook): likewise
36335 (grub_loader_set): launch preboot hooks
36336 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
36337 (grub_loader_register_preboot_hook): new declaration
36338 (grub_loader_unregister_preboot_hook): likewise
36339
5af922b5 363402009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
36341
36342 Warning fix
36343
7dd4a573 36344 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 36345 calling grub_dprintf
36346
a5562c30 363472009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
36348
36349 Bug and warning fixes
36350
7dd4a573 36351 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 36352 declaration
36353 * commands/test.c (test_parse): fixed bug with file tests and corrected
36354 declaration of find_file
36355
4006f85c 363562009-04-26 Pavel Roskin <proski@gnu.org>
36357
36358 * Makefile.in: Don't install empty manual pages if help2man is
36359 missing. Use help2man option for output, not shell redirection.
36360
5c77c3de 363612009-04-26 David S. Miller <davem@davemloft.net>
36362
36363 * util/grub-mkdevicemap.c (make_device_map): Add missing
36364 NESTED_FUNC_ATTR to process_device().
36365
033b10a8 363662009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36367
36368 Test command
36369
36370 * commands/test.c: rewritten to use bash-like test
36371
e4343593 363722009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
36373
36374 Parttool autoloading and improvements
36375
7dd4a573 36376 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 36377 (parttool.lst): new target
36378 * genmk.rb: generate parttool-*
36379 (CLEANFILES): add #{parttool}
36380 (PARTTOOLFILES): new variable
36381 * genparttoollist.sh: new file
7dd4a573 36382 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 36383 (grub_pcpart_type): likewise
36384 * commands/parttool.c (helpmsg): new variable
36385 (grub_cmd_parttool): output help if not enough arguments are supplied
36386 autoload modules
36387 (GRUB_MOD_INIT(parttool)): use helpmsg
36388
0d312500 363892009-04-24 David S. Miller <davem@davemloft.net>
36390
7dd4a573 36391 Avoiding opening same device multiple times in device iterator.
0d312500 36392
36393 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 36394 and use it to build a list of partitions in iterate_disk() and
0d312500 36395 iterate_partition().
36396
ac20caff 36397 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
36398 on disk->data.
36399
0dcf7495 36400 * disk/ieee1275/nand.c (grub_nand_iterate): Return
36401 grub_devalias_iterate() result instead of unconditional 0.
36402 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
36403 Also, capture hook return value, either directly or via
36404 grub_children_iterate(), and propagate to caller.
36405 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
36406 grub_children_iterate): Return value is now 'int' instead of
36407 'grub_err_t'.
36408 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
36409 like a proper iterator, stopping when hooks return non-zero.
36410 (grub_devalias_iterate): Likewise.
36411
c8c08833 364122009-04-23 David S. Miller <davem@davemloft.net>
36413
36414 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
36415
f01005a8 364162009-04-22 David S. Miller <davem@davemloft.net>
36417
36418 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
36419 is larger than address_cells, use that value for address_cells too.
36420
4e8269da 36421 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
36422 IEEE1275_MAX_PATH_LEN): Define.
36423 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
36424 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
36425 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
36426 'devtype'. Explicitly NULL terminate devalias expansion.
36427
a1447506 36428 * util/sparc64/ieee1275/misc.c: New file.
36429 * util/sparc64/ieee1275/grub-setup.c: New file.
36430 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
36431 * util/sparc64/ieee1275/grub-mkimage.c: New file.
36432 * util/sparc64/ieee1275/grub-install.in: New file.
36433 * util/ieee1275/ofpath.c: New file.
36434 * util/ieee1275/devicemap.c: New file.
36435 * util/devicemap.c: New file.
36436 * util/deviceiter.c: New file.
36437 * kern/sparc64/ieee1275/init.c: New file.
36438 * include/grub/util/ofpath.h: New file.
36439 * include/grub/util/deviceiter.h: New file.
36440 * util/grub-mkdevicemap.c: Include deviceiter.h.
36441 Implement using grub_util_emit_devicemap_entry and
36442 grub_util_iterate_devices.
36443 * conf/i386-corebook.rmk: Build util/deviceiter.c and
36444 util/devicemap.c into grub-mkdevicemap
36445 * conf/i386-efi.rmk: Likewise.
36446 * conf/i386-ieee1275.rmk: Likewise.
36447 * conf/i386-pc.rmk: Likewise.
36448 * conf/powerpc-ieee1275.rmk: Likewise.
36449 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
36450 images and installation utilities. Build kernel as image
36451 instead of as elf binary. Use common rules as much as possible.
36452
7dd4a573 364532009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 36454
36455 Correct GPT definition
36456
7dd4a573 36457 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 36458 of "attrib" member
36459
c6c5219f 364602009-04-19 Felix Zielcke <fzielcke@z-51.de>
36461
36462 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
36463
0552ff9f 364642009-04-19 David S. Miller <davem@davemloft.net>
36465
36466 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
36467 (grub_rescue_cmd_linux): Rename to...
36468 (grub_cmd_linux): and fix prototype.
36469 (grub_rescue_cmd_initrd): Rename to...
36470 (grub_cmd_initrd): and fix prototype.
36471 (cmd_linux, cmd_initrd): New.
36472 (GRUB_MOD_INIT(linux)): Use grub_register_command().
36473 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
36474
d1a282fc 364752009-04-17 Pavel Roskin <proski@gnu.org>
36476
07c5039f 36477 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
36478 format.
36479 (grub_ohci_transfer): Likewise.
36480
b012002d 36481 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
36482
1bc09c35 36483 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
36484 return without a value. Fix inconsistent indentation.
36485
e0ff9126 36486 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
36487 match struct grub_fs.
36488
d1a282fc 36489 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
36490 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
36491 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
36492 * commands/lspci.c (grub_lspci_iter): Likewise.
36493
a96df3f2 364942009-04-16 Bean <bean123ch@gmail.com>
36495
36496 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
36497 value.
36498
41bb0fe9 364992009-04-15 Pavel Roskin <proski@gnu.org>
36500
36501 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
36502 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
36503 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
36504 definitions.
36505
596c6970 365062009-04-15 Felix Zielcke <fzielcke@z-51.de>
36507
36508 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 36509 that no multiple data or metadata areas are supported and `Unknown
596c6970 36510 metadata header'.
36511
7dd4a573 365122009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 36513
36514 Move loader out of the kernel
36515
36516 * kern/loader.c: moved to ...
36517 * commands/boot.c: ... moved here
36518 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
36519 * commands/boot.c (grub_cmd_boot): moved here. All users updated
36520 * include/grub/kernel.h (grub_machine_fini): export
36521 * include/grub/loader.h (grub_loader_is_loaded): update declaration
36522 (grub_loader_set): likewise
36523 (grub_loader_unset): likewise
36524 (grub_loader_boot): likewise
36525 * conf/common.rmk: new module boot.mod
36526 (pkglib_MODULES): add boot.mod
36527 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
36528 (grub_emu_SOURCES): likewise
36529 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
36530 (grub_emu_SOURCES): likewise
36531 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
36532 (grub_emu_SOURCES): likewise
36533 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
36534 (grub_emu_SOURCES): likewise
36535 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
36536 (grub_emu_SOURCES): likewise
7dd4a573 36537 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
36538 (grub_emu_SOURCES): likewise
0d5d5653 36539 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 36540 (grub_emu_SOURCES): likewise
0d5d5653 36541
7dd4a573 365422009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 36543
36544 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 36545
5999d619 36546 * kern/misc.c (grub_itoa): Removed function
36547 (grub_ltoa): likewise
36548 (grub_vsprintf): use grub_lltoa
36549
7dd4a573 365502009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 36551
36552 Restore grub-emu
36553
36554 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
36555 * conf/i386-coreboot.rmk: likewise
36556 * conf/i386-ieee1275.rmk: likewise
36557 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36558
20318222 365592009-04-15 Felix Zielcke <fzielcke@z-51.de>
36560
36561 * INSTALL: Add that `./autogen.sh' needs to be run before
36562 `./configure.'.
36563
d05f0df3 365642009-04-14 Bean <bean123ch@gmail.com>
36565
36566 * Makefile.in (pkglib_DATA): Add handler.lst.
36567 (handler.lst): New rule.
36568
36569 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
36570 * conf/i386-coreboot.rmk: Likewise.
36571 * conf/i386-ieee1275.rmk: Likewise.
36572 * conf/i386-efi.rmk: Likewise.
36573 * conf/x86_64-efi.rmk: Likewise.
36574 * conf/powerpc-ieee1275.rmk: Likewise.
36575 * conf/sparc64-ieee1275.rmk: Likewise.
36576
36577 * genhandlerlist.sh: New file.
36578
36579 * genmk.rb: Add rules to generate handler.lst.
36580
36581 * include/grub/normal.h (grub_file_getline): New function definition.
36582 (read_handler_list): Likewise.
36583 (free_handler_list): Likewise.
36584
36585 * include/grub/term.h (grub_term_register_input): Add name parameter
36586 for auto generation of handler.lst.
36587 (grub_term_register_output): Likewise.
36588
36589 * normal/handler.c: New file.
36590
36591 * normal/main.c (get_line): Renamed to grub_file_getline.
36592 (read_config_file): Use the newly renamed grub_file_getline.
36593 (read_command_list): Likewise.
36594 (read_fs_list): Likewise.
36595 (grub_normal_execute): Call read_handler_list to parse handler.lst.
36596 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
36597
36598 * term/efi/console.c (grub_console_init): Add name parameter for auto
36599 generation of handler.lst.
36600 * term/gfxterm.c: Likewise.
36601 * term/i386/pc/at_keyboard.c: Likewise.
36602 * term/i386/pc/console.c: Likewise.
36603 * term/i386/pc/serial.c: Likewise.
36604 * term/i386/pc/vesafb.c: Likewise.
36605 * term/i386/pc/vga.c: Likewise.
36606 * term/i386/pc/vga_text.c: Likewise.
36607 * term/ieee1275/ofconsole.c: Likewise.
36608 * term/usb_keyboard.c: Likewise.
36609
33c846be 366102009-04-14 Bean <bean123ch@gmail.com>
36611
36612 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
36613 properly with null character.
36614
4484e01e 366152009-04-14 Felix Zielcke <fzielcke@z-51.de>
36616
36617 * configure: Remove.
36618 * config.h.in: Likewise.
f93d668e 36619 * stamp-h.in: Likewise.
4484e01e 36620 * DISTLIST: Likewise.
36621 * conf/common.mk: Likewise.
36622 * conf/i386-coreboot.mk: Likewise.
36623 * conf/i386-efi.mk: Likewise.
36624 * conf/i386-ieee1275.mk: Likewise.
36625 * conf/i386.mk: Likewise.
36626 * conf/i386-pc.mk: Likewise.
36627 * conf/powerpc-ieee1275.mk: Likewise.
36628 * conf/sparc64-ieee1275.mk: Likewise.
36629 * conf/x86_64-efi.mk: Likewise.
36630
36631 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
36632 develop on GRUB.
36633
7dd4a573 366342009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 36635 David S. Miller <davem@davemloft.net>
36636
36637 * util/hostdisk.c (make_device_name): Fix buffer length
36638 calculations.
36639
e25b5a8c 366402009-04-14 Felix Zielcke <fzielcke@z-51.de>
36641
36642 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
36643 <sys/param.h> and <sys/sysctl.h>.
36644 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
36645 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
36646 opening the device and reset them afterwards.
36647
1f1f580c 366482009-04-13 Pavel Roskin <proski@gnu.org>
36649
36650 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
36651 Reported by John Stanley <jpsinthemix@verizon.net>
36652
7ebc2d6b 366532009-04-13 Robert Millan <rmh@aybabtu.com>
36654
36655 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 36656 that name for menuentries when appropriate.
7ebc2d6b 36657
d8ba3667 366582009-04-13 Felix Zielcke <fzielcke@z-51.de>
36659
36660 * util/grub.d/10_freebsd.in: Add a missing `fi'.
36661
cba416eb 366622009-04-13 Robert Millan <rmh@aybabtu.com>
36663
36664 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
36665 to Linux, simply abort telling the user it's no longer supported.
36666
a547a745 366672009-04-13 Felix Zielcke <fzielcke@z-51.de>
36668
36669 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 36670 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 36671 `freebsd_loadenv' only when devices.hints exist.
36672
232a769c 366732009-04-13 Pavel Roskin <proski@gnu.org>
36674
36675 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
36676
c3012039 366772009-04-13 Felix Zielcke <fzielcke@z-51.de>
36678
36679 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
36680 partition number.
36681 (grub_drive): Likewise.
36682
234022fe 366832009-04-13 David S. Miller <davem@davemloft.net>
36684
36685 * kern/sparc64/ieee1275/ieee1275.c: New file.
36686 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
36687 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
36688 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
36689 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
36690 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
36691 grub_ieee1275_alloc_physmem): Declare new exported functions.
36692
d8e1836c 36693 * include/grub/sparc64/ieee1275/loader.h: New file.
36694 * include/grub/sparc64/ieee1275/memory.h: Likewise.
36695 * include/grub/sparc64/kernel.h: Likewise.
36696 * loader/sparc64/ieee1275/linux.c: Likewise.
36697
96bd81ec 36698 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
36699 (grub_fstest_SOURCES): Likewise.
36700
6a4737e5 36701 * util/hostdisk.c (make_device_name): Do not make any assumptions
36702 about the length of drive names.
36703
1d7a72fd 36704 * kern/dl.c (grub_dl_load_file): Close file immediately when
36705 we are done using it.
36706
56bc2471 367072009-04-12 David S. Miller <davem@davemloft.net>
36708
36709 * kern/misc.c (grub_ltoa): Fix cast when handling negative
36710 values. Noticed by Pavel Roskin.
36711
df38d0bb 36712 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
36713 target compiler.
7dd4a573 36714
e382e93a 36715 * genmk.rb: Add more flexible image type specification, also
36716 pass --strip-unneeded to objcopy.
36717 * conf/i386-pc.rmk: Use *_FORMAT.
36718 * conf/i386-pc.mk: Rebuilt.
36719
f5dbbca9 36720 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
36721 (OFDISK_HASH_SZ): Define.
36722 (ofdisk_hash): New hash table.
36723 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
36724 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
36725 instead of device phandle which is not unique.
36726
91c88b12 36727 * kern/sparc64/ieee1275/init.c: Delete, replace with...
36728 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
36729 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
36730 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
36731 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
36732 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
36733 GRUB_KERNEL_MACHINE_DATA_END): Define.
36734 (grub_kernel_image_size, grub_total_module_size): Declare.
36735
5b5d4aa5 367362009-04-12 Pavel Roskin <proski@gnu.org>
36737
7dd4a573 36738 * configure.ac: Change the logic when we check for target tools.
36739 Do it when the target is specified and it's different from the
36740 specified value of the host.
5b5d4aa5 36741
c91e1793 367422009-04-11 Felix Zielcke <fzielcke@z-51.de>
36743
36744 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
36745 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
36746 GNU/kFreeBSD. Check if a device is a character device. Use
36747 DIOCGMEDIASIZE to get the size.
36748 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
36749 support for GNU/kFreeBSD.
36750 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
36751 is a character device instead of a block device. Add support for
36752 FreeBSD device names.
36753
36754 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
36755 is a character device instead of a block device.
36756
36757 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
36758 is a character device instead of a block device.
36759
b1ac8644 367602009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
36761
36762 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
36763 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
36764 FreeBSD. Check if a device is a character device. Use
36765 DIOCGMEDIASIZE to get the size.
36766 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
36767 support for FreeBSD.
36768 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
36769 is a character device instead of a block device. Add support for
36770 FreeBSD device names.
36771
36772 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
36773 a character device instead of a block device.
36774 (grub_util_check_char_device): New function.
36775
36776 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
36777 a character device instead of a block device.
36778
36779 * include/grub/util/getroot.h (grub_util_check_char_device): New
36780 prototype.
36781
a3f7515a 367822009-04-11 David S. Miller <davem@davemloft.net>
36783
36784 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
36785 static libgcc.
36786 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
36787 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
36788 function, if present.
36789 (__bswapdi2): Likewise.
36790
0d44993d 36791 * include/grub/sparc64/ieee1275/boot.h: New file.
36792 * boot/sparc64/ieee1275/boot.S: Likewise.
36793 * boot/sparc64/ieee1275/diskboot.S: Likewise.
36794
ed3d2bc2 36795 * kern/misc.c (grub_ltoa): New function.
36796 (grub_vsprintf): Use it to format 'long' integers.
36797
d3bfb59c 367982009-04-10 David S. Miller <davem@davemloft.net>
36799
36800 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
36801 slots are of type grub_ieee1275_cell_t.
36802 (grub_nand_read): Likewise.
36803 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
36804 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
36805 macros are used to compare values in arg/ret block of the call.
36806 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
36807 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
36808 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
36809 grub_ieee1275_instance_to_path, grub_ieee1275_write,
36810 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
36811 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
36812 grub_ieee1275_close, grub_ieee1275_set_property,
36813 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
36814 grub_ieee1275_cell_t.
36815 * kern/ieee1275/openfw.c (grub_map): Likewise.
36816 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
36817 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
36818
450e2238 36819 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
36820 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
36821 (grub_devalias_iterate): Likewise.
36822
7dd4a573 368232009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 36824
36825 UFS improvements
36826
36827 * fs/ufs.c (INODE_NBLOCKS): new definition
36828 (struct grub_ufs_dirent): added fields for non-BSD dirents
36829 (grub_ufs_get_file_block): fixed double indirect handling
36830 (grub_ufs_lookup_symlink): use more robust way to determine whether
36831 symlink is inline
36832 (grub_ufs_find_file): support for non-BSD dirents
36833 (grub_ufs_dir): support for non-BSD dirents
36834
e7e6862a 368352009-04-10 Bean <bean123ch@gnail.com>
36836
36837 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
36838 attribute, otherwise the size would be wrong for i386 platform.
36839
36840 * include/grub/pci.h (grub_pci_read_word): New inline function.
36841 (grub_pci_read_byte): Likewise.
36842 (grub_pci_write): Likewise.
36843 (grub_pci_write_word): Likewise.
36844 (grub_pci_write_byte): Likewise.
36845
36846 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
36847
36848 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
36849 (find_framebuf): Scan pci to locate the frame buffer address.
36850
36851 * commands/efi/fixvideo.c: New file.
36852
36853 * commands/efi/loadbios.c: Likewise.
36854
36855 * commands/memrw.c: Likewise.
36856
36857 * util/grub-dumpbios.in: Likewise.
36858
36859 * conf/common.rmk (grub-dumpbios): New utility.
36860 (pkglib_MODULES): New module memrw.mod.
36861 (memrw_mod_SOURCE): New macro.
36862 (memrw_mod_CFLAGS): Likewise.
36863 (memrw_mod_LDFLAGS): Likewise.
36864
7dd4a573 36865 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36866 fixvideo.mod.
36867 (loadbios_mod_SOURCE): New macro.
36868 (loadbios_mod_CFLAGS): Likewise.
36869 (loadbios_mod_LDFLAGS): Likewise.
36870 (fixvideo_mod_SOURCE): Likewise.
36871 (fixvideo_mod_CFLAGS): Likewise.
36872 (fixvideo_mod_LDFLAGS): Likewise.
36873
7dd4a573 36874 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 36875 fixvideo.mod.
36876 (loadbios_mod_SOURCE): New macro.
36877 (loadbios_mod_CFLAGS): Likewise.
36878 (loadbios_mod_LDFLAGS): Likewise.
36879 (fixvideo_mod_SOURCE): Likewise.
36880 (fixvideo_mod_CFLAGS): Likewise.
36881 (fixvideo_mod_LDFLAGS): Likewise.
36882
af63ada2 368832009-04-08 Felix Zielcke <fzielcke@z-51.de>
36884
36885 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
36886
c2cdde70 368872009-04-07 David S. Miller <davem@davemloft.net>
36888
36889 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
36890 support for R_SPARC_OLO10 relocations. Fix compile warning for
36891 R_SPARC_WDISP30 case.
ea3f72cf 36892 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 36893
761319cf 368942009-04-06 Pavel Roskin <proski@gnu.org>
36895
1007d1f5 36896 * include/grub/misc.h (ARRAY_SIZE): New macro.
36897 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
36898 New macro.
36899 * loader/i386/linux.c (allocate_pages): Use free_pages().
36900 (grub_linux_unload): Don't use free_pages().
36901 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
36902 wrong index. Treat all other modes as text modes.
36903 (grub_cmd_linux): Initialize vid_mode unconditionally to
36904 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
36905
761319cf 36906 * commands/help.c (print_command_help): Use cmd->prio, not
36907 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
36908
ea761d40 369092009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 36910
ea761d40 36911 Parttool
36912
36913 * parttool/pcpart.c: new file
36914 * commands/parttool.c: likewise
36915 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
36916 (parttool_mod_SOURCES): new variable
36917 (parttool_mod_CFLAGS): likewise
36918 (parttool_mod_LDFLAGS): likewise
36919 (pcpart_mod_SOURCES): likewise
36920 (pcpart_mod_CFLAGS): likewise
36921 (pcpart_mod_LDFLAGS): likewise
7dd4a573 36922 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 36923 and parttool/pcpart.c
36924 * conf/i386-efi.rmk: likewise
36925 * conf/i386-ieee1275.rmk: likewise
36926 * conf/i386-pc.rmk: likewise
36927 * conf/powerpc-ieee1275.rmk: likewise
36928 * conf/sparc64-ieee1275.rmk: likewise
36929 * conf/x86_64-ieee1275.rmk: likewise
36930
05aaebfb 369312009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36932
36933 Support for mtime and further expandability of dir command
36934
36935 * include/grub/lib/datetime.h: moved to ...
7dd4a573 36936 * include/grub/datetime.h: ... moved here and added
05aaebfb 36937 declaration of grub_unixtime2datetime. All users updated
7dd4a573 36938 * include/grub/fs.h: new syntax for dir and mtime functions in
36939 struct grub_fs
05aaebfb 36940 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
36941 and GRUB_FSHELP_FLAGS_MASK
36942 * commands/ls.c (grub_ls_list_files): Write mtime in long format
36943 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
36944 (grub_ext2_mtime): new function
36945 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
36946 (grub_hfsplus_mtime): new function
36947 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
36948 (GRUB_UFS_ATTR_FILE): likewise
36949 (GRUB_UFS_ATTR_LNK): likewise
36950 (struct grub_ufs_sblock): new fields mtime
36951 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
36952 all users updated
36953 (grub_ufs_dir): mtime support
36954 (grub_ufs_mtime): new function
36955 * fs/affs.c (grub_affs_dir): use new dir syntax
36956 * fs/afs.c (grub_afs_dir): likewise
36957 * fs/cpio.c (grub_cpio_dir): likewise
36958 * fs/fat.c (grub_fat_find_dir): likewise
36959 * fs/hfs.c (grub_hfs_dir): likewise
36960 * fs/iso9660.c (grub_iso9660_dir): likewise
36961 * fs/jfs.c (grub_jfs_dir): likewise
36962 * fs/minix.c (grub_minix_dir): likewise
36963 * fs/ntfs.c (grub_ntfs_dir): likewise
36964 * fs/reiserfs.c (grub_reiserfs_dir): likewise
36965 * fs/sfs.c (grub_sfs_dir): likewise
36966 * fs/xfs.c (grub_xfs_dir): likewise
36967 * util/hostfs.c (grub_hostfs_dir): likewise
36968 * lib/datetime.c: moved to ...
36969 * normal/datetime.c: ... moved here
36970 (grub_unixtime2datetime): new function
36971 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 36972 * normal/completion.c (iterate_dir): use new dir syntax
36973 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 36974 last modification time of a volume
7dd4a573 36975 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 36976 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 36977 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 36978 (normal_mod_SOURCES): likewise
36979 (datetime_mod_SOURCES): Removed lib/datetime.c
36980 * conf/i386-efi.rmk: likewise
7dd4a573 36981 * conf/i386-ieee1275.rmk: likewise
05aaebfb 36982 * conf/i386-pc.rmk: likewise
36983 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 36984 * conf/sparc64-ieee1275.rmk: likewise
36985 * conf/x86_64-efi.rmk: likewise
05aaebfb 36986
8a7e1a14 369872009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
36988
36989 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 36990
36991 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 36992 on grub_fat_find_dir
36993 (grub_fat_find_dir): use grub_fat_iterate_dir
36994 (grub_fat_label): likewise
36995
04186a9c 369962009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
36997
7dd4a573 36998 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 36999 and command.h
37000 remove extraneous kernel_elf_HEADERS
37001
da4c0bb6 370022009-04-04 Bean <bean123ch@gnail.com>
37003
37004 * include/grub/util/misc.h: Add dummy function fsync for mingw.
37005
37006 * util/misc.c: Likewise.
37007
54ad9555 370082009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
37009
37010 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
37011 instead of grub_printf.
37012
7a6bf9f2 370132009-04-03 Robert Millan <rmh@aybabtu.com>
37014
37015 * loader/i386/linux.c (grub_linux_setup_video): Fill
37016 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
37017 values from `mode info' structure instead of hardcoded
37018 values.
37019
3fcc2083 370202009-04-01 Pavel Roskin <proski@gnu.org>
37021
37022 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
37023 unused now.
37024 * genmk.rb: Likewise.
37025 * configure.ac: Likewise.
37026
5ec9740b 370272009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
37028
37029 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
37030 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
37031
5270cec8 370322009-04-01 David S. Miller <davem@davemloft.net>
37033
37034 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 37035 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 37036 (grub_setjmp): Mark with 'returns_twice' attribute.
37037 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
37038 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
37039 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
37040
9c3dd854 370412009-04-01 Robert Millan <rmh@aybabtu.com>
37042
37043 Reapply fix from 2008-07-28 which was accidentally reverted; also
37044 perform the same fix to a similar check in same function.
37045
37046 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
37047 with the same number are found, just use issue a warning with
37048 grub_dprintf(), as this error has been reported to be non-fatal.
37049
0d818b7e 370502009-03-31 Pavel Roskin <proski@gnu.org>
37051
37052 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
37053 for cross-compilation.
37054
95646d92 370552009-03-30 Robert Millan <rmh@aybabtu.com>
37056
37057 Fix i386-ieee1275 build.
37058
37059 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
37060 Remove declaration.
37061
6a003ed1 370622009-03-30 Pavel Roskin <proski@gnu.org>
37063
37064 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
37065 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
37066 zero-terminated, rely only on the strlen value. Fix comparison
37067 of strings differing in length.
37068
92f33540 370692009-03-30 Robert Millan <rmh@aybabtu.com>
37070
37071 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
37072 checking for abi version. Improve error messages on BIOS to notify
37073 user about `linux16' command.
37074
a8c48fd5 370752009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
37076
f968172e 37077 Leak fixes
a8c48fd5 37078
f968172e 37079 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
37080 in case of collision
37081 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 37082
9c323f09 370832009-03-29 Robert Millan <rmh@aybabtu.com>
37084
37085 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
37086 set `vid_mode' accordingly.
37087 (grub_linux_boot): Process `vid_mode' and set video mode.
37088
ae68f423 370892009-03-29 Robert Millan <rmh@aybabtu.com>
37090
37091 * util/grub.d/10_linux.in (linux_entry): New function.
37092 Factorize generation of Linux boot entries.
37093
5709cfc4 370942009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
37095
37096 Make the format of Environment Block plain text. The boot loader
37097 part is not tested well yet.
7dd4a573 37098
5709cfc4 37099 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
37100 (buffer): Removed.
37101 (envblk): Likewise.
37102 (usage): Remove "info" and "clear". Add "unset". Update the
37103 description of "set", as this does not delete variables any
37104 longer.
37105 (create_envblk_file): Complete rewrite.
37106 (open_envblk_file): Likewise.
37107 (cmd_info): Removed.
37108 (cmd_list): Likewise.
37109 (cmd_set): Likewise.
37110 (cmd_clear): Likewise.
37111 (list_variables): New function.
37112 (write_envblk): Likewise.
37113 (set_variables): Likewise.
37114 (unset_variables): Likewise.
37115 (main): Complete rewrite.
37116
37117 * commands/loadenv.c (buffer): Removed.
37118 (envblk): Likewise.
37119 (open_envblk_file): New function.
37120 (read_envblk_file): Complete rewrite.
37121 (grub_cmd_load_env): Likewise.
37122 (grub_cmd_list_env): Likewise.
37123 (struct blocklist): New struct.
37124 (free_blocklists): New function.
37125 (check_blocklists): Likewise.
37126 (write_blocklists): Likewise.
37127 (grub_cmd_save_env): Complete rewrite.
37128
37129 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
37130 a plain text signature.
37131 (GRUB_ENVBLK_MAXLEN): Removed.
37132 (struct grub_envblk): Complete rewrite.
37133 (grub_envblk_find): Removed.
37134 (grub_envblk_insert): Likewise.
37135 (grub_envblk_open): New prototype.
37136 (grub_envblk_set): Likewise.
37137 (grub_envblk_delete): Put const to VALUE.
37138 (grub_envblk_iterate): Put const to NAME and VALUE.
37139 (grub_envblk_close): New prototype.
37140 (grub_envblk_buffer): New inline function.
37141 (grub_envblk_size): Likewise.
37142
37143 * lib/envblk.c: Include grub/mm.h.
37144 (grub_env_find): Removed.
37145 (grub_envblk_open): New function.
37146 (grub_envblk_close): Likewise.
37147 (escaped_value_len): Likewise.
37148 (find_next_line): Likewise.
37149 (grub_envblk_insert): Removed.
37150 (grub_envblk_set): New function.
37151 (grub_envblk_delete): Complete rewrite.
37152 (grub_envblk_iterate): Likewise.
37153
a9368fd3 371542009-03-28 Robert Millan <rmh@aybabtu.com>
37155
37156 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
37157 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
37158 variables. Use 16-bit loader.
37159 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
37160 loader.
37161 * kern/i386/loader.S (grub_linux_boot): Rename to ...
37162 (grub_linux16_boot): ... this. Update all users.
37163 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
37164 (grub_linux_boot): ... this. Update all users.
37165
37166 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
37167 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
37168 commands to `linux16' and `initrd16'.
37169 (GRUB_MOD_FINI(linux)): Rename to ...
37170 (GRUB_MOD_FINI(linux16)): ... this.
37171
e4dd5a7e 371722009-03-24 Pavel Roskin <proski@gnu.org>
37173
37174 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
37175 not just for compilation.
37176
c04d6e05 371772009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
37178
37179 Move multiboot helper out of kernel
37180
37181 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
37182 `loader/i386/multiboot_helper.S'.
37183 * conf/i386-coreboot.rmk: Likewise
37184 * conf/i386-ieee1275.rmk: Likewise
37185
37186 * kern/i386/loader.S: Move multiboot helpers from here...
37187 * loader/i386/multiboot_helper.S: ...moved here
37188 * include/grub/i386/loader.h: Move declarations of multiboot
37189 helpers from here...
37190 * include/grub/i386/multiboot.h: ...moved here
37191 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
37192
42a5b3fc 371932009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37194
37195 * kern/env.c (grub_env_context_open): Added an argument to specify
37196 whether a new context inherits exported variables from current
37197 one. This is useful when making a sandbox to interpret a config
37198 file.
37199 All callers updated.
37200
37201 * include/grub/env.h (grub_env_context_open): Updated the prototype.
37202
b28bbc4e 372032009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37204
37205 * kern/env.c (grub_env_context_close): Fix memory leaks.
37206
f04f02e4 372072009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
37208
37209 * normal/main.c (grub_normal_execute): Added an argument
37210 BATCH to specify if an interactive interface should be provided
37211 after reading a config file.
37212 All callers updated.
37213 (read_command_list): Prevent being executed twice.
37214 (read_fs_list): Likewise.
37215
42a5b3fc 37216 * include/grub/normal.h (grub_normal_execute): Updated the
37217 prototype.
f04f02e4 37218
41473ac2 372192009-03-22 Pavel Roskin <proski@gno.org>
37220
fbc00b0c 37221 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
37222 _start.
37223 * kern/i386/pc/startup.S: Likewise.
37224 * kern/i386/efi/startup.S: Likewise.
37225 * kern/i386/ieee1275/startup.S: Likewise.
37226 * kern/i386/coreboot/startup.S: Likewise.
37227 * kern/x86_64/efi/startup.S: Likewise.
37228
41473ac2 37229 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
37230 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
37231 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
37232
2274cc8f 372332009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
37234
37235 Bugfixes in multiboot for bugs uncovered by solaris kernel.
37236
37237 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
37238 limit detection.
37239 Use vaddr of correct segment for entry_point.
37240
b1b797cb 372412009-03-21 Bean <bean123ch@gmail.com>
37242
37243 * commands/blocklist.c: Add include file <grub/command.h>, remove
37244 <grub/normal.h> and <grub/arg.h>.
37245 (grub_cmd_blocklist): Use the new command interface.
37246 (GRUB_MOD_INIT): Likewise.
37247 (GRUB_MOD_FINI): Likewise.
37248 * commands/boot.c: Likewise.
37249 * commands/cat.c: Likewise.
37250 * commands/cmp.c: Likewise.
37251 * commands/configfile.c: Likewise.
37252 * commands/crc.c: Likewise.
37253 * commands/echo.c: Likewise.
37254 * commands/halt.c: Likewise.
37255 * commands/handler.c: Likewise.
37256 * commands/hdparm.c: Likewise.
37257 * commands/help.c: Likewise.
37258 * commands/hexdump.c: Likewise.
37259 * commands/loadenv.c: Likewise.
37260 * commands/ls.c: Likewise.
37261 * commands/lsmmap.c: Likewise.
37262 * commands/lspci.c: Likewise.
37263 * commands/loadenv.c: Likewise.
37264 * commands/read.c: Likewise.
37265 * commands/reboot.c: Likewise.
37266 * commands/search.c: Likewise.
37267 * commands/sleep.c: Likewise.
37268 * commands/test.c: Likewise.
37269 * commands/usbtest.c: Likewise.
37270 * commands/videotest.c: Likewise.
37271 * commands/i386/cpuid.c: Likewise.
37272 * commands/i386/pc/halt.c: Likewise.
37273 * commands/i386/pc/play.c: Likewise.
37274 * commands/i386/pc/pxecmd.c: Likewise.
37275 * commands/i386/pc/vbeinfo.c: Likewise.
37276 * commands/i386/pc/vbetest.c: Likewise.
37277 * commands/ieee1275/suspend.c: Likewise.
37278 * disk/loopback.c: Likewise.
37279 * font/font_cmd.c: Likewise.
37280 * hello/hello.c: Likewise.
37281 * loader/efi/appleloader.c: Likewise.
37282 * loader/efi/chainloader.c: Likewise.
37283 * loader/i386/bsd.c: Likewise.
37284 * loader/i386/efi/linux.c: Likewise.
37285 * loader/i386/ieee1275/linux.c: Likewise.
37286 * loader/i386/linux.c: Likewise.
37287 * loader/i386/pc/chainloader.c: Likewise.
37288 * loader/i386/pc/linux.c: Likewise.
37289 * loader/powerpc/ieee1275/linux.c: Likewise.
37290 * loader/multiboot_loader.c: Likewise.
37291 * term/gfxterm.c: Likewise.
37292 * term/i386/pc/serial.c: Likewise.
37293 * term/terminfo.c: Likewise.
37294
37295 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
37296 * term/i386/pc/vga.c: Likewise.
37297 * video/readers/jpeg.c: Likewise.
37298 * video/readers/png.c: Likewise.
37299 * video/readers/tga.c: Likewise.
37300
37301 * util/grub-fstest (cmd_loopback): Removed.
37302 (cmd_blocklist): Likewise.
37303 (cmd_ls): Likewise.
37304 (grub_register_command): Likewise.
37305 (grub_unregister_command): Likewise.
37306 (execute_command): Use grub_command_find to locate command and execute
37307 it.
37308
37309 * include/grub/efi/chainloader.h: Removed.
37310 * loader/efi/chainloader_normal.c: Likewise.
37311 * loader/i386/bsd_normal.c: Likewise.
37312 * loader/i386/pc/chainloader_normal.c: Likewise.
37313 * loader/i386/pc/multiboot_normal.c: Likewise.
37314 * loader/linux_normal.c: Likewise.
37315 * loader/multiboot_loader_normal.c: Likewise.
37316 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
37317
37318 * gencmdlist.sh: Scan new registration command grub_register_extcmd
37319 and grub_register_command_p1.
37320
37321 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
37322 kern/command.c, lib/arg.c and commands/extcmd.c.
37323 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
37324 (minicmd_mod_SOURCES): New variable.
37325 (minicmd_mod_CFLAGS): Likewise.
37326 (minicmd_mod_LDFLAGS): Likewise.
37327 (extcmd_mod_SOURCES): Likewise.
37328 (extcmd_mod_CFLAGS): Likewise.
37329 (extcmd_mod_LDFLAGS): Likewise.
37330 (boot_mod_SOURCES): Removed.
37331 (boot_mod_CFLAGS): Likewise.
37332 (boot_mod_LDFLAGS): Likewise.
37333
37334 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
37335 kern/corecmd.c.
37336 (kernel_img_HEADERS): Add command.h.
37337 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
37338 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
37339 and lib/arg.c.
37340 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
37341 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
37342 remove the corresponding normal mode command.
37343 (normal_mod_SOURCES): Remove normal/arg.c.
37344 * conf/i386-coreboot.rmk: Likewise.
37345 * conf/i386-efi.rmk: Likewise.
37346 * conf/i386-ieee1275.rmk: Likewise.
37347 * conf/powerpc-ieee1275.rmk: Likewise.
37348 * conf/x86_64-efi.rmk: Likewise.
37349
37350 * include/grub/arg.h: Move from here ...
37351 * include/grub/lib/arg.h: ... to here.
37352
37353 * normal/arg.c: Move from here ...
37354 * lib/arg.c: ... to here.
37355
37356 * commands/extcmd.c: New file.
37357 * commands/minicmd.c: Likewise.
37358 * include/grub/command.h: Likewise.
37359 * include/grub/extcmd.h: Likewise.
37360 * kern/command.c: Likewise.
37361 * kern/corecmd.c: Likewise.
37362
37363 * kern/list.c (grub_list_iterate): Return int instead of void.
37364 (grub_list_insert): New function.
37365 (grub_prio_list_insert): Likewise.
37366
37367 * kern/rescue.c (grub_rescue_command): Removed.
37368 (grub_rescue_command_list): Likewise.
37369 (grub_rescue_register_command): Likewise.
37370 (grub_rescue_unregister_command): Likewise.
37371 (grub_rescue_cmd_boot): Move to minicmd.c
37372 (grub_rescue_cmd_help): Likewise.
37373 (grub_rescue_cmd_info): Likewise.
37374 (grub_rescue_cmd_boot): Likewise.
37375 (grub_rescue_cmd_testload): Likewise.
37376 (grub_rescue_cmd_dump): Likewise.
37377 (grub_rescue_cmd_rmmod): Likewise.
37378 (grub_rescue_cmd_lsmod): Likewise.
37379 (grub_rescue_cmd_exit): Likewise.
37380 (grub_rescue_print_devices): Moved to corecmd.c.
37381 (grub_rescue_print_files): Likewise.
37382 (grub_rescue_cmd_ls): Likewise.
37383 (grub_rescue_cmd_insmod): Likewise.
37384 (grub_rescue_cmd_set): Likewise.
37385 (grub_rescue_cmd_unset): Likewise.
7d074e3c 37386 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 37387 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 37388 commands, remove grub_rescue_register_command calls.
b1b797cb 37389
7d074e3c 37390 * normal/command.c (grub_register_command): Removed.
b1b797cb 37391 (grub_unregister_command): Likewise.
37392 (grub_command_find): Likewise.
37393 (grub_iterate_commands): Likewise.
37394 (rescue_command): Likewise.
37395 (export_command): Moved to corecmd.c.
37396 (set_command): Removed.
37397 (unset_command): Likewise.
37398 (insmod_command): Likewise.
37399 (rmmod_command): Likewise.
37400 (lsmod_command): Likewise.
37401 (grub_command_init): Likewise.
37402
37403 * normal/completion.c (iterate_command): Use cmd->prio to check for
37404 active command.
37405 (complete_arguments): Use grub_extcmd_t structure to find options.
37406 (grub_normal_do_completion): Change function grub_iterate_commands to
37407 grub_command_iterate.
37408
37409 * normal/execute.c (grub_script_execute_cmd): No need to parse
37410 argument here.
37411
37412 * normal/main.c (grub_dyncmd_dispatcher): New function.
37413 (read_command_list): Register unload commands as dyncmd.
37414 (grub_cmd_normal): Use new command interface, register rescue,
37415 unregister normal at entry, register normal, unregister rescue at exit.
37416
37417 * include/grub/list.h (grub_list_test_t): New type.
37418 (grub_list_iterate): Return int instead of void.
37419 (grub_list_insert): New function.
37420 (GRUB_AS_NAMED_LIST_P): New macro.
37421 (GRUB_AS_PRIO_LIST): Likewise.
37422 (GRUB_AS_PRIO_LIST_P): Likewise.
37423 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
37424 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
37425 (grub_prio_list): New structure.
37426 (grub_prio_list_insert): New function.
37427 (grub_prio_list_remove): New inline function.
37428
37429 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
37430 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
37431 (GRUB_COMMAND_FLAG_MENU): Likewise.
37432 (GRUB_COMMAND_FLAG_BOTH): Likewise.
37433 (GRUB_COMMAND_FLAG_TITLE): Likewise.
37434 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
37435 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
37436 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
37437 (grub_command): Likewise.
37438 (grub_register_command): Likewise.
37439 (grub_command_find): Likewise.
37440 (grub_iterate_commands): Likewise.
37441 (grub_command_init): Likewise.
37442 (grub_arg_parse): Likewise.
37443 (grub_arg_show_help): Likewise.
37444
37445 * include/grub/rescue.h (grub_rescue_register_command): Removed.
37446 (grub_rescue_unregister_command): Likewise.
37447
37448 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
37449 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
37450 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
37451
37452 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
37453 grub_rescue_cmd_initrd.
37454 * include/grub/i386/loader.h: Likewise.
37455 * include/grub/x86_64/loader.h: Likewise.
37456
37457 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
37458
1f4147aa 374592009-03-21 Bean <bean123ch@gmail.com>
37460
37461 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
37462 instead of stat in mingw environment.
37463
37464 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
37465
37466 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
37467
37468 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
37469 AC_CONFIG_LINKS.
37470
2156d5ba 374712009-03-21 Bean <bean123ch@gmail.com>
37472
37473 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
37474 out of range error.
37475
177b82ca 374762009-03-18 Michel Dänzer <michel@daenzer.net>
37477
37478 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
37479 checking inode flags for EXT4_EXTENTS_FLAG.
37480
14aad807 374812009-03-18 Robert Millan <rmh@aybabtu.com>
37482
37483 * loader/i386/linux.c: Include `<grub/video.h>' and
37484 `<grub/i386/pc/vbe.h>'..
37485 (grub_linux_setup_video): New function. Loosely based on the EFI one.
37486 (grub_linux32_boot): Attempt to configure video settings with
37487 grub_linux_setup_video().
37488 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
37489 to avoid grub_console_fini() which would step out of graphical mode
37490 unconditionally.
37491
8cf83a27 374922009-03-14 Robert Millan <rmh@aybabtu.com>
37493
37494 Fix build on powerpc.
37495 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
37496
40164e75 374972009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
37498
37499 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
37500 background image command.
37501
c58bc32a 375022009-03-12 Colin D Bennett <colin@gibibit.com>
37503
37504 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
37505 (grub_gfxterm_putchar): Extract pairs of identical calls to
37506 draw_cursor out of conditional blocks.
37507
5415144a 375082009-03-11 Pavel Roskin <proski@gnu.org>
37509
37510 * fs/hfs.c (grub_hfs_strncasecmp): New function.
37511 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
37512
6394042e 375132009-03-11 Robert Millan <rmh@aybabtu.com>
37514
37515 * loader/i386/multiboot_elfxx.c
37516 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
37517
b7b50e5f 375182009-03-11 Felix Zielcke <fzielcke@z-51.de>
37519
37520 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
37521 `kern/handler.c'.
37522
1ca7fc96 375232009-03-11 Robert Millan <rmh@aybabtu.com>
37524
37525 * loader/i386/multiboot.c (code_size): New variable.
37526 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 37527 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 37528 4-byte alignment to MBI and others by increasing
7d074e3c 37529 `boot_loader_name_length' appropriately.
1ca7fc96 37530
37531 * loader/i386/multiboot_elfxx.c
37532 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
37533
a83ea1d2 375342009-03-09 Felix Zielcke <fzielcke@z-51.de>
37535
37536 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
37537 `fs/ext2.c'.
37538
aa9f3bff 375392009-03-08 Robert Millan <rmh@aybabtu.com>
37540
37541 Make loader/i386/linux.c usable on i386-pc again.
37542
37543 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
37544 memory to heap.
37545 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
37546 `#error' stanza.
37547
d8b3b60e 375482009-03-07 Bean <bean123ch@gmail.com>
37549
37550 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
37551 allocation.
37552
b362c9e9 375532009-03-06 Robert Millan <rmh@aybabtu.com>
37554
37555 Fix display issue on terminals with screen size other than 80x25
37556 (e.g. gfxterm with resolution higher than 640x480).
37557
37558 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 37559 position relative to the center of the terminal instead of relying
b362c9e9 37560 on a hardcoded offset.
37561
9304eef1 375622009-03-04 Robert Millan <rmh@aybabtu.com>
37563
37564 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
37565 installed.
37566
37567 * Makefile.in (host_kernel): New variable.
37568 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
37569 scripts instead of just the windows one.
37570 * configure.ac: Initialize and AC_SUBST `host_kernel'.
37571
eabc95fb 375722009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 37573
37574 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
37575 `kern/handler.c'.
37576 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37577 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37578 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37579 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37580 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37581 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37582
ceb1223c 375832009-03-04 Felix Zielcke <fzielcke@z-51.de>
37584
37585 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
37586 or if there's no space for the disk label and print the partition number on a
37587 invalid magic.
37588
4910684a 375892009-03-04 Felix Zielcke <fzielcke@z-51.de>
37590
37591 * util/misc.c: Include <time.h>.
37592 (grub_millisleep): New function.
37593
7e9ca17a 375942009-03-04 Bean <bean123ch@gmail.com>
37595
37596 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
37597 another option -mno-red-zone.
37598
37599 * commands/handler.c: Change module description.
37600
37601 * kern/handler.c: Add missing space at the end of description line.
37602
37603 * kern/list.c: Likewise.
37604
f501677c 376052009-03-03 Robert Millan <rmh@aybabtu.com>
37606
37607 Move more components to the relocation area, and fix mbi pointer
37608 handling to use the destination rather than the origin (thanks to
37609 Vladimir Serbinenko for spotting).
37610
37611 * loader/i386/multiboot.c (mbi_dest): New variable.
37612 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
37613 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
37614 relocation area.
37615
9902d047 376162009-03-01 Bean <bean123ch@gmail.com>
37617
50fb7002 37618 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 37619 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
37620 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
37621 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
37622
37623 * loader/i386/efi/linux.c (acpi_guid): New variable.
37624 (acpi_guid): Likewise.
37625 (EBDA_SEG_ADDR): New constant.
37626 (LOW_MEM_ADDR): Likewise.
37627 (FAKE_EBDA_SEG): Likewise.
37628 (fake_bios_data): New function.
37629 (grub_linux_boot): Call fake_bios_data.
37630
71b9f361 376312009-03-01 Bean <bean123ch@gmail.com>
37632
37633 * commands/terminal.c: Removed.
37634
37635 * commands/handler.c: New file.
37636
37637 * include/grub/list.h: Likewise.
37638
37639 * include/grub/handler.h: Likewise.
37640
37641 * kern/list.c: Likewise.
37642
37643 * kern/handler.c: Likewise.
37644
37645 * kern/term.h: Include header file <grub/handler.h>.
37646 (grub_term_input): Move next field to the beginning.
37647 (grub_term_output): Likewise.
37648 (grub_term_input_class): New variable.
37649 (grub_term_output_class): Likewise.
37650 (grub_term_register_input): Changed to inline function.
37651 (grub_term_register_output): Likewise.
37652 (grub_term_unregister_input): Likewise.
37653 (grub_term_unregister_output): Likewise.
37654 (grub_term_set_current_input): Likewise.
37655 (grub_term_set_current_output): Likewise.
37656 (grub_term_get_current_input): Likewise.
37657 (grub_term_get_current_output): Likewise.
37658 (grub_term_iterate_input): Removed.
37659 (grub_term_iterate_output): Likewise.
37660
37661 * kern/term.c (grub_term_list_input): Removed.
37662 (grub_term_list_output): Likewise.
37663 (grub_term_input_class): New variable.
37664 (grub_term_output_class): Likewise.
50fb7002 37665 (grub_cur_term_input): Change variable as macro.
71b9f361 37666 (grub_cur_term_output): Likewise.
37667 (grub_term_register_input): Removed.
37668 (grub_term_register_output): Likewise.
37669 (grub_term_unregister_input): Likewise.
37670 (grub_term_unregister_output): Likewise.
37671 (grub_term_set_current_input): Likewise.
37672 (grub_term_set_current_output): Likewise.
37673 (grub_term_iterate_input): Likewise.
37674 (grub_term_iterate_output): Likewise.
37675 (grub_term_get_current_input): Likewise.
37676 (grub_term_get_current_output): Likewise.
37677
37678 * util/grub-editenv.c: Include header file <grub/handler.h>.
37679 (grub_term_get_current_input): Removed.
37680 (grub_term_get_current_output): Likewise.
37681 (grub_term_input_class): New variable.
50fb7002 37682 (grub_term_output_class): Likewise.
71b9f361 37683
37684 * util/grub-fstest.c (grub_term_get_current_input): Removed.
37685 (grub_term_get_current_output): Likewise.
37686 (grub_term_input_class): New variable.
50fb7002 37687 (grub_term_output_class): Likewise.
71b9f361 37688
37689 * util/grub-probe.c (grub_term_get_current_input): Removed.
37690 (grub_term_get_current_output): Likewise.
37691 (grub_term_input_class): New variable.
50fb7002 37692 (grub_term_output_class): Likewise.
71b9f361 37693
37694 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
37695 (grub_term_get_current_output): Likewise.
37696 (grub_term_input_class): New variable.
50fb7002 37697 (grub_term_output_class): Likewise.
71b9f361 37698
37699 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
37700 (terminal_mod_SOURCES): Likewise.
37701 (terminal_mod_CFLAGS): Likewise.
37702 (terminal_mod_LDFLAGS): Likewise.
37703
37704 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
37705 handler.c.
37706 (kernel_img_SOURCES): Add list.c and handler.c.
37707 (kernel_img_HEADERS): Add list.h and handler.h.
37708
37709 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37710 handler.c.
37711 (kernel_mod_SOURCES): Add list.c and handler.c.
37712 (kernel_mod_HEADERS): Add list.h and handler.h.
37713
37714 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
37715 handler.c.
37716 (kernel_elf_SOURCES): Add list.c and handler.c.
37717 (kernel_elf_HEADERS): Add list.h and handler.h.
37718
37719 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37720 handler.c.
37721 (kernel_elf_SOURCES): Add list.c and handler.c.
37722 (kernel_elf_HEADERS): Add list.h and handler.h.
37723
37724 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
37725 handler.c.
37726 (kernel_mod_SOURCES): Add list.c and handler.c.
37727 (kernel_mod_HEADERS): Add list.h and handler.h.
37728
37729 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
37730 handler.c.
37731 (kernel_elf_SOURCES): Add list.c and handler.c.
37732 (kernel_elf_HEADERS): Add list.h and handler.h.
37733
8a31787f 377342009-02-27 Robert Millan <rmh@aybabtu.com>
37735
37736 Factorize elf32 / elf64 code in Multiboot loader. This will
37737 prevent it from getting out of sync again.
37738
37739 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
37740 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
37741 grub_multiboot_load_elf64): Move from here ...
37742 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
37743 grub_multiboot_load_elf): ... to here (new file).
37744
51cd3dfc 377452009-02-27 Robert Millan <rmh@aybabtu.com>
37746
37747 * util/grub.d/10_linux.in: Rename "single-user mode" to
37748 "recovery mode".
37749
6e8c9c3a 377502009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
37751
37752 Don't leak in SCSI code.
37753 * disk/scsi.c (grub_scsi_close): free `scsi'.
37754
4b6bf4f9 377552009-02-27 Robert Millan <rmh@aybabtu.com>
37756
37757 * loader/i386/pc/multiboot.c: Move from here ...
37758 * loader/i386/multiboot.c: ... to here. Update all users.
37759
b9413424 377602009-02-27 Robert Millan <rmh@aybabtu.com>
37761
37762 Patch from Alexandre Bique <bique.alexandre@gmail.com>
37763 * util/i386/pc/grub-setup.c (setup): Fix directory path.
37764
50fb7002 377652009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 37766
37767 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
37768 b-tree.
37769
8cc50345 377702009-02-27 Robert Millan <rmh@aybabtu.com>
37771
37772 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
37773 `0x' qualifier as 0 when base is specified as parameter).
37774
6e09b8b7 377752009-02-24 Bean <bean123ch@gmail.com>
37776
37777 * configure.ac: Check for -mcmodel=large in x86_64 target.
37778
37779 * include/grub/efi/api.h (efi_call_10): New macro.
37780 (efi_wrap_10): New function.
37781
37782 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
37783 (GRUB_PE32_REL_BASED_HIGH): Likewise.
37784 (GRUB_PE32_REL_BASED_LOW): Likewise.
37785 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
37786 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
37787 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
37788 (GRUB_PE32_REL_BASED_SECTION): Likewise.
37789 (GRUB_PE32_REL_BASED_REL): Likewise.
37790 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
37791 (GRUB_PE32_REL_BASED_DIR64): Likewise.
37792 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
37793
37794 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
37795 issue.
37796
37797 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
37798 (efi_wrap_10): New function.
37799
37800 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
37801
37802 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
37803 MB/MBP model (NV chipset).
37804 (devdata_devs): Add devpath_5 to the list.
37805
37806 * load/i386/efi/linux.c (video_base): Remove variable.
37807 (RGB_MASK): New macro.
37808 (RGB_MAGIC): Likewise.
37809 (LINE_MIN): Likewise.
37810 (LINE_MAX): Likewise.
37811 (FBTEST_STEP): Likewise.
37812 (FBTEST_COUNT): Likewise.
37813 (fb_list): New variable.
37814 (grub_find_video_card): Remove function.
37815 (find_framebuf): New function.
37816 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
37817 line length.
37818
37819 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
37820 problem for x86_64.
37821
74b21bee 378222009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
37823
37824 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
37825
37826 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
37827 coding tool name.
37828
a455f472 378292009-02-22 Robert Millan <rmh@aybabtu.com>
37830
37831 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
37832 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
37833 in our relocation, instead of using it directly from heap. Also
37834 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
37835
6374daf3 378362009-02-21 Robert Millan <rmh@aybabtu.com>
37837
37838 Implement USB keyboard support (based on patch by Marco Gerards)
37839
37840 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
37841 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
37842 (usb_keyboard_mod_LDFLAGS): New variables.
37843
37844 * term/usb_keyboard.c: New file.
37845
8fa4ea70 378462009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
37847
37848 Corrected wrong declaration
37849
37850 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
37851
353976ac 378522009-02-14 Christian Franke <franke@computer.org>
37853
37854 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
37855 (grub_lspci_iter): Print class code and programming interface byte.
37856
6aa1169b 378572009-02-14 Christian Franke <franke@computer.org>
37858
37859 * gendistlist.sh: Ignore `.svn' directories.
37860
265372ca 378612009-02-14 Felix Zielcke <fzielcke@z-51.de>
37862
37863 * fs/fat.c: Add 2009 to Copyright line.
37864
9ff516f3 378652009-02-14 Christian Franke <franke@computer.org>
37866
37867 * commands/hdparm.c: New file. Provides `hdparm' command
37868 which sends ATA commands via grub_disk_ata_pass_through ().
37869
37870 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
37871
37872 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
37873 and <grub/cpu/io.h> to include/grub/ata.h.
37874 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
37875 (GRUB_CDROM_SECTOR_SIZE): Remove.
37876 (GRUB_ATA_*): Move to include/grub/ata.h.
37877 (GRUB_ATAPI_*): Likewise.
37878 (enum grub_ata_commands): Likewise.
37879 (enum grub_ata_timeout_milliseconds): Likewise.
37880 (struct grub_ata_device): Likewise.
37881 (grub_ata_regset): Likewise.
37882 (grub_ata_regget): Likewise.
37883 (grub_ata_regset2): Likewise.
37884 (grub_ata_regget2): Likewise.
37885 (grub_ata_check_ready): Likewise.
37886 (grub_ata_wait_not_busy): Remove static, exported in
37887 include/grub/ata.h.
37888 (grub_ata_wait_drq): Likewise.
37889 (grub_ata_pio_read): Likewise.
37890
37891 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
37892 function for hdparm.mod.
37893
37894 * include/grub/ata.h: New file, contains declarations from
37895 disk/ata.c.
37896 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
37897
37898 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
37899 (grub_disk_ata_pass_through): New exported variable.
37900
37901 * kern/disk.c (grub_disk_ata_pass_through): New variable.
37902
772e23da 379032009-02-13 Colin D Bennett <colin@gibibit.com>
37904
37905 Support multiple fallback entries, and provide an API to support
37906 executing default+fallback menu entries. Renamed the `terminal' menu
37907 viewer to `text'.
37908
37909 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
37910 variable declaration.
37911 (grub_menu_execute_callback): New structure declaration.
37912 (grub_menu_execute_callback_t): New typedef.
37913 (grub_menu_execute_with_fallback): New function declaration.
37914 (grub_menu_get_entry): Likewise.
37915 (grub_menu_get_timeout): Likewise.
37916 (grub_menu_set_timeout): Likewise.
37917
37918 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
37919
37920 * normal/menu.c (grub_wait_after_message): Moved to
37921 `normal/menu_text.c'.
37922 (draw_border): Likewise.
37923 (print_message): Likewise.
37924 (print_entry): Likewise.
37925 (print_entries): Likewise.
37926 (grub_menu_init_page): Likewise.
37927 (get_entry_number): Likewise.
37928 (print_timeout): Likewise.
37929 (run_menu): Likewise.
37930 (grub_menu_execute_entry): Likewise.
37931 (show_text_menu): Likewise.
37932 (get_and_remove_first_entry_number): New function.
37933 (grub_menu_execute_with_fallback): Likewise.
37934 (get_entry): Renamed to ...
37935 (grub_menu_get_entry): .. this and made it global.
37936 (get_timeout): Renamed to ...
37937 (grub_menu_get_timeout): ... this and made it global.
37938 (set_timeout): Renamed to ...
37939 (grub_menu_set_timeout): ... this and made it global.
37940 (grub_normal_terminal_menu_viewer): Renamed to ...
37941 (grub_normal_text_menu_viewer): ... this.
37942
37943 * normal/menu_text.c: New file. Extracted text-menu-specific code
37944 from normal/menu.c.
37945
37946 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
37947 (normal_mod_SOURCES): Likewise.
37948
37949 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
37950 (normal_mod_SOURCES): Likewise.
37951
37952 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37953 (normal_mod_SOURCES): Likewise.
37954
37955 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
37956 (normal_mod_SOURCES): Likewise.
37957
37958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37959 (normal_mod_SOURCES): Likewise.
37960
37961 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37962 (normal_mod_SOURCES): Likewise.
37963
37964 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37965 (normal_mod_SOURCES): Likewise.
37966
16ac430e 379672009-02-11 Robert Millan <rmh@aybabtu.com>
37968
37969 * util/grub.d/00_header.in: Update old reference to `font' command.
37970
06ff20fc 379712009-02-10 Felix Zielcke <fzielcke@z-51.de>
37972
37973 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
37974
37975 Based on patch from Javier Martín.
37976
96da9407 379772009-02-09 Felix Zielcke <fzielcke@z-51.de>
37978
37979 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 37980 to avoid false positives with FAT.
96da9407 37981 (grub_fstest_SOURCES): Likewise.
37982 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
37983 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
37984 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37985 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
37986 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37987 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37988
6dca6fe4 379892009-02-09 Felix Zielcke <fzielcke@z-51.de>
37990
06ff20fc 37991 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 37992 bpb.version_specific.fat12_or_fat16.fstype and
37993 bpb.version_specific.fat32.fstype.
37994
2550c62f 379952009-02-08 Robert Millan <rmh@aybabtu.com>
37996
be110b30 37997 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 37998
56978920 379992009-02-08 Robert Millan <rmh@aybabtu.com>
38000
38001 * Makefile.in (host_os, host_cpu): New variables.
38002 (target_os): Remove. Update all users.
38003
d64399b5 380042009-02-08 Marco Gerards <marco@gnu.org>
38005
38006 * Makefile.in (enable_grub_emu_usb): New variable.
38007 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
38008 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
38009 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
38010 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
38011 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
38012 `usbtest.mod' and `usbms.mod'.
38013 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
38014 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
38015 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
38016 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
38017 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
38018 variables.
38019
38020 * disk/usbms.c: New file.
38021
38022 * include/grub/usb.h: Likewise.
38023
38024 * include/grub/usbtrans.h: Likewise.
38025
38026 * include/grub/usbdesc.h: Likewise.
38027
38028 * bus/usb/usbtrans.c: Likewise.
38029
38030 * bus/usb/ohci.c: Likewise.
38031
38032 * bus/usb/uhci.c: Likewise.
38033
38034 * bus/usb/usbhub.c: Likewise.
38035
38036 * bus/usb/usb.c: Likewise.
38037
38038 * commands/usbtest.c: Likewise.
38039
38040 * util/usb.c: Likewise.
50fb7002 38041
d64399b5 38042 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
38043
38044 * configure.ac: Test for libusb presence.
50fb7002 38045
d64399b5 38046 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
38047
2b40d6bb 380482009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
38049
38050 * kern/mm.c: Add more comments.
38051
73a4ce81 380522009-02-08 Robert Millan <rmh@aybabtu.com>
38053
38054 Patch from Javier Martín.
38055 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
38056 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
38057
f821ce59 380582009-02-08 Robert Millan <rmh@aybabtu.com>
38059
38060 * fs/cpio.c: Split tar functionality to ...
38061 * fs/tar.c: ... here (new file). Update all users.
38062
aebfc4b0 380632009-02-07 Robert Millan <rmh@aybabtu.com>
38064
38065 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
38066 backward-incompatible features.
38067
38068 Based on patch from Javier Martín, with some adjustments.
38069
50fb7002 380702009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 38071
38072 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
38073
0bb5115e 380742009-02-07 Robert Millan <rmh@aybabtu.com>
38075
38076 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
38077 position of `disk/lvm.c' to ensure grub_init_all() always picks it
38078 after the RAID stuff.
38079
38a0f8e7 380802009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
38081
50fb7002 38082 Fixes problem when running vbetest command as reported by
38a0f8e7 38083 Vladimir Serbinenko <phcoder@gmail.com>.
38084
38085 * (grub_vbe_set_video_mode): Fixed problem with text modes.
38086
3143cc1c 380872009-02-04 Felix Zielcke <fzielcke@z-51.de>
38088
38089 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
38090 /dev/md/NpN style mdraid devices.
38091
9cba6fce 380922009-02-03 Felix Zielcke <fzielcke@z-51.de>
38093
38094 * util/unifont2pff.rb: Remove.
38095
e507a2c1 380962009-02-03 Felix Zielcke <fzielcke@z-51.de>
38097
38098 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
38099 `#'.
38100
d2c2b4cd 381012009-02-03 Felix Zielcke <fzielcke@z-51.de>
38102
38103 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
38104 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38105 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
38106 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
38107 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38108 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38109 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38110
b4315fb0 381112009-02-02 Christian Franke <franke@computer.org>
38112
38113 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
38114
de3aa260 381152009-02-01 Felix Zielcke <fzielcke@z-51.de>
38116
7c3ff286 38117 * INSTALL: Note that we now require at least autoconf 2.59 and
38118 that LZO is optional.
de3aa260 38119
825a182b 381202009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38121
38122 Base on patch on bug #24154 created by Tomas Tintera
38123 <trosos@seznam.cz>.
38124
38125 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
38126
a69ef770 381272009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
38128
7c3ff286 38129 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 38130 <bero@arklinux.org>.
38131
38132 * normal/parser.y (script_init): Add missing semicolon.
38133
6fa42fa6 381342009-01-31 Colin D Bennett <colin@gibibit.com>
38135
7c3ff286 38136 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 38137 (free_menu_entry_classes): Added.
38138 (grub_normal_menu_addentry): Added class property handling.
38139 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
38140 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
38141
38142 * normal/menu_viewer.c: New file.
38143
38144 * normal/menu.c (run_menu_entry): Renamed to ...
38145 (grub_menu_execute_entry): ... this and made it as global.
38146 (grub_menu_run): Renamed to ...
38147 (show_text_menu): ... this and made it local.
38148 (show_text_menu): Adapt to new function names.
38149 (grub_normal_terminal_menu_viewer): New global variable.
38150
38151 * include/grub/menu.h: New file.
38152
38153 * include/grub/menu_viewer.h: New file.
38154
38155 * include/grub/normal.h: Added include to grub/menu.h.
38156 (grub_menu_entry): Moved to include/grub/menu.h.
38157 (grub_menu_entry_t): Likewise.
38158 (grub_menu): Likewise.
38159 (grub_menu_t): Likewise.
38160 (grub_normal_terminal_menu_viewer): Added.
38161 (grub_menu_execute_entry): Likewise.
38162 (grub_menu_run): Removed.
38163
38164 * DISTLIST: Added include/grub/menu.h.
38165 Added include/grub/menu_viewer.h.
38166 Added normal/menu_viewer.c.
38167
381682009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
38169
38170 * normal/execute.c (grub_script_execute_menuentry): Changed to use
38171 arglist for menutitle arguments.
38172
38173 * normal/main.c (grub_normal_menu_addentry): Likewise.
38174
38175 * normal/parser.y (menuentry): Likewise.
38176
38177 * normal/script.c (grub_script_create_cmdmenu): Likewise.
38178
38179 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
38180 (grub_script_create_cmdmenu): Likewise.
38181
38182 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
38183
38184 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
38185 changes.
38186
38187 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
38188
38189 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
38190
38191 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
38192
38193 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38194
38195 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38196
38197 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
38198
56192c23 381992009-01-30 Christian Franke <franke@computer.org>
38200
38201 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
38202 in option help text.
38203
d72521b3 382042009-01-27 Pavel Roskin <proski@gnu.org>
38205
38206 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
38207
994b5e84 382082009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38209
38210 * commands/lsmmap.c: Add include to grub/machine/memory.h.
38211
38212 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
38213
38214 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
38215 unregister function.
38216
6a7eab2c 382172009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
38218
38219 * disk/scsi.c (grub_scsi_read): Fix sign problem.
38220
38221 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
38222
38223 * util/grub-mkfont.c (usage): Fix typo.
38224
38225 * util/elf/grub-mkimage.c (load_modules): Fix warning.
38226
1806b56e 382272009-01-26 Daniel Mierswa <impulze@impulze.org>
38228
3fb18f09 38229 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
38230
336e1fb9 38231 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
38232
1806b56e 38233 * kern/misc.c (grub_strcasecmp): New function.
38234 (grub_strcasecmp): Use grub_size_t instead of int for length.
38235 Fix return value.
38236 * include/grub/misc.h: Update function prototypes.
38237
580b2a0f 382382009-01-26 Robert Millan <rmh@aybabtu.com>
38239
38240 * configure.ac: Fix cross-compilation check.
ef257b36 38241
d31c24f1 382422009-01-22 Christian Franke <franke@computer.org>
38243
38244 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
38245 (precision) digit string. Allow `.format2' without `format1' (width).
38246 Limit input chars for `%s' output to `format2' if specified. This is
38247 compatible with standard printf ().
38248
3138b44c 382492009-01-22 Christian Franke <franke@computer.org>
38250
38251 * disk/ata.c (grub_ata_wait_status): Replace by ...
38252 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
38253 other status bits may be invalid while BSY is asserted.
38254 (grub_ata_check_ready): New function.
38255 (grub_ata_cmd): Removed.
38256 (grub_ata_wait_drq): New function.
38257 (grub_ata_strncpy): Remove inline.
38258 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
38259 and error check now done by grub_ata_wait_drq ().
38260 (grub_ata_pio_write): Likewise.
38261 (grub_atapi_identify): Set DEV before check for !BSY. Use
38262 grub_ata_wait_drq () to wait for data.
38263 (grub_ata_device_initialize): Add status register check to
38264 detect missing SATA slave devices. Add debug messages.
38265 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
38266 (grub_atapi_packet): Set DEV before check for !BSY. Replace
38267 transfer loop by grub_ata_pio_write ().
38268 (grub_ata_identify): Set DEV before check for !BSY. Use
38269 grub_ata_wait_drq () to wait for data.
ef257b36 38270 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 38271 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
38272 read/write in one loop. Fix invalid command on write. Fix incomplete
38273 command on (size % batch) == 0. Add missing error check after write of
38274 last block. Add debug messages.
38275 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
38276
59a64ef6 382772009-01-19 Christian Franke <franke@computer.org>
38278
38279 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
38280 (GRUB_ATAPI_IREASON_*): Likewise.
38281 (grub_ata_pio_write): Fix timeout error return.
38282 (grub_atapi_identify): Add grub_ata_wait () after cmd.
38283 (grub_atapi_wait_drq): New function.
38284 (grub_atapi_packet): New parameter `size'.
38285 Use grub_atapi_wait_drq () and direct write instead of
38286 grub_ata_pio_write ().
38287 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
38288 reads the number of bytes requested by the device for each DRQ
38289 assertion.
38290 (grub_atapi_write): Remove old implementation, return not
38291 implemented instead.
38292
1cfe20b3 382932009-01-19 Christian Franke <franke@computer.org>
38294
38295 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
38296 of 512 to calculate data size.
38297 (grub_scsi_read12): Likewise.
38298 (grub_scsi_write10): Likewise.
38299 (grub_scsi_write12): Likewise.
38300 (grub_scsi_read): Adjust size according to blocksize.
38301 Add checks for invalid blocksize and unaligned transfer.
38302
bee5fe5d 383032009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
38304
38305 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
38306
ef257b36 38307 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 38308 width glyphs.
38309
3e643f8c 383102009-01-19 Robert Millan <rmh@aybabtu.com>
38311
38312 * config.guess: Update to latest version from config git.
38313 * config.sub: Likewise.
38314
4fa80998 383152009-01-17 Felix Zielcke <fzielcke@z-51.de>
38316
38317 * Makefile.in: Change font compilation to use new grub-mkfont instead
38318 of java version.
38319
38320 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
38321 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
38322 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38323 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
38324 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
38325 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
38326 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
38327 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
38328 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38329
7086085b 383302009-01-16 Christian Franke <franke@computer.org>
38331
38332 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
38333 (enum grub_ata_timeout_milliseconds): New enum.
38334 (grub_ata_wait_status): Add parameter milliseconds.
38335 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
38336 recovery from timed-out commands.
38337 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
38338 return grub_errno instead of REG_ERROR.
38339 (grub_ata_pio_write): Add parameter milliseconds.
38340 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
38341 Pass milliseconds to grub_ata_wait_status () and
38342 grub_ata_pio_read ().
38343 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
38344 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
38345 grub_ata_wait_status (). Fix IDENTIFY timeout check.
38346 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
38347 It is not suitable for device detection, because DEV bit is ignored,
38348 the command may run too long, and not all devices set the signature
38349 properly.
38350 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
38351 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
38352 Fix device selection, DEV bit must be set first to address the registers
38353 of the correct device.
38354 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
38355 grub_ata_pio_read/write ().
38356 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
38357 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
38358
4a412913 383592009-01-13 Carles Pina i Estany <carles@pina.cat>
38360
38361 * util/grub-editenv.c (main): Use fseeko(), not fseek().
38362
7795c55e 383632009-01-13 Bean <bean123ch@gmail.com>
d913988c 38364
38365 * util/grub-mkfont.c (write_font): forget to remove some debug code.
38366
7795c55e 383672009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 38368
38369 * Makefile.in: (enable_grub_mkfont): New variable.
38370 (freetype_cflags): Likewise.
38371 (freetype_libs): Likewise.
38372
38373 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
38374 (grub_mkfont_SOURCES): New variable.
38375 (grub_mkfont_CFLAGS): Likewise.
38376 (grub_mkfont_LDFLAGS): Likewise.
38377
38378 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
38379 library if `--enable-grub-mkfont' is requested.
38380 (enable_grub_mkfont): New variable.
38381 (freetype_cflags): Likewise.
38382 (freetype_libs): Likewise.
38383
38384 * util/grub-mkfont.c: New file.
38385
093af1fe 383862009-01-12 Christian Franke <franke@computer.org>
38387
38388 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
38389 mode check. Fix setting of compat_use[].
38390
f36cc108 383912009-01-10 Robert Millan <rmh@aybabtu.com>
38392
38393 Update a few copyright years which we forgot to do in 2008 (only for
38394 files whose changes made in 2008 were copyright-significant)
38395
38396 * Makefile.in: Add 2008 to Copyright line.
38397 * disk/ieee1275/ofdisk.c: Likewise.
38398 * disk/efi/efidisk.c: Likewise.
38399 * kern/dl.c: Likewise.
38400 * kern/sparc64/ieee1275/init.c: Likewise.
38401 * kern/mm.c: Likewise.
38402 * kern/efi/mm.c: Likewise.
38403 * boot/i386/pc/boot.S: Likewise.
38404 * genfslist.sh: Likewise.
38405 * fs/iso9660.c: Likewise.
38406 * fs/hfs.c: Likewise.
38407 * fs/jfs.c: Likewise.
38408 * fs/minix.c: Likewise.
38409 * fs/ufs.c: Likewise.
38410 * gensymlist.sh.in: Likewise.
38411 * genkernsyms.sh.in: Likewise.
38412 * include/grub/misc.h: Likewise.
38413 * include/grub/types.h: Likewise.
38414 * include/grub/symbol.h: Likewise.
38415 * include/grub/elf.h: Likewise.
38416 * include/grub/kernel.h: Likewise.
38417 * include/grub/disk.h: Likewise.
38418 * include/grub/dl.h: Likewise.
38419 * include/grub/i386/linux.h: Likewise.
38420 * include/grub/i386/pc/biosdisk.h: Likewise.
38421 * include/grub/efi/api.h: Likewise.
38422 * include/grub/efi/pe32.h: Likewise.
38423 * include/grub/util/misc.h: Likewise.
38424 * normal/execute.c: Likewise.
38425 * normal/arg.c: Likewise.
38426 * normal/completion.c: Likewise.
38427 * normal/lexer.c: Likewise.
38428 * normal/parser.y: Likewise.
38429 * normal/misc.c: Likewise.
38430 * commands/i386/pc/vbeinfo.c: Likewise.
38431 * commands/hexdump.c: Likewise.
38432 * commands/terminal.c: Likewise.
38433 * commands/ls.c: Likewise.
38434 * commands/help.c: Likewise.
38435 * partmap/pc.c: Likewise.
38436 * loader/efi/chainloader.c: Likewise.
38437 * loader/multiboot_loader.c: Likewise.
38438 * loader/i386/pc/multiboot2.c: Likewise.
38439 * term/efi/console.c: Likewise.
38440 * term/i386/pc/serial.c: Likewise.
38441 * util/lvm.c: Likewise.
38442 * util/console.c: Likewise.
38443 * util/i386/efi/grub-mkimage.c: Likewise.
38444 * util/raid.c: Likewise.
38445
7f02114b 384462009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
38447
38448 * commands/videotest.c: Removed include to grub/machine/memory.h.
38449
38450 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
38451 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
38452 (video_mod_SOURCES): Removed.
38453 (video_mod_CFLAGS): Likewise.
38454 (video_mod_LDFLAGS): Likewise.
38455 (gfxterm_mod_SOURCES): Likewise.
38456 (gfxterm_mod_CFLAGS): Likewise.
38457 (gfxterm_mod_LDFLAGS): Likewise.
38458 (videotest_mod_SOURCES): Likewise.
38459 (videotest_mod_CFLAGS): Likewise.
38460 (videotest_mod_LDFLAGS): Likewise.
38461 (bitmap_mod_SOURCES): Likewise.
38462 (bitmap_mod_CFLAGS): Likewise.
38463 (bitmap_mod_LDFLAGS): Likewise.
38464 (tga_mod_SOURCES): Likewise.
38465 (tga_mod_CFLAGS): Likewise.
38466 (tga_mod_LDFLAGS): Likewise.
38467 (jpeg_mod_SOURCES): Likewise.
38468 (jpeg_mod_CFLAGS): Likewise.
38469 (jpeg_mod_LDFLAGS): Likewise.
38470 (png_mod_SOURCES): Likewise.
38471 (png_mod_CFLAGS): Likewise.
38472 (png_mod_LDFLAGS): Likewise.
38473
38474 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
38475 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
38476 (video_mod_SOURCES): Added.
38477 (video_mod_CFLAGS): Likewise.
38478 (video_mod_LDFLAGS): Likewise.
38479 (videotest_mod_SOURCES): Likewise.
38480 (videotest_mod_CFLAGS): Likewise.
38481 (videotest_mod_LDFLAGS): Likewise.
38482 (bitmap_mod_SOURCES): Likewise.
38483 (bitmap_mod_CFLAGS): Likewise.
38484 (bitmap_mod_LDFLAGS): Likewise.
38485 (tga_mod_SOURCES): Likewise.
38486 (tga_mod_CFLAGS): Likewise.
38487 (tga_mod_LDFLAGS): Likewise.
38488 (jpeg_mod_SOURCES): Likewise.
38489 (jpeg_mod_CFLAGS): Likewise.
38490 (jpeg_mod_LDFLAGS): Likewise.
38491 (png_mod_SOURCES): Likewise.
38492 (png_mod_CFLAGS): Likewise.
38493 (png_mod_LDFLAGS): Likewise.
38494 (gfxterm_mod_SOURCES): Likewise.
38495 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 38496 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 38497
38498 * term/gfxterm.c: Removed include to grub/machine/memory.h,
38499 grub/machine/console.h.
38500
644fff97 385012009-01-04 Jerone Young <jerone@gmail.com>
38502
38503 Make on screen instructions clearer
38504
38505 Based on patch created by Jidanni <jidanni@jidanni.org>
38506
38507 * normal/menu.c: print clearer instructions on the screen
38508
1e901a75 385092009-01-02 Colin D Bennett <colin@gibibit.com>
38510
38511 New font engine.
34c44600 38512
1e901a75 38513 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
38514 build system and fixed gfxterm.c to work with different sized fonts.
38515
38516 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 38517
1e901a75 38518 * configure: Re-generated.
34c44600 38519
1e901a75 38520 * DISTLIST: Removed font/manager.c.
38521 Added font/font.c.
38522 Added font/font_cmd.c.
34c44600 38523
1e901a75 38524 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
38525 compilation.
34c44600 38526
1e901a75 38527 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 38528
38529 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 38530
38531 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 38532
1e901a75 38533 * normal/menu.c: Likewise.
34c44600 38534
1e901a75 38535 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
38536 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 38537
1e901a75 38538 * include/grub/font.h: Replaced with new file.
34c44600 38539
1e901a75 38540 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
38541 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
38542 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
38543 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
38544 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 38545 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 38546 fg_red, fg_green, fg_blue, fg_alpha.
38547 (grub_video_adapter): Removed blit_glyph.
34c44600 38548 (grub_video_blit_glyph): Removed.
38549
1e901a75 38550 * font/manager.c: Removed file.
34c44600 38551
38552 * font/font.c: New file.
38553
1e901a75 38554 * font/font_cmd.c: Likewise.
34c44600 38555
1e901a75 38556 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 38557
1e901a75 38558 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
38559 (grub_video_vbe_map_rgba): Likewise.
38560 (grub_video_vbe_unmap_color_int): Likewise.
38561 (grub_video_vbe_blit_glyph): Removed.
38562 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 38563
1e901a75 38564 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
38565 (get_pixel): Likewise.
34c44600 38566 (set_pixel): Likewise.
38567
1e901a75 38568 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 38569
1e901a75 38570 * term/gfxterm.c: Adapted to new font engine.
34c44600 38571
1e901a75 38572 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 38573
1e901a75 38574 * term/i386/pc/vga.c: Likewise.
34c44600 38575
1e901a75 38576 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 38577
1e901a75 38578 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 38579
1e901a75 38580 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38581
1e901a75 38582 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 38583
1e901a75 38584 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 38585
1e901a75 38586 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 38587
1e901a75 38588 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 38589
1e901a75 38590 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 38591
1e901a75 38592 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
38593
38594 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 38595
1e901a75 38596 * util/grub-mkconfig_lib.in: Changed font extension.
38597
278922e8 385982008-12-28 Felix Zielcke <fzielcke@z-51.de>
38599
38600 * util/getroot.c (grub_util_get_grub_dev): Add support for
38601 /dev/md/dNNpNN style partitionable mdraid devices.
38602
3ced05cf 386032008-12-12 Alex Smith <alex@alex-smith.me.uk>
38604
38605 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
38606 at a time limit of the PXE TFTP API correctly.
38607 (grub_pxefs_close): Likewise.
38608
7fd0ee30 386092008-11-29 Robert Millan <rmh@aybabtu.com>
38610
34c44600 38611 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 38612 grub_ata_device_initialize() calls.
38613
34c44600 386142008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 38615
38616 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
38617 iteration failed.
38618 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
38619
89313780 386202008-11-28 Robert Millan <rmh@aybabtu.com>
38621
38622 Fix build on powerpc-ieee1275. Based on patch created by
38623 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
38624 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
38625 `kern/ieee1275/mmap.c'.
38626 * include/grub/powerpc/ieee1275/memory.h: New file.
38627
15257703 38628 Provide grub-install on coreboot.
38629 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
38630 (grub_install_SOURCES): New variable.
38631 * util/i386/pc/grub-install.in: Add a few condition checks to make it
38632 usable on coreboot.
38633
9fc5388a 386342008-11-25 Felix Zielcke <fzielcke@z-51.de>
38635
38636 * util/grub-fstest.c (grub_term_get_current_input): Change return type
38637 to `grub_term_input_t'.
38638 (grub_term_get_current_output): Change return type to
38639 `grub_term_output_t'.
38640
bc3a2f31 386412008-11-22 Robert Millan <rmh@aybabtu.com>
38642
34c44600 38643 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 38644 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
38645 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
38646 grub_vga_text_cls().
38647
80fc88f2 38648 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 38649 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 38650
cbf36fd3 38651 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
38652 to 0x200000 (avoids trouble with some OFW implementations, and matches
38653 with the one in Yaboot).
38654 Reported by Manoel Abranches
38655
73e8e268 386562008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 38657
38658 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
38659 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
38660
73e8e268 38661 * util/grub-mkconfig_lib.in (grub_warn): New function.
38662 (convert_system_path_to_grub_path): Use grub_warn() when issuing
38663 warnings, to obtain consistent formatting.
38664 * util/grub.d/00_header.in: Likewise.
38665 * util/update-grub_lib.in: Likewise.
38666
e94045a1 38667 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 38668 Move comment text to `#error' stanza.
e94045a1 38669
79d29fd7 38670 Harmonize ieee1275's grub_available_iterate() with the generic
38671 grub_machine_mmap_iterate() interface (fixes a recently-introduced
38672 build problem on i386-ieee1275):
38673 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
38674 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
38675 parameter `type'. Update all users of this function.
38676 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
38677 `kern/ieee1275/mmap.c'.
38678 * kern/ieee1275/init.c
38679 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
38680 with ...
38681 (grub_machine_mmap_iterate): ... this.
38682 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
38683 return type to `grub_err_t'. Update all implementations of this
38684 function prototype.
38685 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
38686 Likewise.
38687
60d6b16e 38688 Add `lsmmap' command (lists firmware-provided memory map):
38689 * commands/lsmmap.c: New file.
38690 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
38691 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
38692 variables.
38693 * conf/powerpc-ieee1275.rmk: Likewise.
38694 * conf/i386-coreboot.rmk: Likewise.
38695 * conf/i386-ieee1275.rmk: Likewise.
38696
ebaaf49b 386972008-11-19 Robert Millan <rmh@aybabtu.com>
38698
38699 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 38700 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
38701 constraints to initrd allocation (based on code from
38702 loader/i386/pc/linux.c). Without them, initrd was allocated too high
38703 for Linux to find it.
ebaaf49b 38704
dfab719f 387052008-11-14 Robert Millan <rmh@aybabtu.com>
38706
38707 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
38708 order to cope with duplicate slashes.
38709
10fc3eb9 387102008-11-14 Robert Millan <rmh@aybabtu.com>
38711
38712 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
38713 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
38714 don't want to mess with lower memory, because it is used in the Linux
38715 loader.
38716
38717 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 38718 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 38719 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
38720 is in our heap (probably as a result of it being corrupted during
2f2a3442 38721 decompression). Add #error instance with comment to explain why this
38722 loader isn't currently usable on PC/BIOS.
10fc3eb9 38723
e2e07847 387242008-11-14 Robert Millan <rmh@aybabtu.com>
38725
38726 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 38727 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 38728
fe8e8d69 387292008-11-12 Robert Millan <rmh@aybabtu.com>
38730
38731 Make loader/i386/linux.c buildable on i386-pc (although disabled).
38732
38733 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
38734 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
38735 from here ...
38736 * include/grub/i386/pc/memory.h: ... to here.
38737
976b07d0 387382008-11-12 Robert Millan <rmh@aybabtu.com>
38739
38740 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
38741 split).
38742
38743 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
38744 (grub_console_cur_color, grub_console_real_putchar)
38745 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38746 (grub_console_setcolorstate, grub_console_setcolor)
38747 (grub_console_getcolor): Move from here ...
38748 * include/grub/i386/vga_common.h: ... to here (new file).
38749
38750 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
38751 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
38752 `<grub/i386/io.h>'.
38753 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
38754 `<grub/i386/vga_common.h>'.
38755
76679cd3 387562008-11-12 Robert Millan <rmh@aybabtu.com>
38757
38758 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
38759 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
38760 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
38761 variables.
38762 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38763 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
38764
38765 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
38766 grub_console_init() with call to grub_vga_text_init().
38767 (grub_machine_fini): Replace call to
38768 grub_console_fini() with call to grub_vga_text_fini() and
38769 grub_at_keyboard_fini().
38770
38771 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
38772 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
38773 (grub_console_setcolorstate, grub_console_setcolor)
38774 (grub_console_getcolor): New function prototypes.
38775
38776 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
38777 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
38778 (grub_vga_text_setcursor): Static-ize.
38779 (grub_vga_text_term): New structure.
38780 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
38781
38782 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
38783 (grub_console_cur_color, grub_console_standard_color)
38784 (grub_console_normal_color, grub_console_highlight_color)
38785 (map_char, grub_console_putchar, grub_console_getcharwidth)
38786 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
38787 (grub_console_getcolor): Move from here ...
38788 * term/i386/vga_common.c: ... to here (same function names).
38789
95b841d3 387902008-11-12 Robert Millan <rmh@aybabtu.com>
38791
38792 Use newly-added Multiboot support in coreboot.
38793
38794 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
38795 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
38796
38797 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
38798 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
38799 (codestart): Store the MBI in `startup_multiboot_info' when we're
38800 being loaded using Multiboot.
38801
38802 * kern/i386/coreboot/init.c (grub_machine_init): Move
38803 grub_at_keyboard_init() call to beginning of function (useful for
38804 debugging). Call grub_machine_mmap_init() before attempting to use
38805 grub_machine_mmap_iterate().
38806 (grub_lower_mem, grub_upper_mem): Move from here ...
38807 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
38808 here (new file).
38809
38810 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
38811 function prototype.
38812
761ca975 388132008-11-12 Robert Millan <rmh@aybabtu.com>
38814
38815 Fix a regression introduced by the at_keyboard.mod split. Because
38816 some terminals are default on some platforms and non-default on
38817 others, the first terminal being registered determines which is
38818 going to be default.
38819
38820 * kern/term.c (grub_term_register_input): If this is the first
38821 terminal being registered, set it as the current one.
38822 (grub_term_register_output): Likewise.
38823
38824 * term/efi/console.c (grub_console_init): Do not call
38825 grub_term_set_current_output() or grub_term_set_current_input().
38826 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
38827 * term/i386/pc/console.c (grub_console_init): Likewise.
38828 (grub_console_fini): Do not call grub_term_set_current_input()
38829 (but leave grub_term_set_current_output() to restore text mode).
38830
6c529df7 388312008-11-10 Robert Millan <rmh@aybabtu.com>
38832
38833 * util/grub.d/00_header.in: Add backward compatibility check for
38834 versions of terminal.mod that don't understand `terminal_input' or
38835 `terminal_output'.
38836
132e4113 388372008-11-09 Robert Millan <rmh@aybabtu.com>
38838
38839 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
38840 `terminal_input' / `terminal_output', not `terminal'.
38841
ac293d50 388422008-11-08 Robert Millan <rmh@aybabtu.com>
38843
38844 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 38845 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 38846
0025933a 388472008-11-08 Robert Millan <rmh@aybabtu.com>
38848
38849 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 38850 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 38851 members. Update all users.
38852 * util/console.c (grub_ncurses_term): Split in ...
38853 (grub_ncurses_term_input): ... this, and ...
38854 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 38855 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 38856
37c86336 388572008-11-08 Robert Millan <rmh@aybabtu.com>
38858
38859 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
38860 (PKGDATA): Add $(pkgdata_SRCDIR).
38861 (pkglib_BUILDDIR): New variable.
38862 (pkgdata_SRCDIR): New variable.
38863 (build_env.mk): New target.
38864 (include_DATA): New variable.
38865 (install-local): Install $(include_DATA) files in $(includedir).
38866
b6c15a2d 388672008-11-07 Pavel Roskin <proski@gnu.org>
38868
d99d46f1 38869 * gendistlist.sh: Use C locale for sorting to ensure consistent
38870 output on all systems.
38871
b6c15a2d 38872 * util/grub.d/00_header.in: Remove incorrect space before
38873 "serial".
38874
c32ee8c9 388752008-11-07 Robert Millan <rmh@aybabtu.com>
38876
38877 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
38878 per specification.
38879 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
38880 * loader/multiboot_loader.c (find_multi_boot2_header): New function
38881 (based on find_multi_boot1_header).
38882 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
38883 using find_multi_boot2_header(), and abort if neither Multiboot or
38884 Multiboot headers were found.
38885
651c29b7 388862008-11-07 Robert Millan <rmh@aybabtu.com>
38887
38888 Modularize at_keyboard.mod:
38889
38890 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
38891 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
38892 (at_keyboard_mod_LDFLAGS): New variables.
38893
38894 Actual terminal split:
38895
38896 * include/grub/term.h (struct grub_term): Split in ...
38897 (struct grub_term_input): ... this, and ...
38898 (struct grub_term_output): ... this. Update all users.
38899 (grub_term_set_current): Split in ...
38900 (grub_term_set_current_input): ... this, and ...
38901 (grub_term_set_current_output): ... this.
38902 (grub_term_get_current): Split in ...
38903 (grub_term_get_current_input): ... this, and ...
38904 (grub_term_get_current_output): ... this.
38905 (grub_term_register): Split in ...
38906 (grub_term_register_input): ... this, and ...
38907 (grub_term_register_output): ... this.
38908 (grub_term_unregister): Split in ...
38909 (grub_term_unregister_input): ... this, and ...
38910 (grub_term_unregister_output): ... this.
38911 (grub_term_iterate): Split in ...
38912 (grub_term_iterate_input): ... this, and ...
38913 (grub_term_iterate_output): ... this.
38914
38915 * kern/term.c (grub_term_list): Split in ...
38916 (grub_term_list_input): ... this, and ...
38917 (grub_term_list_output): ... this. Update all users.
38918 (grub_cur_term): Split in ...
38919 (grub_cur_term_input): ... this, and ...
38920 (grub_cur_term_output): ... this. Update all users.
38921 (grub_term_set_current): Split in ...
38922 (grub_term_set_current_input): ... this, and ...
38923 (grub_term_set_current_output): ... this.
38924 (grub_term_get_current): Split in ...
38925 (grub_term_get_current_input): ... this, and ...
38926 (grub_term_get_current_output): ... this.
38927 (grub_term_register): Split in ...
38928 (grub_term_register_input): ... this, and ...
38929 (grub_term_register_output): ... this.
38930 (grub_term_unregister): Split in ...
38931 (grub_term_unregister_input): ... this, and ...
38932 (grub_term_unregister_output): ... this.
38933 (grub_term_iterate): Split in ...
38934 (grub_term_iterate_input): ... this, and ...
38935 (grub_term_iterate_output): ... this.
38936
38937 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
38938 a check for input and one for output (and only attempt to get keys
38939 from user when input works).
38940
38941 * util/grub-probe.c (grub_term_get_current): Split in ...
38942 (grub_term_get_current_input): ... this, and ...
38943 (grub_term_get_current_output): ... this.
38944 * util/grub-fstest.c: Likewise.
38945 * util/i386/pc/grub-setup.c: Likewise.
38946 * util/grub-editenv.c: Likewise.
38947
38948 Portability adjustments:
38949
38950 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
38951 `term/i386/pc/at_keyboard.c'.
38952 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
38953 grub_keyboard_controller_init() (now handled by terminal .init).
38954 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
38955 grub_at_keyboard_init().
38956 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
38957 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
38958 at_keyboard.mod via input terminal interface).
38959 * include/grub/i386/coreboot/console.h: Convert into a stub for
38960 `<grub/i386/pc/console.h>'.
38961
38962 Migrate full terminals to new API:
38963
38964 * term/efi/console.c (grub_console_term): Split into ...
38965 (grub_console_term_input): ... this, and ...
38966 (grub_console_term_output): ... this. Update all users.
38967 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
38968 (grub_ofconsole_init): Split into ...
38969 (grub_ofconsole_init_input): ... this, and ...
38970 (grub_ofconsole_init_output): ... this.
38971 (grub_ofconsole_term): Split into ...
38972 (grub_ofconsole_term_input): ... this, and ...
38973 (grub_ofconsole_term_output): ... this. Update all users.
38974 * term/i386/pc/serial.c (grub_serial_term): Split into ...
38975 (grub_serial_term_input): ... this, and ...
38976 (grub_serial_term_output): ... this. Update all users.
38977 * term/i386/pc/console.c (grub_console_term): Split into ...
38978 (grub_console_term_input): ... this, and ...
38979 (grub_console_term_output): ... this. Update all users.
38980 (grub_console_term_input): Only enable it on PC/BIOS platform.
38981 (grub_console_init): Remove grub_keyboard_controller_init() call.
38982
38983 Migrate input terminals to new API:
38984
38985 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
38986 `i386' and `i386/pc' to enable build on x86_64 (this driver is
38987 i386-specific anyway).
38988 (grub_console_checkkey): Rename to ...
38989 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
38990 users.
38991 (grub_keyboard_controller_orig): New variable.
38992 (grub_console_getkey): Rename to ...
38993 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
38994 users.
38995 (grub_keyboard_controller_init): Static-ize. Save original
38996 controller value so that it can be restored ...
38997 (grub_keyboard_controller_fini): ... here (new function).
38998 (grub_at_keyboard_term): New structure.
38999 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
39000 functions.
39001
39002 Migrate output terminals to new API:
39003
39004 * term/i386/pc/vga.c (grub_vga_term): Change type to
39005 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39006 members. Update all users.
39007 * term/gfxterm.c (grub_video_term): Change type to
39008 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
39009 members. Update all users.
39010 * include/grub/i386/pc/console.h (grub_console_checkkey)
39011 (grub_console_getkey): Do not export (no longer needed by gfxterm,
39012 etc).
39013
39014 Migrate `terminal' command and userland tools to new API:
39015
39016 * commands/terminal.c (grub_cmd_terminal): Split into ...
39017 (grub_cmd_terminal_input): ... this, and ...
39018 (grub_cmd_terminal_output): ... this.
39019 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
39020 `terminal_input' and `terminal_output'.
39021 * util/grub.d/00_header.in: Adjust `terminal' calls to new
39022 `terminal_input' / `terminal_output' API.
39023 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
39024 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
39025 provided ${GRUB_TERMINAL}, convert it).
39026
96e5d876 390272008-11-04 Robert Millan <rmh@aybabtu.com>
39028
39029 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
39030 for FreeBSD.
39031 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
39032
556f3775 390332008-11-03 Bean <bean123ch@gmail.com>
39034
39035 * kern/elf.c (grub_elf32_load): Revert to previous code.
39036 (grub_elf64_load): Likewise.
39037
39038 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
39039
926b9823 390402008-11-01 Robert Millan <rmh@aybabtu.com>
39041
39042 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
39043 (TARGET_CPPFLAGS): Likewise.
39044 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
39045
1432e958 390462008-11-01 Carles Pina i Estany <carles@pina.cat>
39047
39048 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
39049
dba3f844 390502008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 39051
39052 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
39053 addition of objects until the code is not going to be able to fail.
39054
dba3f844 390552008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 39056
39057 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
39058 (add a missing NULL check, and correct them by moving the pointer
39059 operations after the actual check).
39060
7ab28c21 390612008-10-29 Robert Millan <rmh@aybabtu.com>
39062
39063 * util/i386/pc/grub-install.in: Handle empty string as output from
39064 make_system_path_relative_to_its_root().
39065
1b7748eb 390662008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
39067
39068 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
39069 circular metadata worst case scenario. If the metadata is circular
39070 then copy the wrap in place.
39071 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
39072 project lib/format_text/layout.h
39073 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
39074
c9618ab2 390752008-10-03 Felix Zielcke <fzielcke@z-51.de>
39076
7a36edca 39077 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 39078
bf981c62 390792008-10-03 Felix Zielcke <fzielcke@z-51.de>
39080
39081 * util/update-grub_lib.in: Mention filename in warning message.
39082
6d994591 390832008-09-29 Felix Zielcke <fzielcke@z-51.de>
39084
39085 * NEWS: Update for rename of update-grub to grub-mkconfig.
39086
18ade780 390872008-09-29 Felix Zielcke <fzielcke@z-51.de>
39088
39089 * util/update-grub_lib.in: Copy to ...
39090 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 39091 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 39092 * util/update-grub.in: Rename to ...
39093 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
39094 option. Add `--output' option to allow users to specify the generated
39095 configuration file. Default to stdout.
39096 (update_grub_dir): Rename to ...
39097 (grub_mkconfig_dir): ... this.
39098 (grub_cfg): Default to an empty string.
39099 * conf/common.rmk (update-grub): Rename to ...
39100 (grub-mkconfig): ... this.
39101 (update-grub_lib): Copy to ...
39102 (grub-mkconfig_lib): ... this.
39103 (update-grub_SCRIPTS): Copy to ...
39104 (grub-mkconfig_SCRIPTS): ... this. Update all users.
39105 (update-grub_DATA): Rename to ...
39106 (grub-mkconfig_DATA): ... this.
39107
556ce6ac 391082008-09-28 Robert Millan <rmh@aybabtu.com>
39109
39110 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
39111 to `modified'. Add the real `created' field.
39112 (grub_iso9660_uuid): Use `modified' rather than `created' for
39113 constructing the UUID.
39114
391152008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 39116
39117 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
39118 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
39119
92274e85 391202008-09-28 Bean <bean123ch@gmail.com>
39121
39122 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
39123 Thanks to Christian Franke for finding this bug.
39124
add6f17a 391252008-09-25 Robert Millan <rmh@aybabtu.com>
39126
39127 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
39128 instances of grub_util_get_disk_name() (see previous commit).
39129
d2a367b8 391302008-09-25 Robert Millan <rmh@aybabtu.com>
39131
39132 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
39133 `util/i386/get_disk_name.c'.
39134 * conf/i386-efi.rmk: Likewise.
39135 * conf/x86_64-efi.rmk: Likewise.
39136 * conf/i386-coreboot.rmk: Likewise.
39137 * conf/i386-ieee1275.rmk: Likewise.
39138 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
39139 `util/ieee1275/get_disk_name.c'.
39140 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
39141 * util/ieee1275/get_disk_name.c: Remove file.
39142 * util/i386/get_disk_name.c: Remove file.
39143 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
39144 "hd%d" for device.map entries, rather than using
39145 grub_util_get_disk_name().
39146
81a06771 391472008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 39148
39149 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
39150 warning.
39151 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
39152
5a004279 391532008-09-24 Carles Pina i Estany <carles@pina.cat>
39154
39155 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
39156 Changed to 0x5100.
39157 (GRUB_TERM_PPAGE): Changed to 0x4900.
39158
397093d3 391592008-09-24 Robert Millan <rmh@aybabtu.com>
39160
39161 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
39162 macros (they were i386-pc specific).
39163 * include/grub/sparc64/ieee1275/console.h: Likewise.
39164 * include/grub/efi/console.h: Likewise.
39165
a91b6c7c 391662008-09-22 Bean <bean123ch@gmail.com>
39167
39168 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
39169 resident and in attribute list.
39170
39171 * include/grub/ntfs.h (BMP_LEN): Removed.
39172
c40fd116 391732008-09-22 Bean <bean123ch@gmail.com>
39174
81a06771 39175 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 39176 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
39177
39178 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
39179 error occurs, as grub_disk_open will call grub_disk_close, which will
39180 call p->close (scsi).
39181
81a06771 391822008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 39183
39184 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
39185 (AC_PREREQ): Bumped to 2.59.
39186 (AC_TRY_COMPILE): Replace obsolete macro with ...
39187 (AC_COMPILE_IFELSE): ... this.
39188 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
39189 (AC_LINK_IFELSE): ... this.
39190
5dc43410 391912008-09-21 Felix Zielcke <fzielcke@z-51.de>
39192
39193 * autogen.sh: Add a call to `gendistlist.sh'.
39194
9035dce4 391952008-09-19 Christian Franke <franke@computer.org>
39196
39197 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
39198 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
39199 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
39200 Export __enable_execute_stack() to modules.
39201 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
39202 New function.
39203
7fd75377 392042008-09-09 Felix Zielcke <fzielcke@z-51.de>
39205
040030b3 39206 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
39207 Sort the list.
39208
392092008-09-09 Felix Zielcke <fzielcke@z-51.de>
39210
39211 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 39212 #include <grub/util/hostdisk.h>.
39213
89d5ffcf 392142008-09-08 Robert Millan <rmh@aybabtu.com>
39215
39216 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
39217 segments when their filesz is zero (grub_file_read() interprets
81a06771 39218 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 39219 Use `lowest_segment' rather than 0 for calculating the current
39220 segment load address.
39221
40da438f 392222008-09-08 Robert Millan <rmh@aybabtu.com>
39223
39224 * util/hostdisk.c (open_device): Replace a grub_util_info() call
39225 with grub_dprintf("hostdisk", ...), as it was so verbose that it
39226 clobbered useful information.
39227
ddbf5556 392282008-09-08 Robert Millan <rmh@aybabtu.com>
39229
39230 * include/grub/util/biosdisk.h: Move to ...
39231 * include/grub/util/hostdisk.h: ... here. Update all users.
39232 * util/biosdisk.c: Move to ...
39233 * util/hostdisk.c: ... here. Update all users.
39234
783d0f48 392352008-09-07 Robert Millan <rmh@aybabtu.com>
39236
39237 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
39238 variables.
39239 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
39240 and length can be stored directly in the `mbi->mmap_addr' and
39241 `mbi->mmap_length' struct fields.
39242
548e2ea5 392432008-09-07 Robert Millan <rmh@aybabtu.com>
39244
39245 * conf/i386.rmk: New file. Provides declaration for building
39246 `cpuid.mod'.
39247 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
39248 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
39249 variables.
39250 Include `conf/i386.mk'.
39251 * conf/i386-efi.rmk: Likewise.
39252 * conf/x86_64-efi.rmk: Likewise.
39253 * conf/i386-coreboot.rmk: Likewise.
39254 * conf/i386-ieee1275.rmk: Likewise.
39255
0ea85a37 392562008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
39257
39258 Based on patch created by Colin D Bennett <colin@gibibit.com>.
39259 Adds optimization support for BGR based modes.
39260
39261 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
39262 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39263 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39264 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39265 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39266 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39267 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39268 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39269 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39270 (grub_video_i386_vbeblit_index_index): Likewise.
39271 (grub_video_i386_vbeblit_replace_directN): Added.
39272 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39273 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39274 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39275 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39276 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39277 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 39278 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 39279 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39280 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39281 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39282 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39283 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39284 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
39285
39286 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
39287 (grub_video_i386_vbefill_R8G8B8): Likewise.
39288 (grub_video_i386_vbefill_index): Likewise.
39289 (grub_video_i386_vbefill_direct32): Added.
39290 (grub_video_i386_vbefill_direct24): Likewise.
39291 (grub_video_i386_vbefill_direct16): Likewise.
39292 (grub_video_i386_vbefill_direct8): Likewise.
39293
81a06771 39294 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 39295 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
39296 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
39297 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
39298 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
39299 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 39300
0ea85a37 39301 * video/video.c (grub_video_get_blit_format): Updated to use new
39302 blit formats. Added handling for 16 bit color modes.
81a06771 39303
39304 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 39305 fillers.
39306 (common_blitter): Updated to use new blitters.
39307
39308 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
39309 Removed.
39310 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
39311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
39312 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
39313 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
39314 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
39315 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
39316 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
39317 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
39318 (grub_video_i386_vbeblit_index_index): Likewise.
39319 (grub_video_i386_vbeblit_replace_directN): Added.
39320 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
39321 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
39322 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
39323 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
39324 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
39325 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
39326 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
39327 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
39328 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
39329 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
39330 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
39331 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
39332 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 39333
0ea85a37 39334 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
39335 (grub_video_i386_vbefill_R8G8B8): Likewise.
39336 (grub_video_i386_vbefill_index): Likewise.
39337 (grub_video_i386_vbefill_direct32): Added.
39338 (grub_video_i386_vbefill_direct24): Likewise.
39339 (grub_video_i386_vbefill_direct16): Likewise.
39340 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 39341
0ea85a37 39342 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
39343 types.
81a06771 39344
0ea85a37 39345 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
39346 types.
81a06771 39347
0ea85a37 39348 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
39349 blitter types.
81a06771 39350
0ea85a37 39351 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
39352 types.
39353
e8a83df6 393542008-09-06 Felix Zielcke <fzielcke@z-51.de>
39355
39356 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
39357 RAID level 1.
39358
6bcd8ee5 393592008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 39360
6bcd8ee5 39361 * fs/iso9660.c (grub_iso9660_date): New structure.
39362 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
39363 (grub_iso9660_uuid): New function.
c375ae58 39364
59261157 393652008-09-05 Bean <bean123ch@gmail.com>
39366
39367 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
39368
39369 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
39370 insensitive bit for names in Win32 and Win32 & DOS namespace.
39371
39372 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
39373
39374 * include/grub/types.h (LONG_MAX): Likewise.
39375
58b6645a 393762008-09-04 Felix Zielcke <fzielcke@z-51.de>
39377
4ee55921 39378 * util/getroot.c: Include <config.h>.
39379 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
39380 add support for /dev/md/N devices and handle LVM double dash escaping.
39381
393822008-09-04 Felix Zielcke <fzielcke@z-51.de>
39383
39384 * config.guess: Update to latest version from config git.
39385 * config.sub: Likewise.
58b6645a 39386
9124f65d 393872008-09-03 Robert Millan <rmh@aybabtu.com>
39388
39389 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
39390 `disk->total_sectors'.
39391
81a06771 393922008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 39393
39394 * include/grub/normal.h: Fixed incorrect comment for
39395 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
39396
81a06771 393972008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 39398
39399 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
39400 values with defines.
39401
39402 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
39403 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
39404 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
39405 (GRUB_VBE_MODEATTR_COLOR): Likewise.
39406 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
39407 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
39408 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
39409 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
39410 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
39411 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
39412 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
39413 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
39414 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
39415 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
39416 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
39417 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
39418 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
39419 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
39420 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
39421
93d5cbf8 394222008-08-31 Robert Millan <rmh@aybabtu.com>
39423
39424 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
39425 declaration.
39426 (grub_multiboot): Fix a few warnings.
39427
21751d50 394282008-08-31 Robert Millan <rmh@aybabtu.com>
39429
39430 * loader/i386/pc/multiboot.c: Update comment not to say that
39431 boot_device support is unimplemented.
39432
e27a75c5 394332008-08-31 Robert Millan <rmh@aybabtu.com>
39434
39435 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
39436 or memory map support are unimplemented.
39437
81a06771 394382008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 39439
39440 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
39441
81a06771 394422008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 39443
39444 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
39445 total video memory in 'vbeinfo' output; show color format details for
39446 each video mode.
39447
7c5d8d95 394482008-08-30 Pavel Roskin <proski@gnu.org>
39449
39450 * util/genmoddep.c: Remove for real this time.
39451 * DISTLIST: Remove util/genmoddep.c.
39452
4cebd25a 394532008-08-30 Robert Millan <rmh@aybabtu.com>
39454
39455 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
39456 as required by Multiboot spec (it was already 4-byte aligned, but
39457 only by chance).
39458
b497a269 394592008-08-29 Pavel Roskin <proski@gnu.org>
39460
e3925185 39461 * kern/powerpc/ieee1275/crt0.S: Rename to ...
39462 * kern/powerpc/ieee1275/startup.S: ... this.
39463 * conf/powerpc-ieee1275.rmk: Adjust for the above.
39464 * DISTLIST: Likewise.
39465
b497a269 39466 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
39467 grub/cpu/kernel.h. Add start label for consistency with other
39468 platforms. Add grub_prefix immediately after start. Add jump
39469 to the code after grub_prefix.
39470 * include/grub/powerpc/kernel.h: Provide valid values for
39471 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
39472
6e5a42fe 394732008-08-29 Bean <bean123ch@gmail.com>
39474
39475 * configure.ac: Change host_os to cygwin for mingw.
39476 (asprintf): New check for function.
39477
39478 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
39479 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
39480
39481 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 39482 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 39483 sync, sleep and grub_util_get_disk_size for mingw.
39484
39485 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
39486 to get size in mingw.
39487 (open_device): Use flag O_BINARY if it's defined.
39488 (find_root_device): Add dummy code for mingw.
39489
39490 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
39491 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
39492 (get_scsi_disk_name): Return 0 for mingw.
39493
39494 * util/hostfs.c: #include <grub/util/misc.h>.
39495 (grub_hostfs_open): Use "rb" flag to open file, use
39496 grub_util_get_disk_size to get disk size for mingw.
39497
39498 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
39499 (asprintf): New function if HAVE_ASPRINTF is not set.
39500 (sync): New function for mingw.
39501 (sleep): Likewise.
39502 (grub_util_get_disk_size): Likewise.
39503
ab3f2673 395042008-08-28 Pavel Roskin <proski@gnu.org>
39505
39506 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
39507 kern/time.c.
39508
1c282483 395092008-08-28 Robert Millan <rmh@aybabtu.com>
39510
39511 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
39512
678e849c 395132008-08-28 Robert Millan <rmh@aybabtu.com>
39514
39515 Change find_grub_drive() syntax so it doesn't prevent it from
39516 detecting NULL names as errors.
39517
39518 * util/biosdisk.c (find_grub_drive): Move free slot search code
39519 from here ...
39520 (find_free_slot): ... to here.
39521 (read_device_map): Use find_free_slot() to search for free slots.
39522
965c75ca 395232008-08-27 Marco Gerards <marco@gnu.org>
39524
39525 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
39526 (scsi_mod_SOURCES): New variable.
39527 (scsi_mod_CFLAGS): Likewise
39528 (scsi_mod_LDFLAGS): Likewise.
39529
39530 * disk/scsi.c: New file.
39531
39532 * include/grub/scsi.h: Likewise.
39533
39534 * include/grub/scsicmd.h: Likewise.
39535
39536 * disk/ata.c: Include <grub/scsi.h>.
39537 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
39538 instead.
39539 (grub_ata_iterate): Skip ATAPI devices.
39540 (grub_ata_open): Only handle ATAPI devices.
39541 (struct grub_atapi_read): Removed.
39542 (grub_atapi_readsector): Likewise.
39543 (grub_ata_read): No longer handle ATAPI devices.
39544 (grub_ata_write): Likewise.
39545 (grub_atapi_iterate): New function.
39546 (grub_atapi_read): Likewise.
39547 (grub_atapi_write): Likewise.
39548 (grub_atapi_open): Likewise.
39549 (grub_atapi_close): Likewise.
39550 (grub_atapi_dev): New variable.
39551 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
39552 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
39553
39554 * include/grub/disk.h (enum grub_disk_dev_id): Add
39555 `GRUB_DISK_DEVICE_SCSI_ID'.
39556
c07ae501 395572008-08-26 Robert Millan <rmh@aybabtu.com>
39558
39559 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
39560 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
39561 descriptive.
39562
5ed20adc 395632008-08-23 Bean <bean123ch@gmail.com>
39564
39565 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
39566 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39567 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
39568 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
39569 dm_nv.mod.
39570 (raid5rec_mod_SOURCES): New macro.
39571 (raid5rec_mod_CFLAGS): Likewise.
39572 (raid5rec_mod_LDFLAGS): Likewise.
39573 (raid6rec_mod_SOURCES): Likewise.
39574 (raid6rec_mod_CFLAGS): Likewise.
39575 (raid6rec_mod_LDFLAGS): Likewise.
39576 (mdraid_mod_SOURCES): Likewise.
39577 (mdraid_mod_CFLAGS): Likewise.
39578 (mdraid_mod_LDFLAGS): Likewise.
39579 (dm_nv_mod_SOURCES): Likewise.
39580 (dm_nv_mod_CFLAGS): Likewise.
39581 (dm_nv_mod_LDFLAGS): Likewise.
39582
39583 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
39584 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
39585 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39586
39587 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
39588 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
39589
39590 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39591
39592 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
39593
39594 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39595
39596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39597
39598 * disk/raid5_recover.c: New file.
39599
39600 * disk/raid6_recover.c: Likewise.
39601
39602 * disk/mdraid_linux.c: Likewise.
39603
39604 * disk/dmraid_nvidia.c: Likewise.
39605
39606 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
39607 ULONG_MAX.
39608
39609 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
39610 calculate the size of raid device.
39611 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
39612 different layout of raid5.
39613 (grub_raid_scan_device): Remove code specific to mdraid.
39614 (grub_raid_list): New variable.
39615 (free_array): New function.
39616 (grub_raid_register): Likewise.
39617 (grub_raid_unregister): Likewise.
39618 (grub_raid_rescan): Likewise.
39619 (GRUB_MOD_INIT): Don't iterate device here.
39620 (GRUB_MOD_FINI): Use free_array to release resource.
39621
39622 * include/grub/raid.h: Remove macro and structure specific to mdraid.
39623 (grub_raid5_recover_func_t): New function variable type.
39624 (grub_raid6_recover_func_t): Likewise.
39625 (grub_raid5_recover_func): New variable.
39626 (grub_raid6_recover_func): Likewise.
39627 (grub_raid_register): New function.
39628 (grub_raid_unregister): Likewise.
39629 (grub_raid_rescan): Likewise.
39630 (grub_raid_block_xor): Likewise.
39631
39632 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
39633 (CMD_CRC): New macro.
39634 (part): Removed.
39635 (read_file): Handle device as well as file.
39636 (cmd_crc): New function.
39637 (fstest): Handle multiple disks.
39638 (options): Remove part, raw and long, add root and diskcount.
39639 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 39640 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 39641 add handling for the new options, support multiple disks.
39642
39643 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
39644
29c18915 396452008-08-23 Bean <bean123ch@gmail.com>
39646
39647 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
39648
39649 * genfslist.sh: Ignore kernel.mod.
39650
39651 * genpartmaplist.sh: Likewise.
39652
8415f261 396532008-08-23 Robert Millan <rmh@aybabtu.com>
39654
39655 * util/getroot.c (find_root_device): Skip anything that starts with
39656 a dot, not just directories. This avoids things like /dev/.tmp.md0.
39657
d5a7dc5b 396582008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 39659
d5a7dc5b 39660 * util/update-grub.in (GRUB_GFXMODE): Export variable.
39661 * util/grub.d/00_header.in: Allow the administrator to change default
39662 gfxmode via ${GRUB_GFXMODE}.
39663
380cfbb4 396642008-08-21 Felix Zielcke <fzielcke@z-51.de>
39665
39666 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
39667
c9baafe7 396682008-08-21 Robert Millan <rmh@aybabtu.com>
39669
39670 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
39671 loader.
39672 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
39673 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
39674
e290bef2 396752008-08-20 Carles Pina i Estany <carles@pina.cat>
39676
39677 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
39678 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
39679
f9dbfc96 396802008-08-19 Robert Millan <rmh@aybabtu.com>
39681
39682 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
39683 (struct grub_virtual_screen): Remove `cursor_color'.
39684 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
39685 initialization.
39686 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
39687
dd6bd6ab 396882008-08-18 Robert Millan <rmh@aybabtu.com>
39689
39690 Unify (identical) linux_normal.c files.
39691 * loader/i386/efi/linux_normal.c: Move from here ...
39692 * loader/linux_normal.c: ... to here. Update all users.
39693 * loader/i386/pc/linux_normal.c: Delete. Update all users.
39694 * loader/i386/ieee1275/linux_normal.c: Likewise.
39695
7f42f83e 396962008-08-18 Robert Millan <rmh@aybabtu.com>
39697
39698 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
39699 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
39700 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
39701 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
39702 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
39703 New macros.
39704 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
39705 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
39706 (GRUB_LINUX_CL_END_OFFSET): ... to here.
39707 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
39708 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
39709 (GRUB_EFI_CL_END_OFFSET): Rename to ...
39710 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
39711 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
39712 Initialize `params->video_cursor_x' and `params->video_cursor_y'
39713 portably using grub_getxy().
39714 Replace `-EFI' with `-bzImage' in boot message.
39715
38487ddb 397162008-08-17 Robert Millan <rmh@aybabtu.com>
39717
39718 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
39719
deceb3ec 397202008-08-17 Robert Millan <rmh@aybabtu.com>
39721
39722 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
39723
39724 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
39725 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
39726 (grub_machine_mmap_iterate): New function declaration.
39727 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
39728 structure.
39729 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
39730 macros.
39731
39732 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
39733 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
39734 Move e820 parsing from here ...
39735 * kern/i386/pc/mmap.c: New file.
39736 (grub_machine_mmap_iterate): ... to here.
39737
39738 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
39739 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
39740 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
39741 (grub_available_iterate): Redeclare to return `void', and redeclare
39742 its hook to use grub_uint64_t as addr and size parameters, and rename
39743 to ...
39744 (grub_machine_mmap_iterate): ... this. Update all users.
39745
39746 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
39747 to make it more readable. Rename to ...
39748 (grub_machine_mmap_iterate): ... this.
39749
39750 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
39751 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
39752 (grub_multiboot): Allocate an extra region after the payload, and fill
39753 it with a Multiboot memory map. Adjust a.out loader to calculate size
39754 with the extra space.
39755 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
39756 with the extra space.
39757
f8aa0f43 397582008-08-17 Carles Pina i Estany <carles@pina.cat>
39759
9807deb9 39760 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 39761
605f5bb6 397622008-08-17 Felix Zielcke <fzielcke@z-51.de>
39763
39764 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
39765 mdate-sh to the list `find' searches for.
39766 * DISTLIST: Regenerated.
39767
210db6c6 397682008-08-16 Felix Zielcke <fzielcke@z-51.de>
39769
39770 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
39771 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 39772 genmoddep.awk, gensymlist.sh.in.
39773 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 39774 * DISTLIST: Regenerated.
48cdbfd4 39775 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 39776
1082b929 397772008-08-16 Robert Millan <rmh@aybabtu.com>
39778
39779 * disk/raid.c (grub_raid_init): Handle/report errors set by
39780 grub_device_iterate().
39781 * disk/lvm.c (grub_lvm_init): Likewise.
39782
42ce5170 397832008-08-15 Bean <bean123ch@gmail.com>
39784
39785 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39786 and datehook.mod.
39787 (datetime_mod_SOURCES): New macro.
39788 (datetime_mod_CFLAGS): Likewise.
39789 (datetime_mod_LDFLAGS): Likewise.
39790 (date_mod_SOURCES): Likewise.
39791 (date_mod_CFLAGS): Likewise.
39792 (date_mod_LDFLAGS): Likewise.
39793 (datehook_mod_SOURCES): Likewise.
39794 (datehook_mod_CFLAGS): Likewise.
39795 (datehook_mod_LDFLAGS): Likewise.
39796
39797 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39798 and datehook.mod.
39799 (datetime_mod_SOURCES): New macro.
39800 (datetime_mod_CFLAGS): Likewise.
39801 (datetime_mod_LDFLAGS): Likewise.
39802 (date_mod_SOURCES): Likewise.
39803 (date_mod_CFLAGS): Likewise.
39804 (date_mod_LDFLAGS): Likewise.
39805 (datehook_mod_SOURCES): Likewise.
39806 (datehook_mod_CFLAGS): Likewise.
39807 (datehook_mod_LDFLAGS): Likewise.
39808
39809 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39810 and datehook.mod.
39811 (datetime_mod_SOURCES): New macro.
39812 (datetime_mod_CFLAGS): Likewise.
39813 (datetime_mod_LDFLAGS): Likewise.
39814 (date_mod_SOURCES): Likewise.
39815 (date_mod_CFLAGS): Likewise.
39816 (date_mod_LDFLAGS): Likewise.
39817 (datehook_mod_SOURCES): Likewise.
39818 (datehook_mod_CFLAGS): Likewise.
39819 (datehook_mod_LDFLAGS): Likewise.
39820
39821 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39822 and datehook.mod.
39823 (datetime_mod_SOURCES): New macro.
39824 (datetime_mod_CFLAGS): Likewise.
39825 (datetime_mod_LDFLAGS): Likewise.
39826 (date_mod_SOURCES): Likewise.
39827 (date_mod_CFLAGS): Likewise.
39828 (date_mod_LDFLAGS): Likewise.
39829 (datehook_mod_SOURCES): Likewise.
39830 (datehook_mod_CFLAGS): Likewise.
39831 (datehook_mod_LDFLAGS): Likewise.
39832
39833 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
39834 and datehook.mod.
39835 (datetime_mod_SOURCES): New macro.
39836 (datetime_mod_CFLAGS): Likewise.
39837 (datetime_mod_LDFLAGS): Likewise.
39838 (date_mod_SOURCES): Likewise.
39839 (date_mod_CFLAGS): Likewise.
39840 (date_mod_LDFLAGS): Likewise.
39841 (datehook_mod_SOURCES): Likewise.
39842 (datehook_mod_CFLAGS): Likewise.
39843 (datehook_mod_LDFLAGS): Likewise.
39844
39845 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
39846
39847 * commands/date.c: New file.
39848
39849 * hook/datehook.c: Likewise.
39850
39851 * include/grub/lib/datetime.h: Likewise.
39852
39853 * include/grub/i386/cmos.h: Likewise.
39854
39855 * lib/datetime.c: Likewise.
39856
39857 * lib/i386/datetime.c: Likewise.
39858
39859 * lib/efi/datetime.c: Likewise.
39860
0e9242da 398612008-08-14 Robert Millan <rmh@aybabtu.com>
39862
39863 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
39864 (grub_mkelfimage_SOURCES): New variable.
39865 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
39866
39867 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
39868 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
39869 * conf/powerpc-ieee1275.rmk: Likewise.
39870 * conf/i386-ieee1275.rmk: Likewise.
39871
39872 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
39873 * kern/i386/coreboot/init.c: Likewise.
39874
39875 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
39876 with `<grub/cpu/kernel.h>'.
39877 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
39878 to ...
39879 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
39880 * kern/i386/coreboot/startup.S: Likewise.
39881
39882 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
39883 (GRUB_MOD_GAP): Remove.
39884 * include/grub/powerpc/kernel.h: New file.
39885 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
39886 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39887 * include/grub/i386/kernel.h: New file.
39888 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
39889 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
39890 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
39891
39892 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
39893 `grub-mkelfimage'.
39894 Use --directory when invoking grub_mkimage.
39895
39896 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
39897 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
39898 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
39899 and GRUB_KERNEL_CPU_PREFIX.
39900
b86408f8 399012008-08-14 Felix Zielcke <fzielcke@z-51.de>
39902
d5e619ca 39903 * include/grub/err.h (grub_err_printf): New function prototype.
39904 * util/misc.c (grub_err_printf): New function.
39905 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
39906 grub_printf.
39907 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 39908
7161f0e0 399092008-08-13 Robert Millan <rmh@aybabtu.com>
39910
39911 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
39912
a1967522 399132008-08-13 Robert Millan <rmh@aybabtu.com>
39914
39915 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
39916 boot entry.
39917
371458b5 399182008-08-12 Robert Millan <rmh@aybabtu.com>
39919
39920 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
39921 of the relocation code from here ...
39922 (grub_multiboot): ... to here.
39923 (forward_relocator, backward_relocator): Move from here ...
39924 * kern/i386/loader.S (grub_multiboot_forward_relocator)
39925 (grub_multiboot_backward_relocator): ... to here.
39926 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
39927 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
39928 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
39929 (grub_multiboot_forward_relocator_end)
39930 (grub_multiboot_backward_relocator)
39931 (grub_multiboot_backward_relocator_end): New variables.
39932
05f9452b 399332008-08-12 Bean <bean123ch@gmail.com>
39934
39935 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
39936
20024ab0 399372008-08-11 Robert Millan <rmh@aybabtu.com>
39938
39939 * kern/i386/linuxbios/startup.S: Move from here ...
39940 * kern/i386/coreboot/startup.S: ... to here.
39941
39942 * kern/i386/linuxbios/init.c: Move from here ...
39943 * kern/i386/coreboot/init.c: ... to here.
39944
39945 * kern/i386/linuxbios/table.c: Move from here ...
39946 * kern/i386/coreboot/mmap.c: ... to here.
39947
39948 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
39949
e352e9cd 399502008-08-11 Robert Millan <rmh@aybabtu.com>
39951
39952 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
39953 errors. Leave it to the upper layer to handle them.
39954
2d05bc6a 399552008-08-09 Christian Franke <franke@computer.org>
39956
39957 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
39958 * conf/common.rmk: Install `grub-pe2elf' only if requested.
39959 Install `grub.d/10_windows' only on Cygwin.
39960 * configure.ac: Add subst of `target_os'.
39961 Check `target_os' also before setting TARGET_OBJ2ELF.
39962 Add `--enable-grub-pe2elf'.
39963
042bd419 399642008-08-08 Robert Millan <rmh@aybabtu.com>
39965
39966 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39967 (grub_last_time): Change type to grub_uint64_t.
39968 (grub_disk_open): Migrate code from to using grub_get_time_ms().
39969 (grub_disk_close): Likewise.
39970
39971 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
39972 (run_menu): Migrate code from to using grub_get_time_ms().
39973
39974 * util/misc.c (grub_get_time_ms): New function.
39975
7f280db5 399762008-08-08 Marco Gerards <marco@gnu.org>
39977
39978 * disk/ata.c (grub_ata_regget): Change return type to
39979 `grub_uint8_t'.
39980 (grub_ata_regget2): Likewise.
39981 (grub_ata_wait_status): New function.
39982 (grub_ata_wait_busy): Removed function, updated all users to use
39983 `grub_ata_wait_status'.
39984 (grub_ata_wait_drq): Likewise.
39985 (grub_ata_cmd): New function.
39986 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
39987 error handling.
39988 (grub_ata_pio_write): Add error handling.
39989 (grub_atapi_identify): Likewise.
39990 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
39991 handling.
39992 (grub_ata_identify): Use `grub_ata_cmd' and improve error
39993 handling. Actually use the detected registers. Reorder the
39994 detection logic such that it is easier to read.
39995 (grub_ata_pciinit): Do not assign the same ID to each controller.
39996 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
39997 handling.
39998 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
39999
40000 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
40001
1fbc5e66 400022008-08-08 Marco Gerards <marco@gnu.org>
40003
40004 * NEWS: Update.
40005
819ce6c0 400062008-08-07 Bean <bean123ch@gmail.com>
40007
40008 * include/grub/x86_64/pci.h: New file.
40009
5c41d44d 400102008-08-07 Christian Franke <franke@computer.org>
40011
40012 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
40013 (TIMER2_GATE): Likewise.
40014 (grub_pit_wait): Add enable/disable of the timer2 gate
40015 bit of port 0x61. This fixes a possible infinite loop.
40016
5ebc275d 400172008-08-07 Bean <bean123ch@gmail.com>
40018
40019 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
40020 kern/i386/tsc.c and kern/i386/pit.c.
40021
40022 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
40023 x86_64 platform.
40024
40025 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
40026 <grub/i386/tsc.h>.
40027
40028 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
40029
e383b3d0 400302008-08-07 Bean <bean123ch@gmail.com>
40031
40032 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
40033
40034 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
40035
40036 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
40037 multiple inclusion. Add #include <grub/types.h>.
40038
1cbb58ac 400392008-08-06 Christian Franke <franke@computer.org>
40040
40041 * conf/common.rmk: Build and install `10_windows'.
40042 * util/grub.d/10_windows.in: New script.
40043
337f5a1e 400442008-08-06 Pavel Roskin <proski@gnu.org>
40045
40046 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
40047
057bc4ac 400482008-08-06 Robert Millan <rmh@aybabtu.com>
40049
40050 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
40051 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
40052
2b99f123 400532008-08-06 Bean <bean123ch@gmail.com>
40054
40055 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
40056 (grub_pxefs_fs_int): Remove dummy definition.
40057 (grub_pxefs_open): Use data->block_size to store the current block
40058 size setting.
40059 (grub_pxefs_read): Use block size stored in data->block_size. As the
40060 value of grub_pxe_blksize can be changed after the file is opened.
40061
9f0234cb 400622008-08-06 Bean <bean123ch@gmail.com>
40063
40064 * fs/i386/pc/pxe.c (curr_file): new variable.
40065 (grub_pxefs_open): Simply the handling of pxe file system. Don't
40066 require the dummy internal file system anymore.
40067 (grub_pxefs_read): Removed.
40068 (grub_pxefs_close): Likewise.
40069 (grub_pxefs_fs_int): Likewise.
40070 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
40071 connection when we switch file.
40072 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
40073
a55d42e0 400742008-08-06 Robert Millan <rmh@aybabtu.com>
40075
40076 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
40077 `halt.mod'.
40078 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
40079 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
40080
40081 * kern/i386/halt.c: New file.
40082 * kern/i386/reboot.c: Likewise.
40083 * include/grub/i386/reboot.h: Likewise.
40084 * include/grub/i386/halt.h: Likewise.
40085
40086 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
40087 Include `<grub/cpu/halt.h>'.
40088 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
40089 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
40090
40091 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
40092 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
40093 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
40094 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
40095 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
40096 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
40097 from here ...
40098 * include/grub/i386/at_keyboard.h: ... to here.
40099
24371d26 401002008-08-05 Robert Millan <rmh@aybabtu.com>
40101
40102 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
40103 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
40104 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
40105 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40106 `kern/generic/millisleep.c'.
40107
40108 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
40109 instead of grub_get_rtc().
40110 (grub_tsc_init): Initialize `tsc_boot_time'.
40111
40112 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
40113 (grub_machine_init): Use grub_tsc_init() rather than
40114 installing an RTC-based handler via grub_install_get_time_ms().
40115
40116 * kern/i386/pit.c: New file.
40117 * include/grub/i386/pit.h: Likewise.
40118
9e7007b3 401192008-08-05 Bean <bean123ch@gmail.com>
40120
40121 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
40122
40123 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
40124 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
40125 (pxe_mod_SOURCES): New macro.
40126 (pxe_mod_CFLAGS): Likewise.
40127 (pxe_mod_LDFLAGS): Likewise.
40128 (pxecmd_mod_SOURCES): Likewise.
40129 (pxecmd_mod_CFLAGS): Likewise.
40130 (pxecmd_mod_LDFLAGS): Likewise.
40131
40132 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
40133 (grub_pxe_call): Likewise.
40134
40135 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
40136
40137 * commands/i386/pc/pxecmd.c: New file.
40138
9f0234cb 40139 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 40140
40141 * include/grub/i386/pc/pxe.h: Likewise.
40142
6977d49f 401432008-08-05 Bean <bean123ch@gmail.com>
40144
40145 * util/console.c (grub_console_cur_color): New variable.
40146 (grub_console_standard_color): Likewise.
40147 (grub_console_normal_color): Likewise.
40148 (grub_console_highlight_color): Likewise.
40149 (color_map): Likewise.
40150 (use_color): Likewise.
40151 (NUM_COLORS): New macro.
40152 (grub_ncurses_setcolorstate): Handle color properly.
40153 (grub_ncurses_setcolor): Don't change color here, just remember the
40154 settings, color will be set in grub_ncurses_setcolorstate.
40155 (grub_ncurses_getcolor): New function.
40156 (grub_ncurses_init): Initialize color pairs.
40157 (grub_ncurses_term): New member grub_ncurses_getcolor.
40158
9c2ff3ee 401592008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 40160
9c2ff3ee 40161 High resolution timer support. Implemented for x86 CPUs using TSC.
40162 Extracted generic grub_millisleep() so it's linked in only as needed.
40163 This requires a Pentium compatible CPU; if the RDTSC instruction is
40164 not supported, then it falls back on the generic grub_get_time_ms()
40165 implementation that uses the machine's RTC.
40166
40167 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
40168 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
40169 `kern/generic/millisleep.c'.
40170
40171 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
40172 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
40173
40174 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
40175 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
40176
40177 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40178
40179 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
40180 `kern/generic/millisleep.c'.
40181
40182 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
40183
40184 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
40185
40186 * kern/generic/rtc_get_time_ms.c: New file.
40187
40188 * kern/generic/millisleep.c: New file.
337f5a1e 40189
9c2ff3ee 40190 * kern/misc.c: Don't include
40191 <kern/time.h> anymore.
40192 (grub_millisleep_generic): Removed.
40193
40194 * commands/sleep.c (grub_interruptible_millisleep): Uses
40195 grub_get_time_ms() instead of grub_get_rtc().
40196
40197 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
40198 function.
40199 (grub_cpu_is_cpuid_supported): New inline function.
40200 (grub_cpu_is_tsc_supported): New inline function.
40201 (grub_tsc_init): New function prototype.
40202 (grub_tsc_get_time_ms): New function prototype.
40203
40204 * kern/i386/tsc.c (grub_get_time_ms): New file.
40205
40206 * include/grub/time.h: Include <grub/types.h.
40207 (grub_millisleep_generic): Removed.
40208 (grub_get_time_ms): New prototype.
40209 (grub_install_get_time_ms): New prototype.
40210 (grub_rtc_get_time_ms): New prototype.
40211
40212 * kern/time.c (grub_get_time_ms): New function.
40213 (grub_install_get_time_ms): New function.
40214
40215 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
40216 <grub/time.h> anymore.
40217 (grub_millisleep): Removed.
40218 (grub_machine_init): Call grub_tsc_init.
40219
40220 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
40221 get_time_ms() implementation.
40222
40223 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
40224 (ieee1275_get_time_ms): New function.
40225 (grub_machine_init): Install get_time_ms() implementation.
40226
40227 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
40228 (grub_machine_init): Call grub_tsc_init().
40229 (grub_millisleep): Removed.
bf06a93f 40230
9c2ff3ee 40231 * kern/ieee1275/init.c (grub_millisleep): Removed.
40232 (grub_machine_init): Install ieee1275_get_time_ms()
40233 implementation.
40234 (ieee1275_get_time_ms): New function.
40235 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
40236 real work.
40237
9ec92aaf 402382008-08-05 Marco Gerards <marco@gnu.org>
40239
40240 * disk/ata.c: Include <grub/pci.h>.
40241 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
40242 (grub_ata_initialize): Rewritten.
40243 (grub_ata_device_initialize): New function.
40244
8d23f507 402452008-08-04 Pavel Roskin <proski@gnu.org>
40246
40247 * kern/main.c: Include grub/mm.h.
40248
5e15ee3d 402492008-08-04 Robert Millan <rmh@aybabtu.com>
40250
40251 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
40252 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
40253 corruption problem).
40254
a9053f8f 402552008-08-04 Robert Millan <rmh@aybabtu.com>
40256
40257 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
40258 warnings introduced in my last commit.
40259
dd19c7d7 402602008-08-03 Robert Millan <rmh@aybabtu.com>
40261
40262 Make PCI available on all i386 architectures.
40263
40264 * include/grub/i386/pc/pci.h: Move from here ...
40265 * include/grub/i386/pci.h: ... to here.
40266
40267 * include/grub/i386/pc/pci.h: Remove.
40268 * include/grub/i386/efi/pci.h: Remove.
40269 * include/grub/x86_64/efi/pci.h: Remove.
40270
40271 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
40272 `<grub/cpu/pci.h>'.
40273
40274 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
40275 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
40276 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
40277
40278 * conf/i386-ieee1275.rmk: Likewise.
40279
e14a6184 402802008-08-03 Robert Millan <rmh@aybabtu.com>
40281
40282 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
40283 (grub_console_setcursor): Make it possible to set cursor off.
40284
52768e37 402852008-08-03 Robert Millan <rmh@aybabtu.com>
40286
40287 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
40288 of modules instead of assuming which platform provides what.
40289 * util/update-grub.in: Likewise.
40290
2d52f57f 402912008-08-03 Robert Millan <rmh@aybabtu.com>
40292
40293 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
40294 instead of `grub_install_dos_part' to determine whether a drive needs
40295 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 40296 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 40297
2a5cd121 402982008-08-02 Robert Millan <rmh@aybabtu.com>
40299
40300 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
40301
93808428 403022008-08-02 Robert Millan <rmh@aybabtu.com>
40303
40304 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
40305 of informational grub_dprintf() calls.
40306
3bd0a12a 403072008-08-02 Robert Millan <rmh@aybabtu.com>
40308
40309 * disk/memdisk.c (memdisk_size): Don't initialize.
40310 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
40311
40312 * include/grub/i386/pc/kernel.h
40313 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
40314 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
40315 (grub_memdisk_image_size, grub_arch_memdisk_addr)
40316 (grub_arch_memdisk_size): Remove.
40317
40318 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
40319 field (was only used to transfer a constant). Add `type' field to
40320 support multiple module types.
40321 (grub_module_iterate): New function.
40322
40323 * kern/device.c (grub_device_open): Do not hide error messages
40324 when grub_disk_open() fails. Use grub_print_error() instead.
40325
40326 * kern/i386/pc/init.c (grub_arch_modules_addr)
40327 (grub_arch_memdisk_size): Remove functions.
40328 (grub_arch_modules_addr): Return the module address in high memory
40329 (now that it isn't copied anymore).
40330
40331 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
40332 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
40333 decompression routine (grub_total_module_size already includes that
40334 now). Don't copy modules back to low memory.
40335
40336 * kern/main.c: Include `<grub/mm.h>'.
40337 (grub_load_modules): Split out (and use) ...
40338 (grub_module_iterate): ... this function, which iterates through
40339 module objects and runs a hook.
40340 Comment out grub_mm_init_region() call, as it would cause non-ELF
40341 modules to be overwritten.
40342
40343 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
40344 the memdisk image in its own region, make it part of the module list.
40345 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
40346 (main): Parse --memdisk|-m option, and pass user-provided path as
40347 parameter to generate_image().
40348 (add_segments): Pass `memdisk_path' down to load_modules().
40349 (load_modules): Embed memdisk image in module section when requested.
40350 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
40351 `header.type' instead of `header.offset'.
40352
40353 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
40354 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
40355 (memdisk_mod_LDFLAGS): New variables.
40356 * conf/i386-coreboot.rmk: Likewise.
40357 * conf/i386-ieee1275.rmk: Likewise.
40358
a927cc73 403592008-08-02 Robert Millan <rmh@aybabtu.com>
40360
40361 * loader/i386/pc/multiboot.c (playground, forward_relocator)
40362 (backward_relocator): New variables. Used to allocate and relocate
40363 the payload, respectively.
40364 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 40365 address, install the appropriate relocator code in each bound of
a927cc73 40366 the payload, and set the entry point such that
40367 grub_multiboot_real_boot() will jump to one of them.
40368
40369 * kern/i386/loader.S (grub_multiboot_payload_size)
40370 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40371 (grub_multiboot_payload_entry_offset): New variables.
40372 (grub_multiboot_real_boot): Set cpu context to what the relocator
40373 expects, and jump to the relocator instead of the payload.
40374
40375 * include/grub/i386/loader.h (grub_multiboot_payload_size)
40376 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
40377 (grub_multiboot_payload_entry_offset): Export.
40378
b15d8a0c 403792008-08-01 Bean <bean123ch@gmail.com>
40380
40381 * normal/menu_entry.c (editor_getline): Don't return the original
40382 string as result, as it will be released by lexer once it has done
40383 using it.
40384
cdfb3d22 403852008-08-01 Robert Millan <rmh@aybabtu.com>
40386
40387 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
40388 within menuentries, not before them.
40389 util/grub.d/10_hurd.in: Likewise.
40390
9175e93d 403912008-08-01 Bean <bean123ch@gmail.com>
40392
40393 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
40394 (bufio_mod_SOURCES): New macro.
40395 (bufio_mod_CFLAGS): Likewise.
40396 (bufio_mod_LDFLAGS): Likewise.
40397
40398 * include/grub/bufio.h: New file.
40399
40400 * io/bufio.c: Likewise.
40401
40402 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
40403 (grub_video_reader_png): Use grub_buffile_open to open file.
40404
40405 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
40406 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
40407
40408 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
40409 (grub_video_reader_tga): Use grub_buffile_open to open file.
40410
40411 * font/manager.c: Include <grub/bufio.h>.
40412 (add_font): Use grub_buffile_open to open file.
40413
3d8383e7 404142008-07-31 Robert Millan <rmh@aybabtu.com>
40415
40416 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
40417 ELF segments, use a macro for arbitrarily accessing any of them instead
40418 of preparing a pointer that allows access to one at a time.
40419 (grub_multiboot_load_elf64): Likewise.
40420
16e641b6 404212008-07-31 Bean <bean123ch@gmail.com>
40422
40423 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
40424 GRUB_KERNEL_MACHINE_DATA_END.
40425
59198b72 404262008-07-30 Robert Millan <rmh@aybabtu.com>
40427
40428 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
40429 Increase from 0x50 to 0x60.
40430 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
40431 use UUIDs to identify the root drive for them. If that's not
40432 possible, abort.
40433 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
40434 check, for cross-disk installs.
40435
ae88bca3 404362008-07-30 Robert Millan <rmh@aybabtu.com>
40437
40438 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
40439 is non-empty, use it to set the `prefix' environment variable instead
40440 of the usual approach.
40441 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
40442 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
40443 environment variable instead of dummy make_install_device().
40444
40445 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
40446 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 40447 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 40448
40449 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
40450 New variable reference.
40451 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
40452 New macro. Defines offset of `grub_prefix' within startup.S (relative
40453 to `start').
40454 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
40455 section within startup.S (relative to `start').
40456 * include/grub/i386/coreboot/kernel.h: Likewise.
40457
40458 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
40459 Overwrite grub_prefix with its contents, at the beginning of the
40460 first segment.
40461 (main): Understand -p|--prefix.
40462
14f41dd1 404632008-07-30 Robert Millan <rmh@aybabtu.com>
40464
40465 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
40466
4ca049a3 404672008-07-30 Robert Millan <rmh@aybabtu.com>
40468
40469 * term/i386/pc/vga_text.c (grub_console_cls): Use
40470 grub_console_gotoxy() to go back to beginning of the screen.
40471 Found by Patrick Georgi <patrick.georgi@coresystems.de>
40472
2921d337 404732008-07-29 Christian Franke <franke@computer.org>
40474
40475 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
40476 Add conversion of emulated mount points on Cygwin.
40477
b609876d 404782008-07-29 Christian Franke <franke@computer.org>
40479
40480 * util/update-grub.in: Add a check for admin
40481 group on Cygwin.
40482 Remove old `grub.cfg.new' before creation.
40483 Add `-f' to `mv' to handle the different filesystem
40484 semantics of Windows.
40485
e93e4679 404862008-07-29 Bean <bean123ch@gmail.com>
40487
40488 * normal/main.c (get_line): Fix buffer overflow bug.
40489
41694fd0 404902008-07-28 Robert Millan <rmh@aybabtu.com>
40491
40492 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
40493 (struct grub_apple_header): New struct. Describes the layout of
40494 the partmap header.
40495 (apple_partition_map_iterate): Check the header magic as well as the
40496 partition magic (which was already being checked).
40497
cfd0b4e6 404982008-07-28 Pavel Roskin <proski@gnu.org>
40499
40500 * genmk.rb: Add a warning to the beginning of the output that
40501 it's a generated file and should not be edited.
40502
93cce016 405032008-07-28 Robert Millan <rmh@aybabtu.com>
40504
40505 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
40506 with the same number are found, just use issue a warning with
40507 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 40508
cd1df915 405092008-07-27 Robert Millan <rmh@aybabtu.com>
40510
40511 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
40512 information.
40513
b70a8427 405142008-07-27 Bean <bean123ch@gmail.com>
40515
40516 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
40517 (grub_fat_find_dir): Ignore case when comparing filename.
40518
8f5e379f 405192008-07-27 Bean <bean123ch@gmail.com>
40520
40521 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
40522 smallino, as it's more descriptive, and i8count can be confused with
40523 the other field count.
40524 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
40525 inode type.
40526
a85cd5a0 405272008-07-27 Bean <bean123ch@gmail.com>
40528
40529 * commands/crc.c: New file.
40530
40531 * lib/crc.c: Likewise.
40532
40533 * include/grub/lib/crc.h: Likewise.
40534
40535 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
40536
40537 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
40538 (hexdump): Move this function to ...
40539
40540 * lib/hexdump.c: ... here.
40541
40542 * include/grub/hexdump.h: Renamed to ...
40543
40544 * include/grub/lib/hexdump.h: ... this.
40545
40546 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
40547
40548 * util/grub-editenv.c: Likewise.
40549
40550 * include/envblk.h: Renamed to ...
40551
40552 * include/lib/envblk.h: ... this.
40553
40554 * util/envblk.c: Renamed to ...
40555
40556 * lib/envblk.c: ... this.
40557
40558 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
40559 lib/hexdump.c.
40560 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
40561 (pkglib_MODULES): Add crc.mod.
40562 (hexdump_mod_SOURCES): Add lib/hexdump.c.
40563 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
40564 (crc_mod_SOURCES): New macro.
40565 (crc_mod_CFLAGS): Likewise.
40566 (crc_mod_LDFLAGS): Likewise.
40567
40568 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
40569
40570 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
40571
40572 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
40573
40574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40575
40576 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
40577
c298def0 405782008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 40579
40580 * commands/help.c: Include <grub/term.h>.
40581 (TERM_WIDTH): Removed. Updated all users.
40582
cc349fb3 405832008-07-27 Pavel Roskin <proski@gnu.org>
40584
40585 * util/getroot.c (find_root_device): Rephrase a comment to avoid
40586 spurious warnings about a comment within a comment.
40587
9051607e 405882008-07-25 Robert Millan <rmh@aybabtu.com>
40589
40590 * util/getroot.c (find_root_device): Skip devices that match
40591 /dev/dm-[0-9]. This lets the real device be found for any type of
40592 abstraction (LVM, EVMS, RAID..).
40593 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
40594 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
40595 device is found first, find_root_device() will now skip it.
40596
01453bfc 405972008-07-24 Pavel Roskin <proski@gnu.org>
40598
40599 * include/grub/types.h: Use __builtin_bswap32() and
40600 __builtin_bswap64() with gcc 4.3 and newer.
40601
6af9849f 406022008-07-24 Christian Franke <franke@computer.org>
40603
3a0fa256 40604 * util/i386/pc/grub-install.in: If `--debug' is specified,
40605 pass `--verbose' to grub-setup.
40606 Abort script if make_system_path_relative_to_its_root() fails.
40607
7810e747 406082008-07-24 Bean <bean123ch@gmail.com>
40609
40610 * configure.ac: Fixed a bug caused by the previous cygwin patch,
40611 variable `target_platform' should be `platform'.
40612
42290e17 406132008-07-24 Bean <bean123ch@gmail.com>
40614
51cc5193 40615 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 40616 (grub_png_init_fixed_block): New function.
40617 (grub_png_decode_image_data): Handle fixed huffman code compression.
40618
2a8a80e4 406192008-07-24 Bean <bean123ch@gmail.com>
40620
40621 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
40622 (grub_pe2elf_SOURCES): New macro.
40623 (CLEANFILES): Add grub-pe2elf.
40624
40625 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
40626 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
40627 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
40628 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
40629 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
40630 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
40631 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
40632 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
40633 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
40634 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
40635 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
40636 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
40637 (GRUB_PE32_DT_FUNCTION): Likewise.
40638 (GRUB_PE32_REL_I386_DIR32): Likewise.
40639 (GRUB_PE32_REL_I386_REL32): Likewise.
40640 (grub_pe32_symbol): New structure.
40641 (grub_pe32_reloc): Likewise.
40642
40643 * util/grub-pe2elf.c: New file.
40644
40645 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
40646 start symbol in non pc platform.
40647
40648 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
40649
40650 The following patches are from Christian Franke.
40651
40652 * include/grub/dl.h: Remove .previous, gas supports this only
40653 for ELF format.
40654
40655 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
40656 Remove .type, gas supports this only for ELF format.
40657
40658 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
40659 nullbytes in symbol table. This fixes an infinite loop if table is
40660 zero filled.
40661
40662 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
40663 TARGET_IMG_LDFLAGS and EXEEXT.
40664
40665 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
40666 TARGET_IMG_LDFLAGS_AC.
40667 (grub_CHECK_STACK_ARG_PROBE): New function.
40668
40669 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
40670
40671 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
40672
40673 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
40674 to set TARGET_IMG_LD* accordingly.
40675 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
40676 Add call to grub_CHECK_STACK_ARG_PROBE.
40677 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
40678
40679 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
40680
40681 * genmk.rb: Add EXEEXT to CLEANFILES.
40682
12ccdb75 406832008-07-23 Robert Millan <rmh@aybabtu.com>
40684
40685 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
40686 define the codes for arrows and lines used for the menu).
40687 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
40688 as well.
40689
40690 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
40691 fonts, because the latter are too slow.
40692
18eeaf04 406932008-07-21 Bean <bean123ch@gmail.com>
40694
40695 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
40696 a20. Run keyboard test last, as it will cause macbook to halt.
40697
b095e2ad 406982008-07-18 Pavel Roskin <proski@gnu.org>
40699
40700 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
40701 load foreign architecture modules correctly anyway. Keep
40702 support for loading host architecture modules, whether we
40703 compile them or not.
40704
737feb35 407052008-07-17 Pavel Roskin <proski@gnu.org>
40706
3f4ce737 40707 * configure.ac: Use -m32 or -m64 regardless of whether we had to
40708 change target_cpu. The compiler default can mismatch target_cpu
40709 in any case.
40710
4ad2d049 40711 * disk/efi/efidisk.c: Fix format warnings on x86_64.
40712 * kern/efi/efi.c: Likewise.
40713
f6130a12 40714 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
40715 target compiler is functional.
40716 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
40717 are set up.
40718
58393a2d 40719 * configure.ac: Default to efi platform for x86_64-apple. Allow
40720 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
40721 adjustments from the rest, only do them if target is not
40722 explicitly given. Merge other adjustments with the final sanity
40723 check. Remove an extraneous check for supported CPU. Be
40724 specific which CPU and which platform is not supported.
40725
737feb35 40726 * configure.ac: Default to pc platform for x86_64.
40727
546f966a 407282008-07-17 Robert Millan <rmh@aybabtu.com>
40729
40730 Partial LinuxBIOS -> Coreboot rename.
40731
40732 * conf/i386-linuxbios.rmk: Renamed to ...
40733 * conf/i386-coreboot.rmk: ... this.
40734 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
40735 * configure.ac: Accept "coreboot" as input platform (but maintain
40736 compatibility with "linuxbios").
40737 * include/grub/i386/linuxbios: Renamed to ...
40738 * include/grub/i386/coreboot: ... this.
40739
20011694 407402008-07-17 Bean <bean123ch@gmail.com>
40741
40742 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 40743 (appleldr_mod_SOURCE): New variable.
20011694 40744 (appleldr_mod_CFLAGS): Likewise.
40745 (appleldr_mod_LDFLAGS): Likewise.
40746 (pci_mod_SOURCES): Likewise.
40747 (pci_mod_CFLAGS): Likewise.
40748 (pci_mod_LDFLAGS): Likewise.
40749 (lspci_mod_SOURCES): Likewise.
40750 (lspci_mod_CFLAGS): Likewise.
40751 (lspci_mod_LDFLAGS): Likewise.
40752
40753 * conf/x86_64-efi.rmk: New file.
40754
40755 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
40756 macro.
40757 (grub_efidisk_write): Likewise.
40758
40759 * include/efi/api.h (efi_call_0): New macro.
40760 (efi_call_1): Likewise.
40761 (efi_call_2): Likewise.
40762 (efi_call_3): Likewise.
40763 (efi_call_4): Likewise.
40764 (efi_call_5): Likewise.
40765 (efi_call_6): Likewise.
40766
40767 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
40768 grub_rescue_cmd_chainloader.
40769
40770 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
40771 (grub_pe32_optional_header): Change some fields based on i386 or
40772 x86_64 platform.
40773 (GRUB_PE32_PE32_MAGIC): Likewise.
40774
40775 * include/grub/efi/uga_draw.h: New file.
40776
40777 * include/grub/elf.h (STN_ABS): New constant.
40778 (R_X86_64_NONE): Relocation constant for x86_64.
40779 (R_X86_64_64): Likewise.
40780 (R_X86_64_PC32): Likewise.
40781 (R_X86_64_GOT32): Likewise.
40782 (R_X86_64_PLT32): Likewise.
40783 (R_X86_64_COPY): Likewise.
40784 (R_X86_64_GLOB_DAT): Likewise.
40785 (R_X86_64_JUMP_SLOT): Likewise.
40786 (R_X86_64_RELATIVE): Likewise.
40787 (R_X86_64_GOTPCREL): Likewise.
40788 (R_X86_64_32): Likewise.
40789 (R_X86_64_32S): Likewise.
40790 (R_X86_64_16): Likewise.
40791 (R_X86_64_PC16): Likewise.
40792 (R_X86_64_8): Likewise.
40793 (R_X86_64_PC8): Likewise.
40794
40795 * include/grub/i386/efi/pci.h: New file.
40796
40797 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
40798 Change it value based on platform.
40799 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
40800 (GRUB_E820_RAM): Likewise.
40801 (GRUB_E820_RESERVED): Likewise.
40802 (GRUB_E820_ACPI): Likewise.
40803 (GRUB_E820_NVS): Likewise.
40804 (GRUB_E820_EXEC_CODE): Likewise.
40805 (GRUB_E820_MAX_ENTRY): Likewise.
40806 (grub_e820_mmap): New structure.
40807 (linux_kernel_header): Change the efi field according to different
40808 kernel version, also field from linux_kernel_header.
40809
40810 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
40811
40812 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
40813 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
40814 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
40815 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
40816 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
40817 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
40818 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
40819 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
40820 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
40821 (GRUB_PCI_ADDR_IO_MASK): Likewise.
40822
40823 * include/grub/x86_64/efi/kernel.h: New file.
40824
40825 * include/grub/x86_64/efi/loader.h: Likewise.
40826
40827 * include/grub/x86_64/efi/machine.h: Likewise.
40828
40829 * include/grub/x86_64/efi/pci.h: Likewise.
40830
40831 * include/grub/x86_64/efi/time.h: Likewise.
40832
40833 * include/grub/x86_64/linux.h: Likewise.
40834
40835 * include/grub/x86_64/setjmp.h: Likewise.
40836
40837 * include/grub/x86_64/time.h: Likewise.
40838
40839 * include/grub/x86_64/types.h: Likewise.
40840
40841 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
40842 GRUB_TARGET_SIZEOF_VOID_P.
40843
40844 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
40845 (grub_efi_locate_handle): Likewise.
40846 (grub_efi_open_protocol): Likewise.
40847 (grub_efi_set_text_mode): Likewise.
40848 (grub_efi_stall): Likewise.
40849 (grub_exit): Likewise.
40850 (grub_reboot): Likewise.
40851 (grub_halt): Likewise.
40852 (grub_efi_exit_boot_services): Likewise.
40853 (grub_get_rtc): Likewise.
40854
40855 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
40856 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
40857 (grub_efi_allocate_pages): Wrap efi calls.
40858 (grub_efi_free_pages): Wrap efi calls.
40859 (grub_efi_get_memory_map): Wrap efi calls.
40860
40861 * kern/x86_64/dl.c: New file.
40862
40863 * kern/x86_64/efi/callwrap.S: Likewise.
40864
40865 * kern/x86_64/efi/startup.S: Likewise.
40866
40867 * loader/efi/appleloader.c: Likewise.
40868
40869 * loader/efi/chainloader.c (cmdline): New variable.
40870 (grub_chainloader_unload): Wrap efi calls.
40871 (grub_chainloader_boot): Likewise.
40872 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
40873 command line.
40874
40875 * loader/efi/chainloader_normal.c (chainloader_command):
40876 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
40877 command line.
40878
40879 * loader/i386/efi/linux.c (allocate_pages): Change allocation
40880 method.
40881 (grub_e820_add_region): New function.
40882 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
40883 booting.
40884 (grub_find_video_card): New function.
40885 (grub_linux_setup_video): New function.
40886 (grub_rescue_cmd_linux): Probe for video information.
40887
40888 * normal/x86_64/setjmp.S: New file.
40889
40890 * term/efi/console.c (map_char): New function.
40891 (grub_console_putchar): Map unicode char.
40892 (grub_console_checkkey): Wrap efi calls.
40893 (grub_console_getkey): Likewise.
40894 (grub_console_getwh): Likewise.
40895 (grub_console_gotoxy): Likewise.
40896 (grub_console_cls): Likewise.
40897 (grub_console_setcolorstate): Likewise.
40898 (grub_console_setcursor): Likewise.
40899
40900 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
40901
59652a20 409022008-07-16 Pavel Roskin <proski@gnu.org>
40903
ef294055 40904 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
40905 format strings.
40906
59652a20 40907 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
40908 pointer, not an integer. This fixes a warning and prevents
40909 precision loss on 64-bit systems.
40910 (relocate_addresses): Remove unneeded cast.
40911
afc3b5d7 409122008-07-15 Pavel Roskin <proski@gnu.org>
40913
506b2b3e 40914 * kern/i386/ieee1275/init.c: Include grub/cache.h.
40915
62ead89c 40916 * term/ieee1275/ofconsole.c: Disable code unused on i386.
40917
c4cd51d7 40918 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
40919 Fix comparison between signed and unsigned.
40920
0d3d8f28 40921 * include/grub/i386/ieee1275/console.h: Declare
40922 grub_console_init() and grub_console_fini().
40923
8804b286 40924 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
40925 It's empty and unused.
40926
ee01cf35 40927 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
40928 beginning to avoid warnings with some compilers.
40929
afc3b5d7 40930 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
40931 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
40932
e4e8eaa5 409332008-07-14 Pavel Roskin <proski@gnu.org>
40934
407aceb4 40935 * kern/env.c (grub_register_variable_hook): Don't copy empty
40936 string, it leaks memory. Pass "" to grub_env_set(), it should
40937 handle constant strings.
40938
e4e8eaa5 40939 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
40940 * commands/cmp.c (grub_cmd_cmp): Likewise.
40941 * kern/dl.c (grub_dl_flush_cache): Likewise.
40942 (grub_dl_load_core): Likewise.
40943 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
40944 (grub_elf64_load_phdrs): Likewise.
40945
d4e2dad3 409462008-07-13 Pavel Roskin <proski@gnu.org>
40947
40948 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
40949 between signed and unsigned.
40950 (LzmaEnc_Finish): Fix warning about an unused parameter.
40951
aa24b516 409522008-07-13 Bean <bean123ch@gmail.com>
40953
40954 * Makefile.in (enable_lzo): New rule.
40955
40956 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
40957
40958 * configure.ac (ENABLE_LZO): New option --enable-lzo.
40959
40960 * boot/i386/pc/lnxboot.S: #include <config.h>.
40961
40962 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 40963 its value according to the compression algorithm used, lzo or lzma.
aa24b516 40964
40965 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
40966 compression algorithm according to configure macro.
40967
40968 * kern/i386/pc/startup.S (codestart): Likewise.
40969
40970 * kern/i386/pc/lzma_decode.S: New file.
40971
40972 * include/grub/lib/LzFind.h: Likewise.
40973
40974 * include/grub/lib/LzHash.h: Likewise.
40975
40976 * include/grub/lib/LzmaDec.h: Likewise.
40977
40978 * include/grub/lib/LzmaEnc.h: Likewise.
40979
40980 * include/grub/lib/LzmaTypes.h: Likewise.
40981
40982 * lib/LzFind.c: Likewise.
40983
40984 * lib/LzmaDec.c: Likewise.
40985
40986 * lib/LzmaEnc.c: Likewise.
40987
4ae821ac 409882008-07-13 Bean <bean123ch@gmail.com>
40989
40990 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
40991 (grub_ext4_extent_header): New structure.
40992 (grub_ext4_extent): Likewise.
40993 (grub_ext4_extent_idx): Likewise.
40994 (grub_ext4_find_leaf): New function.
40995 (grub_ext2_read_block): Handle extents.
40996
9a745147 409972008-07-12 Robert Millan <rmh@aybabtu.com>
40998
40999 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
41000
d49a4cf6 410012008-07-11 Robert Millan <rmh@aybabtu.com>
41002
41003 * util/grub.d/40_custom.in: New file. Example on how to add custom
41004 entries to /etc/grub.d.
41005 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
41006 40_custom (implicitly, by merging all the grub.d rules).
41007
947414b4 410082008-07-11 Pavel Roskin <proski@gnu.org>
41009
0059cf6f 41010 * commands/read.c (grub_getline): Fix invalid memory access.
41011 Don't add newline to the variable value.
41012
947414b4 41013 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
41014 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
41015 (serial_hw_get_port): Check validity of the port number.
41016 (grub_cmd_serial): Check return value of serial_hw_get_port().
41017
62a02d00 410182008-07-07 Pavel Roskin <proski@gnu.org>
41019
41020 * boot/i386/pc/diskboot.S (notification_string): Replace
41021 "Loading kernel" with just "loading". This is shorter, less
41022 confusing and saves a few bytes for possible future changes.
41023
3e5581b0 410242008-07-05 Pavel Roskin <proski@gnu.org>
41025
ea387a48 41026 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
41027 size for ATAPI devices, they are undefined. Output sector
41028 number in decimal form.
41029
3e5581b0 41030 * disk/ata.c: Use named constants for status bits.
41031
fdecb8fd 410322008-07-04 Pavel Roskin <proski@gnu.org>
41033
bcd35b90 41034 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
41035 grub_addr_t before casting it to the void pointer to fix a
41036 warning. Non-addressable regions are discarded earlier.
41037 (grub_arch_modules_addr): Cast _end to grub_addr_t.
41038 * kern/i386/linuxbios/table.c: Include grub/misc.h.
41039 (check_signature): Don't shadow table_header.
41040 (grub_linuxbios_table_iterate): Cast numeric constants to
41041 grub_linuxbios_table_header_t.
41042 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
41043 grub_stop().
41044
af58ab3d 41045 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
41046 prevent warnings.
41047
1759aa57 41048 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
41049 pointer, which can cause warnings. Support 64-bit addresses.
41050
fdecb8fd 41051 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
41052 of sizeof(long). This fixes PowerPC image generation on x86_64.
41053
8516d2a8 410542008-07-04 Robert Millan <rmh@aybabtu.com>
41055
41056 This fixes a performance issue when pc & gpt partmap iterators
41057 didn't abort iteration even after our hook found what it was
fe987087 41058 looking for (often causing expensive probes of non-existent drives).
8516d2a8 41059
41060 Some callers relied on previous buggy behaviour, since they would
34c44600 41061 raise an error when their own hooks caused early abortion of its
8516d2a8 41062 iteration.
41063
41064 * kern/device.c (grub_device_open): Improve error message.
41065 * disk/lvm.c (grub_lvm_open): Likewise.
41066 * disk/raid.c (grub_raid_open): Likewise.
41067
41068 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
41069 when hook requests it, independently of grub_errno.
41070 (pc_partition_map_probe): Do not fail when find_func() caused
41071 early abortion of pc_partition_map_iterate().
41072
41073 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
41074 when hook requests it, independently of grub_errno.
41075 (gpt_partition_map_probe): Do not fail when find_func() caused
41076 early abortion of gpt_partition_map_iterate().
41077
41078 * kern/partition.c (grub_partition_iterate): Abort parent iteration
41079 when hook requests it, independently of grub_errno. Do not fail when
41080 part_map_iterate_hook() caused early abortion of p->iterate().
41081
41082 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
41083 when grub_partition_iterate() returned with non-zero.
41084
277d0de9 410852008-07-03 Pavel Roskin <proski@gnu.org>
41086
41087 * disk/ata.c (grub_ata_pio_write): Check status before writing,
41088 like we do in grub_ata_pio_read().
41089 (grub_ata_readwrite): Always write individual sectors. Fix the
41090 sector count for the remainder.
41091 (grub_ata_write): Enable writing to ATA devices. Correctly
41092 report error for ATAPI devices.
41093
d4c9b428 410942008-07-02 Pavel Roskin <proski@gnu.org>
41095
e43fc690 41096 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
41097 warning.
41098
f707af42 41099 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
41100 for every read sector, we already increment it for the whole
41101 batch. This fixes reading more than 256 sectors at once.
41102
11e16b15 41103 * util/grub-editenv.c (cmd_info): Cast argument to long
41104 explicitly. ptrdiff_t reduces to int on i386.
41105
cbabfdd4 41106 * util/grub-editenv.c (main): Be specific which parameter is
41107 missing.
41108
b8fbce0a 41109 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
41110 (memdisk): Make memdisk_orig_addr a pointer.
41111
c9c8e606 41112 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
41113 for file offsets, use grub_off_t instead. Fix printf format
41114 warnings.
41115
ca62e598 41116 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
41117 there. Real unexpected warnings should not drown in the noise
41118 about known problems.
41119
ce8d1766 41120 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
41121 grub_disk_addr_t for memory addresses.
41122
00c7a56a 41123 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
41124 explicitly to fix a warning.
41125
08d3ef09 41126 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
41127
cb71ba20 41128 * Makefile.in (MODULE_LDFLAGS): New variable.
41129 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
41130 the linker accepts --build-id=none.
41131 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
41132 MODULE_LDFLAGS.
41133 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
41134
d4c9b428 41135 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
41136 those in Linux XFS code. Provide a way to access 64-bit parent
41137 inode.
41138 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
41139 the end of struct grub_xfs_dir_header.
41140
d4156eee 411412008-07-02 Bean <bean123ch@gmail.com>
41142
41143 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
41144 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41145 and GRUB_IEEE1275_FLAG_NO_ANSI.
41146
41147 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
41148 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
41149 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
41150
41151 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
41152 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
41153
41154 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
41155 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
41156
41157 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
41158 esc sequence on non ANSI terminal.
41159 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
41160
41161 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
41162 beginning of file.
41163
2270f77b 411642008-07-02 Bean <bean123ch@gmail.com>
41165
41166 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
41167 (grub_editenv_SOURCES): New variable.
41168 (pkglib_MODULES): Add loadenv.mod.
41169 (loadenv_mod_SOURCES): New variable.
41170 (loadenv_mod_CFLAGS): Likewise.
41171 (loadenv_mod_LDFLAGS): Likewise.
41172
41173 * include/grub/envblk.h: New file.
41174
41175 * util/envblk.c: New file.
41176
41177 * util/grub-editenv.c: New file.
41178
41179 * commands/loadenv.c: New file.
41180
0e9e51ec 411812008-07-01 Pavel Roskin <proski@gnu.org>
41182
d89b7634 41183 * include/multiboot2.h (struct multiboot_tag_module): Use char,
41184 not unsigned char. This fixes warnings and is consistent with
41185 other tags.
41186
bf1835b1 41187 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
41188
8222a04b 41189 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
41190
6a42d99d 41191 * term/tparm.c (analyze): Always set *popcount.
41192
10b159d1 41193 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
41194 cast to fix a warning.
41195
b8789f6c 41196 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
41197 cast to suppress a warning.
41198
29d7e38a 41199 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
41200 grub_fshelp_read_file() expects.
41201
f341f669 41202 * fs/fat.c: Fix UUID calculation on big-endian systems. We
41203 write uuid as a 32-bit value in CPU byte order, so declare and
41204 use it as such.
41205
0e9e51ec 41206 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
41207 long if the format specifier expects it.
41208 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
41209 * partmap/pc.c (pc_partition_map_iterate): Likewise.
41210 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
41211 long to fix a warning.
41212 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
41213 grub_dprintf() arguments to fix warnings.
41214
3aefa857 412152008-06-30 Pavel Roskin <proski@gnu.org>
41216
56c7668b 41217 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
41218 install_bsd_part immediately before core.img is embedded or
41219 modified on disk. This fixes core.img verification if core.img
41220 cannot be embedded.
41221
3aefa857 41222 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
41223 core_path to calculate the blocklist.
41224 Patch from Javier Martín <lordhabbit@gmail.com>
41225
5444088d 412262008-06-29 Robert Millan <rmh@aybabtu.com>
41227
41228 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
41229 block to disk block.
41230 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
41231 Patch from Niels Böhm <bitbucket@arcor.de>
41232
674835c8 412332008-06-29 Robert Millan <rmh@aybabtu.com>
41234
41235 * util/update-grub_lib.in (font_path): Search for fonts in
41236 /boot/grub first, which is more likely to be readable (we aren't
41237 deciding where fonts live, just looking for them).
41238
f527dbc8 412392008-06-26 Pavel Roskin <proski@gnu.org>
41240
6c2d8df6 41241 * util/biosdisk.c (read_device_map): Don't leave dead map
41242 entries for devices failing stat() check.
41243
f527dbc8 41244 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
41245 core_path_dev for the core.img path on the target device.
41246
aebe3d13 412472008-06-26 Robert Millan <rmh@aybabtu.com>
41248
41249 * disk/fs_uuid.c: New file.
41250 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
41251 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
41252 (fs_uuid_mod_LDFLAGS): New variables.
41253 * include/grub/disk.h (grub_disk_dev_id): Add
41254 `GRUB_DISK_DEVICE_UUID_ID'.
41255 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
41256 implement iterate().
41257
37aaf354 412582008-06-26 Robert Millan <rmh@aybabtu.com>
41259
41260 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
41261 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
41262 Linux image includes no initrd.
41263
25ff262a 412642008-06-21 Javier Martín <lordhabbit@gmail.com>
41265
41266 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
41267 call to resolve the core image location that effectively appended the
41268 name twice.
41269
76a2bd44 412702008-06-21 Robert Millan <rmh@aybabtu.com>
41271
41272 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
41273 call from here ...
41274
41275 * util/grub.d/10_hurd.in: ... to here ...
41276 * util/grub.d/10_linux.in: ... and here.
41277
650e1c79 412782008-06-19 Robert Millan <rmh@aybabtu.com>
41279
fe987087 41280 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 41281 after it has been set by grub_machine_set_prefix().
41282
6ce63911 412832008-06-19 Robert Millan <rmh@aybabtu.com>
41284
41285 * commands/search.c (search_label, search_fs_uuid, search_file): Print
41286 search result when not saving to variable, not the other way around.
41287 When saving to variable, abort iteration as soon as a match is found.
41288
73940cec 412892008-06-19 Robert Millan <rmh@aybabtu.com>
41290
41291 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
41292 check for partition that provides /boot/grub. Its logic is flawed,
41293 as it prevents prepare_grub_to_access_device() from being called
41294 multiple times.
41295
3c62a39d 412962008-06-19 Robert Millan <rmh@aybabtu.com>
41297
41298 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
41299 "insmod" command directly when abstraction modules are needed,
fe987087 41300 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 41301 since it had already been processed).
41302
47395a42 413032008-06-19 Pavel Roskin <proski@gnu.org>
41304
41305 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
41306 changed. This is needed in case GRUB_LIBDIR changes.
41307 * conf/i386-ieee1275.rmk: Likewise.
41308 * conf/i386-linuxbios.rmk: Likewise.
41309 * conf/i386-pc.rmk: Likewise.
41310 * conf/powerpc-ieee1275.rmk: Likewise.
41311
a145ac2d 413122008-06-18 Pavel Roskin <proski@gnu.org>
41313
41314 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
41315 kernel_elf_symlist.c to symlist.c for consistency with other
41316 architectures. Update all users.
41317 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
41318
7847c51e 413192008-06-18 Robert Millan <rmh@aybabtu.com>
41320
41321 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
41322 it in prefix.
41323
41324 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
41325 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
41326 a RAID device, run setup() for all members independently on whether
41327 LVM abstraction is being used.
41328 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
41329 If grub-mkimage has set `*install_dos_part == -2', don't override this
41330 value.
41331 Perform *install_dos_part adjustments independently on whether
41332 we're embedding or not.
41333 Clarify error message when image is too big for embedding.
41334 Remove duplicate *install_dos_part stanza.
41335
b23e5644 413362008-06-17 Robert Millan <rmh@aybabtu.com>
41337
41338 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
41339 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
41340 variables.
41341 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
41342 values in grub_ofconsole_normal_color and
41343 grub_ofconsole_highlight_color (they're not directly related to
41344 background and foreground).
41345 (grub_ofconsole_setcolorstate): Extract background and foreground
41346 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
41347
0aac2f79 413482008-06-17 Robert Millan <rmh@aybabtu.com>
41349
41350 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
41351 /boot/grub for the check in last commit, not /boot (they could be
41352 different partitions).
41353
3cca7ef3 413542008-06-16 Robert Millan <rmh@aybabtu.com>
41355
41356 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
41357 asked to setup access for the same partition that provides /boot,
41358 don't bother using UUIDs since our root already has the value we
41359 want.
41360
347396d8 413612008-06-16 Robert Millan <rmh@aybabtu.com>
41362
41363 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
41364 I2O devices.
41365 Patch from Sven Mueller <sven@debian.org>.
41366
991477f8 413672008-06-16 Robert Millan <rmh@aybabtu.com>
41368
41369 * util/update-grub.in: Check for $EUID instead of $UID.
41370 Reported by Vincent Zweije.
41371
d31a32a1 413722008-06-16 Bean <bean123ch@gmail.com>
41373
fe987087 41374 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 41375 (grub_ext2_read_block): Likewise.
41376 (grub_ext2_read_inode): Likewise.
41377 (grub_ext2_mount): Likewise.
41378 (grub_ext2_close): Likewise.
41379 (grub_ext3_get_journal): Removed.
41380
fe987087 41381 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 41382 (grub_reiserfs_read_symlink): Likewise.
41383 (grub_reiserfs_mount): Likewise.
41384 (grub_reiserfs_open): Likewise.
41385 (grub_reiserfs_read): Likewise.
41386 (grub_reiserfs_close): Likewise.
41387 (grub_reiserfs_get_journal): Removed.
41388
41389 * fs/fshelp.c (grub_fshelp_read): Removed.
41390 (grub_fshelp_map_block): Likewise.
41391
41392 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
41393 (grub_fshelp_journal): Likewise.
41394 (grub_fshelp_read): Likewise.
41395 (grub_fshelp_map_block): Likewise.
41396
3540a760 413972008-06-16 Pavel Roskin <proski@gnu.org>
41398
41399 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
41400 floating point anymore.
41401 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
41402
95614c84 414032008-06-15 Pavel Roskin <proski@gnu.org>
41404
41405 * commands/ls.c (grub_ls_list_files): Use integer calculations
41406 for human readable format, avoid floating point use.
41407 * kern/misc.c (grub_ftoa): Remove.
41408 (grub_vsprintf): Remove floating point support.
41409
50465dd6 414102008-06-15 Robert Millan <rmh@aybabtu.com>
41411
fe6b695a 41412 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 41413 devices.
41414 Reported by Max Vozeler.
41415
a9207284 414162008-06-15 Robert Millan <rmh@aybabtu.com>
41417
41418 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
41419 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
41420 skipped later.
41421 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
41422 the beginning of the prefix.
41423
41424 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
41425 It is assumed that if we have a memdisk, grub-mkimage has set
41426 grub_prefix to include the "(memdisk)" drive in it.
41427
a7cbd45a 414282008-06-15 Robert Millan <rmh@aybabtu.com>
41429
41430 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
41431 Initialize keyboard controller after registering the terminal, so that
41432 grub_printf() can be called from grub_keyboard_controller_init().
41433
21cf716a 414342008-06-15 Robert Millan <rmh@aybabtu.com>
41435
41436 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
41437 extent-btree which is written as big endian on disk.
41438 Reported by Alain Greppin <al@chilibi.org>.
41439
23a64d8e 414402008-06-14 Robert Millan <rmh@aybabtu.com>
41441
41442 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
41443 * util/i386/pc/grub-install.in (modules): Likewise.
41444
d687651c 414452008-06-13 Pavel Roskin <proski@gnu.org>
41446
41447 * commands/ls.c (grub_ls_list_files): Fix format warnings.
41448
dfe9ddd4 414492008-06-13 Bean <bean123ch@gmail.com>
41450
41451 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
41452
41453 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
41454
41455 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
41456 to indicate sparse block.
41457
16ae7781 414582008-06-12 Pavel Roskin <proski@gnu.org>
41459
e6d1a308 41460 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
41461 number, grub_fshelp_read() does it for us.
41462
16ae7781 41463 * fs/fshelp.c (grub_fshelp_read): New function. Implement
41464 linear disk read with journal translation.
41465 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
41466 * include/grub/fshelp.h: Declare grub_fshelp_read().
41467
40fd3a2b 414682008-06-09 Pavel Roskin <proski@gnu.org>
41469
41470 * fs/minix.c (grub_minix_mount): Handle error reading
41471 superblock.
41472
f5679726 414732008-06-08 Robert Millan <rmh@aybabtu.com>
41474
41475 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
41476 don't append the RAID prefix afterwards.
41477 Reported by Clint Adams.
41478
ce525529 414792008-06-08 Robert Millan <rmh@aybabtu.com>
41480
41481 Based on description from Pavel:
41482 * kern/disk.c (grub_disk_check_range): Rename to ...
41483 (grub_disk_adjust_range): ... this. Add a comment explaining the
41484 tasks performed by this function.
41485
ad4936a0 414862008-06-08 Robert Millan <rmh@aybabtu.com>
41487
41488 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
41489 `num_serial' (for consistency with other variables).
41490 (struct grub_ntfs_data): Add `uuid' member.
41491 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
41492 (grub_ntfs_uuid): New function.
41493 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
41494
dc20b0f9 414952008-06-07 Pavel Roskin <proski@gnu.org>
41496
41497 * util/biosdisk.c (open_device): Revert last change to the
41498 function, it broke installation. The sector needs to be
41499 different dependent on which device is opened.
41500
c5e3cfba 415012008-06-06 Robert Millan <rmh@aybabtu.com>
41502
41503 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
41504 rest of GRUB, and breakage doesn't happen if its value were modified.
41505
41506 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
41507 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
41508 a constant (same value).
41509 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
41510 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
41511
26a1f8c4 415122008-06-06 Robert Millan <rmh@aybabtu.com>
41513
41514 * util/biosdisk.c (open_device): Do not modify sector offset when
41515 accessing a partition. kern/disk.c already handles this for us.
41516
25d6b327 415172008-06-06 Robert Millan <rmh@aybabtu.com>
41518
41519 * util/grub-emu.c (grub_machine_init): Move code in this function from
41520 here ...
41521 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
41522 segfault in case grub_printf() is called).
41523
41524 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
41525 grub_probe. Update all users not to explicitly add it again.
41526 (grub_device): New variable; contains corresponding device for grubdir.
41527 (fs_module, partmap_module, devabstraction_module): Pass
41528 `--device ${grub_device}' to grub_probe to avoid traversing /dev
41529 every time.
41530
9ece62fb 415312008-06-05 Robert Millan <rmh@aybabtu.com>
41532
41533 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
41534 is found, print it (same layout as with labels).
41535
1ad36d37 415362008-06-04 Robert Millan <rmh@aybabtu.com>
41537
41538 * util/biosdisk.c (get_drive): Rename to ...
41539 (find_grub_drive): ... this. Update all users.
41540
41541 (get_os_disk): Rename to ...
41542 (convert_system_partition_to_system_disk): ... this. Update all users.
41543
41544 (find_drive): Rename to ...
41545 (find_system_device): ... this. Update all users.
41546
e6a30859 415472008-06-04 Robert Millan <rmh@aybabtu.com>
41548
41549 * util/biosdisk.c (get_os_disk): Handle IDA devices.
41550 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41551 (make_device_map): Likewise.
41552
00c108a4 415532008-06-01 Robert Millan <rmh@aybabtu.com>
41554
41555 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
41556 before dereferencing it.
41557
41558 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
41559 union with fat12/fat16-specific ones. Add some new fields, including
41560 `num_serial' for both versions.
41561 (struct grub_fat_data): Add `uuid' member.
41562 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
41563 names. Initialize `data->uuid' using `num_serial'.
41564 (grub_fat_uuid): New function.
41565 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
41566
41567 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
41568 (grub_reiserfs_uuid): New function.
41569 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
41570 member.
41571
41572 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
41573 (grub_xfs_uuid): New function.
41574 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
41575
1385c5bb 415762008-06-01 Robert Millan <rmh@aybabtu.com>
41577
41578 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
41579 code that is backward compatible with pre-uuid search command.
41580
c682dfd7 415812008-05-31 Robert Millan <rmh@aybabtu.com>
41582
41583 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
41584 floppies after everything else, to ensure floppy drive isn't accessed
41585 unnecessarily (patch from Bean).
41586
b7db5d47 415872008-05-31 Robert Millan <rmh@aybabtu.com>
41588
41589 * commands/search.c (search_label, search_fs_uuid, search_file): Do
41590 not print device names when we were asked to set a variable.
41591
6e037aa9 415922008-05-31 Robert Millan <rmh@aybabtu.com>
41593
41594 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
41595 using "cursor-on" and "cursor-off" commands (understood at least by
41596 the Open Firmware flavour on OLPC).
41597
41305bc8 415982008-05-31 Michael Gorven <michael@gorven.za.net>
41599
41600 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
41601 on and off sequences.
41602
69ba137e 416032008-05-31 Robert Millan <rmh@aybabtu.com>
41604
41605 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
41606 * util/update-grub.in: Likewise.
41607
520ae21b 416082008-05-30 Pavel Roskin <proski@gnu.org>
41609
41610 * util/biosdisk.c (linux_find_partition): Simplify logic and
41611 make the code more universal. Keep special processing for
41612 devfs, but use a simple rule for all other devices. If the
41613 device ends with a number, append 'p' and the partition number.
41614 Otherwise, append only the partition number.
41615
5786569b 416162008-05-30 Robert Millan <rmh@aybabtu.com>
41617
41618 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
41619 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
41620 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
41621 the `root' parameter to Linux.
41622
51500452 416232008-05-30 Robert Millan <rmh@aybabtu.com>
41624
41625 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
41626 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
41627 --fs_uuid with --fs-uuid.
41628 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
41629 all filesystems support them).
41630
811d3878 416312008-05-30 Robert Millan <rmh@aybabtu.com>
41632
41633 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 41634 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 41635
cab63c95 416362008-05-30 Robert Millan <rmh@aybabtu.com>
41637
41638 * util/grub.d/00_header.in: Remove obsolete comment referencing
41639 convert_system_path_to_grub_path().
41640 * util/update-grub.in: Likewise.
41641 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
41642 (convert_system_path_to_grub_path): Add a warning message explaining
41643 that this function is deprecated. Rely on is_path_readable_by_grub()
41644 for the readability checks.
41645 (font_path): Use is_path_readable_by_grub() for the readability
41646 check rather than convert_system_path_to_grub_path().
41647
972e2f7a 416482008-05-30 Robert Millan <rmh@aybabtu.com>
41649
41650 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
41651 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
41652 converting it first.
41653 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
41654 grub.cfg for access to font file, and afterwards call it again to set
41655 the root device.
41656
62191274 416572008-05-30 Robert Millan <rmh@aybabtu.com>
41658
41659 * commands/search.c (options): Add --fs_uuid option.
41660 (search_fs_uuid): New function.
41661 (grub_cmd_search): Fix --set argument passing.
41662 Use search_fs_uuid() when requested via --fs_uuid.
41663 (grub_search_init): Update help message.
41664 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
41665 and redeclare it as an array of 16-bit words.
41666 (grub_ext2_uuid): New function.
41667 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
41668 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
41669 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
41670 (GRUB_DEVICE_BOOT_UUID): New variables.
41671 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
41672 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
41673 whenever possible.
41674 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
41675 just assume `root' variable has the right value.
41676 * util/grub.d/10_linux.in: Likewise.
41677 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
41678 via PRINT_FS_UUID.
41679 (main): Recognise `-t fs_uuid' argument.
41680
01b73ec8 416812008-05-30 Robert Millan <rmh@aybabtu.com>
41682
41683 * util/biosdisk.c (map): Redefine structure to hold information
41684 about GRUB drive name.
fe6b695a 41685 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 41686 drive names.
41687 (call_hook): Remove.
41688 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
41689 member. Assume drive has partitions.
41690 (grub_util_biosdisk_open): Access device names via `.device' struct
41691 member.
41692 (open_device): Likewise.
41693 (find_drive): Likewise.
41694 (read_device_map): Adjust map[] usage to match the new struct
41695 definition. Don't check for duplicates (still possible, but not cheap
41696 anymore).
41697 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
41698 (make_device_name): Remove assumption of BIOS-like drive names.
41699
22f16596 417002008-05-30 Pavel Roskin <proski@gnu.org>
41701
41702 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
41703 compiling execute.c doesn't need grub_script.tab.h anymore.
41704 (normal/command.c_DEPENDENCIES): Likewise.
41705 (normal/function.c_DEPENDENCIES): Likewise.
41706 * conf/i386-ieee1275.rmk: Likewise.
41707 * conf/i386-linuxbios.rmk: Likewise.
41708 * conf/i386-pc.rmk: Likewise.
41709 * conf/powerpc-ieee1275.rmk: Likewise.
41710 * conf/sparc64-ieee1275.rmk: Likewise.
41711
528ad8f2 417122008-05-29 Pavel Roskin <proski@gnu.org>
41713
d1dff95d 41714 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
41715 when scanning metadata for volume group name.
41716
528ad8f2 41717 * include/grub/script.h: Don't include grub_script.tab.h. It's
41718 a generated file, which may only be included from the files with
41719 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
41720 use union YYSTYPE, as the later allows forward declaration.
41721 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
41722
47248e08 417232008-05-29 Robert Millan <rmh@aybabtu.com>
41724
41725 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
41726 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
41727 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
41728 (grub_console_checkkey): Add grub_dprintf() call to report unknown
41729 scan codes.
41730
ee632529 417312008-05-29 Robert Millan <rmh@aybabtu.com>
41732
41733 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
41734 control key combinations.
41735
eee96e08 417362008-05-29 Robert Millan <rmh@aybabtu.com>
41737
41738 * util/powerpc/ieee1275/grub-install.in: Move from here ...
41739 * util/ieee1275/grub-install.in: ... to here.
41740 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
41741 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
41742 (grub_install_SOURCES): Likewise.
41743
da9a6a94 417442008-05-29 Robert Millan <rmh@aybabtu.com>
41745
41746 * fs/affs.c: Update copyright year.
41747 * fs/ext2.c: Likewise.
41748 * fs/fshelp.c: Likewise.
41749 * fs/hfsplus.c: Likewise.
41750 * fs/ntfs.c: Likewise.
41751 * fs/xfs.c: Likewise.
41752 * include/grub/fshelp.h: Likewise.
41753 * util/grub-mkdevicemap.c: Likewise.
41754
12e65f3a 417552008-05-28 Robert Millan <rmh@aybabtu.com>
41756
41757 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
41758 might need to be fatfs to support some firmware implementations
41759 (e.g. OFW or EFI).
41760
23023641 417612008-05-28 Robert Millan <rmh@aybabtu.com>
41762
41763 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
41764 devices.
41765 * util/grub-mkdevicemap.c (get_mmc_disk_name)
41766 (make_device_map): Likewise.
41767
887d2619 417682008-05-20 Bean <bean123ch@gmail.com>
41769
41770 * fs/fshelp.c (grub_fshelp_map_block): New function.
41771 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
41772 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
41773
41774 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
41775 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
41776 (grub_fshelp_journal): New structure.
41777 (grub_fshelp_map_block): New function prototype.
41778 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
41779 (grub_fshelp_map_block): Likewise.
41780
41781 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
41782 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
41783 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
41784 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
41785 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
41786 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
41787 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
41788 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
41789 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
41790 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
41791 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
41792 (grub_ext2_sblock): New members for journal support.
41793 (grub_ext3_journal_header): New structure.
41794 (grub_ext3_journal_revoke_header): Likewise.
41795 (grub_ext3_journal_block_tag): Likewise.
41796 (grub_ext3_journal_sblock): Likewise.
41797 (grub_fshelp_node): New members logfile and journal.
41798 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
41799 grub_fshelp_map_block to get real block number.
41800 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
41801 number.
41802 (grub_ext2_read_inode): Likewise.
41803 (grub_ext3_get_journal): New function.
41804 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
41805 (grub_ext2_close): Release memory used by journal.
41806
41807 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
41808 (REISERFS_MAGIC_DESC_BLOCK): New macro.
41809 (grub_reiserfs_transaction_header): Renamed to
41810 grub_reiserfs_description_block, replace field data with real_blocks.
41811 (grub_reiserfs_commit_block): New structure.
41812 (grub_reiserfs_data): New member journal.
41813 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
41814 number.
41815 (grub_reiserfs_read_symlink): Likewise.
41816 (grub_reiserfs_iterate_dir): Likewise.
41817 (grub_reiserfs_open): Likewise.
41818 (grub_reiserfs_read): Likewise.
41819 (grub_reiserfs_get_journal): New function.
41820 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
41821 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
41822 using grub_reiserfs_get_journal.
41823 (grub_reiserfs_close): Release memory used by journal.
41824
41825 * fs/affs.c (grub_affs_read_block): Change block type to
41826 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
41827
41828 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
41829
41830 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
41831
41832 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
41833
41834 * fs/udf.c (grub_udf_read_block): Change block type to
41835 grub_disk_addr_t. Use type cast to avoid warning.
41836
41837 * fs/xfs.c (grub_xfs_read_block): Likewise.
41838
b7c6bed5 418392008-05-16 Christian Franke <franke@computer.org>
41840
41841 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
41842 to ensure that break with ESC will always work.
41843 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
41844 Remove ESC from keyboard queue.
41845
eedf167f 418462008-05-16 Christian Franke <franke@computer.org>
41847
41848 * util/biosdisk.c: [__CYGWIN__] Add includes.
41849 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
41850 (get_os_disk): Move variable declarations to OS specific
41851 parts to avoid warning.
41852 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
41853 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
41854 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
41855 Cygwin.
41856 * util/getroot.c: [__CYGWIN__] Add includes.
41857 (strip_extra_slashes): Fix "/" case.
41858 [__CYGWIN__] (get_win32_path): New function.
41859 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
41860 [__CYGWIN__] (find_root_device): Disable.
41861 [__CYGWIN__] (get_bootsec_serial): New function.
41862 [__CYGWIN__] (find_cygwin_root_device): Likewise.
41863 [__linux__] (grub_guess_root_device): Add early returns to simplify
41864 structure.
41865 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
41866 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
41867 check for Linux only.
41868
a079699e 418692008-05-15 Bean <bean123ch@gmail.com>
41870
41871 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
41872 keyboard hang problem in apple's intel mac.
41873
1cf4059a 418742008-05-09 Robert Millan <rmh@aybabtu.com>
41875
41876 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
41877 devices.
41878 * util/grub-mkdevicemap.c (get_virtio_disk_name)
41879 (make_device_map): Likewise.
41880 Reported by Aurelien Jarno <aurel32@debian.org>
41881
ed759390 418822008-05-07 Ian Campbell <ijc@hellion.org.uk>
41883
41884 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
41885 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
41886 (make_device_map): Output entries for xvd type disks.
41887
b56c4eaa 418882008-05-07 Robert Millan <rmh@aybabtu.com>
41889
41890 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
41891 devices.
41892 * util/grub-mkdevicemap.c (get_cciss_disk_name)
41893 (make_device_map): Likewise.
41894 Reported by Roland Dreier <rdreier@cisco.com>
41895
7f8866ed 418962008-05-07 Robert Millan <rmh@aybabtu.com>
41897
41898 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
41899 grub_strstr() call. Correct a few mistakes in failure path handling.
41900
b0346e0f 419012008-05-06 Robert Millan <rmh@aybabtu.com>
41902
41903 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
41904 Do not print a trailing slash (therefore, the root directory is an
41905 empty string).
41906 (convert_system_path_to_grub_path): Do not remove trailing slash
41907 from make_system_path_relative_to_its_root() output.
41908
41909 * util/i386/pc/grub-install.in: Add trailing slash to output from
41910 make_system_path_relative_to_its_root().
41911
6cf12cbd 419122008-05-06 Robert Millan <rmh@aybabtu.com>
41913
41914 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
41915 ensures that output lines aren't intermangled with those sent to
41916 stderr (via grub_util_info()).
41917 * util/grub-probe.c (grub_refresh): Likewise.
41918 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
41919
0fbb3117 419202008-05-05 Christian Franke <franke@computer.org>
41921
41922 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
41923 Add Cygwin device names.
41924 (get_ide_disk_name) [__CYGWIN__]: Likewise.
41925 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
41926 (check_device): Return error instead of success on empty name.
41927 (make_device_map): Move label inside linux specific code to
41928 prevent compiler warning.
41929
8124cdb7 419302008-04-30 Robert Millan <rmh@aybabtu.com>
41931
41932 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
41933 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
41934 first boot option.
41935 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
41936
094c01d0 419372008-04-29 Robert Millan <rmh@aybabtu.com>
41938
41939 * docs/grub.cfg: New file (example GRUB configuration).
41940
f4b1fc02 419412008-04-26 Robert Millan <rmh@aybabtu.com>
41942
329ce2a5 41943 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
41944 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
41945 and `disk/ieee1275/nand.c'.
f4b1fc02 41946
25f16ec1 419472008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 41948
25f16ec1 41949 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
41950 i386-linuxbios.
41951
41952 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
41953 change the buffer size to 4096 for cdrom device.
41954
41955 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
41956 and nand.mod.
41957 (_linux_mod_SOURCES): New variable.
41958 (_linux_mod_CFLAGS): Likewise.
41959 (_linux_mod_LDFLAGS): Likewise.
41960 (linux_mod_SOURCES): Likewise.
41961 (linux_mod_CFLAGS): Likewise.
41962 (linux_mod_LDFLAGS): Likewise.
41963 (nand_mod_SOURCES): Likewise.
41964 (nand_mod_CFLAGS): Likewise.
41965 (nand_mod_LDFLAGS): Likewise.
41966
41967 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
41968 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
41969 type property. (nand device in olpc don't have this property)
41970
41971 * include/grub/disk.h (grub_disk_dev_id): New macro
41972 GRUB_DISK_DEVICE_NAND_ID.
41973
41974 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
41975 function prototype.
41976 (grub_rescue_cmd_initrd): Likewise.
41977
41978 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
41979 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
41980 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 41981
25f16ec1 41982 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
41983 GRUB_MACHINE_IEEE1275 is defined.
41984
41985 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
41986 Use NESTED_FUNC_ATTR attribute on the hook parameter.
41987
41988 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
41989 on nested function heap_init.
41990 (grub_upper_mem): New variable for i386-ieee1275.
41991 (grub_get_extended_memory): New function for i386-ieee1275.
41992 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
41993
41994 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
41995 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
41996 property.
f19dbdb7 41997
25f16ec1 41998 * loader/i386/ieee1275/linux.c: New file.
41999
42000 * loader/i386/ieee1275/linux_normal.c: New file.
42001
42002 * disk/ieee1275/nand.c: New file.
42003
e89d61e9 420042008-04-18 Thomas Schwinge <tschwinge@gnu.org>
42005
42006 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
42007 value.
42008 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
42009
602566f6 420102008-04-18 Robert Millan <rmh@aybabtu.com>
42011
42012 Restructures early code path on ieee1275 to unify grub_main() as
42013 the first C function that is executed in every platform.
42014
42015 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
42016 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
42017 cmain().
42018 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
42019 * kern/ieee1275/cmain.c (cmain): Rename to ...
42020 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
42021 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
42022 at the beginning.
42023
57490c2b 420242008-04-18 Robert Millan <rmh@aybabtu.com>
42025
42026 * util/update-grub.in: Fix syntax error when setting
42027 `GRUB_PRELOAD_MODULES'.
42028 Reported by Stephane Chazelas <stephane@artesyncp.com>
42029
1977517d 420302008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
42031
42032 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
42033 section into account, newer toolchains generate unique build ids
42034 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 42035 we want build ids to be preserved
1977517d 42036 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
42037 far from other sections don't cause the raw binary images grow
42038 size
42039
bfb1f1a2 420402008-04-15 Robert Millan <rmh@aybabtu.com>
42041
42042 * disk/lvm.c: Update copyright year.
42043 * kern/misc.c: Likewise.
42044
01979850 420452008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42046
42047 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 42048 there is no memory left for physical volume name.
01979850 42049
0a1150e2 420502008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
42051
42052 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
42053 volume name mapping to support bigger than 9 character names properly.
42054
82ead3fe 420552008-04-13 Robert Millan <rmh@aybabtu.com>
42056
42057 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
42058 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
42059
e54a72f5 420602008-04-13 Christian Franke <franke@computer.org>
42061
42062 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
42063 to create a floppy emulation boot CD when non emulation mode
42064 does not work.
42065 Enable Joliet CD filesystem extension.
42066
9fe86034 420672008-04-13 Robert Millan <rmh@aybabtu.com>
42068
42069 * kern/misc.c (grub_strncat): Fix off-by-one error.
42070 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
42071
42072 * kern/env.c (grub_env_context_close): Clear current context, not
42073 previous one.
42074 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
42075
42076 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
42077
7ceeee39 420782008-04-13 Robert Millan <rmh@aybabtu.com>
42079
42080 Improve robustness when handling LVM.
42081
42082 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 42083 (and leave `*p' unmodified).
7ceeee39 42084 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
42085 through it.
42086 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
42087 iterating through it.
42088 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
42089 through it.
fe6b695a 42090 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 42091 when due) on each grub_lvm_getvalue() or grub_strstr() call.
42092 Don't assume `vg->pvs != NULL' when iterating through it.
42093
58cd3d85 420942008-04-13 Robert Millan <rmh@aybabtu.com>
42095
42096 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
42097 * genmk.rb (partmap): New variable.
42098 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
42099 (#{partmap}): New target rule.
42100 * genpartmaplist.sh: New file.
42101 * Makefile.in (pkglib_DATA): Add partmap.lst.
42102 (partmap.lst): New target rule.
42103 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
42104 modules (including all partition maps), instead of preloading them.
42105
78b51059 421062007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
42107
42108 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
42109 `linux-boot-prober' (if installed) to detect other operating
42110 systems which are installed on the computer and add them to
42111 the boot menu.
42112 * conf/common.rmk: Build and install 30_os-prober.
42113
a91627b4 421142008-04-12 Robert Millan <rmh@aybabtu.com>
42115
42116 * kern/powerpc/ieee1275/init.c: Move from here ...
42117 * kern/ieee1275/init.c: ... to here. Update all users.
42118
42119 * kern/powerpc/ieee1275/cmain.c: Move from here ...
42120 * kern/ieee1275/cmain.c: ... to here. Update all users.
42121
42122 * kern/powerpc/ieee1275/openfw.c: Move from here ...
42123 * kern/ieee1275/openfw.c: ... to here. Update all users.
42124
42125 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
42126 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
42127
322562ea 421282008-04-10 Pavel Roskin <proski@gnu.org>
42129
42130 * configure.ac: Always use "_cv_" in cache variables for
42131 compatibility with Autoconf 2.62.
42132
a02a73c5 421332008-04-07 Robert Millan <rmh@aybabtu.com>
42134
42135 Revert grub/machine/init.h addition by Pavel (since it breaks on
42136 i386-ieee1275 and others):
42137 * util/i386/pc/misc.c: Remove grub/machine/init.h.
42138 * util/powerpc/ieee1275/misc.c: Likewise.
42139
25c024b1 421402008-04-07 Robert Millan <rmh@aybabtu.com>
42141
42142 * util/grub-probe.c (probe): Improve error message.
42143
3cbd2f98 421442008-04-07 Robert Millan <rmh@aybabtu.com>
42145
42146 * util/biosdisk.c (read_device_map): Skip devices that don't exist
42147 (this prevents the presence of a bogus entry from ruining the whole
42148 thing).
42149
87a297bf 421502008-04-06 Pavel Roskin <proski@gnu.org>
42151
36747a62 42152 * util/biosdisk.c: Include grub/util/biosdisk.h.
42153 * util/grub-fstest.c (execute_command): Make static.
42154 * util/grub-mkdevicemap.c (check_device): Likewise.
42155 * util/i386/pc/misc.c: Include grub/machine/init.h.
42156 * util/powerpc/ieee1275/misc.c: Likewise.
42157 * util/lvm.c: Include grub/util/lvm.h.
42158 * util/misc.c: Include grub/kernel.h, grub/misc.h and
42159 grub/cache.h.
42160 * util/raid.c: Include grub/util/raid.h.
42161 (grub_util_getdiskname): Make static.
42162
87a297bf 42163 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
42164 grub_hostfs_fini(), as they are called from grub_init_all() and
42165 grub_fini_all() respectively. This fixes an infinite loop in
42166 grub-fstest due to double registration of hostfs.
42167 Reported by Christian Franke <Christian.Franke@t-online.de>
42168
f6ce7629 421692008-04-05 Pavel Roskin <proski@gnu.org>
42170
42171 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
42172 all 8 functions. Otherwise, probe function 0 only.
42173
070e49e4 421742008-04-04 Pavel Roskin <proski@gnu.org>
42175
8b088a4c 42176 * commands/lspci.c (grub_lspci_iter): Print the bus number
42177 correctly.
42178
4f657021 42179 * commands/lspci.c (grub_pci_classes): Fix typos.
42180 (grub_lspci_iter): Don't print func twice. Print vendor ID
42181 before device ID, as it's normally done.
42182
070e49e4 42183 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
42184 Fix signedness warnings.
42185 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
42186 Likewise.
42187 * util/ieee1275/get_disk_name.c: Include config.h so that
42188 _GNU_SOURCE is defined and getline() is declared. Mark an
42189 unused argument as such. Fix a signedness warning.
42190
ba7328dc 421912008-04-02 Pavel Roskin <proski@gnu.org>
42192
26887f22 42193 * genkernsyms.sh.in: Use more robust assignments for CC and
42194 srcdir. Quote srcdir.
42195 * gensymlist.sh.in: Likewise. Assert at the compile time that
42196 the symbol table is not empty.
42197
ba7328dc 42198 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
42199 * fs/cpio.c (grub_cpio_read): Likewise.
42200
0f582c6b 422012008-04-01 Pavel Roskin <proski@gnu.org>
42202
4b6e1995 42203 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
42204 * disk/host.c (grub_host_open): Likewise.
42205 * disk/loopback.c (grub_loopback_open): Likewise.
42206 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
42207 disk->id as in disk/host.c, not a multi-character constant.
42208
828a2768 42209 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
42210 later is obsolete, potentially dangerous and sets a bad example.
42211 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
42212 * util/misc.c (grub_util_get_image_size): Likewise.
42213
2bb4fb47 42214 * disk/loopback.c (options): Improve help for "--partitions".
42215
0f582c6b 42216 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
42217 options to align them with the short options, e.g. "echo -e".
42218
a33224e0 422192008-03-31 Bean <bean123ch@gmail.com>
42220
42221 * video/reader/png.c (grub_png_data): New member is_16bit and
42222 image_data.
42223 (grub_png_decode_image_header): Detect 16 bit png image.
42224 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
42225 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
42226 (grub_video_reader_png): Release memory occupied by image_data.
42227
42228 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
42229 4096 bytes.
42230 (grub_nfs_mount): Skip the test for sector per cluster.
42231
42232 * include/grub/ntfs.h (MAX_SPC): Removed.
42233
86cb4f54 422342008-03-31 Bean <bean123ch@gmail.com>
42235
42236 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
42237 (grub_probe_SOURCES): Add fs/afs.c.
42238 (grub_fstest_SOURCES): Likewise.
42239 (afs_mod_SOURCES): New variable.
42240 (afs_mod_CFLAGS): Likewise.
42241 (afs_mod_LDFLAGS): Likewise.
42242
42243 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
42244 (grub_emu_SOURCES): Likewise.
42245
42246 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42247
42248 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42249
42250 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42251
42252 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42253
42254 * fs/afs.c: New file.
42255
17c74c21 422562008-03-30 Pavel Roskin <proski@gnu.org>
42257
4cb68e89 42258 * disk/host.c: Include grub/misc.h to fix a warning.
42259 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
42260 warnings about implicit declarations.
42261
8790bb04 42262 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
42263 variable.
42264 * include/grub/i386/loader.h: Change declaration of
42265 grub_linux_boot() to match what grub_loader_set() expects.
42266 * util/getroot.c (grub_guess_root_device): Return const char* to
42267 fix a warning.
42268 * util/grub-probe.c (probe): Fix a warning about uninitialized
42269 abstraction_name variable.
42270 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
42271 second argument as unused to fix a warning.
42272
9a3f3296 42273 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
42274 missing grub_error() call.
42275
0ecef90d 42276 * util/update-grub_lib.in: Define datarootdir, since Autoconf
42277 2.60 and newer uses it to define datadir.
42278
0bf6d401 42279 * commands/sleep.c: Fix warning about implicit declaration.
42280 * disk/memdisk.c: Likewise.
42281 * loader/aout.c: Likewise.
42282 * loader/i386/bsd_normal.c: Likewise.
42283 * util/grub-probe.c: Likewise.
42284
7cdacf97 42285 * commands/i386/cpuid.c (has_longmode): Make static.
42286 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
42287 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
42288
17c74c21 42289 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
42290 GDT. This is more robust, as %ds can change.
42291 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
42292 calling real_to_prot().
42293 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
42294
80a3e68b 422952008-03-28 Pavel Roskin <proski@gnu.org>
42296
42297 * kern/i386/pc/startup.S: Assert that uncompressed functions
42298 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
42299 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
42300 code, as they push parts of the code (error handlers) beyond
42301 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
42302 code as correctness and size.
42303
77bcd272 423042008-03-28 Pavel Roskin <proski@gnu.org>
42305
42306 * kern/i386/pc/startup.S
42307 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
42308 data block address to the real mode, keep offset minimal. This
42309 works around a bug in AWARD BIOS on old Athlon systems, which
42310 makes CD detection hang.
42311
c5dfd43b 423122008-03-26 Pavel Roskin <proski@gnu.org>
42313
42314 * normal/color.c (grub_parse_color_name_pair): Make `name' a
42315 const.
42316 * include/grub/normal.h: Add grub_parse_color_name_pair()
42317 declaration.
42318
bf962df2 423192008-03-24 Bean <bean123ch@gmail.com>
42320
42321 * disk/i386/pc/biosdisk.c (cd_start): Removed.
42322 (cd_count): Removed.
42323 (cd_drive): New variable.
42324 (grub_biosdisk_get_drive): Don't check for (cdN) device.
42325 (grub_biosdisk_call_hook): Likewise.
42326 (grub_biosdisk_iterate): Change cdrom detection method.
42327 (grub_biosdisk_open): Replace cd_start with cd_drive.
42328 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
42329 detect cdrom device.
42330
42331 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
42332 Removed.
42333 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
42334 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
42335 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
42336 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
42337 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
42338 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
42339 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
42340 (grub_biosdisk_cdrp): New structure.
42341 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
42342
42343 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
42344
42345 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
42346 device.
42347
42348 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
42349 New function.
42350
68e7fc7a 423512008-03-20 Robert Millan <rmh@aybabtu.com>
42352
42353 Remove 2 TiB limit in ata.mod.
42354 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
42355 (grub_ata_dumpinfo): Print sector count with 0x%llx.
42356 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
42357 grub_uint64_t instead of grub_uint32_t.
42358
38ad2cf5 423592008-03-05 Bean <bean123ch@gmail.com>
42360
42361 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
42362 (grub_multiboot): Set boot device.
42363
42364 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
42365
2b89344e 423662008-03-02 Bean <bean123ch@gmail.com>
42367
42368 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
42369 symlink_buffer.
42370
87a95d1f 423712008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
42372
42373 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
42374 texinfo.tex.
42375
42376 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
42377 modified.
42378
42379 * docs/fdl.texi: New file.
f19dbdb7 42380
87a95d1f 42381 * docs/mdate-sh: New file. Copied from gnulib.
42382 * docs/texinfo.tex: Likewise.
42383
42384 * config.guess: Updated from gnulib.
42385 * install-sh: Likewise.
42386
7dc15d8e 423872008-02-28 Robert Millan <rmh@aybabtu.com>
42388
42389 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
42390 (aout_mod_SOURCES): New variable.
42391 (aout_mod_CFLAGS): Likewise.
42392 (aout_mod_LDFLAGS): Likewise.
42393
42394 * conf/i386-ieee1275.rmk: Likewise.
42395
b00ab696 423962008-02-28 Robert Millan <rmh@aybabtu.com>
42397
42398 * util/update-grub.in: Reorganise terminal validity check. Accept
42399 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
42400 Based on suggestion by Franklin PIAT.
42401
79ca2d78 424022008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
42403
42404 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
42405 function.
42406 * util/getroot.c (grub_util_check_block_device): New function that
42407 returns the given argument if it is a block device and returns NULL else.
42408 * util/grub-probe.c (argument_is_device): New variable.
42409 (probe): Promote device_name from a variable to an argument. Receive
42410 device_name from grub_util_check_block_device() if path is NULL and from
42411 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 42412 (options): Introduce new parameter '-d, --device'.
79ca2d78 42413 (main): Add description of the new parameter to the help screen.
42414 Rename path variable to argument. Set argument_is_device if the '-d'
42415 option is given. Pass argument to probe() depending on
42416 argument_is_device.
42417
0d16e571 424182008-02-24 Bean <bean123ch@gmail.com>
42419
42420 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
42421 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
42422 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
42423 (GRUB_ISO9660_VOLDESC_PART): Likewise.
42424 (GRUB_ISO9660_VOLDESC_END): Likewise.
42425 (grub_iso9660_primary_voldesc): New member escape.
42426 (grub_iso9660_data): New member joliet.
42427 (grub_iso9660_convert_string): New function.
42428 (grub_iso9660_mount): Detect joliet extension.
42429 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
42430 (grub_iso9660_iso9660_label): Likewise.
42431
42432 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
42433 (grub_setup_SOURCES): Add fs/udf.c.
42434 (grub_fstest_SOURCES): Likewise.
42435 (udf_mod_SOURCES): New variable.
42436 (udf_mod_CFLAGS): Likewise.
42437 (udf_mod_LDFLAGS): Likewise.
42438
42439 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
42440 (grub_emu_SOURCES): Likewise.
42441
42442 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
42443
42444 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42445
42446 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42447
42448 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42449
42450 * fs/udf.c: New file.
42451
8a594a17 424522008-02-24 Robert Millan <rmh@aybabtu.com>
42453
42454 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
42455 (normal/lexer.c_DEPENDENCIES): New variables.
42456 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42457 (normal/lexer.c_DEPENDENCIES): Likewise.
42458 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
42459 (normal/lexer.c_DEPENDENCIES): Likewise.
42460 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
42461 (normal/lexer.c_DEPENDENCIES): Likewise.
42462 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42463 (normal/lexer.c_DEPENDENCIES): Likewise.
42464 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
42465 (normal/lexer.c_DEPENDENCIES): Likewise.
42466
2dc33c03 424672008-02-23 Robert Millan <rmh@aybabtu.com>
42468
42469 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
42470 since they were intended to be in hex. This didn't break previously
42471 because of a bug in gpt_partition_map_iterate() (see below).
42472
42473 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
42474 when checking the validity of GPT header.
42475 Remove `partno', since it always provides the same information as `i'.
42476
f6f4cfb0 424772008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
42478
42479 * include/grub/efi/time.h: Fix a wrong comment.
42480
79ff665f 424812008-02-19 Pavel Roskin <proski@gnu.org>
42482
42483 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
42484 message.
42485
d38e24c2 424862008-02-19 Bean <bean123ch@gmail.com>
42487
42488 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
42489 (aout_mod_SOURCES): New variable.
42490 (aout_mod_CFLAGS): Likewise.
42491 (aout_mod_LDFLAGS): Likewise.
42492 (_bsd_mod_SOURCES): New variable.
42493 (_bsd_mod_CFLAGS): Likewise.
42494 (_bsd_mod_LDFLAGS): Likewise.
42495 (bsd_mod_SOURCES): New variable.
42496 (bsd_mod_CFLAGS): Likewise.
42497 (bsd_mod_LDFLAGS): Likewise.
42498
42499 * include/grub/aout.h: New file.
42500
42501 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
42502
42503 * include/grub/i386/bsd.h: New file.
42504
42505 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
42506 to make it public.
42507
42508 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
42509 function is called, so that it's possible to change it inside the hook.
42510 (grub_elf64_load): Likewise.
42511 (grub_elf_file): Don't close the file if elf header is not found.
42512 (grub_elf_close): Close the file if grub_elf_file fails (The new
42513 grub_elf_file won't close it).
42514 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
42515 (grub_elf64_size): Likewise.
42516
42517 * kern/i386/loader.S (grub_unix_real_boot): New function.
42518
42519 * loader/aout.c: New file.
42520
42521 * loader/i386/bsd.c: New file.
42522
42523 * loader/i386/bsd_normal.c: New file.
42524
42525 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
42526
42527 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 42528 can test other formats.
d38e24c2 42529
b93bdb0f 425302008-02-19 Robert Millan <rmh@aybabtu.com>
42531
42532 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
42533 (grub_gpt_partition_type_empty): Redefine with macro from
42534 `<grub/gpt_partition.h>'.
42535 (gpt_partition_map_iterate): Adjust partition type comparison.
42536
42537 Export `entry' as partmap-specific `part.data' struct.
42538 (grub_gpt_header, grub_gpt_partentry): Move from here ...
42539
42540 * include/grub/gpt_partition.h (grub_gpt_header)
42541 (grub_gpt_partentry): ... to here (new file).
42542
42543 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
42544
42545 (grub_gpt_partition_type_bios_boot): New const variable, defined
42546 with macro from `<grub/gpt_partition.h>'.
42547
42548 (setup): Replace `first_start' with `embed_region', which keeps
42549 track of the embed region (and is partmap-agnostic).
42550
42551 Replace find_first_partition_start() with find_usable_region(),
42552 which finds a usable region for embedding using partmap-specific
42553 knowledge (supports PC/MSDOS and GPT).
42554
42555 Fix all assumptions that the embed region start at sector 1, using
42556 `embed_region.start' from now on. Similarly, use `embed_region.end'
42557 rather than `first_start' to calculate available size.
42558
42559 In grub_util_info() message, replace "into after the MBR" with an
42560 indication of the specific sector our embed region starts at.
42561
66cb40f6 425622008-02-19 Robert Millan <rmh@aybabtu.com>
42563
42564 * DISTLIST: Replace `commands/ieee1275/halt.c' and
42565 `commands/ieee1275/reboot.c' with `commands/halt.c' and
42566 `commands/reboot.c'.
42567 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42568 (halt_mod_SOURCES): Likewise.
42569 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
42570 (halt_mod_SOURCES): Likewise.
42571
b7202015 425722008-02-17 Christian Franke <franke@computer.org>
42573
42574 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
42575
32b0fc49 425762008-02-17 Robert Millan <rmh@aybabtu.com>
42577
42578 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42579 set `first_start' to 0 for non-PC/MSDOS partition maps.
42580
aca63502 425812008-02-16 Robert Millan <rmh@aybabtu.com>
42582
42583 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
42584 do not assume partition map is PC/MSDOS before performing checks that
42585 are specific to that layout.
42586
0de8be86 425872008-02-13 Robert Millan <rmh@aybabtu.com>
42588
42589 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
42590 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
42591 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
42592
c3db8364 425932008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
42594
42595 * configure.ac: Only a cosmetic change on the handling of
42596 -fno-stack-protector.
42597
f714229e 425982008-02-12 Alexandre Boeglin <alex@boeglin.org>
42599
c3db8364 42600 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
42601 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
42602 reboot.c.
f714229e 42603 (grub_install_SOURCES): Add halt.mod and reboot.mod.
42604 (halt_mod_SOURCES): New variable.
42605 (halt_mod_CFLAGS): Likewise.
42606 (halt_mod_LDFLAGS): Likewise.
42607 (reboot_mod_SOURCES): Likewise.
42608 (reboot_mod_CFLAGS): Likewise.
42609 (reboot_mod_LDFLAGS): Likewise.
42610
c3db8364 42611 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
42612 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
42613 reboot.c.
f714229e 42614 (halt_mod_SOURCES): Likewise.
42615 (reboot_mod_SOURCES): Likewise.
42616
c3db8364 42617 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
42618 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 42619 (reboot_mod_SOURCES): Likewise.
42620
42621 * commands/i386/pc/reboot.c: merge this file ...
42622
42623 * commands/ieee1275/reboot.c: ... and this file ...
42624
42625 * commands/reboot.c: ... to this file.
c3db8364 42626 Add some precompiler directive to include the correct header for
42627 each machine.
f714229e 42628
42629 * commands/ieee1275/halt.c: move this file ...
42630
42631 * commands/halt.c: ... to here.
c3db8364 42632 Add some precompiler directive to include the correct header for
42633 each machine.
f714229e 42634
42635 * include/grub/efi/efi.h (grub_reboot): New function declaration.
42636 (grub_halt): Likewise.
42637
42638 * kern/efi/efi.c (grub_reboot): New function.
42639 (grub_halt): Likewise.
42640
c74493e0 426412008-02-12 Robert Millan <rmh@aybabtu.com>
42642
42643 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
42644 /dev (like it is done for /dev/mapper). This doesn't provide support
42645 for EVMS, but at least it is now easy to identify the problem when it
42646 arises.
42647
d0db4b04 426482008-02-11 Robert Millan <rmh@aybabtu.com>
42649
42650 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
42651 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
42652 comparing it with -1, not 0.
42653
bf748642 426542008-02-10 Robert Millan <rmh@aybabtu.com>
42655
42656 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
42657 `disk/lvm.c'.
42658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42659 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
42660
42661 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
42662 `disk/lvm.c' to the end of the list.
42663 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
42664 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
42665
b5db202a 426662008-02-10 Robert Millan <rmh@aybabtu.com>
42667
42668 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
42669 grub_print_error() instead. This will let user know why we're entering
42670 rescue mode.
42671 Based on suggestions from Sam Morris.
42672
83abee31 426732008-02-10 Alexandre Boeglin <alex@boeglin.org>
42674
42675 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
42676 on remaining N args, instead of "--" arg N times.
42677
78d5a08b 426782008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
42679
42680 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
42681 (fill_with_default_glyph): Changed to use unknown_glyph for fill
42682 pattern for unknown glyphs.
42683
68807e5f 426842008-02-09 Robert Millan <rmh@aybabtu.com>
42685
42686 * configure.ac: Probe for `help2man'.
42687 * Makefile.in (builddir): New variable.
42688 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
42689 or otherwise add a few flags/options to it.
42690 (install-local): For every executable utility or script that is
42691 installed, invoke $(HELP2MAN) to install a manpage based on --help
42692 output.
42693
42694 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
42695 that it doesn't prevent --help from working in build tree.
42696
42697 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
42698 with `bug-grub@gnu.org'.
42699 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
42700 * util/update-grub.in (usage): New function.
42701 Implement proper argument check, with support for --help and --version
42702 (as well as existing -y).
42703
427042008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 42705
42706 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
42707 avoid overwriting previous output.
42708 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
42709
c1962162 427102008-02-09 Robert Millan <rmh@aybabtu.com>
42711
42712 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
42713 drawing the menu.
42714
3dac2e3f 427152008-02-09 Robert Millan <rmh@aybabtu.com>
42716
42717 * commands/sleep.c: New file.
42718 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
42719 (sleep_mod_SOURCES): New variable.
42720 (sleep_mod_CFLAGS): Likewise.
42721 (sleep_mod_LDFLAGS): Likewise.
42722
7a634e08 427232008-02-09 Robert Millan <rmh@aybabtu.com>
42724
42725 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
42726 situations in which we can deduce the RAID size and the superblock
42727 doesn't match it.
42728
b92f0c18 427292008-02-09 Robert Millan <rmh@aybabtu.com>
42730
42731 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
42732 and return a grub_diskmemberlist_t composed of LVM physical volumes.
42733 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
42734
42735 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
42736 and return a grub_diskmemberlist_t composed of physical array members.
42737 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
42738
42739 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
42740 prototype.
42741 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
42742 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
42743 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
42744
42745 * util/grub-probe.c (probe): Move partmap probing code from here ...
42746 (probe_partmap): ... to here.
42747 (probe): Use probe_partmap() once for the disk we're probing, and
42748 additionally, when such disk contains a memberlist() struct member,
42749 once for each disk that is contained in the structure returned by
42750 memberlist().
42751
91a4bf68 427522008-02-09 Robert Millan <rmh@aybabtu.com>
42753
42754 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
42755 environment variable to 'all' in order to obtain debug output from
42756 non-util/ code.
42757 * util/i386/pc/grub-setup.c (main): Likewise.
42758
a96f9caa 427592008-02-08 Robert Millan <rmh@aybabtu.com>
42760
42761 * disk/raid.c (grub_raid_scan_device): Check for
42762 `array->device[sb.this_disk.number]' rather than for
42763 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 42764 guaranteed to be accessible.
a96f9caa 42765
b37a9222 427662008-02-08 Robert Millan <rmh@aybabtu.com>
42767
42768 * disk/raid.c: Update copyright.
42769 * fs/cpio.c: Likewise.
42770 * include/grub/raid.h: Likewise.
42771 * loader/i386/pc/multiboot.c: Likewise.
42772 * util/hostfs.c: Likewise.
42773
5626aee1 427742008-02-08 Robert Millan <rmh@aybabtu.com>
42775
42776 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
42777 to a grub_disk_t array.
42778 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
42779 `device[x]'.
42780 (grub_raid_scan_device): Replace `device[x].name' accesses with
42781 `device[x]->name'. Simplify initialization of `array->device[x]'.
42782
554f0187 427832008-02-08 Robert Millan <rmh@aybabtu.com>
42784
42785 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
42786 grub_dprintf() calls.
42787 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
42788 error message.
42789
1ec8425d 427902008-02-07 Christian Franke <franke@computer.org>
42791
42792 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
42793 instead of fseek and ftell to support large files.
42794 (grub_hostfs_read): Likewise.
42795
f2156fda 427962008-02-07 Robert Millan <rmh@aybabtu.com>
42797
42798 Patch from Jeroen Dekkers.
42799 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 42800 failure, since successfully reading all array members might not be
f2156fda 42801 required.
42802
9216e0e7 428032008-02-06 Robert Millan <rmh@aybabtu.com>
42804
42805 * util/grub-probe.c (probe): Simplify partmap probing (with the
42806 assumption that the first word up to the underscore equals to
42807 the module name).
42808
b0dfd29a 428092008-02-06 Christian Franke <franke@computer.org>
42810
42811 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
42812 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
42813 last block of a cpio or tar stream.
42814 Check for "TRAILER!!!" instead of any empty data
42815 block to detect last block of a cpio stream.
42816 (grub_cpio_dir): Fix constness of variable np.
42817 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
42818 cpio or tar trailer is detected. This fixes a crash
42819 on open of a non existing file.
42820
c32865bf 428212008-02-05 Bean <bean123ch@gmail.com>
42822
42823 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
42824 address of entry.
42825 (grub_multiboot_load_elf64): Likewise.
42826 (grub_multiboot): Initialize mbi structure.
42827
42828 * util/grub-fstest.c: Don't include unused header file script.h.
42829
fe6b695a 42830 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 42831 of file.
42832 (grub_fstest_SOURCES): Likewise.
42833
409480b7 428342008-02-05 Robert Millan <rmh@aybabtu.com>
42835
42836 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
42837 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
42838 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
42839 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
42840
42841 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
42842 (translation_table): Replace hardcoded values with macros
42843 provided by `<grub/term.h>'.
42844
42845 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
42846 (keyboard_map): Correct/add a few values, with macros provided
42847 by `<grub/term.h>'.
42848 (keyboard_map_shift): Zero values that don't differ from their
42849 `keyboard_map' equivalents.
42850 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
42851 Discard the second scan code that is always sent by Caps lock.
42852 Only use `keyboard_map_shift' when it provides a non-zero value,
42853 otherwise fallback to `keyboard_map'.
42854
99fadbaa 428552008-02-04 Bean <bean123ch@gmail.com>
42856
42857 * Makefile.in (enable_grub_fstest): New variable.
42858
42859 * conf/common.rmk (grub_fstest_init.lst): New rule.
42860 (grub_fstest_init.h): Likewise.
42861 (grub_fstest_init.c): Likewise.
42862 (util/grub-fstest.c_DEPENDENCIES): New variable.
42863 (grub_fstest_SOURCES): Likewise.
42864
42865 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
42866
42867 * util/grub-fstest.c: New file.
42868
bf567c50 428692008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42870
42871 Make grub-setup handle a separate root device.
f19dbdb7 42872
bf567c50 42873 * util/i386/pc/grub-setup.c (setup): Always open the root device,
42874 so that the root device can be compared with the destination
42875 device.
42876 When embedding the core image, if the root and destination devices
42877 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
42878 0xFF.
42879 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 42880
9be6b98b 428812008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42882
42883 Add support for having a grub directory in a different drive. This
42884 is still only the data handling part.
f19dbdb7 42885
9be6b98b 42886 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
42887 (codestart): Save %dh in GRUB_ROOT_DRIVE.
42888 (grub_root_drive): New variable.
42889
42890 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
42891 instead of GRUB_BOOT_DRIVE to construct a device name. Set
42892 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
42893 as it was.
42894
42895 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
42896
42897 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
42898 macro.
42899 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
42900
42901 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
42902 is bogus, because PXE booting does not specify any drive
42903 correctly.
42904
42905 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
42906 am not sure if this is really correct.
42907
42908 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
42909 is always identical to the boot drive when booting from a CD.
42910
42911 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
42912 longer.
42913 (root_drive): New variable.
42914 (real_start): Unconditionally set %dh to ROOT_DRIVE.
42915 (setup_sectors): Push %dx right after popping it, because %dh will
42916 be modified later.
42917 (copy_buffer): Restore %dx.
42918
e0ca0677 429192008-02-03 Robert Millan <rmh@aybabtu.com>
42920
42921 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
42922 use `cdboot.img' for cdrom images.
42923
3b3f6629 429242008-02-03 Robert Millan <rmh@aybabtu.com>
42925
42926 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
42927 only setup gfxterm when `font' command has succeeded.
42928
d42b3672 429292008-02-03 Robert Millan <rmh@aybabtu.com>
42930
42931 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
42932 (grub_rescue_cmd_multiboot_loader)
42933 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
42934
fa370ea6 429352008-02-03 Pavel Roskin <proski@gnu.org>
42936
e0c5dacb 42937 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 42938 %edx and %esi from stack only after grub_gate_a20() is called.
42939 grub_gate_a20() clobbers %edx.
42940
f2a76e1d 429412008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
42942
42943 * configure.ac (AC_INIT): Bumped to 1.96.
42944
42945 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
42946 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
42947 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
42948 video/readers/png.c.
42949
90fd32d1 429502008-02-03 Bean <bean123ch@gmail.com>
9be665dd 42951
42952 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
42953 (cdboot_img_SOURCES): New variable.
42954 (cdboot_img_ASFLAGS): New variable.
42955 (cdboot_img_LDFLAGS): New variable.
42956
42957 * boot/i386/pc/cdboot.S: New file.
42958
42959 * disk/i386/pc/biosdisk.c (cd_start): New variable.
42960 (cd_count): Likewise.
42961 (grub_biosdisk_get_drive): Add support for cd device.
42962 (grub_biosdisk_call_hook): Likewise.
42963 (grub_biosdisk_iterate): Likewise.
42964 (grub_biosdisk_open): Likewise.
42965 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
42966 (grub_biosdisk_rw): Support reading from cd device.
42967 (GRUB_MOD_INIT): Iterate cd devices.
42968
42969 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
42970 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
42971 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
42972
42973 * kern/i386/pc/init.c (make_install_device): Check for cd device.
42974
4020aa53 429752008-02-02 Robert Millan <rmh@aybabtu.com>
42976
42977 * commands/read.c: New file.
42978 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
42979 (read_mod_SOURCES): New variable.
42980 (read_mod_CFLAGS): Likewise.
42981 (read_mod_LDFLAGS): Likewise.
42982
e03a1132 429832008-02-02 Robert Millan <rmh@aybabtu.com>
42984
42985 * normal/main.c (grub_normal_execute): Check for `menu->size' when
42986 determining whether menu has to be displayed.
42987
58c69220 429882008-02-02 Marco Gerards <marco@gnu.org>
42989
42990 * bus/pci.c: New file.
42991
42992 * include/grub/pci.h: Likewise.
42993
42994 * include/grub/i386/pc/pci.h: Likewise.
42995
42996 * commands/lspci.c: Likewise.
42997
42998 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
42999 `lspci.mod'.
43000 (pci_mod_SOURCES): New variable.
43001 (pci_mod_CFLAGS): Likewise.
43002 (pci_mod_LDFLAGS): Likewise.
43003 (lspci_mod_SOURCES): Likewise.
43004 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 43005 (lspci_mod_LDFLAGS): Likewise.
58c69220 43006
c004e1b4 430072008-02-02 Bean <bean123ch@gmail.com>
43008
43009 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
43010 (grub_ufs_get_file_block): Fix indirect block calculation problem.
43011
43012 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
43013 (grub_xfs_btree_node): New structure.
43014 (grub_xfs_btree_root): New structure.
43015 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
43016 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
43017 (GRUB_XFS_EXTENT_BLOCK): Likewise.
43018 (GRUB_XFS_EXTENT_SIZE): Likewise.
43019 (grub_xfs_read_block): Support btree format type.
43020 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
43021 Use directory block as basic unit.
43022
43023 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
43024
43025 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
43026 __attribute__ ((__regparm__ (1))).
43027
f95562bf 430282008-02-01 Robert Millan <rmh@aybabtu.com>
43029
43030 Correct a mistake in previous commit.
43031
43032 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
43033 top.
43034 (normal/command.c_DEPENDENCIES): New variable.
43035
7d31f41f 430362008-02-01 Robert Millan <rmh@aybabtu.com>
43037
43038 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
43039 top.
43040 (normal/command.c_DEPENDENCIES): New variable.
43041 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
43042 * conf/i386-ieee1275.rmk: Likewise.
43043 * conf/i386-linuxbios.rmk: Likewise.
43044 * conf/i386-pc.rmk: Likewise.
43045 * conf/sparc64-ieee1275.rmk: Likewise.
43046 * conf/powerpc-ieee1275.rmk: Likewise.
43047 (grub_emu_SOURCES): Add `fs/fshelp.c'.
43048
43049 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
43050
60b6be74 430512008-02-01 Robert Millan <rmh@aybabtu.com>
43052
43053 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
43054 call at beginning of function.
43055
078522ab 430562008-01-31 Pavel Roskin <proski@gnu.org>
43057
43058 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 43059 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
43060 (grub_mkrescue_SOURCES): Likewise.
078522ab 43061 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
43062
ccaa8a5f 430632008-01-30 Robert Millan <rmh@aybabtu.com>
43064
43065 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
43066 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
43067 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
43068 (grub_probe_SOURCES): ... to here.
43069
43070 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
43071 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
43072 * conf/i386-ieee1275.rmk: Likewise.
43073 * conf/i386-linuxbios.rmk: Likewise.
43074 * conf/powerpc-ieee1275.rmk: Likewise.
43075
ae5a9cd7 430762008-01-30 Tristan Gingold <gingold@free.fr>
43077
43078 * kern/rescue.c: Silently accept empty lines.
43079
70bc2ef2 430802008-01-29 Bean <bean123ch@gmail.com>
43081
43082 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
43083 (real_code_2): Code cleanup and change comment style.
43084 (move_memory): Avoid using 32-bit address mode.
43085
6a4d50ea 430862008-01-29 Bean <bean123ch@gmail.com>
43087
43088 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
43089 (png_mod_SOURCES): New variable.
43090 (png_mod_CFLAGS): Likewise.
43091 (png_mod_LDFLAGS): Likewise.
43092
43093 * video/readers/png.c: New file.
43094
11cc30ac 430952008-01-28 Robert Millan <rmh@aybabtu.com>
43096
43097 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
43098 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
43099 `ifndef GRUB_MOD_GAP' hack.
43100 * util/elf/grub-mkimage.c (add_segments): Likewise.
43101
3abc589f 431022008-01-27 Robert Millan <rmh@aybabtu.com>
43103
43104 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
43105 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 43106 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 43107
e1907778 431082008-01-27 Robert Millan <rmh@aybabtu.com>
43109
43110 Get grub-emu to build again (including parallel builds).
43111
43112 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
43113 Split into ...
43114 (util/grub-emu.c_DEPENDENCIES): ... this, ...
43115 (normal/execute.c_DEPENDENCIES): ... this, ...
43116 (grub-emu_DEPENDENCIES): ... and this.
43117
43118 * conf/i386-efi.rmk: Likewise.
43119 * conf/i386-linuxbios.rmk: Likewise.
43120 * conf/i386-ieee1275.rmk: Likewise.
43121 * conf/powerpc-ieee1275.rmk: Likewise.
43122 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
43123
2216b101 431242008-01-27 Robert Millan <rmh@aybabtu.com>
43125
43126 * NEWS: Add a few items.
43127
f75172d9 431282008-01-27 Robert Millan <rmh@aybabtu.com>
43129
43130 Fix parallel builds with grub-emu. Based on earlier commit for
43131 grub-probe and grub-setup.
43132
43133 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43134 (util/grub-emu.c_DEPENDENCIES): ... this.
43135 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43136 (util/grub-emu.c_DEPENDENCIES): ... this.
43137 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43138 (util/grub-emu.c_DEPENDENCIES): ... this.
43139 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43140 (util/grub-emu.c_DEPENDENCIES): ... this.
43141 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
43142 (util/grub-emu.c_DEPENDENCIES): ... this.
43143
3f51de77 431442008-01-27 Pavel Roskin <proski@gnu.org>
43145
43146 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
43147 to create a gap between _end and the modules added to the image
43148 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
43149 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
43150 * util/elf/grub-mkimage.c (add_segments): Likewise.
43151
2033f53e 431522008-01-26 Pavel Roskin <proski@gnu.org>
43153
43154 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
43155 just return an error.
43156
22da1f6f 431572008-01-26 Bean <bean123ch@gmail.com>
43158
43159 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
43160 (grub_reiserfs_get_item): Save offset of the next item.
43161 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
43162
2a9525e6 431632008-01-25 Robert Millan <rmh@aybabtu.com>
43164
43165 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
43166 make all filesystem sources appear together (possibly fixing omissions
43167 while at it).
43168 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43169 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43170 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43171 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43172
43173 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
43174 add `kern/file.c'.
43175 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
43176 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43177 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
43178 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
43179
43180 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
43181 (probe): Add a sanity check to make sure of our ability to read
43182 requested files when probing for filesystem type.
43183
43184 * genmk.rb: Update copyright year (2007).
43185
43186 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
43187 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
43188 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
43189 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
43190 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
43191 : Remove function prototypes.
43192
b95f71b5 431932008-01-25 Robert Millan <rmh@aybabtu.com>
43194
43195 Revert my previous commits (based on wrong assumption of how grub_errno
43196 works).
43197
fe6b695a 43198 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 43199 * kern/file.c (grub_file_open): Likewise.
43200
d08bbb49 432012008-01-24 Pavel Roskin <proski@gnu.org>
43202
43203 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
43204 that hang if GRUB tries to setup colors.
43205 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
43206 colors for firmwares that don't support it.
43207 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
43208 Recognize Open Hack'Ware, set flags to work around its
43209 limitations.
43210
605e36ed 432112008-01-24 Robert Millan <rmh@aybabtu.com>
43212
43213 * kern/file.c (grub_file_open): Do not account previous failures of
43214 unrelated functions when grub_errno is checked for.
43215 Reported by Oleg Strikov.
43216
bac332a1 432172008-01-24 Bean <bean123ch@gmail.com>
43218
43219 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
43220 (grub_ufs_sblock): New member volume name.
43221 (grub_ufs_find_file): Fix string copy bug.
43222 (grub_ufs_label): Implement this function properly.
43223
43224 * fs/hfs.c (grub_hfs_cnid_type): New enum.
43225 (grub_hfs_iterate_records): Use the correct file number for extents
43226 and catalog file. Fix problem in next index calculation.
43227 (grub_hfs_find_node): Replace recursive function call with loop.
43228 (grub_hfs_iterate_dir): Replace recursive function call with loop.
43229
15c80c09 432302008-01-23 Robert Millan <rmh@aybabtu.com>
43231
43232 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
43233 `<grub/symbol.h>' and `<grub/multiboot.h>'.
43234 (grub_multiboot2_real_boot): New function prototype.
43235
43236 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
43237 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
43238
43239 * kern/i386/ieee1275/init.c (grub_os_area_addr)
43240 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
43241
305338fd 432422008-01-23 Robert Millan <rmh@aybabtu.com>
43243
43244 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
43245 #ifdef'ed out grub_printf().
43246
3ea52685 432472008-01-23 Robert Millan <rmh@aybabtu.com>
43248
43249 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
43250 grub_dprintf calls, since they make "debug=all" mode unusable.
43251 (grub_console_checkkey): Likewise.
43252
5882ae4b 432532008-01-23 Robert Millan <rmh@aybabtu.com>
43254
43255 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
43256 `term/i386/pc/at_keyboard.c'.
43257 (pkglib_MODULES): Add `serial.mod'.
43258 (serial_mod_SOURCES): New variable.
43259 (serial_mod_CFLAGS): Likewise.
43260 (serial_mod_LDFLAGS): Likewise.
43261
43262 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
43263 `<grub/powerpc/ieee1275/console.h>'.
43264 (grub_keyboard_controller_init): New function prototype.
43265 (grub_console_checkkey): Likewise.
43266 (grub_console_getkey): Likewise.
43267
43268 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
43269 keyboard on i386.
43270
43271 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
43272 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
43273
06ab5303 432742008-01-23 Robert Millan <rmh@aybabtu.com>
43275
43276 * kern/i386/pc/init.c (make_install_device): When memdisk image is
43277 present, "(memdisk)/boot/grub" becomes the default prefix.
43278
43279 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
43280 a memdisk tarball with all the modules. Add --overlay=DIR option that
43281 allows users to overlay additional files into the image.
43282
dbb475a4 432832008-01-23 Robert Millan <rmh@aybabtu.com>
43284
43285 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
43286 and `machine/memory.h'.
43287 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
43288 (_multiboot_mod_SOURCES): New variable.
43289 (_multiboot_mod_CFLAGS): Likewise.
43290 (_multiboot_mod_LDFLAGS): Likewise.
43291 (multiboot_mod_SOURCES): Likewise.
43292 (multiboot_mod_CFLAGS): Likewise.
43293 (multiboot_mod_LDFLAGS): Likewise.
43294
43295 * include/grub/i386/ieee1275/loader.h: New file.
43296
43297 * include/grub/i386/ieee1275/machine.h: Likewise.
43298
43299 * include/grub/i386/ieee1275/memory.h: Likewise.
43300
43301 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
43302 variable declaration.
43303 (grub_os_area_size): Likewise.
43304
43305 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
43306 (grub_lower_mem, grub_upper_mem): New variables.
43307 (grub_stop_floppy): New function (just to make
43308 grub_multiboot2_real_boot() happy).
43309
43310 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
43311 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
43312 (grub_stop): New function.
43313 Include `"../realmode.S"' and `"../loader.S"'.
43314
43315 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
43316 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
43317
43318 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
43319 rely on grub_multiboot2_real_boot() for final boot.
43320
25638629 433212008-01-22 Robert Millan <rmh@aybabtu.com>
43322
43323 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
43324 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
43325 device that doesn't look like an SD card.
43326 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
43327 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
43328 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
43329 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
43330 found.
43331
9dad816d 433322008-01-22 Robert Millan <rmh@aybabtu.com>
43333
43334 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
43335 avoid claiming over our own code.
43336
34842f2d 433372008-01-22 Bean <bean123ch@gmail.com>
43338
43339 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
43340 (jpeg_mod_SOURCES): New variable.
43341 (jpeg_mod_CFLAGS): Likewise.
43342 (jpeg_mod_LDFLAGS): Likewise.
43343
43344 * video/readers/jpeg.c : New file.
43345
44023a28 433462008-01-22 Bean <bean123ch@gmail.com>
43347
43348 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
43349 there are no more items.
43350
bc2d8ac6 433512008-01-21 Robert Millan <rmh@aybabtu.com>
43352
43353 * kern/mm.c (grub_mm_init_region): Improve debug message.
43354
261bd4bc 433552008-01-21 Robert Millan <rmh@aybabtu.com>
43356
43357 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
43358 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
43359 address.
43360 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
43361 a C macro.
43362 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
43363 Indicates start of upper memory.
43364 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
43365 (generate_image): Abort when image size is big enough to corrupt
43366 upper memory.
43367
43368 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
43369 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
43370 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43371 instead of hardcoding 0xA0000.
43372 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
43373 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
43374 instead of hardcoding 0xA0000.
43375
f970b55e 433762008-01-21 Robert Millan <rmh@aybabtu.com>
43377
43378 * disk/memdisk.c (memdisk_size): New variable.
43379 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
43380 `memdisk_size'.
43381 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
43382 image to dynamic memory.
43383 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
43384 `memdisk_size'. Free memdisk block.
43385
1a8b0526 433862008-01-21 Robert Millan <rmh@aybabtu.com>
43387
43388 Fix detection of very small filesystems (like tar).
43389
43390 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
43391 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
43392 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
43393 a problem with this disk).
43394
6e9b4aab 433952008-01-21 Robert Millan <rmh@aybabtu.com>
43396
43397 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
43398 on grub_biosdisk_rw_standard() error.
43399
0d8837b2 434002008-01-21 Robert Millan <rmh@aybabtu.com>
43401
43402 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
43403 recent changes.
43404 * kern/elf.c: Likewise.
43405 * kern/ieee1275/ieee1275.c: Likewise.
43406 * kern/powerpc/ieee1275/openfw.c: Likewise.
43407 * term/ieee1275/ofconsole.c: Likewise.
43408
ffd36e34 434092008-01-21 Robert Millan <rmh@aybabtu.com>
43410
43411 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
43412
3f0093d0 43413 * include/grub/kernel.h (grub_arch_memdisk_addr)
43414 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 43415
3f0093d0 43416 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
43417 (grub_arch_memdisk_size): ... to here.
ffd36e34 43418
6c391b21 434192008-01-21 Robert Millan <rmh@aybabtu.com>
43420
43421 Mostly based on bugfix from Bean.
43422
43423 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
43424 attribute with hook() parameter.
43425 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
43426 declaration.
43427 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
43428 attribute with hook() parameter.
43429 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
43430 declaration.
43431
55a581dc 434322008-01-21 Robert Millan <rmh@aybabtu.com>
43433
43434 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
43435 (pkglib_MODULES): Add `memdisk.mod'.
43436 (memdisk_mod_SOURCES): New variable.
43437 (memdisk_mod_CFLAGS): Likewise.
43438 (memdisk_mod_LDFLAGS): Likewise.
43439
43440 * disk/memdisk.c: New file.
43441
43442 * include/grub/disk.h (grub_disk_dev_id): Add
43443 `GRUB_DISK_DEVICE_MEMDISK_ID'.
43444
43445 * include/grub/i386/pc/kernel.h
43446 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
43447 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
43448 (grub_kernel_image_size): New variable declaration.
43449 (grub_total_module_size): Likewise.
43450 (grub_memdisk_image_size): Likewise.
43451
43452 * include/grub/i386/pc/memory.h
43453 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
43454
43455 * include/grub/kernel.h: Include `<grub/symbol.h>'.
43456 (grub_arch_memdisk_addr): New variable declaration.
43457 (grub_arch_memdisk_size): Likewise.
43458
43459 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
43460 (grub_arch_memdisk_size): Likewise.
43461
43462 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
43463 (codestart): Replace hardcoded `0x100000' with
43464 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
43465
43466 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
43467 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
43468 not NULL, append the contents of the file it refers to, at the end of
43469 the compressed kernel image. Initialize `grub_memdisk_image_size'
43470 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
43471 (options): Add "memdisk"|'m' option.
43472 (main): Parse --memdisk|-m option, and pass user-provided path as
43473 parameter to generate_image().
43474
3d7f54c9 434752008-01-20 Robert Millan <rmh@aybabtu.com>
43476
43477 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
43478 grub_dprintf() calls from here ...
43479 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
43480
0bf74728 434812008-01-20 Robert Millan <rmh@aybabtu.com>
43482
43483 Fix detection of "real mode" when /options/real-mode? doesn't exist.
43484
43485 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
43486 declaration.
43487 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
43488 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
43489 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 43490 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 43491 property).
43492 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
43493 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
43494
33bf70a7 434952008-01-19 Robert Millan <rmh@aybabtu.com>
43496
fe6b695a 43497 Get rid of confusing function (superseded by
33bf70a7 43498 `grub_ieee1275_get_integer_property')
43499 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
43500 prototype.
43501 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
43502 function.
43503 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
43504 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 43505 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 43506
e2da7d26 435072008-01-19 Robert Millan <rmh@aybabtu.com>
43508
43509 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
43510 command after "shut-down", since implementations differ on which
43511 the command for halt is.
43512
59f1fd8d 435132008-01-19 Robert Millan <rmh@aybabtu.com>
43514
43515 * include/grub/i386/linuxbios/console.h: Add header protection.
43516 (grub_keyboard_controller_init): New function prototype.
43517 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
43518 (KEYBOARD_COMMAND_READ): Likewise.
43519 (KEYBOARD_COMMAND_WRITE): Likewise.
43520 (KEYBOARD_SCANCODE_SET1): Likewise.
43521 (grub_keyboard_controller_write): New function.
43522 (grub_keyboard_controller_read): Likewise.
43523 (grub_keyboard_controller_init): Likewise.
43524
43525 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
43526 (grub_console_init): On coreboot/LinuxBIOS, call
43527 grub_keyboard_controller_init().
43528
5f5a7c15 435292008-01-19 Robert Millan <rmh@aybabtu.com>
43530
43531 PowerPC changes provided by Pavel Roskin.
43532
43533 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
43534 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
43535 don't rely on cmain() doing it.
43536 * kern/i386/ieee1275/startup.S (_start): Store %eax in
43537 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
43538
1210e168 435392008-01-16 Robert Millan <rmh@aybabtu.com>
43540
43541 * include/grub/i386/linuxbios/memory.h
43542 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
43543 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
43544 receive `table_header' as argument. Instead, probe for it in the
43545 known memory ranges where it can be present.
43546 (grub_available_iterate): Do not pass a fixed `table_header' address
43547 to grub_linuxbios_table_iterate().
43548
3d04eab8 435492008-01-15 Robert Millan <rmh@aybabtu.com>
43550
43551 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
43552 * conf/i386-ieee1275.rmk: New file.
43553 * include/grub/i386/ieee1275/console.h: Likewise.
43554 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
43555 * include/grub/i386/ieee1275/kernel.h: Likewise.
43556 * include/grub/i386/ieee1275/time.h: Likewise.
43557 * kern/i386/ieee1275/init.c: Likewise.
43558 * kern/i386/ieee1275/startup.S: Likewise.
43559
d1bc1b73 435602008-01-15 Robert Millan <rmh@aybabtu.com>
43561
43562 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
43563 when pointers are 32-bit (but still do set it to one when they are
43564 64-bit).
43565
66a65807 435662008-01-15 Robert Millan <rmh@aybabtu.com>
43567
43568 * include/grub/ieee1275/ieee1275.h
43569 (grub_ieee1275_get_integer_property): New function prototype.
43570
43571 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
43572 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 43573 grub_ieee1275_get_property() to handle endianness.
66a65807 43574
43575 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
43576 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 43577 where appropriate.
66a65807 43578 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
43579 (grub_map): Likewise.
43580 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
43581
a83ccafd 435822008-01-15 Bean <bean123ch@gmail.com>
43583
43584 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
43585 (grub_script_execute_cmdline): Reset grub_errno.
43586
43587 * normal/main.c (read_config_file): Reset grub_errno.
43588
43589 * normal/parse.y (script_init): New.
43590 (script): Move function and menuentry here.
43591 (delimiter): New.
43592 (command): Add delimiter at the end of command.
43593 (commands): Adjust to match the new command.
43594 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 43595 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 43596 (if): Use the new commands.
43597
43598 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
43599
df6ecfc6 436002008-01-15 Robert Millan <rmh@aybabtu.com>
43601
43602 * normal/menu.c (run_menu): Move timeout message from here ...
43603 (print_timeout): ... to here.
43604 (run_menu): Use print_timeout() once during initial draw to print
43605 the whole message, and again in every clock tick to update only
43606 the number of seconds.
43607
87ae25eb 436082008-01-15 Robert Millan <rmh@aybabtu.com>
43609
43610 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
43611 actual size of `available' from grub_ieee1275_get_property(), and
43612 restrict parsing to that bound.
43613
47bf09a4 436142008-01-15 Christian Franke <franke@computer.org>
43615
43616 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
43617 (argp_program_version): Remove variable.
43618 (argp_program_bug_address): Likewise.
43619 (options): Convert from struct argp_option to struct option.
43620 (struct arguments): Remove.
43621 (parse_opt): Remove.
43622 (usage): New function.
43623 (main): Replace struct args members by simple variables.
43624 Replace argp_parse() by getopt_long().
43625 Add switch to evaluate options.
43626 Add missing "(...)" around root_dev in prefix string.
43627
c86f1469 436282008-01-14 Robert Millan <rmh@aybabtu.com>
43629
43630 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
43631 for grub_ieee1275_exit(), in order to improve portability.
43632
e622c559 436332008-01-14 Robert Millan <rmh@aybabtu.com>
43634
43635 * util/grub.d/10_linux.in (prefix): Define.
43636 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
43637
44cb1ec8 436382008-01-13 Pavel Roskin <proski@gnu.org>
43639
43640 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
43641 grub_errno if no errors have been detected.
43642
1eb8c802 436432008-01-12 Robert Millan <rmh@aybabtu.com>
43644
43645 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
43646 (grub_util_get_dev_abstraction): New function prototype.
43647
43648 * util/getroot.c: Include `<grub/util/getroot.h>'
43649 (grub_util_get_grub_dev): Move detection of abstraction type to ...
43650 (grub_util_get_dev_abstraction): ... here (new function).
43651
43652 * util/grub-probe.c: Convert PRINT_* to an enum. Add
43653 `PRINT_ABSTRACTION'.
43654 (probe): Probe for abstraction type when requested.
43655 (main): Understand `--target=abstraction'.
43656
43657 * util/i386/efi/grub-install.in: Add abstraction module to core
43658 image when it is found to be necessary.
43659 * util/i386/pc/grub-install.in: Likewise.
43660 * util/powerpc/ieee1275/grub-install.in: Likewise.
43661
43662 * util/update-grub_lib.in (font_path): Return system path without
43663 converting to GRUB path.
43664 * util/update-grub.in: Convert system path returned by font_path()
43665 to a GRUB path. Use `grub-probe -t abstraction' to determine what
43666 abstraction module is needed for loading fonts (if any). Export
43667 that as `GRUB_PRELOAD_MODULES'.
43668 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
43669 insmod commands).
43670
52bd3de9 436712008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
43672
43673 Remove some unused code from reiserfs.
f19dbdb7 43674
52bd3de9 43675 * fs/reiserfs.c (struct grub_reiserfs_key)
43676 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
43677 (struct grub_reiserfs_node_body): Removed.
43678 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43679 Likewise.
43680 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43681 Likewise.
43682 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43683 Likewise.
43684 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
43685 Likewise.
43686 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
43687 Likewise.
43688 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
43689 Likewise.
43690 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43691 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43692 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
43693
2f80039d 436942008-01-10 Robert Millan <rmh@aybabtu.com>
43695
43696 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
43697 Determines if a file is garbage left by packaging systems, etc.
43698 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
43699 for processing /etc/grub.d scripts.
43700 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
43701 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
43702 as a condition for processing Linux images.
43703
87888032 437042008-01-10 Pavel Roskin <proski@gnu.org>
43705
43706 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
43707 to compile reiserfs.c on PowerPC.
43708
7e54fced 437092008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 43710
43711 * kern/device.c (grub_device_iterate): Do not abort device iteration
43712 when one of the devices cannot be opened.
43713 * kern/disk.c (grub_disk_open): Do not account previous failures of
43714 unrelated functions when grub_errno is checked for.
43715
5aa541e6 437162008-01-08 Robert Millan <rmh@aybabtu.com>
43717
43718 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
43719 `! grub_linux_is_bzimage', change order of address comparison to make
43720 it more intuitive, and improve "too big zImage" error message.
43721
7076340d 437222008-01-08 Robert Millan <rmh@aybabtu.com>
43723
43724 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
43725 `$(update-grub_DATA)'.
43726 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
43727 targets.
43728
9ca70333 437292008-01-07 Robert Millan <rmh@aybabtu.com>
43730
43731 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
43732 which instruction is modified by grub-setup during installation
43733 (since it wasn't obvious by only looking at this file).
43734
38ccf575 437352008-01-07 Robert Millan <rmh@aybabtu.com>
43736
43737 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
43738 listing actual TODO items.
43739
f5db4291 437402008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43741
868967cf 43742 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
43743 correctly.
43744 (grub_reiserfs_get_key_offset): Likewise.
43745 (grub_reiserfs_set_key_offset): Likewise.
43746 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 43747 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 43748
43749 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
43750 better to remove the bitfield version completely.
f19dbdb7 43751
868967cf 437522008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 43753
f5db4291 43754 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
43755 allocated from the heap, due to the fshelp implementation.
43756 (grub_reiserfs_dir): Free NODE, due to the same reason.
43757
492e6d9d 437582008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
43759
43760 Mostly from Vincent Pelletier:
f19dbdb7 43761
492e6d9d 43762 * fs/reiserfs.c: New file.
f19dbdb7 43763
492e6d9d 43764 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
43765 (reiserfs_mod_SOURCES): New variable.
43766 (reiserfs_mod_CFLAGS): Likewise.
43767 (reiserfs_mod_LDFLAGS): Likewise.
43768
43769 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
43770 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
43771 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
43772 normal/color.c.
43773
9ce3e7c1 437742008-01-06 Robert Millan <rmh@aybabtu.com>
43775
43776 * normal/color.c: Remove `<grub/env.h>'.
43777
f3b58148 437782008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
43779
43780 * include/grub/normal.h: Include <grub/env.h>.
43781
7ac3bcfa 437822008-01-05 Robert Millan <rmh@aybabtu.com>
43783
43784 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
43785 usage example with `(hd0,1)'.
fb358190 43786 Reported by Samuel Thibault.
7ac3bcfa 43787
c8ee99d7 437882008-01-05 Robert Millan <rmh@aybabtu.com>
43789
43790 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
43791 (grub_linux_boot_zimage): Rename to ...
43792 (grub_linux_boot): ... this.
43793 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
43794 (grub_linux_boot_zimage): Conditionalize zImage copy.
43795
43796 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
43797 (grub_linux_boot_bzimage): Remove prototype.
43798 (grub_linux_boot_zimage): Rename to ...
43799 (grub_linux_boot): ... this.
43800
43801 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
43802 (grub_linux_boot): Remove function.
43803
0ece25b1 438042008-01-05 Robert Millan <rmh@aybabtu.com>
43805
43806 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
43807 (grub_env_write_color_highlight): Likewise.
43808 (grub_wait_after_message): Likewise.
43809
43810 * normal/color.c: New file.
43811
43812 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43813 (normal_mod_DEPENDENCIES): Likewise.
43814
43815 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43816 (normal_mod_DEPENDENCIES): Likewise.
43817
43818 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43819 (normal_mod_DEPENDENCIES): Likewise.
43820
43821 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
43822 (normal_mod_DEPENDENCIES): Likewise.
43823
43824 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
43825 for waiting after a message is printed.
43826 * normal/main.c (read_config_file): Likewise.
43827 (grub_normal_init): Register grub_env_write_color_normal() and
43828 grub_env_write_color_highlight() hooks. Mark `color_normal' and
43829 `color_highlight' variables as global.
43830
43831 * normal/menu.c (grub_wait_after_message): New function.
43832 (grub_color_menu_normal): New variable. Replaces ...
43833 (GRUB_COLOR_MENU_NORMAL): ... this macro.
43834 (grub_color_menu_highlight): New variable. Replaces ...
43835 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
43836 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
43837 `GRUB_TERM_COLOR_STANDARD'.
43838 (print_message): Use `grub_setcolorstate' to reload colors. Rename
43839 `normal_code' and `highlight_code' to `old_color_normal' and
43840 `old_color_highlight', respectively.
43841 (grub_menu_init_page): Update colors when drawing the menu, based on
43842 `menu_color_normal' and `menu_color_highlight' variables.
43843 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
43844 a message is printed.
43845
182dd4e5 438462008-01-05 Robert Millan <rmh@aybabtu.com>
43847
43848 * kern/env.c (grub_env_context_open): Propagate hooks for global
43849 variables to new context.
43850
43851 * kern/main.c (grub_set_root_dev): Export `root' variable.
43852
ddf8f6ad 438532008-01-05 Robert Millan <rmh@aybabtu.com>
43854
43855 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 43856 discs unconditionally, since udev and others have options to provide
ddf8f6ad 43857 them.
43858
d8b43d9b 438592008-01-05 Robert Millan <rmh@aybabtu.com>
43860
43861 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
43862
2bff2de3 438632008-01-04 Christian Franke <franke@computer.org>
43864
43865 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
43866 of eisa_mmap.
43867
97eab917 438682008-01-03 Pavel Roskin <proski@gnu.org>
43869
43870 * kern/i386/linuxbios/init.c: Put "void" to all function
43871 declarations with no arguments.
43872 * kern/powerpc/ieee1275/init.c: Likewise.
43873 * term/i386/pc/at_keyboard.c: Likewise.
43874 * term/i386/pc/vga_text.c: Likewise.
43875 * util/grub-mkdevicemap.c: Likewise.
43876
b9416d00 438772008-01-02 Robert Millan <rmh@aybabtu.com>
43878
43879 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
43880 message when loaded image is out of bounds.
43881 (grub_multiboot_load_elf64): Likewise.
43882
92695df9 438832008-01-02 Pavel Roskin <proski@gnu.org>
43884
43885 * util/grub.d/10_linux.in: Try version without ".old" when
43886 looking for initrd. It's better to use initrd from the newer
43887 kernel of the same version than no initrd at all.
43888
d98d9cad 438892008-01-01 Robert Millan <rmh@aybabtu.com>
43890
43891 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
43892
dbfdce36 438932008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
43894
f19dbdb7 43895 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 43896 grub_video_get_active_render_target.
43897 (grub_video_adapter): Added unmap_color and get_active_render_target.
43898
f19dbdb7 43899 * video/video.c: Added grub_video_unmap_color and
dbfdce36 43900 grub_video_get_active_render_target.
43901 (grub_video_get_info): Changed method to accept NULL pointer as an
43902 argument to allow detection of active video adapter.
43903
43904 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
43905 grub_video_vbe_unmap_color_int.
43906 Added grub_video_vbe_unmap_color and
43907 grub_video_vbe_get_active_render_target.
43908 (grub_video_vbe_adapter): Added unmap_color and
43909 get_active_render_target.
43910
f19dbdb7 43911 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 43912 with grub_video_vbe_unmap_color_int.
43913
43914 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
43915 (DEFAULT_NORMAL_COLOR): Likewise.
43916 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
43917 (DEFAULT_FG_COLOR): Removed.
43918 (DEFAULT_BG_COLOR): Likewise.
43919 (DEFAULT_CURSOR_COLOR): Changed value.
43920 (grub_virtual_screen): Added standard_color_setting,
43921 normal_color_setting, highlight_color_setting and term_color.
43922 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
43923 (bitmap_width): Added.
43924 (bitmap_height): Likewise.
43925 (bitmap): Likewise.
43926 (set_term_color): Likewise.
43927 (grub_virtual_screen_setup): Changed to use new terminal coloring
43928 settings.
43929 (grub_gfxterm_init): Added init for bitmap.
43930 (grub_gfxterm_fini): Added destroy for bitmap.
43931 (redraw_screen_rect): Updated to use background bitmap and new
43932 terminal coloring.
43933 (scroll_up): Added optimization for case when there is no bitmap.
43934 (grub_gfxterm_cls): Fixed to use correct background color.
43935 (grub_virtual_screen_setcolorstate): Changed to use new terminal
43936 coloring.
43937 (grub_virtual_screen_setcolor): Likewise.
43938 (grub_virtual_screen_getcolor): Added.
43939 (grub_gfxterm_background_image_cmd): Likewise.
43940 (grub_video_term): Added setcolor and getcolor.
43941 (MOD_INIT): Added registration of background_image command.
43942 (MOD_TERM): Added unregistration for background_image command.
43943
c3c20931 439442007-12-30 Pavel Roskin <proski@gnu.org>
43945
43946 * loader/multiboot_loader.c: Fix multiboot command
43947 unregistration. Fix all typos in the word "multiboot".
43948
df266716 439492007-12-29 Pavel Roskin <proski@gnu.org>
94239199 43950
43951 * util/grub.d/10_linux.in: Refactor search for initrd. Add
43952 support for initrd names used in Fedora.
43953
fc6e896c 439542007-12-26 Bean <bean123ch@gmail.com>
43955
43956 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
43957 (cpio_mod_SOURCES): New variable.
43958 (cpio_mod_CFLAGS): Likewise.
43959 (cpio_mod_LDFLAGS): Likewise.
43960
43961 * fs/cpio.c: New file.
43962
43963 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
43964
43965 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
43966
43967 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
43968
43969 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43970
533110ad 439712007-12-25 Robert Millan <rmh@aybabtu.com>
43972
43973 * include/grub/term.h (struct grub_term): Add `getcolor' function.
43974 (grub_getcolor): New function.
43975
43976 * kern/term.c (grub_getcolor): New function.
43977 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
43978 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
43979 (print_entry): Set normal and highlight colors to
43980 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
43981 respectively, before printing and restore them to old
43982 values afterwards.
43983 (grub_menu_init_page): Likewise. Fill an additional colored space
43984 that would otherwise be left blank.
43985
43986 * term/efi/console.c (grub_console_getcolor): New function.
43987 (struct grub_console_term.getcolor): New variable.
43988 * term/i386/pc/console.c (grub_console_getcolor): New function.
43989 (struct grub_console_term.getcolor): New variable.
43990 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
43991 (struct grub_console_term.getcolor): New variable.
43992
43993 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
43994 (struct grub_console_term.setcolor): Remove variable.
43995 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
43996 (struct grub_console_term.setcolor): Remove variable.
43997 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
43998 (struct grub_console_term.setcolor): Remove variable.
43999 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
44000 (struct grub_console_term.setcolor): Remove variable.
44001
4931827f 440022007-12-25 Robert Millan <rmh@aybabtu.com>
44003
44004 * configure.ac: Search for possible unifont.hex locations, and
44005 define UNIFONT_HEX if found.
44006
44007 * Makefile.in (UNIFONT_HEX): Define variable.
44008 (DATA): Rename to ...
44009 (PKGLIB): ... this. Update all users.
44010 (PKGDATA): New variable.
44011 (pkgdata_IMAGES): Rename to ...
44012 (pkglib_IMAGES): ... this. Update all users.
44013 (pkgdata_MODULES): Rename to ...
44014 (pkglib_MODULES): ... this. Update all users.
44015 (pkgdata_PROGRAMS): Rename to ...
44016 (pkglib_PROGRAMS): ... this. Update all users.
44017 (pkgdata_DATA): Rename to ...
44018 (pkglib_DATA): ... this. Update all users.
44019 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
44020 (unicode.pff, ascii.pff): New rules.
44021 (all-local): Add `$(PKGDATA)' dependency.
44022 (install-local): Process `$(PKGDATA)'.
44023
44024 * util/update-grub_lib.in (font_path): Search for *.pff files in
44025 a few more locations, including `${pkgdata}'.
44026
57e57e31 440272007-12-23 Robert Millan <rmh@aybabtu.com>
44028
44029 Patch from Bean <bean123ch@gmail.com>:
44030 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
44031 `size'.
44032
4bc72aa9 440332007-12-21 Bean <bean123ch@gmail.com>
44034
44035 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
44036 (ntfscomp_mod_SOURCES): New variable.
44037 (ntfscomp_mod_CFLAGS): Likewise.
44038 (ntfscomp_mod_LDFLAGS): Likewise.
44039
44040 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
44041 (grub_probe_SOURCES): Likewise.
44042 (grub_emu_SOURCES): Likewise.
44043
44044 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44045 (grub_emu_SOURCES): Likewise.
44046
44047 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44048 (grub_emu_SOURCES): Likewise.
44049
44050 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
44051 (grub_emu_SOURCES): Likewise.
44052
44053 * fs/ntfs.c (grub_ntfscomp_func): New variable.
44054 (read_run_list): Renamed to grub_ntfs_read_run_list.
44055 (decomp_nextvcn): Moved to ntfscomp.c.
44056 (decomp_getch): Likewise.
44057 (decomp_get16): Likewise.
44058 (decomp_block): Likewise.
44059 (read_block): Likewise.
44060 (read_data): Partially moved to ntfscomp.c.
44061 (fixup): Change unsigned to grub_uint16_t.
44062 (read_mft): Change unsigned long to grub_uint32_t.
44063 (read_attr): Likewise.
44064 (read_data): Likewise.
44065 (read_run_data): Likewise.
44066 (read_run_list): Likewise.
44067 (read_mft): Likewise.
44068
44069 * fs/ntfscomp.c: New file.
44070
44071 * include/grub/ntfs.h: New file.
44072
af680a87 440732007-12-16 Robert Millan <rmh@aybabtu.com>
44074
44075 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
44076 IDE disk check, since Linux is known to support 20 IDE disks.
44077 Reported by Colin Watson.
44078
84be7599 440792007-12-15 Bean <bean123ch@gmail.com>
44080
44081 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
44082 (lnxboot_img_SOURCES): New variable.
44083 (lnxboot_img_ASFLAGS): Likewise.
44084 (lnxboot_img_LDFLAGS): Likewise.
44085
44086 * boot/i386/pc/lnxboot.S: New file.
44087
6af9db01 440882007-11-24 Pavel Roskin <proski@gnu.org>
44089
44090 * configure.ac: Test if '--build-id=none' is supported by the
44091 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
44092 objcopy to generate incorrect binary files (binutils
44093 2.17.50.0.18-1 as shipped by Fedora 8).
44094 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
44095 linking, so that build ID doesn't break the test.
44096
7361cfe6 440972007-11-24 Pavel Roskin <proski@gnu.org>
44098
44099 * include/grub/i386/time.h: use "void" in the argument list
44100 of grub_cpu_idle().
44101 * include/grub/powerpc/time.h: Likewise.
44102 * include/grub/sparc64/time.h: Likewise.
44103
1593e10c 441042007-11-18 Christian Franke <franke@computer.org>
44105
44106 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
44107 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
44108 This fixes the problem that function keys did not work in grub-emu.
44109
3b8db1a8 441102007-11-18 Christian Franke <franke@computer.org>
44111
44112 * disk/host.c (grub_host_open): Remove attribute unused from
44113 name parameter. Add check for "host". This fixes the problem
44114 that grub-emu does not find partitions.
44115
2e29408d 441162007-11-18 Christian Franke <franke@computer.org>
44117
44118 * util/hostfs.c (is_dir): New function.
44119 (grub_hostfs_dir): Handle missing dirent.d_type case.
44120 (grub_hostfs_read): Add missing fseek().
44121 (grub_hostfs_label): Clear label pointer. This fixes a crash
44122 of grub-emu on "ls (host)".
44123
398cd047 441242007-11-18 Christian Franke <franke@computer.org>
44125
44126 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
44127 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
44128 to 64 bit boundary by default.
44129
c405c391 441302007-11-18 Bean <bean123ch@gmail.com>
44131
44132 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
44133 (hexdump_mod_SOURCES): New variable.
44134 (hexdump_mod_CFLAGS): Likewise.
44135 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 44136
c405c391 44137 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44138
44139 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44140
44141 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44142
44143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
44144
44145 * include/grub/hexdump.h: New file.
44146
44147 * commands/hexdump.c: New file.
44148
5cced7fd 441492007-11-10 Robert Millan <rmh@aybabtu.com>
44150
44151 * commands/i386/pc/play.c (beep_off): Switch order of arguments
44152 in grub_outb() calls.
44153 (beep_on): Likewise.
44154
8b714eb0 441552007-11-10 Christian Franke <franke@computer.org>
44156
44157 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
44158 (grub_menu_run): Likewise.
44159
ce0f1839 441602007-11-10 Robert Millan <rmh@aybabtu.com>
44161
44162 * include/grub/i386/efi/machine.h: New file.
44163 * include/grub/i386/linuxbios/machine.h: Likewise.
44164 * include/grub/i386/pc/machine.h: Likewise.
44165 * include/grub/powerpc/ieee1275/machine.h: Likewise.
44166 * include/grub/sparc64/ieee1275/machine.h: Likewise.
44167
44168 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
44169 (serial_hw_io_addr): New variable.
44170 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
44171 instead of `(unsigned short *) 0x400'.
44172
270c237d 441732007-11-10 Bean <bean123ch@gmail.com>
44174
44175 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
44176
a87783bf 441772007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44178
44179 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
44180 (vga_mod_SOURCES): Added.
44181 (vga_mod_CFLAGS): Likewise.
44182 (vga_mod_LDFLAGS): Likewise.
44183
44184 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
44185 grub_outb() calls.
44186 (set_map_mask): Likewise.
44187 (set_read_map): Likewise.
44188 (set_read_address): Likewise.
44189 (vga_font): Removed variable.
44190 (get_vga_glyph): Removed function.
44191 (invalidate_char): Likewise.
44192 (write_char): Changed to use grub_font_get_glyph() for font
44193 information.
44194 (grub_vga_putchar): Likewise.
44195 (grub_vga_getcharwidth): Likewise.
44196
6433b448 441972007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
44198
44199 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
44200 flags.
44201 (pxeboot_img_LDFLAGS): Likewise.
44202 (diskboot_img_LDFLAGS): Likewise.
44203 (kernel_img_LDFLAGS): Likewise.
44204
49178511 442052007-11-06 Robert Millan <rmh@aybabtu.com>
44206
44207 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
44208 in grub_outb() calls.
44209 (serial_hw_init): Likewise.
44210
53b052de 442112007-11-05 Robert Millan <rmh@aybabtu.com>
44212
44213 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
44214 spaces. Skip non-regular files.
44215
5ab33bba 442162007-11-05 Robert Millan <rmh@aybabtu.com>
44217
44218 * kern/disk.c (grub_disk_firmware_fini)
44219 (grub_disk_firmware_is_tainted): New variables.
44220
44221 * include/grub/disk.h (grub_disk_firmware_fini)
44222 (grub_disk_firmware_is_tainted): Likewise.
44223
44224 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
44225 (grub_disk_biosdisk_fini): ... to here.
44226 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
44227 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
44228 is set. Register grub_disk_biosdisk_fini() in
44229 `grub_disk_firmware_fini'.
44230
44231 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
44232 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
44233 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
44234 to finish existing firmware disk interface.
44235
44236 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
44237 (ata_mod_SOURCES): New variable.
44238 (ata_mod_CFLAGS): Likewise.
44239 (ata_mod_LDFLAGS): Likewise.
44240
0149ab7c 442412007-11-05 Robert Millan <rmh@aybabtu.com>
44242
44243 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
44244 (grub_ata_wait): Reimplement using grub_millisleep().
44245
44246 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
44247 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
44248
be7ac41e 442492007-11-03 Marco Gerards <marco@gnu.org>
44250
44251 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
44252 (CRTC_ADDR_PORT): New macro.
44253 (CRTC_DATA_PORT): Likewise.
44254 (CRTC_CURSOR): Likewise.
44255 (CRTC_CURSOR_ADDR_HIGH): Likewise.
44256 (CRTC_CURSOR_ADDR_LOW): Likewise.
44257 (update_cursor): New function.
44258 (grub_console_real_putchar): Call `update_cursor'.
44259 (grub_console_gotoxy): Likewise.
44260 (grub_console_cls): Set the default color when clearing the
44261 screen.
44262 (grub_console_setcursor): Implemented.
44263
bb06ab2e 442642007-11-03 Marco Gerards <marco@gnu.org>
44265
44266 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
44267 become activate.
44268 (grub_ata_pio_write): Likewise.
44269
44270 (grub_atapi_identify): Wait after issuing an ATA command.
44271 (grub_atapi_packet): Likewise.
44272 (grub_ata_identify): Likewise.
44273 (grub_ata_readwrite): Likewise.
44274
cf8f780b 442752007-11-03 Marco Gerards <marco@gnu.org>
44276
44277 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
44278 (grub_ata_pio_write): Likewise.
44279 (grub_ata_readwrite): Use `grub_error', instead of
44280 returning `grub_errno'.
44281
ed649e54 442822007-11-03 Marco Gerards <marco@gnu.org>
44283
44284 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
44285 grub_ata_pio_write once for every single sector, instead of for
44286 multiple sectors.
44287
ca25d8f0 442882007-10-31 Robert Millan <rmh@aybabtu.com>
44289
44290 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
44291
44292 * conf/i386-linuxbios.rmk: New file.
44293
44294 * kern/i386/pc/hardware.c: Likewise.
44295 * term/i386/pc/at_keyboard.c: Likewise.
44296 * term/i386/pc/vga_text.c: Likewise.
44297
44298 * include/grub/i386/linuxbios/boot.h: Likewise.
44299 * include/grub/i386/linuxbios/console.h: Likewise.
44300 * include/grub/i386/linuxbios/init.h: Likewise.
44301 * include/grub/i386/linuxbios/kernel.h: Likewise.
44302 * include/grub/i386/linuxbios/loader.h: Likewise.
44303 * include/grub/i386/linuxbios/memory.h: Likewise.
44304 * include/grub/i386/linuxbios/serial.h: Likewise.
44305 * include/grub/i386/linuxbios/time.h: Likewise.
44306
44307 * kern/i386/linuxbios/init.c: Likewise.
44308 * kern/i386/linuxbios/startup.S: Likewise.
44309 * kern/i386/linuxbios/table.c: Likewise.
44310
e911ecc1 443112007-10-31 Marco Gerards <marco@gnu.org>
44312
44313 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
44314 (ata_mod_SOURCES): New variable.
44315 (ata_mod_CFLAGS): Likewise.
44316 (ata_mod_LDFLAGS): Likewise.
44317
44318 * disk/ata.c: New file.
44319
44320 * include/grub/disk.h (grub_disk_dev_id): Add
44321 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 44322
7f66d0e0 443232007-10-31 Robert Millan <rmh@aybabtu.com>
44324
44325 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
44326 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
44327
44328 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
44329 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
44330
44331 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
44332 `<grub/types.h>'.
44333
44334 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
44335
5cd7dd46 443362007-10-27 Robert Millan <rmh@aybabtu.com>
44337
3236ca65 44338 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 44339
2ebfc90f 443402007-10-22 Robert Millan <rmh@aybabtu.com>
44341
44342 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
44343 `"../realmode.S"'.
44344 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
44345
73fcb0f3 443462007-10-22 Robert Millan <rmh@aybabtu.com>
44347
44348 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
44349 (pkgdata_MODULES): Add `biosdisk.mod'.
44350 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
44351 variables.
44352
44353 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
44354 (grub_biosdisk_init): Replace with ...
44355 (GRUB_MOD_INIT(biosdisk)): ... this.
44356 (grub_biosdisk_fini): Replace with ...
44357 (GRUB_MOD_FINI(biosdisk)): ... this.
44358
44359 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
44360 (grub_machine_init): Remove call to grub_biosdisk_init().
44361 (grub_machine_fini): Remove call to grub_machine_fini().
44362
44363 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
44364
3381d274 443652007-10-22 Robert Millan <rmh@aybabtu.com>
44366
44367 * include/grub/time.h: New file.
44368 * include/grub/i386/time.h: Likewise.
44369 * include/grub/powerpc/time.h: Likewise.
44370 * include/grub/sparc64/time.h: Likewise.
44371
44372 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
44373 instances to ...
44374 (KERNEL_MACHINE_TIME_HEADER): ... this.
44375 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44376 instances to ...
44377 (KERNEL_MACHINE_TIME_HEADER): ... this.
44378 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
44379 instances to ...
44380 (KERNEL_MACHINE_TIME_HEADER): ... this.
44381
44382 * kern/i386/efi/init.c: Include `<grub/time.h>'.
44383 (grub_millisleep): New function.
44384 * kern/i386/pc/init.c: Include `<grub/time.h>'.
44385 (grub_millisleep): New function.
44386 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
44387 Remove `grub/machine/time.h' include.
44388 (grub_millisleep): New function.
44389 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
44390 Remove `grub/machine/time.h' include.
44391 (grub_millisleep): New function.
44392
44393 * include/grub/misc.h (grub_div_roundup): New function.
44394
44395 * kern/misc.c: Include `<grub/time.h>'.
44396 (grub_millisleep_generic): New function.
44397
44398 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
44399 Add `time.h'.
44400 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
44401 Add `time.h'.
44402 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
44403 `machine/time.h'. Add `time.h'.
44404 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
44405
a39a0312 444062007-10-21 Robert Millan <rmh@aybabtu.com>
44407
44408 * include/grub/misc.h (grub_max): New function.
44409
2aad70e2 444102007-10-21 Robert Millan <rmh@aybabtu.com>
44411
44412 * util/misc.c (grub_util_info): Call fflush() before returning.
44413
54b71c4b 444142007-10-20 Robert Millan <rmh@aybabtu.com>
44415
44416 * genmk.rb (Image): Copy `extra_flags' from here ...
44417 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
44418
44419 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
44420 to `argc' and `args' arguments.
44421
a979f513 444222007-10-17 Robert Millan <rmh@aybabtu.com>
44423
44424 * kern/i386/loader.S: New file.
44425
44426 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
44427 * kern/i386/loader.S (grub_linux_prot_size)... to here.
44428 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
44429 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
44430 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
44431 * kern/i386/loader.S (grub_linux_real_addr)... to here.
44432 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
44433 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
44434 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
44435 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
44436 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
44437 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
44438 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
44439 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
44440
44441 * kern/i386/realmode.S: New file.
44442
44443 * kern/i386/pc/startup.S (protstack): Moved from here ...
44444 * kern/i386/realmode.S (protstack)... to here.
44445 * kern/i386/pc/startup.S (gdt): Moved from here ...
44446 * kern/i386/realmode.S (gdt)... to here.
44447 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
44448 * kern/i386/realmode.S (prot_to_real)... to here.
44449
44450 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
44451 `kern/i386/realmode.S'.
44452
825fc8fd 444532007-10-17 Robert Millan <rmh@aybabtu.com>
44454
44455 * include/grub/i386/loader.h: New file.
44456
44457 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
44458 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44459 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44460 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44461 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
44462 * include/grub/i386/loader.h (grub_linux_prot_size)
44463 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
44464 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
44465 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
44466 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
44467
44468 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
44469
e179b2f4 444702007-10-15 Robert Millan <rmh@aybabtu.com>
44471
44472 * normal/misc.c (grub_normal_print_device_info): Do not probe for
44473 filesystem when dev->disk is unset.
44474 Do probe for filesystem even when dev->disk->has_partitions is set.
44475 In case a filesystem is found, always report it.
44476 In case it isn't, if dev->disk->has_partitions is set, report that
44477 a partition table was found instead of reporting that no filesystem
44478 could be identified.
44479
5db82af6 444802007-10-12 Robert Millan <rmh@aybabtu.com>
44481
44482 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
44483 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
44484
68f6ac74 44485 * include/grub/types.h (grub_host_to_target16): New macro.
44486 (grub_host_to_target32): Likewise.
44487 (grub_host_to_target64): Likewise.
44488 (grub_target_to_host16): Likewise.
44489 (grub_target_to_host32): Likewise.
44490 (grub_target_to_host64): Likewise.
5db82af6 44491
44492 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
44493 Renamed from to ...
44494 (GRUB_MOD_ALIGN): ...this. Update all users.
44495
68f6ac74 44496 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
44497 grub_host_to_target32.
44498 Replace grub_be_to_cpu32 with grub_target_to_host32.
44499 (load_modules): Likewise.
44500 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
44501 Replace grub_be_to_cpu32 with grub_target_to_host32.
44502 Replace grub_cpu_to_be16 with grub_host_to_target16.
44503 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 44504
3cf497cc 445052007-10-12 Robert Millan <rmh@aybabtu.com>
44506
44507 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
44508 * util/elf/grub-mkimage.c: ... here.
44509
44510 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
44511 `util/powerpc/ieee1275/grub-mkimage.c'.
44512
c8cc3692 445132007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 44514
c8cc3692 44515 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
44516 and make it easier to figure out.
44517 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
44518 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
44519 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
44520 leave us with less than HEAP_MIN_SIZE total heap.
44521 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 44522
5c58b791 445232007-10-03 Robert Millan <rmh@aybabtu.com>
44524
44525 * include/grub/i386/io.h: New file.
44526 * commands/i386/pc/play.c (inb): Removed.
44527 (outb): Removed.
44528 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44529 with grub_outb().
afcd2ef8 44530 * term/i386/pc/serial.c (inb): Removed.
44531 (outb): Removed.
44532 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44533 with grub_outb().
44534 * term/i386/pc/vga.c (inb): Removed.
44535 (outb): Removed.
44536 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
44537 with grub_outb().
5c58b791 44538
1a477ed6 445392007-10-02 Robert Millan <rmh@aybabtu.com>
44540
44541 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
44542 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44543 Reported by Marcin Kurek.
44544
6b5d80fa 445452007-09-07 Robert Millan <rmh@aybabtu.com>
44546
44547 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
44548 SmartFirmware version updates (as released by Sven Luther), and avoid
44549 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
44550 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
44551 known broken.
44552
5618afbf 445532007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44554
44555 From Hitoshi Ozeki:
44556 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
44557 when merging two regions.
44558
6139dcd9 445592007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44560
508e39ee 44561 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
44562 * normal/completion.c (grub_normal_do_completion): Likewise.
44563 Reported by Hitoshi Ozeki.
44564
445652007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 44566
6139dcd9 44567 Do not use devices at boot in chainloading.
f19dbdb7 44568
6139dcd9 44569 * loader/i386/pc/chainloader.c (boot_drive): New variable.
44570 (boot_part_addr): Likewise.
44571 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
44572 with BOOT_DRIVE and BOOT_PART_ADDR.
44573 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
44574 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
44575
38da6516 445762007-08-29 Robert Millan <rmh@aybabtu.com>
44577
44578 Patch from Simon Peter <dn.tlp@gmx.net>:
44579 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
44580 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
44581 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
44582 util/i386/pc/grub-setup.c_DEPENDENCIES.
44583 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
44584 util/grub-probe.c_DEPENDENCIES.
44585 * conf/powerpc-ieee1275.rmk: Likewise.
44586
29d0928c 445872007-08-28 Robert Millan <rmh@aybabtu.com>
44588
44589 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
44590 to tell grub-mkdevicemap how to name devices.
44591 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
44592 feature).
44593
44594 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
44595 util/i386/get_disk_name.c.
44596 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
44597 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
44598 util/ieee1275/get_disk_name.c.
44599
44600 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
44601
44602 * DISTLIST: Add util/i386/get_disk_name.c and
44603 util/ieee1275/get_disk_name.c.
44604
44605 * util/grub-mkdevicemap.c: Replace device naming logic with
44606 grub_util_get_disk_name() calls.
44607
5a0d3cca 446082007-08-20 Robert Millan <rmh@aybabtu.com>
44609
44610 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
44611 (so that it works for both plural and singular quantities).
44612
8b72db2f 446132007-08-05 Robert Millan <rmh@aybabtu.com>
44614
44615 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
44616 so that [xz] isn't taken into account when determining order.
44617
352466bf 446182007-08-02 Marco Gerards <marco@gnu.org>
44619
44620 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
44621 `include/multiboot2.h', `include/grub/elfload.h',
44622 `include/multiboot.h', `include/grub/multiboot.h',
44623 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
44624 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
44625 `kern/elf.c', `loader/multiboot_loader.c',
44626 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
44627 `loader/i386/pc/multiboot2.c',
44628 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
44629 `util/i386/pc/grub-mkrescue.in'. Remove
44630 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
44631 `include/grub/i386/pc/util/biosdisk.h' and
44632 `include/grub/powerpc/ieee1275/multiboot.h'.
44633
8f096014 446342007-08-02 Bean <bean123ch@gmail.com>
44635
44636 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
44637 (ntfs_mod_SOURCES): New variable.
44638 (ntfs_mod_CFLAGS): Likewise.
44639 (ntfs_mod_LDFLAGS): Likewise.
44640
44641 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
44642 (grub_probe_SOURCES): Likewise.
44643 (grub_emu_SOURCES): Likewise.
44644
44645 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44646 (grub_emu_SOURCES): Likewise.
44647
44648 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
44649 (grub_emu_SOURCES): Likewise.
f19dbdb7 44650
8f096014 44651 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
44652
44653 * fs/ntfs.c: New file.
44654
9959f7db 446552007-08-02 Bean <bean123ch@gmail.com>
44656
44657 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
44658
44659 * file.h (grub_file): Likewise.
44660
44661 * fshelp.h (grub_fshelp_read_file): Likewise.
44662
44663 * util/i386/pc/grub-setup.c (setup): Likewise.
44664 (save_first_sector): Likewise.
44665 (save_blocklists): Likewise.
f19dbdb7 44666
9959f7db 44667 * fs/affs.c (grub_affs_read_file): Likewise.
44668
44669 * fs/ext2.c (grub_ext2_read_file): Likewise.
44670
44671 * fs/fat.c (grub_fat_read_data): Likewise.
44672
44673 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
44674
44675 * fs/hfs.c (grub_hfs_read_file): Likewise.
44676
44677 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
44678
44679 * fs/jfs.c (grub_jfs_read_file): Likewise.
44680
44681 * fs/minix.c (grub_minix_read_file): Likewise.
44682
44683 * fs/sfs.c (grub_sfs_read_file): Likewise.
44684
44685 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 44686
9959f7db 44687 * fs/xfs.c (grub_xfs_read_file): Likewise.
44688
44689 * command/blocklist.c (read_blocklist): Likewise.
44690 (print_blocklist): Likewise.
44691
0a203f83 446922007-08-02 Marco Gerards <marco@gnu.org>
44693
44694 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
44695 `util/hostfs.c'.
44696
44697 * disk/host.c: New file.
44698
44699 * util/hostfs.c: Likewise.
44700
44701 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
44702 return `GRUB_ERR_BAD_FS'.
44703 * fs/sfs.c (grub_sfs_mount): Likewise.
44704 * fs/xfs.c (grub_xfs_mount): Likewise.
44705
44706 * include/grub/disk.h (enum grub_disk_dev_id): Add
44707 `GRUB_DISK_DEVICE_HOST_ID'.
44708
44709 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
44710
e5dfe777 447112007-07-24 Jerone Young <jerone@gmail.com>
44712
f19dbdb7 44713 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 44714 modules for compilation.
44715 * conf/powerpc-ieee1275.rmk: Likewise.
44716
44717 * include/multiboot.h: Move multiboot definitions to one file. Rename
44718 many definitions to not get grub specific.
44719 * include/multiboot2.h: Create header with multiboot 2 definitions.
44720 * include/grub/multiboot.h: Header for grub specific function
44721 prototypes and definitions.
44722 * include/grub/multiboot2.h: Likewise.
44723 * include/grub/multiboot_loader.h: Likewise.
44724 * include/grub/i386/pc/multiboot.h: Removed.
44725 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
44726
44727 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
44728 and 2 to allow for one multiboot and module commands.
44729 * loader/multiboot2.c: Add multiboot2 functionality.
44730 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
44731 and definition names.
44732 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
44733 2 functions.
44734 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
44735 ieee1275 specific multiboot2 code.
44736
44737 * kern/i386/pc/startup.S: Change headers and definition names for
44738 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
44739
daf0f0ba 447402007-07-22 Robert Millan <rmh@aybabtu.com>
44741
44742 * geninitheader.sh: Process file specified in first parameter rather
44743 than hardcoding grub_modules_init.lst.
fe6b695a 44744 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 44745 than hardcoding grub_modules_init.h.
44746
44747 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
44748 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
44749 grub_probe_init.[ch] and grub_setup_init.[ch].
44750
44751 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
44752 grub_modules_init.h with grub_emu_init.h.
44753 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
44754 grub_probe_init.[ch] files.
44755 * conf/i386-efi.rmk: Likewise.
44756 * conf/i386-pc.rmk: Likewise.
44757 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
44758 grub_setup_init.[ch] files.
44759
44760 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
44761 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
44762 to initialize modules rather than a list of hardcoded functions.
44763 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
44764 grub_init_all() to initialize modules rather than a list of hardcoded
44765 functions.
44766
54cdc1cc 447672007-07-22 Robert Millan <rmh@aybabtu.com>
44768
44769 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
44770 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
44771
ad0686cc 447722007-07-22 Robert Millan <rmh@aybabtu.com>
44773
44774 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
44775 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
44776 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
44777 flag when running on SmartFirmware.
44778 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
44779 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
44780 was set.
44781
44782 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
44783 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
44784 rather than decreasing it.
44785
44786 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
44787 there's not enough space to do it, fail in the same way as when it
44788 can't be done because there are no partitions.
44789
44790 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
44791 when nvsetenv failed.
44792
969c02ec 447932007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44794
44795 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
44796 because this rule is automatically generated.
44797 (grub-mkrescue): Removed for the same reason as above.
44798
5a79f472 447992007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
44800
44801 Migrate to GNU General Public License Version 3.
f19dbdb7 44802
5a79f472 44803 * COPYING: Replaced with the plain text version of GPLv3.
44804
44805 * config.guess: Updated from gnulib.
44806 * config.sub: Likewise.
44807
44808 * geninit.sh: Output a GPLv3 copyright notice.
44809 * geninitheader.sh: Likewise.
44810 * genmodsrc.sh: Likewise.
44811 * gensymlist.sh.in: Likewise.
44812
44813 * boot/i386/pc/boot.S: Upgraded to GPLv3.
44814 * boot/i386/pc/diskboot.S: Likewise.
44815 * boot/i386/pc/pxeboot.S: Likewise.
44816 * commands/blocklist.c: Likewise.
44817 * commands/boot.c: Likewise.
44818 * commands/cat.c: Likewise.
44819 * commands/cmp.c: Likewise.
44820 * commands/configfile.c: Likewise.
44821 * commands/echo.c: Likewise.
44822 * commands/help.c: Likewise.
44823 * commands/ls.c: Likewise.
44824 * commands/search.c: Likewise.
44825 * commands/terminal.c: Likewise.
44826 * commands/test.c: Likewise.
44827 * commands/videotest.c: Likewise.
44828 * commands/i386/cpuid.c: Likewise.
44829 * commands/i386/pc/halt.c: Likewise.
44830 * commands/i386/pc/play.c: Likewise.
44831 * commands/i386/pc/reboot.c: Likewise.
44832 * commands/i386/pc/vbeinfo.c: Likewise.
44833 * commands/i386/pc/vbetest.c: Likewise.
44834 * commands/ieee1275/halt.c: Likewise.
44835 * commands/ieee1275/reboot.c: Likewise.
44836 * commands/ieee1275/suspend.c: Likewise.
44837 * disk/loopback.c: Likewise.
44838 * disk/lvm.c: Likewise.
44839 * disk/raid.c: Likewise.
44840 * disk/efi/efidisk.c: Likewise.
44841 * disk/i386/pc/biosdisk.c: Likewise.
44842 * disk/ieee1275/ofdisk.c: Likewise.
44843 * font/manager.c: Likewise.
44844 * fs/affs.c: Likewise.
44845 * fs/ext2.c: Likewise.
44846 * fs/fat.c: Likewise.
44847 * fs/fshelp.c: Likewise.
44848 * fs/hfs.c: Likewise.
44849 * fs/hfsplus.c: Likewise.
44850 * fs/iso9660.c: Likewise.
44851 * fs/jfs.c: Likewise.
44852 * fs/minix.c: Likewise.
44853 * fs/sfs.c: Likewise.
44854 * fs/ufs.c: Likewise.
44855 * fs/xfs.c: Likewise.
44856 * hello/hello.c: Likewise.
44857 * include/grub/acorn_filecore.h: Likewise.
44858 * include/grub/arg.h: Likewise.
44859 * include/grub/bitmap.h: Likewise.
44860 * include/grub/boot.h: Likewise.
44861 * include/grub/cache.h: Likewise.
44862 * include/grub/device.h: Likewise.
44863 * include/grub/disk.h: Likewise.
44864 * include/grub/dl.h: Likewise.
44865 * include/grub/elfload.h: Likewise.
44866 * include/grub/env.h: Likewise.
44867 * include/grub/err.h: Likewise.
44868 * include/grub/file.h: Likewise.
44869 * include/grub/font.h: Likewise.
44870 * include/grub/fs.h: Likewise.
44871 * include/grub/fshelp.h: Likewise.
44872 * include/grub/gzio.h: Likewise.
44873 * include/grub/hfs.h: Likewise.
44874 * include/grub/kernel.h: Likewise.
44875 * include/grub/loader.h: Likewise.
44876 * include/grub/lvm.h: Likewise.
44877 * include/grub/misc.h: Likewise.
44878 * include/grub/mm.h: Likewise.
44879 * include/grub/net.h: Likewise.
44880 * include/grub/normal.h: Likewise.
44881 * include/grub/parser.h: Likewise.
44882 * include/grub/partition.h: Likewise.
44883 * include/grub/pc_partition.h: Likewise.
44884 * include/grub/raid.h: Likewise.
44885 * include/grub/rescue.h: Likewise.
44886 * include/grub/script.h: Likewise.
44887 * include/grub/setjmp.h: Likewise.
44888 * include/grub/symbol.h: Likewise.
44889 * include/grub/term.h: Likewise.
44890 * include/grub/terminfo.h: Likewise.
44891 * include/grub/tparm.h: Likewise.
44892 * include/grub/types.h: Likewise.
44893 * include/grub/video.h: Likewise.
44894 * include/grub/efi/api.h: Likewise.
44895 * include/grub/efi/chainloader.h: Likewise.
44896 * include/grub/efi/console.h: Likewise.
44897 * include/grub/efi/console_control.h: Likewise.
44898 * include/grub/efi/disk.h: Likewise.
44899 * include/grub/efi/efi.h: Likewise.
44900 * include/grub/efi/pe32.h: Likewise.
44901 * include/grub/efi/time.h: Likewise.
44902 * include/grub/i386/linux.h: Likewise.
44903 * include/grub/i386/setjmp.h: Likewise.
44904 * include/grub/i386/types.h: Likewise.
44905 * include/grub/i386/efi/kernel.h: Likewise.
44906 * include/grub/i386/efi/loader.h: Likewise.
44907 * include/grub/i386/efi/time.h: Likewise.
44908 * include/grub/i386/pc/biosdisk.h: Likewise.
44909 * include/grub/i386/pc/boot.h: Likewise.
44910 * include/grub/i386/pc/chainloader.h: Likewise.
44911 * include/grub/i386/pc/console.h: Likewise.
44912 * include/grub/i386/pc/init.h: Likewise.
44913 * include/grub/i386/pc/kernel.h: Likewise.
44914 * include/grub/i386/pc/loader.h: Likewise.
44915 * include/grub/i386/pc/memory.h: Likewise.
44916 * include/grub/i386/pc/multiboot.h: Likewise.
44917 * include/grub/i386/pc/serial.h: Likewise.
44918 * include/grub/i386/pc/time.h: Likewise.
44919 * include/grub/i386/pc/vbe.h: Likewise.
44920 * include/grub/i386/pc/vbeblit.h: Likewise.
44921 * include/grub/i386/pc/vbefill.h: Likewise.
44922 * include/grub/i386/pc/vbeutil.h: Likewise.
44923 * include/grub/i386/pc/vga.h: Likewise.
44924 * include/grub/ieee1275/ieee1275.h: Likewise.
44925 * include/grub/ieee1275/ofdisk.h: Likewise.
44926 * include/grub/powerpc/libgcc.h: Likewise.
44927 * include/grub/powerpc/setjmp.h: Likewise.
44928 * include/grub/powerpc/types.h: Likewise.
44929 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
44930 * include/grub/powerpc/ieee1275/console.h: Likewise.
44931 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
44932 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
44933 * include/grub/powerpc/ieee1275/loader.h: Likewise.
44934 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
44935 * include/grub/powerpc/ieee1275/time.h: Likewise.
44936 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
44937 * include/grub/sparc64/libgcc.h: Likewise.
44938 * include/grub/sparc64/setjmp.h: Likewise.
44939 * include/grub/sparc64/types.h: Likewise.
44940 * include/grub/sparc64/ieee1275/console.h: Likewise.
44941 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44942 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44943 * include/grub/sparc64/ieee1275/time.h: Likewise.
44944 * include/grub/util/biosdisk.h: Likewise.
44945 * include/grub/util/getroot.h: Likewise.
44946 * include/grub/util/lvm.h: Likewise.
44947 * include/grub/util/misc.h: Likewise.
44948 * include/grub/util/raid.h: Likewise.
44949 * include/grub/util/resolve.h: Likewise.
44950 * io/gzio.c: Likewise.
44951 * kern/device.c: Likewise.
44952 * kern/disk.c: Likewise.
44953 * kern/dl.c: Likewise.
44954 * kern/elf.c: Likewise.
44955 * kern/env.c: Likewise.
44956 * kern/err.c: Likewise.
44957 * kern/file.c: Likewise.
44958 * kern/fs.c: Likewise.
44959 * kern/loader.c: Likewise.
44960 * kern/main.c: Likewise.
44961 * kern/misc.c: Likewise.
44962 * kern/mm.c: Likewise.
44963 * kern/parser.c: Likewise.
44964 * kern/partition.c: Likewise.
44965 * kern/rescue.c: Likewise.
44966 * kern/term.c: Likewise.
44967 * kern/efi/efi.c: Likewise.
44968 * kern/efi/init.c: Likewise.
44969 * kern/efi/mm.c: Likewise.
44970 * kern/i386/dl.c: Likewise.
44971 * kern/i386/efi/init.c: Likewise.
44972 * kern/i386/efi/startup.S: Likewise.
44973 * kern/i386/pc/init.c: Likewise.
44974 * kern/i386/pc/lzo1x.S: Likewise.
44975 * kern/i386/pc/startup.S: Likewise.
44976 * kern/ieee1275/ieee1275.c: Likewise.
44977 * kern/powerpc/cache.S: Likewise.
44978 * kern/powerpc/dl.c: Likewise.
44979 * kern/powerpc/ieee1275/cmain.c: Likewise.
44980 * kern/powerpc/ieee1275/crt0.S: Likewise.
44981 * kern/powerpc/ieee1275/init.c: Likewise.
44982 * kern/powerpc/ieee1275/openfw.c: Likewise.
44983 * kern/sparc64/cache.S: Likewise.
44984 * kern/sparc64/dl.c: Likewise.
44985 * kern/sparc64/ieee1275/init.c: Likewise.
44986 * kern/sparc64/ieee1275/openfw.c: Likewise.
44987 * loader/efi/chainloader.c: Likewise.
44988 * loader/efi/chainloader_normal.c: Likewise.
44989 * loader/i386/efi/linux.c: Likewise.
44990 * loader/i386/efi/linux_normal.c: Likewise.
44991 * loader/i386/pc/chainloader.c: Likewise.
44992 * loader/i386/pc/chainloader_normal.c: Likewise.
44993 * loader/i386/pc/linux.c: Likewise.
44994 * loader/i386/pc/linux_normal.c: Likewise.
44995 * loader/i386/pc/multiboot.c: Likewise.
44996 * loader/i386/pc/multiboot_normal.c: Likewise.
44997 * loader/powerpc/ieee1275/linux.c: Likewise.
44998 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
44999 * normal/arg.c: Likewise.
45000 * normal/cmdline.c: Likewise.
45001 * normal/command.c: Likewise.
45002 * normal/completion.c: Likewise.
45003 * normal/execute.c: Likewise.
45004 * normal/function.c: Likewise.
45005 * normal/lexer.c: Likewise.
45006 * normal/main.c: Likewise.
45007 * normal/menu.c: Likewise.
45008 * normal/menu_entry.c: Likewise.
45009 * normal/misc.c: Likewise.
45010 * normal/parser.y: Likewise.
45011 * normal/script.c: Likewise.
45012 * normal/i386/setjmp.S: Likewise.
45013 * normal/powerpc/setjmp.S: Likewise.
45014 * normal/sparc64/setjmp.S: Likewise.
45015 * partmap/acorn.c: Likewise.
45016 * partmap/amiga.c: Likewise.
45017 * partmap/apple.c: Likewise.
45018 * partmap/gpt.c: Likewise.
45019 * partmap/pc.c: Likewise.
45020 * partmap/sun.c: Likewise.
45021 * term/gfxterm.c: Likewise.
45022 * term/terminfo.c: Likewise.
45023 * term/efi/console.c: Likewise.
45024 * term/i386/pc/console.c: Likewise.
45025 * term/i386/pc/serial.c: Likewise.
45026 * term/i386/pc/vesafb.c: Likewise.
45027 * term/i386/pc/vga.c: Likewise.
45028 * term/ieee1275/ofconsole.c: Likewise.
45029 * util/biosdisk.c: Likewise.
45030 * util/console.c: Likewise.
45031 * util/genmoddep.c: Likewise.
45032 * util/getroot.c: Likewise.
45033 * util/grub-emu.c: Likewise.
45034 * util/grub-mkdevicemap.c: Likewise.
45035 * util/grub-probe.c: Likewise.
45036 * util/lvm.c: Likewise.
45037 * util/misc.c: Likewise.
45038 * util/raid.c: Likewise.
45039 * util/resolve.c: Likewise.
45040 * util/update-grub.in: Likewise.
45041 * util/update-grub_lib.in: Likewise.
45042 * util/grub.d/00_header.in: Likewise.
45043 * util/grub.d/10_hurd.in: Likewise.
45044 * util/grub.d/10_linux.in: Likewise.
45045 * util/i386/efi/grub-install.in: Likewise.
45046 * util/i386/efi/grub-mkimage.c: Likewise.
45047 * util/i386/pc/grub-install.in: Likewise.
45048 * util/i386/pc/grub-mkimage.c: Likewise.
45049 * util/i386/pc/grub-mkrescue.in: Likewise.
45050 * util/i386/pc/grub-setup.c: Likewise.
45051 * util/i386/pc/misc.c: Likewise.
45052 * util/powerpc/ieee1275/grub-install.in: Likewise.
45053 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
45054 * util/powerpc/ieee1275/misc.c: Likewise.
45055 * video/bitmap.c: Likewise.
45056 * video/video.c: Likewise.
45057 * video/i386/pc/vbe.c: Likewise.
45058 * video/i386/pc/vbeblit.c: Likewise.
45059 * video/i386/pc/vbefill.c: Likewise.
45060 * video/i386/pc/vbeutil.c: Likewise.
45061 * video/readers/tga.c: Likewise.
45062
3572d015 450632007-07-02 Robert Millan <rmh@aybabtu.com>
45064
45065 * conf/i386-efi.rmk: Replace obsolete reference to
45066 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
45067 with util/getroot.c.
45068 * conf/powerpc-ieee1275.rmk: Likewise.
45069 * conf/sparc64-ieee1275.rmk: Likewise.
45070
45071 * util/grub-emu.c (main): Fix unchecked pointer handling.
45072
2c2a681b 450732007-07-02 Robert Millan <rmh@aybabtu.com>
45074
45075 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
45076 invocation to fail, in order to support partition-less media.
45077
45078 * util/i386/pc/grub-install.in: Likewise.
45079
45080 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
45081 which fs or partmap modules are needed (akin to its sister scripts).
45082
45083 Also use grub-probe to get rid of unportable /proc/mounts check.
45084
45085 Print the same informational message that the other scripts do, before
fe6b695a 45086 exiting.
2c2a681b 45087
6193defe 450882007-06-23 Robert Millan <rmh@aybabtu.com>
45089
fe6b695a 45090 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 45091 a font file can be found and, if so, echo the GRUB path to it.
45092
45093 * util/update-grub.in: Handle multiple terminals depending on user
45094 input, platform availability and font file presence. Propagate
45095 variables of our findings to /etc/grub.d/ children.
45096
45097 * util/grub.d/00_header.in: Handle multiple terminals, based on
45098 environment setup by update-grub.
45099
eface1dc 451002007-06-23 Robert Millan <rmh@aybabtu.com>
45101
ba50d28f 45102 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 45103
bf697e28 451042007-06-21 Robert Millan <rmh@aybabtu.com>
45105
45106 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
45107 indicate end of data section in kernel image.
45108 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
45109 GRUB_KERNEL_MACHINE_DATA_END.
45110
45111 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
45112 space for it.
45113 * kern/i386/efi/startup.S: Likewise.
45114
45115 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
45116 during image generation. Implement --prefix option to override this
45117 patch.
45118 * util/i386/efi/grub-mkimage.c: Likewise.
45119
45120 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
45121 code to make path relative to its root into a separate function.
45122
45123 * util/i386/pc/grub-install.in: Use newly provided
45124 make_system_path_relative_to_its_root() to convert ${grubdir}, then
45125 pass the result to grub-install --prefix.
45126
baa574b4 451272007-06-13 Robert Millan <rmh@aybabtu.com>
45128
45129 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
45130 DEFAULT_DEVICE_MAP.
45131 * util/grub-emu.c: Use above definitions from misc.h instead of
45132 defining them.
45133 * util/grub-mkdevicemap.c: Likewise.
45134 * util/i386/pc/grub-setup.c: Likewise.
45135 * util/grub-probe.c: Likewise.
45136 (probe): Abort with grub_util_error() when either
45137 grub_guess_root_device or grub_util_get_grub_dev fails.
45138
0215dcbf 451392007-06-12 Robert Millan <rmh@aybabtu.com>
45140
45141 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
45142 "pager" assignment.
45143 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
45144 "pcdata".
45145 * util/grub-probe.c (probe): Likewise for "drive_name".
45146
8af2ab7b 451472007-06-11 Robert Millan <rmh@aybabtu.com>
45148
45149 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
45150 not just the cdrom one.
45151
59d31694 451522007-06-11 Robert Millan <rmh@aybabtu.com>
45153
45154 * util/i386/pc/grub-mkrescue.in: Add "set -e".
45155 Add --pkglibdir=DIR option to override pkglibdir.
45156 Mention --image-type=TYPE in help output.
45157 Fix --grub-mkimage (it was a no-op).
fe6b695a 45158 Abort gracefully when no parameter is given.
59d31694 45159
7ee367e4 451602007-06-11 Robert Millan <rmh@aybabtu.com>
45161
45162 * util/i386/pc/grub-mkrescue.in: New file.
45163 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
45164 * Makefile.in: Handle bin_SCRIPTS.
45165
29b0ed46 451662007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
45167
45168 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
45169 list of video modes.
45170
c0f90770 451712007-06-06 Robert Millan <rmh@aybabtu.com>
45172
45173 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
45174 file doesn't exist, or if it is in a filesystem grub can't read.
45175
45176 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
45177 not abort if GRUB_DRIVE could not be defined. Rearrange generated
45178 header comment to fit in 80 columns when the variables are resolved.
45179
45180 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
45181 could be identified by update-grub. Remove redundant check for
fe6b695a 45182 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 45183 handles that).
45184
fb36dc26 451852007-06-04 Robert Millan <rmh@aybabtu.com>
45186
45187 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
45188
45189 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
45190
45191 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
45192
0c68c93e 451932007-06-04 Robert Millan <rmh@aybabtu.com>
45194
45195 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
45196
45197 * include/grub/partition.h: Declare grub_apple_partition_map_init and
45198 grub_apple_partition_map_fini.
45199
45200 * util/biosdisk.c
45201 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
45202 to access >2 TiB disks).
45203
45204 Print disk->total_sectors with %llu instead of %lu, since this
45205 variable is always 64-bit (prevents wrong disk size from being displayed
45206 on either >2 TiB disk or big-endian CPU).
45207
45208 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
45209 into a generic case that supports all (sane) partition maps.
45210
45211 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
45212 breaks big-endian.
45213
45214 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
45215 and grub_apple_partition_map_fini() after that.
45216
0f23eb74 452172007-06-01 Robert Millan <rmh@aybabtu.com>
45218
45219 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
45220
45221 * util/grub.d/00_header.in: Only enable gfxterm when
45222 convert_system_path_to_grub_path() succeeds.
45223
42c71976 452242007-05-20 Robert Millan <rmh@aybabtu.com>
45225
45226 * util/update-grub_lib.in: New file.
45227 * DISTLIST: Add update-grub_lib.in.
45228 * conf/common.rmk: Generate update-grub_lib and install it in
45229 $(lib_DATA).
45230 * Makefile.in: Add install routine for $(lib_DATA).
45231
45232 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
45233 function provided by update-grub_lib to support arbitrary paths of
45234 unifont.pff.
45235 * util/update-grub.in: Use convert_system_path_to_grub_path() to
45236 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
45237
5beb2291 452382007-05-19 Robert Millan <rmh@aybabtu.com>
45239
45240 * commands/i386/cpuid.c: New module.
45241 * DISTLIST: Add it.
45242 * conf/i386-efi.rmk: Enable cpuid.mod.
45243 * conf/i386-pc.rmk: Likewise.
45244
7262eca1 452452007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45246
45247 * kern/disk.c (grub_disk_read): Check return value of
45248 grub_realloc().
45249
260ba823 452502007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
45251
45252 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
45253 arrays.
45254 * disk/raid.c (grub_raid_open): Likewise.
45255
1ecb6cf2 452562007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45257
45258 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
45259 stack instead of on the heap.
45260
45261 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
45262 before doing a read on it.
45263
45264 * configure.ac: Only use -fno-stack-protector for the target
45265 environment.
f19dbdb7 45266
21c8cbb1 452672007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
45268
45269 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
45270 __attribute_ ((unused)) to mode_type argument.
45271
45272 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 45273
21c8cbb1 45274 * kern/misc.c (memcmp): Fix prototype.
45275
45276 * include/grub/partition.h [GRUB_UTIL]
45277 (grub_gpt_partition_map_init): Add prototype.
45278 (grub_gpt_partition_map_fini): Likewise.
45279
45280 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
45281 at the right place.
45282
45283 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
45284 (grub_fat_read_data): Likewise.
45285 (grub_fat_find_dir): Likewise.
45286
45287 * font/manager.c (find_glyph): Make table a const.
45288 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 45289
849d55d3 452902007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
45291
45292 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
45293 code, first search for device in /dev/mapper, then in /dev.
45294 (grub_util_get_grub_dev): New function.
45295 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
45296 prototype.
45297 * util/grub-probe.c (probe): Remove check for RAID, call
45298 grub_util_get_grub_dev() instead of
45299 grub_util_biosdisk_get_grub_dev().
45300 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
45301 grub_util_biosdisk_get_grub_dev().
45302 * util/i386/pc/grub-setup.c (main): Likewise.
45303
8fff7c2f 453042007-05-16 Robert Millan <rmh@aybabtu.com>
45305
45306 * DISTLIST: Update for the latest changes.
45307 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
45308 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
45309 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
45310 grub/util/biosdisk.h.
45311 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
45312 grub/util/biosdisk.h.
45313
48e12b52 453142007-05-16 Robert Millan <rmh@aybabtu.com>
45315
45316 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
45317
46b9d128 453182007-05-16 Robert Millan <rmh@aybabtu.com>
45319
45320 * util/i386/efi/grub-install.in: New.
45321 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
45322 newly added grub-install.
45323 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
45324 include.
45325 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
45326 grub/util/biosdisk.h.
45327 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
45328 grub/util/biosdisk.h.
45329
2d1a40a9 453302007-05-16 Robert Millan <rmh@aybabtu.com>
45331
45332 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
45333 * include/grub/util/biosdisk.h: ... here.
45334 * util/i386/pc/biosdisk.c: Moved to ...
45335 * util/biosdisk.c: ... here.
45336 * util/i386/pc/getroot.c: Moved to ...
45337 * util/getroot.c: ... here.
45338 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
45339 * util/grub-mkdevicemap.c: ... here.
45340 * util/i386/pc/grub-probe.c: Moved to ...
45341 * util/grub-probe.c: ... here.
45342
9e26e3bc 453432007-05-15 Robert Millan <rmh@aybabtu.com>
45344
45345 * util/update-grub.in: Remove duplicated line in grub.cfg header
45346 message.
45347
57f96397 453482007-05-13 Robert Millan <rmh@aybabtu.com>
45349
45350 * util/update-grub.in: Fix a few assumptions about the devices holding
45351 /, /boot and /boot/grub being the same.
45352 * util/grub.d/00_header.in: Likewise.
45353 * util/grub.d/10_hurd.in: Likewise.
45354 * util/grub.d/10_linux.in: Likewise.
45355
45356 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
45357 patterns. Use that to define the `.old' suffix as older than `'.
45358
45359 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
45360
45361 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
45362 the grub.cfg header message.
45363
2e610d62 453642007-05-11 Robert Millan <rmh@aybabtu.com>
45365
45366 * util/update-grub.in: Create device.map if it doesn't already exist,
45367 before attempting to run grub-probe.
45368 Check for grub-probe and grub-mkdevicemap with the same code
45369 grub-install is using.
45370 Remove test mode.
45371
3f6a10ef 453722007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
45373
45374 * Makefile.in: Add the datarootdir autoconf variable.
45375
02e7b75e 453762007-05-09 Robert Millan <rmh@aybabtu.com>
45377
45378 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 45379 fail gracefully if dev->disk->partition == NULL.
02e7b75e 45380
75f396cc 453812007-05-07 Robert Millan <rmh@aybabtu.com>
45382
45383 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
45384 determine partition map module.
45385 * util/i386/pc/grub-install.in: Use this feature to decide which
45386 partition module to load, instead of hardcoding pc and gpt.
45387
da65cb36 453882007-05-07 Robert Millan <rmh@aybabtu.com>
45389
45390 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
45391 source directory differs from build directory.
45392
b57d6a91 453932007-05-05 Robert Millan <rmh@aybabtu.com>
45394
45395 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
45396 initialisation.
45397
509d00f1 453982007-05-05 Robert Millan <rmh@aybabtu.com>
45399
45400 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
45401
c48f23ef 454022007-05-05 Robert Millan <rmh@aybabtu.com>
45403
45404 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
45405 command-line arguments via ${GRUB_CMDLINE_LINUX}.
45406
20b97658 454072007-05-05 Robert Millan <rmh@aybabtu.com>
45408
45409 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
45410 (grub_probe_SOURCES): Likewise.
45411 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
45412 GPT and initialize dos_part and bsd_part accordingly.
45413 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
45414 install_bsd_part.
45415 (main): Activate gpt module for use during partition identification,
45416 and deactivate it afterwards.
45417 * util/i386/pc/grub-install.in: Add gpt module to core.img.
45418 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
45419 partition identification, and deactivate it afterwards.
45420
99123174 454212007-05-05 Robert Millan <rmh@aybabtu.com>
45422
45423 * term/i386/pc/console.c (grub_console_fini): Call
45424 grub_term_set_current() before grub_term_unregister().
45425
ebd97f6e 454262007-05-04 Robert Millan <rmh@aybabtu.com>
45427
45428 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
45429 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
45430 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
45431 and update-grub_DATA.
45432 * conf/common.rmk: Build and install update-grub components.
45433 * conf/common.mk: Regenerate.
45434 * util/update-grub.in: New. Core of update-grub.
45435 * util/grub.d/00_header.in: New. Generates grub.cfg header.
45436 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
45437 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
45438 * util/grub.d/README: New. Document grub.d directory layout.
45439
b06a264d 454402007-05-01 Robert Millan <rmh@aybabtu.com>
45441
45442 * util/grub-emu.c: Move initialization functions
45443 grub_util_biosdisk_init() and grub_init_all() before
45444 grub_util_biosdisk_get_grub_dev(), which relies on them.
45445
41f0050e 454462007-04-19 Robert Millan <rmh@aybabtu.com>
45447
45448 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
45449 it is used later.
45450
04582bb3 454512007-04-18 Jerone Young <jerone@gmail.com>
45452
f19dbdb7 45453 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 45454 stanza.
45455
08db4632 454562007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 45457
08db4632 45458 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
45459 continue on and look for device node with real device name.
45460
801b76be 454612007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 45462
fe6b695a 45463 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 45464 ability.
45465 * Makefile.in: Add autoconf package transformation code.
45466 * util/i386/pc/grub-install.in: Likewise.
45467 * util/powerpc/ieee1275/grub-install.in: Likewise.
45468
6795c4e1 454692007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45470
45471 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
45472 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
45473 (EXT2_REVISION): Likewise.
45474 (EXT2_INODE_SIZE): Likewise.
45475 (struct grub_ext2_block_group): Added a missing member
45476 "used_dirs".
45477 (grub_ext2_read_inode): Divide by the inode size in a superblock
45478 instead of 128 to obtain INODES_PER_BLOCK.
45479 Use the macro EXT2_INODE_SIZE instead of directly using
45480 SBLOCK->INODE_SIZE.
45481
d70af616 454822007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45483
45484 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
45485 superblock instead of the structure size to compute an
45486 offset. This fixes the problem that GRUB could not read a
45487 filesystem when inode size is different from 128-byte.
45488
3b801603 454892007-03-05 Marco Gerards <marco@gnu.org>
45490
45491 * normal/main.c (read_config_file): When "menu" is not set, create
45492 an initial context.
45493
4785bfe4 454942007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45495
45496 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
45497 (HEAP_LIMIT): New macro.
45498 (grub_claim_heap): Claim memory up to `heaplimit'.
45499
a0cbb023 455002007-02-21 Hollis Blanchard <hollis@penguinppc.org>
45501
45502 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
45503 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
45504 (_start): Likewise.
45505 (grub_arch_modules_addr): Return address after `_end'.
45506 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
45507 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
45508 (add_segments): Calculate `_end' from phdr size and location.
45509 (ALIGN_UP): Moved to ...
45510 * include/grub/misc.h: here.
45511 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
45512 New macro.
45513 (GRUB_IEEE1275_MODULE_BASE): Removed.
45514
fd7d8eba 455152007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45516
45517 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
45518 loop boundary.
45519
9b09e6fc 455202007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45521
45522 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
45523 All users updated.
45524 (grub_elf64_load_hook_t): Likewise.
45525 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
45526 debug output.
45527
3ce27299 455282007-02-20 Hollis Blanchard <hollis@penguinppc.org>
45529
45530 * kern/mm.c: Update copyright.
45531 (grub_mm_debug): Correct syntax error.
45532 (grub_mm_dump_free): New function.
45533 (grub_debug_free): Call `grub_free'.
45534 * include/grub/mm.h: Update copyright.
45535 (grub_mm_dump_free): Add declaration.
45536
077d5fee 455372007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45538
45539 * include/grub/ieee1275/ieee1275.h: Update copyright.
45540 * kern/powerpc/ieee1275/init.c: Likewise.
45541 * kern/powerpc/ieee1275/openfw.c: Likewise.
45542
45543 * loader/powerpc/ieee1275/linux.c: Likewise.
45544 * include/grub/elfload.h: Likewise.
45545 * kern/elf.c: Likewise.
45546 (grub_elf32_load): Pass `base' and `size' parameters. Update all
45547 callers.
45548 (grub_elf64_load): Likewise.
45549 (grub_elf32_load_segment): Move to a nested function.
45550 (grub_elf64_load_segment): Likewise.
45551
dc946850 455522007-02-12 Hollis Blanchard <hollis@penguinppc.org>
45553
45554 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
45555 prototype.
45556 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
45557 (grub_heap_len): Likewise.
45558 (HEAP_SIZE): New macro.
45559 (grub_claim_heap): New function.
45560 (grub_machine_init): Don't claim heap directly. Call
45561 `grub_claim_heap'.
45562 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
45563 (grub_available_iterate): New function.
45564
baa2a121 455652007-02-03 Thomas Schwinge <tschwinge@gnu.org>
45566
45567 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
45568 * configure.ac: Use it for testing the HOST and TARGET compilers.
45569
4fe9862e 455702006-12-13 Thomas Schwinge <tschwinge@gnu.org>
45571
45572 * Makefile.in (enable_grub_emu): New variable.
45573 * configure.ac (--enable-grub-emu): New option.
45574 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
45575 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
45576 * conf/i386-pc.rmk: Likewise.
45577 * conf/powerpc-ieee1275.rmk: Likewise.
45578 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
45579
a8aa5762 455802006-12-12 Marco Gerards <marco@gnu.org>
45581
45582 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
45583
45584 * kern/env.c (grub_env_unset): Don't free the member `value' when
45585 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
45586 pointer.
45587
45588 * normal/main.c (current_menu): Removed.
45589 (free_menu): Unset the `menu' environment variable.
45590 (grub_normal_menu_addentry): Make use of the environment variable
45591 `menu', instead of using the global `current_menu'. Allocate
45592 memory for the sourcecode of this entry.
45593 (read_config_file): New argument `nested', changed all callers.
45594 Only in the case of a new context, initialize a new menu. Set the
45595 `menu' environment variable.
45596 (grub_normal_execute): Don't set and unset the environment
45597 variable `menu' here anymore. Only free the menu when leaving the
45598 context.
45599
45600 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
45601 leak.
45602
957b3a3e 456032006-12-11 Marco Gerards <marco@gnu.org>
45604
45605 * normal/menu_entry.c (run): Fix off by one bug so the last line
45606 is executed. Move the loader check to outside the loop.
45607
ef875714 456082006-12-08 Hollis Blanchard <hollis@penguinppc.org>
45609
45610 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
45611
4e739985 456122006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
45613
45614 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
45615 the number of sectors. Reported by Andrey Shuvikov
45616 <mr_hyro@yahoo.com>.
f19dbdb7 45617
790707f2 456182006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
45619
45620 * kern/disk.c (grub_disk_read): When there is a read error, always
45621 try to read only the necessary data.
f19dbdb7 45622
790707f2 45623 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
45624 disk/raid.c.
45625 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
45626 prototype.
45627 [GRUB_UTIL] (grub_raid_fini): Likewise.
45628 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 45629 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 45630 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
45631 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
45632 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
45633 and grub_raid_fini().
f19dbdb7 45634
03e58196 456352006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
45636
45637 * include/grub/types.h (__unused): Rename to UNUSED.
45638 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
45639 (grub_elf64_size): Likewise.
f19dbdb7 45640
ae4f23bf 456412006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45642
45643 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
45644 grub_error_push and grub_error_pop in the error-handling path.
45645 (grub_elf32_load_segment): Only call grub_file_read with non-zero
45646 length.
45647
2166cc83 456482006-11-03 Hollis Blanchard <hollis@penguinppc.org>
45649
45650 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
45651 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45652 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45653 (kernel_elf_SOURCES): Likewise.
45654 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
45655 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
45656 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45657 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
45658 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
45659 (elf_mod_SOURCES): New variable.
45660 (elf_mod_CFLAGS): Likewise.
45661 (elf_mod_LDFLAGS): Likewise.
45662 * include/grub/types.h (__unused): New macro.
45663 * include/grub/elfload.h: New file.
45664 * kern/elf.c: Likewise.
45665 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
45666 (ELF32_LOADMASK): New macro.
45667 (ELF64_LOADMASK): Likewise.
45668 (vmlinux): Removed.
45669 (grub_linux_load32): New function.
45670 (grub_linux_load64): Likewise.
45671 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
45672 Use grub_elf_t instead of grub_file_t.
45673
a09d5aa5 456742006-11-02 Hollis Blanchard <hollis@penguinppc.org>
45675
45676 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
45677 `catch_result' to struct set_color_args.
45678
d976fc51 456792006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
45680
45681 * normal/menu.c: Include grub/script.h.
45682 * normal/menu_entry.c: Likewise.
45683 * include/grub/normal.h: Do not include grub/script.h.
45684
67507549 456852006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45686
45687 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
45688
69203a99 456892006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45690
45691 * kern/disk.c (grub_disk_open): Print debug messages when opening a
45692 disk.
45693 (grub_disk_close): Print debug messages when closing a disk.
45694 (grub_disk_read): Print debug messages when disk read fails.
45695 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
45696 filesystem type.
45697 * kern/partition.c: Include misc.h.
45698 (grub_partition_iterate): Print debug messages when detecting
45699 partition type.
45700
e2b8278c 457012006-10-27 Hollis Blanchard <hollis@penguinppc.org>
45702
45703 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
45704 is negative.
45705 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
45706
97b2f2ff 457072006-10-26 Hollis Blanchard <hollis@penguinppc.org>
45708
45709 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
45710 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
45711
6555d655 457122006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
45713
45714 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
45715 instead of sizeof(lv). Patch by Michael Guntsche.
45716
4d42b77f 457172006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
45718
45719 * disk/lvm.c: Rename VGS to VG_LIST.
45720 (grub_lvm_iterate): Change VGS->LV to VG-LV.
45721 (grub_lvm_open): Likewise.
45722 Thanks to Michael Guntsche for finding this bug.
45723
5d74d927 457242006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
45725
45726 * configure.ac (AC_INIT): Bumped to 1.95.
45727
a1bb27e4 457282006-10-14 Robert Millan <rmh@aybabtu.com>
45729
45730 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
45731 with "/dev/.static/dev/md".
45732
e0994b8b 457332006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45734
45735 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
45736 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
45737 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
45738 DRIVE_NAME are always freed.
45739
45740 * util/i386/pc/biosdisk.c (make_device_name): Add one into
45741 DOS_PART, as a DOS partition is counted from one instead of zero
45742 now. Reported by Robert Millan.
45743
ddd5cee9 457442006-10-14 Robert Millan <rmh@aybabtu.com>
45745
45746 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
45747 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
45748 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
45749 string returned by grub_guess_root_device.
45750 * util/i386/pc/grub-setup.c: Likewise.
45751 * util/i386/pc/grub-probefs.c: Likewise.
45752
45753 * util/i386/pc/grub-probefs.c: Rename to ...
45754 * util/i386/pc/grub-probe.c: ... this.
45755 * DISTLIST: Remove grub-probefs, add grub-probe.
45756 * conf/i386-efi.rmk: Likewise.
45757 * conf/i386-pc.rmk: Likewise.
45758 * util/i386/pc/grub-install.in: Likewise.
45759
45760 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
45761 choose which information we want to print.
45762
2b002173 457632006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
45764
45765 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
45766 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
45767 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
45768 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
45769 video/readers/tga.c and video/i386/pc/vbeutil.c.
45770
457712006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
45772
45773 Added support for RAID and LVM.
f19dbdb7 45774
2b002173 45775 * disk/lvm.c: New file.
45776 * disk/raid.c: Likewise.
45777 * include/grub/lvm.h: Likewise.
f19dbdb7 45778 * include/grub/raid.h: Likewise.
2b002173 45779 * include/grub/util/lvm.h: Likewise.
45780 * include/grub/util/raid.h: Likewise.
45781 * util/lvm.c: Likewise.
45782 * util/raid.c: Likewise.
45783
45784 * include/grub/disk.h (grub_disk_dev_id): Add
45785 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
45786 (grub_disk_get_size): New prototype.
45787 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
45788 returns a partition.
45789 (grub_disk_get_size): New function.
f19dbdb7 45790
2b002173 45791 * kern/i386/pc/init.c (make_install_device): Copy the prefix
45792 verbatim if grub_install_dos_part is -2.
45793
45794 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
45795 and LVM devices.
45796
45797 * util/i386/pc/grub-setup.c (setup): New argument
45798 MUST_EMBED. Force embedding of GRUB when the argument is
45799 true. Close FILE before returning.
45800 (main): Add support for RAID and LVM.
f19dbdb7 45801
2b002173 45802 * conf/common.rmk: Add RAID and LVM modules.
45803 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
45804 util/lvm.c.
45805 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
45806
45807 * kern/misc.c (grub_strstr): New function.
45808 * include/grub/misc.h (grub_strstr): New prototype.
45809
050548d0 458102006-10-10 Tristan Gingold <tristan.gingold@bull.net>
45811
45812 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
45813
da849d2d 458142006-10-05 Tristan Gingold <tristan.gingold@bull.net>
45815
45816 * kern/misc.c (grub_strtoull): Guess the base only if not
45817 specified.
45818
97b2f2ff 458192006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 45820
45821 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
45822 PowerMac support.
45823
97b2f2ff 458242006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 45825
45826 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
45827
45828 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
45829 Remove `flags' argument. All callers changed.
45830 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
45831 (IEEE1275_IHANDLE_INVALID): New variable.
45832 (IEEE1275_CELL_INVALID): New variable.
45833 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
45834 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
45835 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
45836 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
45837 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
45838 codes from Open Firmware. All callers updated.
45839 (grub_ieee1275_next_property): Directly return Open Firmware return
45840 code.
45841 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
45842 Standardize error checking from `grub_ieee1275_get_property'.
45843 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
45844 `devalias' to `aliases'. Correct comments. Consolidate error paths.
45845
97b2f2ff 458462006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 45847
45848 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
45849 `instance_to_package_args' to `instance_to_path_args'.
45850
45851 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
45852 `grub_ieee1275_chosen'.
45853
45854 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
45855 `grub_ieee1275_interpret'.
45856
97b2f2ff 458572006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 45858
45859 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
45860
97b2f2ff 458612006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 45862
45863 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
45864 (__cmpdi): Likewise.
45865
45866 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
45867 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
45868 `grub_ssize_t'.
45869
02bb8acc 45870 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 45871
45872 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
45873 to type `grub_ssize_t'.
45874 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
45875
7f9a8531 458762006-09-22 Marco Gerards <marco@gnu.org>
45877
45878 * normal/script.c (grub_script_create_cmdmenu): Skip leading
45879 newlines.
45880
b5ef1102 458812006-09-22 Marco Gerards <marco@gnu.org>
45882
45883 * commands/echo.c: New file.
45884
45885 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
45886
45887 * conf/common.rmk (echo_mod_SOURCES): New variable.
45888 (echo_mod_CFLAGS): Likewise.
45889 (echo_mod_LDFLAGS): Likewise.
45890
2cff3677 458912006-09-22 Marco Gerards <marco@gnu.org>
45892
45893 * normal/main.c (get_line): Malloc memory instead of using
45894 preallocated memory. Removed the arguments `cmdline' and
45895 `max_len'. Updated all callers.
45896
6ba4688b 458972006-09-22 Marco Gerards <marco@gnu.org>
45898
45899 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
45900 (normal_mod_DEPENDENCIES): Likewise.
45901
45902 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
45903 (normal_mod_DEPENDENCIES): Likewise.
45904
45905 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
45906
e02ac02c 459072006-09-22 Johan Rydberg <jrydberg@gnu.org>
45908
45909 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
45910 programs.
45911 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
45912 (normal_mod_DEPENDENCIES): Likewise.
45913 * conf/i386-pc.mk: Regenerate.
45914 * conf/i386-efi.mk: Likewise
45915 * conf/common.mk: Likewise.
45916 * conf/powerpc-ieee1275.mk: Likewise.
45917 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45918
8d252e44 459192006-09-22 Robert Millan <rmh@aybabtu.com>
45920
45921 Sync with i386 version.
45922 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
45923 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
45924
209bf7ac 459252006-09-21 Robert Millan <rmh@aybabtu.com>
45926
45927 Import from GRUB Legacy (lib/device.c):
45928 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
45929 (init_device_map) [__linux__]: Add support for I2O devices.
45930
6b146090 459312006-09-14 Marco Gerards <marco@gnu.org>
45932
45933 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
45934 `-melf_i386'.
45935
e38600a8 459362006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 45937
45938 * util/i386/pc/grub-install.in: Skip menu.lst when removing
45939 /boot/grub/*.lst.
78fa1790 45940
2952da5d 45941 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 45942
2952da5d 45943 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
45944 before adding it to device.map.
45945
01b82a64 459462006-08-15 Johan Rydberg <jrydberg@gnu.org>
45947
fe6b695a 45948 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 45949 compiles a file; using the -MD option.
45950 * conf/common.mk: Regenerate.
45951 * conf/i386-pc.mk: Likewise.
45952 * conf/i386-efi.mk: Likewise.
45953 * conf/powerpc-ieee1275.mk: Likewise.
45954 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 45955
1064790d 459562006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
45957
45958 Move the prototypes of grub_setjmp and grub_longjmp to
45959 cpu/setjmp.h, so that each architecture may specify different
45960 attributes.
f19dbdb7 45961
1064790d 45962 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
45963 (grub_longjmp): Likewise.
45964 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
45965 (grub_longjmp): Likewise.
45966 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
45967 (grub_longjmp): Likewise.
45968
45969 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
45970 [!GRUB_UTIL] (grub_longjmp): Removed.
45971
29dda3ed 459722006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
45973
45974 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
45975 "color!" method does not return any value.
45976
ad2a06ed 459772006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
45978
45979 * include/grub/bitmap.h: New file.
45980
45981 * include/grub/i386/pc/vbeutil.h: Likewise.
45982
45983 * video/bitmap.c: Likewise.
45984
45985 * video/readers/tga.c: Likewise.
45986
45987 * video/i386/pc/vbeutil.c: Likewise.
45988
45989 * commands/videotest.c: Code cleanup and updated to reflect to new
45990 video API.
45991
45992 * term/gfxterm.c: Likewise.
45993
45994 * video/video.c: Likewise.
45995
45996 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
45997 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
45998 (bitmap_mod_SOURCES): New entry.
45999 (bitmap_mod_CFLAGS): Likewise.
46000 (bitmap_mod_LDFLAGS): Likewise.
46001 (tga_mod_SOURCES): Likewise.
46002 (tga_mod_CFLAGS): Likewise.
46003 (tga_mod_LDFLAGS): Likewise.
46004
46005 * include/grub/video.h (grub_video_blit_operators): New enum type.
46006 (grub_video_render_target): Changed as forward declaration and moved
46007 actual definition to be video driver specific.
46008 (grub_video_adapter.blit_bitmap): Added blitting operator.
46009 (grub_video_adapter.blit_render_target): Likewise.
46010 (grub_video_blit_bitmap): Likewise.
46011 (grub_video_blit_render_target): Likewise.
46012
46013 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
46014 driver specific render target definition.
46015 (grub_video_vbe_map_rgba): Added driver internal helper.
46016 (grub_video_vbe_unmap_color): Updated to use
46017 grub_video_i386_vbeblit_info.
46018 (grub_video_vbe_get_video_ptr): Likewise.
46019
46020 * include/grub/i386/pc/vbeblit.h
46021 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
46022 grub_video_i386_vbeblit_info.
46023 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
46024 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
46025 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
46026 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
46027 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
46028 (grub_video_i386_vbeblit_index_index): Likewise.
46029 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
46030 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
46031 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
46032 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
46033 operator.
46034 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
46035 operator.
46036
46037 * video/i386/pc/vbeblit.c: Updated to reflect changes on
46038 include/grub/i386/pc/vbeblit.h.
46039
46040 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
46041 Updated to use grub_video_i386_vbeblit_info.
46042 (grub_video_i386_vbefill_R8G8B8): Likewise.
46043 (grub_video_i386_vbefill_index): Likewise.
46044 (grub_video_i386_vbefill): Added generic filler.
46045
46046 * video/i386/pc/vbefill.c: Updated to reflect changes on
46047 include/grub/i386/pc/vbefill.h.
46048
46049 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
46050 grub_video_i386_vbeblit_info.
46051 (grub_video_vbe_unmap_color): Likewise.
46052 (grub_video_vbe_blit_glyph): Likewise.
46053 (grub_video_vbe_scroll): Likewise.
46054 (grub_video_vbe_draw_pixel): Removed function.
46055 (grub_video_vbe_get_pixel): Likewise.
46056 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
46057 updated code to use it.
46058 (common_blitter): Added common blitter for render target and bitmap.
46059 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
46060 (grub_video_vbe_blit_render_target): Likewise.
46061
bc8c036d 460622006-07-30 Johan Rydberg <jrydberg@gnu.org>
46063
46064 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
46065 is in text mode if there is no console control protocol instance
46066 available.
46067
684a8eff 460682006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46069
46070 * include/grub/video.h: Code cleanup.
46071
46072 * include/grub/i386/pc/vbe.h: Likewise.
46073
46074 * video/i386/pc/vbe.c: Likewise.
46075
46076 * video/i386/pc/vbeblit.c: Likewise.
46077
46078 * video/i386/pc/vbefill.c: Likewise.
46079
46080 * video/video.c: Likewise. Also added more comments.
46081
5915059b 460822006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
46083
46084 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
46085 (struct grub_biosdisk_dap): Likewise.
46086
46087 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
46088 linkage settings for all functions.
46089
90ce5d56 460902006-07-12 Marco Gerards <marco@gnu.org>
46091
46092 * configure.ac (--enable-mm-debug): Fix typo.
46093
46094 * genkernsyms.sh.in: Use proper quoting for `CC'.
46095
43e7f879 460962006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
46097
46098 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
46099 (normal_mod_ASFLAGS): Remove "-m32".
46100
4889bdec 461012006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
46102
46103 * util/misc.c: Include config.h.
46104 [!HAVE_MEMALIGN]: Do not include malloc.h.
46105 (grub_memalign): Use posix_memalign, if present. Then, use
46106 memalign, if present. Otherwise, emit an error.
46107
46108 * util/grub-emu.c: Do not include malloc.h.
46109
46110 * include/grub/util/misc.h: Include unistd.h. This is required for
46111 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
46112 D. Eades III <hde@foobar-qux.org>.
46113
46114 * configure.ac (AC_GNU_SOURCE): Added.
46115 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
46116 type.
46117
fd39d4da 461182006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
46119
46120 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
46121 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
46122
b786f3b5 461232006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
46124
46125 * include/grub/types.h (grub_host_addr_t): Rename to
46126 grub_target_addr_t.
46127 (grub_host_off_t): Rename to grub_target_off_t.
46128 (grub_host_size_t): Rename to grub_target_size_t.
46129 (grub_host_ssize_t): Rename to grub_target_ssize_t.
46130 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
46131
46132 * include/grub/kernel.h (struct grub_module_header): Change type
46133 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
46134 (grub_module_info): Likewise.
f19dbdb7 46135
051988bb 461362006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46137
46138 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
46139 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
46140 Velazquez <jesus.velazquez@gmail.com>.
46141
deae281b 461422006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
46143
46144 Count partitions from 1 instead of 0 in the string representation
46145 of partitions. Still use 0-based internally.
f19dbdb7 46146
deae281b 46147 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
46148 (sun_partition_map_iterate): Use grub_partition_t instead of
46149 struct grub_partition *. Cast DESC->START_CYLINDER to
46150 grub_uint64_t after converting the endian.
46151 (sun_partition_map_probe): Subtract 1 for PARTNUM.
46152 (sun_partition_map_get_name): Add 1 to P->INDEX.
46153
46154 * partmap/pc.c (grub_partition_parse): Subtract 1 for
46155 PCDATA->DOS_PART.
46156 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
46157
46158 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
46159 zero instead of one.
46160 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
46161 (gpt_partition_map_get_name): Add 1 into P->INDEX.
46162
46163 * partmap/apple.c (apple_partition_map_iterate): Change the type
46164 of POS to unsigned.
46165 (apple_partition_map_probe): Subtract 1 for PARTNUM.
46166 (apple_partition_map_get_name): Add 1 into P->INDEX.
46167
46168 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
46169 of POS to unsigned.
46170 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
46171 calculate the offset of a partition.
46172 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
46173 (amiga_partition_map_get_name): Add 1 into P->INDEX.
46174
46175 * partmap/acorn.c (acorn_partition_map_find): Change the type of
46176 SECTOR to grub_disk_addr_t.
46177 (acorn_partition_map_iterate): Likewise.
46178 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
46179 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
46180 top.
46181 (acorn_partition_map_get_name): Add 1 into P->INDEX.
46182
46183 * kern/i386/pc/init.c (make_install_device): Add 1 into
46184 GRUB_INSTALL_DOS_PART.
46185
46186 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
46187 conditional.
46188
524a1e6a 461892006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46190
46191 Clean up the code to support 64-bit addressing in disks and
46192 files. This change is not enough for filesystems yet.
f19dbdb7 46193
524a1e6a 46194 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
46195 type of "start" to grub_uint64_t.
46196 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
46197 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
46198 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
46199 convert addresses.
46200
46201 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
46202 to grub_disk_addr_t.
46203
46204 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
46205 string.
46206
46207 * partmap/pc.c (pc_partition_map_iterate): Likewise.
46208
46209 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
46210 to char *.
46211
46212 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
46213
46214 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
46215
46216 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
46217
46218 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
46219 to grub_off_t, to detect an error from grub_file_seek.
46220 (grub_multiboot_load_elf32): Likewise.
46221
46222 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
46223 maximum unsigned long value when an overflow is detected.
46224 (grub_strtoull): New function.
46225 (grub_divmod64): Likewise.
46226 (grub_lltoa): use grub_divmod64.
46227
46228 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
46229 grub_disk_addr_t.
46230 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
46231 the pointer to next character. Use grub_strtoull instead of
46232 grub_strtoul.
46233 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
46234 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
46235 respectively.
46236
fe6b695a 46237 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 46238 return value is signed.
46239 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
46240 test if OFFSET is less than zero, as OFFSET is unsigned now.
46241
46242 * kern/disk.c (struct grub_disk_cache): Change the type of
46243 "sector" to grub_disk_addr_t.
46244 (grub_disk_cache_get_index): Change the type of SECTOR to
46245 grub_disk_addr_t. Calculate the hash with SECTOR casted to
46246 unsigned after shifting.
46247 (grub_disk_cache_invalidate): Change the type of SECTOR to
46248 grub_disk_addr_t.
46249 (grub_disk_cache_unlock): Likewise.
46250 (grub_disk_cache_store): Likewise.
46251 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
46252 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
46253 grub_disk_addr_t and grub_uint64_t, respectively.
46254 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
46255 body, as the value of OFFSET is tweaked by
46256 grub_disk_check_range. Change the types of START_SECTOR, LEN and
46257 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
46258 respectively.
46259 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
46260 body, as the value of OFFSET is tweaked by
46261 grub_disk_check_range. Change the types of LEN and N to
46262 grub_size_t.
46263
46264 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
46265 and "saved_offset" to grub_off_t.
46266 (test_header): Cast BUF to char *.
46267 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
46268 to char *.
46269 (grub_gzio_read): Change the types of OFFSET and SIZE to
46270 grub_off_t and grub_size_t, respectively.
46271
46272 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
46273 Removed.
46274 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
46275 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
46276 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
46277 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
46278 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
46279
46280 * include/grub/types.h (grub_off_t): Unconditionally set to
46281 grub_uint64_t.
46282 (grub_disk_addr_t): Changed to grub_uint64_t.
46283
46284 * include/grub/partition.h (struct grub_partition): Change the
46285 types of "start", "len" and "offset" to grub_disk_addr_t,
46286 grub_uint64_t and grub_disk_addr_t, respectively.
46287 (grub_partition_get_start): Return grub_disk_addr_t.
46288 (grub_partition_get_len): Return grub_uint64_t.
46289
46290 * include/grub/misc.h (grub_strtoull): New prototype.
46291 (grub_divmod64): Likewise.
46292
46293 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
46294 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
46295 grub_off_t, respectively.
46296 All callers and references changed.
46297
46298 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
46299 grub_size_t in "read".
46300 All callers and references changed.
46301
46302 * include/grub/file.h (struct grub_file): Change the types of
46303 "offset" and "size" to grub_off_t and grub_off_t,
46304 respectively. Change the type of SECTOR to grub_disk_addr_t in
46305 "read_hook".
46306 (grub_file_read): Change the type of LEN to grub_size_t.
46307 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
46308 grub_off_t.
46309 (grub_file_size): Return grub_off_t.
46310 (grub_file_tell): Likewise.
46311 All callers and references changed.
46312
46313 * include/grub/disk.h (struct grub_disk_dev): Change the types of
46314 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
46315 "write".
46316 (struct grub_disk): Change the type of "total_sectors" to
46317 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 46318 "read_hook".
524a1e6a 46319 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
46320 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
46321 (grub_disk_write): Likewise.
46322 All callers and references changed.
46323
46324 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
46325 char * for grub_strncmp to silence gcc.
46326 (grub_iso9660_mount): Likewise.
46327 (grub_iso9660_mount): Likewise.
46328 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
46329 return statement.
46330 (grub_iso9660_iterate_dir): Likewise.
46331 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
46332
46333 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
46334 LEN to grub_disk_addr_t and grub_size_t, respectively.
46335
46336 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
46337
46338 * fs/jfs.c (grub_jfs_read_file): Likewise.
46339
46340 * fs/minix.c (grub_jfs_read_file): Likewise.
46341
46342 * fs/sfs.c (grub_jfs_read_file): Likewise.
46343
46344 * fs/ufs.c (grub_jfs_read_file): Likewise.
46345
46346 * fs/xfs.c (grub_jfs_read_file): Likewise.
46347
46348 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
46349 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
46350 respectively.
46351
46352 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
46353 BLKNR to -1 instead of returning GRUB_ERRNO.
46354 (grub_ext2_read_file): Change the types of SECTOR and
46355 LEN to grub_disk_addr_t and grub_size_t, respectively.
46356
46357 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
46358 LEN to grub_disk_addr_t and grub_size_t, respectively.
46359
46360 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
46361 grub_file_read.
46362
46363 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
46364 string. Do not cast SECTOR explicitly.
46365
46366 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
46367 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
46368 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
46369 grub_disk_addr_t and grub_size_t, respectively. If the sector is
46370 over 2TB and LBA mode is not supported, raise an error.
46371 (get_safe_sectors): New function.
46372 (grub_biosdisk_read): Use get_safe_sectors.
46373 (grub_biosdisk_write): Likewise.
46374
46375 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
46376 (grub_efidisk_write): Likewise.
46377
46378 * disk/loopback.c (delete_loopback): Cosmetic changes.
46379 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
46380 correctly.
46381 (grub_loopback_open): Likewise.
46382 (grub_loopback_read): Likewise. Also, change the type of POS to
46383 grub_off_t, and fix the usage of grub_memset.
46384
46385 * commands/i386/pc/play.c: Include grub/machine/time.h.
46386
46387 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
46388 print FILE->SIZE.
46389
46390 * commands/configfile.c: Include grub/env.h.
46391
46392 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
46393 GRUB_ERRNO directly instead. Change the type of POS to
46394 grub_off_t. Follow the coding standard.
46395
46396 * commands/blocklist.c: Include grub/partition.h.
46397 (grub_cmd_blocklist): Return an error if the underlying device is
46398 not a disk. Take the starting sector of a partition into account,
46399 if a partition is used.
46400
46401 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
46402 a length field.
46403 (lba_mode): Support 64-bit addresses.
46404 (chs_mode): Likewise.
46405 (copy_buffer): Adapted to the new offsets of a length field and a
46406 segment field.
46407 (blocklist_default_start): Allocate 64-bit space.
46408
46409 * boot/i386/pc/boot.S (force_lba): Removed.
46410 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 46411 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 46412 space.
46413 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
46414 is useless.
46415 (lba_mode): Refactored to support a 64-bit address. More size
46416 optimization.
46417 (setup_sectors): Likewise.
46418
53af98ad 464192006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
46420
46421 * DISTLIST: Added include/grub/i386/linux.h. Removed
46422 include/grub/i386/pc/linux.h
46423
46424 * configure.ac (AC_INIT): Bumped to 1.94.
46425
46426 * config.guess: Updated from gnulib.
46427 * config.sub: Likewise.
46428 * install-sh: Likewise.
46429 * mkinstalldirs: Likewise.
46430
b4c1940a 464312006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46432
46433 * conf/common.rmk (grub_modules_init.lst): Depended on
46434 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
46435 MODSRCFILES.
46436
46437 * genmk.rb (PModule::rule): Reverted the previous change.
46438
cfca1cfd 464392006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
46440
46441 * conf/common.rmk (grub_modules_init.lst): Depends on
46442 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
46443 that the target does not exist before producing.
46444 (grub_modules_init.h): Remove the target before generating.
46445 (grub_emu_init.c): Likewise.
46446
46447 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
46448
aa6d7826 464492006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
46450
46451 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
46452 for the target-specific tests. Make sure that we also have the
46453 up-to-date target variables for those tests.
46454
26c607b9 464552006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46456
46457 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
46458 (PModule::rule): Likewise.
46459
0162321a 464602006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
46461
46462 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
46463 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
46464 target-specific flags should be prefixed.
46465 (PModule::rule): Likewise.
46466
6c826348 464672006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
46468
46469 * configure.ac (CMP): Check if cmp is available explicitly.
46470
b977bf01 464712006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
46472
46473 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
46474 (target_cpu): New variable.
46475 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 46476
b977bf01 46477 * util/i386/pc/grub-install.in (host_cpu): Removed.
46478 (target_cpu): New variable.
46479 (pkglibdir): Use target_cpu instead of host_cpu.
46480
46481 * util/genmoddep.c: Removed.
f19dbdb7 46482
b977bf01 46483 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
46484 instead of GRUB_HOST_SIZEOF_VOID_P.
46485 * kern/dl.c: Likewise.
46486
46487 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
46488 ...
46489 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46490 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46491 (GRUB_TARGET_SIZEOF_LONG): ... this.
46492 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46493 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46494 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46495 to ...
46496 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46497 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46498 (GRUB_TARGET_SIZEOF_LONG): ... this.
46499 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46500 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46501 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
46502 to ...
46503 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
46504 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
46505 (GRUB_TARGET_SIZEOF_LONG): ... this.
46506 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
46507 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
46508
46509 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
46510 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
46511 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
46512 instead of GRUB_HOST_SIZEOF_LONG.
46513 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
46514 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
46515 GRUB_CPU_WORDS_BIGENDIAN.
46516 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
46517 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
46518 grub_host_ssize_t.
46519
46520 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
46521 (genmoddep_SOURCES): Likewise.
46522 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
46523 (genmoddep_SOURCES): Likewise.
46524 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
46525 (genmoddep_SOURCES): Likewise.
46526 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
46527 Likewise.
46528 (genmoddep_SOURCES): Likewise.
46529
46530 * genmoddep.awk: New file.
46531
46532 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
46533 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
46534 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
46535 (PModule::rule): Likewise.
46536 (Program::rule): Likewise.
46537 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
46538 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
46539 respectively.
46540
46541 * configure.ac: Rewritten intensively to use host and target
46542 instead of build and host, respectively.
46543
46544 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
46545 (host_cpu): Removed.
46546 (target_cpu): New variable.
46547 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
46548 (BUILD_CC): Removed.
46549 (BUILD_CFLAGS): Likewise.
46550 (BUILD_CPPFLAGS): Likewise.
46551 (TARGET_CC): New variable.
46552 (TARGET_CFLAGS): Likewise.
46553 (TARGET_CPPFLAGS): Likewise.
46554 (TARGET_LDFLAGS): Likewise.
46555 (AWK): Likewise.
46556 (include): Use target_cpu instead of host_cpu.
46557 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 46558
b977bf01 46559 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
46560
f09771a1 465612006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
46562
46563 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
46564 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
46565 field 'false' to 'exec_on_false'.
46566 (grub_script_create_cmdif): Renamed argument names to reflect above
46567 changes.
46568
46569 * normal/execute.c (grub_script_execute_cmdif): Likewise.
46570
46571 * normal/script.c (grub_script_create_cmdif): Likewise.
46572
118f4fb3 465732006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
46574
46575 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
46576 top.
46577 (grub_hfsplus_btree_recptr): Likewise.
46578 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
46579 FILEBLOCK both to pass a block number and store next block
46580 number.
46581 (grub_hfsplus_read_block): Rewritten heavily to support an extent
46582 overflow file correctly. Specify errors appropriately, because
46583 fshelp expects that GRUB_ERRNO is set when fails. Reuse
46584 grub_hfsplus_btree_recptr to get the pointer to a found key.
46585 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
46586 is found.
46587
46588 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
46589 linux.mod.
46590 (_linux_mod_SOURCES): New variable.
46591 (_linux_mod_CFLAGS): Likewise.
46592 (_linux_mod_LDFLAGS): Likewise.
46593 (linux_mod_SOURCES): Likewise.
46594 (linux_mod_CFLAGS): Likewise.
46595 (linux_mod_LDFLAGS): Likewise.
46596
46597 * DISTLIST: Added loader/i386/efi/linux.c,
46598 loader/i386/efi/linux_normal.c and
46599 include/grub/i386/efi/loader.h.
46600
46601 * loader/i386/efi/linux.c: New file.
46602 * loader/i386/efi/linux_normal.c: Likewise.
46603 * include/grub/i386/efi/loader.h: Likewise.
46604
89a7d726 466052006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
46606
46607 * commands/blocklist.c: New file.
46608
46609 * DISTLIST: Added commands/blocklist.c.
46610
46611 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 46612 color for the background, and a darker color for the foreground.
89a7d726 46613 (grub_console_checkkey): Return READ_KEY.
46614 (grub_console_cls): Set the background to
46615 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
46616
46617 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
46618
46619 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
46620 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
46621
46622 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
46623 prototype.
46624
46625 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
46626 BG. The spec is wrong again.
46627
46628 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
46629 prototype.
46630 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
46631
46632 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46633 commands/blocklist.c.
46634 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 46635
89a7d726 46636 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
46637 (blocklist_mod_SOURCES): New variable.
46638 (blocklist_mod_CFLAGS): Likewise.
46639 (blocklist_mod_LDFLAGS): Likewise.
46640
75c8f258 466412006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
46642
46643 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
46644 duplication.
46645 (lba_mode): Use %eax more intensively to reduce the code size.
46646
da2eb181 466472006-05-20 Marco Gerards <marco@gnu.org>
46648
46649 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
46650
46651 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
46652 for `menuentry'.
46653 (script): Accept leading newlines.
46654 (newlines): New rule to describe 0 or more newlines.
46655 (commands): Accept `command' with trailing newline. Fixed the
46656 order in which arguments were passed to `grub_script_add_cmd'.
46657 Accept commands separated by newlines.
46658 (function): Changed to accept newlines.
46659 (menuentry) Rewritten.
46660
46661 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
46662 front of the list, instead of to the end.
46663
577b4050 466642006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
46665
46666 * util/i386/pc/grub-install.in (bindir): New variable.
46667 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
46668 Shaver <lbgwjl@gmail.com>.
46669
0d6e1189 466702006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
46671
46672 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
46673 grub/machine/linux.h
46674 * loader/i386/pc/linux.c: Likewise.
46675
46676 * include/grub/i386/pc/linux.h: Moved to ...
46677 * include/grub/i386/linux.h: ... here.
46678
46679 * include/grub/i386/linux.h (struct linux_kernel_params): New
46680 struct.
f19dbdb7 46681
31b86e9f 466822006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
46683
46684 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
46685 checking.
46686 (grub_video_vbe_blit_glyph): Likewise.
46687 (grub_video_vbe_blit_bitmap): Likewise.
46688 (grub_video_vbe_blit_render_target): Likewise.
46689
83b984de 466902006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
46691
46692 * configure.ac (--with-platform): Properly quote the square
46693 brackets.
46694
5f0413bd 466952006-05-08 Marco Gerards <marco@gnu.org>
46696
46697 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
46698 this...
46699 (kernel_elf_HEADERS): ...to this. Updated all users.
46700 (grubof_symlist.c): Renamed from this...
46701 (kernel_elf_symlist.c): ...to this. Updated all users.
46702 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46703 (grubof_SOURCES): Renamed from this...
46704 (kernel_elf_SOURCES): ...to this.
46705 (grubof_HEADERS): Renamed from this...
46706 (kernel_elf_HEADERS): ...to this.
46707 (grubof_CFLAGS): Renamed from this...
46708 (kernel_elf_CFLAGS): ...to this.
46709 (grubof_ASFLAGS): Renamed from this...
46710 (kernel_elf_ASFLAGS): ...to this.
46711 (grubof_LDFLAGS): Renamed from this...
46712 (kernel_elf_LDFLAGS): ...to this.
46713
46714 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
46715 this...
46716 (kernel_elf_HEADERS): ...to this. Updated all users.
46717 (grubof_symlist.c): Renamed from this...
46718 (kernel_elf_symlist.c): ...to this. Updated all users.
46719 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
46720 (grubof_SOURCES): Renamed from this...
46721 (kernel_elf_SOURCES): ...to this.
46722 (grubof_HEADERS): Renamed from this...
46723 (kernel_elf_HEADERS): ...to this.
46724 (grubof_CFLAGS): Renamed from this...
46725 (kernel_elf_CFLAGS): ...to this.
46726 (grubof_ASFLAGS): Renamed from this...
46727 (kernel_elf_ASFLAGS): ...to this.
46728 (grubof_LDFLAGS): Renamed from this...
46729 (kernel_elf_LDFLAGS): ...to this.
46730
46731 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
46732 `kernel.elf' instead of `grubof'.
46733
05568c2e 467342006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
46735
46736 Add --with-platform to configure. Use pkglibdir instead of
46737 pkgdatadir. This is reported by Roger Leigh.
46738
46739 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
46740 (host_vendor): Likewise.
46741 (host_os): Likewise.
46742 (pkgdatadir): Likewise.
46743 (platform): New variable.
46744 (pkglibdir): Likewise.
46745 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 46746
05568c2e 46747 * util/i386/pc/grub-install.in (datadir): Removed.
46748 (host_vendor): Likewise.
46749 (host_os): Likewise.
46750 (pkgdatadir): Likewise.
46751 (platform): New variable.
46752 (pkglibdir): Likewise.
46753 Use PKGLIBDIR instead of PKGDATADIR.
46754
46755 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
46756 instead of GRUB_DATADIR.
46757 (main): Likewise.
46758 * util/i386/pc/grub-mkimage.c (usage): Likewise.
46759 (main): Likewise.
46760 * util/i386/efi/grub-mkimage.c (usage): Likewise.
46761 (main): Likewise.
46762
46763 * configure.ac (--with-platform): New option.
46764 Use PLATFORM instead of HOST_VENDOR to specify a platform.
46765
46766 * Makefile.in: Include a makefile based on PLATFORM instead of
46767 HOST_VENDOR.
46768 (pkgdatadir): Not appended by the machine type.
46769 (pkglibdir): Appended by the machine type.
46770 (host_vendor): Removed.
46771 (platform): New variable.
46772 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
46773 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
46774 (uninstall): Likewise.
46775
4e93851c 467762006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
46777
46778 Use the environment context in the menu. Remove the commands
46779 "default" and "timeout", and use variables instead.
f19dbdb7 46780
4e93851c 46781 * normal/menu.c: Include grub/env.h.
46782 (print_entry): Cast TITLE to silence gcc.
46783 (get_timeout): New function.
46784 (set_timeout): Likewise.
46785 (get_entry_number): Likewise.
46786 (run_menu): Use a default entry, a fallback entry and a timeout
46787 in the environment variables "default", "fallback" and
46788 "timeout". Also, tweak the default entry if it is not within the
46789 current menu entries.
46790 (grub_menu_run): Use a fallback entry in the environment variable
46791 "fallback".
46792
46793 * normal/main.c (read_config_file): Do not initialize
46794 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
46795 NEWMENU->TIMEOUT.
46796 (grub_normal_execute): Use a data slot to store the menu.
46797
46798 * include/grub/normal.h (struct grub_menu): Removed default_entry,
46799 fallback_entry and timeout.
46800 (struct grub_menu_list): Removed.
46801 (grub_menu_list_t): Likewise.
46802 (struct grub_context): Likewise.
46803 (grub_context_t): Likewise.
46804 (grub_context_get): Likewise.
46805 (grub_context_get_current_menu): Likewise.
46806 (grub_context_push_menu): Likewise.
46807 (grub_context_pop_menu): Likewise.
46808 (grub_default_init): Likewise.
46809 (grub_default_fini): Likewise.
46810 (grub_timeout_init): Likewise.
46811 (grub_timeout_fini): Likewise.
46812
46813 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
46814 and timeout.mod.
46815 (normal_mod_SOURCES): Removed normal/context.c.
46816
46817 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
46818 commands/default.c, commands/timeout.c and normal/context.c.
46819 (normal_mod_SOURCES): Removed normal/context.c.
46820
46821 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
46822 commands/timeout.c and normal/context.c.
46823 (normal_mod_SOURCES): Removed normal/context.c.
46824
46825 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
46826 commands/default.c, commands/timeout.c and normal/context.c.
46827 (normal_mod_SOURCES): Removed normal/context.c.
46828
46829 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
46830 timeout.mod.
46831 (default_mod_SOURCES): Removed.
46832 (default_mod_CFLAGS): Likewise.
46833 (default_mod_LDFLAGS): Likewise.
46834 (timeout_mod_SOURCES): Removed.
46835 (timeout_mod_CFLAGS): Likewise.
46836 (timeout_mod_LDFLAGS): Likewise.
46837
46838 * DISTLIST: Removed commands/default.c, commands/timeout.c and
46839 normal/context.c.
46840
46841 * commands/default.c: Removed.
46842 * commands/timeout.c: Likewise.
46843 * normal/context.c: Likewise.
46844
1eb9cc1d 468452006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
46846
46847 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
46848
385bd9c1 468492006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
46850
46851 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
46852 "next" to "prev" for readability.
46853 (struct grub_env_sorted_var): New struct.
46854 (grub_env_context): Renamed to ...
46855 (initial_context): ... this.
46856 (grub_env_var_context): Renamed to ...
46857 (current_context): ... this.
46858 (grub_env_find): Look only at CURRENT_CONTEXT.
46859 (grub_env_context_open): Rewritten to copy exported variables from
46860 previous context.
46861 (grub_env_context_close): Rewritten according to the new
46862 scheme. Also, add an assertion to prevent the initial context from
46863 removed.
46864 (grub_env_insert): Removed the code for the sorted list.
46865 (grub_env_remove): Likewise.
46866 (grub_env_export): Simply mark the variable with
46867 GRUB_ENV_VAR_GLOBAL.
46868 (grub_env_set): A cosmetic change for naming consistency.
46869 (grub_env_get): Likewise.
46870 (grub_env_unset): Likewise.
46871 (grub_env_iterate): Rewritten to sort variables within this
46872 function.
46873 (grub_register_variable_hook): Fixed for naming consistency. Call
46874 grub_env_find again, only if NAME is not found at the first time.
46875 (mangle_data_slot_name): New function.
46876 (grub_env_set_data_slot): Likewise.
46877 (grub_env_get_data_slot): Likewise.
46878 (grub_env_unset_data_slot): Likewise.
46879
46880 * include/grub/env.h (grub_env_var_type): New enum.
46881 (GRUB_ENV_VAR_LOCAL): New constant.
46882 (GRUB_ENV_VAR_GLOBAL): Likewise.
46883 (GRUB_ENV_VAR_DATA): Likewise.
46884 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
46885 "type".
46886 (grub_env_set): Replace VAR with NAME for consistency.
46887 (grub_register_variable_hook): Likewise.
46888 (grub_env_export): Specify the name of the argument.
46889 (grub_env_set_data_slot): New prototype.
46890 (grub_env_get_data_slot): Likewise.
46891 (grub_env_unset_data_slot): Likewise.
46892
7f362539 468932006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46894
46895 Extend the loader so that GRUB can accept a loader which comes
46896 back to GRUB when a loaded image exits. Also, this change adds
46897 support for a chainloader on EFI.
f19dbdb7 46898
7f362539 46899 * term/efi/console.c: Include grub/misc.h.
46900 (grub_console_checkkey): Display a scan code on the top for
46901 debugging. This will be removed once the EFI port gets stable.
46902 Correct the scan code mapping.
46903
46904 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
46905 allocate memory from larger regions, in order to reduce the number
46906 of allocated regions. Otherwise, the MacOSX loader panics.
46907 (filter_memory_map): Avoid less than 1MB for compatibility with
46908 other loaders.
46909 (add_memory_regions): Allocate from the tail of a region, if
46910 possible, to avoid allocating a region near to 1MB, for the MacOSX
46911 loader.
46912
46913 * kern/efi/init.c (grub_efi_set_prefix): Specify
46914 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
46915
46916 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
46917 argument IMAGE_HANDLE and specify it to get a loaded image.
46918 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
46919 grub_efi_get_loaded_image.
fe6b695a 46920 (grub_efi_get_filename): Divide the length by the size of
7f362539 46921 grub_efi_char16_t.
46922 (grub_efi_get_device_path): New function.
46923 (grub_efi_print_device_path): Print End Device Path nodes. Divide
46924 the length by the size of grub_efi_char16_t for a file path device
46925 path node.
46926
46927 * kern/loader.c (grub_loader_noreturn): New variable.
46928 (grub_loader_set): Accept a new argument NORETURN. Set
46929 GRUB_LOADER_NORETURN to NORETURN.
46930 All callers changed.
46931 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
46932 grub_machine_fini.
46933
46934 * include/grub/efi/efi.h (grub_efi_get_device_path): New
46935 prototype.
46936 (grub_efi_get_loaded_image): Take an argument to specify an image
46937 handle.
46938
46939 * include/grub/loader.h (grub_loader_set): Added one more argument
46940 NORETURN.
46941
46942 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
46943 instead of grub_efi_open_protocol.
46944 (grub_efidisk_get_device_name): Likewise.
46945 (grub_efidisk_close): Print a newline.
46946 (grub_efidisk_get_device_handle): Fixed to use
46947 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
46948 GRUB_EFI_DEVICE_PATH_TYPE.
46949
46950 * disk/efi/efidisk.c (device_path_guid): Moved to ...
46951 * kern/efi/efi.c (device_path_guid): ... here.
46952
46953 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
46954 chain.mod.
46955 (kernel_mod_HEADERS): Added efi/disk.h.
46956 (_chain_mod_SOURCES): New variable.
46957 (_chain_mod_CFLAGS): Likewise.
46958 (_chain_mod_LDFLAGS): Likewise.
46959 (chain_mod_SOURCES): Likewise.
46960 (chain_mod_CFLAGS): Likewise.
46961 (chain_mod_LDFLAGS): Likewise.
46962
46963 * DISTLIST: Added include/grub/efi/chainloader.h,
46964 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
46965
46966 * include/grub/efi/chainloader.h: New file.
46967 * loader/efi/chainloader.c: Likewise.
46968 * loader/efi/chainloader_normal.c: Likewise.
46969
c0111d6e 469702006-04-30 Marco Gerards <marco@gnu.org>
46971
46972 * commands/configfile.c (grub_cmd_source): New function.
46973 (GRUB_MOD_INIT): Register the commands `source' and `.'.
46974 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
46975
df5341da 469762006-04-30 Marco Gerards <marco@gnu.org>
46977
46978 * normal/execute.c (grub_script_execute_cmd): Change the return
46979 type to `grub_err_t'. Correctly return the error.
46980 (grub_script_execute_cmdline): In case a command line is not a
46981 command or a function, try to interpret it as an assignment.
46982
f85934bd 469832006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
46984
46985 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
46986 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
46987 skip a node whose name is obviously invalid as UTF-16,
46988 i.e. contains a NUL character. Stop the iteration when the last
46989 directory entry is found. Instead of using the return value of
46990 grub_hfsplus_btree_iterate_node, store the value in RET and use
46991 it, because the iterator can be stopped by the last directory
46992 entry.
46993
8f8a2cf8 469942006-04-30 Marco Gerards <marco@gnu.org>
46995
46996 * include/grub/env.h (grub_env_export): New prototype. Reported
46997 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
46998
a27e84ce 469992006-04-30 Marco Gerards <marco@gnu.org>
47000
47001 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
47002 size of the extents in a catalog file record.
47003
eaef0553 470042006-04-29 Marco Gerards <marco@gnu.org>
47005
47006 * commands/configfile.c (grub_cmd_configfile): Execute the
47007 configfile within its own context.
47008
47009 * include/grub/env.h (grub_env_context_open): New prototype.
47010 (grub_env_context_close): Likewise.
47011
47012 * kern/env.c (grub_env): Removed.
47013 (grub_env_sorted): Likewise.
47014 (grub_env_context): New variable.
47015 (grub_env_var_context): Likewise.
47016 (grub_env_find): Search both the active context and the global
47017 context.
47018 (grub_env_context_open): New function.
47019 (grub_env_context_close): Likewise.
47020 (grub_env_insert): Likewise.
47021 (grub_env_remove): Likewise.
47022 (grub_env_export): Likewise.
47023 (grub_env_set): Changed to use helper functions to avoid code
47024 duplication.
47025 (grub_env_iterate): Rewritten so both the current context and the
47026 global context are being used.
47027
47028 * normal/command.c (export_command): New function.
47029 (grub_command_init): Register the `export' function.
47030
7b455f4d 470312006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
47032
47033 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
47034 explicitly to suppress gcc's warnings.
47035 * fs/fat.c (grub_fat_find_dir): Likewise.
47036 (grub_fat_label): Likewise.
47037 * fs/xfs.c (grub_xfs_read_inode): Likewise.
47038 (grub_xfs_mount): Likewise.
47039 (grub_xfs_label): Likewise.
47040 * fs/affs.c (grub_affs_mount): Likewise.
47041 (grub_affs_label): Likewise.
47042 (grub_affs_iterate_dir): Likewise.
47043 * fs/sfs.c (grub_sfs_mount): Likewise.
47044 (grub_sfs_iterate_dir): Likewise.
47045 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
47046 * fs/hfs.c (grub_hfs_mount): Likewise.
47047 (grub_hfs_cmp_catkeys): Likewise.
47048 (grub_hfs_find_dir): Likewise.
47049 (grub_hfs_dir): Likewise.
47050 (grub_hfs_label): Likewise.
47051 * fs/jfs.c (grub_jfs_mount): Likewise.
47052 (grub_jfs_opendir): Likewise.
47053 (grub_jfs_getent): Likewise.
47054 (grub_jfs_lookup_symlink): Likewise.
47055 (grub_jfs_label): Likewise.
47056 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
47057 (grub_hfsplus_iterate_dir): Likewise.
47058 (grub_hfsplus_btree_iterate_node): Made static.
47059
47060 * util/grub-emu.c (prefix): New variable.
47061 (grub_machine_set_prefix): New function.
47062 (main): Do not set the environment variable "prefix" here. Only
47063 set PREFIX, which is used later by grub_machine_set_prefix.
47064
47065 * include/grub/video.h: Do not include grub/symbol.h.
47066 (grub_video_register): Not exported. This symbol is not defined in
47067 the kernel.
47068 (grub_video_unregister): Likewise.
47069 (grub_video_iterate): Likewise.
47070 (grub_video_setup): Likewise.
47071 (grub_video_restore): Likewise.
47072 (grub_video_get_info): Likewise.
47073 (grub_video_get_blit_format): Likewise.
47074 (grub_video_set_palette): Likewise.
47075 (grub_video_get_palette): Likewise.
47076 (grub_video_set_viewport): Likewise.
47077 (grub_video_get_viewport): Likewise.
47078 (grub_video_map_color): Likewise.
47079 (grub_video_map_rgb): Likewise.
47080 (grub_video_map_rgba): Likewise.
47081 (grub_video_fill_rect): Likewise.
47082 (grub_video_blit_glyph): Likewise.
47083 (grub_video_blit_bitmap): Likewise.
47084 (grub_video_blit_render_target): Likewise.
47085 (grub_video_scroll): Likewise.
47086 (grub_video_swap_buffers): Likewise.
47087 (grub_video_create_render_target): Likewise.
47088 (grub_video_delete_render_target): Likewise.
47089 (grub_video_set_active_render_target): Likewise.
47090
47091 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
47092 Undefined.
47093 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
47094
47095 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
47096 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47097 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47098 instead of $(srcdir)/genkernsyms.sh.
47099
47100 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
47101 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47102 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47103 instead of $(srcdir)/genkernsyms.sh.
47104
47105 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
47106 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47107 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47108 instead of $(srcdir)/genkernsyms.sh.
47109
47110 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
47111 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
47112 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
47113 instead of $(srcdir)/genkernsyms.sh.
47114
47115 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
47116 genkernsyms.sh.
47117
47118 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
47119 genkernsyms.sh.
47120 (gensymlist.sh): New target.
47121 (genkernsyms.sh): Likewise.
47122
47123 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
47124 genkernsyms.sh.in and gensymlist.sh.in.
47125
47126 * genkernsyms.sh: Removed.
47127 * gensymlist.sh: Likewise.
f19dbdb7 47128
7b455f4d 47129 * genkernsyms.sh.in: New file.
47130 * gensymlist.sh.in: Likewise.
47131
1885bb27 471322006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47133
47134 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
47135 clobber "prefix", since we may have already set it manually.
47136
71538dff 471372006-04-25 Hollis Blanchard <hollis@penguinppc.org>
47138
47139 * kern/misc.c (abort): New alias for grub_abort.
47140
2965c7cc 471412006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
47142
47143 A new machine-specific function "grub_machine_set_prefix" is
47144 defined. This is called after loading modules, so that a prefix
47145 initialization can use modules. Also, this change adds an
47146 intensive debugging feature for the memory manager via the
47147 configure option "--enable-mm-debug".
f19dbdb7 47148
2965c7cc 47149 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
47150 PART.LEN.
47151
47152 * kern/sparc64/ieee1275/init.c (abort): Removed.
47153 (grub_stop): Likewise.
47154 (grub_exit): New function.
47155 (grub_set_prefix): Renamed to ...
47156 (grub_machine_set_prefix): ... this.
47157 (grub_machine_init): Do not call grub_set_prefix.
47158
47159 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
47160 (grub_machine_set_prefix): ... this.
47161 (grub_machine_init): Do not call grub_set_prefix.
47162
47163 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
47164 (grub_machine_init): Do not set the prefix here.
47165
47166 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
47167
47168 * kern/efi/init.c: Include grub/mm.h.
47169 (grub_efi_set_prefix): New function.
47170
47171 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
47172 (grub_efi_get_filename): New function.
47173 (grub_print_device_path): Renamed to ...
47174 (grub_efi_print_device_path): ... this.
47175
47176 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
47177 [MM_DEBUG] (grub_realloc): Likewise.
47178 [MM_DEBUG] (grub_free): Likewise.
47179 [MM_DEBUG] (grub_memalign): Likewise.
47180 [MM_DEBUG] (grub_mm_debug): New variable.
47181 [MM_DEBUG] (grub_debug_malloc): New function.
47182 [MM_DEBUG] (grub_debug_free): New function.
47183 [MM_DEBUG] (grub_debug_realloc): New function.
47184 [MM_DEBUG] (grub_debug_memalign): New function.
47185
47186 * kern/misc.c (grub_abort): Print a newline to distinguish
47187 the message.
47188
47189 * kern/main.c (grub_main): Call grub_machine_set_prefix and
47190 grub_set_root_dev after loading modules. This is necessary when
47191 setting a prefix depends on modules.
47192
47193 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
47194 (grub_efi_print_device_path): ... this.
47195 (grub_efi_get_filename): New prototype.
47196 (grub_efi_set_prefix): Likewise.
47197
47198 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
47199 and grub/disk.h.
47200 (grub_efidisk_get_device_handle): New prototype.
47201 (grub_efidisk_get_device_name): Likewise.
47202
47203 * include/grub/mm.h: Include config.h.
47204 (MM_DEBUG): Removed.
47205 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
47206 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
47207 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
47208 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
47209 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
47210 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
47211 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
47212 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
47213 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
47214
47215 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
47216
47217 * disk/efi/efidisk.c: Include grub/partition.h.
47218 (iterate_child_devices): New function.
47219 (add_device): First, compare only last device path nodes, so that
47220 devices are sorted by the types.
47221 (grub_efidisk_get_device_handle): New function.
47222 (grub_efidisk_get_device_name): Likewise.
47223
47224 * configure.ac (--enable-mm-debug): New option to enable the
47225 memory manager debugging feature. This makes the binary much
47226 bigger, so is disabled by default.
47227
9cacaa17 472282006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
47229
47230 Use grub_abort instead of grub_stop, and grub_exit must be
47231 define in each architecture now. Also, this change adds support
47232 for EFI disks.
f19dbdb7 47233
9cacaa17 47234 * util/i386/pc/grub-probefs.c: Include grub/term.h.
47235 (grub_getkey): New function.
47236 (grub_term_get_current): Likewise.
47237
47238 * util/i386/pc/grub-setup.c: Include grub/term.h.
47239 (grub_getkey): New function.
47240 (grub_term_get_current): Likewise.
47241
47242 * util/misc.c (grub_stop): Renamed to ...
47243 (grub_exit): ... this.
47244
47245 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
47246 (grub_exit): ... this.
47247 (grub_machine_init): Use grub_abort instead of abort.
47248 (grub_stop): Removed.
47249
47250 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
47251 abort.
47252
47253 * kern/i386/pc/startup.S (grub_exit): New function.
47254 (cold_reboot): New label.
47255
47256 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
47257 (grub_efi_init): Call grub_efidisk_init.
47258 (grub_efi_fini): Call grub_efidisk_fini.
47259
47260 * kern/efi/efi.c: Include grub/mm.h.
47261 (grub_efi_console_control_guid): Renamed to ...
47262 (console_control_guid): ... this.
47263 (grub_efi_loaded_image_guid): Renamed to ...
47264 (loaded_image_guid): ... this.
47265 (grub_efi_locate_handle): New function.
47266 (grub_efi_open_protocol): Likewise.
47267 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
47268 GRUB_EFI_CONSOLE_CONTROL_GUID.
47269 (grub_efi_exit): Removed.
47270 (grub_stop): Likewise.
47271 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
47272 (grub_exit): New function.
47273 (grub_print_device_path): Likewise.
47274
47275 * kern/rescue.c (grub_rescue_cmd_exit): New function.
47276 (grub_enter_rescue_mode): Register "exit".
47277
47278 * kern/misc.c (grub_real_dprintf): A cosmetic change.
47279 (grub_abort): New function.
47280
47281 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
47282
47283 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
47284
47285 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
47286
47287 * include/grub/efi/efi.h (grub_efi_exit): Removed.
47288 (grub_print_device_path): New prototype.
47289 (grub_efi_locate_handle): Likewise.
47290 (grub_efi_open_protocol): Likewise.
47291
47292 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
47293 * disk/efi/efidisk.c: Likewise.
47294
47295 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
47296
47297 * include/grub/efi/console_control.h
47298 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
47299
47300 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
47301 last 8 bytes as an array.
47302 (GRUB_EFI_DISK_IO_GUID): New macro.
47303 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
47304 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
47305 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
47306 grub_uint8_t.
47307 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
47308 (struct grub_efi_device_path): Rename the member "sub_type" to
47309 "subtype".
47310 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
47311 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
47312 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
47313 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
47314 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
47315 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
47316 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
47317 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
47318 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
47319 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
47320 (struct grub_efi_pci_device_path): New structure.
47321 (grub_efi_pci_device_path_t): New type.
47322 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
47323 (struct grub_efi_pccard_device_path): New structure.
47324 (grub_efi_pccard_device_path_t): New type.
47325 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
47326 (struct grub_efi_memory_mapped_device_path): New structure.
47327 (grub_efi_memory_mapped_device_path_t): New type.
47328 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
47329 (struct grub_efi_vendor_device_path): New structure.
47330 (grub_efi_vendor_device_path_t): New type.
47331 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
47332 (struct grub_efi_controller_device_path): New structure.
47333 (grub_efi_controller_device_path_t): New type.
47334 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
47335 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
47336 (struct grub_efi_acpi_device_path): New structure.
47337 (grub_efi_acpi_device_path_t): New type.
47338 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
47339 (struct grub_efi_expanded_acpi_device_path): New structure.
47340 (grub_efi_expanded_acpi_device_path_t): New type.
47341 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
47342 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
47343 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
47344 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
47345 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
47346 (struct grub_efi_atapi_device_path): New structure.
47347 (grub_efi_atapi_device_path_t): New type.
47348 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
47349 (struct grub_efi_fibre_channel_device_path): New structure.
47350 (grub_efi_fibre_channel_device_path_t): New type.
47351 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
47352 (struct grub_efi_1394_device_path): New structure.
47353 (grub_efi_1394_device_path_t): New type.
47354 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
47355 (struct grub_efi_usb_device_path): New structure.
47356 (grub_efi_usb_device_path_t): New type.
47357 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
47358 (struct grub_efi_usb_class_device_path): New structure.
47359 (grub_efi_usb_class_device_path_t): New type.
47360 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
47361 (struct grub_efi_i2o_device_path): New structure.
47362 (grub_efi_i2o_device_path_t): New type.
47363 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
47364 (struct grub_efi_mac_address_device_path): New structure.
47365 (grub_efi_mac_address_device_path_t): New type.
47366 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
47367 (struct grub_efi_ipv4_device_path): New structure.
47368 (grub_efi_ipv4_device_path_t): New type.
47369 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
47370 (struct grub_efi_ipv6_device_path): New structure.
47371 (grub_efi_ipv6_device_path_t): New type.
47372 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
47373 (struct grub_efi_infiniband_device_path): New structure.
47374 (grub_efi_infiniband_device_path_t): New type.
47375 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
47376 (struct grub_efi_uart_device_path): New structure.
47377 (grub_efi_uart_device_path_t): New type.
47378 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
47379 (struct grub_efi_vendor_messaging_device_path): New structure.
47380 (grub_efi_vendor_messaging_device_path_t): New type.
47381 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
47382 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
47383 (struct grub_efi_hard_drive_device_path): New structure.
47384 (grub_efi_hard_drive_device_path_t): New type.
47385 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
47386 (struct grub_efi_cdrom_device_path): New structure.
47387 (grub_efi_cdrom_device_path_t): New type.
47388 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
47389 (struct grub_efi_vendor_media_device_path): New structure.
47390 (grub_efi_vendor_media_device_path_t): New type.
47391 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
47392 (struct grub_efi_file_path_device_path): New structure.
47393 (grub_efi_file_path_device_path_t): New type.
47394 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
47395 (struct grub_efi_protocol_device_path): New structure.
47396 (grub_efi_protocol_device_path_t): New type.
47397 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
47398 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
47399 (struct grub_efi_bios_device_path): New structure.
47400 (grub_efi_bios_device_path_t): New type.
47401 (struct grub_efi_disk_io): New structure.
47402 (grub_efi_disk_io_t): New type.
47403 (struct grub_efi_block_io_media): New structure.
47404 (grub_efi_block_io_media_t): New type.
47405 (struct grub_efi_block_io): New structure.
47406 (grub_efi_block_io_t): New type.
47407
47408 * include/grub/misc.h (grub_stop): Removed.
47409 (grub_exit): New prototype.
47410 (grub_abort): Likewise.
47411
47412 * include/grub/disk.h (enum grub_disk_dev_id): Added
47413 GRUB_DISK_DEVICE_EFIDISK_ID.
47414
47415 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
47416 disk/efi/efidisk.c.
47417 (kernel_syms.lst): Remove the target if an error occurs.
47418
49986a9f 474192006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
47420
47421 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
47422 as it was simply too buggy.
47423
970d3b8a 474242006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
47425
47426 * kern/misc.c (grub_lltoa): New function.
47427 (grub_vsprintf): Added support for the long long suffix,
47428 i.e. "ll".
47429
ff04ec24 474302006-04-20 Hollis Blanchard <hollis@penguinppc.org>
47431
47432 * Makefile.in (LDFLAGS): Add variable.
47433 (LD): Remove variable.
47434 * configure.ac: Add -m32 to LDFLAGS.
47435 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
47436 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
47437 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
47438 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
47439 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
47440 variables.
47441 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
47442 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
47443 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
47444
37e5e1a4 474452006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
47446
47447 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
47448 length for unknown glyph.
47449
c352d8dd 474502006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
47451
2eab1c0d 47452 Add support for pre-loaded modules into the EFI port.
f19dbdb7 47453
2eab1c0d 47454 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
47455 completely. Accept one more argument DIR. The caller has changed.
47456
47457 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
47458
47459 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
47460 (grub_efi_loaded_image_guid): New variable.
47461 (grub_efi_get_loaded_image): New function.
47462 (grub_arch_modules_addr): Likewise.
47463
47464 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
47465 prototype.
47466
47467 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
47468 (struct grub_efi_loaded_image): New structure.
47469 (grub_efi_loaded_image_t): New type.
47470
474712006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 47472
c352d8dd 47473 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
47474 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
47475 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
47476
6d01d6b4 474772006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
47478
47479 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
47480
976a4ea0 474812006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
47482
47483 * DISTLIST: Added include/grub/efi/console.h,
47484 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
47485 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47486
47487 * include/grub/efi/console.h: New file.
47488 * include/grub/efi/time.h: Likewise.
47489 * include/grub/i386/efi/kernel.h: Likewise.
47490 * kern/efi/init.c: Likewise.
47491 * kern/efi/mm.c: Likewise.
47492 * term/efi/console.c: Likewise.
f19dbdb7 47493
976a4ea0 47494 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
47495 (grub_stop): Removed.
47496 (grub_get_rtc): Likewise.
47497 (grub_machine_init): Simply call grub_efi_init.
47498 (grub_machine_fini): Call grub_efi_fini.
47499
47500 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
47501 (grub_efi_output_string): Removed.
47502 (grub_efi_stall): New function.
47503 (grub_stop): Likewise.
47504 (grub_get_rtc): Likewise.
47505
47506 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
47507 (grub_efi_stall): New prototype.
47508 (grub_efi_allocate_pages): Likewise.
47509 (grub_efi_free_pages): Likewise.
47510 (grub_efi_get_memory_map): Likewise.
47511 (grub_efi_mm_init): Likewise.
47512 (grub_efi_mm_fini): Likewise.
47513 (grub_efi_init): Likewise.
47514 (grub_efi_fini): Likewise.
47515
47516 * include/grub/i386/efi/time.h: Do not include
47517 grub/symbol.h. Include grub/efi/time.h.
47518 (GRUB_TICKS_PER_SECOND): Removed.
47519 (grub_get_rtc): Likewise.
47520
47521 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
47522 Added padding. The EFI spec is buggy.
47523 (GRUB_EFI_BLACK): New macro.
47524 (GRUB_EFI_BLUE): Likewise.
47525 (GRUB_EFI_GREEN): Likewise.
47526 (GRUB_EFI_CYAN): Likewise.
47527 (GRUB_EFI_RED): Likewise.
47528 (GRUB_EFI_MAGENTA): Likewise.
47529 (GRUB_EFI_BROWN): Likewise.
47530 (GRUB_EFI_LIGHTGRAY): Likewise.
47531 (GRUB_EFI_BRIGHT): Likewise.
47532 (GRUB_EFI_DARKGRAY): Likewise.
47533 (GRUB_EFI_LIGHTBLUE): Likewise.
47534 (GRUB_EFI_LIGHTGREEN): Likewise.
47535 (GRUB_EFI_LIGHTCYAN): Likewise.
47536 (GRUB_EFI_LIGHTRED): Likewise.
47537 (GRUB_EFI_LIGHTMAGENTA): Likewise.
47538 (GRUB_EFI_YELLOW): Likewise.
47539 (GRUB_EFI_WHITE): Likewise.
47540 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
47541 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
47542 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
47543 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
47544 (GRUB_EFI_BACKGROUND_RED): Likewise.
47545 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
47546 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
47547 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
47548 (GRUB_EFI_TEXT_ATTR): Likewise.
47549
47550 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
47551 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
47552 (kernel_mod_HEADERS): Added efi/time.h.
47553
83709125 475542006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
47555
47556 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
47557 include/grub/efi/api.h, include/grub/efi/console_control.h,
47558 include/grub/efi/efi.h, include/grub/efi/pe32.h,
47559 include/grub/i386/efi/time.h, kern/efi/efi.c,
47560 kern/i386/efi/init.c, kern/i386/efi/startup.S,
47561 and util/i386/efi/grub-mkimage.c.
47562
47563 * Makefile.in (RMKFILES): Added i386-efi.rmk.
47564
47565 * genmk.rb (PModule#rule): Do not export symbols if
47566 #{prefix}_EXPORTS is set to "no".
47567
47568 * conf/i386-efi.mk: New file.
47569 * conf/i386-efi.rmk: Likewise.
47570 * include/grub/efi/api.h: Likewise.
47571 * include/grub/efi/console_control.h: Likewise.
47572 * include/grub/efi/efi.h: Likewise.
47573 * include/grub/efi/pe32.h: Likewise.
47574 * include/grub/i386/efi/time.h: Likewise.
47575 * kern/efi/efi.c: Likewise.
47576 * kern/i386/efi/init.c: Likewise.
47577 * kern/i386/efi/startup.S: Likewise.
47578 * util/i386/efi/grub-mkimage.c: Likewise.
47579
475802006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 47581
47582 * include/grub/script.h: Include <grub/parser.h> and
47583 "grub_script.tab.h".
47584 (struct grub_lexer_param): New struct.
47585 (struct grub_parser_param): Likewise.
47586 (grub_script_create_arglist): Pass the state in an argument.
47587 (grub_script_add_arglist): Likewise.
47588 (grub_script_create_cmdline): Likewise.
47589 (grub_script_create_cmdblock): Likewise.
47590 (grub_script_create_cmdif): Likewise.
47591 (grub_script_create_cmdmenu): Likewise.
47592 (grub_script_add_cmd): Likewise.
47593 (grub_script_arg_add): Likewise.
47594 (grub_script_lexer_ref): Likewise.
47595 (grub_script_lexer_deref): Likewise.
47596 (grub_script_lexer_record_start): Likewise.
47597 (grub_script_lexer_record_stop): Likewise.
47598 (grub_script_mem_record): Likewise.
47599 (grub_script_mem_record_stop): Likewise.
47600 (grub_script_malloc): Likewise.
47601 (grub_script_yylex): Likewise.
47602 (grub_script_yyparse): Likewise.
47603 (grub_script_yyerror): Likewise.
47604 (grub_script_yylex): Likewise.
47605 (grub_script_lexer_init): Return the state.
47606
47607 * normal/lexer.c (grub_script_lexer_state): Removed variable.
47608 (grub_script_lexer_done): Likewise.
47609 (grub_script_lexer_getline): Likewise.
47610 (grub_script_lexer_refs): Likewise.
47611 (script): Likewise.
47612 (newscript): Likewise.
47613 (record): Likewise.
47614 (recording): Likewise.
47615 (recordpos): Likewise.
47616 (recordlen): Likewise.
47617 (grub_script_lexer_init): Return the state instead of setting
47618 global variables.
47619 (grub_script_lexer_ref): Use the newly added argument for state
47620 instead of globals.
47621 (grub_script_lexer_deref): Likewise.
47622 (grub_script_lexer_record_start): Likewise.
47623 (grub_script_lexer_record_stop): Likewise.
47624 (recordchar): Likewise.
47625 (nextchar): Likewise.
47626 (grub_script_yylex2): Likewise.
47627 (grub_script_yylex): Likewise.
47628 (grub_script_yyerror): Likewise.
47629
47630 * normal/parser.y (func_mem): Removed variable.
47631 (menu_entry): Likewise.
47632 (err): Likewise.
47633 (%lex-param): New parser option.
47634 (%parse-param): Likewise.
47635 (script): Always return the AST.
47636 (argument): Pass the state around.
47637 (arguments): Likewise.
47638 (grubcmd): Likewise.
47639 (commands): Likewise.
47640 (function): Likewise.
47641 (menuentry): Likewise.
47642 (if_statement): Likewise.
47643 (if): Likewise.
47644
47645 * normal/script.c (grub_script_memused): Removed variable.
47646 (grub_script_parsed): Likewise.
47647 (grub_script_malloc): Added a state argument. Use that instead of
47648 global variables.
47649 (grub_script_mem_record): Likewise.
47650 (grub_script_mem_record_stop): Likewise.
47651 (grub_script_arg_add): Likewise.
47652 (grub_script_add_arglist): Likewise.
47653 (grub_script_create_cmdline): Likewise.
47654 (grub_script_create_cmdif): Likewise.
47655 (grub_script_create_cmdmenu): Likewise.
47656 (grub_script_add_cmd): Likewise.
47657 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 47658
e2a8c904 476592006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 47660
47661 * normal/command.c (grub_command_init): Remove the title command.
47662
47663 * normal/lexer.c (grub_script_yylex): Renamed from this...
47664 (grub_script_yylex2): ... to this.
47665 (grub_script_yylex): New function. Temporary
47666 introduced to filter some tokens.
47667 (grub_script_yyerror): Print a newline.
47668
47669 * normal/main.c (read_config_file): Output information about the
47670 lines that contain errors. Wait for a key after all lines have
47671 been processed. Don't return an empty menu.
47672
47673 * normal/parser.y (func_mem): Don't initialize.
47674 (menu_entry): Likewise.
47675 (err): New variable.
47676 (script): Don't return anything when an error was encountered.
47677 (ws, returns): Removed rules.
47678 (argument): Disabled concatenated variable support.
47679 (arguments): Remove explicit separators.
47680 (grubcmd): Likewise.
47681 (function): Likewise.
47682 (menuentry): Likewise.
47683 (if): Likewise.
47684 (commands): Likewise. Add error handling.
47685
47686 * normal/script.c (grub_script_create_cmdline): If
47687 `grub_script_parsed' is 0, assume the parser encountered an error.
47688
c9a86192 476892006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
47690
47691 * configure.ac: Add support for EFI. Fix the typo
47692 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
47693
70f3b243 476942006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47695
47696 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
47697 foreign multibyte characters should be shown correctly.
47698
65f201ad 476992006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
47700
47701 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
47702 calculation.
47703 (read_config_file): Made it to close file before returning.
47704
b4b93674 477052006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
47706
47707 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
47708 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
47709 video/i386/pc/vbefill.c.
47710
47711 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
47712 video/i386/pc/vbefill.c.
47713
47714 * include/grub/video.h (grub_video_blit_format): New enum.
47715 (grub_video_mode_info): Added new member blit_format.
47716 (grub_video_get_blit_format): New function prototype.
47717
47718 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
47719 function prototype.
47720 (grub_video_vbe_map_rgb): Likewise.
47721 (grub_video_vbe_unmap_color): Likewise.
47722
47723 * include/grub/i386/pc/vbeblit.h: New file.
47724
47725 * include/grub/i386/pc/vbefill.h: New file.
47726
47727 * video/video.c (grub_video_get_blit_format): New function.
47728 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
47729 (grub_video_vbe_map_rgb): Likewise.
47730 (grub_video_vbe_unmap_color): Likewise.
47731
47732 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
47733 optimized fills.
47734 (grub_video_vbe_blit_render_target): Changed to use more optimized
47735 blits.
47736 (grub_video_vbe_setup): Added detection for optimized settings.
47737 (grub_video_vbe_create_render_target): Likewise.
47738
47739 * video/i386/pc/vbeblit.c: New file.
47740
47741 * video/i386/pc/vbefill.c: New file.
47742
c2379b9c 477432006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
47744
47745 * font/manager.c (grub_font_get_glyph): Removed font fixup from
47746 here...
47747
47748 * util/unifont2pff.rb: ... and moved it to here. Improved argument
47749 parsing to support both hex and dec ranges. If filename was missing
47750 show usage information.
47751
bd0d7896 477522006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
47753
47754 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
47755 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
47756
47757 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
47758 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
47759 (video_mod_SOURCES): Added.
47760 (video_mod_CFLAGS): Likewise.
47761 (video_mod_LDFLAGS): Likewise.
47762 (gfxterm_mod_SOURCES): Likewise.
47763 (gfxterm_mod_CFLAGS): Likewise.
47764 (gfxterm_mod_LDFLAGS): Likewise.
47765 (videotest_mod_SOURCES): Likewise.
47766 (videotest_mod_CFLAGS): Likewise.
47767 (videotest_mod_LDFLAGS): Likewise.
47768 (vesafb_mod_SOURCES): Removed.
47769 (vesafb_mod_CFLAGS): Likewise.
47770 (vesafb_mod_LDFLAGS): Likewise.
47771 (vga_mod_SOURCES): Likewise.
47772 (vga_mod_CFLAGS): Likewise.
47773 (vga_mod_LDFLAGS): Likewise.
47774
47775 * commands/videotest.c: New file.
47776
47777 * font/manager.c (fill_with_default_glyph): Modified to use
47778 grub_font_glyph.
47779 (grub_font_get_glyph): Likewise.
47780 (fontmanager): Renamed from this...
47781 (font_manager): ... to this.
47782
47783 * include/grub/font.h (grub_font_glyph): Added new structure.
47784 (grub_font_get_glyph): Modified to use grub_font_glyph.
47785
47786 * include/grub/misc.h (grub_abs): Added as inline function.
47787
47788 * include/grub/video.h: New file.
47789
47790 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
47791 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
47792 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
47793 (grub_vbe_get_controller_info): Renamed from this...
47794 (grub_vbe_bios_get_controller_info): ... to this.
47795 (grub_vbe_get_mode_info): Renamed from this...
47796 (grub_vbe_bios_get_mode_info): ... to this.
47797 (grub_vbe_set_mode): Renamed from this...
47798 (grub_vbe_bios_set_mode): ... to this.
47799 (grub_vbe_get_mode): Renamed from this...
47800 (grub_vbe_bios_get_mode): ... to this.
47801 (grub_vbe_set_memory_window): Renamed from this...
47802 (grub_vbe_bios_set_memory_window): ... to this.
47803 (grub_vbe_get_memory_window): Renamed from this...
47804 (grub_vbe_bios_get_memory_window): ... to this.
47805 (grub_vbe_set_scanline_length): Renamed from this...
47806 (grub_vbe_set_scanline_length): ... to this.
47807 (grub_vbe_get_scanline_length): Renamed from this...
47808 (grub_vbe_bios_get_scanline_length): ... to this.
47809 (grub_vbe_set_display_start): Renamed from this...
47810 (grub_vbe_bios_set_display_start): ... to this.
47811 (grub_vbe_get_display_start): Renamed from this...
47812 (grub_vbe_bios_get_display_start): ... to this.
47813 (grub_vbe_set_palette_data): Renamed from this...
47814 (grub_vbe_bios_set_palette_data): ... to this.
47815 (grub_vbe_set_pixel_rgb): Removed.
47816 (grub_vbe_set_pixel_index): Likewise.
47817
47818 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
47819 from this...
47820 (grub_vbe_bios_get_controller_info): ... to this.
47821 (grub_vbe_get_mode_info): Renamed from this...
47822 (grub_vbe_bios_get_mode_info): ... to this.
47823 (grub_vbe_set_mode): Renamed from this...
47824 (grub_vbe_bios_set_mode): ... to this.
47825 (grub_vbe_get_mode): Renamed from this...
47826 (grub_vbe_bios_get_mode): ... to this.
47827 (grub_vbe_set_memory_window): Renamed from this...
47828 (grub_vbe_bios_set_memory_window): ... to this.
47829 (grub_vbe_get_memory_window): Renamed from this...
47830 (grub_vbe_bios_get_memory_window): ... to this.
47831 (grub_vbe_set_scanline_length): Renamed from this...
47832 (grub_vbe_set_scanline_length): ... to this.
47833 (grub_vbe_get_scanline_length): Renamed from this...
47834 (grub_vbe_bios_get_scanline_length): ... to this.
47835 (grub_vbe_set_display_start): Renamed from this...
47836 (grub_vbe_bios_set_display_start): ... to this.
47837 (grub_vbe_get_display_start): Renamed from this...
47838 (grub_vbe_bios_get_display_start): ... to this.
47839 (grub_vbe_set_palette_data): Renamed from this...
47840 (grub_vbe_bios_set_palette_data): ... to this.
47841 (grub_vbe_bios_get_controller_info): Fixed problem with registers
47842 getting corrupted after calling it. Added more pushes and pops.
47843 (grub_vbe_bios_set_mode): Likewise.
47844 (grub_vbe_bios_get_mode): Likewise.
47845 (grub_vbe_bios_get_memory_window): Likewise.
47846 (grub_vbe_bios_set_scanline_length): Likewise.
47847 (grub_vbe_bios_get_scanline_length): Likewise.
47848 (grub_vbe_bios_get_display_start): Likewise.
47849 (grub_vbe_bios_set_palette_data): Likewise.
47850
47851 * normal/cmdline.c (cl_set_pos): Refresh the screen.
47852 (cl_insert): Likewise.
47853 (cl_delete): Likewise.
47854
47855 * term/gfxterm.c: New file.
47856
47857 * term/i386/pc/vesafb.c: Removed file.
47858
47859 * video/video.c: New file.
47860
47861 * video/i386/pc/vbe.c (real2pm): Added new function.
47862 (grub_video_vbe_draw_pixel): Likewise.
47863 (grub_video_vbe_get_video_ptr): Likewise.
47864 (grub_video_vbe_get_pixel): Likewise
47865 (grub_video_vbe_init): Likewise.
47866 (grub_video_vbe_fini): Likewise.
47867 (grub_video_vbe_setup): Likewise.
47868 (grub_video_vbe_get_info): Likewise.
47869 (grub_video_vbe_set_palette): Likewise.
47870 (grub_video_vbe_get_palette): Likewise.
47871 (grub_video_vbe_set_viewport): Likewise.
47872 (grub_video_vbe_get_viewport): Likewise.
47873 (grub_video_vbe_map_color): Likewise.
47874 (grub_video_vbe_map_rgb): Likewise.
47875 (grub_video_vbe_map_rgba): Likewise.
47876 (grub_video_vbe_unmap_color): Likewise.
47877 (grub_video_vbe_fill_rect): Likewise.
47878 (grub_video_vbe_blit_glyph): Likewise.
47879 (grub_video_vbe_blit_bitmap): Likewise.
47880 (grub_video_vbe_blit_render_target): Likewise.
47881 (grub_video_vbe_scroll): Likewise.
47882 (grub_video_vbe_swap_buffers): Likewise.
47883 (grub_video_vbe_create_render_target): Likewise.
47884 (grub_video_vbe_delete_render_target): Likewise.
47885 (grub_video_vbe_set_active_render_target): Likewise.
47886 (grub_vbe_set_pixel_rgb): Remove function.
47887 (grub_vbe_set_pixel_index): Likewise.
47888 (index_color_mode): Remove static variable.
47889 (active_mode): Likewise.
47890 (framebuffer): Likewise.
47891 (bytes_per_scan_line): Likewise.
47892 (grub_video_vbe_adapter): Added new static variable.
47893 (framebuffer): Likewise.
47894 (render_target): Likewise.
47895 (initial_mode): Likewise.
47896 (mode_in_use): Likewise.
47897 (mode_list): Likewise.
47898
5f97350b 478992006-03-10 Marco Gerards <marco@gnu.org>
47900
47901 * configure.ac (AC_INIT): Bumped to 1.93.
47902
47903 * DISTLIST: Added `include/grub/hfs.h'.
47904
a3c5c6f8 479052006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
47906
47907 * boot/i386/pc/boot.S (general_error): Before looping, try INT
47908 18H, which might help the BIOS falling back to next boot media.
47909
6de53d26 479102006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
47911
47912 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
47913 Poe Chen <poe.poechen@gmail.com>.
47914
77c4a393 479152006-01-17 Marco Gerards <marco@gnu.org>
47916
47917 * include/grub/normal.h: Include <grub/script.h>.
47918 (grub_command_list): Removed struct.
47919 (grub_command_list_t): Removed type.
47920 (grub_menu_entry): Remove members `num' and `command_list'. Add
47921 members `commands' and `sourcecode'.
47922 * include/grub/script.h: Add inclusion guards.
47923 (grub_script_cmd_menuentry): New struct.
47924 (grub_script_execute_menuentry): New prototype.
47925 (grub_script_lexer_record_start): Likewise.
47926 (grub_script_lexer_record_stop): Likewise.
47927 * normal/execute.c (grub_script_execute_menuentry): New function.
47928 * normal/lexer.c (record, recording, recordpos, recordlen): New
47929 variables.
47930 (grub_script_lexer_record_start): New function.
47931 (grub_script_lexer_record_stop): Likewise.
47932 (recordchar): Likewise.
47933 (nextchar): Likewise.
47934 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
47935 2048 as the buffer size. Add the tokens `menuentry' and `@'.
47936 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
47937 (current_menu): New variable.
47938 (free_menu): Mainly rewritten.
47939 (grub_normal_menu_addentry): New function.
47940 (read_config_file): Rewritten.
47941 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 47942 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 47943 the menu entry.
47944 (run): Mainly rewritten.
47945 * normal/parser.y (menu_entry): New variable.
47946 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
47947 (menuentry): New rule.
47948 (command): Add `menuentry'.
47949 (if_statement): Allow additional returns before `fi'.
47950 * normal/script.c (grub_script_create_cmdmenu): New function.
47951
144f1f98 479522006-01-03 Marco Gerards <marco@gnu.org>
47953
47954 * INSTALL: GNU Bison is required.
47955 * configure.ac: Rewritten the test to detect Bison.
47956 * Makefile.in (YACC): New variable. Reported by Xun Sun
47957 <xun.sun.cn@gmail.com>.
47958
af4b2d89 479592006-01-03 Marco Gerards <marco@gnu.org>
47960
47961 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
47962 the HFS+ filesystem to filesystem blocks.
47963 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
47964 GCC warning is silenced.
47965
15643b71 479662006-01-03 Marco Gerards <marco@gnu.org>
47967
47968 * partmap/apple.c (apple_partition_map_iterate): Convert the data
47969 read from disk from big endian to host byte order.
47970
00905879 479712006-01-03 Hollis Blanchard <hollis@penguinppc.org>
47972
47973 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
47974 documentation.
47975 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
47976 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
47977 embedded HFS+ filesystem.
47978 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
47979 (grub_hfs_sblock): Move from here...
47980 * include/grub/hfs.h: To here... New file.
47981 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
47982 documentation.
47983 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
47984 New macros.
47985 (grub_hfsplus_volheader): Change type of member `magic' to
47986 `grub_uint16_t'.
47987 (grub_hfsplus_data): Add new member `embedded_offset'.
47988 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
47989 returned block.
47990 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
47991 Calculate the offset.
47992
8899bc3e 479932005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
47994
47995 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
47996 Removed.
47997 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
47998
ae8c0277 479992005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48000
48001 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
48002 ENV->NAME is NULL after allocating ENV->VALUE.
48003
07084456 480042005-12-25 Marco Gerards <marco@gnu.org>
48005
48006 * kern/env.c (grub_env_set): Rewritten the error handling code.
48007
4750f5f1 480082005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48009
48010 * geninit.sh: Made more robust, and more portable.
48011
50214199 480122005-12-25 Marco Gerards <marco@gnu.org>
48013
48014 Add support for Apple HFS+ filesystems.
f19dbdb7 48015
50214199 48016 * fs/hfsplus.c: New file.
48017
48018 * DISTLIST: Added `fs/hfsplus.c'.
48019
48020 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
48021 (hfsplus_mod_SOURCES): New variable.
48022 (hfsplus_mod_CFLAGS): Likewise.
48023 (hfsplus_mod_LDFLAGS): Likewise.
48024 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
48025 (grub_setup_SOURCES): Likewise.
48026 (grub_mkdevicemap_SOURCES): Likewise.
48027 (grub_emu_SOURCES): Likewise.
48028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
48029
48030 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
48031
48032 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
48033
befaed6c 480342005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
48035
48036 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
48037 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
48038 include/grub/parser.h, include/grub/script.h, kern/parser.c,
48039 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
48040 normal/lexer.c, normal/parser.y, normal/script.c, and
48041 partmap/gpt.c.
48042 Removed kern/sparc64/cache.c.
48043
48044 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
48045 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
48046 grub_emu_init.c.
48047
48048 * configure.ac (AC_INIT): Bumped to 1.92.
48049
6a124103 480502005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
48051
48052 * kern/err.c (grub_error_push): Added new function to support error
48053 stacks.
48054 (grub_error_pop): Likewise.
48055 (grub_error_stack_items): New local variable to support error stacks.
48056 (grub_error_stack_pos): Likewise.
48057 (grub_error_stack_assert): Likewise.
48058 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
48059 stack depth.
48060 (grub_print_error): Added support to print errors from error stack.
48061
48062 * include/grub/err.h (grub_error_push): Added function prototype.
48063 (grub_error_pop): Likewise.
48064
be973c1b 480652005-12-09 Hollis Blanchard <hollis@penguinppc.org>
48066
48067 * configure.ac: Accept `powerpc64' as host_cpu.
48068 (amd64): Rename to `biarch32'.
48069
48070 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
48071 non-cacheline-aligned addresses.
48072
48073 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
48074 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
48075 if `size' is non-zero.
48076
b04216ab 480772005-12-03 Marco Gerards <mgerards@xs4all.nl>
48078
48079 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
48080 and `cd' to make sure the filename is not prefixed with a
48081 directory name.
48082 (pkgdata_MODULES): Add `gpt.mod'.
48083 (gpt_mod_SOURCES): New variable.
48084 (gpt_mod_CFLAGS): Likewise.
48085 (gpt_mod_LDFLAGS): Likewise.
48086
48087 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
48088
48089 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
48090 New macro.
48091
48092 * partmap/gpt.c: New file.
48093
48094 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
48095 GPT partition map is detected.
48096
41730ed9 480972005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
48098
48099 * commands/i386/pc/play.c: New file.
48100 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
48101 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
48102 macros.
f19dbdb7 48103
95dc3643 481042005-11-27 Marco Gerards <mgerards@xs4all.nl>
48105
48106 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
48107 ((unused))' to silence gcc warning.
48108
1569ec51 481092005-11-26 Hollis Blanchard <hollis@penguinppc.org>
48110
48111 * configure.ac: Correct `AC_PROG_YACC' test.
48112
9abde152 481132005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48114
48115 * util/powerpc/ieee1275/grub-install.in: Run the mount point
48116 check before installing files.
48117
44b83271 481182005-11-22 Mike Small <smallm@panix.com>
48119
48120 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
48121 number regex so multidigit numbers are recognized correctly.
48122
481232005-11-22 Mike Small <smallm@panix.com>
48124
48125 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
48126 debugging message before attempting to claim memory.
48127 (grub_rescue_cmd_initrd): Add a claim debugging message and try
48128 multiple addresses in case of failure.
48129
9c12956b 481302005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48131
48132 * term/tparm.c (get_space): Remove empty `if' statement.
48133
48134 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
48135
48136 * kern/parser.c (check_varstate): Rename `state' to 's'.
48137
aeaf81d9 481382005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48139
48140 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
48141 variable definitions to the beginning of each function. Sort stack
48142 variables by size.
48143 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
48144 `buf' argument to `char *'.
48145
79bbb63f 481462005-11-22 Hollis Blanchard <hollis@penguinppc.org>
48147
48148 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
48149 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 48150 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 48151 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48152 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48153 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48154 configfile.mod, search.mod, gzio.mod and test.mod.
48155 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48156 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48157 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48158 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48159 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48160 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48161 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48162 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48163 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48164 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48165 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48166 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48167 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48168 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48169 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48170 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48171 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48172 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48173 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48174 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48175 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48176 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48177 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
48178
48179 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
48180 `grep --include'.
48181 (pkgdata_MODULES): Add test.mod.
48182
233b1628 481832005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48184
48185 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
48186 appending to variables with "+=".
48187 (PModule): Use full pathname to generate *.lst filenames.
48188
48189 * Makefile.in: Fixed list rules moved from genmk.rb.
48190 (.DELETE_ON_ERROR): New special target.
48191 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
48192
48193 * conf/i386-pc.rmk: Include conf/common.mk.
48194 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 48195 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 48196 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
48197 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
48198 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
48199 configfile.mod, search.mod, gzio.mod and test.mod.
48200 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
48201 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
48202 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
48203 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
48204 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
48205 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
48206 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
48207 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
48208 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
48209 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
48210 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48211 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48212 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
48213 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
48214 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
48215 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
48216 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
48217 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
48218 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
48219 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
48220 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
48221 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
48222 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
48223 here...
48224 * conf/common.rmk: ... to here. New file.
48225
48226 * conf/common.mk: New file.
48227
16f820c8 482282005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
48229
48230 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
48231 (grub_script.tab.c): ... here.
48232
48233 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
48234 (grub_script.tab.c): ... here.
48235
48236 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
48237 (grub_script.tab.c): ... here.
48238
48239 * normal/command.c (grub_command_find): Fixed a memory leak of
48240 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
48241
63ba1554 482422005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48243
48244 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
48245 "@" which marks the start of a comment on ARM.
48246 (VARIABLE): Likewise.
48247
7f67dc13 482482005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48249
79bbb63f 48250 Add support for Linux/ADFS partition tables.
7f67dc13 48251
48252 * partmap/acorn.c: New file.
48253
48254 * include/grub/acorn_filecore.h: Likewise.
48255
48256 * DISTLIST: Added `partmap/acorn.c' and
48257 `include/grub/acorn_filecore.h'.
f19dbdb7 48258
7f67dc13 48259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48260 `partmap/acorn.c'.
48261 (pkgdata_MODULES): Add `acorn.mod'.
48262 (acorn_mod_SOURCES): New variable.
48263 (acorn_mod_CFLAGS): Likewise.
48264
48265 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48266 `partmap/acorn.c'.
48267 (pkgdata_MODULES): Add `acorn.mod'.
48268 (acorn_mod_SOURCES): New variable.
48269 (acorn_mod_CFLAGS): Likewise.
48270
48271 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
48272 (pkgdata_MODULES): Add `acorn.mod'.
48273 (acorn_mod_SOURCES): New variable.
48274 (acorn_mod_CFLAGS): Likewise.
48275 (acorn_mod_LDFLAGS): Likewise.
48276
48277 * include/types.h (grub_disk_addr_t): New typedef.
48278
6d099807 482792005-11-13 Marco Gerards <mgerards@xs4all.nl>
48280
48281 * geninit.sh: New file.
48282
48283 * geninitheader.sh: Likewise.
48284
48285 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
48286 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
48287 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
48288 * commands/configfile.c (grub_configfile_init)
48289 (grub_configfile_fini): Likewise.
48290 * commands/default.c (grub_default_init, grub_default_fini):
48291 Likewise.
48292 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
48293 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
48294 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
48295 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
48296 Likewise.
48297 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
48298 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
48299 Likewise.
48300 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 48301 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 48302 Likewise.
48303 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
48304 Likewise.
fe6b695a 48305 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 48306 Likewise.
48307 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
48308 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
48309 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
48310 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
48311 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
48312 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
48313 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
48314 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
48315 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
48316 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
48317 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
48318 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
48319 * partmap/amiga.c (grub_amiga_partition_map_init)
48320 (grub_amiga_partition_map_fini): Likewise.
48321 * partmap/apple.c (grub_apple_partition_map_init)
48322 (grub_apple_partition_map_fini): Likewise.
48323 * partmap/pc.c (grub_pc_partition_map_init)
48324 (grub_pc_partition_map_fini): Likewise.
48325 * partmap/sun.c (grub_sun_partition_map_init,
48326 grub_sun_partition_map_fini): Likewise.
48327 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
48328 Likewise.
48329
48330 * util/grub-emu.c: Include <grub_modules_init.h>.
48331 (main): Don't initialize and de-initialize any modules directly,
48332 use `grub_init_all' and `grub_fini_all' instead.
48333
48334 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
48335 `grub_vesafb_mod_init'.
48336 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
48337 all users.
48338 * term/i386/pc/vga.c (grub_vga_init): Renamed to
48339 `grub_vga_mod_init'. Updated all users.
48340 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 48341
6d099807 48342 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
48343 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
48344 rules.
48345
48346 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
48347 Generate a function to initialize the module in utilities.
48348 Updated all callers.
48349 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
48350 initialize the module in utilities. Updated all callers.
48351
9046bcf0 483522005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48353
48354 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
48355 escape sequence and a literal ^L to clear the screen.
48356
48357 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
48358 when returning from Open Firmware.
48359
d13ea639 483602005-11-09 Hollis Blanchard <hollis@penguinppc.org>
48361
48362 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
48363 (grub_ofconsole_height): Likewise.
48364 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
48365 manually insert a '\n'.
48366 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
48367 `grub_ofconsole_height'. Return early if these are already set.
48368
a8fcf206 483692005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
48370
48371 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
48372 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
48373 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
48374 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
48375 and `normal/script.c'.
48376 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48377 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48378 (test_mod_SOURCES): New variable.
48379 (test_mod_CFLAGS): Likewise.
48380 (test_mod_LDFLAGS): Likewise.
48381 (pkgdata_MODULES): Add `test.mod'.
48382 (grub_script.tab.c): New rule.
48383 (grub_script.tab.h): Likewise.
48384
b6b32745 483852005-11-07 Marco Gerards <mgerards@xs4all.nl>
48386
48387 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
48388 `commands/test.c', `normal/execute.c', `normal/lexer.c',
48389 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48390 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48391 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
48392 (test_mod_SOURCES): New variable.
48393 (test_mod_CFLAGS): Likewise.
48394 (pkgdata_MODULES): Add `test.mod'.
48395 (grub_script.tab.c): New rule.
48396 (grub_script.tab.h): Likewise.
48397
daac212a 483982005-11-06 Marco Gerards <mgerards@xs4all.nl>
48399
48400 Add initial scripting support.
48401
48402 * commands/test.c: New file.
48403 * include/grub/script.h: Likewise.
48404 * normal/execute.c: Likewise.
48405 * normal/function.c: Likewise.
48406 * normal/lexer.c: Likewise.
48407 * normal/parser.y: Likewise.
48408 * normal/script.c: Likewise.
48409
48410 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 48411
daac212a 48412 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
48413 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
48414 `normal/function.c' and `normal/script.c'.
48415 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
48416 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 48417 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
48418 variables.
daac212a 48419 (pkgdata_MODULES): Add `test.mod'.
48420 (grub_script.tab.c): New rule.
48421 (grub_script.tab.h): Likewise.
48422
48423 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
48424
48425 * include/grub/normal.h (grub_test_init): New prototype.
48426 (grub_test_fini): Likewise.
f19dbdb7 48427
daac212a 48428 * normal/command.c: Include <grub/script.h>.
48429 (grub_command_execute): Rewritten.
f19dbdb7 48430
daac212a 48431 * util/grub-emu.c (main): Call `grub_test_init' and
48432 `grub_test_fini'.
48433
77500b2b 484342005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48435
48436 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
48437 to 0.
48438 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
48439 there are no pending characters.
48440
e45deb9e 484412005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48442
48443 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
48444 `grub_strndup' to drop device arguments. Replace unnecessary
48445 `grub_strndup' with `grub_strdup'.
48446
4ce32619 484472005-11-03 Hollis Blanchard <hollis@penguinppc.org>
48448
48449 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
48450 `debug' environment variable has been set.
48451
484522005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 48453
4ce32619 48454 * Makefile.in (install-local): Use $(DATA).
48455 (uninstall): Likewise.
48456 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
48457 (sbin_UTILITIES): ... to here.
48458 (sbin_SCRIPTS): New variable.
48459 (grub_install_SOURCES): New variable.
48460 * util/powerpc/ieee1275/grub-install.in: New file.
48461 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
48462 variable.
48463 (add_segments): Call `grub_util_get_path'.
48464
25fe6f03 484652005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
48466
48467 From Timothy Baldwin:
48468 * commands/ls.c (grub_ls_list_files): Close FILE with
48469 grub_file_close.
48470 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
48471
04ccf3ec 484722005-10-24 Marco Gerards <mgerards@xs4all.nl>
48473
48474 * include/grub/parser.h: New file.
48475
48476 * kern/parser.c: Likewise.
48477
48478 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
48479 (grub_setup_SOURCES): Likewise.
48480 (grub_probefs_SOURCES): Likewise.
48481 (grub_emu_SOURCES): Likewise.
48482 (kernel_img_HEADERS): Add `parser.h'.
48483
48484 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48485 (grub_emu_SOURCES): Add `kern/parser.c'.
48486 (grubof_SOURCES): Likewise.
48487
48488 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
48489 (grubof_SOURCES): Add `kern/parser.c'.
48490
48491 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
48492
48493 * kern/misc.c (grub_split_cmdline): Removed function.
48494
48495 * kern/rescue.c: Include <grub/parser.h>.
48496 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
48497 of `grub_split_cmdline'.
48498
48499 * normal/command.c: Include <grub/parser.h>.
48500 (grub_command_execute): Use `grub_parser_split_cmdline' instead
48501 of `grub_split_cmdline'.
48502
48503 * normal/completion.c: Include <grub/parser.h>.
48504 (cmdline_state): New variable.
48505 (iterate_dir): End the filename with a quote depending on the
48506 command line state.
48507 (get_state): new function.
48508 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
48509 split the arguments and determine the current argument. When the
48510 argument string is not quoted, escape all spaces.
48511
6d8f4b0e 485122005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48513
48514 * normal/sparc64/setjmp.S: New file.
48515
15cf03ed 485162005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48517
48518 * include/grub/sparc64/libgcc.h: New file.
48519 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
48520 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
48521 normal/sparc64/setjmp.c.
48522
03e8661a 485232005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
48524
48525 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
48526 * kern/sparc64/cache.S: New file.
48527 * kern/sparc64/cache.c: Removed.
48528 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
48529 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
48530 -mtune=ultrasparc.
48531 (COMMON_LDFLAGS): Add -melf64_sparc.
48532 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
48533 (grubof_SOURCES): Use cache.S instead of cache.c.
48534 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
48535 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
48536 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
48537 commented though.
48538 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
48539 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
48540 (linux_mod_CFLAGS): Commented out.
48541 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
48542 out because module isn't built.
48543 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
48544 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
48545 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
48546 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
48547 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
48548 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48549 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48550 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
48551 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
48552 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
48553 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
48554 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
48555 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
48556 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
48557
34eeec8a 485582005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
48559
48560 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
48561 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
48562 longer, because HFS should not be used on PC.
48563
708367a3 485642005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
48565
48566 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
48567 consistently within the loop.
48568
6fa1251a 485692005-10-15 Marco Gerards <mgerards@xs4all.nl>
48570
48571 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
48572 directory can not be read.
48573
4801580b 485742005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48575
48576 * configure.ac (AC_INIT): Increase the version number to 1.91.
48577
48578 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
48579 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
48580 term/i386/pc/serial.c.
48581
219ad426 485822005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48583
48584 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
48585 file size must be permitted.
48586
48587 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
48588 between %ah and %al.
48589
688e5699 485902005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
48591
48592 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
48593 grub_uint64_t.
48594 Call the hook with a NUL-terminated filename.
48595 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
48596 grub_cpu_to_be32.
48597
48598 * kern/term.c (cursor_state): New variable.
48599 (grub_term_set_current): Reset the cursor state on a new
48600 terminal.
48601 (grub_setcursor): Rewritten to use CURSOR_STATE.
48602 (grub_getcursor): New function.
48603
48604 * include/grub/term.h (grub_getcursor): New prototype.
48605
48606 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
48607 integers on ARM. Reported by Timothy Baldwin
48608 <T.E.Baldwin99@members.leeds.ac.uk>.
48609
bb34586c 486102005-10-11 Marco Gerards <mgerards@xs4all.nl>
48611
48612 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
48613 allocated.
48614 (grub_sfs_dir): Likewise.
48615
9a909877 486162005-10-09 Marco Gerards <mgerards@xs4all.nl>
48617
48618 Add support for the SFS filesystem.
48619
48620 * fs/sfs.c: New file.
48621
48622 * DISTLIST: Added `fs/sfs.c'.
48623
48624 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
48625 (grub_probefs_SOURCES): Likewise.
48626 (grub_emu_SOURCES): Likewise.
48627 (pkgdata_MODULES): Add `sfs.mod'.
48628 (sfs_mod_SOURCES): New variable.
48629 (sfs_mod_CFLAGS): Likewise.
48630 (sfs_mod_LDFLAGS): Likewise.
48631
48632 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
48633 (pkgdata_MODULES): Add `sfs.mod'.
48634 (sfs_mod_SOURCES): New variable.
48635 (sfs_mod_CFLAGS): Likewise.
48636
48637 * util/grub-emu.c (main): Call `grub_sfs_init' and
48638 `grub_sfs_fini'.
48639
48640 * include/grub/fs.h (grub_sfs_init): New prototype.
48641 (grub_sfs_fini): Likewise.
48642
57bdbde3 486432005-10-07 Marco Gerards <mgerards@xs4all.nl>
48644
48645 Add support for the AFFS filesystem.
48646
48647 * fs/affs.c: New file.
48648
48649 * DISTLIST: Added `fs/affs.c'.
48650
48651 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
48652 (grub_probefs_SOURCES): Likewise.
48653 (grub_emu_SOURCES): Likewise.
48654 (pkgdata_MODULES): Add `affs.mod'.
48655 (affs_mod_SOURCES): New variable.
48656 (affs_mod_CFLAGS): Likewise.
48657 (affs_mod_LDFLAGS): Likewise.
48658
48659 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
48660 (pkgdata_MODULES): Add `affs.mod'.
48661 (affs_mod_SOURCES): New variable.
48662 (affs_mod_CFLAGS): Likewise.
48663
48664 * util/grub-emu.c (main): Call `grub_affs_init' and
48665 `grub_affs_fini'.
48666
48667 * include/grub/fs.h (grub_affs_init): New prototype.
48668 (grub_affs_fini): Likewise.
48669
047b67e0 486702005-10-01 Marco Gerards <mgerards@xs4all.nl>
48671
48672 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
48673
59b8208a 486742005-10-01 Marco Gerards <mgerards@xs4all.nl>
48675
48676 * configure.ac: Accept `x86_64' as host_cpu. In that case add
48677 `-m32' to CFLAGS.
48678
48679 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
48680 linking.
f19dbdb7 48681
59b8208a 48682 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
48683 (COMMON_LDFLAGS): New variable.
48684 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
48685 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
48686 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
48687 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
48688 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
48689 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
48690 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
48691 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
48692 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
48693 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
48694 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
48695 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
48696 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
48697 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
48698 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
48699 variables.
48700 (normal_mod_ASFLAGS): Add `-m32'.
48701
48702 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
48703 (grub_host_size_t, grub_host_ssize_t): New types.
48704 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 48705 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 48706 `GRUB_HOST_SIZEOF_VOID_P'.
48707
48708 * include/grub/kernel.h (struct grub_module_header): Type of
48709 member offset changed to `grub_host_off_t'. Type of member size
48710 changed to `grub_host_size_t'.
48711 (struct grub_module_info): Type of member offset changed to
48712 `grub_host_off_t'. Type of member size changed to
48713 `grub_host_size_t'.
48714
b4093103 487152005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
48716
48717 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 48718
b4093103 48719 * kern/i386/pc/startup.S (multiboot_header): New label.
48720 (multiboot_entry): Likewise.
48721 (multiboot_trampoline): Likewise.
48722
48723 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
48724 Increased to 0x4A0.
48725
48726 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
48727 put parentheses after a question mark.
48728 [!GRUB_UTIL] (my_mod): New variable.
48729
48730 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
48731
b2499b29 487322005-09-28 Marco Gerards <mgerards@xs4all.nl>
48733
48734 Adds support for the XFS filesystem. Btrees are not supported
48735 yet.
48736
48737 * fs/xfs.c: New file.
48738
48739 * DISTLIST: Added `fs/xfs.c'.
48740
48741 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
48742 (grub_probefs_SOURCES): Likewise.
48743 (grub_emu_SOURCES): Likewise.
48744 (pkgdata_MODULES): Add `xfs.mod'.
48745 (xfs_mod_SOURCES): New variable.
48746 (xfs_mod_CFLAGS): Likewise.
48747
48748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
48749 (pkgdata_MODULES): Add `xfs.mod'.
48750 (xfs_mod_SOURCES): New variable.
48751 (xfs_mod_CFLAGS): Likewise.
48752
48753 * util/grub-emu.c (main): Call `grub_xfs_init' and
48754 `grub_xfs_fini'.
48755
48756 * include/grub/fs.h (grub_xfs_init): New prototype.
48757 (grub_xfs_fini): Likewise.
48758
f19dbdb7 48759
83d37a62 487602005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
48761
48762 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
48763 color modes, allow greater than 16 colors to be configured as
48764 a default palette.
48765
47d2d65e 487662005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
48767
48768 * normal/completion.c (complete_arguments): Add the qualifier
48769 const into OPTIONS.
48770
48771 From Omniflux <omniflux+lists@omniflux.com>:
48772 * include/grub/terminfo.h: New file.
48773 * include/grub/tparm.h: Likewise.
48774 * include/grub/i386/pc/serial.h: Likewise.
48775 * term/terminfo.c: Likewise.
48776 * term/tparm.c: Likewise.
48777 * term/i386/pc/serial.c: Likewise.
48778 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
48779 serial.mod.
48780 (terminfo_mod_SOURCES): New variable.
48781 (terminfo_mod_CFLAGS): Likewise.
48782 (serial_mod_SOURCES): Likewise.
48783 (serial_mod_CFLAGS): Likewise.
48784
48b671ff 487852005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
48786
48787 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
48788 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
48789 and kern/powerpc/ieee1275/cmain.c, respectively.
48790
48791 * boot/powerpc/ieee1275/crt0.S: Moved to ...
48792 * kern/powerpc/ieee1275/crt0.S: ... here.
48793
48794 * boot/powerpc/ieee1275/cmain.c: Moved to ...
48795 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 48796
48b671ff 48797 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
48798 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
48799 instead of boot/powerpc/ieee1275/crt0.S and
48800 boot/powerpc/ieee1275/cmain.c, respectively.
48801
48802 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
48803 sectors. It was not used anyway.
48804
09fc77a7 488052005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48806
48807 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
48808 `unused parameter' warning.
48809
003789c7 488102005-08-30 Hollis Blanchard <hollis@penguinppc.org>
48811
48812 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
48813 function.
48814 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
48815 getcharwidth.
48816
67f44c86 488172005-08-28 Marco Gerards <metgerards@student.han.nl>
48818
48819 * include/grub/normal.h (enum grub_completion_type): Added
48820 `GRUB_COMPLETION_TYPE_ARGUMENT'.
48821
48822 * normal/cmdline.c (print_completion): Handle
48823 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
48824 * normal/menu_entry.c (store_completion): Likewise.
48825
48826 * normal/completion.c (complete_arguments): New function.
48827 (grub_normal_do_completion): Call `complete_arguments' when the
48828 current words start with a dash.
48829
0b5abe02 488302005-08-27 Marco Gerards <metgerards@student.han.nl>
48831
48832 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
48833 `gzio.mod' instead of `io.mod').
48834
d9864ee1 488352005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
48836
48837 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
48838 (DISTDIRS): Added io and video.
48839 Rewrite the search routine to make an output consistently.
48840
48841 * DISTLIST: Added conf/sparc64-ieee1275.mk,
48842 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
48843 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
48844 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
48845 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
48846 util/powerpc/ieee1275/misc.c.
f19dbdb7 48847
d9864ee1 48848 * include/grub/gzio.h: New file.
48849 * io/gzio.c: Likewise.
f19dbdb7 48850
d9864ee1 48851 * kern/file.c (grub_file_close): Call grub_device_close only if
48852 FILE->DEVICE is not NULL.
48853
48854 * include/grub/mm.h [!NULL] (NULL): New macro.
48855
48856 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
48857
48858 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
48859 (pkgdata_MODULES): Added gzio.mod.
48860 (gzio_mod_SOURCES): New variable.
48861 (gzio_mod_CFLAGS): Likewise.
48862
48863 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
48864 (pkgdata_MODULES): Added gzio.mod.
48865 (gzio_mod_SOURCES): New variable.
48866 (gzio_mod_CFLAGS): Likewise.
48867
48868 * commands/cat.c: Include grub/gzio.h.
48869 (grub_cmd_cat): Use grub_gzfile_open instead of
48870 grub_file_open.
f19dbdb7 48871
d9864ee1 48872 * commands/cmp.c: Include grub/gzio.h.
48873 (grub_cmd_cmp): Use grub_gzfile_open instead of
48874 grub_file_open.
48875
48876 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
48877 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
48878 grub_file_open.
48879 (grub_rescue_cmd_module): Likewise.
48880
fa46f4b5 488812005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48882
48883 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
48884 kern/sparc64/ieee1275/init.c because it contains _start.
48885 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
48886
e9211b5d 488872005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
48888
48889 * configure.ac: Add support for sparc64 host with ieee1275
48890 firmware.
48891 * configure: Generated from configure.ac.
48892 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
48893 instead of int.
48894 (grub_ofdisk_read): Likewise.
48895 (grub_ofdisk_open): Use %p to print pointer values, and cast the
48896 pointers as (void *) to remove a warning.
48897 (grub_ofdisk_close): Likewise.
48898 (grub_ofdisk_read): Likewise.
48899 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
48900 returns, so make it return void to remove a warning.
48901 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
48902 Corresponding prototype change.
48903 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
48904 values, and cast the pointers as (void *) to remove a warning.
48905 (grub_mm_dump): Likewise.
48906 * conf/sparc64-ieee1275.mk: New file.
48907 * conf/sparc64-ieee1275.rmk: Likewise.
48908 * include/grub/sparc64/setjmp.h: Likewise.
48909 * include/grub/sparc64/types.h: Likewise.
48910 * include/grub/sparc64/ieee1275/console.h: Likewise.
48911 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
48912 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
48913 * include/grub/sparc64/ieee1275/time.h: Likewise.
48914 * kern/sparc64/cache.c: Likewise.
48915 * kern/sparc64/dl.c: Likewise.
48916 * kern/sparc64/ieee1275/init.c: Likewise.
48917 * kern/sparc64/ieee1275/openfw.c: Likewise.
48918
385c6a92 489192005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
48920
48921 * util/console.c (grub_ncurses_putchar): If C is greater than
48922 0x7f, set C to a question mark.
48923 (grub_ncurses_getcharwidth): New function.
48924 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
48925 getcharwidth.
48926
48927 * normal/menu.c (print_entry): Made aware of Unicode. First,
48928 convert TITLE to UCS-4, and predict the cursor position by
48929 grub_getcharwidth.
48930
48931 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
48932 const to SRC.
48933 * kern/misc.c (grub_utf16_to_utf8): Likewise.
48934
16ccb8b1 489352005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48936
48937 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
48938 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48939 grub_strcat.
48940
48941 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
48942 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
48943 grub_strcpy and grub_strlen. Take it into account that a space
48944 character is inserted as a delimiter.
48945
6a85ce79 489462005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48947
48948 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 48949 invalid magic in the error.
6a85ce79 48950
48951 * commands/search.c: New file.
f19dbdb7 48952
6a85ce79 48953 * util/grub-emu.c (main): Call grub_search_init and
48954 grub_search_fini.
48955
48956 * kern/rescue.c (grub_rescue_print_disks): Removed.
48957 (grub_rescue_print_devices): New function.
48958 (grub_rescue_cmd_ls): Use grub_device_iterate with
48959 grub_rescue_print_devices instead of grub_disk_dev_iterate with
48960 grub_rescue_print_disks.
48961
48962 * kern/partition.c (grub_partition_iterate): Return the result of
48963 PARTMAP->ITERATE instead of GRUB_ERRNO.
48964
48965 * kern/device.c: Include grub/partition.h.
48966 (grub_device_iterate): New function.
48967
48968 * include/grub/partition.h (grub_partition_iterate): Return int
48969 instead of grub_err_t.
48970
48971 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
48972 prototype.
48973 [GRUB_UTIL] (grub_search_fini): Likewise.
48974
48975 * include/grub/device.h (grub_device_iterate): New prototype.
48976
48977 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
48978 commands/search.c.
48979 (pkgdata_MODULES): Added search.mod.
48980 (search_mod_SOURCES): New variable.
48981 (search_mod_CFLAGS): Likewise.
48982
48983 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
48984 (pkgdata_MODULES): Added search.mod.
48985 (search_mod_SOURCES): New variable.
48986 (search_mod_CFLAGS): Likewise.
48987
48988 * commands/ls.c (grub_ls_list_disks): Renamed to ...
48989 (grub_ls_list_devices): ... this, and use grub_device_iterate.
48990 All callers changed.
48991
48992 * DISTLIST: Added commands/search.c.
48993
ef095434 489942005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
48995
48996 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
48997 conversion.
48998 (grub_getcharwidth): New function.
48999
49000 * kern/misc.c (grub_utf8_to_ucs4): New function.
49001
49002 * include/grub/term.h (struct grub_term): Added a new member
49003 "getcharwidth".
49004 (grub_getcharwidth): New prototype.
49005
49006 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
49007
49008 * term/i386/pc/console.c (map_char): New function. Segregated from
49009 grub_console_putchar.
49010 (grub_console_putchar): Use map_char.
49011 (grub_console_getcharwidth): New function.
49012 (grub_console_term): Specified grub_console_getcharwidth as
49013 getcharwidth.
49014
49015 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
49016 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
49017
49018 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
49019 GRUB_ERRNO.
49020 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
49021 on grub_strtoul completely.
49022 (write_char): Declare local variables in the beginning of the
49023 function.
49024 (grub_vesafb_getcharwidth): New function.
49025 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
49026 getcharwidth.
49027
1f0a95e4 490282005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
49029
49030 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
49031 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
49032 commands/i386/pc/vbetest.c.
49033
49034 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
49035 call grub_vbe_get_controller_info again, because the returned
49036 information is volatile.
49037 (grub_vbe_set_video_mode): Mostly rewritten.
49038 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
49039 grub_vbe_status_t correctly.
49040 (grub_vbe_get_video_mode_info): Likewise.
49041 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
49042 several if statements.
49043
49044 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
49045 * commands/i386/pc/vbeinfo.c: ... this.
49046
49047 * commands/i386/pc/vbe_test.c: Renamed to ...
49048 * commands/i386/pc/vbetest.c: ... this.
49049
49050 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
49051 ...
49052 (grub_cmd_vbeinfo): ... this. Save video modes before
49053 iterating. Skip a video mode, if it is not available, not enough
49054 information is given or it is monochrome. Show the memory
49055 model. Leave the interpretation of MODEVAR to grub_strtoul
49056 completely.
49057 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
49058 (GRUB_MOD_FINI): Likewise.
49059
49060 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
49061 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
49062 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
49063 duplicated grub_env_get. Leave the interpretation of MODEVAR to
49064 grub_strtoul completely.
49065 (real2pm): Removed.
49066 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
49067 (GRUB_MOD_FINI): Likewise.
49068
49069 * normal/misc.c: Include grub/mm.h.
49070
49071 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
49072 vbe_list_modes with vbetest.mod and vbeinfo.mod.
49073 (vbe_list_modes_mod_SOURCES): Removed.
49074 (vbe_list_modes_mod_CFLAGS): Likewise.
49075 (vbe_test_mod_SOURCES): Likewise.
49076 (vbe_test_mod_CFLAGS): Likewise.
49077 (vbeinfo_mod_SOURCES): New variable.
49078 (vbeinfo_mod_CFLAGS): Likewise.
49079 (vbetest_mod_SOURCES): Likewise.
49080 (vbetest_mod_CFLAGS): Likewise.
49081
992ffbbe 490822005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
49083
49084 * normal/misc.c: New file.
49085
49086 * DISTLIST: Added normal/misc.c.
f19dbdb7 49087
992ffbbe 49088 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
49089 DISK to HOOK. Call HOOK with DISK.
49090 * partmap/apple.c (apple_partition_map_iterate): Likewise.
49091 * partmap/pc.c (pc_partition_map_iterate): Likewise.
49092 * partmap/sun.c (sun_partition_map_iterate): Likewise.
49093
49094 * normal/menu_entry.c (struct screen): Added a new member
49095 "completion_shown".
49096 (completion_buffer): New global variable.
49097 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
49098 (store_completion): New function.
49099 (complete): Likewise.
49100 (clear_completions): Likewise.
49101 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
49102 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
49103 a tab, call complete.
49104
49105 * normal/completion.c (disk_dev): Removed.
49106 (print_simple_completion): Likewise.
49107 (print_partition_completion): Likewise.
49108 (print_func): New global variable.
49109 (add_completion): Do not take the arguments WHAT or PRINT any
49110 longer. Added a new argument TYPE. Instead of printing directly,
49111 call PRINT_FUNC if not NULL.
49112 All callers changed.
49113 (complete_device): Use a local variable DEV instead of
49114 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
49115 (grub_normal_do_completion): Take a new argument HOOK. Do not
49116 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
49117 empty string, return NULL instead.
49118 All callers changed.
49119
49120 * normal/cmdline.c (print_completion): New function.
49121
49122 * kern/partition.c (grub_partition_iterate): Add an argument DISK
49123 to HOOK.
49124 All callers changed.
49125
49126 * kern/disk.c (grub_print_partinfo): Removed.
49127
49128 * include/grub/partition.h (struct grub_partition_map): Add a new
49129 argument DISK into HOOK of ITERATE.
49130 (grub_partition_iterate): Add a new argument DISK to HOOK.
49131
49132 * include/grub/normal.h (enum grub_completion_type): New enum.
49133 (grub_completion_type_t): New type.
49134 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
49135 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
49136 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
49137 (GRUB_COMPLETION_TYPE_FILE): Likewise.
49138 (grub_normal_do_completion): Added a new argument HOOK.
49139 (grub_normal_print_device_info): New prototype.
49140
49141 * include/grub/disk.h (grub_print_partinfo): Removed.
49142
49143 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
49144 (normal_mod_SOURCES): Likewise.
49145 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
49146 (normal_mod_SOURCES): Likewise.
49147
49148 * commands/ls.c (grub_ls_list_disks): Use
49149 grub_normal_print_device_info instead of grub_print_partinfo. Free
49150 PNAME.
49151 (grub_ls_list_files): Use grub_normal_print_device_info instead of
49152 duplicating the code.
49153
0bd41162 491542005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49155
49156 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 49157 follow GCS more precisely.
49158 * commands/i386/pc/vbe_test.c: Likewise.
49159 * include/grub/i386/pc/vbe.h: Likewise.
49160 * term/i386/pc/vesafb.c: Likewise.
49161 * video/i386/pc/vbe.c: Likewise.
0bd41162 49162
6323696a 491632005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
49164
49165 * DISTLIST: Added term/i386/pc/vesafb.c
49166 DISTLIST: Added video/i386/pc/vbe.c
49167 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
49168 DISTLIST: Added commands/i386/pc/vbe_test.c.
49169 * commands/i386/pc/vbe_list_modes.c: New file.
49170 * commands/i386/pc/vbe_test.c: Likewise.
49171 * term/i386/pc/vesafb.c: Likewise.
49172 * video/i386/pc/vbe.c: Likewise.
49173 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
49174 (grub_vbe_probe) Added prototype.
49175 (grub_vbe_set_video_mode) Likewise.
49176 (grub_vbe_get_video_mode) Likewise.
49177 (grub_vbe_get_video_mode_info) Likewise.
49178 (grub_vbe_set_pixel_rgb) Likewise.
49179 (grub_vbe_set_pixel_index) Likewise.
49180 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
49181 (pkgdata_MODULES): Added vesafb.mod.
49182 (pkgdata_MODULES): Added vbe_list_modes.mod.
49183 (pkgdata_MODULES): Added vbe_test.mod.
49184 (vbe_mod_SOURCES): Added.
49185 (vbe_mod_CFLAGS): Likewise.
49186 (vesafb_mod_SOURCES): Likewise.
49187 (vesafb_mod_CFLAGS): Likewise.
49188 (vbe_list_modes_mod_SOURCES): Likewise.
49189 (vbe_list_modes_mod_CFLAGS): Likewise.
49190 (vbe_test_mod_SOURCES): Likewise.
49191 (vbe_test_mod_CFLAGS): Likewise.
49192
0a74e62f 491932005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
49194
0a74e62f 49195 * normal/command.c (grub_command_execute): If INTERACTIVE is
49196 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
49197 CMDLINE. Disable the pager if INTERACTIVE is true.
49198 All callers are changed.
49199
49200 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
49201 before reading a config file.
49202 * normal/main.c (read_config_file): Even if a command is not
49203 found, register it if it is within an entry.
49204
49205 * util/grub-emu.c: Include sys/types.h and unistd.h.
49206 (options): Added --hold.
49207 (struct arguments): Added a new member "hold".
49208 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
49209 missing.
49210 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
49211 cleared by a debugger, if it is not zero.
49212
49213 * include/grub/normal.h (grub_command_execute): Add an argument
49214 INTERACTIVE.
49215
e51f85ae 492162005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
49217
49218 * DISTLIST: Added include/grub/i386/pc/vbe.h.
49219
e9c6f39b 492202005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
49221
49222 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
49223 program with another one, because the old one didn't detect a bug
49224 in gcc-3.4. Always use regparm 2, because the new test is still
49225 not enough for gcc-4.0. Someone must investigate a simple test
49226 case which detects a bug in gcc-4.0.
49227
8de3495c 492282005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
49229
49230 * DISTLIST: Added normal/completion.c.
49231
49232 * normal/completion.c: New file.
f19dbdb7 49233
8de3495c 49234 * term/i386/pc/console.c (grub_console_getwh): New function.
49235 (grub_console_term): Assign grub_console_getwh to getwh.
49236
49237 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
49238 function is defined in normal/completion.c as
49239 grub_normal_do_completion.
49240 (grub_cmdline_get): Use grub_normal_do_completion instead of
49241 grub_tab_complete.
49242
49243 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
49244 returns non-zero, otherwise return 0.
49245 (grub_partition_iterate): First, probe the partition map. Then,
49246 call ITERATE only for this partition map.
49247
49248 * kern/misc.c (grub_strncmp): Rewritten.
49249
49250 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
49251 returns non-zero. Otherwise return 0.
49252
49253 * include/grub/partition.h (grub_partition_map_iterate): Return
49254 int instead of void.
49255
49256 * include/grub/normal.h (grub_normal_do_completion): New prototype.
49257
49258 * include/grub/misc.h (grub_strncmp): Change the type of N to
49259 grub_size_t.
49260
49261 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
49262 of void.
49263
49264 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 49265 unsigned explicitly before comparing it with I.
8de3495c 49266
49267 * kern/main.c (grub_env_write_root): Add the attribute unused into
49268 VAR.
49269
49270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
49271 normal/completion.c.
49272 (normal_mod_SOURCES): Likewise.
49273 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
49274 (normal_mod_SOURCES): Likewise.
49275
49276 * normal/command.c (grub_iterate_commands): If ITERATE returns
49277 non-zero, return one immediately.
49278
e85e144b 492792005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
49280
49281 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
49282 * kern/i386/pc/startup.S: Updated Global Descriptor table's
49283 descriptions.
49284 (grub_vbe_get_controller_info): New function.
49285 (grub_vbe_get_mode_info): Likewise.
49286 (grub_vbe_set_mode): Likewise.
49287 (grub_vbe_get_mode): Likewise.
49288 (grub_vbe_set_memory_window): Likewise.
49289 (grub_vbe_get_memory_window): Likewise.
49290 (grub_vbe_set_scanline_length): Likewise.
49291 (grub_vbe_get_scanline_length): Likewise.
49292 (grub_vbe_set_display_start): Likewise.
49293 (grub_vbe_get_display_start): Likewise.
49294 (grub_vbe_set_palette_data): Likewise.
49295 * include/grub/i386/pc/vbe.h: New file.
49296
c46153d2 492972005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49298
49299 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49300 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
49301 * DISTLIST: Likewise.
49302 * kern/ieee1275/of.c: Moved to ...
49303 * kern/ieee1275/ieee1275.c: ... here.
49304
0cb90c45 493052005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49306
49307 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
49308 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
49309 Pass 0 as `end' parameter to grub_strtoul().
49310
a19fb360 493112005-08-08 Hollis Blanchard <hollis@penguinppc.org>
49312
49313 * include/grub/powerpc/ieee1275/console.h: Do not include
49314 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
49315 ifdef.
49316 (grub_console_cur_color): Remove i386-specific prototype.
49317 (grub_console_real_putchar): Likewise.
49318 (grub_console_checkkey): Likewise.
49319 (grub_console_getkey): Likewise.
49320 (grub_console_getxy): Likewise.
49321 (grub_console_gotoxy): Likewise.
49322 (grub_console_cls): Likewise.
49323 (grub_console_setcursor): Likewise.
49324 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
49325 Include <grub/machine/console.h>.
49326 * term/ieee1275/ofconsole.c: Likewise.
49327
4ac9bd04 493282005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
49329
49330 * Makefile.in (LIBLZO): New variable.
49331
49332 * configure.ac: Check for LZO version 2.
49333
49334 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
49335 lzo/lzo1x.h instead of lzo1x.h.
49336
49337 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
49338 of -llzo.
49339
49340 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
49341 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
49342
49343 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
49344 copying the data from PARTITION to P.
49345
f4917dfd 493462005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49347
49348 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
49349 negative, unload the module.
49350
49351 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
49352 map is "pc_partition_map" but not "pc".
49353 (usage): Fix the description. The options are --boot-image and
49354 --core-image but not --boot-file or --core-file.
49355 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
49356 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
49357 DEFAULT_DIRECTORY.
49358
49359 * util/i386/pc/grub-install.in: Do not specify --boot-file or
49360 --core-file. Specify INSTALL_DEVICE as an argument.
49361
49362 * util/console.c: Include config.h.
49363 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
49364 [HAVE_NCURSES_H]: Include ncurses.h.
49365 [HAVE_CURSES_H]: Include curses.h.
49366 [!A_NORMAL] (A_NORMAL): Defined as zero.
49367 [!A_STANDOUT] (A_STANDOUT): Likewise.
49368
49369 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
49370 -lncurses.
49371 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
49372
49373 * configure.ac: Check for curses libraries and headers.
49374
49375 * Makefile.in (LIBCURSES): New variable.
49376
49377 * genmk.rb (Script::rule): Set the executable bits.
49378
49379 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
49380 name of the PC partition map is "pc_partition_map" but not "pc".
49381
0e143073 493822005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49383
49384 * util/i386/pc/grub-install.in (grub_probefs): New variable.
49385 (modules): Likewise.
49386 (usage): Added descriptions for --modules and --grub-probefs.
49387 Handle --modules and --grub-probefs. Save the arguments in MODULES
49388 and GRUB_PROBEFS, respectively.
49389 Auto-detect a filesystem module against GRUBDIR. If the result is
49390 empty and modules are not specified explicitly, abort the
49391 installation. Add the result to MODULES.
49392
49393 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
49394 disk/powerpc/ieee1275/ofdisk.c,
49395 include/grub/powerpc/ieee1275/init.h and
49396 term/powerpc/ieee1275/ofconsole.c.
49397 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
49398 term/ieee1275/ofconsole.c.
49399
49400 * include/grub/powerpc/ieee1275/console.h: Resurrected.
49401
49402 * COPYING: Upgraded to the latest version. Only the address of the
49403 FSF office has changed.
f19dbdb7 49404
efd6e6d5 494052005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
49406
49407 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
49408 kern/ieee1275.c with kern/ieee1275/of.c.
49409
49410 * kern/ieee1275.c: Moved to ...
49411 * kern/ieee1275/of.c: ... here.
49412
8ceafda2 494132005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
49414
49415 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 49416 readability.
8ceafda2 49417
49418 * config.guess: Updated to the latest version from gnulib.
49419 * config.sub: Likewise.
49420 * install.sh: Likewise.
49421 * mkinstalldirs: Likewise.
49422
49423 * include/grub/console.h: Removed. This file is arch-specific. Do
49424 not put this in include/grub.
49425
49426 * include/grub/i386/pc/console.h: Resurrected.
49427
49428 * util/console.c: Include grub/machine/console.h instead of
49429 grub/console.h.
49430 * util/grub-emu.c: Likewise.
49431
267f6cd9 494322005-08-04 Marco Gerards <metgerards@student.han.nl>
49433
49434 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
49435 hardcoded value.
f19dbdb7 49436
267f6cd9 49437 From Vincent Pelletier <subdino2004@yahoo.fr>
49438 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
49439 Redefined to use grub_getwh.
49440 (grub_term): New member named getwh.
49441 (grub_getwh): New prototype.
49442 * kern/term.c (grub_getwh): New function.
49443 * term/i386/pc/console.c (grub_console_getwh): New function.
49444 (grub_console_term): New member `getwh'.
49445 * term/i386/pc/vga.c (grub_vga_getwh): New function.
49446 (grub_vga_term): New member `getwh'.
0b5abe02 49447 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 49448 grub_ssize_t.
49449 (grub_ofconsole_getw): New function.
49450 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
49451 (grub_ofconsole_term): New field named getwh and new initial
49452 value.
49453
3be7266d 494542005-08-03 Hollis Blanchard <hollis@penguinppc.org>
49455
49456 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
49457 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
49458 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
49459 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
49460 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
49461 of <grub/machine/ieee1275.h>.
49462 * commands/ieee1275/reboot.c: Likewise.
49463 * boot/powerpc/ieee1275/ieee1275.c: Move ...
49464 * kern/ieee1275.c: ... to here. All users updated. Change all
49465 parameter structs to use new type `grub_ieee1275_cell_t'.
49466 * term/powerpc/ieee1275/ofconsole.c: Move ...
49467 * term/ieee1275/ofconsole.c: ... to here. All users updated.
49468 * disk/powerpc/ieee1275/ofdisk.c: Move ...
49469 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
49470 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
49471 to return int.
49472 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
49473 Remove unused prototypes. All users updated.
49474 * include/grub/powerpc/ieee1275/console.h: Removed.
49475 * include/grub/powerpc/ieee1275/ieee1275.h: Define
49476 `grub_ieee1275_cell_t'.
49477 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
49478 Cast comparisons with -1 to the correct type.
49479 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
49480 type to match `grub_ieee1275_entry_fn'.
49481
8b5f3938 494822005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
49483
49484 * DISTLIST: Added util/i386/pc/grub-probefs.c.
49485
49486 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
49487 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
49488 partmap/sun.c.
49489 (grub_probefs_SOURCES): New variable.
49490
49491 * util/i386/pc/grub-probefs.c: New file.
49492
49493 * util/i386/pc/grub-setup.c (main): Call
49494 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
49495 grub_hfs_init and grub_jfs_init to initialize the system. Call
49496 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
49497 grub_pc_partition_map_fini to finish the system.
49498
ea409713 494992005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
49500
49501 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
49502 function.
49503 (grub_multiboot_load_elf32): Likewise.
49504 (grub_multiboot_is_elf64): Likewise.
49505 (grub_multiboot_load_elf64): Likewise.
49506 (grub_multiboot_load_elf): Likewise.
49507 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
49508 an ELF32 or ELF64 file.
49509 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
49510
49511 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
49512 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
49513 NULL before calling FS->LABEL.
49514 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
49515 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
49516 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
49517 before calling FS->LABEL.
49518
141a288b 495192005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
49520
49521 * util/i386/pc/grub-install.in (datadir): New variable.
49522 (libdir): Removed.
49523 (pkgdatadir): New variable.
49524 (pkglibdir): Removed.
49525
0d5f8a54 495262005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
49527
49528 * DISTLIST: Added util/i386/pc/grub-install.in.
49529
49530 * util/i386/pc/grub-install.in: New file.
49531
49532 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
49533 (grub_install_SOURCES): Likewise.
49534
49535 * genmk.rb: Added support for scripts.
49536 (Script): New class.
49537 (scripts): New variable.
49538
49539 * Makefile.in (install-local): Install sbin_SCRIPTS by
49540 INSTALL_SCRIPT.
49541 (uninstall): Remove sbin_SCRIPTS.
49542
49543 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
49544 device, try to get a GRUB device by
49545 grub_util_biosdisk_get_grub_dev.
49546 Free DEST_DEV.
49547
49548 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
49549 description for --device-map.
49550
5f968e1e 495512005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49552
49553 Change the semantics of variable hooks. They now return strings
49554 instead of error values.
f19dbdb7 49555
5f968e1e 49556 * util/i386/pc/grub-setup.c: Include grub/env.h.
49557 (setup): Use grub_device_set_root instead of grub_env_set.
49558
49559 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
49560 grub_env_get instead of grub_device_set_root and
49561 grub_device_get_root, respectively.
49562
49563 * kern/main.c (grub_env_write_root): New function.
49564 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
49565 grub_env_set instead of grub_device_set_root.
49566
49567 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
49568 many variables.
49569 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
49570 rather than calling ENV->WRITE_HOOK afterwards.
49571 (grub_env_get): Return the result of ENV->READ_HOOK rather than
49572 passing a pointer of a pointer.
49573 (grub_register_variable_hook): Change the types of "read_hook" and
49574 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
49575 respectively.
49576 Allocate the default empty string on the heap, because this string
49577 may be freed later.
49578
49579 * kern/device.c: Include grub/env.h.
49580 (grub_device_set_root): Removed.
49581 (grub_device_get_root): Likewise.
49582 (grub_device_open): Use grub_env_get instead of
49583 grub_device_get_root.
49584
49585 * include/grub/env.h (grub_env_read_hook_t): New type.
49586 (grub_env_write_hook_t): Likewise.
49587 (grub_env_var): Change the types of "read_hook" and "write_hook"
49588 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
49589 (grub_register_variable_hook): Likewise.
49590
49591 * include/grub/device.h (grub_device_set_root): Removed.
49592 (grub_device_set_root): Likewise.
49593
49594 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
49595 make sure that DIRNAME terminates with '/', so that
49596 grub_fat_find_dir will fail if PATH is not a directory.
49597
49598 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
49599 from DIRNAME.
49600 Use the qualifier auto for print_files and print_files_long.
49601 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
49602 as a regular file.
49603 Put a newline only if there is no error.
49604 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
49605 used.
49606
896f0afd 496072005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
49608
49609 * kern/partition.c (grub_partition_probe): Initialize PART to
49610 NULL. Otherwise, when no partition map is registered, this returns
49611 a garbage.
49612
b28b81b2 496132005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
49614
49615 * partmap/apple.c (apple_partition_map_iterate): Check if POS
49616 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
49617 valid.
49618
5f3607e0 496192005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
49620
49621 * commands/ls.c (grub_ls_list_disks): Print the filesystem
49622 information on each device, if it does not have partitions. Print
49623 "Device" instead of "Disk", because this function is not specific
49624 to disk devices.
49625
49626 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
49627 static to ensure that it is put on the memory rather than a
49628 register.
49629
502c87e8 496302005-07-17 Yoshinori Okuji <okuji@enbug.org>
49631
49632 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
49633 (grub_cat_init): Likewise.
49634 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
49635 (options): Likewise.
49636 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
49637 (grub_configfile_init): Likewise.
49638 * font/manager.c (GRUB_MOD_INIT): Likewise.
49639 * commands/help.c (GRUB_MOD_INIT): Likewise.
49640 (grub_help_init): Likewise.
49641 * normal/command.c (grub_command_init): Likewise.
49642 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
49643 * disk/loopback.c (grub_loop_init): Likewise.
49644 (GRUB_MOD_INIT): Likewise.
49645 * commands/ls.c (grub_ls_init): Likewise.
49646 (GRUB_MOD_INIT): Likewise.
49647 (options): Likewise.
49648 * commands/boot.c (grub_boot_init): Likewise.
49649 (GRUB_MOD_INIT): Likewise.
49650 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
49651 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
49652 (GRUB_MOD_INIT): Likewise.
49653 * commands/cmp.c (grub_cmp_init): Likewise.
49654 (GRUB_MOD_INIT): Likewise.
49655
49656 * normal/arg.c: Use <> instead of "" to include header files.
49657 (SHORT_ARG_HELP): New macro.
49658 (SHORT_ARG_USAGE): Likewise.
49659 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
49660 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
49661 descriptions.
49662 (find_short): Check if C is 'h' or 'u' explicitly.
49663 (grub_arg_show_help): Use space characters instead of tabs. Treat
49664 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
49665 are shown with --help and --usage only if they are not used for
49666 the command itself.
49667 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
49668 'h' and 'u'.
49669
49670 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
49671 const into "longarg". Change the type of "shortarg" to int.
49672
f806d18e 496732005-07-17 Yoshinori Okuji <okuji@enbug.org>
49674
49675 * boot/i386/pc/boot.S (boot_drive_check): New label.
49676
49677 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
49678 macro.
49679
49680 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
49681 which do not pass a boot drive correctly. Copied from GRUB Legacy.
49682
e293232b 496832005-07-17 Yoshinori Okuji <okuji@enbug.org>
49684
49685 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
49686 When turning off Gate A20, skip the check and return immediately,
49687 because this is not fatal usually.
49688
ebedfd00 496892005-07-17 Yoshinori Okuji <okuji@enbug.org>
49690
49691 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
49692 be 0x7C00 instead of 0x8000.
49693
49694 * boot/i386/pc/pxeboot.S: Rewritten.
49695
49696 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
49697 EXT_C.
49698 (gate_a20_check_state): Read a byte from 0x108000. Invert the
49699 result.
49700
654fc59f 497012005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
49702
49703 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
49704 robustness. This routine now supports a BIOS call and System
49705 Control Port A to modify the gate A20.
49706
49707 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
49708 Increased to 0x440.
49709
09f9923f 497102005-07-12 Hollis Blanchard <hollis@penguinppc.org>
49711
49712 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
49713 device path and resulting ihandle.
49714 (grub_ofdisk_close): dprintf the ihandle being closed.
49715 (grub_ofdisk_read): dprintf function parameters.
49716 * kern/mm.c (grub_mm_init_region): Likewise.
49717 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
49718 (grub_linux_boot): dprintf the Linux entry point, initrd address and
49719 size, and boot arguments.
49720 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
49721 before loading into memory.
49722 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
49723 before loading into memory.
49724
7ef504d8 497252005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
49726
49727 * kern/mm.c: Added much documentation.
49728 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
49729 8, set to 5 instead of 8.
49730
e0f050c2 497312005-07-10 Yoshinori Okuji <okuji@enbug.org>
49732
49733 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
49734
49735 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
49736 (grub_mkdevicemap_SOURCES): New variable.
49737
49738 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
49739 lib/device.c of GRUB Legacy.
49740
7224189a 497412005-07-10 Yoshinori Okuji <okuji@enbug.org>
49742
49743 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
49744 instead of PATH is NULL.
49745
68c864eb 497462005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
49747
49748 * commands/cmp.c (BUFFER_SIZE): New macro.
49749 (grub_cmd_cmp): Close the right file at the right time. Compare
49750 only data just read. Don't report files of different size as
49751 identical. Dynamically allocate buffers. Move variable
49752 declarations at the beginning of function.
49753
e6f3e614 497542005-07-09 Yoshinori Okuji <okuji@enbug.org>
49755
49756 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
49757 reverse.
49758
f8f1559a 497592004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
49760
49761 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
49762 when backspace is pressed at beginning of line.
49763
39c9d41d 497642005-07-03 Yoshinori Okuji <okuji@enbug.org>
49765
49766 * DISTLIST: Added genfslist.sh.
49767
49768 * normal/main.c (fs_module_list): New variable.
49769 (autoload_fs_module): New function.
49770 (read_fs_list): Likewise.
49771 (grub_normal_execute): Call read_fs_list.
49772
49773 * kern/fs.c (grub_fs_autoload_hook): New variable.
49774 (grub_fs_probe): Added support for auto-loading.
49775
49776 * include/grub/normal.h (struct grub_fs_module_list): New struct.
49777 (grub_fs_module_list_t): New type.
49778
49779 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
49780 (grub_fs_autoload_hook): New prototype.
49781
49782 * genfslist.sh: New file.
f19dbdb7 49783
39c9d41d 49784 * genmk.rb: Added a rule to generate a filesystem list.
49785
121c1d83 497862005-06-30 Marco Gerards <metgerards@student.han.nl>
49787
49788 * configure.ac: Fix the test for cross-compiling.
49789
49790 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
49791 define GRUB_UTIL anymore.
49792
49793 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
49794 so this function works on other systems than just big endian.
49795 (load_modules): Likewise.
49796 (add_segments): Likewise.
49797
e75d76e1 497982005-06-23 Hollis Blanchard <hollis@penguinppc.org>
49799
49800 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
49801 contains `l' modifier, get a long from va_arg().
49802
50b5a0a7 498032005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
49804
49805 * kern/mm.c (grub_free): If the next free block which is being
49806 merged is the first free block, set the first block to the block
49807 being freed.
49808 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
49809
89371b20 498102005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49811
49812 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
49813 `grub_ieee1275_chosen'.
49814
168d6e58 498152005-05-08 Hollis Blanchard <hollis@penguinppc.org>
49816
49817 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
49818 (grub_ieee1275_chosen): New variable.
49819 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
49820 `chosen'.
49821 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
49822 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
49823 Rename first argument to `phandle' for consistency.
49824 (grub_ieee1275_get_property_length): Likewise.
49825 (grub_ieee1275_next_property): Likewise. Change type of first argument
49826 to grub_ieee1275_phandle_t.
49827 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
49828 Move export next to declaration.
49829 (grub_ieee1275_chosen): New variable.
49830 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
49831 Correct cosmetic typo.
49832 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
49833 `grub_ieee1275_chosen'.
49834 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
49835 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
49836 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
49837 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
49838 `grub_ieee1275_chosen'.
49839
ca5baa3f 498402005-05-10 Hollis Blanchard <hollis@penguinppc.org>
49841
49842 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
49843 /chosen/bootargs.
49844 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
49845 /chosen/bootargs as "variable=value" pairs.
49846
708b345f 498472005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
49848
49849 * include/grub/misc.h (grub_dprintf): New macro.
49850 (grub_real_dprintf): New prototype.
49851 (grub_strword): Likewise.
49852 (grub_iswordseparator): Likewise.
49853 * kern/misc.c (grub_real_dprintf): New function.
49854 (grub_strword): Likewise.
49855 (grub_iswordseparator): Likewise.
49856
f4c5e67c 498572005-04-30 Hollis Blanchard <hollis@penguinppc.org>
49858
49859 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
49860 (roundup): Remove macro.
49861 (grub_ieee1275_flags): Make static.
49862 (grub_ieee1275_realmode): Remove.
49863 (grub_ieee1275_test_flag): New function.
49864 (grub_ieee1275_set_flag): Likewise.
49865 (find_options): Rename to `grub_ieee1275_find_options'; update
49866 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
49867 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
49868 (cmain): New prototype.
49869 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
49870 `grub_ieee1275_flags' directly.
49871 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
49872 machine/biosdisk.h.
49873 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
49874 Don't include grub/machine/init.h.
49875 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
49876 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
49877 Remove prototype.
49878 (grub_ieee1275_realmode): Likewise.
49879 (grub_ieee1275_flag): New enum.
49880 (grub_ieee1275_test_flag): New prototype.
49881 (grub_ieee1275_set_flag): New prototype.
49882 * include/grub/powerpc/ieee1275/init.h: Remove file.
49883 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
49884 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
49885 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
49886 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
49887 comment.
49888 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
49889 `grub_ieee1275_test_flag'.
49890 (grub_ieee1275_encode_devname): Likewise.
49891
ed16607e 498922005-04-21 Hollis Blanchard <hollis@penguinppc.org>
49893
49894 * include/grub/powerpc/ieee1275/ieee1275.h
49895 (grub_ieee1275_encode_devname): New prototype.
49896 (grub_ieee1275_get_filename): Likewise.
49897 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
49898 function.
49899 (grub_set_prefix): Likewise.
49900 (grub_machine_init): Call grub_set_prefix.
49901 * kern/powerpc/ieee1275/openfw.c: Fix typos.
49902 (grub_parse_type): New enum.
49903 (grub_ieee1275_get_devargs): New function.
49904 (grub_ieee1275_get_devname): Likewise.
49905 (grub_ieee1275_parse_args): Likewise.
49906 (grub_ieee1275_get_filename): Likewise.
49907 (grub_ieee1275_encode_devname): Likewise.
49908
be369920 499092005-03-30 Marco Gerards <metgerards@student.han.nl>
49910
49911 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
49912 `grub_loader_unset'.
49913
a5ce3a4a 499142005-03-26 Hollis Blanchard <hollis@penguinppc.org>
49915
49916 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
49917 instead of grub_ieee1275_interpret.
49918 (grub_halt_init): New function.
49919 (grub_halt_fini): Likewise.
49920 (GRUB_MOD_INIT): Correct message grammar.
49921 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
49922 instead of grub_ieee1275_interpret.
49923 (grub_reboot_init): New function.
49924 (grub_reboot_fini): Likewise.
49925 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
49926 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
49927 util/i386/pc/misc.c with commands/ieee1275/halt.c,
49928 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
49929 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
49930 function.
49931 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
49932 Add prototype.
49933 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
49934 prototype.
49935 (grub_halt): Likewise.
49936 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
49937 (cmain): Remove __attribute__((unused)).
49938 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
49939 (grub_heap_len): Likewise.
49940 (grub_machine_fini): New function.
49941 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
49942 (grub_halt): Likewise.
49943 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
49944 function.
49945 * util/powerpc/ieee1275/misc.c: New file.
49946
0058f771 499472005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
49948
49949 * DISTLIST: New file.
49950 * gendistlist.sh: Likewise.
f19dbdb7 49951
0058f771 49952 * Makefile.in (COMMON_DISTFILES): Removed.
49953 (BOOT_DISTFILES): Likewise.
49954 (CONF_DISTFILES): Likewise.
49955 (DISK_DISTFILES): Likewise.
49956 (FS_DISTFILES): Likewise.
49957 (INCLUDE_DISTFILES): Likewise.
49958 (KERN_DISTFILES): Likewise.
49959 (LOADER_DISTFILES): Likewise.
49960 (TERM_DISTFILES): Likewise.
49961 (UTIL_DISTFILES): Likewise.
49962 (DISTFILES): Likewise.
49963 (uninstall): Uninstall files in $(pkgdata_DATA).
49964 (DISTLIST): New target.
49965 (distdir): Use the contents of the file DISTLIST to get a list of
49966 distributed files.
49967
46b3b8a5 499682005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
49969
49970 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
49971 descriptor. This is ported from GRUB Legacy.
49972
49973 * gencmdlist.sh: Added an extra semicolon to make it work with
49974 old sed versions. Reported by Robert Bihlmeyer
49975 <robbe@orcus.priv.at>.
49976
5822ff87 499772005-03-08 Yoshinori Okuji <okuji@enbug.org>
49978
49979 Automatic loading of commands is supported.
f19dbdb7 49980
5822ff87 49981 * normal/main.c (read_command_list): New function.
49982 (grub_normal_execute): Call read_command_list.
49983
49984 * normal/command.c (grub_register_command): Return zero or CMD.
49985 Allocate CMD->NAME from the heap.
49986 Initialize CMD->MODULE_NAME to zero.
49987 Find the same name as well. If the same command is found and it is
49988 a dummy command, overwrite members. If it is not a dummy command,
49989 return zero.
49990 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
49991 (grub_command_find): If a dummy command is found, load a module
49992 and retry to find a command only once.
49993
49994 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
49995 make sure that each command is loaded.
49996
49997 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
49998 macro.
49999 (struct grub_command): Remove const from the member `name'.
50000 Add a new member `module_name'.
50001 (grub_register_command): Return grub_command_t.
50002
50003 * commands/help.c (grub_cmd_help): Call grub_command_find to make
50004 sure that each command is loaded.
50005
50006 * genmk.rb (PModule::rule): Specify a module name without the
50007 suffix ".mod" to gencmdlist.sh.
50008
7b1f4b57 500092005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50010
50011 * gencmdlist.sh: New file.
f19dbdb7 50012
7b1f4b57 50013 * genmk.rb (PModule::rule): Generate a rule for a command list.
50014 Clean command.lst.
50015 Generate command.lst from $(COMMANDFILES).
50016
50017 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
50018 (DATA): Added $(pkgdata_DATA).
50019 (install-local): Install files in $(pkgdata_DATA).
50020
062aaf39 500212005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
50022
50023 * term/i386/pc/vga.c (debug_command): Removed.
50024 (GRUB_MOD_INIT): Do not register the command "debug".
50025
50026 From Hollis Blanchard:
50027 * commands/configfile.c: New file.
50028 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50029 commands/configfile.c.
50030 (pkgdata_MODULES): Added configfile.mod.
50031 (configfile_mod_SOURCES): New variable.
50032 (configfile_mod_CFLAGS): Likewise.
50033 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
50034 commands/configfile.c.
50035 (pkgdata_MODULES): Added configfile.mod.
50036 (configfile_mod_SOURCES): New variable.
50037 (configfile_mod_CFLAGS): Likewise.
50038 * util/grub-emu.c (main): Call grub_configfile_init and
50039 grub_configfile_fini.
50040 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
50041 prototype.
50042 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 50043
cee01aa6 500442005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50045
50046 * normal/arg.c (grub_arg_show_help): Do not show the bug report
50047 address.
50048
50049 * commands/help.c (grub_cmd_help): Do not print newlines after
50050 the last command in print_command_help.
50051
93f3a1d8 500522005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
50053
50054 * commands/default.h: New file.
50055 * commands/timeout.h: Likewise.
50056 * normal/context.c: Likewise.
f19dbdb7 50057
93f3a1d8 50058 * util/misc.c: Do not include sys/times.h.
50059 Include sys/time.h and grub/machine/time.h.
50060 (grub_get_rtc): Rewritten with gettimeofday.
50061
50062 * util/grub-emu.c (main): Call grub_default_init and
50063 grub_timeout_init before grub_normal_init, and call
50064 grub_timeout_fini and grub_default_fini after grub_main.
50065
50066 * util/console.c (grub_ncurses_checkkey): Return the read
50067 character or -1.
50068
50069 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
50070 timeouts.
50071
50072 * normal/main.c (read_config_file): Push MENU. If this fails,
50073 print an error and wait for a user input.
50074 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
50075 If a menu is empty or an error occurs, pop MENU.
50076 (grub_normal_execute): Pop and free MENU after grub_menu_run
50077 returns.
50078
50079 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
50080
50081 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
50082 include time.h.
50083 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50084 without GRUB_UTIL.
50085 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
50086 time.h.
50087 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
50088 without GRUB_UTIL.
50089
50090 * include/grub/normal.h (struct grub_menu_list): New struct.
50091 (grub_menu_list_t): New type.
50092 (struct grub_context): New struct.
50093 (grub_context_t): New type.
50094 (grub_register_command): Got rid of EXPORT_FUNC.
50095 (grub_unregister_command): Likewise.
50096 (grub_context_get): New prototype.
50097 (grub_context_get_current_menu): Likewise.
50098 (grub_context_push_menu): Likewise.
50099 (grub_context_pop_menu): Likewise.
50100 [GRUB_UTIL] (grub_default_init): Likewise.
50101 [GRUB_UTIL] (grub_default_fini): Likewise.
50102 [GRUB_UTIL] (grub_timeout_init): Likewise.
50103 [GRUB_UTIL] (grub_timeout_fini): Likewise.
50104
50105 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
50106 commands/timeout.c and normal/context.c.
50107 (pkgdata_MODULES): Added default.mod and timeout.mod.
50108 (normal_mod_SOURCES): Added normal/context.c.
50109 (default_mod_SOURCES): New variable.
50110 (default_mod_CFLAGS): Likewise.
50111 (timeout_mod_SOURCES): Likewise.
50112 (timeout_mod_CFLAGS): Likewise.
50113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
50114 conf/i386-pc.rmk.
50115 (pkgdata_MODULES): Added default.mod and timeout.mod.
50116 (normal_mod_SOURCES): Added normal/context.c.
50117 (default_mod_SOURCES): New variable.
50118 (default_mod_CFLAGS): Likewise.
50119 (timeout_mod_SOURCES): Likewise.
50120 (timeout_mod_CFLAGS): Likewise.
50121
50122 * Makefile.in (all-local): Added $(MKFILES).
50123
4ed2e1dd 501242005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
50125
50126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
50127 (grub_emu_SOURCES): Likewise.
50128 (pkgdata_MODULES): Add `sun.mod'.
50129 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50130 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50131 `partmap/sun.c'.
50132 (pkgdata_MODULES): Add `sun.mod'.
50133 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
50134 * include/grub/partition.h (grub_sun_partition_map_init): New
50135 prototype.
50136 (grub_sun_partition_map_fini): Likewise.
50137 * partmap/sun.c: New file.
50138 * util/grub-emu.c (main): Initialize and de-initialize the sun
50139 partitionmap support.
50140
4d4e372e 501412005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
50142
50143 This implements an Emacs-like menu entry editor.
f19dbdb7 50144
4d4e372e 50145 * normal/menu_entry.c: New file.
f19dbdb7 50146
4d4e372e 50147 * util/console.c (grub_ncurses_putchar): Translate some Unicode
50148 characters to ASCII.
50149 (saved_char): New variable.
50150 (grub_ncurses_checkkey): Rewritten completely.
50151 (grub_ncurses_getkey): Likewise.
50152 (grub_ncurses_init): Call raw instead of cbreak.
50153
50154 * normal/menu.c (print_entry): Do not put a space.
50155 (init_page): Renamed to ...
50156 (grub_menu_init_page): ... this. All callers changed.
50157 (edit_menu_entry): Removed.
50158 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
50159
50160 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
50161
50162 * kern/misc.c (grub_vprintf): Call grub_refresh.
50163
50164 * normal/menu.c (DISP_LEFT): Renamed to ...
50165 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
50166 * normal/menu.c (DISP_UP): Renamed to ...
50167 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
50168 * normal/menu.c (DISP_RIGHT): Renamed to ...
50169 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
50170 * normal/menu.c (DISP_DOWN): Renamed to ...
50171 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
50172 * normal/menu.c (DISP_HLINE): Renamed to ...
50173 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
50174 * normal/menu.c (DISP_VLINE): Renamed to ...
50175 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
50176 * normal/menu.c (DISP_UL): Renamed to ...
50177 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
50178 * normal/menu.c (DISP_UR): Renamed to ...
50179 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
50180 * normal/menu.c (DISP_LL): Renamed to ...
50181 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
50182 * normal/menu.c (DISP_LR): Renamed to ...
50183 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
50184 * normal/menu.c (TERM_WIDTH): Renamed to ...
50185 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
50186 * normal/menu.c (TERM_HEIGHT): Renamed to ...
50187 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
50188 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
50189 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
50190 * normal/menu.c (TERM_MARGIN): Renamed to ...
50191 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
50192 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
50193 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
50194 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
50195 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
50196 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
50197 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
50198 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
50199 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
50200 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
50201 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
50202 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
50203 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
50204 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
50205 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
50206 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
50207 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
50208 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
50209 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
50210 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
50211 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
50212 All callers changed.
50213
50214 * include/grub/normal.h: New prototype.
50215
50216 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50217 normal/menu_entry.c.
50218 (normal_mod_SOURCES): Likewise.
50219 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
50220 (normal_mod_SOURCES): Likewise.
50221
e6b92c8a 502222005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
50223
50224 * include/grub/normal.h (grub_halt_init): New prototype.
50225 (grub_halt_fini): Likewise.
50226 (grub_reboot_init): Likewise.
50227 (grub_reboot_fini): Likewise.
50228
50229 * util/grub-emu.c: Include signal.h.
50230 (main_env): New global variable.
50231 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
50232 catch C-c.
50233 (grub_machine_fini): New function.
50234 (main): Call grub_halt_init and grub_reboot_init before
50235 grub_main, and grub_reboot_fini and grub_halt_fini after it.
50236 Call setjmp with MAIN_ENV to go back afterwards.
50237 Call grub_machine_fini right before return.
50238
50239 * include/grub/util/misc.h: Include setjmp.h.
50240 (main_env): New prototype.
50241
50242 * include/grub/kernel.h (grub_machine_fini): New prototype.
50243 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
50244 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
50245
50246 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
50247 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
50248 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 50249
e6b92c8a 50250 * util/i386/pc/misc.c: New file.
f19dbdb7 50251
e6b92c8a 50252 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
50253 util/i386/pc/misc.c, commands/i386/pc/halt.c and
50254 commands/i386/pc/reboot.c.
50255
c642636f 502562005-02-14 Guillem Jover <guillem@hadrons.org>
50257
50258 * include/grub/dl.h (grub_dl_check_header): New prototype.
50259 (grub_arch_dl_check_header): Change return type to grub_err_t,
50260 remove size parameter and export function. Update all callers.
50261 * kern/dl.c (grub_dl_check_header): New function.
50262 (grub_dl_load_core): Use `grub_dl_check_header' instead of
50263 `grub_arch_dl_check_header'. Check ELF type. Check if sections
50264 are inside the core.
50265 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
50266 independent ELF header checks.
50267 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50268 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
50269 `grub_dl_check_header' instead of explicit checks. Check for the
50270 ELF type.
50271 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
50272 `grub_dl_check_header' instead of explicit checks. Remove arch
50273 specific ELF header checks.
50274
e6b92c8a 50275 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
50276 argument SIZE.
50277
5eabe94b 502782005-02-13 Hollis Blanchard <hollis@penguinppc.org>
50279
50280 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
50281 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
50282
1b14a681 502832005-02-12 Hollis Blanchard <hollis@penguinppc.org>
50284
50285 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 50286 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 50287 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 50288 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 50289 * partmap/amiga.c (amiga_partition_map_iterate): Return
50290 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
50291 * partmap/apple.c (apple_partition_map_iterate): Likewise.
50292
aca108aa 502932005-02-01 Guillem Jover <guillem@hadrons.org>
50294
50295 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
50296 help info.
50297
c9f9c556 502982005-01-31 Marco Gerards <metgerards@student.han.nl>
50299
50300 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
50301 Removed prototype.
50302 (grub_rescue_cmd_linux): New prototype.
50303 (grub_rescue_cmd_initrd): Likewise.
50304 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
50305 `bi_rec'.
50306 (grub_linux_release_mem): Release the memory for the initrd.
50307 (grub_load_linux): Renamed from this...
50308 (grub_rescue_cmd_linux): ...To this. Changed all callers.
50309 Changed `entry' not to be static. Loop over memory regions to
50310 find another one when the default fails.
50311 (grub_rescue_cmd_initrd): New function.
50312 (grub_linux_init): Remove function.
50313 (grub_linux_fini): Likewise.
50314 (GRUB_MOD_INIT): Register `initrd'.
50315 (GRUB_MOD_FINI): Unregister `initrd'.
50316 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
50317 Function removed.
50318 (grub_linux_normal_fini): Likewise.
50319 (GRUB_MOD_INIT): Register `initrd'.
50320 (GRUB_MOD_FINI): Unregister `initrd'.
50321
990cf3aa 503222005-01-31 Marco Gerards <metgerards@student.han.nl>
50323
50324 * commands/help.c: New file.
50325 * normal/arg.c (show_help): Renamed to...
50326 (grub_arg_show_help): ... this.
50327 * commands/i386/pc/halt.c: New file.
50328 * commands/i386/pc/reboot.c: Likewise.
50329 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
50330 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
50331 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
50332 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
50333 variables.
50334 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50335 `commands/help.c'.
50336 (pkgdata_MODULES): Add `help.mod'.
50337 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
50338 * grub/i386/pc/init.h (grub_reboot): New prototype.
50339 (grub_halt): Likewise.
50340 * include/grub/normal.h (grub_arg_show_help): New prototype.
50341 (grub_help_init): Likewise.
50342 (grub_help_fini): Likewise.
50343 * util/grub-emu.c (main): Initialize and deinitialize the help
50344 command.
50345
50346 * normal/cmdline.c (grub_cmdline_get): Doc fix.
50347
50348 * normal/command.c (grub_command_init): Fixed the description of
50349 the `set' and `unset' commands.
50350
503512005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 50352
50353 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
50354 function.
50355 * commands/ieee1275/halt.c: New file.
50356 * commands/ieee1275/reboot.c: Likewise.
50357 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
50358 `__attribute__ ((unused))'. Some GCS related fixed.
50359 (grub_suspend_init) [GRUB_UTIL]: Function removed.
50360 (grub_suspend_fini): Likewise.
50361 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
50362 and `halt.mod'.
50363 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
50364 (halt_mod_CFLAGS): New variables.
50365 * include/grub/powerpc/ieee1275/ieee1275.h
50366 (grub_ieee1275_interpret): New prototype.
50367
1ab09cc7 503682005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
50369
50370 * include/grub/misc.h (memmove): New prototype.
50371 (memcpy): Likewise.
50372
8b8cbdb2 503732005-01-22 Hollis Blanchard <hollis@penguinppc.org>
50374
50375 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
50376 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
50377
e3741a27 503782005-01-22 Marco Gerards <metgerards@student.han.nl>
50379
50380 * kern/misc.c (grub_strndup): Function rewritten.
50381
776bd780 503822005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
50383
50384 * normal/menu.c (TERM_WIDTH): Macro redefined.
50385 (TERM_TOP_BORDER_Y): Likewise.
50386 (draw_border): Replaced while-loop by a for-loop. Make the number
50387 of lines consistent with the number of lines displayed in
50388 print_entries. Added a margin below the rectangle.
50389 (print_entry): Make the entry fit in the rectangle.
50390 (print_entries): Display the scroll arrows next to the right
50391 border.
50392
78026bce 503932005-01-21 Marco Gerards <metgerards@student.han.nl>
50394
50395 * fs/minix.c (grub_minix_find_file): Reserve more space for
50396 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
50397 `grub_strncpy' to copy `path' into it.
50398
67bbaf0f 503992005-01-21 Marco Gerards <metgerards@student.han.nl>
50400
50401 Add the loopback device, a device via which files can be accessed
50402 as devices.
f19dbdb7 50403
67bbaf0f 50404 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
50405 (pkgdata_MODULES): Add loopback.mod.
50406 (loopback_mod_SOURCES): New variable.
50407 (loopback_mod_CFLAGS): Likewise.
50408 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
50409 `disk/loopback.c'.
50410 (pkgdata_MODULES): Add loopback.mod.
50411 (loopback_mod_SOURCES): New variable.
50412 (loopback_mod_CFLAGS): Likewise.
50413 * disk/loopback.c: new file.
50414 * include/grub/normal.h (grub_loop_init): New prototype.
50415 (grub_loop_fini): New prototype.
50416 * util/grub-emu.c (main): Initialize and de-initialize loopback
50417 support.
50418 * include/grub/disk.h (grub_disk_dev_id): Add
50419 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
50420
6f1c18bd 504212005-01-20 Hollis Blanchard <hollis@penguinppc.org>
50422
50423 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
50424 function.
50425 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
50426 (suspend_mod_SOURCES): New variable.
50427 (suspend_mod_CFLAGS): Likewise.
50428 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
50429 New prototype.
50430 * commands/ieee1275/suspend.c: New file.
50431
b38551da 504322005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
50433
50434 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 50435 ((unused))' to `__attribute__ ((used))'.
b38551da 50436 (GRUB_MOD_FINI): Likewise.
50437 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
50438 * genmk.rb (PModule): Assign space to common symbols when linking
50439 modules.
50440
777aff39 504412005-01-20 Marco Gerards <metgerards@student.han.nl>
50442
50443 * include/grub/mm.h (grub_mm_init_region): Change the type of the
50444 `unsigned' arguments to `grub_size_t'.
50445 (grub_malloc): Likewise.
50446 (grub_realloc): Likewise.
50447 (grub_memalign): Likewise.
50448 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
50449 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
50450 * util/misc.c (grub_malloc): Likewise.
50451 (grub_realloc): Likewise.
50452 * kern/mm.c (get_header_from_pointer): Change the casts to
50453 `unsigned' into a cast to `grub_size_t'.
50454
50455 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
50456 point to `currnode' when `currnode' is changed.
50457
50458 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
50459 Schottelius <nico-linux@schottelius.org>.
50460
d0ff18e1 504612005-01-09 Hollis Blanchard <hollis@penguinppc.org>
50462
50463 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
50464 (note_path): Remove variable.
50465 (GRUB_IEEE1275_NOTE_NAME): New macro.
50466 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
50467 (grub_ieee1275_note_hdr): New structure.
50468 (grub_ieee1275_note_desc): Likewise.
50469 (grub_ieee1275_note): Likewise.
50470 (load_note): Remove `dir' argument. All callers updated. Remove
50471 `note_img' and `path'. Do not load a file from `note_path'.
50472 Initialize a struct grub_ieee1275_note and write that to `out'.
50473 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
50474
4ca7004c 504752005-01-05 Marco Gerards <metgerards@student.han.nl>
50476
50477 * util/misc.c (grub_util_read_image): Revert last change. It
50478 called `grub_util_read_at', which seeks from the beginning of the
50479 file.
50480
0b412211 504812005-01-04 Hollis Blanchard <hollis@penguinppc.org>
50482
50483 * TODO: Add note about endianness in grub-mkimage.
50484 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
50485 section.
50486 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
50487 (grub_mkimage_SOURCES): New target.
50488 * include/grub/kernel.h (grub_start_addr): Remove variable.
50489 (grub_end_addr): Likewise.
50490 (grub_total_module_size): Likewise.
50491 (grub_kernel_image_size): Likewise.
50492 (GRUB_MODULE_MAGIC): New constant.
50493 (grub_module_info): New structure.
50494 (grub_arch_modules_addr): New prototype.
50495 (grub_get_end_addr): Remove prototype.
50496 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
50497 * include/grub/powerpc/ieee1275/kernel.h: New file.
50498 * include/grub/util/misc.h (grub_util_get_fp_size): New
50499 prototype.
50500 (grub_util_read_at): Likewise.
50501 (grub_util_write_image_at): Likewise.
50502 * kern/main.c (grub_get_end_addr): Remove function.
50503 (grub_load_modules): Call grub_arch_modules_addr instead of using
50504 grub_end_addr. Look for a grub_module_info struct in memory. Use
50505 the grub_module_info fields instead of calling grub_get_end_addr
50506 as loop conditions. Move grub_add_unused_region code here.
50507 (grub_add_unused_region): Remove function.
50508 * kern/i386/pc/init.c: Include grub/cache.h.
50509 (grub_machine_init): Remove call to grub_get_end_addr. Remove
50510 one call to add_mem_region.
50511 (grub_arch_modules_addr): New function.
50512 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
50513 (grub_total_module_size): Likewise.
50514 Include grub/machine/kernel.h.
50515 (grub_arch_modules_addr): New function.
50516 * util/grub-emu.c (grub_end_addr): Remove variable.
50517 (grub_total_module_size): Likewise.
50518 (grub_arch_modules_addr): New function.
50519 * util/misc.c: Include unistd.h.
50520 (grub_util_get_fp_size): New function.
50521 (grub_util_read_at): Likewise.
50522 (grub_util_write_image_at): Likewise.
50523 (grub_util_read_image): Call grub_util_read_at.
50524 (grub_util_write_image): Call grub_util_write_image_at.
50525 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
50526 additional memory in kernel_img for a struct grub_module_info.
50527 Fill in that grub_module_info.
50528 * util/powerpc/ieee1275/grub-mkimage.c: New file.
50529
458786f8 505302005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50531
50532 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
50533 New function.
50534 * include/grub/powerpc/ieee1275/ieee1275.h
50535 (grub_ieee1275_milliseconds): New prototype.
50536 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
50537 Change to 1000.
50538 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
50539 grub_ieee1275_milliseconds.
50540
ac507d1b 505412005-01-03 Hollis Blanchard <hollis@penguinppc.org>
50542
50543 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
50544 variable.
50545 (find_options): New function.
50546 (cmain): Call find_options.
50547 * include/grub/powerpc/ieee1275/ieee1275.h
50548 (grub_ieee1275_realmode): New extern variable.
50549 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
50550 grub_map if grub_ieee1275_realmode is false.
50551
6b8fd1c4 505522004-12-29 Marco Gerards <metgerards@student.han.nl>
50553
50554 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
50555 lines are inserted and make it work like readline. Reported by
50556 Vincent Pelletier <subdino2004@yahoo.fr>.
50557
8514a1e0 505582004-12-28 Marco Gerards <metgerards@student.han.nl>
50559
50560 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
50561
50562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
50563 `kern/powerpc/cache.S'.
50564
924b6140 505652004-12-27 Marco Gerards <metgerards@student.han.nl>
50566
50567 * genmk.rb: Handle the `Program' class in the main loop. Written
50568 by Johan Rydberg <jrydberg@gnu.org>.
50569 (Program): New class.
50570 (programs): New variable.
50571 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
50572 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
50573 instead of "grub/kernel.h". Include <grub/machine/init.h>.
50574 (help_arch): Function removed.
50575 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
50576 `powerpc/libgcc.h' and `loader.h'.
50577 (pkgdata_PROGRAMS): New variable.
50578 (sbin_UTILITIES): Variable removed.
50579 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
50580 (grubof_SOURCES): Variable re-defined so it only includes the
50581 core functionality.
50582 (grubof_CFLAGS): Remove `-DGRUBOF'.
50583 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
50584 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
50585 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
50586 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
50587 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
50588 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
50589 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
50590 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
50591 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
50592 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
50593 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
50594 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
50595 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
50596 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
50597 (pc_mod_CFLAGS): New variables.
50598 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
50599 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
50600 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
50601 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
50602 Moved from here...
50603 * include/grub/i386/pc/init.h (grub_os_area_addr)
50604 (rub_os_area_size): ... to here.
50605 * include/grub/powerpc/ieee1275/ieee1275.h
50606 (grub_ieee1275_entry_fn): Export symbol.
50607 * include/grub/powerpc/ieee1275/init.h: New file.
50608 * include/grub/powerpc/libgcc.h: Likewise.
50609 * include/grub/cache.h: Likewise.
50610 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
50611 <hollis@penguinppc.org>.
50612 * kern/dl.c: Include <grub/cache.h>.
50613 (grub_dl_flush_cache): New function.
50614 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
50615 for this module.
50616 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
50617 (grub_console_init): Removed prototypes.
50618 (grub_machine_init): Don't initialize the modules anymore.
50619 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
50620 static.
50621 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
50622 Macro undef removed.
50623 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
50624 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
50625 relocation `R_PPC_REL32'. Return an error when the relocation is
50626 unknown.
50627 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
50628 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
50629 * util/misc.c (grub_arch_sync_caches): Likewise.
50630
e4b47e0c 506312004-12-19 Marco Gerards <metgerards@student.han.nl>
50632
50633 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
50634 `symlist.c', add `grubof_symlist.c'.
50635 (symlist.c): Variable removed.
50636 (grubof_HEADERS): Variable added.
50637 (grubof_symlist.c): New target.
50638 (kernel_syms.lst): Use `grubof_HEADERS' instead of
50639 `kernel_img_HEADERS'.
50640 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
50641 * kern/powerpc/dl.c: New file.
50642 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
50643 Function removed.
50644 (grub_arch_dl_relocate_symbols): Likewise.
50645 (grub_register_exported_symbols): Likewise.
50646
4ceb3636 506472004-12-13 Marco Gerards <metgerards@student.han.nl>
50648
50649 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
50650 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
50651 to fail instead. Reported by Vincent Pelletier
50652 <subdino2004@yahoo.fr>.
50653
50654 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
50655 it is not allocated. Reported by Vincent Pelletier
50656 <subdino2004@yahoo.fr>.
50657
50658 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
50659 output so the output looks better.
f19dbdb7 50660
3f1578fe 506612004-12-04 Marco Gerards <metgerards@student.han.nl>
50662
50663 Modulize the partition map support and add support for the amiga
50664 partition map.
f19dbdb7 50665
3f1578fe 50666 * commands/ls.c: Include <grub/partition.h> instead of
50667 <grub/machine/partition.h>.
50668 * kern/disk.c: Likewise.
50669 * kern/rescue.c: Likewise.
50670 * loader/i386/pc/chainloader.c: Likewise.
50671 * normal/cmdline.c: Likewise.
50672 * kern/powerpc/ieee1275/init.c: Likewise.
50673 (grub_machine_init): Call `grub_pc_partition_map_init',
50674 `grub_amiga_partition_map_init' and
50675 `grub_apple_partition_map_init'.
50676 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
50677 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
50678 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
50679 `partition.h' and `pc_partition.h'.
50680 (grub_setup_SOURCES): Remove
50681 `disk/i386/pc/partition.c'. Add `kern/partition.c',
50682 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50683 (grub_emu_SOURCES): Likewise.
50684 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
50685 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
50686 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
50687 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50688 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
50689 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
50690 (grubof_SOURCES): Likewise.
50691 * disk/i386/pc/partition.c: File removed.
50692 * disk/powerpc/ieee1275/partition.c: Likewise.
50693 * include/grub/powerpc/ieee1275/partition.h: Likewise.
50694 * include/grub/i386/pc/partition.h: Likewise.
50695 * kern/partition.c: New file.
50696 * partmap/amiga.c: Likewise.
50697 * partmap/apple.c: Likewise.
50698 * partmap/pc.c: Likewise.
50699 * include/grub/partition.h: Likewise..
50700 * include/grub/pc_partition.h: Likewise.
50701 * util/grub-emu.c: Include <grub/partition.h> instead of
50702 <grub/machine/partition.h>.
50703 (main): Call `grub_pc_partition_map_init',
50704 `grub_amiga_partition_map_init' and
50705 `grub_apple_partition_map_init' and deinitialize afterwards.
50706 * util/i386/pc/biosdisk.c: Include `#include
50707 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50708 `<grub/machine/partition.h>'.
50709 * util/i386/pc/grub-setup.c: Likewise.
50710 * util/i386/pc/biosdisk.c: Likewise.
50711 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
50712 partition information in case of a PC partition.
50713 * util/i386/pc/grub-setup.c: Include `#include
50714 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
50715 `<grub/machine/partition.h>'.
50716 (setup): Only access the PC specific partition information in case
50717 of a PC partition.
50718
0ef4ced9 507192004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 50720
0ef4ced9 50721 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
50722 (grub_longjmp): Likewise.
50723 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
50724 20.
50725 * normal/powerpc/setjmp.S: New file.
50726 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
50727 `normal/powerpc/setjmp.S'.
50728 (grubof_CFLAGS): Add `-DGRUBOF'.
50729 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
50730 [GRUB_UTIL && !GRUBOF].
f19dbdb7 50731
19950e29 507322004-11-16 Marco Gerards <metgerards@student.han.nl>
50733
50734 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
50735 property named `name'. Correctly handle the error returned by
50736 `grub_ieee1275_finddevice' if a device can not be opened.
50737
a2fea427 507382004-11-02 Hollis Blanchard <hollis@penguinppc.org>
50739
50740 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
50741 `actual' for negativity.
50742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
50743 kern/fshelp.c.
50744
41ea0ea3 507452004-11-01 Marco Gerards <metgerards@student.han.nl>
50746
50747 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
50748 (PAGE_OFFSET): New macro.
50749 (CRTC_ADDR_PORT): Likewise.
50750 (CRTC_DATA_PORT): Likewise.
50751 (START_ADDR_HIGH_REGISTER): Likewise.
50752 (START_ADDR_LOW_REGISTER): Likewise.
50753 (GRAPHICS_ADDR_PORT): Likewise.
50754 (GRAPHICS_DATA_PORT): Likewise.
50755 (READ_MAP_REGISTER): Likewise.
50756 (INPUT_STATUS1_REGISTER): Likewise.
50757 (INPUT_STATUS1_VERTR_BIT): Likewise.
50758 (page): New variable.
50759 (wait_vretrace): New function.
50760 (set_read_map): Likewise.
50761 (set_start_address): Likewise.
50762 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
50763 the right page.
50764 (check_vga_mem): Take the page into account.
50765 (write_char): Likewise.
50766 (write_cursor): Likewise.
50767 (scroll_up): Likewise. Copy the page to the page that is not
50768 shown and switch between both pages.
50769 (grub_vga_putchar): Fix off by one error.
50770 (grub_vga_cls): Wait for the vertical retrace. Take the page into
50771 account.
50772
ad0bd20b 507732004-11-01 Marco Gerards <metgerards@student.han.nl>
50774
50775 Add support for iso9660 (including rockridge).
f19dbdb7 50776
ad0bd20b 50777 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50778 (iso9660_mod_SOURCES): New variable.
50779 (iso9660_mod_CFLAGS): Likewise.
50780 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
50781 * include/grub/fs.h (grub_iso9660_init): New prototype.
50782 * util/grub-emu.c (main): Call `grub_iso9660_init'.
50783 * fs/iso9660.c: New file.
50784
50785 * include/grub/misc.h (grub_strncat): New prototype.
50786 * kern/misc.c (grub_strncat): New function.
f19dbdb7 50787
ad0bd20b 50788 * fs/hfs.c (grub_hfs_mount): Translate the error
50789 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
50790 * fs/jfs.c (grub_jfs_mount): Likewise.
50791 * fs/ufs.c (grub_ufs_mount): Likewise.
50792
a5477a59 507932004-10-28 Hollis Blanchard <hollis@penguinppc.org>
50794
50795 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
50796 which initialized BAT registers.
50797 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
50798 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50799 Move from here...
50800 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
50801 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
50802 ... to here.
50803 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
50804 (grub_mapclaim): Likewise.
50805 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
50806 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
50807 hand.
50808
9304c1f8 508092004-10-19 Hollis Blanchard <hollis@penguinppc.org>
50810
50811 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
50812 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
50813 -ffreestanding and -msoft-float.
50814
86f4ae25 508152004-10-15 Hollis Blanchard <hollis@penguinppc.org>
50816
50817 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
50818 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
50819 set in grub_ieee1275_flags.
50820
38912228 508212004-10-14 Hollis Blanchard <hollis@penguinppc.org>
50822
50823 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
50824 prototype.
50825 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
50826 grub_console_init first.
50827 Change the memory range used for grub_ieee1275_claim and
50828 grub_mm_init_region.
50829 Print an error message if the claim fails.
50830 Include <grub/misc.h>.
50831
d1923dc8 508322004-10-13 Hollis Blanchard <hollis@penguinppc.org>
50833
50834 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
50835 Call grub_children_iterate for device nodes of type `scsi',
50836 `ide', or `ata'.
50837 (grub_ofdisk_open): Remove manual device alias resolution.
50838 Fix memory leak when device cannot be opened.
f19dbdb7 50839 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 50840 (grub_children_iterate): New prototype.
50841 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
50842 New function.
50843 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
50844 Return -1 if args.size was -1.
50845
4512e4f3 508462004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50847
50848 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
50849 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
50850 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
50851 Open Firmware's memory for it; claim memory from _start to _end.
50852 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
50853 (_end): New extern.
50854 (_start): Zero BSS from __bss_start to _end.
50855 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
50856 New extern.
50857 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
50858
4d61feb0 508592004-10-11 Hollis Blanchard <hollis@penguinppc.org>
50860
ad0bd20b 50861 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
50862 -1 if args.base was -1.
4d61feb0 50863
026fa2f9 508642004-10-08 Hollis Blanchard <hollis@penguinppc.org>
50865
50866 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
50867 escape sequence instead of a literal ^L. Also call
50868 grub_ofconsole_gotoxy.
50869
9f2220ef 508702004-10-03 Hollis Blanchard <hollis@penguinppc.org>
50871
50872 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
50873 void * arguments to grub_addr_t. All callers updated. Also make
50874 the `result' argument optional.
50875 (grub_ieee1275_release): change void * arguments to grub_addr_t.
50876 All callers updated.
50877
8a572cd7 508782004-09-22 Hollis Blanchard <hollis@penguinppc.org>
50879
50880 * commands/ls.c (grub_ls_list_files): Use the string following the
50881 initial ')', if present, as the filesystem path.
50882 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
50883
50884 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
50885
18aa81f2 508862004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
50887
50888 Make the source code of the menu interface more readable.
f19dbdb7 50889
18aa81f2 50890 * normal/menu.c: Include grub/mm.h.
50891 (TERM_WIDTH): New macro.
50892 (TERM_HEIGHT): Likewise.
50893 (TERM_INFO_HEIGHT): Likewise.
50894 (TERM_MARGIN): Likewise.
50895 (TERM_SCROLL_WIDTH): Likewise.
50896 (TERM_TOP_BORDER_Y): Likewise.
50897 (TERM_LEFT_BORDER_X): Likewise.
50898 (TERM_BORDER_WIDTH): Likewise.
50899 (TERM_MESSAGE_HEIGHT): Likewise.
50900 (TERM_BORDER_HEIGHT): Likewise.
50901 (TERM_NUM_ENTRIES): Likewise.
50902 (TERM_FIRST_ENTRY_Y): Likewise.
50903 (TERM_ENTRY_WIDTH): Likewise.
50904 (TERM_CURSOR_X): Likewise.
50905 (draw_border): Use macros instead of magic numbers.
50906 (print_entry): Likewise.
50907 (print_entries): Likewise.
50908 (run_menu): Likewise. Also, handle the key 'e'.
50909 (run_menu_entry): Ignore empty command lines.
50910 (print_message): Added a new argument EDIT. If EDIT is true,
50911 print a different message.
50912 (init_page): Likewise.
50913 (edit_menu_entry): New function. Not implemented yet.
50914
b47efe30 509152004-09-17 Marco Gerards <metgerards@student.han.nl>
50916
50917 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
50918 can be loaded from normal mode.
f19dbdb7 50919
b47efe30 50920 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
50921 `multiboot.mod'.
50922 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
50923 (multiboot_mod_CFLAGS): New variables.
50924 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 50925 * loader/i386/pc/multiboot_normal.c: Likewise.
50926
b47efe30 50927 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
50928 attribute `unused'.
f19dbdb7 50929
b47efe30 50930 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
50931 `fdiro' to read the mode information from instead of `diro'.
50932
50933 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
50934 looking up a symlink.
50935
50936 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
50937 macro.
50938 * normal/command.c (grub_command_execute): Don't parse the
50939 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
50940 flags of the command.
50941
50942 * normal/menu.c (grub_menu_run): Fix typo.
50943
da75ac71 509442004-09-14 Hollis Blanchard <hollis@penguinppc.org>
50945
50946 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
50947
50948 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
50949 `y + 1' instead of `y - 1'.
50950
50951 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 50952
062b24c2 509532004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
50954
50955 From Hollis Blanchard <hollis@penguinppc.org>:
50956 * kern/misc.c (memmove): New alias for grub_memmove.
50957 (memcmp): New alias for grub_memcmp.
50958 (memset): New alias for grub_memset.
f19dbdb7 50959 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 50960 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 50961 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 50962 (grub_ieee1275_get_property): Likewise.
f19dbdb7 50963
8ddad845 509642004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
50965
50966 Added normal mode command `chainloader' as module chain.mod, which
50967 depends on normal.mod and _chain.mod.
f19dbdb7 50968
8ddad845 50969 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
50970 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
50971 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
50972 Deleted prototype.
50973 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
50974 but arguments parsing moved to ...
50975 (grub_chainloader_cmd): ... here. New function.
50976 * include/grub/i386/pc/chainloader.h: New file.
50977 * loader/i386/pc/chainloader_normal.c: Likewise.
50978
2c1f4ce3 509792004-09-11 Marco Gerards <metgerards@student.han.nl>
50980
50981 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
50982 (grub_mkimage_LDFLAGS): Likewise.
50983 (grub_emu_SOURCES): Likewise.
50984 (kernel_img_HEADERS): Added fshelp.h.
50985 * fs/ext2.c: Include <grub/fshelp.h>.
50986 (FILETYPE_REG): New macro.
50987 (FILETYPE_INO_REG): Likewise.
50988 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
50989 Changed all users.
50990 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
50991 all users.
50992 (grub_fshelp_node): New struct.
50993 (grub_ext2_data): Added member `diropen'. Changed member `inode'
50994 to a pointer.
50995 (grub_ext2_get_file_block): Removed function.
50996 (grub_ext2_read_block): New function.
50997 (grub_ext2_read_file): Replaced parameter `data' by `node'.
50998 This function was written.
50999 (grub_ext2_mount): Read the root inode. Create a diropen struct.
51000 (grub_ext2_find_file): Removed function.
51001 (grub_ext2_read_symlink): New function.
51002 (grub_ext2_iterate_dir): Likewise.
51003 (grub_ext2_open): Rewritten.
51004 (grub_ext2_dir): Rewritten.
51005 * include/grub/fshelp.h: New file.
51006 * fs/fshelp.c: Likewise.
51007
3c52136a 510082004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
51009
51010 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
51011 (print_message): Add a missing newline.
51012 (run_menu): Added timeout support.
51013 (run_menu_entry): New local function.
51014 (grub_menu_run): Added support for booting.
51015
51016 * kern/loader.c (grub_loader_is_loaded): New function.
51017
51018 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
51019 (grub_get_rtc): Exported.
51020
51021 * include/grub/i386/pc/time.h: Include grub/symbol.h.
51022 (grub_get_rtc): Exported.
51023
51024 * include/grub/normal.h (struct grub_command_list): Remove
51025 constant from the member `command'.
51026
51027 * include/grub/loader.h (grub_loader_is_loaded): Declared.
51028
51029 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
51030
51031 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
51032
aa033560 510332004-08-28 Marco Gerards <metgerards@student.han.nl>
51034
51035 Add support for the JFS filesystem.
51036
51037 * fs/jfs.c: New file.
51038 * include/grub/fs.h (grub_jfs_init): New prototype.
51039 (grub_jfs_fini): New prototype.
51040 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
51041 (grub_emu_SOURCES): Likewise.
51042 (pkgdata_MODULES): Add jfs.mod.
51043 (jfs_mod_SOURCES): New variable.
51044 (jfs_mod_CFLAGS): Likewise.
51045 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
51046 (grubof_SOURCES): Likewise.
51047 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
51048
51049 * fs/fat.c (grub_fat_find_dir): Convert the filename little
51050 endian to the host endian.
51051 (grub_fat_utf16_to_utf8): Move function from there...
51052 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 51053 the endianness of the source string anymore.
aa033560 51054 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
51055
94bc45af 510562004-08-24 Marco Gerards <metgerards@student.han.nl>
51057
51058 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
51059 (grub_boot_fini) [GRUB_UTIL]: Likewise.
51060 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
51061 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 51062
94bc45af 51063 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
51064 (grub_hfs_iterate_dir): Make the function static. Add prototypes
51065 for `node_found' and `it_dir'.
51066 (grub_hfs_dir): Add prototype for `dir_hook'.
51067
51068 * fs/minix.c (grub_minix_get_file_block): Add prototype for
51069 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
51070 and `indir32' to silence a gcc warning.
51071
51072 * include/grub/fs.h (grub_hfs_init): New prototype.
51073 (grub_hfs_fini): Likewise.
f19dbdb7 51074
51075
97543f08 510762004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
51077
51078 Each disk device has its own id now. This is useful to make use
51079 of multiple disk devices.
f19dbdb7 51080
97543f08 51081 * include/grub/disk.h (grub_disk_dev_id): New enum.
51082 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
51083 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
51084
51085 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
51086 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51087
51088 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
51089 GRUB_DISK_DEVICE_OFDISK_ID as an id.
51090
51091 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
51092 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
51093
51094 * include/grub/disk.h (struct grub_disk_dev): Added a new member
51095 "id" which is used by the cache manager.
51096
51097 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
51098 of just "GRUB".
51099
64372eb4 511002004-08-18 Marco Gerards <metgerards@student.han.nl>
51101
51102 * fs/hfs.c: New file.
51103 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
51104 (grub_emu_SOURCES): Likewise.
51105 (pkgdata_MODULES): Add hfs.mod.
51106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
51107 (grubof_SOURCES): Likewise.
51108 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
51109
51110 * include/grub/misc.h (grub_strncasecmp): Add prototype.
51111 * kern/misc.c (grub_strncasecmp): Add function.
51112
cc61b58f 511132004-08-14 Marco Gerards <metgerards@student.han.nl>
51114
51115 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
51116 with parentheses.
51117
51118 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
51119 (grub_ext2_dir): In case the directory entry type is unknown, read
51120 it from the inode.
51121
0ef123f6 511222004-08-02 Peter Bruin <pjbruin@dds.nl>
51123
51124 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
51125 grub_load_linux instead of grub_rescue_cmd_linux as second
51126 argument of grub_rescue_register_command.
51127
51128 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
51129
a447c5df 511302004-07-27 Marco Gerards <metgerards@student.han.nl>
51131
51132 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
51133 function.
51134 * commands/boot.c: Remove the check for `GRUB_UTIL'.
51135 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
51136 `loader/powerpc/ieee1275/linux.c',
51137 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
51138 * include/grub/powerpc/ieee1275/ieee1275.h
51139 (grub_ieee1275_release): New prototype.
51140 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
51141 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
51142 normal, boot, linux and linux_normal.
51143 * loader/powerpc/ieee1275/linux.c: New file.
51144 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
51145
5a9e3546 511462004-07-12 Marco Gerards <metgerards@student.han.nl>
51147
51148 * normal/arg.c (grub_arg_parse): Correct error handling after
51149 reallocating the argumentlist (check if `argl' is not null instead
51150 of checking if `args' is not null).
51151 * kern/mm.c (grub_realloc): Return the same pointer when using the
51152 same region, instead of returning the header address.
51153
e15199cb 511542004-07-11 Marco Gerards <metgerards@student.han.nl>
51155
51156 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
51157 one block instead of two when looking for the initial partition.
51158 (grub_partition_probe): Initialize the local variable `p' with 0.
51159 Use base 10 for the grub_strtoul call.
51160 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
51161 need for one local variable.
51162 (grub_strtoul): Don't add the new value to `num', instead of that
51163 just assign it.
51164
020616c2 511652004-07-11 Marco Gerards <metgerards@student.han.nl>
51166
51167 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
51168 (pxeboot_img_SOURCES): New variable.
51169 (pxeboot_img_ASFLAGS): Likewise.
51170 (pxeboot_img_LDFLAGS): Likewise.
51171 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
51172 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
51173 <lode_leroy@hotmail.com>.
51174
6c51eb64 511752004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51176
51177 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
51178 there was no input.
51179
cfb12aff 511802004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51181
51182 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
51183 the history buffer logic.
51184
6eabba74 511852004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
51186
51187 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
51188 (FILETYPE_INO_SYMLINK): New macros.
51189 (grub_ext2_find_file): Check if the node is a directory using the
51190 inode stat information instead of using the filetype in the
51191 dirent. Exclude the first character of an absolute symlink.
51192 (grub_ext2_dir): Mask out the filetype part of the mode member of
51193 the inode.
51194
66e19ef8 511952004-05-24 Marco Gerards <metgerards@student.han.nl>
51196
51197 Add support for UFS version 1 and 2. Add support for the minix
51198 filesystem version 1 and 2, both the variants with 14 and 30 long
51199 filenames.
f19dbdb7 51200
66e19ef8 51201 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
51202 fs/minix.c.
51203 (grub_emu_SOURCES): Likewise.
51204 (pkgdata_MODULES): Add ufs.mod and minix.mod.
51205 (ufs_mod_SOURCES): New variable.
51206 (ufs_mod_CFLAGS): Likewise.
51207 (minix_mod_SOURCES): Likewise.
51208 (minix_mod_CFLAGS): Likewise.
51209 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
51210 fs/minix.c.
51211 (grubof_SOURCES): Likewise.
51212 * fs/ufs.c: New file.
51213 * fs/minix.c: New file.
51214 * include/grub/fs.h (grub_ufs_init): New prototype.
51215 (grub_ufs_fini): Likewise.
51216 (grub_minix_init): Likewise.
51217 (grub_minix_fini): Likewise.
51218 * util/grub-emu.c (main): Initialize and deinitialize UFS and
51219 minix fs.
51220
cc2e748a 512212004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
51222
51223 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
51224 commands/ls.c, commands/terminal.c, commands/boot.c,
51225 commands/cmp.c and commands/cat.c.
51226 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
51227
51228 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
51229 "env.h"
51230
4b13b216 512312004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51232
51233 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
51234 and grub_, respectively. Because the conversion is trivial and
51235 mechanical, I omit the details here. Please refer to the CVS
51236 if you need more information.
51237
6a142551 512382004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
51239
51240 * include/pupa: Renamed to ...
51241 * include/grub: ... this.
51242 * util/i386/pc/pupa-mkimage.c: Renamed to ...
51243 * util/i386/pc/grub-mkimage.c: ... this.
51244 * util/i386/pc/pupa-setup.c: Renamed to ...
51245 * util/i386/pc/grub-setup.c: ... this.
51246 * util/pupa-emu.c: Renamed to ...
51247 * util/grub-emu.c: ... this.
51248
e56cdf21 512492004-03-29 Marco Gerards <metgerards@student.han.nl>
51250
51251 Add support for the newworld apple macintosh (PPC). This has been
51252 tested on the powerbook 2000 only. It only adds support for
51253 generic ieee1275 functions, console and disk support. This should
51254 be easy to port to other architectures with support for Open
51255 Firmware.
f19dbdb7 51256
e56cdf21 51257 * configure.ac: Accept the powerpc as host_cpu. In the case of
51258 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
51259 specific tests are only executed while building for the i386.
51260 Inverse test for crosscompile.
51261 * genmk.rb (Utility): Allow assembler files.
51262 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
51263 * conf/powerpc-ieee1275.rmk: New file.
51264 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
51265 * disk/powerpc/ieee1275/partition.c: Likewise.
51266 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
51267 * include/pupa/powerpc/ieee1275/console.h: Likewise.
51268 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
51269 * include/pupa/powerpc/ieee1275/time.h: Likewise.
51270 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
51271 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
51272 * include/pupa/powerpc/ieee1275/loader.h
51273 * include/pupa/powerpc/setjmp.h: Likewise.
51274 * include/pupa/powerpc/types.h: Likewise.
51275 * kern/powerpc/ieee1275/init.c: Likewise.
51276 * kern/powerpc/ieee1275/openfw.c: Likewise.
51277 * term/powerpc/ieee1275/ofconsole.c: Likewise.
51278
51279 These files were written by Johan Rydberg
51280 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 51281
e56cdf21 51282 * boot/powerpc/ieee1275/cmain.c: New file.
51283 * boot/powerpc/ieee1275/crt0.S: Likewise.
51284 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
51285 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
51286
8c8cc205 512872004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
51288
51289 * Makefile.in: Update copyright.
51290 * genmodsrc.sh: Likewise.
51291 * gensymlist.sh: Likewise.
51292 * term/i386/pc/vga.c: Indent correctly.
51293
51294 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
51295 bugreporting address.
51296 * util/i386/pc/pupa-setup.c (usage): Likewise,
51297 (main): Call pupa_ext2_init and pupa_ext2_fini.
51298
f19dbdb7 51299 * fs/fat.c (log2): Renamed to ...
8c8cc205 51300 (fat_log2): ... this.
51301 All callers changed.
51302 * kern/misc.c (memcpy): Alias to pupa_memmove.
51303 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
51304 lvalue cast.
51305 * util/console.c (pupa_ncurses_fini): Return 0.
51306
51307 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
51308 Move fail label here.
51309 [__GNU__]: Don't warn when using stat.
51310 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
51311 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
51312 long int. Use strtol instead of strtoul.
f19dbdb7 51313
db1771cf 513142004-03-14 Marco Gerards <metgerards@student.han.nl>
51315
51316 * commands/boot.c: New file.
51317 * commands/cat.c: Likewise.
51318 * commands/cmp.c: Likewise.
51319 * commands/ls.c: Likewise.
51320 * commands/terminal.c: Likewise.
51321 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
51322 (pupa_register_command): Changed interface to match the new
51323 argument parser.
51324 (pupa_command_execute): Changed (almost rewritten) so it uses
51325 pupa_split_command. Added support for setting variables using the
51326 syntax `foo=bar'.
51327 (rescue_command): Changed to work with the new argument parser.
51328 (terminal_command): Moved from here to commands/terminal.c.
51329 (set_command): New function.
51330 (unset_command): New function.
51331 (insmod_command): New function.
51332 (rmmod_command): New function.
51333 (lsmod_command): New function.
51334 (pupa_command_init): Don't initialize the command terminal
51335 anymore. Initialize the commands set, unset, insmod, rmmod and
51336 lsmod.
51337 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
51338 (kernel_img_HEADERS): Add arg.h and env.h.
51339 (pupa_mkimage_LDFLAGS): Add kern/env.c.
51340 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
51341 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
51342 normal/arg.c.
51343 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
51344 terminal.mod.
51345 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
51346 (boot_mod_SOURCES): New variable.
51347 (terminal_mod_SOURCES): Likewise.
51348 (ls_mod_SOURCES): Likewise.
51349 (cmp_mod_SOURCES): Likewise.
51350 (cat_mod_SOURCES): Likewise.
51351
51352 * normal/arg.c: New file.
51353 * kern/env.c: Likewise.
51354 * include/pupa/arg.h: Likewise.
51355 * include/pupa/env.h: Likewise.
51356 * font/manager.c (font_command): Changed to match argument parsing
51357 interface changes.
51358 (PUPA_MOD_INIT): Likewise.
51359 * hello/hello.c (pupa_cmd_hello): Likewise.
51360 (PUPA_MOD_INIT): Likewise.
51361 * include/pupa/disk.h: Include <pupa/device.h>.
51362 (pupa_print_partinfo): New prototype.
51363 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
51364 (pupa_dl_get_prefix): Likewise.
51365 * include/pupa/misc.h: Include <pupa/err.h>.
51366 (pupa_isgraph): New prototype.
51367 (pupa_isdigit): Likewise.
51368 (pupa_split_cmdline): Likewise.
51369 * include/pupa/normal.h: Include <pupa/arg.h>.
51370 (pupa_command): Changed the prototype of the member `func' to
51371 match the argument parsing interface. Added member `options'.
51372 (pupa_register_command): Updated to match function.
51373 (pupa_arg_parse): New prototype.
51374 (pupa_hello_init) [PUPA_UTIL]: New prototype.
51375 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
51376 (pupa_ls_init) [PUPA_UTIL]: Likewise.
51377 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
51378 (pupa_cat_init) [PUPA_UTIL]: Likewise.
51379 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
51380 (pupa_boot_init) [PUPA_UTIL]: Likewise.
51381 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
51382 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
51383 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
51384 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
51385 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
51386 * kern/disk.c: Include <pupa/file.h>.
51387 (pupa_print_partinfo): New function.
51388 * kern/dl.c: Include <pupa/env.h>.
51389 (pupa_dl_dir): Variable removed.
51390 (pupa_dl_load): Use the environment variable `prefix' instead of
51391 the variable pupa_dl_dir.
51392 (pupa_dl_set_prefix): Function removed.
51393 (pupa_dl_get_prefix): Likewise.
51394 * kern/i386/pc/init.c: Include <pupa/env.h>.
51395 (pupa_machine_init): Use the environment variable `prefix' instead of
51396 using pupa_dl_set_prefix to set the prefix.
51397 * kern/main.c: Include <pupa/env.h>.
51398 (pupa_set_root_dev): Use the environment variable `prefix' instead of
51399 using pupa_dl_get_prefix to get the prefix.
51400 * kern/misc.c: Include <pupa/env.h>.
51401 (pupa_isdigit): New function.
51402 (pupa_isgraph): Likewise.
51403 (pupa_ftoa): Likewise.
51404 (pupa_vsprintf): Added support for printing values of the type
51405 `double'. Make it possible to format variable output when using
51406 formatting like `%1.2%f'.
51407 (pupa_split_cmdline): New function.
51408 * kern/rescue.c: Include <pupa/env.h>.
51409 (next_word): Removed function.
51410 (pupa_rescue_cmd_prefix): Likewise.
51411 (pupa_rescue_cmd_set): New function.
51412 (pupa_rescue_cmd_unset): New function.
51413 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
51414 split the command line instead of splitting it here. Added
51415 support for setting variables using the syntax `foo=bar'. Don't
51416 initialize the prefix command anymore. Initialized the set and
51417 unset commands.
51418 * normal/cmdline.c: Include <pupa/env.h>.
51419 (pupa_tab_complete): Added prototypes for print_simple_completion,
51420 print_partition_completion, add_completion, iterate_commands,
51421 iterate_dev, iterate_part and iterate_dir. Moved code to print
51422 partition information from here to kern/disk.c.
fe6b695a 51423 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 51424 * normal/main.c: Include <pupa/env.h>.
51425 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
51426 instead of using pupa_dl_get_prefix to get the prefix.
51427 * term/i386/pc/vga.c: Include <pupa/arg.h>.
51428 (check_vga_mem): Cast pointers to `void *' to silence a gcc
51429 warning.
51430 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
51431 (pupa_vga_setcolor): Declare unused variables with `__attribute__
51432 ((unused))' to silence a gcc warning.
51433 (pupa_vga_setcolor): Likewise.
51434 (debug_command): Changed to match argument parsing
51435 interface changes.
51436 * util/pupa-emu.c: Include <pupa/env.h>.
51437 (options): Added 0's for unused fields to silence a gcc warning.
51438 (argp): Likewise.
51439 (main): Use the environment variable `prefix' instead of using
51440 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
51441 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
51442 and terminal.
51443
51444 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
51445 * util/misc.c: Include <malloc.h>.
51446 (pupa_malloc): Rewritten so errors are correctly reported.
51447 (pupa_realloc): Likewise.
51448 (pupa_memalign): Likewise.
51449 (pupa_mm_init_region): Declare unused variables with
51450 `__attribute__ ((unused))' to silence a gcc warning.
51451 * normal/i386/setjmp.S: Remove tab at the end of the file to
51452 silence a gcc warning.
51453 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
51454 variables with `__attribute__ ((unused))' to silence a gcc
51455 warning.
51456 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
51457 local variable i unsigned to silence a gcc warning.
51458
51459 * kern/term.c: Include <pupa/misc.h>.
51460 (pupa_more_lines): New variable.
51461 (pupa_more): Likewise.
51462 (pupa_putcode): When the pager is active pause at the end of every
51463 screen.
51464 (pupa_set_more): New function.
51465 * include/pupa/term.h (pupa_set_more): New prototype.
51466
51467
3b1139cb 514682004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
51469
51470 Now this project is GRUB 2 rather than PUPA. The location of
51471 the CVS repository was moved to GRUB's.
f19dbdb7 51472
3b1139cb 51473 * configure.ac: Use bug-grub as the reporting address.
51474 Use GRUB instead of PUPA.
51475 Change the version number to 1.90.
51476
8367695c 514772004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
51478
51479 * genkernsyms.sh: Updated copyright information.
51480 * genmk.rb: Likewise.
51481 * genmodsrc.sh: Likewise.
51482 * gensymlist.sh: Likewise.
51483 * boot/i386/pc/boot.S: Likewise.
51484 * boot/i386/pc/diskboot.S: Likewise.
51485 * disk/i386/pc/biosdisk.c: Likewise.
51486 * disk/i386/pc/partition.c: Likewise.
51487 * font/manager.c: Likewise.
51488 * fs/ext2.c: Likewise.
51489 * fs/fat.c: Likewise.
51490 * include/pupa/boot.h: Likewise.
51491 * include/pupa/device.h: Likewise.
51492 * include/pupa/disk.h: Likewise.
51493 * include/pupa/dl.h: Likewise.
51494 * include/pupa/elf.h: Likewise.
51495 * include/pupa/err.h: Likewise.
51496 * include/pupa/file.h: Likewise.
51497 * include/pupa/font.h: Likewise.
51498 * include/pupa/fs.h: Likewise.
51499 * include/pupa/kernel.h: Likewise.
51500 * include/pupa/loader.h: Likewise.
51501 * include/pupa/misc.h: Likewise.
51502 * include/pupa/mm.h: Likewise.
51503 * include/pupa/net.h: Likewise.
51504 * include/pupa/normal.h: Likewise.
51505 * include/pupa/rescue.h: Likewise.
51506 * include/pupa/setjmp.h: Likewise.
51507 * include/pupa/symbol.h: Likewise.
51508 * include/pupa/term.h: Likewise.
51509 * include/pupa/types.h: Likewise.
51510 * include/pupa/i386/setjmp.h: Likewise.
51511 * include/pupa/i386/types.h: Likewise.
51512 * include/pupa/i386/pc/biosdisk.h: Likewise.
51513 * include/pupa/i386/pc/boot.h: Likewise.
51514 * include/pupa/i386/pc/console.h: Likewise.
51515 * include/pupa/i386/pc/init.h: Likewise.
51516 * include/pupa/i386/pc/kernel.h: Likewise.
51517 * include/pupa/i386/pc/linux.h: Likewise.
51518 * include/pupa/i386/pc/loader.h: Likewise.
51519 * include/pupa/i386/pc/memory.h: Likewise.
51520 * include/pupa/i386/pc/multiboot.h: Likewise.
51521 * include/pupa/i386/pc/partition.h: Likewise.
51522 * include/pupa/i386/pc/time.h: Likewise.
51523 * include/pupa/i386/pc/vga.h: Likewise.
51524 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
51525 * include/pupa/util/getroot.h: Likewise.
51526 * include/pupa/util/misc.h: Likewise.
51527 * include/pupa/util/resolve.h: Likewise.
51528 * kern/device.c: Likewise.
51529 * kern/disk.c: Likewise.
51530 * kern/dl.c: Likewise.
51531 * kern/err.c: Likewise.
51532 * kern/file.c: Likewise.
51533 * kern/fs.c: Likewise.
51534 * kern/loader.c: Likewise.
51535 * kern/main.c: Likewise.
51536 * kern/misc.c: Likewise.
51537 * kern/mm.c: Likewise.
51538 * kern/rescue.c: Likewise.
51539 * kern/term.c: Likewise.
51540 * kern/i386/dl.c: Likewise.
51541 * kern/i386/pc/init.c: Likewise.
51542 * kern/i386/pc/lzo1x.S: Likewise.
51543 * kern/i386/pc/startup.S: Likewise.
51544 * loader/i386/pc/chainloader.c: Likewise.
51545 * loader/i386/pc/linux.c: Likewise.
51546 * loader/i386/pc/multiboot.c: Likewise.
51547 * normal/cmdline.c: Likewise.
51548 * normal/command.c: Likewise.
51549 * normal/main.c: Likewise.
51550 * normal/menu.c: Likewise.
51551 * normal/i386/setjmp.S: Likewise.
51552 * term/i386/pc/console.c: Likewise.
51553 * term/i386/pc/vga.c: Likewise.
51554 * util/console.c: Likewise.
51555 * util/genmoddep.c: Likewise.
51556 * util/misc.c: Likewise.
51557 * util/pupa-emu.c: Likewise.
51558 * util/resolve.c: Likewise.
51559 * util/unifont2pff.rb: Likewise.
51560 * util/i386/pc/biosdisk.c: Likewise.
51561 * util/i386/pc/getroot.c: Likewise.
51562 * util/i386/pc/pupa-mkimage.c: Likewise.
51563 * util/i386/pc/pupa-setup.c: Likewise.
51564
e6eced71 515652004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
51566
51567 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
51568 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
51569 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
51570 reading and reset it after reading.
51571 (pupa_ext2_close): Return PUPA_ERR_NONE.
51572
51573 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
51574 Correct value.
51575 (struct linux_kernel_header): Add kernel_version and
51576 initrd_addr_max.
51577 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
51578 pupa_file_read succeeds.
51579 (pupa_rescue_cmd_initrd): Implement.
51580
5aded270 515812003-12-03 Marco Gerards <metgerards@student.han.nl>
51582
51583 * fs/ext2.c (pupa_ext2_label): New function.
51584 (pupa_ext2_fs): Added label.
51585 * fs/fat.c (pupa_fat_label): New function.
51586 (pupa_fat_fs): Added label.
51587 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
51588
51589 * kern/misc.c (pupa_strndup): New function.
51590 * include/pupa/misc.h (pupa_strndup): New prototype.
51591
51592 * include/pupa/normal.h: Include <pupa/err.h>.
51593 (pupa_set_history): New prototype.
51594 (pupa_iterate_commands): New prototype.
51595 * normal/cmdline.c: Include <pupa/machine/partition.h>,
51596 <pupa/disk.h>, <pupa/file.h>.
51597 (hist_size): New variable.
51598 (hist_lines): Likewise.
51599 (hist_end): Likewise.
51600 (hist_used): Likewise.
51601 (pupa_set_history): New function.
51602 (pupa_history_get): Likewise.
51603 (pupa_history_add): Likewise.
51604 (pupa_history_replace): Likewise.
51605 (pupa_tab_complete): Likewise.
51606 (pupa_cmdline_run): Added tab completion and history buffer. Tab
51607 completion shows partitionnames while completing partitions, this
51608 feature was suggested by Jeff Bailey.
51609 * normal/command.c (pupa_iterate_commands): New function.
51610 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
51611 (pupa_normal_init): Initialize history buffer.
51612 (PUPA_MOD_INIT): Likewise.
51613 (pupa_normal_fini): Free the history buffer.
51614 (PUPA_MOD_FINI): Likewise.
51615
51616 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
51617 key.
51618
51619 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
51620 * configure.ac [i386]: Check for regparam bug.
51621 (NESTED_FUNC_ATTR) [! i386]: Defined.
51622
1f7315a3 516232003-11-17 Marco Gerards <metgerards@student.han.nl>
51624
51625 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
51626 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
51627 (pupa_emu_SOURCES): New variable.
51628 (pupa_emu_LDFLAGS): Likewise.
51629 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
51630 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
51631 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
51632 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51633 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
51634 (pupa_jmp_buf): New typedef.
51635 (pupa_setjmp) [PUPA_UTIL]: New macro.
51636 (pupa_longjmp) [PUPA_UTIL]: Likewise.
51637 * include/pupa/term.h (struct pupa_term): New member `refresh'.
51638 (pupa_refresh): New prototype.
51639 * include/pupa/util/getroot.h: New file.
51640 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
51641 it.
51642 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
51643 (pupa_rescue_cmd_cat): Likewise.
51644 (pupa_rescue_cmd_ls): Likewise.
51645 (pupa_rescue_cmd_testload): Likewise.
51646 (pupa_rescue_cmd_lsmod): Likewise.
51647 * normal/cmdline.c (pupa_cmdline_get): Likewise.
51648 * normal/menu.c (run_menu): Likewise.
51649 * kern/term.c (pupa_cls): Likewise.
51650 (pupa_refresh): New function.
51651 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
51652 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
51653 * util/console.c: New file.
f19dbdb7 51654
1f7315a3 51655 * util/i386/pc/getroot.c: New file.
51656 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
51657 (pupa_putchar): New function.
51658 (pupa_refresh): Likewise.
51659 (xgetcwd): Function moved to ...
51660 (strip_extra_slashes): Likewise.
51661 (get_prefix): Likewise.
f19dbdb7 51662 * util/i386/pc/getroot.c: ... here.
1f7315a3 51663 (find_root_device): Function moved and renamed to...
51664 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
51665 Changed all callers.
51666 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
51667 and renamed to...
51668 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
51669 Changed all callers.
51670 * util/misc.c (pupa_memalign): New function.
51671 (pupa_mm_init_region): Likewise.
51672 (pupa_register_exported_symbols): Likewise.
51673 (pupa_putchar): Function removed.
51674 * util/pupa-emu.c: New file.
51675
9a5c1ade 516762003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
51677
51678 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
51679 (_multiboot_mod_SOURCES): New variable.
51680 (_multiboot_mod_CFLAGS): Likewise.
51681 * loader/i386/pc/multiboot.c: New file.
51682 * include/pupa/i386/pc/multiboot.h: Likewise.
51683 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
51684 (pupa_multiboot_real_boot): New function.
51685 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
51686 (pupa_multiboot_real_boot): New prototype.
51687 (pupa_rescue_cmd_multiboot): Likewise
51688 (pupa_rescue_cmd_module): Likewise.
51689
51690 * kern/loader.c (pupa_loader_set): Continue when
51691 pupa_loader_unload_func() fails.
51692 (pupa_loader_unset): New function.
51693 * include/pupa/loader.h (pupa_loader_unset): New prototype.
51694
51695 * kern/misc.c (pupa_stpcpy): New function.
51696 * include/pupa/misc.h (pupa_stpcpy): New prototype.
51697
8e72a9c0 516982003-11-12 Marco Gerards <metgerards@student.han.nl>
51699
51700 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
51701 for available extensions.
51702
51703 * include/pupa/i386/pc/time.h: New file.
51704 * kern/disk.c: Include <pupa/machine/time.h>.
51705 (PUPA_CACHE_TIMEOUT): New macro.
51706 (pupa_last_time): New variable.
51707 (pupa_disk_open): Flush the cache when there was a timeout.
51708 (pupa_disk_close): Reset the timer.
51709 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
51710 pupa_currticks.
51711 * util/misc.c: Include <sys/times.h>
51712 (pupa_get_rtc): New function.
51713
c4adbd32 517142003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
51715
51716 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
51717 as blocks.
51718 (pupa_ext2_get_file_block): Use blocks member.
51719
51720 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
51721 first block. Return -1 instead of pupa_errno on error.
51722
bfd30f06 517232003-10-27 Marco Gerards <metgerards@student.han.nl>
51724
51725 * README: In the pupa-mkimage example use _chain instead of chain
51726 and ext2 instead of fat.
51727 * TODO: Replace ext2fs with jfs as an example. Add an item for
51728 adding journal playback for ext2fs.
51729 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
51730 (pkgdata_MODULES): Added ext2.mod.
51731 (ext2_mod_SOURCES): New variable.
51732 (ext2_mod_CFLAGS): Likewise.
51733 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
51734 * include/pupa/misc.h (pupa_strncpy): New prototype.
51735 (pupa_strcat): Likewise.
51736 (pupa_strncmp): Likewise.
51737 * kern/misc.c (pupa_strcat): Enable function.
51738 (pupa_strncpy): New function.
51739 (pupa_strncmp): Likewise.
51740 * fs/ext2.c: New file.
f19dbdb7 51741
bfd30f06 51742 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
51743 when the read failed before retrying.
51744 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
51745 (_FILE_OFFSET_BITS): Likewise.
51746 * configure.ac: Added AC_SYS_LARGEFILE.
51747
98d15063 517482003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51749
51750 * genmk.rb (PModule#rule): Make sure to get only symbol names
51751 from the output of nm.
59cad637 51752 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 51753
18d9c7cd 517542003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
51755
51756 I forgot to check in these changes for a long time. This adds
51757 incomplete support for VGA console, and this is still very
51758 buggy. Also, a lot of consideration is required for I18N,
51759 UNICODE, and VGA font issues. Therefore, assume that this is
51760 such that "better than nothing".
f19dbdb7 51761
18d9c7cd 51762 * font/manager.c: New file.
51763 * include/pupa/font.h: Likewise.
51764 * include/pupa/i386/pc/vga.h: Likewise.
51765 * term/i386/pc/vga.c: Likewise.
51766 * util/unifont2pff.rb: Likewise.
51767
51768 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
51769 (pkgdata_MODULES): Added vga.mod and font.mod.
51770 (vga_mod_SOURCES): New variables.
51771 (vga_mod_CFLAGS): Likewise.
51772 (font_mod_SOURCES): Likewise.
51773 (font_mod_CFLAGS): Likewise.
51774
51775 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
51776
51777 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 51778 (struct pupa_term): Added init and fini.
18d9c7cd 51779 Changed the argument of putchar to pupa_uint32_t.
51780
51781 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
51782 (pupa_console_real_putchar): New prototype.
51783 (pupa_console_putchar): Removed.
51784 (pupa_console_checkkey): Exported.
51785 (pupa_console_getkey): Likewise.
51786
51787 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
51788 characters.
51789
51790 * kern/term.c (pupa_term_set_current): Rewritten.
51791 (pupa_putchar): Likewise.
51792 (pupa_putcode): New function.
51793
51794 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
51795 (pupa_console_real_putchar): ... this.
51796 (pupa_vga_set_mode): New function.
51797 (pupa_vga_get_font): Likewise.
51798
51799 * normal/command.c: Include pupa/term.h.
51800 (terminal_command): New function.
51801 (pupa_command_init): Register the command "terminal".
51802
51803 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
51804 (DISP_UP): Likewise.
51805 (DISP_RIGHT): Likewise.
51806 (DISP_DOWN): Likewise.
51807 (DISP_HLINE): Likewise.
51808 (DISP_VLINE): Likewise.
51809 (DISP_UL): Likewise.
51810 (DISP_UR): Likewise.
51811 (DISP_LL): Likewise.
51812 (DISP_LR): Likewise.
51813
51814 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 51815
977329f5 518162003-02-08 NIIBE Yutaka <gniibe@m17n.org>
51817
51818 * util/resolve.c (pupa_util_resolve_dependencies): BUG
51819 FIX. Reverse the path_list.
51820
51821 * include/pupa/normal.h: Export pupa_register_command and
51822 pupa_unregister_command.
51823
51824 * hello/hello.c (pupa_cmd_hello): New module.
51825 * conf/i386-pc.rmk: Added hello.mod.
51826
1f5ab428 518272003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
51828
51829 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 51830
1f5ab428 51831 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
51832 (compress_kernel): New variable.
51833 (generate_image): Heavily modified to support compressing a
51834 large part of the core image.
51835
51836 * util/misc.c (pupa_util_read_image): Fix a file descriptor
51837 leak.
51838 (pupa_util_load_image): New function.
51839
51840 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
51841 (pupa_compressed_size): New variable.
51842 (codestart): Enable Gate A20 here.
51843 Decompress the compressed part of the core image.
51844 Rearrange the code to put functions and variables which are
51845 required for initialization in the non-compressed part.
51846 Include lzo1x.S.
51847
51848 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
51849 here.
51850
51851 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
51852
f19dbdb7 51853 * include/pupa/i386/pc/kernel.h
1f5ab428 51854 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
51855 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
51856 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
51857 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
51858 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
51859
51860 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
51861
51862 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
51863 (Utility#rule): Likewise.
51864
51865 * configure.ac: Check if LZO is available.
51866
ce5bf700 518672003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
51868
51869 * include/pupa/normal.h: New file.
51870 * include/pupa/setjmp.h: Likewise.
51871 * include/pupa/i386/setjmp.h: Likewise.
51872 * normal/cmdline.c: Likewise.
51873 * normal/command.c: Likewise.
51874 * normal/main.c: Likewise.
51875 * normal/menu.c: Likewise.
51876 * normal/i386/setjmp.S: Likewise.
f19dbdb7 51877
ce5bf700 51878 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
51879 (pupa_rescue_cmd_initrd): Likewise.
51880
51881 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
51882 Likewise.
51883
51884 * kern/i386/pc/startup.S (translation_table): New variable.
51885 (translate_keycode): New function.
51886 (pupa_console_getkey): Call translate_keycode.
51887
51888 * kern/rescue.c (attempt_normal_mode): New function.
51889 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
51890 it failed, print a message.
51891
51892 * kern/mm.c (pupa_real_malloc): Print more information when a
51893 free magic is broken.
51894 (pupa_free): If the first free header is not free actually, set
51895 it to P.
51896
51897 * kern/main.c (pupa_load_normal_mode): Just load the module
51898 "normal".
51899 (pupa_main): Don't print the message
51900 "Entering into rescue mode..." here.
51901
51902 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
51903 Declared.
51904 (pupa_rescue_cmd_initrd): Likewise.
51905 (pupa_rescue_cmd_initrd): Likewise.
51906
51907 * include/pupa/symbol.h (FUNCTION): Specify the type.
51908 (VARIABLE): Likewise.
51909
51910 * include/pupa/err.h (pupa_err_t): Added
51911 PUPA_ERR_UNKNOWN_COMMAND.
51912
51913 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
51914 (pupa_dl_get_prefix): Likewise.
51915
51916 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
51917 Added _chain.mod and _linux.mod instead of chain.mod and
51918 linux.mod.
51919 (chain_mod_SOURCES): Renamed to ...
51920 (_chain_mod_SOURCES): ... this.
51921 (chain_mod_CFLAGS): Renamed to ...
51922 (_chain_mod_CFLAGS): ... this.
51923 (linux_mod_SOURCES): Renamed to ...
51924 (_linux_mod_SOURCES): ... this.
51925 (linux_mod_CFLAGS): Renamed to ...
51926 (_linux_mod_CFLAGS): ... this.
51927 (normal_mod_SOURCES): New variable.
51928 (normal_mod_CFLAGS): Likewise.
51929 (normal_mod_ASFLAGS): Likewise.
51930
519312003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
51932
51933 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
51934 possible.
51935
fe6b695a 51936 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 51937 recursively.
51938 (pupa_dl_unref): Unrefer depending modules recursively.
51939 Don't call pupa_dl_unload implicitly, because PUPA can crash if
51940 a module is unloaded before one depending on that module is
51941 unloaded.
51942 (pupa_dl_unload): Unload depending modules explicitly,
51943 if possible.
51944
c04da074 519452003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
51946
51947 * include/pupa/i386/pc/linux.h: New file.
51948 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 51949
c04da074 51950 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
51951 Removed.
51952 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
51953 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
51954 of PUPA_CHAINLOADER_BOOT_SECTOR.
51955
51956 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
51957 (pupa_linux_prot_size): New variable.
51958 (pupa_linux_tmp_addr): Likewise.
51959 (pupa_linux_real_addr): Likewise.
51960 (pupa_linux_boot_zimage): New function.
51961 (pupa_linux_boot_bzimage): Likewise.
51962
51963 * kern/i386/pc/init.c (struct mem_region): New structure.
51964 (MAX_REGIONS): New macro.
51965 (mem_regions): New variable.
51966 (num_regions): Likewise.
51967 (pupa_os_area_addr): Likewise.
51968 (pupa_os_area_size): Likewise.
51969 (pupa_lower_mem): Likewise.
51970 (pupa_upper_mem): Likewise.
51971 (add_mem_region): New function.
51972 (compact_mem_regions): Likewise.
51973 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
51974 the size of the conventional memory and that of so-called upper
51975 memory (before the first memory hole).
51976 Instead of adding each found region to free memory, use
51977 add_mem_region and add them after removing overlaps.
51978 Also, add only 1/4 of the upper memory to free memory. The rest
51979 is used for loading OS images. Maybe this is ad hoc, but this
51980 makes it much easier to relocate OS images when booting.
51981
51982 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
51983 (pupa_enter_rescue_mode): Don't register initrd and module.
51984
51985 * kern/mm.c: Include pupa/dl.h.
51986
51987 * kern/main.c: Include pupa/file.h and pupa/device.h.
51988
51989 * kern/loader.c (pupa_loader_load_module_func): Removed.
51990 (pupa_loader_load_module): Likewise.
51991
51992 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
51993 ``.o''.
51994
51995 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
51996 (pupa_linux_tmp_addr): Likewise.
51997 (pupa_linux_real_addr): Likewise.
51998 (pupa_linux_boot_zimage): Likewise.
51999 (pupa_linux_boot_bzimage): Likewise.
52000
52001 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
52002 (pupa_upper_mem): Likewise.
52003 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
52004 module is too dangerous.
52005
52006 * include/pupa/loader.h (pupa_os_area_addr): Declared.
52007 (pupa_os_area_size): Likewise.
52008 (pupa_loader_set): Remove the first argument. Loader doesn't
52009 manage modules or initrd any longer.
52010 (pupa_loader_load_module): Removed.
52011
52012 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
52013 (linux_mod_SOURCES): New variable.
52014 (linux_mod_CFLAGS): Likewise.
52015
a13f9237 520162003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
52017
52018 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
52019 the length of a blocklist correctly.
52020
52021 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
52022 Use ioctl only if the OS file is a block device.
52023 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
52024 not very useful for normal files.
52025
52026 * kern/main.c (pupa_set_root_dev): New function.
52027 (pupa_load_normal_mode): Likewise.
52028 (pupa_main): Call those above.
52029
52030 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
52031 pupa_uint16_t.
52032
52033 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
52034
a5ffe966 520352003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
52036
52037 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
52038 (setup): Configure the installed partition information and the
52039 dl prefix.
52040
52041 * loader/i386/pc/chainloader.c (my_mod): New variable.
52042 (pupa_chainloader_unload): New function.
52043 (pupa_rescue_cmd_chainloader): Refer itself.
52044 (PUPA_MOD_INIT): Save its own module in MY_MOD.
52045
52046 * kern/i386/pc/startup.S (install_partition): Removed.
52047 (version_string): Likewise.
52048 (config_file): Likewise.
52049 (pupa_install_dos_part): New variable.
52050 (pupa_install_bsd_part): Likewise.
52051 (pupa_prefix): Likewise.
52052 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
52053
52054 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
52055 and pupa/misc.h.
52056 (make_install_device): New function.
52057 (pupa_machine_init): Set the dl prefix.
52058
52059 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
52060 (buf): Renamed to ...
52061 (linebuf): ... this.
52062 (pupa_rescue_cmd_prefix): New function.
52063 (pupa_rescue_cmd_insmod): Likewise.
52064 (pupa_rescue_cmd_rmmod): Likewise.
52065 (pupa_rescue_cmd_lsmod): Likewise.
52066 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
52067 rmmod and lsmod.
52068
52069 * kern/mm.c (pupa_memalign): If failed even after invalidating
52070 disk caches, unload unneeded modules and retry.
52071
52072 * kern/misc.c (pupa_memmove): New function.
52073 (pupa_memcpy): Removed.
52074 (pupa_strcpy): New function.
52075 (pupa_itoa): Made static.
52076
52077 * kern/dl.c (pupa_dl_iterate): New function.
52078 (pupa_dl_ref): Likewise.
52079 (pupa_dl_unref): Likewise.
52080 (pupa_dl_unload): Return if succeeded or not.
52081 (pupa_dl_unload_unneeded): New function.
52082 (pupa_dl_unload_all): Likewise.
52083 (pupa_dl_init): Renamed to ...
52084 (pupa_dl_set_prefix): ... this.
52085 (pupa_dl_get_prefix): New function.
52086
52087 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
52088 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
52089 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
52090 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
52091 (pupa_install_dos_part): Declared.
52092 (pupa_install_bsd_part): Likewise.
52093 (pupa_prefix): Likewise.
52094 (pupa_boot_drive): Likewise.
52095
52096 * include/pupa/types.h: Fix a typo.
52097
52098 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
52099 pupa_memmove.
52100 (pupa_memmove): Declared.
52101 (pupa_strcpy): Likewise.
52102
52103 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
52104 pupa_mod_init takes one argument, its own module.
52105 (pupa_dl_unload_unneeded): Declared.
52106 (pupa_dl_unload_all): Likewise.
52107 (pupa_dl_ref): Likewise.
52108 (pupa_dl_unref): Likewise.
52109 (pupa_dl_iterate): Likewise.
52110 (pupa_dl_init): Renamed to ...
52111 (pupa_dl_set_prefix): ... this.
52112 (pupa_dl_get_prefix): Declared.
52113
52114 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 52115 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 52116 unloaded.
52117 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
52118 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
52119
52120 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
52121 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
52122
012d7999 521232003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52124
52125 * util/i386/pc/pupa-setup.c (setup): Define the internal
52126 function find_first_partition_start at the top level, because GCC
52127 3.0.x cannot compile internal functions in deeper scopes
52128 correctly.
52129 (find_root_device): Use lstat instead of stat.
52130 Don't follow symbolic links.
52131 Fix the path-constructing code.
52132
52133 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
52134 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
52135 by a BLKGETSIZE ioctl first, because block devices don't fill
52136 the member st_mode of the structure stat on Linux.
52137 [__linux__] (linux_find_partition): Use a temporary buffer
52138 REAL_DEV for the working space. Copy it to DEV before returning.
52139 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
52140 buffer cache consistent.
52141 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
52142 strncmp. The previous value was merely wrong.
52143 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
52144
52145 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
52146 FAT size is 12. The previous value was merely wrong.
52147
52148 * kern/main.c (pupa_main): Don't split the starting message from
52149 newlines.
52150
52151 * kern/term.c (pupa_putchar): Put CR after LF instead of before
52152 LF, because BIOS goes crazy about character attributes in this
52153 case.
52154
1cc73a62 521552003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
52156
52157 * include/i386/pc/util/biosdisk.h: New file.
52158 * util/i386/pc/biosdisk.c: Likewise.
52159 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 52160
1cc73a62 52161 * Makefile.in (INCLUDE_DISTFILES): Added
52162 include/pupa/i386/pc/util/biosdisk.h.
52163 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
52164 directory util/i386/pc.
52165 (install-local): Added a rule for sbin_UTILITIES.
52166 (uninstall): Likewise.
52167
52168 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
52169
52170 * util/misc.c (xrealloc): New function.
52171 (pupa_malloc): Likewise.
52172 (pupa_free): Likewise.
52173 (pupa_realloc): Likewise.
52174 (pupa_stop): Likewise.
52175 (pupa_putchar): Likewise.
52176
52177 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
52178
52179 * include/pupa/util/misc.h (xrealloc): Declared.
52180
52181 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
52182 macro.
52183 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
52184 (PUPA_BOOT_MACHINE_BPB_END): ... this.
52185
52186 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
52187 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52188
52189 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
52190 way should be implemented.
52191 [PUPA_UTIL] (pupa_fat_fini): Likewise.
52192
52193 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
52194 the size of NAME for safety.
52195 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
52196 0x88.
52197
52198 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
52199 (pupa_setup_SOURCES): Likewise.
52200
52201 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
52202
08b70fe8 522032002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52204
52205 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
52206 bunch of pushl's from pusha, because this destroys the return
52207 value.
52208
62ddcc8f 522092002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
52210
52211 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
52212 This means that any missing prototypes could be fatal. Also, you
52213 must take care when writing assembly code. See the comments at
52214 the beginning of startup.S, for more details.
f19dbdb7 52215
62ddcc8f 52216 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
52217 compilation mechanism.
52218 (pupa_chainloader_real_boot): Likewise.
52219 (pupa_biosdisk_rw_int13_extensions): Likewise.
52220 (pupa_biosdisk_rw_standard): Likewise.
52221 (pupa_biosdisk_check_int13_extensions): Likewise.
52222 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
52223 (pupa_biosdisk_get_diskinfo_standard): Likewise.
52224 (pupa_get_memsize): Likewise.
52225 (pupa_get_mmap_entry): Likewise.
52226 (pupa_console_putchar): Likewise.
52227 (pupa_console_setcursor): Likewise.
52228 (pupa_getrtsecs): Use pushl instead of push.
52229
52230 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
52231 memory instead of the stack for a mmap entry, because some
52232 BIOSes may ignore the maximum size and overflow.
52233
52234 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
52235
52236 * genmk.rb (PModule#rule): Compile automatically generated
52237 sources with module-specific CFLAGS as well as other sources.
52238
9962ed99 522392002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52240
52241 * configure.ac: Check ld.
52242 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
52243 respectively, before checking endianness and sizes.
52244
52245 * Makefile.in (LD): New variable.
f19dbdb7 52246
abdfc3c5 522472002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52248
52249 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
52250
6a161fa9 522512002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
52252
52253 * Changelog: New file.
52254