]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* docs/grub.texi (Support automatic decompression): Update with xz
[grub2.git] / ChangeLog
CommitLineData
64d1f041
SJ
12011-01-07 Szymon Janc <szymon@janc.net.pl>
2
3 * docs/grub.texi (Support automatic decompression): Update with xz
4 decompression support.
5
25953e10
SJ
62011-01-07 Szymon Janc <szymon@janc.net.pl>
7
8 Improve loaders' kernel command line handling.
9
10 * grub-core/lib/cmdline.c: New file.
11 * include/grub/lib/cmdline.h: Likewise.
12 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
13 grub_create_loader_cmdline to create kernel command line.
14 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
16 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
17 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
18 (linux): Add lib/cmdline.c on common.
19
e72d259f
VS
202011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
21
22 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
23 inopos might be unaligned.
24
c0cf26da
VS
252011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
26
27 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
28 endian transformations.
29 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
30 Based on report by: Doug Nazar.
31
0ca09e6c
DN
322011-01-07 Doug Nazar <nazard.michi@gmail.com>
33
34 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
35 array->members[i].start_sector.
36 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
37
014b6806
VS
382011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
39
40 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
41 Reported and tested by: Grégoire Sutre.
42
415502c2
CW
432011-01-06 Colin Watson <cjwatson@ubuntu.com>
44
45 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
46 avoid causing test failures by clearing the screen.
47
71b6a2b7
CW
482011-01-06 Colin Watson <cjwatson@ubuntu.com>
49
50 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
51 Fix prefix check to handle the case where dir ends with a slash
52 (most significantly, "/" itself).
53 Reported by: Michael Vogt.
54
b3f8d28a
VS
552011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
56
57 Run terminfo_cls on initing terminfo output to clear the screen and
58 move the cursor to (0,0).
59
60 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
61 Call grub_terminfo_output_init.
62 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
63 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
64 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
65
4c3e4f37
VS
662011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
69 only when needed.
70
488f71f1
VS
712011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
72
73 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
74 CTRL.
75
18a38098
VS
762011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
77
78 The E820 type 5 is BADRAM, not EXEC_CODE.
79
80 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
81 (GRUB_E820_BADRAM): New define.
82 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
83 into reserved. Propagate BADRAM.
84 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
85 (GRUB_E820_BADRAM): New define.
86
9eae2084
VS
872011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
88
89 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
90 Ignore the memory post-4G.
91 (grub_relocator_firmware_alloc_region): Additional debug statement.
92
ebc71d28
VS
932011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
94
95 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
96 names.
97 Reported by: David Pravec.
98
446fa400
VS
992011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
100
101 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
102 BIOSes.
103
a0159f37
VS
1042011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
105
106 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
107 Prevent overflow.
108 (grub_reed_solomon_recover): Likewise.
109
e5146ca1
VS
1102011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
111
112 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
113
1142011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
115
116 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
117 variable.
118
5b1bdf12
CW
1192011-01-04 Colin Watson <cjwatson@ubuntu.com>
120
121 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
122 descriptions of extract_legacy_entries_source and
123 extract_legacy_entries_configfile.
124 Reported by: Seung Soo, Ha.
125
99d925aa
CW
1262011-01-03 Colin Watson <cjwatson@ubuntu.com>
127
128 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
129 on devices that do not implement function 0.
130
4af0504b
DV
1312011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
132
133 * grub-core/fs/hfsplus.c: Make parent unsigned.
134 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
135 overflows.
136 (grub_hfsplus_cmp_extkey): Likewise
137
469ee10a
VS
1382011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * util/grub-install.in: Correctly use bootloader_id and not
141 GRUB_DISTRIBUTOR on efibootmgr line.
142
323a8e9c
VS
1432011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
146
1b394975
IC
1472010-12-31 Ian Campbell <ijc@hellion.org.uk>
148
149 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
150 Xen and reorder menu item wording to make it clearer that this entry
151 will launch Xen. Print separate messages when loading Xen and
152 Linux.
153
275bff5f
VS
1542010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
155
156 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
157 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
158 loop in case of incorrect amiga partmap.
159
307806cb
VS
1602010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
161
162 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
163 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
164 Reported by:EHeM.
165
b12b923e
VS
1662010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
167
168 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
169 spurious warning.
170 Reported by: crocket
171
14b48a19
VS
1722010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
173
174 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
175 Preload EFIemu.
176 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
177
693db2df
VS
1782010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
179
180 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
181 is loaded
182 (grub_cmd_xnu_kextdir): Likewise.
183 (grub_cmd_xnu_splash): Likewise.
184
c7638645
VS
1852010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
186
187 Avoid using Reed-Solomon with 0 redundancy.
188
189 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
190 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
191 or 0 redundancy.
192 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
193 (grub_reed_solomon_recover): Likewise.
194
25dd4780
VS
1952010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
196
197 Don't use disk subsystem in freebsd_boot.
198
199 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
200 (freebsd_biosdev): Likewise.
201 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
202 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
203
0b2db943
VS
2042010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
205
206 Handling of files of unknown size is currently limited. They can't be
207 used e.g. for initrd or modules. Moreover gzip handling of not
208 easily seekable files is buggy. Disable unknown file size for now. May
209 be inefficient but works.
210
211 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
212 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
213
5c408d0f
MP
2142010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
215
216 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
217 floppy probe.
218
190a011a
JD
2192010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
220
221 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
222
022d01b8
SL
2232010-12-25 Shea Levy <shlevy>
224
225 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
226
c4855fdc
VS
2272010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
228
229 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
230 Windows Server 2008.
231 Reported by: Devin Giddings.
232
0354b867
VS
2332010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
234
235 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
236 writing an error message because of async power management.
237 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
238 (grub_reboot): Likewise.
239
ab66c69f
JU
2402010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
241
242 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
243 keep unit tests from failing when they shouldn't.
244
1426ef35
CW
2452010-12-21 Colin Watson <cjwatson@ubuntu.com>
246
247 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
248 previous patch increased the size of the RS code by 20 bytes (at
249 least with gcc-4.4), so increase this by 20 bytes to match.
250 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
251
20641b6b
CW
2522010-12-21 Colin Watson <cjwatson@ubuntu.com>
253
254 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
255 scratch area. Make sure to initialise chosen in standalone mode as
256 well as non-standalone.
257 Reported by: Robert Hooker and Andy Whitcroft.
258 Tested by: Andy Whitcroft.
259
d060ad60
CW
2602010-12-21 Colin Watson <cjwatson@ubuntu.com>
261
262 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
263 constructing a new unescaped string and passing it to grub_xputs in
264 one go, rather than passing characters to grub_printf one at a time.
265
b889cfad
CW
2662010-12-21 Colin Watson <cjwatson@ubuntu.com>
267
268 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
269 initialising utf16.
270
4e01b6c8
CW
2712010-12-21 Colin Watson <cjwatson@ubuntu.com>
272
273 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
274 comment. Add an extra layer of quotation, requiring the output of
275 this function to be used in a printf format string.
276 (gettext_printf): New function.
277 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
278 Extract translatable strings from here-documents and use a temporary
279 variable instead, so that xgettext can find them.
280 * util/grub.d/10_kfreebsd.in: Likewise.
281 * util/grub.d/10_linux.in: Likewise.
282 * util/grub.d/20_linux_xen.in: Likewise.
283
284 * po/grub.d.sed: New file.
285 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
286 arguments. Set c-format flags on all strings extracted from
287 util/grub.d/ (xgettext refuses to include these itself for strings
288 it extracted from a shell file, but these really are c-format).
289
5318fe98
VS
2902010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
291
292 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
293 Avoid next pointing to nowhere.
294
6c85b743
VS
2952010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
296
297 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
298 rather than assuming than rootblock is exactly in the middle.
299 (grub_affs_label): Likewise.
300
a2a08a35
VS
3012010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
302
303 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
304 reserved_first_sector to 0.
305 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
306 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
307 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
308
7059d1ec
VS
3092010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
310
311 Fix handling of UTF-16 UDF labels.
312
313 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
314 (read_string): .. here.
315 (grub_udf_label): Use read_string.
316
30aff4cb
BC
3172010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
318
319 * grub-core/normal/menu_entry.c (run): Execute commands from menu
320 editor under argument scope.
321 Reported by: Jordan Uggla
322
5cf86f4b
VS
3232010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
324
325 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
326
32570200
CW
3272010-12-18 Colin Watson <cjwatson@ubuntu.com>
328
329 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
330 line, and other keys scroll an entire page (previous handling was
331 for \r and \n to scroll a page and other keys to scroll two lines).
332
e1dffcf2
VS
3332010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
334
335 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
336 Set ptrdest to correct get_physical_target_address rather than
337 incorrect get_virtual_current_address.
338
b04298cf 3392010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
340
341 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
342 correct cat to grub_uint8_t * rather than grub_uint32_t *.
343
5367ecd3
CW
3442010-12-10 Colin Watson <cjwatson@ubuntu.com>
345
346 * .bzrignore: Ignore grub-core/rs_decoder.S.
347
1fb430f8
CW
3482010-12-10 Colin Watson <cjwatson@ubuntu.com>
349
350 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
351 .mo/.mo.gz opening sequence to ...
352 (grub_mofile_open_lang): ... here.
353 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
354 * util/grub.d/00_header.in (grub_lang): Include country part of
355 locale.
356 Reported by: Mario Limonciello.
357
a94a6671
RM
3582010-12-09 Robert Millan <rmh@gnu.org>
359
360 * NEWS: Document addition of ZFS support.
361
24b7938b
CW
3622010-12-04 Colin Watson <cjwatson@ubuntu.com>
363
364 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
365 rather than `/ 2', as the latter requires -Wa,--divide which would
366 require bumping our minimum binutils version.
367
bddc3ef6
BC
3682010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
369
370 * util/grub-script-check.c (main): Print script line number on
371 error.
372
bf78d5b2
RM
3732010-12-01 Robert Millan <rmh@gnu.org>
374
375 * grub-core/fs/zfs/zfs.c: New file.
376 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
377 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
378 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
379 * grub-core/fs/zfs/zfsinfo.c: Likewise.
380
381 * include/grub/zfs/dmu.h: Likewise.
382 * include/grub/zfs/dmu_objset.h: Likewise.
383 * include/grub/zfs/dnode.h: Likewise.
384 * include/grub/zfs/dsl_dataset.h: Likewise.
385 * include/grub/zfs/dsl_dir.h: Likewise.
386 * include/grub/zfs/sa_impl.h: Likewise.
387 * include/grub/zfs/spa.h: Likewise.
388 * include/grub/zfs/uberblock_impl.h: Likewise.
389 * include/grub/zfs/vdev_impl.h: Likewise.
390 * include/grub/zfs/zap_impl.h: Likewise.
391 * include/grub/zfs/zap_leaf.h: Likewise.
392 * include/grub/zfs/zfs.h: Likewise.
393 * include/grub/zfs/zfs_acl.h: Likewise.
394 * include/grub/zfs/zfs_znode.h: Likewise.
395 * include/grub/zfs/zil.h: Likewise.
396 * include/grub/zfs/zio.h: Likewise.
397 * include/grub/zfs/zio_checksum.h: Likewise.
398
399 * Makefile.util.def: Build ZFS into libgrubmods.
400 * grub-core/Makefile.core.def: Build zfs.mod.
401
3f0f3831
SJ
4022010-11-30 Szymon Janc <szymon@janc.net.pl>
403
404 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
405 variable.
406 * grub-core/commands/wildcard.c (match_files): Likewise.
407
3a4253b2
RM
4082010-11-30 Robert Millan <rmh@gnu.org>
409
410 * grub-core/loader/i386/bsd.c
411 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
412 whether kernel is loaded using grub_loader_is_loaded(), rather
413 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
414 certain error conditions.
415
8c317b27
RM
4162010-11-30 Robert Millan <rmh@gnu.org>
417
c5c9cd3e
RM
418 * grub-core/commands/echo.c: Include `<grub/term.h>'.
419 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 420
49d3ab46
VS
4212010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
422
423 Avoid using tricks for initialising endian variables.
424
425 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
426 Make const.
427 (GRUB_MOD_INIT): Don't byte-swap.
428 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
429 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
430 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
431 (grub_swap_bytes32_compile_time): Likewise.
432 (grub_cpu_to_le32_compile_time): Likewise.
433 (grub_cpu_to_le16_compile_time): Likewise.
434
f420a804
VS
4352010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
436
437 * util/grub-setup.c (setup): Stop recommending --force. People who
438 understand the dangers of blocklists are able to find this option
439 anyway and the ones who don't shouldn't use it anyway.
440
4e7db17b
RM
4412010-11-26 Robert Millan <rmh@gnu.org>
442
443 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
444 Update all users.
445
9be57a0d
CW
4462010-11-26 Colin Watson <cjwatson@ubuntu.com>
447
448 Fix LVM-on-RAID probing.
449
450 * util/grub-probe.c (probe): Remember which disk was detected as
451 RAID (perhaps an LVM physical volume). Use that disk's raidname
452 rather than that of the top-level disk.
453
2c7859b3 4542010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 455
d7647bb6
BC
456 Fix cmdline argument quotes for setparams command of menuentry
457 definitions.
7e623b0d
BC
458
459 * grub-core/commands/menuentry.c (setparams_prefix): Use single
460 quotes for arguments.
f866fe80 461 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 462 grub_strchrsub function instead.
f866fe80 463
7955bea0 464 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 465
74f72a64
CW
4662010-11-24 Colin Watson <cjwatson@ubuntu.com>
467
468 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
469 effort by skipping "." and ".." entries up-front.
470 Suggested by: Michael Lazarev.
471
5a407278
CW
4722010-11-24 Colin Watson <cjwatson@ubuntu.com>
473
474 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
475 ldflags to ldadd, to fix link line ordering.
476 (none_decompress): Likewise.
477
3030d8ec
CW
4782010-11-24 Colin Watson <cjwatson@ubuntu.com>
479
480 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
481 platforms.
482 (grub-emu-lite): Remove kern/emu/cache.S.
483
b7fbac12
CW
4842010-11-23 Colin Watson <cjwatson@ubuntu.com>
485
486 * util/deviceiter.c (compare_devices): If the by-id link for a
487 device couldn't be resolved, fall back to sorting by the by-id link
488 rather than segfaulting.
489 Reported and tested by: Daniel Mierswa.
490
5225f328
CW
4912010-11-23 Colin Watson <cjwatson@ubuntu.com>
492
493 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
494 ldflags, to fix link line ordering.
495
038b3ce8
CW
4962010-11-23 Colin Watson <cjwatson@ubuntu.com>
497
498 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
499 linkers are picky about this.
500
bf16e98e
CW
5012010-11-23 Colin Watson <cjwatson@ubuntu.com>
502
503 * grub-core/Makefile.am (command.lst): Adjust sed expression
504 ordering so that extended and priority commands aren't treated as
505 ordinary commands.
506
7242bab6
CW
5072010-11-23 Colin Watson <cjwatson@ubuntu.com>
508
509 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
510 Remove byte-swapping function calls, which are not valid in
511 structure initialisers.
512 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
513 non-const.
514 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
515 grub_gpt_partition_type_bios_boot.
516
14e8b279
CW
5172010-11-22 Colin Watson <cjwatson@ubuntu.com>
518
519 Fix test program build on GNU/kFreeBSD.
520
521 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
522 $(LIBNVPAIR)' library dependencies.
523
e6f63338 5242010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
525
526 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
527
cf8ffc38
CW
5282010-11-22 Colin Watson <cjwatson@ubuntu.com>
529
530 * util/grub-install.in: Remove excessive quoting that broke
531 installations to RAID devices.
532
7f8b0fd7
VS
5332010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
534
535 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
536 bootloader version instead of 0.
537
dfd240b1
VS
5382010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
539
540 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
541 warning.
542
7b61e609
VS
5432010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
544
545 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
546 retrieve the metadat sector if size isn't known.
547 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
548
9dfe92d0
RM
5492010-11-18 Robert Millan <rmh@gnu.org>
550
551 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
552 with grub_memcmp().
553
41cc919e
VS
5542010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
555
556 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
557 arrow.
558 Reported by: Jordan Uggla.
559
1afcc914
VS
5602010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
561
562 Make better UTF compliant.
563
564 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
565 sequences as incorrect.
566 (grub_is_valid_utf8): Likewise.
567 (grub_utf8_to_ucs4): Likewise.
568 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
569 (grub_ucs4_to_utf8_alloc): Likewise.
570 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
571
f1808884
VS
5722010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
573
574 Make legacy_source behave like source.
575
576 * grub-core/commands/legacycfg.c (legacy_file): Don't call
577 grub_show_menu.
578 (grub_cmd_legacy_source): Call grub_show_menu if needed.
579
24ec575b
CW
5802010-11-16 Colin Watson <cjwatson@debian.org>
581
582 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
583 (-Wunused implies -Wunused-parameter, but not vice versa).
584
72b7c7aa
CW
5852010-11-16 Colin Watson <cjwatson@ubuntu.com>
586
587 * configure.ac: Make error messages less confusing by testing for
588 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
589 accepted, but produces a diagnostic if something else is wrong).
590
e98937aa
VS
5912010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
592
593 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
594 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
595 (now unused).
596 (grub_keyboard_controller_init)
597 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
598 read the initial state since controller isn't inited yet.
599
f6bbabc3
VS
6002010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
601
602 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
603 allocate_regbeg may need to create new chunk header.
604
22e7dbb2
VS
6052010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
606
607 Fix quoting in legacy parser.
608
609 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
610 single quotes.
611 (grub_legacy_parse): Likewise.
612 Reported by: Jordan Uggla.
613 Tested by: Jordan Uggla.
614
03f80960
VS
6152010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
616
617 Don't add -lgcc on i386 and x86_64.
618
619 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
620 * conf/Makefile.common (LDADD_KERNEL): Likewise.
621 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
622
779dc15b
VS
6232010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * configure.ac: Add -Wno-trampolines when supported.
626
d20a3b37
MV
6272010-11-14 Modestas Vainius <modax@debian.org>
628
629 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
630 fakeraid.
631
e5360933
GC
6322010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
633
634 Add generic logical block size support for UDF.
635
636 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
637 (GRUB_UDF_BLKSZ): Removed.
638 (struct grub_udf_data): New field "lbshift" to hold the logical block
639 size of the file system in log2 format. All users updated.
640 (sblocklist): Change type to unsigned.
641 (grub_udf_mount): Change type of "sblklist" to unsigned.
642 Move AVDP search before VRS recognition, because the latter requires
643 knowledge of the logical block size, which is detected during the
644 former.
645 Detect and validate logical block size during AVDP search, adding
646 support for block sizes 512, 1024 and 4096.
647 Make VRS recognition independent of block size.
648
cb0229c5
GC
6492010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
650
651 Properly handle deleted files on UDF.
652
653 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
654 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
655 set.
656
406858a8
GC
6572010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
658
659 Support reading files larger than 2 GiB.
660
661 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
662 "offset" to grub_off_t.
663 (grub_udf_read_file): Likewise for parameter "pos".
664
130da6a7
VS
6652010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
666
667 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
668 unavailable.
669 (Simple configuration): Refer to Changes from GRUB Legacy about
670 save_env availability.
671
65e93f6b
VS
6722010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * util/grub-install.in: Ignore empty partition table detection
675 instead of trying to include part_ module.
676
1fd08bf1
VS
6772010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
678
679 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
680 LVM on RAID support.
681
de1a024f
VS
6822010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
683
684 Properly define WORDS_BIGENDIAN in wrapped environments.
685
686 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
687 definition.
688 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
689
690 Reported by: Manoel Rebelo Abranches.
691 Tested by: Manoel Rebelo Abranches.
692
bc5dd0b9
VS
6932010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * util/grub-mkconfig.in: Fix quoting.
696
58c184be
VS
6972010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
698
699 Support big ext2 files.
700
701 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
702 (grub_ext2_read_block): Support triple indirect blocks.
703 (grub_ext2_read_file): Use 64-bit types and read size_high.
704 (grub_ext2_open): Read size_high.
705 Reported by: Ximin Luo.
706 Tested by: Manoel Rebelo Abranches.
707
5f0c02b3
VS
7082010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
709
710 * util/grub-install.in: Handle filenames containing spaces.
711 Reported by: Jordan Uggla.
712 Tested by: Jordan Uggla.
713
4417aae6
VS
7142010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
715
716 * util/grub-mkconfig.in (grub_script_check): New variable.
717 Use grub_script_check instead of grub-script-check.
718 Reported by: Barry Jackson.
719
7625a68e
VS
7202010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
721
722 * docs/grub.texi (menu): Correct the order.
723 Reported by: D. Hugh Redelmeier.
724
10001ac5
VS
7252010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
726
727 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
728 jump.
729
9c4cf53b
MRA
7302010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
731
10001ac5
VS
732 * include/grub/elfload.h (grub_elf32_size): New parameter.
733 All users updated.
9c4cf53b
MRA
734 Return maximum segments alignment.
735 (grub_elf64_size): Likewise.
736 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
737 Return maximum segments alignment.
738 (grub_elf64_size): Likewise.
739 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
740 (grub_linux_claimmap_iterate): New function. Uses the
741 "available" property in the "memory" node for memory allocation
742 for kernel in the PowerPC loader.
9c4cf53b
MRA
743 (grub_linux_load32): Correctly find linux entry point offset.
744 (grub_linux_load64): Likewise.
745
d2bf06bf
RM
7462010-11-07 Robert Millan <rmh@gnu.org>
747
748 On mips-yeeloong, build with -march=loongson2f when this flag is
749 available (GCC >= 4.4).
750 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
751 `-march=mips3'.
752 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
753 or otherwise add -march=mips3.
754
898c99a2
BC
7552010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
756
87220a68
BC
757 Suppress shell expansion on echo '*' and echo "*" like cases.
758 Reported by: Jordan Uggla.
898c99a2
BC
759
760 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
761 string arguments before shell expansion.
762 * tests/grub_cmd_echo.in: New testcases.
763
4f9b406a
RM
7642010-11-07 Robert Millan <rmh@gnu.org>
765
766 * conf/mips-qemu-mips.rmk: Remove stale file from previous
767 transition.
768
80c6d25e
VS
7692010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
770
771 * grub-core/kern/emu/hostdisk.c
772 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
773
4a1a0153
VS
7742010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
775
776 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
777 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
778 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
779
34706ddc
VS
7802010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
781
782 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
783
6972dea9
VS
7842010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
785
786 * util/grub-install.in: Replace useless recomendation to pass
787 --modules with a recomendation to report a bug.
788
9c693bd6
VS
7892010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
790
791 Properly register serial terminfo.
792 Reported by: Jordan Uggla
793
794 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
795 const.
796 (grub_serial_terminfo_output_template): Likewise.
797 (grub_cmd_serial): Register "serial" with terminfo.
798 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
799 grub_serial_terminfo_output.
800
6c9e4c0c
RM
8012010-11-05 Robert Millan <rmh@gnu.org>
802
803 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
804 needed).
805
b9b3839f
RM
8062010-11-05 Robert Millan <rmh@gnu.org>
807
808 On Yeeloong, pass machine type information to Linux.
809
810 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
811 (LOONGSON_MACHTYPE): New macro, set to
812 "machtype=lemote-yeeloong-2f-8.9inches".
813 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
814 additional argument to Linux.
815
1a3aaff4
RM
8162010-11-04 Robert Millan <rmh@gnu.org>
817
818 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
819 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
820 (its SATA disks are detected as slaveless IDE master drives on
821 kFreeBSD).
822 Reported by Carsten Aulbert.
823
a75f4f62
CW
8242010-11-02 Colin Watson <cjwatson@ubuntu.com>
825
826 * util/bin2h.c (main): Fix spelling error in generated output.
827
33b4b0c6
GS
8282010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
829
830 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
831
2b36fbf4
VS
8322010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
833
834 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
835 vga= option is supplied.
836
74aaf558
VS
8372010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
838
839 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
840 * util/grub.d/10_kfreebsd.in: Likewise.
841 * util/grub.d/10_linux.in: Likewise.
842 * util/grub.d/20_linux_xen.in: Likewise.
843
6428dec3
VS
8442010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
845
846 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
847 argument as an argument to no-argument option.
848
f8729d98
VS
8492010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * util/grub.d/10_linux.in: Add missing load_video with explicit
852 GRUB_GFXPAYLOAD_LINUX.
853
89d68fa6
VS
8542010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
855
856 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
857
3a1197cd
VS
8582010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
859
860 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
861 elements with invlid index.
862 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
863 * grub-core/disk/raid.c (insert_array): Automatically reallocate
864 members.
865 * include/grub/raid.h (grub_raid_member): New struct.
866 (grub_raid_array): Transform devices and start_sector into usage of
867 grub_raid_member. All users updated
868 (allocated_devs): New member.
869
71574288
VS
8702010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
871
872 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
873 is modified
874
8d40ec65
BC
8752010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
876
877 NetBSD build fix for getline function conflict from gnulib.
878
879 * Makefile.util.def (libgrubkern.a): New library for grub kernel
880 components that depend on gnulib headers.
881 (libgrubmods.a): Renamed from earlier libgrub.a.
882 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
883
95b9257e
VS
8842010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
885
886 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
887 install rather than creating a broken install.
888
26c53dc6
VS
8892010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
890
891 * util/grub-setup.c (argp): Remove misleading example of installing to
892 a partition.
893
4171b3c5
VS
8942010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
895
896 * util/grub-setup.c (setup): Clarify the error message.
897
18568d18
VS
8982010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
899
900 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
901
4f6a2e21
VS
9022010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
903
904 * grub-core/kern/emu/misc.c
905 (grub_make_system_path_relative_to_its_root)
906 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
907
9082010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
909
910 * grub-core/kern/emu/misc.c
911 (grub_make_system_path_relative_to_its_root): Revert r2882.
912
e138c458
VS
9132010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
916 useless field head. All users updated.
917 (free_subchunk): Correct handling of IN_REGION subchunk.
918
0cbcdf0e
CW
9192010-10-22 Colin Watson <cjwatson@ubuntu.com>
920
921 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
922 (Supported kernels): Likewise.
923
b65ea155
GS
9242010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
925
926 Make mktemp invocations portable.
927
928 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
929 exit if mktemp fails.
930 * tests/grub_script_blockarg.in: Likewise.
931 * tests/partmap_test.in: Likewise.
932 * tests/util/grub-shell-tester.in: Likewise.
933 * tests/util/grub-shell.in: Likewise.
934 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
935 * Makefile.am: Likewise, and chain shell commands with `&&'
936 instead of ';'.
937 * util/grub-mkrescue.in: Use the same explicit template as above, and
938 exit if mktemp fails.
939
05f43cdd
BC
9402010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
941
942 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
943 Linux kernel, reported by Dennis Schridde.
944
800e6a9b
SJ
9452010-10-17 Szymon Janc <szymon@janc.net.pl>
946
947 * grub-core/normal/auth.c (grub_auth_check_authentication):
948 Set-but-not-used variable removed.
949
d82df574
VS
9502010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * docs/grub.texi (GNU/Linux): Document APM unavailability with
953 32-bit linux protocol.
954
7bced458
VS
9552010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
958 cursor shape for sanity.
959
5b027690
VS
9602010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
961
962 * docs/grub.texi (Installation): Document buggy BIOS install.
963
ba5f65cf
VS
9642010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
965
966 * docs/grub.texi (Installation): Indent.
967
fdf2ec9c
VS
9682010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
969
970 * util/grub-setup.c (setup): New parameter allow_floppy.
971 (arguments): New member allow_floppy.
972 (argp_parser): Handle --allow-floppy.
973 (main): Pass allow_floppy.
974 * util/grub-install.in: New option --allow-floppy passed though to
975 grub-setup.
976
861dfd4c
VS
9772010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
978
979 * util/grub-install.in: Handle partitionless disks.
980
f77a8c24
VS
9812010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
982
983 * util/grub-setup.c (setup): Don't clean blocklists before readability
984 verfification.
985
27d9ee32
VS
9862010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
987
988 * docs/grub.texi (Installation): Document embedding zone. Remove
989 obsolete grub-install example.
990
6bdda8f8
SJ
9912010-10-16 Szymon Janc <szymon@janc.net.pl>
992
993 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
994 Set-but-not-used variable ifdef'ed.
995 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
996 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
997 variable removed.
998 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
999 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
1000 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
1001 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
1002 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
1003 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
1004 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
1005 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
1006 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1007 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
1008 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
1009 Likewise.
1010
e19b016b
VS
10112010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1012
1013 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
1014 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
1015 enum value.
1016
6c8d3002
VS
10172010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1018
1019 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
1020 synonym to _S5_. Needed for some DSDTs.
1021
c32b51c9
VS
10222010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1023
1024 Userspace ACPI parser debugging.
1025
1026 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
1027 headers and add relevant defines. Don't include standard headers.
1028 (main) [GRUB_DSDT_TEST]: New function.
1029 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
1030 Don't declare functions.
1031
fbfbeb39
VS
10322010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 Remove dead grub_efi_mm_fini.
1035
1036 * grub-core/kern/efi/mm.c (allocated_page): Removed.
1037 (ALLOCATED_PAGES_SIZE): Likewise.
1038 (MAX_ALLOCATED_PAGES): Likewise.
1039 (allocated_pages): Likewise.
1040 (grub_efi_allocate_pages): Don't record allocated pages.
1041 (grub_efi_free_pages): Likewise.
1042 (grub_efi_mm_init): Likewise.
1043 (grub_efi_mm_fini): Removed.
1044
65f7ed7c
VS
10452010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1046
1047 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
1048 (grub_efi_mm_init): Take into account the memory map size increase.
1049
24977b44
VS
10502010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1051
1052 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
1053 (serial_hw_put): Wait based on real time rather than port reads. Don't
1054 roken ports.
1055 * include/grub/serial.h (grub_serial_port): New field broken.
1056
1eb01cd2
RM
10572010-10-16 Robert Millan <rmh@gnu.org>
1058
1059 * grub-core/kern/emu/misc.c
1060 (grub_make_system_path_relative_to_its_root): Fix premature return
1061 when processing non-root ZFS filesystems.
5f8b440b 1062 Reported by Sergio Talens-Oliag.
1eb01cd2 1063
2d5fed60
RM
10642010-10-15 Robert Millan <rmh@gnu.org>
1065
1066 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
1067 guarantee compressed ones are processed first.
1068
d0f4c1ea
VS
10692010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1070
1071 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
1072 grub_efiemu_autocore.
1073
d87c681f
VS
10742010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
1077 rather than 0x1b.
1078 (grub_console_getkey): Use correct jae opcode rather than ja.
1079
219b3564
RM
10802010-10-12 Robert Millan <rmh@gnu.org>
1081
1082 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
1083 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
1084 variable. All references updated.
1085
1086 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
1087
20c6bb7e
VS
10882010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1089
1090 Correctly distinguish mdraid flavours.
1091
1092 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
1093 (insert_array): New argument raid.
1094 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
1095 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
1096 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
1097
74baff84
VS
10982010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1099
1100 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
1101 handling of special keys.
1102
3ef068df 11032010-10-02 Aleš Nesrsta <starous@volny.cz>
1104
c7980ad9
VS
1105 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
1106 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 1107
a9455194 11082010-10-02 Aleš Nesrsta <starous@volny.cz>
1109
c7980ad9
VS
1110 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
1111 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
1112 users updated.
a9455194 1113 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 1114 Use right endpoint when querying descriptor.
a9455194 1115
441cfe65
VS
11162010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
1117
1118 Clear out 0x80 color bit on EFI.
1119 Tested by: decoder
1120 Reported by: decoder and meta tech.
1121
1122 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
1123 (grub_console_setcolorstate): Clear out 0x80 bit.
1124 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
1125 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
1126 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
1127
bf26bcc4
VS
11282010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
1129
1130 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
1131 Set to "auto".
1132
6e3c515d
VS
11332010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1134
1135 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
1136 mo_file after freeing.
1137
e6d983ba
VS
11382010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1139
1140 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
1141
74ccb5b5
VS
11422010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
1145 flags.
1146
17821956
VS
11472010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1148
1149 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
1150 usage.
1151
ee74fa48
VS
11522010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1153
1154 Put terminfo into core on ieee1275 and yeeloong (needed for console).
1155
1156 * gentpl.py: New groups terminfoinkernel and terminfomodule.
1157 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
1158 and terminfo.h when needed.
1159 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
1160 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
1161 (terminfo): Enable only on terminfokernel.
1162 (extcmd): Likewise.
1163 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
1164 * include/grub/lib/arg.h: Likewise.
1165 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
1166 incorrect usage of ->.
1167
aa438e68
VS
11682010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1169
1170 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
1171 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
1172
57994012
VS
11732010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1174
1175 Fix coreboot compilation.
1176
1177 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1178 Take VBE info into account even if only text is supported.
1179 (fill_vbe_info): Take into account the case when only VGA text
1180 is supported.
1181 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
1182 on coreboot, multiboot and qemu.
1183
2a406611
VS
11842010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1185
1186 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
1187 debug messages.
1188 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
1189
d33613fc
VS
11902010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1191
1192 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
1193 parameters.
1194
44a1b432
VS
11952010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1196
1197 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
1198 if they were BSD-style.
1199
edde54e6
VS
12002010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1201
1202 * grub-core/boot/i386/pc/lnxboot.S: Replace
1203 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
1204 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
1205
b65830fa
VS
12062010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1207
1208 Write embedding zone using Reed-Solomon.
1209
1210 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
1211 * grub-core/Makefile.am (rs_decoder.S): New target.
1212 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
1213 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
1214 (multiboot): Move to RS part.
1215 (post_reed_solomon): New label.
1216 (grub_boot_drive): Move to non-RS part since it's modified in memory
1217 on boot.
1218 Include rs_decoder.S.
1219 * grub-core/lib/reed_solomon.c: New file.
1220 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
1221 New definition.
1222 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
1223 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
1224 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
1225 * include/grub/partition.h (grub_partition_map): Change prototype of
1226 embed to allow returning additional sectors.
1227 * include/grub/reed_solomon.h: New file.
1228 * util/grub-setup.c (setup): Handle Reed-Solomon.
1229
0b4b227f
CW
12302010-09-28 Colin Watson <cjwatson@ubuntu.com>
1231
1232 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1233 i386 and x86-64 definedness tests.
1234
f772623b
YB
12352010-09-27 Yves Blusseau <blusseau@zetam.org>
1236
1237 Fix generation of kernel_syms.lst
1238
1239 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
1240 ASM_PREFIX
1241
8e57a6ca
RM
12422010-09-26 Robert Millan <rmh@gnu.org>
1243
1244 Support degraded ZFS arrays in "grub-probe -t device" resolution.
1245
1246 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
1247 the pool is an array of devices, iterate through it and return the
1248 first device that passes a stat() test (instead of blindly returning
1249 the first one).
1250
f9130836
RM
12512010-09-26 Robert Millan <rmh@gnu.org>
1252
1253 Build fixes for GNU/kFreeBSD.
1254
1255 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
1256 to programs that require ZFS conversion.
1257 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
1258 kernels that don't have FLOPPY_MAJOR.
1259
96510faf
BC
12602010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
1261
1262 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
1263
449333eb
BC
12642010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
1265
1266 Fix grub-emu build.
1267
1268 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
1269 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
1270 mdraid09 and mdraid1x.
1271
e1fd1939
CW
12722010-09-24 Colin Watson <cjwatson@ubuntu.com>
1273
1274 Re-enable grub-extras.
1275
1276 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
1277 avoid confusing Automake. Run autogen only twice, once for the top
1278 level and once for grub-core. Add Makefile.util.def and
1279 Makefile.core.def from extra modules to the appropriate autogen
1280 invocations. If Makefile.common exists in an extra module, include
1281 it in both Makefile.util.am and grub-core/Makefile.core.am;
1282 similarly, include any Makefile.util.common file in Makefile.util.am
1283 and any Makefile.core.common file in grub-core/Makefile.core.am.
1284 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
1285 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
1286 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
1287 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
1288
1289 * gentpl.py (gvar_add): Turn GVARS into a set.
1290 (global_variable_initializers): Sort global variables on output.
1291 (vars_init): New function.
1292 (first_time): Likewise.
1293 (library): Ensure that non-global variable initialisations are
1294 emitted before the first time we emit code for a library block.
1295 Append to variables rather than setting them. Only emit
1296 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
1297 each conditional path.
1298 (program): installdir() emits an Autogen macro, so must be passed to
1299 var_add rather than gvar_add.
1300 (data): Likewise.
1301 (script): Likewise.
1302 (rules): New function, centralising handling for different target
1303 types. Set up Guile association lists for first_time and vars_init,
1304 and send most output to a diversion so that variable initialisations
1305 can be emitted first.
1306 (module_rules): Use new rules function.
1307 (kernel_rules): Likewise.
1308 (image_rules): Likewise.
1309 (library_rules): Likewise.
1310 (program_rules): Likewise.
1311 (script_rules): Likewise.
1312 (data_rules): Likewise.
1313
1314 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
1315
1316 * .bzrignore: Add contrib and grub-core/contrib. Remove
1317 grub-core/Makefile.gcry.am.
1318
1d12cf29
YB
13192010-09-24 Yves Blusseau <blusseau@zetam.org>
1320
1321 * grub-core/lib/LzFind.c: Add missing include.
1322 * grub-core/lib/LzmaEnc.c: Likewise.
1323 * grub-core/script/lexer.c: Likewise.
1324 * grub-core/script/yylex.l: Likewise.
1325 * util/grub-macho2img.c: Likewise.
1326 * util/grub-menulst2cfg.c: Likewise.
1327 * util/grub-mklayout.c: Likewise.
1328 * util/grub-mkpasswd-pbkdf2.c
1329 * util/grub-mkrelpath.c: Likewise.
1330 * util/resolve.c: Likewise.
1331
dd363028
BC
13322010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
1333
1334 * Makefile.util.def (example_unit_test): Add
1335 grub-core/gnulib/libgnu.a.
1336
f5a109e2
GS
13372010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
1338
1339 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
1340
6d0fa83c
VS
13412010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1342
1343 Support xz compression on yeeloong.
1344
1345 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
1346 * configure.ac: Check for LZMA.
1347 * grub-core/Makefile.core.def (xz_decompress): New target.
1348 (none_decompress): Likewise.
1349 * grub-core/boot/decompressor/minilib.c: New file.
1350 * grub-core/boot/decompressor/none.c: Likewise.
1351 * grub-core/boot/decompressor/xz.c: Likewise.
1352 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
1353 * grub-core/kern/mips/cache_flush.S: Likewise.
1354 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
1355 * grub-core/kern/mips/startup.S: Move first stage to ...
1356 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
1357 nomacro.
1358 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
1359 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
1360 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
1361 Allocate statically.
1362 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
1363 Allocate statically or use scratch. Don't check CRC32.
1364 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
1365 Allocate statically. Don't check CRC32.
1366 * include/grub/decompressor.h: New file.
1367 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
1368 Removed.
1369 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
1370 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
1371 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
1372 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
1373 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
1374 * util/grub-mkimage.c (grub_compression_t): New type.
1375 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
1376 (image_target_desc): New field default_compression.
1377 (image_targets): Adjust yeeloong targets.
1378 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
1379 (compress_kernel): New parameter comp.
1380 (generate_image): Likewise. Handle new compression case.
1381 (options): New option --compression
1382 (help): Likewise.
1383 (main): Handle new option.
1384
1b655af6
GS
13852010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
1386
1387 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
1388
8f03f0b5
CW
13892010-09-22 Colin Watson <cjwatson@ubuntu.com>
1390
1391 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1392 typo in __i386__ conditional.
1393
7835dfd3
VS
13942010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1395
1396 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
1397 include.
1398
e255597e
VS
13992010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1400
6d0fa83c 1401 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
1402
1403 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
1404 new tags as supported.
1405 (acpiv2_size): New function.
1406 (grub_multiboot_get_mbi_size): Take new tags into account.
1407 (grub_multiboot_make_mbi): Add new tags.
1408 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 1409
6cc14051 14102010-09-21 Aleš Nesrsta <starous@volny.cz>
1411
1412 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
1413 Added missing configuration of USB device.
1414
df7769d8
CW
14152010-09-21 Colin Watson <cjwatson@ubuntu.com>
1416
1417 * grub-core/normal/menu_entry.c (run): Make sure we always return
1418 a value.
1419
b031012d
CW
14202010-09-21 Colin Watson <cjwatson@ubuntu.com>
1421
1422 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
1423 NumberOfPages is UINT64 according to the UEFI specification, not
1424 UINTN. Fix printf format.
1425
174de8f3
CW
14262010-09-21 Colin Watson <cjwatson@ubuntu.com>
1427
1428 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
1429 `err' to grub_usb_err_t.
1430 Reported and tested by: KESHAV P.R.
1431
d7dbe923
CW
14322010-09-21 Colin Watson <cjwatson@ubuntu.com>
1433
1434 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
1435 tpart non-const, so that we can assign to it. (Since this is a
1436 typedef, the constness refers to the pointer rather than what it
1437 points to.)
1438
8d5e2af3
CW
14392010-09-21 Colin Watson <cjwatson@ubuntu.com>
1440
1441 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
1442 $(top_srcdir)/grub-core/gnulib as well as
1443 $(top_builddir)/grub-core/gnulib.
1444 Reported by: KESHAV P.R.
1445
5c527783
CW
14462010-09-21 Colin Watson <cjwatson@ubuntu.com>
1447
1448 * util/grub-install.in: Fix the bootloader ID option to be
1449 consistently --bootloader-id, not --bootloader_id.
1450 Reported by: KESHAV P.R.
1451
d309a16e
CW
14522010-09-21 Colin Watson <cjwatson@ubuntu.com>
1453
1454 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
1455 check hash checksum." consistently translatable.
1456
b830cd16
YB
14572010-09-21 Yves Blusseau <blusseau@zetam.org>
1458
1459 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
1460 $(top_builddir).
1461
c4fe27a8
CW
14622010-09-21 Colin Watson <cjwatson@ubuntu.com>
1463
1464 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
1465 (GRUB_MOD_INIT): Register sha1sum command.
1466 (GRUB_MOD_FINI): Unregister sha1sum command.
1467
a4c1d277
YB
14682010-09-21 Yves Blusseau <blusseau@zetam.org>
1469
1470 Keep boot and grub directory names in sync with utils scripts
1471
1472 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
1473 * config.h.in: Add previous macros.
1474 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
1475 * util/grub-install.in: Use $bootdir and $grubdir variables.
1476
4eff79d2
CW
14772010-09-21 Colin Watson <cjwatson@ubuntu.com>
1478
1479 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
1480 convert partition names to disk names if the new `convert' parameter
1481 is set.
1482 (grub_util_biosdisk_get_grub_dev): If opening the disk device
1483 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
1484 disk in its own right. This can happen with Xen disk images.
1485
934d7e44
YB
14862010-09-21 Yves Blusseau <blusseau@zetam.org>
1487
1488 * util/grub-editenv.c: Update strings to avoid warnings when generating
1489 grub.pot file.
1490 * util/grub-setup.c: Likewise.
934d7e44 1491
df3367cc
VS
14922010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1493
1494 * configure.ac: Change version to 1.99~beta0.
1495
77a94e98
VS
14962010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1497
1498 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1499 Add BADRAM.
1500 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
1501 Likewise.
1502 * include/multiboot.h: Resynced with specification.
1503 * include/multiboot2.h: Likewise.
1504
269004c1
CW
15052010-09-21 Colin Watson <cjwatson@ubuntu.com>
1506
1507 Fix po directory handling.
1508
1509 * configure.ac: Create po/Makefile.in rather than po/Makefile.
1510 * grub-core/gnulib/Makefile.am: Import gettext module.
1511 * m4/gnulib-cache.m4: Likewise.
1512 * m4/gnulib-comp.m4: Likewise.
1513 * m4/gettext.m4: New file, from gnulib.
1514 * m4/glibc2.m4: Likewise.
1515 * m4/iconv.m4: Likewise.
1516 * m4/intdiv0.m4: Likewise.
1517 * m4/intl.m4: Likewise.
1518 * m4/intldir.m4: Likewise.
1519 * m4/intlmacosx.m4: Likewise.
1520 * m4/intmax.m4: Likewise.
1521 * m4/inttypes-pri.m4: Likewise.
1522 * m4/lcmessage.m4: Likewise.
1523 * m4/lib-ld.m4: Likewise.
1524 * m4/lib-link.m4: Likewise.
1525 * m4/lib-prefix.m4: Likewise.
1526 * m4/lock.m4: Likewise.
1527 * m4/nls.m4: Likewise.
1528 * m4/po.m4: Likewise.
1529 * m4/printf-posix.m4: Likewise.
1530 * m4/progtest.m4: Likewise.
1531 * m4/threadlib.m4: Likewise.
1532 * m4/uintmax_t.m4: Likewise.
1533 * m4/visibility.m4: Likewise.
1534 * po/Makefile.am: Remove.
1535 * po/Makefile.in.in: New file, from gettext.
1536 ($(DOMAIN).pot-update): Support POTFILES-shell.
1537 * po/Makevars: New file.
1538 * po/POTFILES-shell: Rename to ...
1539 * po/POTFILES-shell.in: ... this. Update.
1540 * po/POTFILES: Rename to ...
1541 * po/POTFILES.in: ... this. Update.
1542 * po/Rules-quot: New file, from gettext.
1543 * po/boldquot.sed: Likewise.
1544 * po/en@boldquot.header: Likewise.
1545 * po/en@quot.header: Likewise.
1546 * po/insert-header.sin: Likewise.
1547 * po/quot.sed: Likewise.
1548 * po/remove-potcdate.sin: Likewise.
1549
3e0fa5d0
VS
15502010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1551
1552 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
1553
ade9bd66
VS
15542010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1555
1556 * util/grub.d/20_linux_xen.in: Use submenus.
1557
fc55cc4c
VS
15582010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1559
1560 Support submenus.
1561
1562 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
1563 parameter submenu. All users updated.
1564 * grub-core/normal/main.c (free_menu): Rename to ...
1565 (grub_normal_free_menu): ... this. Made global.
1566 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
1567 if requested.
1568 * grub-core/normal/menu_entry.c (screen): New field submenu.
1569 (make_screen): Set submenu.
1570 (run): Open new context if requested.
1571 * include/grub/menu.h (grub_menu_entry): New field submenu.
1572 * include/grub/normal.h (grub_normal_free_menu): New proto.
1573
600cedf7
VS
15742010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1575
1576 Menu entries extractor.
1577
1578 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
1579 variants.
1580 (GRUB_MOD_INIT): Register new variants.
1581 (GRUB_MOD_FINI): Unregister new variants.
1582 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
1583 into grub_cmd_legacy_source.
1584 (grub_cmd_legacy_source): Implement extractor variants.
1585 (GRUB_MOD_INIT): Register new variants.
1586 (GRUB_MOD_FINI): Unregister new variants.
1587 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
1588 as an extractor.
1589 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
1590 search as an extractor.
1591 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
1592 test as an extractor.
1593 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
1594 as an extractor.
1595 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
1596 (grub_env_new_context): New function.
1597 (grub_env_context_open): Likewise.
1598 (grub_env_extractor_open): Likewise.
1599 (grub_env_extractor_close): Likewise.
1600 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1601 grub_extractor_level.
1602 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
1603 * include/grub/env.h (grub_env_extractor_open): New proto.
1604 (grub_env_extractor_close): Likewise.
1605 * include/grub/normal.h (grub_extractor_level): New external variable.
1606
7bda3a87
VS
16072010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1608
1609 Make cutmem accept a region specification.
1610 Suggested by: Samuel Thibault
1611
1612 * grub-core/mmap/mmap.c (parsemem): New function.
1613 (grub_cmd_cutmem): Handle new arguments.
1614
2ea57f88
VS
16152010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1616
1617 New command cutmem.
1618
1619 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
1620 (GRUB_MOD_INIT): Register new command.
1621 (GRUB_MOD_FINI): Unregister new command.
1622
74342e31
VS
16232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 Support some annoying BSD and Minix subpartitions.
1626
1627 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
1628 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1629 Properly handle concatenation.
1630 * grub-core/kern/device.c (grub_device_iterate): Likewise.
1631 * grub-core/normal/completion.c (iterate_partition): Likewise.
1632 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
1633 contain partition. All users updated.
1634 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
1635 struct.
1636 (grub_openbsdlabel_partition_map): Likewise.
1637 (bsdlabel_partition_map_iterate): Rename to ..
1638 (iterate_real): ... this. New arguments sector, freebsd and pmap.
1639 (bsdlabel_partition_map_iterate): New function.
1640 (netopenbsdlabel_partition_map_iterate): Likewise.
1641 (netbsdlabel_partition_map_iterate): Likewise.
1642 (openbsdlabel_partition_map_iterate): Likewise.
1643 (GRUB_MOD_INIT): Register new partmaps.
1644 (GRUB_MOD_FINI): Unregister new partmaps.
1645 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
1646 (grub_partition_msdos_iterate): ... this. All users updated.
1647 Don't support embedding other than in a minix partition.
1648 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
1649 proto.
1650 * include/grub/partition.h (grub_partition): New field msdostype.
1651 * util/grub-install.in: Handle openbsd and netbsd types being in
1652 part_bsd module.
1653
1e8d555b
VS
16542010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1655
1656 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
1657
1658 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
1659 * grub-core/Makefile.core.def (mdraid): Renamed to ...
1660 (mdraid09): ... this.
1661 (mdraid1x): New module.
1662 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
1663 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
1664
899d8af4
VS
16652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1666
1667 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
1668 vsprintf.
1669
40901acd
CW
16702010-09-20 Colin Watson <cjwatson@ubuntu.com>
1671
1672 * grub-core/commands/efi/lsefimmap.c: Correct header.
1673 * NEWS: Update.
1674
dfe3b247
CW
16752010-09-20 Colin Watson <cjwatson@ubuntu.com>
1676
1677 * util/grub-editenv.c (argp_parser): Don't pass translated strings
1678 as printf format strings; the translations might contain '%' which
1679 could cause a crash.
1680 (main): Likewise.
1681 * util/grub-fstest.c (argp_parser): Likewise.
1682 * util/grub-setup.c (argp_parser): Likewise.
1683 (main): Likewise.
1684
3286a4b4
VS
16852010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1686
1687 Use argp in grub-fstest.
1688
1689 * util/grub-fstest.c: Don't include getopt.h.
1690 Include argp.h.
1691 (root): New variable.
1692 (args_count): Likewise.
1693 (nparm): Likewise.
1694 (num_disks): Likewise.
1695 (images): Likewise.
1696 (cmd): Likewise.
1697 (debug_str): Likewise.
1698 (args): Likewise.
1699 (options): Transformed to argp.
1700 (usage): Removed.
1701 (main): Split argument parsing into ...
1702 (argp_parser): ... this. Changed to argp format.
1703 (argp): New variable.
1704 (main): Use argp_parse.
1705
3dccbe4b
TG
17062010-09-20 Tristan Gingold <gingold@free.fr>
17072010-09-20 Robert Millan <rmh.grub@aybabtu.com>
17082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/commands/efi/lsefimmap.c: New file.
1711 * grub-core/Makefile.core.def (lsefimmap): New module.
1712 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
1713
38c259a7
VS
17142010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1715
1716 Pause the execution (10s max) if any errors are displayed so the user
1717 has a chance to see them.
1718
1719 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
1720 (grub_print_error): Increment grub_err_printed_errors.
1721 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
1722 execution if any errors were displayed.
1723 (show_menu): Remove old code for pause.
1724 * grub-core/normal/menu_entry.c (run): Likewise.
1725 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
1726 users updated.
1727 (grub_normal_get_char_counter): Likewise.
1728 * include/grub/err.h (grub_err_printed_errors): New external variable.
1729 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
1730
f218b09c
VS
17312010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 Support multiboot VBE info.
1734
1735 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1736 Take VBE info into account.
1737 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
1738 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1739 Call fill_vbe_info when appropriate.
1740 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
1741 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
1742 as supported.
1743 (grub_multiboot_get_mbi_size): Take new tags into account.
1744 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
1745 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1746 Call fill_vbe_tag when appropriate.
1747 (grub_multiboot_make_mbi): Properly align tags.
1748 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
1749 function.
1750 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
1751 proto.
1752 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
1753
a9cc5438
VS
17542010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1755
1756 Suport manual terminal geometry specification.
1757
1758 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
1759 Save state in grub_ofconsole_terminfo_output.
1760 (grub_ofconsole_term): Use grub_terminfo_getwh.
1761 (grub_ofconsole_getwh): Removed.
1762 * grub-core/term/serial.c (grub_serial_getwh): Removed.
1763 (grub_serial_term): Use grub_terminfo_getwh.
1764 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
1765 (options): New struct.
1766 (OPTION_*): New enum.
1767 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
1768 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
1769 width and height.
1770 (grub_terminfo_getwh): New proto.
1771 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
1772
1a8fed20
VS
17732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1774
1775 Handle legacy "terminal" command.
1776
1777 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
1778 and FLAG_TERMINAL.
1779 (legacy_commands): Add terminal and title.
1780 (grub_legacy_parse): Handle terminal. Simplify title handling.
1781
41e9c57d
VS
17822010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1783
1784 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
1785 parameters overflow.
1786
61c874c5
CW
17872010-09-20 Colin Watson <cjwatson@ubuntu.com>
1788
1789 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
1790 widthspec.h.
1791
1792 * docs/grub.texi (Shell-like scripting): Document `!'.
1793 (Network): Simplify using new i386-pc-pxe format. Mention
1794 grub-mknetdir.
1795
1796 * NEWS: Update.
1797
943682b4
CW
17982010-09-20 Colin Watson <cjwatson@ubuntu.com>
1799
1800 * Makefile.am (SUBDIRS): Restore "."; it's important to force
1801 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
1802 when needed.
1803
6d3d698d
CW
18042010-09-20 Colin Watson <cjwatson@ubuntu.com>
1805
1806 * grub-core/commands/efi/lsefisystab.c: Correct header.
1807 * grub-core/commands/efi/lssal.c: Likewise.
1808 * grub-core/commands/testload.c: Likewise.
1809
c982589f
CW
18102010-09-20 Colin Watson <cjwatson@ubuntu.com>
1811
1812 * util/grub-mkrescue.in: Add explicit root argument to --set to
1813 prevent the UUID being interpreted as an argument to --set (matches
1814 previous change to prepare_grub_to_access_device).
1815
a63c31b6
CW
18162010-09-20 Colin Watson <cjwatson@ubuntu.com>
1817
1818 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
1819 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
1820 the verbosity of later #ifs.
1821 (find_partition_start): Define this function on FreeBSD too.
1822 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
1823 function.
1824 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
1825 on FreeBSD.
1826
6439b8ee
YB
18272010-09-20 Yves Blusseau <blusseau@zetam.org>
1828
1829 * util/grub-editenv.c: Use argp instead of getopt.
1830
c5930ec8
YB
18312010-09-20 Yves Blusseau <blusseau@zetam.org>
1832
1833 * util/grub-setup.c: Use argp instead of getopt.
1834
15c69261
YB
18352010-09-20 Yves Blusseau <blusseau@zetam.org>
1836
1837 Use gnulib-tool to create gnulib source files.
1838
1839 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
1840 grub-core/gnulib directories
1841 * .bzignore: Add **/.deps and autogenerated gnulib files
1842 * configure.ac: Assign auxiliary directory to build-aux, add invocation
1843 of gnulib macros, add grub-core/gnulib/Makefile
1844 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
1845 include m4 directory to aclocal.
1846 * Makefile.util.def: Remove direct compilation of gnulib source files
1847 and use the new grub-core/gnulib/libgnu.a.
1848 * build-aux/config.rpath: move config.rpath from top directory to
1849 build-aux
1850 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
1851 in gnulib headers
1852 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
1853 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
1854 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
1855 header.
1856 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
1857 string.
1858
e511c9f5
YB
18592010-09-20 Yves Blusseau <blusseau@zetam.org>
1860
1861 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
1862 grub-core/genmod.sh and grub-core/gensyminfo.sh
1863
c2dede05
BC
18642010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
1865
1866 Add a test for echo command options.
1867
1868 * tests/grub_cmd_echo.in: New test.
1869 * Makefile.util.def: Rules for new test.
1870
c55f5018
SJ
18712010-09-20 Szymon Janc <szymon@janc.net.pl>
1872
1873 Remove crc.mod and move crc command to hashsum.mod.
1874 Remove lib/crc.c - users updated to use gcrypt implementation.
1875
1876 * grub-core/commands/crc.c: Removed.
1877 * grub-core/Makefile.core.def (crc): Module removed.
1878 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
1879 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
1880 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
1881 * grub-core/lib/crc.c: Removed.
1882 * include/grub/lib/crc.h: Removed.
1883 * Makefile.util.def (crc): Remove lib/crc.c
1884 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
1885 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
1886 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
1887 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
1888 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
1889 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
1890
e0337366
VS
18912010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
1894
742f9232
VS
18952010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1896
1897 Split config.h for util and core.
1898
1899 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
1900 (ADDR32): Likewise.
1901 (DATA32): Likewise.
1902 (BSS_START_SYMBOL): Likewise.
1903 (END_SYMBOL): Likewise.
1904 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
1905 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
1906 * config.h.in: New file.
1907 * configure.ac: Use config-util.h as config define file.
1908 Rename MACHINE into GRUB_MACHINE. All users updated.
1909 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
1910 updated.
1911 (NESTED_FUNC_ATTR): Likewise.
1912 Substitue new variables.
1913 (COND_HAVE_ASM_USCORE): New conditional.
1914 * grub-core/Makefile.am (ASM_PREFIX): New variable.
1915 (kernel_syms.lst): Use ASM_PREFIX.
1916 * grub-core/kern/emu/console.c: Include config-util.h.
1917 * grub-core/kern/emu/misc.c: Likewise.
1918 * grub-core/kern/emu/mm.c: Likewise.
1919 * include/grub/emu/misc.h: Likewise.
1920 * include/grub/libgcc.h: Likewise.
1921
39feb0e8
VS
19222010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1923
1924 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
1925 constants usage.
1926 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
1927 Fix GRUB_TERM_KEY_* constants usage.
1928 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
1929
9af6dac3
VS
19302010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1931
1932 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
1933 print pointer.
1934 * grub-core/bus/usb/uhci.c: Remove empty define.
1935 (grub_uhci_check_transfer): Add missing cast.
1936 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
1937 print pointer.
1938 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
1939 PRIuGRUB_SIZE.
1940 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
1941
d6d94820
VS
19422010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1943
1944 * grub-core/Makefile.core.def (legacycfg): Add
1945 lib/i386/pc/vesa_modes_table.c on emu.
1946
3572f2b6
BC
19472010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1948
1949 Reduce number of temporary files generated by build system.
1950
1951 * grub-core/gencmdlist.sh: Removed.
1952 * grub-core/genfslist.sh: Removed.
1953 * grub-core/genhandlerlist.sh: Removed.
1954 * grub-core/genmodsrc.sh: Removed.
1955 * grub-core/genpartmaplist.sh: Removed.
1956 * grub-core/genparttoollist.sh: Removed.
1957 * grub-core/gentermiinallist.sh: Removed.
1958 * grub-core/genvideolist.sh: Removed.
1959
1960 * grub-core/genmod.sh.in: New file.
1961 * grub-core/gensyminfo.sh.in: New file.
1962
1963 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
1964 * conf/Makefile.extra-dist: Update with new files.
1965 * gentpl.py: Remove rules related to unnecessary temporary files.
1966 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
1967 and und-* files.
1968 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
1969 genmod.sh scripts.
1970 * grub-core/bus/usb/uhci.c: Remove empty #define.
1971 * grub-core/genmoddep.awk: Updated with new syminfo format.
1972 * util/bash-completion.d/Makefile.am: Add config.log to
1973 CLEANFILES.
1974
c836b030
YB
19752010-09-19 Yves Blusseau <blusseau@zetam.org>
1976
1977 * Makefile.util.def: Add forgotten $(LIBINTL) library.
1978
2f4e8053
BC
19792010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1980
1981 * util/grub-mkconfig.in: Check the config script for syntax errors
1982 before saving.
1983
75831c34
CW
19842010-09-19 Colin Watson <cjwatson@ubuntu.com>
19852010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1986
1987 * Makefile.util.def (grub-install): Use util/grub-install.in on all
1988 platforms.
1989 * util/grub-install.in: Add EFI and IEEE1275 support.
1990 * util/i386/efi/grub-install.in: Removed.
1991 * util/ieee1275/grub-install.in: Likewise.
1992
eaf41b25
VS
19932010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1994
1995 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
1996 (grub_cmd_cmosclean): Likewise.
1997 (GRUB_MOD_INIT): Register command cmosclean.
1998 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
1999 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
2000
1a9130dd
CPE
20012010-09-18 Carles Pina i Estany <carles@pina.cat>
20022010-09-18 Aleš Nesrsta <starous@volny.cz>
20032010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2004
2005 Add keyboard layouts support.
2006
2007 * Makefile.util.def (grub-mklayout): New file.
2008 (grub-kbdcomp): New script.
2009 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
2010 Add keyboard_layouts.h.
2011 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
2012 commands/boot.c on yeeloong.
2013 (keylayouts): New module.
2014 * grub-core/bus/usb/ohci.c
2015 * grub-core/bus/usb/uhci.c
2016 * grub-core/bus/usb/usbhub.c (rescan): New variable.
2017 (grub_usb_add_hub): Poll interrupt pipe for device handling.
2018 (attach_root_port): Likewise.
2019 (poll_nonroot_hub): Likewise.
2020 (grub_usb_poll_devices): Likewise.
2021 (detach_device): Close transfer.
2022 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
2023 function.
2024 (grub_usb_bulk_setup_readwrite): Likewise.
2025 (grub_usb_bulk_finish_readwrite): Likewise.
2026 * grub-core/commands/keylayouts.c: New file.
2027 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
2028 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
2029 aliases.
2030 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
2031 support scancode 2.
2032 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
2033 * include/grub/keyboard_layouts.h: New file.
2034 * util/grub-mklayout.c: New file.
2035 * util/grub-kbdcomp.in: Likewise.
2036
a1d84a5e
VS
20372010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2038
2039 Unify memory types.
2040
2041 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
2042 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
2043 types.
2044 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
2045 (grub_upper_mem): Likewise.
2046 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
2047 * include/grub/memory.h (grub_memory_type_t): New enum.
2048 All users updated.
2049
9696382e
VS
20502010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2051
2052 * grub-core/Makefile.core.def (lsapm): New module.
2053 * grub-core/commands/i386/pc/lsapm.c: New file.
2054 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
2055 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
2056 Likewise.
2057 * include/grub/i386/pc/apm.h: New file.
2058 * include/multiboot.h (multiboot_apm_info): New struct.
2059
20602010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2061
2062 GRUB-legacy configuration file support.
2063
2064 * Makefile.util.def (grub-menulst2cfg): New util.
2065 * docs/man/grub-menulst2cfg.h2m: New file.
2066 * grub-core/Makefile.core.def (legacycfg): New module.
2067 * grub-core/commands/legacycfg.c: New file.
2068 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
2069 (grub_normal_add_menu_entry): ... this.
2070 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
2071 (grub_normal_set_password): ...this.
2072 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
2073 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
2074 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
2075 * grub-core/lib/legacy_parse.c: New file.
2076 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
2077 * include/grub/i386/pc/vesa_modes_table.h: New file.
2078 * include/grub/legacy_parse.h: Likewise.
2079 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
2080 * util/grub-menulst2cfg.c: New file.
2081
bf8d1338
CW
20822010-09-17 Colin Watson <cjwatson@ubuntu.com>
2083
2084 * grub-core/kern/emu/hostdisk.c
2085 (convert_system_partition_to_system_disk): Initialise node.
2086
9c0bad2e
CW
20872010-09-17 Colin Watson <cjwatson@ubuntu.com>
2088
2089 * grub-core/kern/emu/hostdisk.c
2090 (convert_system_partition_to_system_disk): Fix devmapper memory pool
2091 leak.
2092 Reported and based on patch by: Modestas Vainius.
2093
a939d135
CW
20942010-09-17 Colin Watson <cjwatson@ubuntu.com>
2095
2096 Fix DM-RAID probing with recent versions of device-mapper udev
2097 rules.
2098
2099 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
2100 canonicalise device paths under /dev/mapper/.
2101 (convert_system_partition_to_system_disk): Compare the
2102 uncanonicalised path to /dev/mapper/ rather than the canonicalised
2103 path, since device nodes under /dev/mapper/ are often symlinks.
2104
0f7ee3c9
YB
21052010-09-17 Yves Blusseau <blusseau@zetam.org>
2106
2107 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
2108
10854d0d
YB
21092010-09-16 Yves Blusseau <blusseau@zetam.org>
2110
2111 * configure.ac: Avoid some annoying error messages if freetype-config
2112 program is not found.
2113
108538d8
CW
21142010-09-16 Colin Watson <cjwatson@ubuntu.com>
2115
2116 Support RAID on virtio devices, and others.
2117
2118 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
2119 Rename to ...
2120 [__MINGW32__] (grub_find_device): ... this.
2121 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
2122 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
2123 reasonable default if dir is NULL.
2124 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
2125 ...
2126 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
2127 (grub_guess_root_device): Update callers.
2128 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
2129
2130 * util/raid.c (grub_util_getdiskname): Remove.
2131 (grub_util_raid_getmembers): Use grub_find_device rather than
2132 grub_util_getdiskname.
2133
e5bfc130
CW
21342010-09-16 Colin Watson <cjwatson@ubuntu.com>
2135
2136 * docs/grub.texi (serial): Remove obsolete comment about GRUB
2137 needing to be compiled with serial support.
2138 (ls): Indicate that multiple files are accepted.
2139 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
2140 indicate that multiple files are accepted.
2141
be458ae2
CW
21422010-09-16 Colin Watson <cjwatson@ubuntu.com>
2143
2144 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
2145 libgrub_a_init.c, and util/bash-completion.d/grub.
2146
cb731b5e
VS
21472010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2148
2149 * util/grub-setup.c (setup): Fix incorrect container semantics.
2150
35139e8a
VS
21512010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2152
2153 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
2154 misusage.
2155 Reported by: J. Nick Terry
2156
e50fca4a
VS
21572010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2158
2159 Move embedding routines to partmap sources files.
2160
2161 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
2162 [GRUB_UTIL]: New variable.
2163 (gpt_partition_map_iterate): Set part.parent.
2164 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
2165 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
2166 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
2167 New function.
2168 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
2169 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
2170 (grub_partition_map) [GRUB_UTIL]: New field embed.
2171 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
2172 (setup): Use ->embed.
2173
f00478b7
VS
21742010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2175
2176 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
2177 function.
2178 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
2179 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
2180
2b94e3ff
YB
21812010-09-15 Yves Blusseau <blusseau@zetam.org>
2182
2183 Add function to get completions from usage.
2184
2185 * util/bash-completion.d/grub-completion.bash.in: Add function to get
2186 completions from usage. Use LC_ALL=C to get options properly.
2187
2e04a006
VS
21882010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2189
2190 * grub-core/gnulib/basename-lgpl.c: Imported.
2191 * grub-core/gnulib/basename.c: Likewise.
2192 * grub-core/gnulib/dirname-lgpl.c: Likewise.
2193 * grub-core/gnulib/dirname.c: Likewise.
2194 * grub-core/gnulib/dirname.h: Likewise.
2195 * grub-core/gnulib/stripslash.c: Likewise.
2196
5dcdf93a
VS
21972010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2198
2199 * grub-core/gnulib/error.c: Resynced.
2200 * grub-core/gnulib/getopt.c: Likewise.
2201 * grub-core/gnulib/getopt_int.h: Likewise.
2202 * grub-core/gnulib/regex.h: Likewise.
2203 * grub-core/gnulib/regex_internal.c: Likewise.
2204 * grub-core/gnulib/regex_internal.h: Likewise.
2205
014f47b7
SJ
22062010-09-15 Szymon Janc <szymon@janc.net.pl>
2207
2208 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
2209 CRC calculations and validity checks.
2210 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
2211 calculations.
2212
dd521a4a
SJ
22132010-09-15 Szymon Janc <szymon@janc.net.pl>
2214
2215 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
2216
79c4eeb9
VS
22172010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2218
2219 Fix incorrect echo options handling.
2220 Reported by: Yves Blusseau.
2221
2222 * include/grub/command.h (grub_command_flags_t): New flags
2223 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
2224 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
2225 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
2226
ed80f7d5
VS
22272010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2228
2229 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
2230 users updated.
2231 (GRUB_COMMAND_FLAG_MENU): Likewise.
2232 (GRUB_COMMAND_FLAG_BOTH): Likewise.
2233 (GRUB_COMMAND_FLAG_TITLE): Removed.
2234 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
2235 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
2236 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
2237 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
2238 (grub_command_flags_t): New enum. All users updated.
2239
5fe7620a
SG
22402010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
2241
2242 Fix solaris compilation.
2243
2244 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
2245 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
2246 (grub-emu-list): Likewise.
2247
545b752f
VS
22482010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2249
2250 Remove deprecated root command.
2251
2252 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
2253 updated.
2254
6c1a338c
VS
22552010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2256
2257 * util/i386/pc/grub-setup.c: Merge this ...
2258 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
2259 * util/grub-setup.c: ... into this.
2260 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
2261 New struct.
2262
22632010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2264
2265 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
2266 possible.
2267
d2ea4551
VS
22682010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2269
2270 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
2271 allocate p.
2272
3c3b5040
VS
22732010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2276 explicit root argument to set to prevent UUID to be interpreted as
2277 argument to set.
2278
b71c3fae
VS
22792010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2280
2281 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
2282
275433e6
VS
22832010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2284
2285 Don't export grub_gate_a20.
2286
2287 * grub-core/kern/i386/pc/init.c: Remove leftovers.
2288 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
2289 to ...
2290 (grub_gate_a20): ... this. All users updated.
2291 * include/grub/i386/pc/init.h: Removed. All users updated.
2292
a5dbb1f1
VS
22932010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2294
2295 Create euro.pf2 which supports most European languages.
2296
2297 * Makefile.am (grubdata_DATA): Add euro.pf2.
2298 (euro.pf2): New target.
2299 (CLEANFILES): Add euro.pf2.
2300
62a747cb
VS
23012010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * configure.ac: Disable emu-usb by default to prevent inadvertent
2304 device takeover.
2305
608e43b1
VS
23062010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2307
2308 Disable usbserial on grub-emu since our libusb code isn't good enough
2309 yet.
2310
2311 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
2312 (usbserial_pl2303): Likewise.
2313 (usbserial_ftdi): Likewise.
2314
94564f81
VS
23152010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 * include/grub/disk.h (grub_disk): Remove has_partitions.
2318 All users updated.
2319 * disk/loopback.c (grub_loopback): Remove has_partitions.
2320 All users updated.
2321 (options): Remove partitions. All users updated.
2322 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
2323 * util/i386/pc/grub-setup.c (setup): copy partition table only when
2324 actual partition table is found.
2325
3352800b
VS
23262010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2327
2328 Remove readability checks (too many false negatives).
2329
2330 * util/grub-install.in: Remove readability checks.
2331 * util/grub-mkconfig.in: Likewise.
2332 * util/grub.d/10_hurd.in: Likewise.
2333 * util/grub.d/10_kfreebsd.in: Likewise.
2334 * util/grub.d/10_linux.in: Likewise.
2335 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
2336 way.
2337
2419f17a
VS
23382010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2339
2340 Enable acpi shutdown on all ACPI platforms.
2341
2342 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
2343 on coreboo, multiboot and EFI.
2344 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
2345 (grub_acpi_halt): Likewise.
2346 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
2347 (grub_cmd_halt): Don't call grub_acpi_halt directly.
2348 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
2349 * grub-core/lib/i386/halt.c (grub_halt)
2350 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
2351
0575c7c3
VS
23522010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2353
2354 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
2355 context.
2356
54ac3cd1
VS
23572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 * grub-core/video/efi_gop.c: Fix over-80-chars line.
2360 * grub-core/video/efi_uga.c: Likewise.
2361
b2a30ac5
VS
23622010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2363
2364 Filter devaliases and never open same device twice.
2365
2366 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
2367 (last_ihandle): Likewise.
2368 (ofdisk_hash_ent): New member shortest.
2369 (ofdisk_hash_add): Add canonical path too.
2370 (scan): New function.
2371 (grub_ofdisk_iterate): Iterate over hashed entries.
2372 (compute_dev_path): Don't add :0.
2373 (grub_ofdisk_open): Don't really open the disk.
2374 (grub_ofdisk_close): Avoid closing unrelated disk.
2375 (grub_ofdisk_read): Implement reopen logic.
2376 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
2377 New function.
2378 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
2379 New proto.
2380
fb53b340
VS
23812010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2382
2383 Fix sparc64.
2384
2385 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
2386 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
2387 right address. Add sparc64_ieee1275_ldflags.
2388 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
2389 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
2390 to grub_host_to_target_addr
2391 (load_image): Likewise.
2392
f452b040
VS
23932010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2394
2395 * grub-core/normal/completion.c (complete_file): Handle device
2396 containing slash.
2397 Fix based on patch by Doug Nazar.
2398
9b5b2541
VS
23992010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2400
2401 grub-mknetdir script.
2402
2403 * Makefile.util.def (grub-mknetdir): New module.
2404 * tests/util/grub-shell.in: Support boot=net
2405 * util/grub-mknetdir.in: New file.
2406
9d2be652
VS
24072010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2408
2409 videoinfo on non-vbe.
2410
2411 * grub-core/Makefile.core.def (vbeinfo): Removed.
2412 (vbetest): Removed.
2413 (videoinfo): New module.
2414 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
2415 * grub-core/commands/i386/pc/vbetest.c: Removed.
2416 * grub-core/commands/videoinfo.c: New file.
2417 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
2418 specification.
2419 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
2420 as vbetest.
2421 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
2422 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
2423 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
2424 mode_number. New parameter mode. All users updated.
2425 (grub_video_gop_iterate): New function.
2426 (grub_video_efi_gop): New member iterate.
2427 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
2428 (grub_vbe_set_video_mode): Remove setting useless fields.
2429 (vbe2videoinfo): New function.
2430 (grub_video_vbe_iterate): Likewise.
2431 (grub_video_vbe_setup): Use vbe2videoinfo.
2432 (grub_video_vbe_print_adapter_specific_info): New function.
2433 (grub_video_vbe_adapter): New fields iterate and
2434 print_adapter_specific_info.
2435 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
2436 All users updated.
2437 (grub_video_mode_info): New field mode_number.
2438 (grub_video_adapter): New fields iterate and
2439 print_adapter_specific_info.
2440
179503f5
TG
24412010-09-13 Tristan Gingold <gingold@free.fr>
24422010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24432010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2444
2445 * grub-core/commands/efi/lsefisystab.c: New file.
2446 * grub-core/commands/efi/lssal.c: Likewise.
2447 * grub-core/Makefile.core.def (lsacpi): New module.
2448 (lsefisystab): Likewise.
2449 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
2450 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
2451 (grub_efi_sal_system_table): New struct.
2452 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
2453 (grub_efi_sal_system_table_memory_descriptor): Likewise.
2454 (grub_efi_sal_system_table_platform_features): Likewise.
2455 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
2456 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
2457 (grub_efi_sal_system_table_ap_wakeup): Likewise.
2458 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
2459
cf9827de
VS
24602010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2461
2462 Support explicit user claim that a device is BIOS-visible.
2463
2464 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
2465 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
2466 * grub-core/kern/emu/hostdisk.c
2467 (convert_system_partition_to_system_disk): Support mdX.
2468 (find_system_device): New parameter add. All users updated.
2469 (grub_util_biosdisk_is_present): New function.
2470 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
2471 proto.
2472
53f0eb1f
VS
24732010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2474
2475 Search hints support.
2476
2477 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
2478 All users updated.
2479
b23ffd70
YB
24802010-09-13 Yves Blusseau <blusseau@zetam.org>
2481
2482 Bash completion script for util commands
2483
2484 * Makefile.am: Add util/bash-completion.d directory
2485 * configure.ac: Likewise.
2486 * util/bash-completion.d/Makefile.am: New file.
2487 * util/bash-completion.d/grub-completion.bash.in: Likewise.
2488
d547dc28
VS
24892010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
2492 (print_backlog): set backlog_ucs4 and backlog_glyphs.
2493 Reported by: Yves Blusseau.
2494
2fc8ccb9
VS
24952010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2496
2497 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
2498 partition size and offset.
2499
d8a84076
VS
25002010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2501
2502 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
2503
84fb3b3d
VS
25042010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2505
2506 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
2507
768ec2e2
VS
25082010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2509
2510 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
2511 (grub_xvasprintf): Likewise.
2512
4870900f
VS
25132010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2514
2515 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
2516
faca6bec
VS
25172010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2518
2519 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
2520 args ending with NULL.
2521
25222010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
2523
2524 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
2525 pointer.
2526
3c70f225
SJ
25272010-09-11 Szymon Janc <szymon@janc.net.pl>
2528
2529 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
2530
4df7996d
VS
25312010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2532
2533 Shutdown using ACPI.
2534
2535 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
2536 * grub-core/commands/acpihalt.c: New file.
2537 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
2538 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
2539 (grub_acpi_halt): New proto.
2540 (GRUB_ACPI_SLP_EN): New const.
2541 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
2542 (GRUB_ACPI_OPCODE_*): New enum.
2543 (GRUB_ACPI_EXTOPCODE_*): Likewise.
2544
126b4c32
TG
25452010-09-11 Tristan Gingold <gingold@free.fr>
25462010-09-11 Robert Millan <rmh.grub@aybabtu.com>
25472010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2548
2549 * commands/lsacpi.c: New file.
2550 * grub-core/Makefile.core.def (lsacpi): New module.
2551 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
2552 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
2553 (grub_acpi_madt_entry_header): New struct.
2554 (grub_acpi_madt): Likewise.
2555 (grub_acpi_madt_entry_interrupt_override): Likewise.
2556 (grub_acpi_madt_entry_sapic): Likewise.
2557 (grub_acpi_madt_entry_lsapic): Likewise.
2558 (grub_acpi_madt_entry_platform_int_source): Likewise.
2559 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
2560 (PRIuGRUB_UINT32_T): Likewise.
2561 (PRIxGRUB_UINT64_T): Likewise.
2562
1aa4fe88
VS
25632010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2564
2565 Implement loading palette on ieee1275_fb.
2566
2567 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
2568 (have_setcolors): Likewise.
2569 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
2570 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
2571 (grub_video_ieee1275_set_palette): Implement.
2572
25761e13
VS
25732010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
25742010-09-11 Colin Watson <cjwatson@ubuntu.com>
2575
2576 * util/grub-install.in (grub_partition): New variable.
2577 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
2578 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
2579 Fixes a bug reported by Yves Blusseau.
2580
050abaea
VS
25812010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2582
2583 Fix emu on mipsel.
2584
2585 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
2586 =grub_cpu_flush_cache on all mips and not only yeeloong.
2587 * configure.ac (COND_mips): New conditional.
2588 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
2589 platforms.
2590 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
2591 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
2592 [GRUB_LINKER_HAVE_INIT]: New function.
2593 (grub_emu_post_init): Likewise.
2594 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
2595 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
2596 * include/grub/cache.h (_mips): Include mips/cache.h.
2597 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
2598 LVM and RAID prototypes.
2599 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
2600 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
2601 function.
2602
5ed7d816
CW
26032010-09-10 Colin Watson <cjwatson@ubuntu.com>
2604
2605 * util/grub-install.in: Don't try to verify core.img until after
2606 running grub-mkimage to create it.
2607
90367e04
RM
26082010-09-10 Robert Millan <rmh@gnu.org>
2609
2610 * util/grub.d/10_hurd.in: Add misc readability checks.
2611 * util/grub.d/10_kfreebsd.in: Likewise.
2612 * util/grub.d/10_linux.in: Likewise.
2613
c452fa66
CW
26142010-09-10 Colin Watson <cjwatson@ubuntu.com>
2615
2616 * util/grub-install.in: ${imgext} won't be defined here until the
2617 install branch is merged. For the meantime, only verify core.img on
2618 i386-pc and sparc64-ieee1275 platforms.
2619
c38fe9f4
RM
26202010-09-10 Robert Millan <rmh@gnu.org>
2621
2622 Solaris support in grub_find_zpool_from_dir(). Thanks
2623 Seth Goldberg for referring to getextmntent() facility.
2624
2625 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
2626 `sys/mkdev.h'.
2627 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
2628 `<sys/mnttab.h>'.
2629 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
2630 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
2631 method for finding zpool name.
2632
905f7773
CW
26332010-09-10 Colin Watson <cjwatson@ubuntu.com>
2634
2635 grub-fstest needs the host and hostfs modules while other utilities
2636 actively require those modules to be absent, so grub-fstest needs
2637 its own initialisation and finalisation code.
2638
2639 * Makefile.am (grub_fstest.pp): New target.
2640 (grub_fstest_init.lst): Likewise.
2641 (grub_fstest_init.c): Likewise.
2642 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
2643
fb90b546
RM
26442010-09-10 Robert Millan <rmh@gnu.org>
2645
2646 * configure.ac: Check for `struct statfs.f_fstypename' and
2647 `struct statfs.f_mntfromname'.
2648
2649 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
2650 kFreeBSD-specific code.
2651
66d4bea5
RM
26522010-09-10 Robert Millan <rmh@gnu.org>
2653
2654 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
2655 on ZFS. Now non-main filesystems are supported as / too.
2656
b6a690ee
CW
26572010-09-09 Colin Watson <cjwatson@ubuntu.com>
2658
2659 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
2660 and grub-core/disk/host.c to ...
2661 (grub-fstest): ... here. Having the host disk implementation
2662 present confuses grub-probe and other utility programs.
2663
2664 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
2665 when writing to a file, not when writing to stdout.
2666
8901b00c 26672010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
2668
2669 * tests/partmap_test.in: New test for partitions.
2670 * Makefile.util.def: Rules for new test.
2671
7bf45fdd
RM
26722010-09-09 Robert Millan <rmh@gnu.org>
2673
2674 * util/grub-probe.c (probe): Fix a pair of unhandled error
2675 conditions.
2676
4dfbc574
RM
26772010-09-09 Robert Millan <rmh@gnu.org>
2678
2679 Basic Btrfs support (detection and UUID).
2680
2681 * grub-core/fs/btrfs.c: New file.
2682 * Makefile.util.def (library): Register btrfs.c.
2683 * grub-core/Makefile.core.def: Likewise.
2684
6b8e78ae
RM
26852010-09-08 Robert Millan <rmh@gnu.org>
2686
2687 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
2688 with (optional) parameters to specify device and relative path.
2689 * util/grub-install.in: Use is_path_readable_by_grub() to
2690 verify readability of a few critical files.
2691 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
2692 verify readability of grub.cfg.new.
2693
27f21a8b
VS
26942010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2695
2696 Split minix.mod into minix.mod and minix2.mod.
2697
2698 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
2699 * grub-core/Makefile.core.def (minix2): New module.
2700 * grub-core/fs/minix.c: Use definitions instead of runtime version
2701 checking.
2702 * grub-core/fs/minix2.c: New file.
2703
c0e53ea5
YB
27042010-09-08 Yves Blusseau <blusseau@zetam.org>
2705
2706 Add new --boot-directory option to replace --root-directory
2707
2708 * util/grub-install.in: Add new --boot-directory option
2709 * util/grub-reboot.in: Likewise.
2710 * util/grub-set-default.in: Likewise.
2711
b9fe6ea2
YB
27122010-09-08 Yves Blusseau <blusseau@zetam.org>
2713
2714 * util/grub-mkconfig.in: Use new variable.
2715
d87aedff
YB
27162010-09-08 Yves Blusseau <blusseau@zetam.org>
2717
2718 * configure.ac: Define some useful variables.
2719
e55e8495
VS
27202010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2723 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
2724 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
2725 Use terminfo and don't use cursor-on/cursor-off unless it's known
2726 to work.
2727 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
2728 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
2729
6fa6d675
CW
27302010-09-08 Colin Watson <cjwatson@ubuntu.com>
2731
2732 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
2733 starts with "(,", fill the drive containing the loaded image in
2734 between those two characters, but expect that a full partition
2735 specification including partition map names will follow.
2736
92f2aef0
RM
27372010-09-08 Robert Millan <rmh@gnu.org>
2738
2739 * configure.ac: Remove `--enable-grub-fstest' option.
2740 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
2741
2742 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
2743 `grub-fstest' instead of `grub-probe' for readability verification.
2744 * util/grub-probe.c (probe): Remove readability verification kludge.
2745
99fd620d
RM
27462010-09-08 Robert Millan <rmh@gnu.org>
2747
2748 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
2749 initializing `GRUB_FS'.
2750
058e30ac 27512010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
2752
2753 Not command (!) support to GRUB script.
2754
2755 * tests/grub_script_not.in: New test.
2756 * Makefile.util.def: Rules for new test.
2757
2758 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2759 ! command as a special case.
2760 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
2761
b61d05ed 27622010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2763
058e30ac 2764 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
2765 grub_free.
b61d05ed 2766
4d69c786 27672010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2768
2769 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
2770
aa3119c4 27712010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2772
2773 * docs/grub.texi (Shell-like scripting): Documentation for break,
2774 continue, shift and return commands.
2775
db0f7e3d
VS
27762010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
2777
2778 Rename CD-ROM to cd on BIOS.
2779
2780 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
2781 "cd".
2782 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
2783
88b87c93
VS
27842010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2785
2786 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
2787 * util/grub-probe.c (main): Likewise.
2788 * util/i386/pc/grub-setup.c (main): Likewise.
2789 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2790 Reported and debugged by: alexxy
2791
294f324d
VS
27922010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2793
2794 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
2795 diagnostic info.
2796
d7ee3441
JS
27972010-09-05 Jo Shields <directhex@apebox.org>
2798
2799 * util/grub.d/30_os-prober.in: Add missing classes.
2800
d7e06c1f
VS
28012010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2802
2803 * docs/grub.texi (Theme file format): Document new position format.
2804
fc157e53
VS
28052010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2806
2807 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
2808 a table. Use @code instead of @verbatim.
2809
506e9a1c
CB
28102010-09-05 Colin D Bennett <colin@gibibit.com>
2811
2812 Gfxmenu documentation.
2813
2814 * docs/grub.texi (Theme file format): New chapter.
2815
f0aff67c
SJ
28162010-09-05 Szymon Janc <szymon@janc.net.pl>
2817
2818 * grub-core/Makefile.core.def (xzio): New module.
2819 * grub-core/io/xzio.c: New file.
2820 * grub-core/lib/xzembed/xz.h: New file (from xembed).
2821 * grub-core/lib/xzembed/xz_config.h: Likewise.
2822 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
2823 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
2824 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
2825 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
2826 * grub-core/lib/xzembed/xz_private.h: Likewise.
2827 * grub-core/lib/xzembed/xz_stream.h: Likewise.
2828 * include/grub/file.h (grub_file_filter_id): New compression filter
2829 GRUB_FILE_FILTER_XZIO.
2830
82a85062
VS
28312010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
2834 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
2835 size.
2836
3579415d
VS
28372010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2838
2839 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
2840 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
2841
5124ae6d
VS
28422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2843
2844 Uncompressed checksum support.
2845
2846 * grub-core/commands/hashsum.c (options): Add option --uncompress.
2847 (check_list): New parameter uncompress.
2848 (grub_cmd_hashsum): Handle --uncompress.
2849
9aadb3d1
VS
28502010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2851
2852 Reintroduce testload.
2853
2854 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
2855 from here ...
2856 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
2857 (GRUB_MOD_INIT): New function.
2858 (GRUB_MOD_FINI): Likewise.
2859 * grub-core/Makefile.core.def (testload): New module.
2860
a17792c3
SJ
28612010-09-05 Szymon Janc <szymon@janc.net.pl>
2862
2863 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
2864 (uint8_t): New type.
2865 (uint16_t): Likewise.
2866 (uint32_t): Likewise.
2867 (uint64_t): Likewise.
2868
b81e40a3
SJ
28692010-09-05 Szymon Janc <szymon@janc.net.pl>
2870
2871 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
2872
fc2ef117
VS
28732010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2874
2875 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
2876 Made static.
2877 (grub_gzfile_open): Removed. All users updated.
2878 (GRUB_MOD_INIT): New function.
2879 (GRUB_MOD_FINI): Likewise.
2880 * grub-core/kern/file.c (grub_file_filters_all): New variable.
2881 (grub_file_filters_enabled): Likewise.
2882 (grub_file_open): Handle filters.
2883 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
2884 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
2885 * include/grub/file.h (grub_file_filter_id_t): New type.
2886 (grub_file_filter_t): Likewise.
2887 (grub_file_filters_all): New extern variable.
2888 (grub_file_filters_enabled): Likewise.
2889 (grub_file_filter_register): New inline function.
2890 (grub_file_filter_unregister): Likewise.
2891 (grub_file_filter_disable): Likewise.
2892 (grub_file_filter_disable_compression): Likewise.
2893 * include/grub/gzio.h: Removed.
2894
35ee15e0
BC
28952010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2896
2897 Filename expansion support for wildcards in GRUB script.
2898
2899 * tests/grub_script_expansion.in: New test.
2900 * Makefile.util.def: Rule for new test.
2901
2902 * grub-core/commands/wildcard.c: New file, implements filename
2903 expansion support for GRUB script.
2904 * grub-core/Makefile.core.def: Rule update for regexp.mod.
2905 * grub-core/script/argv.c: Cosmetic changes.
2906 * grub-core/script/execute.c (grub_script_arglist_to_argv):
2907 Refactored to perform wildcard expansion on arguments.
2908 * include/grub/script_sh.h (grub_script_wildcard_translator): New
2909 struct.
2910
2911 * tests/util/grub-shell.in: Fix quoting for read input.
2912
5f0c4aca
BC
29132010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2914
2915 Support for updating environment variables with matched substrings
2916 of regexp.
2917
2918 * tests/grub_cmd_regexp.in: New test.
2919 * Makefile.util.def: Rule for new test.
2920
2921 * grub-core/commands/regexp.c: New option -s to update environment
2922 variables with regexp matches.
2923
3759a35f
SJ
29242010-09-04 Szymon Janc <szymon@janc.net.pl>
2925
2926 * include/grub/file.h (grub_file): New member not_easly_seekable.
2927 (grub_file_seekable): New inline function.
2928 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
2929 easily seekable.
2930 (grub_gzio_open): Set not_easly_seekable.
2931 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
2932 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
2933
ed8c6dec
BC
29342010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2935
2936 Support for options to appear multiple times on cmdline.
2937
2938 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
2939 * grub-core/commands/extcmd.c: Support for repeatable option.
2940 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
2941 repeatable option support.
2942
2943 Refactor menuentry into a regular command.
2944
2945 * grub-core/commands/menuentry.c: New file, menuentry command
2946 implementation.
2947 * grub-core/Makefile.core.def: Rule update for normal.mod.
2948 * grub-core/normal/main.c: Moved menuentry creation to
2949 grub-core/commands/menuentry.c.
2950 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
2951 (grub_menu_execute_entry_real): Removed.
2952 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
2953 function.
2954 (grub_script_execute_menuentry): Removed.
2955 * grub-core/script/parser.y (menuentry): Removed.
2956 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
2957 * grub-core/script/yylex.l (menuentry): Removed.
2958 * include/grub/menu.h (grub_menu_init): New prototype.
2959 (grub_menu_fini): New prototype.
2960 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
2961 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
2962 (grub_script_execute_sourcecode): New prototype.
2963
dacd0cf0
BC
29642010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2965
2966 "return" command for GRUB script functions.
2967
2968 * tests/grub_script_return.in: New test.
2969 * Makefile.util.def: Rules for new test.
2970
2971 * grub-core/script/execute.c (grub_script_return): New function.
2972 * grub-core/script/main.c: Register/unregister return commaond.
2973 * include/grub/script_sh.h (grub_script_return): New prototype.
2974
52e72f9d
BC
29752010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2976
2977 "setparams" command to update positional parameters.
2978
2979 * tests/grub_script_setparams.in: New test.
2980 * Makefile.util.def: Rules for new test.
2981
2982 * grub-core/script/argv.c (grub_script_argv_make): New function.
2983 * grub-core/script/execute.c (replace_scope): New function.
2984 (grub_script_setparams): New function.
2985 * grub-core/script/lexer.c: Remove unused variables.
2986 * grub-core/script/main.c: Register/unregister setparams command.
2987 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
2988 (grub_script_setparams): New prototype.
2989
25b60c91
BC
29902010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2991
2992 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
2993 grub_free order.
2994
37e7bf68
BC
29952010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2996
2997 Support for passing block of commands as an argument to extcmds.
2998
2999 * Makefile.util.def: Rules for new test.
3000 * tests/grub_script_blockarg.in: New test.
3001 * grub-core/tests/test_blockarg.c: New file, block argument
3002 command used in the test.
3003
3004 * include/grub/extcmd.h (grub_extcmd_context): New struct.
3005 (grub_register_extcmd_prio): New function prototype.
3006 (grub_extcmd_dispatcher): New function prototype.
3007 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
3008 type.
3009 * include/grub/script_sh.h (struct grub_script): New members
3010 `children', `next_siblings' and `refcnt' for block arguments and
3011 reference counting.
3012 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
3013 (grub_script_arg): New member `script' for block argument.
3014 (grub_script_argv): New member `script' for block argument.
3015 (grub_parser_param): New member `scripts' for block argument.
3016 (grub_script_mem_free): New extern function prototype.
3017 (grub_script_ref): New function prototype.
3018 (grub_script_unref): New function prototype.
3019
3020 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
3021 extcmd form to support block arguments.
3022 * grub-core/script/argv.c: Block arguments support.
3023 * grub-core/script/execute.c: Likewise.
3024 * grub-core/script/lexer.c: Likewise.
3025 * grub-core/script/main.c: Likewise.
3026 * grub-core/script/script.c: Likewise.
3027 * grub-core/script/parser.y: Likewise. New `block' and `block0'
3028 non-terminals.
3029
3030 * grub-core/commands/acpi.c: Update extcmd implementations with
3031 grub_extcmd_context_t.
3032 * grub-core/commands/cat.c: Likewise.
3033 * grub-core/commands/echo.c: Likewise.
3034 * grub-core/commands/extcmd.c: Likewise.
3035 * grub-core/commands/hashsum.c: Likewise.
3036 * grub-core/commands/hdparm.c: Likewise.
3037 * grub-core/commands/help.c: Likewise.
3038 * grub-core/commands/hexdump.c: Likewise.
3039 * grub-core/commands/i386/cpuid.c: Likewise.
3040 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3041 * grub-core/commands/i386/pc/halt.c: Likewise.
3042 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3043 * grub-core/commands/iorw.c: Likewise.
3044 * grub-core/commands/keystatus.c: Likewise.
3045 * grub-core/commands/loadenv.c: Likewise.
3046 * grub-core/commands/ls.c: Likewise.
3047 * grub-core/commands/lspci.c: Likewise.
3048 * grub-core/commands/memrw.c: Likewise.
3049 * grub-core/commands/probe.c: Likewise.
3050 * grub-core/commands/search_wrap.c: Likewise.
3051 * grub-core/commands/setpci.c: Likewise.
3052 * grub-core/commands/sleep.c: Likewise.
3053 * grub-core/disk/loopback.c: Likewise.
3054 * grub-core/hello/hello.c: Likewise.
3055 * grub-core/loader/i386/bsd.c: Likewise.
3056 * grub-core/loader/xnu.c: Likewise.
3057 * grub-core/term/gfxterm.c: Likewise.
3058 * grub-core/term/serial.c: Likewise.
3059 * grub-core/tests/lib/functional_test.c: Likewise.
3060
888d1500
BC
30612010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3062
3063 Multi-line quoted strings support.
3064
3065 * grub-core/script/lexer.c (append_newline): Removed.
3066 (grub_script_lexer_yywrap): Refactored.
3067 (grub_script_lexer_init): Refactored.
3068 * grub-core/script/yylex.l (yywrap): New function.
3069 (grub_lexer_resplit): New function.
3070 (grub_lexer_unput): New function.
3071 * include/grub/script_sh.h (grub_lexer_param): New members, unput
3072 and resplit.
3073 * tests/grub_script_echo1.in: Added few more testcases.
3074
dda060dd
VS
30752010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
3076
3077 * grub-core/kern/misc.c: Don't add abort alias in utils.
3078 Reported by: echoline.
3079
6556eba9
BC
30802010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
3081
3082 Add missing files into "make dist" tarball for other platforms.
3083
3084 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
3085 * conf/Makefile.common (dist_noinst_DATA): New variable.
3086 * conf/Makefile.extra-dist: Added missing make dist files.
3087 * grub-core/Makefile.core.def: Likewise.
3088
c8e7bf5f
VS
30892010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
3090
3091 Compress grub_prefix.
3092
3093 * grub-core/boot/i386/pc/lnxboot.S: Use
3094 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
3095 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
3096 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
3097 GRUB_MACHINE_PREFIX_END. All users updated.
3098 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
3099 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
3100 + 0x40.
3101 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
3102 * util/grub-mkimage.c (image_target_desc): Change data_end to
3103 prefix_end. All users updated.
3104
a7c00cdb
VS
31052010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
3106
3107 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
3108 value.
3109 (grub_openbsd_boot): Likewise.
3110 (grub_netbsd_boot): Likewise.
3111 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
3112 (grub_xnu_boot): Likewise.
3113
9f915872
VS
31142010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 * configure.ac: Clean LIBS variable after tests.
3117
efa1bee7
CW
31182010-09-02 Colin Watson <cjwatson@ubuntu.com>
3119
3120 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
3121
61d720e5
VS
31222010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3123
3124 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
3125 echo if libdevmapper will be used.
3126
ef8e0ec8
IT
31272010-09-02 Ian Turner <Ian.Turner@deshaw.com>
3128
3129 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
3130 constant for the same file.
3131
03e261d8
VS
31322010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3133
3134 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
3135
c2a4eba6
CW
31362010-09-02 Colin Watson <cjwatson@ubuntu.com>
3137
3138 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
3139 grub-core/*.pp.
3140
9056cbf3
CW
31412010-09-02 Colin Watson <cjwatson@ubuntu.com>
3142
3143 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
3144 required by the boot protocol.
3145
3146 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
3147 ebp and edi members.
3148 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
3149 state.ebp and state.edi.
3150 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
3151 %ebp and %edi according to grub_relocator32_ebp and
3152 grub_relocator32_edi respectively.
3153 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
3154 and state.edi.
3155
529cc99a
VS
31562010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3157
3158 Add i386-pc-pxe image target.
3159
3160 * util/grub-mkimage.c (image_target_desc): New enum value
3161 IMAGE_I386_PC_PXE.
3162 (image_targets): New target i386-pc-pxe.
3163 (generate_image): Handle i386-pc-pxe image.
3164
9a093920
VS
31652010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3166
3167 Fix grub_pxe_scan.
3168
3169 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
3170 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
3171 All users updated.
3172 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
3173 (grub_pxe_pxenv): Correct type.
3174
f9cefc4e
CW
31752010-09-01 Colin Watson <cjwatson@ubuntu.com>
3176
3177 * NEWS: Document most of the important changes since 1.98.
3178
4066f57f
CW
31792010-09-01 Colin Watson <cjwatson@ubuntu.com>
3180
3181 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
3182 generated manual page) a little.
3183
da2891f9
CW
31842010-09-01 Colin Watson <cjwatson@ubuntu.com>
3185
3186 * docs/grub.texi: Add myself as an author.
3187
ad717fae
VS
31882010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * Makefile.util.def (libgrub.a): Add missing sunpc.
3191 Reported by: Seth Goldberg.
3192
eefe8abd
VS
31932010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3194
3195 Interrupt wrapping and code simplifications.
3196
9494ef9a
VS
3197 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
3198 x86_noieee1275 which are functionaly equivalent in this case.
3199 (grub-install): Make source on each platform explicit. Enable on
3200 all noemu.
3201 * gentpl.py (x86_efi_pc): Removed group.
3202 (x86_noefi): Likewise.
3203 (i386_noefi): Likewise.
3204 (x86_noieee1275): Likewise.
3205 (i386_noieee1275): Likewise.
3206 (i386_noefi_noieee1275): Likewise.
3207 (i386_pc_qemu_coreboot): Likewise.
3208 (i386_coreboot_multiboot): Likewise.
3209 (i386_pc_coreboot_multiboot_qemu): Likewise.
3210 (x86_noefi_mips): Likewise.
3211 (noieee1275): Likewise.
3212 (ieee1275_mips): Likewise.
3213 (noemu_noieee1275): Likewise.
3214 (cmos): New group.
3215 (usb): Likewise.
3216 (videoinkernel): Likewise.
3217 (videomodules): Likewise.
eefe8abd 3218 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
3219 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
3220 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
3221 include/grub/loader.h, include/grub/msdos_partition.h,
3222 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
3223 include/grub/machine/console.h, include/grub/machine/vga.h,
3224 include/grub/machine/vbe.h, include/grub/machine/init.h,
3225 include/grub/machine/kernel.h, include/grub/cpu/time.h,
3226 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 3227 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
3228 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
3229 * grub-core/Makefile.core.def (kernel): Explicit the source for
3230 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
3231 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
3232 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
3233 Use videoinkernel tag.
3234 (usb): Enable on all usb.
3235 (usbserial_common): Likewise.
3236 (usbserial_pl2303): Likewise.
3237 (usbserial_ftdi): Likewise.
3238 (uhci): Enable on all x86.
3239 (ohci): Enable on all pci.
3240 (cmostest): Enable on all CMOS.
3241 (acpi): Include commands/acpi.c on all platforms.
3242 (halt): Add relevant lib/*/halt.c.
3243 (hdparm): Enable on all pci.
3244 (lspci): Likewise.
3245 (usbtest): Enable on all usb.
3246 (ata): Enable on all pci.
3247 (ata_pthru): Likewise.
3248 (usbms): Enable on all usb.
3249 (usb_keyboard): Likewise.
3250 (font): Use tag videomodules.
3251 (bufio): Likewise.
3252 (datetime): Use tag cmos. Enable on all noemu.
3253 (mmap): Use tags common and x86.
3254 (gfxterm): Use tag videomodules.
3255 (bitmap): Likewise.
3256 (bitmap_scale): Likewise.
3257 (video_fb): Likewise.
3258 (video): Likewise.
3259 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
3260 adjust padding accordingly. All users updated.
3261 (grub_ohci_transaction): Fix bad format specification.
3262 (GRUB_MOD_INIT): Add asserts for struct size.
3263 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
3264 (grub_alloc_td): Likewise.
3265 (grub_free_queue): Likewise.
3266 (grub_uhci_transfer): Likewise.
3267 (grub_uhci_transaction): Fix bad format specification.
3268 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
3269 (grub_usb_bulk_readwrite): Likewise.
3270 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
3271 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
3272 Made static.
3273 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
3274 Made static.
3275 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
3276 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
3277 Transformed into C.
3278 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
3279 Moved from here ...
3280 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
3281 ... here. Transformed into C. Made static.
3282 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
3283 Moved from here ...
3284 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
3285 ... here. Transformed into C. Made static.
3286 * grub-core/kern/i386/pc/startup.S
3287 (grub_biosdisk_check_int13_extensions): Moved from here ...
3288 * grub-core/disk/i386/pc/biosdisk.c
3289 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
3290 Made static.
3291 * grub-core/kern/i386/pc/startup.S
3292 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
3293 * grub-core/disk/i386/pc/biosdisk.c
3294 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
3295 Transformed into C. Made static.
3296 * grub-core/kern/i386/pc/startup.S
3297 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
3298 * grub-core/disk/i386/pc/biosdisk.c
3299 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
3300 Transformed into C. Made static.
3301 * grub-core/kern/i386/pc/startup.S
3302 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
3303 * grub-core/disk/i386/pc/biosdisk.c
3304 (grub_biosdisk_get_diskinfo_standard): ... here.
3305 Transformed into C. Made static.
3306 * grub-core/kern/i386/pc/startup.S
3307 (grub_biosdisk_get_num_floppies): Moved from here ...
3308 * grub-core/disk/i386/pc/biosdisk.c
3309 (grub_biosdisk_get_num_floppies): ... here.
3310 Transformed into C. Made static.
3311 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
3312 New function.
3313 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
3314 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
3315 Transformed into C. Made static.
3316 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
3317 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
3318 Transformed into C. Made static.
3319 * grub-core/kern/i386/ieee1275/init.c: Removed.
3320 * grub-core/kern/i386/misc.S: Likewise.
3321 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
3322 Splitted from here ...
3323 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
3324 Transformed into C. Made static. All users updated.
3325 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
3326 Transformed into C. Made static. All users updated.
3327 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
3328 Moved from here...
3329 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
3330 Transformed into C. Made static. All users updated.
3331 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
3332 Moved from here...
3333 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
3334 Transformed into C. Made static. All users updated.
3335 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
3336 Removed (replaced by C version).
3337 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
3338 Moved from here...
3339 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
3340 Transformed into C. Made static.
3341 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
3342 Moved from here...
3343 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
3344 ... here. Transformed into C.
3345 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
3346 Moved from here...
3347 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
3348 ... here. Transformed into C.
3349 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
3350 Moved from here...
3351 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
3352 ... here. Transformed into C. Made static.
3353 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
3354 Moved from here...
3355 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
3356 ... here. Transformed into C.
21ed554b
VS
3357 * grub-core/kern/i386/pc/startup.S
3358 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
3359 * grub-core/video/i386/pc/vbe.c
3360 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
3361 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
3362 Moved from here...
3363 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
3364 ... here. Transformed into C.
3365 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
3366 Moved from here...
3367 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
3368 ... here. Transformed into C.
3369 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
3370 Moved from here...
3371 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
3372 ... here. Transformed into C.
3373 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
3374 Moved from here...
3375 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
3376 ... here. Transformed into C.
3377 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
3378 Moved from here...
3379 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
3380 ... here. Transformed into C. Made static.
3381 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
3382 Moved from here...
3383 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
3384 ... here. Transformed into C. Made static.
3385 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
3386 Moved from here...
3387 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
3388 ... here. Transformed into C. Made static.
3389 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
3390 pxe_rm_entry as third argument.
3391 (grub_bios_interrupt): New function.
3392 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
3393 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
3394 of calling grub_stop.
3395 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
3396 * grub-core/lib/efi/halt.c (grub_halt): ...here.
3397 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
3398 * grub-core/lib/emu/halt.c (grub_halt): ... here.
3399 * grub-core/lib/i386/halt.c: Moved from here ...
3400 * grub-core/lib/i386/halt.c: ... here.
3401 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
3402 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
3403 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
3404 grub_stop_floppy.
3405 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
3406 * include/grub/i386/coreboot/init.h: Removed.
3407 * include/grub/i386/multiboot/init.h: Likewise.
3408 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
3409 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
3410 * include/grub/i386/pc/int.h: New file.
3411 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
3412 (grub_pxe_scan): Removed.
3413 (grub_pxe_call): Update prototype.
3414 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
3415 prototypes.
3416 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
3417 * include/grub/i386/qemu/init.h: Removed.
3418 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
3419 noreturn.
3420 (grub_halt): Likewise.
3421 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
3422 (grub_reboot): Likewise.
3423 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
3424 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
3425 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
3426
215dd471
RM
34272010-08-30 Robert Millan <rmh@gnu.org>
3428
3429 * NEWS: Document addition of ZFS support in `grub-install' and
3430 `grub-mkconfig'.
3431
ebd65b82
BC
34322010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
3433
3434 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
3435 dprintf output.
3436
11721d19
VS
34372010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3438
3439 Remove leftover embedding of font objects.
3440
3441 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3442 * util/grub-install.in (font): Removed.
3443 * util/grub-mkimage.c (generate_image): Remove font support. All users
3444 updated.
3445
37837d4e
VS
34462010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3447
3448 Remove leftover embedding of font objects.
3449
3450 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3451 * util/grub-install.in (font): Removed.
3452 * util/grub-mkimage.c (generate_image): Remove font support. All users
3453 updated.
3454
b4c1aae0
VS
34552010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3456
3457 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 3458 Reported by: Ian Turner
b4c1aae0 3459
8920a08d
VS
34602010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3461
3462 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
3463 timeout to avoid indefinite boot stalling.
3464
f21db033
VS
34652010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3466
3467 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
3468 (grub_env_write_color_highlight): Likewise.
3469
9a9de209
VS
34702010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3471
3472 * grub-core/normal/term.c (print_more): Return to normal and not
3473 to standard state after printing "---MORE---".
3474
3dca01d7
VS
34752010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3476
3477 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
3478 Mask out the bit 0x80 since it has other meaning that specifiing color.
3479
0b986c40
VS
34802010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 New relocator. Allows for more kernel support and more straightforward
3483 loader writing.
3484
3485 * Makefile.am (BOOTTARGET): New variable.
3486 (QEMU32): Likewise.
3487 (linux.init.x86_64): New target.
3488 (linux.init.i386): Likewise.
3489 (multiboot.elf): Likewise.
3490 (kfreebsd.elf): Likewise.
3491 (kfreebsd.aout): Likewise.
3492 (pc-chainloader.elf): Likewise.
3493 (pc-chainloader.bin): Likewise.
3494 (ntldr.elf): Likewise.
3495 (ntldr.bin): Likewise.
3496 (multiboot2.elf): Likewise.
3497 (kfreebsd.init.x86_64): Likewise.
3498 (kfreebsd.init.i386): Likewise.
3499 (knetbsd.init.i386): Likewise.
3500 (kopenbsd.init.i386): Likewise.
3501 (knetbsd.init.x86_64): Likewise.
3502 (kopenbsd.init.x86_64): Likewise.
3503 (linux-initramfs.i386): Likewise.
3504 (linux-initramfs.x86_64): Likewise.
3505 (kfreebsd-mfsroot.i386.img): Likewise.
3506 (knetbsd.image.i386): Likewise.
3507 (kopenbsd.image.i386): Likewise.
3508 (kopenbsd.image.x86_64): Likewise.
3509 (knetbsd.miniroot-image.i386.img): Likewise.
3510 (kfreebsd-mfsroot.x86_64.img): Likewise.
3511 (knetbsd.image.x86_64): Likewise.
3512 (knetbsd.miniroot-image.x86_64.img): Likewise.
3513 (kfreebsd-mfsroot.i386.gz): Likewise.
3514 (bootcheck-kfreebsd-i386): Likewise.
3515 (kfreebsd-mfsroot.x86_64.gz): Likewise.
3516 (bootcheck-kfreebsd-x86_64): Likewise.
3517 (knetbsd.miniroot-image.i386.gz): Likewise.
3518 (bootcheck-knetbsd-i386): Likewise.
3519 (bootcheck-kopenbsd-i386): Likewise.
3520 (bootcheck-kopenbsd-x86_64): Likewise.
3521 (knetbsd.miniroot-image.x86_64.gz): Likewise.
3522 (bootcheck-knetbsd-x86_64): Likewise.
3523 (bootcheck-linux-i386): Likewise.
3524 (bootcheck-linux-x86_64): Likewise.
3525 (bootcheck-linux16-i386): Likewise.
3526 (bootcheck-linux16-x86_64): Likewise.
3527 (bootcheck-multiboot): Likewise.
3528 (bootcheck-multiboot2): Likewise.
3529 (bootcheck-kfreebsd-aout): Likewise.
3530 (bootcheck-pc-chainloader): Likewise.
3531 (bootcheck-ntldr): Likewise.
3532 (CLEANFILES): Add new targets.
3533 (BOOTCHECKS): New variable.
3534 (.PHONY): Add bootchecks.
3535 (SUCCESSFUL_BOOT_STRING): New variable.
3536 (BOOTCHECK_TIMEOUT): Likewise.
3537 (bootcheck): New target
3538 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
3539 * configure.ac: Correct efiemu excuse.
3540 * docs/grub.texi (Supported kernels): New chapter.
3541 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
3542 include/grub/mm_private.h. Simplify inclusion of
3543 include/grub/boot.h, include/grub/loader.h
3544 and include/grub/msdos_partition.h
3545 (KERNEL_HEADER_FILES) [i386_coreboot]:
3546 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
3547 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
3548 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
3549 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
3550 include/grub/machine/loader.h.
3551 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
3552 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
3553 extra_dist.
3554 (pci.mod): Enable on i386-multiboot.
3555 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
3556 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
3557 i386-qemu.
3558 (relocator.mod): Rewritten.
3559 (aout.mod): Enable on all x86.
3560 (bsd.mod): Likewise.
3561 (ntldr.mod): New module.
3562 (linux.mod): Use loader/i386/linux.c on all x86.
3563 (xnu.mod): Enable on all x86.
3564 (vga_text.mod): disable on EFI and QEMU.
3565 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
3566 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
3567 * grub-core/efiemu/loadcore.c: Likewise.
3568 * grub-core/efiemu/main.c: Likewise.
3569 (grub_efiemu_exit_boot_services): Removed.
3570 (grub_efiemu_finish_boot_services): Likewise.
3571 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
3572 function.
3573 * grub-core/efiemu/i386/nocfgtables.c: New file.
3574 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
3575 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
3576 (grub_efi_finish_boot_services): Moved from here ...
3577 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
3578 Fille finish memory map and related data.
3579 (finish_mmap_buf): New variable.
3580 (grub_efi_uintn_t finish_mmap_size): Likewise.
3581 (grub_efi_uintn_t finish_key): Likewise.
3582 (grub_efi_uintn_t finish_desc_size): Likewise.
3583 (grub_efi_uint32_t finish_desc_version): Likewise.
3584 (grub_efi_is_finished): Likewise.
3585 (grub_efi_get_memory_map): Use saved memory map if EFI is already
3586 finished.
3587 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
3588 (grub_elf64_phdr_iterate): Likewise.
3589 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
3590 (grub_os_area_size): Likewise.
3591 (grub_machine_init): Don't reserve os area.
3592 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
3593 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3594 * grub-core/kern/i386/loader.S: Removed.
3595 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
3596 (grub_os_area_size): Likewise.
3597 (grub_machine_init): Don't reserve os area.
3598 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3599 Don't call grub_dl_unload_all.
3600 Don't include loader.S.
3601 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3602 Declare the memory after _end as available.
3603 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 3604 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 3605 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
3606 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
3607 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
3608 * include/grub/mm_private.h (grub_mm_header): ... here.
3609 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
3610 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
3611 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
3612 (grub_mm_region): ..here. Removed addr. Added pre_size.
3613 All users updated.
3614 * grub-core/kern/mm.c (base): Renamed to ...
3615 (grub_mm_base): ... this. Made global.
3616 (grub_real_malloc): Alloc from end of region.
3617 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
3618 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
3619 * grub-core/kern/powerpc/cache_flush.S: ... here.
3620 * grub-core/lib/efi/relocator.c: New file.
3621 * grub-core/lib/i386/relocator.c: Rewritten.
3622 * grub-core/lib/i386/relocator16.S: New file.
3623 * grub-core/lib/i386/relocator32.S: Likewise.
3624 * grub-core/lib/i386/relocator64.S: Likewise.
3625 * grub-core/lib/i386/relocator_asm.S: Rewritten.
3626 * grub-core/lib/i386/relocator_common.S: New file.
3627 * grub-core/lib/ieee1275/relocator.c: Likewise.
3628 * grub-core/lib/mips/relocator.c: Rewritten.
3629 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
3630 stylistic adjustments.
3631 * grub-core/lib/powerpc/relocator.c: New file.
3632 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
3633 * grub-core/lib/relocator.c: Rewritten.
3634 * grub-core/lib/x86_64/relocator_asm.S: New file.
3635 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
3636 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
3637 (bsd_tag): New struct.
3638 (tags): New variable.
3639 (tags_last): Likewise.
3640 (netbsd_module): New struct.
3641 (netbsd_mods): New variable.
3642 (netbsd_mods_last): Likewise.
3643 (openbsd_opts): New parameter "serial".
3644 (OPENBSD_SERIAL_ARG): New definition.
3645 (netbsd_opts): New parameter "serial".
3646 (NETBSD_SERIAL_ARG): New definition.
3647 (grub_freebsd_add_meta): Reorganised into ...
3648 (grub_bsd_add_meta): ...this. All users updated.
3649 (grub_freebsd_add_mmap): Reorganised into ...
3650 (generate_e820_mmap): ...this...
3651 (grub_bsd_add_mmap): ...and this. All users updated.
3652 (grub_freebsd_list_modules): Use tags.
3653 (grub_netbsd_add_meta_module): New function.
3654 (grub_netbsd_list_modules): Likewise.
3655 (grub_freebsd_boot): Use relocator and finish EFI.
3656 (grub_openbsd_boot): Likewise.
3657 (grub_netbsd_setup_video): New function.
3658 (grub_netbsd_add_modules): Likewise.
3659 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
3660 and finish EFI.
3661 (grub_bsd_unload): Unload tags.
3662 (grub_bsd_load_aout): Use relocator.
3663 (grub_bsd_elf32_size_hook): New function.
3664 (grub_bsd_elf32_hook): Use relocator.
3665 (grub_bsd_elf64_size_hook): New function.
3666 (grub_bsd_elf64_hook): Use relocator.
3667 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
3668 (grub_bsd_load): Zero-out openbsd_ramdisk.
3669 (grub_bsd_load): Use relocator.
3670 (grub_cmd_openbsd): Support serial.
3671 (grub_cmd_netbsd): Support modules.
3672 (grub_cmd_freebsd_module): Use relocator.
3673 (grub_netbsd_module_load): New function.
3674 (grub_cmd_netbsd_module): Likewise.
3675 (grub_cmd_openbsd_ramdisk): Likewise.
3676 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
3677 kopenbsd_ramdisk.
3678 (GRUB_MOD_FINI): Unregister new commands.
3679 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
3680 (grub_freebsd_load_elfmodule_obj): Use relocator.
3681 (grub_freebsd_load_elfmodule): Likewise.
3682 (grub_freebsd_load_elf_meta): Likewise.
3683 (grub_netbsd_load_elf_meta): New function.
3684 (grub_openbsd_find_ramdisk): Likewise.
3685 * grub-core/loader/i386/bsd_helper.S: Removed.
3686 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
3687 * grub-core/loader/i386/bsd_trampoline.S: Removed.
3688 * grub-core/loader/i386/efi/linux.c: Likewise.
3689 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
3690 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
3691 (DEFAULT_VIDEO_MODE): Likewise.
3692 (real_mode_target): New variable.
3693 (prot_mode_target): Likewise.
3694 (initrd_mem_target): Likewise.
3695 (relocator): Likewise.
3696 (efi_mmap_buf): Likewise.
3697 (efi_mmap_size): Likewise.
3698 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
3699 (free_pages): Use relocator.
3700 (allocate_pages): Account for efi_mmap and use relocator. Return error.
3701 (grub_linux_setup_video): Return error.
3702 (grub_linux_trampoline_start): Removed.
3703 (grub_linux_trampoline_end): Likewise.
3704 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
3705 andd video parameters depending on firmware.
3706 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
3707 [GRUB_MACHINE_EFI]: Pass EFI parameters.
3708 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
3709 (grub_cmd_initrd): Use relocator.
3710 * grub-core/loader/i386/linux_trampoline.S: Removed.
3711 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
3712 (elf_sec_entsize): Likewise.
3713 (elf_sec_shstrndx): Likewise.
3714 (elf_sections): Likewise.
3715 (grub_multiboot_load): Use relocator.
3716 (grub_multiboot_get_mbi_size): Account for sections.
3717 (grub_multiboot_make_mbi): Use relocator and support sections.
3718 (grub_multiboot_add_elfsyms): New function.
3719 (grub_multiboot_free_mbi): Free sections.
3720 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
3721 (grub_linux_real_target): Likewise.
3722 (grub_linux_real_chunk): Likewise.
3723 (grub_linux16_prot_size): Likewise.
3724 (grub_linux16_boot): Use relocator.
3725 (grub_linux_unload): Unload relocator.
3726 (grub_cmd_linux): Use relocator.
3727 (grub_cmd_initrd): Likewise.
3728 * grub-core/loader/i386/pc/ntldr.c: New file.
3729 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
3730 Don't try to guess CPU frequency.
3731 (grub_xnu_set_video): Stretch bitmap.
3732 (grub_xnu_boot): Use relocator.
3733 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
3734 (grub_linux_unload): Free relocator.
3735 (grub_linux_load32): Use relocator.
3736 (grub_linux_load64): Likewise.
3737 (grub_cmd_initrd): Likewise.
3738 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
3739 (grub_multiboot_unload): Unload relocator.
3740 (grub_cmd_multiboot): Use relocator.
3741 (grub_cmd_module): Likewise.
3742 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
3743 Use relocator and support sections.
3744 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
3745 (elf_sec_entsize): Likewise.
3746 (elf_sec_shstrndx): Likewise.
3747 (elf_sections): Likewise.
3748 (grub_multiboot_load): Use relocator.
3749 (grub_multiboot_get_mbi_size): Account for sections.
3750 (grub_multiboot_make_mbi): Use relocator and support sections.
3751 (grub_multiboot_add_elfsyms): New function.
3752 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
3753 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
3754 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
3755 Prototype changed. All users updated.
3756 (grub_xnu_align_heap): Simplified.
3757 (grub_xnu_writetree_toheap): Likewise.
3758 (grub_xnu_unload): Unload relocator.
3759 (grub_cmd_xnu_kernel): Use relocator.
3760 (grub_cmd_xnu_kernel64): Likewise.
3761 (grub_xnu_register_memory): Simplified.
3762 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
3763 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
3764 EFI is finished.
3765 (grub_console_checkkey): Likewise.
3766 (grub_console_getkey): Likewise.
3767 (grub_console_getwh): Likewise.
3768 (grub_console_getxy): Likewise.
3769 (grub_console_gotoxy): Likewise.
3770 (grub_console_cls): Likewise.
3771 (grub_console_setcolorstate): Likewise.
3772 (grub_console_setcursor): Likewise.
3773 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
3774 * grub-core/tests/boot/kbsd.init-i386.S: New file.
3775 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
3776 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
3777 * grub-core/tests/boot/kernel-8086.S: Likewise.
3778 * grub-core/tests/boot/kernel-i386.S: Likewise.
3779 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
3780 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
3781 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
3782 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
3783 * grub-core/tests/boot/knetbsd.cfg: Likewise.
3784 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
3785 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
3786 * grub-core/tests/boot/linux.cfg: Likewise.
3787 * grub-core/tests/boot/linux.init-i386.S: Likewise.
3788 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
3789 * grub-core/tests/boot/linux16.cfg: Likewise.
3790 * grub-core/tests/boot/multiboot.cfg: Likewise.
3791 * grub-core/tests/boot/multiboot2.cfg: Likewise.
3792 * grub-core/tests/boot/ntldr.cfg: Likewise.
3793 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
3794 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
3795 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
3796 New definition.
3797 * include/grub/dl.h (grub_dl_unload_all): Removed.
3798 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
3799 (grub_efi_finish_boot_services): Change prototype.
3800 (grub_efi_is_finished): New variable.
3801 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
3802 Changed prototype.
3803 (grub_efiemu_finish_boot_services): Removed.
3804 (grub_machine_efiemu_init_tables): New prototype.
3805 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
3806 (grub_elf64_phdr_iterate): Likewise.
3807 * include/grub/i386/bsd.h: Include relocator.h.
3808 (freebsd_tag_header): New struct.
3809 (grub_openbsd_bios_mmap): Removed.
3810 (grub_unix_real_boot): Removed.
3811 (grub_freebsd_load_elfmodule32): Changed prototype.
3812 (grub_freebsd_load_elfmodule_obj64): Likewise.
3813 (grub_freebsd_load_elf_meta32): Likewise.
3814 (grub_freebsd_load_elf_meta64): Likewise.
3815 (grub_freebsd_add_meta): Removed.
3816 (grub_netbsd_load_elf_meta32): New prototype.
3817 (grub_netbsd_load_elf_meta64): Likewise.
3818 (grub_bsd_add_meta): Likewise.
3819 (grub_openbsd_ramdisk_descriptor): New struct.
3820 (grub_openbsd_find_ramdisk32): New prototype.
3821 (grub_openbsd_find_ramdisk64): Likewise.
3822 * include/grub/i386/coreboot/loader.h: Removed.
3823 * include/grub/i386/efi/loader.h: Likewise.
3824 * include/grub/i386/ieee1275/loader.h: Likewise.
3825 * include/grub/i386/linux.h (linux_kernel_header): Change void *
3826 to grub_uint32_t.
3827 * include/grub/i386/loader.h: Removed.
3828 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
3829 value.
3830 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
3831 (grub_phys_addr_t): New type.
3832 (grub_vtop): New inline function.
3833 (grub_map_memory): Likewise.
3834 (grub_unmap_memory): Likewise.
3835 * include/grub/i386/multiboot/loader.h: Removed.
3836 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
3837 (NETBSD_BTINFO_CONSOLE): New definition.
3838 (NETBSD_BTINFO_SYMTAB): Likewise.
3839 (NETBSD_BTINFO_MODULES): Likewise.
3840 (NETBSD_BTINFO_FRAMEBUF): Likewise.
3841 (grub_netbsd_bootinfo): New struct.
3842 (grub_netbsd_btinfo_common): Use explicit bitsize.
3843 (grub_netbsd_btinfo_mmap_entry): Removed.
3844 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
3845 (grub_netbsd_btinfo_bootdisk): New struct.
3846 (grub_netbsd_btinfo_symtab): Likewise.
3847 (grub_netbsd_btinfo_serial): Likewise.
3848 (grub_netbsd_btinfo_modules): Likewise.
3849 (grub_netbsd_btinfo_framebuf): Likewise.
3850 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
3851 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
3852 Likewise.
3853 (grub_openbsd_bootargs): Use explicit bitsize.
3854 (grub_openbsd_bootarg_console): New struct.
3855 (GRUB_OPENBSD_COM_MAJOR): New definition.
3856 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
3857 * include/grub/i386/pc/efiemu.h: Removed.
3858 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
3859 * include/grub/i386/qemu/loader.h: Removed.
3860 * include/grub/i386/relocator.h: Rewritten.
3861 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
3862 * include/grub/mips/memory.h: New file.
3863 * include/grub/mips/multiboot.h: Rewritten.
3864 * include/grub/mips/relocator.h: Rewritten.
3865 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
3866 (grub_vtop): New function.
3867 (grub_map_memory): Likewise.
3868 (grub_unmap_memory): Likewise.
3869 * include/grub/misc.h (ALIGN_DOWN): New definition.
3870 * include/grub/mm.h (grub_mm_check_real): New proto.
3871 (GRUB_MM_CHECK): New definition.
3872 * include/grub/mm_private.h: New file.
3873 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
3874 (grub_multiboot_get_mbi_size): Removed.
3875 (grub_multiboot_make_mbi): Change prottype.
3876 (grub_multiboot_set_accepts_video): New proto.
3877 (grub_multiboot_add_elfsyms): Likewise.
3878 (grub_multiboot_payload_eip): New variable.
3879 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
3880 New prototype.
3881 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
3882 New definition.
3883 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
3884 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
3885 * include/grub/powerpc/ieee1275/loader.h: Removed.
3886 * include/grub/powerpc/memory.h: New file.
3887 * include/grub/powerpc/relocator.h: Likewise.
3888 * include/grub/relocator.h: Likewise.
3889 * include/grub/relocator_private.h: Likewise.
3890 * include/grub/sparc64/ieee1275/loader.h: Removed.
3891 * include/grub/x86_64/memory.h: New file.
3892 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
3893 (grub_xnu_heap_malloc): Likewise.
3894 (grub_xnu_heap_real_start): Removed.
3895 (grub_xnu_heap_start): Likewise.
3896 (grub_xnu_relocator): New variable.
3897 (grub_xnu_heap_target_start): Likewise.
3898 * tests/util/grub-shell.in: Support non-pc.
3899 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 3900
5303b85d
VS
39012010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
3904 on malloc error.
3905 (grub_bidi_logical_to_visual): Check that malloc succeded.
3906 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
3907 puts.
3908 (grub_xputs_normal): Likewise.
3909
d768d159
VS
39102010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3911
3912 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
3913 extra_dist.
3914
39152010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/efiemu/runtime/efiemu.sh: Removed.
3918
5bf84df4
VS
39192010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3920
3921 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
3922
3626810e
VS
39232010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3924
3925 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
3926 dprintf.
3927
a7363f53
BC
39282010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
3929
3930 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
3931
902f75f6
VS
39322010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3933
3934 * grub-core/normal/term.c (print_more): Fix a memory leak.
3935 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
3936 (grub_xputs_normal): Likewise.
3937
3c707967
VS
39382010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3939
3940 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
3941 the begining of the string
3942
2053cc07
VS
39432010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3944
3945 * grub-core/script/script.c (grub_script_parse): Free parsed on
3946 failure.
3947
46422ebf
VS
39482010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3949
3950 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
3951 on failure.
3952
9e0fa3f6
VS
39532010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3954
3955 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
3956 return.
3957
3393cf16
VS
39582010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3959
3960 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
3961 (scroll_up): Fix a memory leak.
3962
b17540cb
VS
39632010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3964
3965 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
3966 errors.
3967
67140446
VS
39682010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
3969
3970 Handle USB pendrives exposed as floppies.
3971
3972 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
3973 floppy.
3974 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
3975 Check for partitions on all devices.
3976
e35e46fc
VS
39772010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
3978
3979 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
3980 (readkey): Likewise.
3981
d24c6190
BC
39822010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3983
3984 Multiple variable names support to "export" command.
3985
3986 * normal/context.c (grub_cmd_export): "export" command supports
3987 multiple variable names.
3988
04ddcc6a
ST
39892010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
3990
3991 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
3992 --target=drive output to Mach device name.
3993
0c8b61d8
BC
39942010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
3995
3996 New Automake based build system for GRUB.
3997
3998 * ABOUT-NLS: New file.
3999 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
4000 in Makefile.util.def file.
4001 * Makefile.util.def: New file. Autogen build definitions file for
4002 GRUB host utils.
4003 * conf/Makefile.common: New file. Common variables for GRUB host
4004 utils and target modules.
4005 * conf/Makefile.extra-dist: New file. Extra files for make dist.
4006 * docs/Makefile.am: New file. Automake file for docs.
4007 * gentpl.py: New file. Python script to generate Autogen
4008 template.
4009 * grub-core/Makefile.am: New file. GRUB target modules' rules
4010 that doesn't fit in Makefile.core.def file.
4011 * grub-core/Makefile.core.def: New file. Autogen build
4012 definitions file for GRUB target modules.
4013 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
4014 specific setjmp.S file.
4015 * po/Makefile.am: New file.
4016
4017 * .bzrignore: New ignores.
4018 * INSTALL: New requirements, without Ruby.
4019 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
4020 * autogen.sh: Updated to invoke autogen as necessary.
4021 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
4022 and defines for Automake conditionals.
4023 * geninit.sh: Refactoring.
4024
4025 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
4026 necessary.
4027 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
4028 New prototype.
4029
4030 * include/grub/test.h: Fix functional test modules' naming.
4031 * grub-core/tests/example_functional_test.c: Fix test module name.
4032
4033 * util/misc.c: Hosted versions' of grub functions for libgrub.a
4034 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
4035 * util/grub-editenv.c: Likewise.
4036 * util/grub-fstest.c: Likewise.
4037 * util/grub-mkdevicemap.c: Likewise.
4038 * util/grub-mkfont.c: Likewise.
4039 * util/grub-mkimage.c: Likewise.
4040 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4041 * util/grub-probe.c: Likewise.
4042 * util/grub-script-check.c: Likewise.
4043 * util/i386/pc/grub-setup.c: Likewise.
4044 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4045
4046 * tests/util/grub-shell.in: Fix override directory path.
4047 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
4048 * util/import_gcry.py: Create Makefile.gcry.def file instead.
4049
4050 * util/lvm.c: Update #includes.
4051 * util/raid.c: Likewise.
4052 * util/resolve.c: Likewise.
4053 * grub-core/bus/emu/pci.c: Likewise.
4054 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
4055 * grub-core/lib/posix_wrap/string.h: Likewise.
4056 * grub-core/kern/emu/main.c: Likewise.
4057
4058 * grub-core/gensymlist.sh: New file. Script for generating kernel
4059 symbols file.
4060 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
4061
4062 * grub-core/gentrigtables.c: Fix unused variable warnings.
4063
4064 * Makefile.in: Removed.
4065 * conf/any-emu.rmk: Removed.
4066 * conf/common.rmk: Removed.
4067 * conf/i386-coreboot.rmk: Removed.
4068 * conf/i386-efi.rmk: Removed.
4069 * conf/i386-ieee1275.rmk: Removed.
4070 * conf/i386-multiboot.rmk: Removed.
4071 * conf/i386-pc.rmk: Removed.
4072 * conf/i386-qemu.rmk: Removed.
4073 * conf/i386.rmk: Removed.
4074 * conf/mips-yeeloong.rmk: Removed.
4075 * conf/mips.rmk: Removed.
4076 * conf/powerpc-ieee1275.rmk: Removed.
4077 * conf/sparc64-ieee1275.rmk: Removed.
4078 * conf/tests.rmk: Removed.
4079 * conf/x86-efi.rmk: Removed.
4080 * conf/x86_64-efi.rmk: Removed.
4081 * gendistlist.sh: Removed.
4082 * geninitheader.sh: Removed.
4083 * genkernsyms.sh.in: Removed.
4084 * genmk.rb: Removed.
4085 * gensymlist.sh.in: Removed.
4086 * mkinstalldirs: Removed.
4087 * boot: Moved ...
4088 * grub-core/boot: ... to here.
4089 * bus: Moved ...
4090 * grub-core/bus: ... to here.
4091 * commands: Moved ...
4092 * grub-core/commands: ... to here.
4093 * disk: Moved ...
4094 * grub-core/disk: ... to here.
4095 * efiemu: Moved ...
4096 * grub-core/efiemu: ... to here.
4097 * font: Moved ...
4098 * grub-core/font: ... to here.
4099 * fs: Moved ...
4100 * grub-core/fs: ... to here.
4101 * gencmdlist.sh: Moved ...
4102 * grub-core/gencmdlist.sh: ... to here.
4103 * genemuinit.sh: Moved ...
4104 * grub-core/genemuinit.sh: ... to here.
4105 * genemuinitheader.sh: Moved ...
4106 * grub-core/genemuinitheader.sh: ... to here.
4107 * genfslist.sh: Moved ...
4108 * grub-core/genfslist.sh: ... to here.
4109 * genhandlerlist.sh: Moved ...
4110 * grub-core/genhandlerlist.sh: ... to here.
4111 * genmoddep.awk: Moved ...
4112 * grub-core/genmoddep.awk: ... to here.
4113 * genmodsrc.sh: Moved ...
4114 * grub-core/genmodsrc.sh: ... to here.
4115 * genpartmaplist.sh: Moved ...
4116 * grub-core/genpartmaplist.sh: ... to here.
4117 * genparttoollist.sh: Moved ...
4118 * grub-core/genparttoollist.sh: ... to here.
4119 * genterminallist.sh: Moved ...
4120 * grub-core/genterminallist.sh: ... to here.
4121 * gentrigtables.c: Moved ...
4122 * grub-core/gentrigtables.c: ... to here.
4123 * genvideolist.sh: Moved ...
4124 * grub-core/genvideolist.sh: ... to here.
4125 * gettext: Moved ...
4126 * grub-core/gettext: ... to here.
4127 * gfxmenu: Moved ...
4128 * grub-core/gfxmenu: ... to here.
4129 * gnulib: Moved ...
4130 * grub-core/gnulib: ... to here.
4131 * hello: Moved ...
4132 * grub-core/hello: ... to here.
4133 * hook: Moved ...
4134 * grub-core/hook: ... to here.
4135 * io: Moved ...
4136 * grub-core/io: ... to here.
4137 * kern: Moved ...
4138 * grub-core/kern: ... to here.
4139 * lib: Moved ...
4140 * grub-core/lib: ... to here.
4141 * loader: Moved ...
4142 * grub-core/loader: ... to here.
4143 * mmap: Moved ...
4144 * grub-core/mmap: ... to here.
4145 * normal: Moved ...
4146 * grub-core/normal: ... to here.
4147 * partmap: Moved ...
4148 * grub-core/partmap: ... to here.
4149 * parttool: Moved ...
4150 * grub-core/parttool: ... to here.
4151 * script: Moved ...
4152 * grub-core/script: ... to here.
4153 * term: Moved ...
4154 * grub-core/term: ... to here
4155 * tests/example_functional_test.c: Moved ...
4156 * grub-core/tests/example_functional_test.c: ... to here.
4157 * tests/lib/functional_test.c: Moved ...
4158 * grub-core/tests/lib/functional_test.c: ... to here.
4159 * tests/lib/test.c: Moved ...
4160 * grub-core/tests/lib/test.c: ... to here.
4161 * video: Moved ...
4162 * grub-core/video: ... to here.
4163
645586e6
BC
41642010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
4165
4166 Replace --enable-grub-emu-modules with grub-emu-lite.
4167
4168 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
4169 cache.S.
4170
4171 * include/grub/emu/misc.h (grub_emu_init): New prototype.
4172 * kern/emu/full.c: New file. For grub-emu specific initialization.
4173 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
4174 * kern/emu/main.c: Call initialization function grub_emu_init.
4175
4176 * Makefile.in: Include grub-emu-lite in install.
4177 * commands/parttool.c: Use grub_no_autoload to differentiate
4178 between grub-emu and grub-emu-lite.
4179 * include/grub/misc.h: New variable grub_no_autoload.
4180
4181 * conf/any-emu.rmk: New rules for grub-emu-lite.
4182 * configure.ac: Remove --enable-grub-emu-modules.
4183 * genmk.rb: Cleanup unnecessary rules.
4184 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
4185
4186 * normal/main.c: Don't load list files on grub-emu-lite.
4187 * util/misc.c (grub_arch_sync_caches): Removed.
4188
f86a4030
CW
41892010-08-23 Colin Watson <cjwatson@ubuntu.com>
4190
4191 * kern/mips/startup.S (grub_prefix): Update comment to refer to
4192 grub-mkimage rather than grub-mkelfimage.
4193 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
4194
06776944
VS
41952010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4196
4197 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
4198 a key after CapsLock or NumLock. It's just a qemu bug.
4199
df262419
VS
42002010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4201
4202 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
4203 needed by libusb wrapper.
4204
b40ea81b
ST
42052010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4206
4207 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
4208
dee50575
VS
42092010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4210
4211 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
4212 --nounzip is passed.
4213
fb1d7b79
VS
42142010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
4215
4216 USB hotunplugging and USB serial support.
4217
4218 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
4219 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
4220 (grub_uhci_transfer): Respect timeout and set *actual.
4221 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
4222 non-standard length.
4223 (grub_usb_device_attach): Autoload modules.
4224 (GRUB_MOD_INIT): Set grub_term_poll_usb.
4225 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
4226 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
4227 users updated.
4228 (grub_usb_add_hub): Fill nports and children.
4229 (attach_root_port): Receive hub instead of controller.
4230 All users updated. Fill hub->devices.
4231 (grub_usb_root_hub): Allocate hub->devices.
4232 (detach_device): New function.
4233 (poll_nonroot_hub): Fill children and detach devices.
4234 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
4235 actual arguments. All users updated.
4236 (grub_usb_bulk_read_extended): New function.
4237 * bus/usb/serial/common.c: New file.
4238 * bus/usb/serial/ftdi.c: Likewise.
4239 * bus/usb/serial/pl2303.c: Likewise.
4240 * commands/terminal.c (handle_command): Support wildcard.
4241 * commands/usbtest.c: Output "Unknown" instead of empty string.
4242 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
4243 (usbserial_common_mod_SOURCES): New variable.
4244 (usbserial_common_mod_CFLAGS): Likewise.
4245 (usbserial_common_mod_LDFLAGS): Likewise.
4246 (pkglib_MODULES): Add usbserial_pl2303.mod.
4247 (usbserial_pl2303_mod_SOURCES): New variable.
4248 (usbserial_pl2303_mod_CFLAGS): Likewise.
4249 (usbserial_pl2303_mod_LDFLAGS): Likewise.
4250 (pkglib_MODULES): Add usbserial_ftdi.mod.
4251 (usbserial_ftdi_mod_SOURCES): New variable.
4252 (usbserial_ftdi_mod_CFLAGS): Likewise.
4253 (usbserial_ftdi_mod_LDFLAGS): Likewise.
4254 (pkglib_MODULES): Add serial.mod.
4255 (serial_mod_SOURCES): New variable.
4256 (serial_mod_CFLAGS): Likewise.
4257 (serial_mod_LDFLAGS): Likewise.
4258 * conf/i386-pc.rmk: Likewise.
4259 * conf/mips-yeeloong.rmk: Likewise.
4260 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
4261 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
4262 * disk/usbms.c (first_available_slot): New variable.
4263 (grub_usbms_attach): Don't reuse free slots due to potential cache
4264 problems.
4265 * include/grub/serial.h: Moved to ..
4266 * include/grub/ns8250.h: ...this.
4267 * include/grub/serial.h: New file.
4268 * include/grub/term.h (grub_term_poll_usb): New variable.
4269 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
4270 readkey. All users updated.
4271 (grub_terminfo_output_state): Pass term to put.
4272 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
4273 (grub_usb_controller_dev): Add timeout and actual arguments to
4274 transfer. All users updated.
4275 (grub_usb_interface): New field detach_data.
4276 (grub_usb_device): New fields children and nports.
4277 (grub_usb_ep_type_t): New type.
4278 (grub_usb_get_ep_type): New function.
4279 (grub_usb_bulk_read_extended): Likewise.
4280 * include/grub/usbdesc.h (grub_usb_desc): New type.
4281 * include/grub/usbserial.h: New file.
4282 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
4283 * kern/term.c (grub_term_poll_usb): New variable.
4284 (grub_getkey): Call grub_term_poll_usb if set.
4285 (grub_checkkey): Likewise.
4286 (grub_getkeystatus): Likewise.
4287 * term/serial.c: Moved controller-specific parts to ...
4288 * term/ns8250.c: ... here.
4289 * term/serial.c: Mostly rewritten.
4290 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
4291 according to spec.
4292
21a313de
RM
42932010-08-20 Robert Millan <rmh@gnu.org>
4294
4295 Make kFreeBSD code more generic to support ext2fs as root, ufs as
4296 a separate module and maybe other interesting combinations.
4297
4298 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
4299 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
4300 (kfreebsd_entry): Add generic filesystem module load routine.
4301 Map GRUB `ext2' to kFreeBSD `ext2fs'.
4302
63c734a6
CW
43032010-08-20 Colin Watson <cjwatson@ubuntu.com>
4304
4305 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
4306 "numcenter" (I misunderstood the purpose of this entry).
4307 * docs/grub.texi (sendkey): Likewise.
4308
c4d16542
CW
43092010-08-20 Colin Watson <cjwatson@ubuntu.com>
4310
4311 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
4312 status flag options; simply omitting the option is equivalent and
4313 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
4314 (keysym_table): Rename "num5numlock" to "numlock".
4315 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
4316 can uniformly say that only the last of multiple `sendkey'
4317 invocations has any effect.
4318 * docs/grub.texi (sendkey): New section.
4319
93541d66
CW
43202010-08-19 Colin Watson <cjwatson@ubuntu.com>
4321
4322 * commands/i386/pc/sendkey.c (options): Fix three typos.
4323
b4ece5e1
VS
43242010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
4325
4326 Implement sendkey support.
4327
4328 * commands/i386/pc/sendkey.c: New file.
4329 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
4330 (sendkey_mod_SOURCES): New variable.
4331 (sendkey_mod_CFLAGS): Likewise.
4332 (sendkey_mod_LDFLAGS): Likewise.
4333
51f1f5af
CW
43342010-08-18 Colin Watson <cjwatson@ubuntu.com>
4335
4336 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
4337 fix warnings from Autoconf.
4338
9da94e05
CW
43392010-08-18 Colin Watson <cjwatson@ubuntu.com>
4340
4341 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
4342 to avoid false positives with some assemblers that output things
4343 like "someprefix_func" as part of their output.
4344
729a0f2e
RM
43452010-08-15 Robert Millan <rmh@gnu.org>
4346
4347 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
4348 errors.
4349 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
4350 grub_get_libzfs_handle() errors.
4351
f3710e08
RM
43522010-08-14 Robert Millan <rmh@gnu.org>
4353
4354 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
4355 filesystem is not ZFS.
4356
7a3c13de
BC
43572010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4358
4359 Fix for misspelled color names defaulting to black/black (bug
4360 reported by Doug Nazar)
4361
4362 * include/grub/normal.h (grub_parse_color_name_pair): Add return
4363 status to prototype.
4364 * normal/color.c (grub_parse_color_name_pair): Return failure
4365 status.
4366 (grub_env_write_color_normal): Ignore bad color names.
4367 (grub_env_write_color_highlight): Likewise.
4368 * normal/main.c (GRUB_MOD_INIT): Set default color names.
4369
ab8ba50d
BC
43702010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4371
4372 "shift" command support to GRUB script.
4373
4374 * include/grub/script_sh.h (grub_script_shift): New prototype.
4375 * script/execute.c (grub_script_shift): New function.
4376 * script/main.c (grub_script_init): Register shift command.
4377 (grub_script_fini): Unregister shift command.
4378 * util/grub-script-check.c (grub_script_cmd_shift): New function.
4379
4380 * tests/grub_script_shift.in: New testcase.
4381 * conf/tests.rmk: Rules for new testcase.
4382
4d61999e
BC
43832010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4384
4385 "continue" command support to GRUB script.
4386
4387 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
4388 (grub_script_break): Continue support.
4389 * script/main.c (grub_script_init): Register continue command.
4390 (grub_script_fini): Unregister continue command.
4391
4392 * tests/grub_script_continue.in: New testcase.
4393 * conf/tests.rmk: Rules for new testcase.
4394
4df51e00
BC
43952010-08-12 BVK Chaitanya <bvk@dbook>
4396
4397 "break" command support to GRUB script.
4398
4399 * conf/common.rmk: Rule updates to grub-script-check.
4400 * include/grub/misc.h (grub_min): New function.
4401 * include/grub/script_sh.h (grub_script_init): New prototype.
4402 (grub_script_fini): New prototype.
4403 (grub_script_break): New prototype.
4404 * script/main.c (grub_script_init): New function.
4405 (grub_script_fini): New function.
4406 * script/execute.c (grub_script_break): New function.
4407 * normal/main.c: Calls to grub_script_{init,fini}.
4408 * util/grub-script-check.c (grub_script_break): New function.
4409
4410 * tests/grub_script_break.in: New testcase.
4411 * conf/tests.rmk: Rules for new test case.
4412
f12c8420
BC
44132010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4414
4415 Function parameters support to GRUB script.
4416
4417 * script/yylex.l (VARIABLE): Regular expression update.
4418 * script/function.c (grub_script_function_call): Moved ...
4419 * script/execute.c (grub_script_function_call): ... to here.
4420 (grub_script_execute_arglist_to_argv): Removed.
4421 (grub_script_arglist_to_argv): New function.
4422 * script/argv.c: New file.
4423 (grub_script_argv_free): New function.
4424 (grub_script_argv_next): Likewise.
4425 (grub_script_argv_append): Likewise.
4426 (grub_script_argv_split_append): Likewise.
4427 * include/grub/script_sh.h (grub_script_argv): New struct.
4428 (grub_script_argv_free): New function.
4429 (grub_script_argv_next): Likewise.
4430 (grub_script_argv_append): Likewise.
4431 (grub_script_argv_split_append): Likewise.
4432
4433 * conf/common.rmk (normal.mod): New source script/argv.c.
4434
4435 * tests/grub_script_echo1.in: More tests.
4436 * tests/grub_script_vars1.in: Likewise.
4437 * tests/grub_script_functions.in: New test case.
4438 * conf/tests.rmk: Rules for new testcase.
4439
8022b748
BC
44402010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4441
4442 Remove grub_script_cmdblock struct.
4443
4444 * include/grub/script_sh.h: Remove grub_script_cmdblock.
4445 * script/parser.y: Likewise.
4446 * script/execute.c: Rename cmdblock suffix to cmdlist.
4447 * script/script.c: Likewise.
4448 * util/grub-script-check.c: Likewise.
4449
79a6ba61
YB
44502010-08-11 Yves Blusseau <blusseau@zetam.org>
4451
4452 * .bzrignore: add grub-macho2img
4453
d04b9414
VS
44542010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4455
4456 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
4457
f947ab49
VS
44582010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4459
4460 Remove the dump of sm712 initialisation sequence.
4461
4462 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
4463 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
4464 (GRUB_VGA_IO_MISC_WRITE): Likewise.
4465 (GRUB_VGA_CR_*): Added many registers.
4466 (GRUB_VGA_SR_*): Likewise.
4467 (GRUB_VGA_GR_*): Likewise.
4468 (grub_vga_write_arx): New function.
4469 (grub_video_hw_config): New struct.
4470 (grub_vga_set_geometry): New function.
4471 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
4472 GRUB_PCI_CLASS_SUBCLASS_VGA.
4473 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
4474 * video/sm712.c (grub_sm712_write_reg): New function
4475 (grub_sm712_read_reg): Likewise.
4476 (grub_sm712_sr_write): Likewise.
4477 (grub_sm712_gr_write): Likewise.
4478 (grub_sm712_cr_write): Likewise.
4479 (grub_sm712_write_arx): Likewise.
4480 (grub_sm712_cr_shadow_write): Likewise.
4481 (grub_sm712_write_dda_lookup): Likewise.
4482 (grub_video_sm712_setup): Initialise the video rather then
4483 blindly replay the dump.
4484 (main) [TEST]: Add a routine to be able to compile as standalone for
4485 tests.
4486 * video/sm712_init.c (sm712_init): Removed.
4487 (sm712_sr_seq1): New array.
4488 (sm712_sr_seq2): Likewise.
4489
f0206638
VS
44902010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4491
4492 * include/grub/vga.h: Add missing grub/pci.h include.
4493
2764da3b
YB
44942010-08-10 Yves Blusseau <blusseau@zetam.org>
4495
4496 * util/grub-macho2img.c (main): fix typo
4497
cf0c775e
VS
44982010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4499
4500 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
4501 (grub_vga_gr_read): Likewise.
4502 (grub_vga_cr_write): Likewise.
4503 (grub_vga_cr_read): Likewise.
4504 (grub_vga_sr_write): Likewise.
4505 (grub_vga_sr_read): Likewise.
4506 (grub_vga_palette_read): Likewise.
4507 (grub_vga_palette_write): Likewise.
4508 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
4509 (grub_sm712_sr_read): New function.
4510 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
4511 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
4512
07f360e9
RM
45132010-08-09 Robert Millan <rmh@gnu.org>
4514
4515 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
4516 out unused variables on non-ZFS build.
4517
346c2072
RM
45182010-08-08 Robert Millan <rmh@gnu.org>
4519
4520 Fix path generation for sub-filesystems in ZFS.
4521
4522 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
4523 missing slash.
4524
71175420
RM
45252010-08-08 Robert Millan <rmh@gnu.org>
4526
4527 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
4528
0d8286f3
RM
45292010-08-08 Robert Millan <rmh@gnu.org>
4530
4531 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
4532 exist, issue a proper error message (rely on `ls' for translated
4533 strings).
4534
55dd2924
RM
45352010-08-08 Robert Millan <rmh@gnu.org>
4536
4537 Fix grub-probe invocation.
4538
4539 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
4540
d3dd9e80
RM
45412010-08-04 Robert Millan <rmh@gnu.org>
4542
4543 * configure.ac: Remove checks for getfsstat() and getmntany().
4544 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
4545 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
4546 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
4547 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
4548 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
4549 function.
4550 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
4551 via find_mount_point_from_dir() and getfsstat() / getmntany().
4552
0de22aa9
RM
45532010-08-04 Robert Millan <rmh@gnu.org>
4554
4555 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4556 (grub_find_zpool_from_mount_point): Merge into ...
4557 (grub_find_zpool_from_dir): ... this.
4558 * kern/emu/misc.c: Likewise.
4559
4560 * kern/emu/misc.c
4561 (grub_make_system_path_relative_to_its_root): Replace
4562 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
4563 with grub_find_zpool_from_dir().
4564 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
4565
62858144
RM
45662010-08-04 Robert Millan <rmh@gnu.org>
4567
4568 Support OpenSolaris in ZFS device resolution.
4569
4570 * configure.ac: Check for getmntany().
4571 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
4572 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
4573 support.
4574
9dd6fd50
RM
45752010-08-03 Robert Millan <rmh@gnu.org>
4576
4577 Fix grub-emu build.
4578
4579 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
4580 * include/grub/emu/misc.h: ... here.
4581
4582 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
4583 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
4584
4585 * util/misc.c: Remove `<grub/util/libzfs.h>'.
4586 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
4587 (grub_get_libzfs_handle): Move to ...
4588 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
4589 (grub_get_libzfs_handle): ... here.
4590
c9f7ff97
BC
45912010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
4592
4593 * script/execute.c (grub_script_execute_cmdline): Check for NULL
4594 as command name case.
4595
a870a783
CW
45962010-08-02 Colin Watson <cjwatson@ubuntu.com>
4597
4598 * disk/raid.c (insert_array): Select unique numbers for named arrays
4599 as well, for use as keys in the disk cache.
4600
c7db243b
RM
46012010-08-01 Robert Millan <rmh@gnu.org>
4602
4603 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
4604 kFreeBSD device name, except on ZFS where the filesystem label is
4605 used.
4606 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
4607 `/boot/zfs/zpool.cache'.
4608 Set mountfrom kernel variable using ${kfreebsd_device}.
4609
f7abdefb
RM
46102010-08-01 Robert Millan <rmh@gnu.org>
4611
4612 Make it even harder to use uninitialized `libzfs_handle' (and
4613 make the interface a bit simpler).
4614
4615 * include/grub/util/misc.h (grub_util_init_libzfs)
4616 (libzfs_handle): Remove.
4617 (grub_get_libzfs_handle): New prototype.
4618
4619 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
4620 attribute.
4621 (grub_util_init_libzfs): Remove.
4622 (grub_get_libzfs_handle): New function.
4623
4624 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
4625 grub_get_libzfs_handle() to obtain a libzfs handle instead of
4626 accessing `libzfs_handle' directly.
4627
c882acc0
RM
46282010-08-01 Robert Millan <rmh@gnu.org>
4629
4630 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4631 (grub_find_zpool_from_mount_point): New function prototypes.
4632
4633 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4634 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4635
4636 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4637 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4638 `static' attribute.
4639
4640 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4641 finding zpool from mount point into ...
4642 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4643
4644 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4645 requested path is part of a ZFS pool, use
4646 grub_find_zpool_from_mount_point() to detect its filesystem name,
4647 and generate a path with `/fsname@path' syntax.
4648
8bfe31d8
CW
46492010-08-01 Colin Watson <cjwatson@ubuntu.com>
4650
4651 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
4652 (void) rather than () so that this is a proper prototype.
4653
553df63d
VS
46542010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4655
4656 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
4657
8687cf07
VS
46582010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4659
4660 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
4661 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
4662
ea9be8ea
CW
46632010-08-01 Colin Watson <cjwatson@ubuntu.com>
4664
4665 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
4666
6eea041a
CW
46672010-08-01 Colin Watson <cjwatson@ubuntu.com>
4668
4669 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
4670
2cfb45df
CW
46712010-08-01 Colin Watson <cjwatson@ubuntu.com>
4672
4673 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
4674 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
4675 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
4676 disable gfxpayload.
4677 (Shell-like scripting): Add real content.
4678 (Serial terminal): Suggest `terminal_input serial; terminal_output
4679 serial' rather than putting the two commands on separate lines,
4680 since console input will be inoperative after the first command.
4681 (menuentry): Document --class, --users, and --hotkey options.
4682 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
4683 Vladimir Serbinenko).
4684
7decd202
VS
46852010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
46862010-08-01 Colin Watson <cjwatson@ubuntu.com>
4687
4688 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
4689
c882acc0
RM
46902010-08-01 Robert Millan <rmh@gnu.org>
4691
4692 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4693 (grub_find_zpool_from_mount_point): New function prototypes.
4694
4695 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4696 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4697
4698 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4699 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4700 `static' attribute.
4701
4702 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4703 finding zpool from mount point into ...
4704 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4705
4706 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4707 requested path is part of a ZFS pool, use
4708 grub_find_zpool_from_mount_point() to detect its filesystem name,
4709 and generate a path with `/fsname@path' syntax.
4710
deb0caa3
RM
47112010-08-01 Robert Millan <rmh@gnu.org>
4712
4713 Prevent accidental use of uninitialized libzfs_handle.
4714
4715 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
4716 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
4717 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
4718
ce04ef47
CW
47192010-08-01 Colin Watson <cjwatson@ubuntu.com>
4720
4721 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
4722 util/grub.d/10_linux.in). Fixes Debian bug #591093.
4723
ebf53056
RM
47242010-08-01 Robert Millan <rmh@gnu.org>
4725
4726 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 4727
3710bb6b
RM
47282010-07-31 Robert Millan <rmh@gnu.org>
4729
4730 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
4731
8072efeb
RM
47322010-07-31 Robert Millan <rmh@gnu.org>
4733
4734 * kern/emu/misc.c: Add missing license header.
4735
3169f4c7
RM
47362010-07-31 Robert Millan <rmh@gnu.org>
4737
4738 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
4739
4740 * include/grub/util/libnvpair.h: Include `<config.h>'.
4741 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
4742 declaring libnvpair prototypes ourselves.
4743 * include/grub/util/libzfs.h: Include `<config.h>'.
4744 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
4745 declaring libzfs prototypes ourselves.
4746
4747 (libzfs_handle): Moved to ...
4748 * include/grub/util/misc.h (libzfs_handle): ... here.
4749 Include `<grub/util/libzfs.h>'.
4750
c9a00aee
RM
47512010-07-30 Robert Millan <rmh@gnu.org>
4752
4753 * include/grub/emu/misc.h: Add missing license header.
4754
a184f9c8
RM
47552010-07-30 Robert Millan <rmh@gnu.org>
4756
4757 Enable `grub-probe -t device' resolution on ZFS.
4758
4759 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
4760 * include/grub/util/libnvpair.h: New file.
4761 * include/grub/util/libzfs.h: New file.
4762
4763 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
4764 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
4765 `<grub/util/libnvpair.h>'.
4766 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
4767
4768 (find_mount_point_from_dir): New static function.
4769 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
4770 function.
4771 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
4772 find_root_device_from_libzfs() before ressorting to find_root_device().
4773
4774 * include/grub/util/misc.h (grub_util_init_libzfs): New function
4775 prototype.
4776 * util/misc.c: Include `<grub/util/libzfs.h>'.
4777 (grub_util_init_libzfs): New function.
4778 [HAVE_LIBZFS] (libzfs_handle): New global variable.
4779 [HAVE_LIBZFS] (fini_libzfs): New static function.
4780 (grub_util_init_libzfs): New function.
4781 * util/grub-probe.c (main): Call grub_util_init_libzfs().
4782
f7790cdd
RM
47832010-07-30 Robert Millan <rmh@gnu.org>
4784
4785 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
4786 (xmalloc, xrealloc, xstrdup, xasprintf): Add
4787 `warn_unused_result' attribute.
4788 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
4789 (grub_xasprintf, grub_xvasprintf): Likewise.
4790 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
4791
0806b63c
RM
47922010-07-29 Robert Millan <rmh@gnu.org>
4793
4794 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
4795 (probe): Handle `PRINT_FS_LABEL'.
4796 (main): Handle `-t fs_label'.
4797
9f841f5c
RM
47982010-07-29 Robert Millan <rmh@gnu.org>
4799
4800 * configure.ac: Remove grub-mkisofs checks.
4801
46371121
VS
48022010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
4803
4804 * util/ieee1275/grub-install.in: Don't use empty grub_device.
4805 Reported by: Lennart Sorensen.
4806
48072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
4810 prior to terminal_input/terminal_output separation. It's been over 1.5
4811 years and those versions weren't widely deployed.
4812
a9600892
CW
48132010-07-22 Colin Watson <cjwatson@ubuntu.com>
4814
4815 * disk/raid.c (insert_array): Don't count named arrays when looking
4816 for unused array numbers.
697e053c 4817 Reported and tested by: Michael Guntsche.
a9600892 4818
c03507df
CW
48192010-07-20 Colin Watson <cjwatson@ubuntu.com>
4820
4821 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
4822 implementation of this so that grub-emu links again, with a note
4823 that this should support hotplugging in the future.
4824
b26f1c11
CW
48252010-07-20 Colin Watson <cjwatson@ubuntu.com>
4826
4827 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
4828
efc9d7f1
CW
48292010-07-20 Colin Watson <cjwatson@ubuntu.com>
4830
4831 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
4832 handle on failure.
4833 (grub_loopback_close): Remove empty function.
4834 (grub_loopback_dev): Remove close method.
4835
dd8ff5c9
CW
48362010-07-20 Colin Watson <cjwatson@ubuntu.com>
4837
4838 Disable EFI cursor when the EFI console becomes inactive.
4839
4840 * term/efi/console.c (grub_efi_console_init): New function.
4841 (grub_efi_console_fini): New function.
4842 (grub_console_term_output): Register init and fini methods.
4843
5e3bec67
VS
48442010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4845
4846 * tests/util/grub-shell-tester.in: Remove bashism and declare as
4847 sh script.
4848
afaec079
VS
48492010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4850
4851 * disk/loopback.c (grub_loopback): Replace filename with file.
4852 (delete_loopback): Handle new semantics.
4853 (grub_cmd_loopback): Likewise.
4854 (grub_loopback_iterate): Likewise.
4855 (grub_loopback_close): Likewise.
4856
a6a11f3c
VS
48572010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4858
4859 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
4860 with -p "".
4861 Reported by: Tito Keitel.
4862
64a638b0
VS
48632010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4864
4865 * docs/grub.texi (Naming convention): Document new naming convention.
4866
ab8ba957
VS
48672010-07-20 Vadim Solomin <vadic052@gmail.com>
48682010-07-20 Colin Watson <cjwatson@ubuntu.com>
4869
4870 Generate device.map in something closer to the old ordering.
4871
4872 * util/deviceiter.c (struct device): New declaration.
4873 (compare_file_names): Rename to ...
4874 (compare_devices): ... this. Sort by kernel name in preference to
4875 the stable by-id name, but keep the latter as a fallback comparison.
4876 Update header comment.
4877 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
4878 of `struct device' rather than of plain file names.
4879
a29d6a4b
TF
48802010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
4881
4882 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
4883 on i386.
4884
39d824e8
VS
48852010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4886
4887 * commands/acpi.c (setup_common_tables): Use sizeof instead of
4888 hardcoding size.
4889 (setv1table): Likewise.
4890
f058276b
FZ
48912010-07-20 Colin Watson <cjwatson@ubuntu.com>
4892
4893 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
4894 removing the homehost if present.
4895 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
4896 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
4897 removing the homehost if present.
4898 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
4899 if possible.
4900 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
4901
4902 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
4903 parameter. Set its pointer target to 0.
4904 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
4905 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
4906 `data_offset' value from the superblock for 1.x metadata.
4907 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
4908 data on the device.
4909 (insert_array): Record the start sector of data on the device.
4910 (grub_raid_register): Pass start_sector parameters to
4911 grub_raid_list->detect and insert_array.
4912 * include/grub/raid.h (struct grub_raid_array): Add start_sector
4913 member.
4914 (struct grub_raid): Add start_sector parameter to `detect'.
4915
4916 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
4917 __attribute__ ((packed)), leaving a comment.
4918 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
4919 (grub_mdraid_detect_09): ... here and ...
4920 (grub_mdraid_detect_1x): ... here.
4921
49222010-07-20 Peter Henn <peter.henn@web.de>
4923
4924 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
4925 chunk size and disk size, which are already given as sector counts
4926 as distinct from the 0.90 units. Fetch the correct device number
4927 from the role table instead of using the table index.
4928
49292010-07-20 Felix Zielcke <fzielcke@z-51.de>
4930
4931 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
4932 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
4933 (WriteMostly1): New macro.
4934 Set array->name to NULL for metadata format 0.90. Add support for
4935 metadata 1.x. Fix some comments.
4936 * disk/raid.c (): Add support for name based RAID arrays. Fix a
4937 few comments.
4938 * util/getroot.c (grub_util_get_grub_dev): Add support for
4939 /dev/md/name style devices.
4940
4b761da9
CW
49412010-07-20 Colin Watson <cjwatson@ubuntu.com>
4942
4943 * .bzrignore: Ignore 20_linux_xen.
4944
5771289a
CW
49452010-07-17 Colin Watson <cjwatson@ubuntu.com>
4946
4947 * util/import_unicode.py: Remove unnecessary imports.
4948
5dab68df
AN
49492010-07-17 Aleš Nesrsta <starous@volny.cz>
4950
4951 Hotplugging and USB hub support.
4952
4953 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
4954 (grub_ohci): Likewise.
4955 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
4956 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
4957 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
4958 (GRUB_OHCI_CTRL_EDS): Likewise.
4959 (GRUB_OHCI_BULK_EDS): Likewise.
4960 (GRUB_OHCI_TDS): Likewise.
4961 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
4962 (grub_ohci_ed_phys2virt): New function.
4963 (grub_ohci_virt_to_phys): Likewise.
4964 (grub_ohci_td_phys2virt): Likewise.
4965 (grub_ohci_td_virt2phys): Likewise.
4966 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
4967 attachment.
4968 (grub_ohci_find_ed): New function.
4969 (grub_ohci_alloc_td): Likewise.
4970 (grub_ohci_free_td): Likewise.
4971 (grub_ohci_free_tds): Likewise.
4972 (grub_ohci_transfer): Use previously allocated memory.
4973 (grub_ohci_portstatus): Reset status changed bit.
4974 (grub_ohci_detect_dev): Supply status changed.
4975 (grub_ohci_fini_hw): Free memory.
4976 (grub_ohci_restore_hw): Reallocate memory.
4977 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
4978 Reset status change.
4979 (grub_uhci_detect_dev): Supply status_change.
4980 * bus/usb/usb.c (attach_hooks): New var.
4981 (grub_usb_device_attach): New function.
4982 (grub_usb_register_attach_hook_class): Likewise.
4983 (grub_usb_unregister_attach_hook_class): Likewise.
4984 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
4985 (grub_usb_add_hub): Reset connection changed bit.
4986 (attach_root_port): New function.
4987 (grub_usb_root_hub): Likewise.
4988 (poll_nonroot_hub): Likewise.
4989 (grub_usb_poll_devices): Likewise.
4990 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
4991 * disk/usbms.c (grub_usbms_open): Use device hooks.
4992 (grub_usbms_iterate) :Poll devices.
4993 (grub_usbms_finddevs): Split into ...
4994 (grub_usbms_attach): ... this ...
4995 (grub_usbms_attach): ... and this.
4996 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
4997 in detect_dev.
4998 (grub_usb_interface): New fields attached and detach_hook.
4999 (grub_usb_attach_hook_class): New type.
5000 (grub_usb_attach_desc): New struct.
5001 (grub_usb_register_attach_hook_class): New function.
5002 (grub_usb_unregister_attach_hook_class): Likewise.
5003 (grub_usb_poll_devices): Likewise.
5004 (grub_usb_device_attach): Likewise.
5005 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
5006 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
5007
3222efaf
VS
50082010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5009
5010 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
5011 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
5012 delta determination style. Works with most NetBSD partitions too.
5013
139b714a
VS
50142010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5015
5016 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
5017 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
5018
986aad56
VS
50192010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5020
5021 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
5022
99be513c
AB
50232010-07-14 Anton Blanchard <anton@samba.org>
5024
5025 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
5026 ET_DYN files.
5027
18075f62
GS
50282010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5029
5030 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
5031
8d9a5b15
GS
50322010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5033
5034 * kern/partition.c (grub_partition_check_containment): New function to
5035 check that a partition is physically contained in a parent. Since
5036 offsets are relative (and non-negative), this reduces to checking that
5037 the partition ends before its parent.
5038 (grub_partition_map_probe): Discard out-of-range sub-partitions.
5039 (grub_partition_iterate): Likewise.
5040 * include/grub/partition.h (grub_partition_map): Slightly more detailed
5041 comments.
5042 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
5043 partitions that start before their parent, and add debug printfs.
5044
19563c25
CW
50452010-07-13 Colin Watson <cjwatson@ubuntu.com>
5046
5047 * Makefile.in (.SUFFIX): Spell correctly, as ...
5048 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
5049 bare module name without `.mod', e.g. `test') tried to invoke a
5050 Modula-2 compiler.
5051
1a1f1e67
CW
50522010-07-13 Colin Watson <cjwatson@ubuntu.com>
5053
5054 * README: Point to the Info manual.
5055
811b0dca
JS
50562010-07-13 Jiro SEKIBA <jir@unicus.jp>
5057
5058 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
5059 2nd superblock position from partition size.
5060
e4f4eafc
CW
50612010-07-10 Colin Watson <cjwatson@ubuntu.com>
5062
5063 * Makefile.in (MAINTAINER_CLEANFILES): Remove
5064 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
5065 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
5066 outputs.
5067
4274c30f
VS
50682010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5069
5070 Restructure SCSI .id handling.
5071 Reported and tested by: Aleš Nesrsta.
5072
5073 * disk/ata.c (grub_atapi_close): Removed. All users updated.
5074 (grub_atapi_dev): Changed .name to "ata". New field .id.
5075 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
5076 (grub_usbms_dev): New field .id.
5077 * disk/scsi.c (grub_scsi_iterate): Generate name.
5078 (grub_scsi_open): Parse name.
5079 * include/grub/scsi.h (grub_make_scsi_id): New function.
5080 (grub_scsi_dev): Change iterate and open to number instead of naming
5081 busses. All users updated.
5082 (grub_scsi): Remove name. Add .bus.
5083
5bc24388
VS
50842010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5085
5086 * commands/help.c (grub_cmd_help): Fix a typo.
5087
249975ba
VS
50882010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5089
5090 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
5091 Reported and tested by: Colin Watson.
5092
3eaac1a1
VS
50932010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5094
5095 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
5096 in this context.
5097
becce1b1
VS
50982010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5099
5100 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
5101
f7bf0918
CW
51022010-07-07 Colin Watson <cjwatson@ubuntu.com>
5103
5104 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
5105 indentation.
5106
0b0f9620
CW
51072010-07-06 Colin Watson <cjwatson@ubuntu.com>
5108
5109 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
5110 and disk/raid6_recover.c.
5111 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
5112 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
5113
1e545469
CW
51142010-07-06 Colin Watson <cjwatson@ubuntu.com>
5115
5116 * term/gfxterm.c (repaint_schedulded): Rename to ...
5117 (repaint_scheduled): ... this. Update all callers.
5118 (repaint_was_schedulded): Rename to ...
5119 (repaint_was_scheduled): ... this. Update all callers.
5120
5357687a
CW
51212010-07-06 Colin Watson <cjwatson@ubuntu.com>
5122
5123 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
5124 which we expect to be handled by upper layers.
5125
29d7e783
BC
51262010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
5127
5128 * bus/usb/usbhub.c: #include time.h header.
5129
37582066
CW
51302010-07-06 Colin Watson <cjwatson@ubuntu.com>
5131
5132 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
5133 entry_name also for entries without stat blocks (e.g. ".."); fixes
5134 corruption of the first entry in a directory.
5135
c8c06953
CW
51362010-07-06 Colin Watson <cjwatson@ubuntu.com>
5137
5138 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
5139 after setting gfxterm as the active terminal. GRUB_BACKGROUND
5140 doesn't work otherwise.
5141
e75056f1
CW
51422010-07-05 Colin Watson <cjwatson@ubuntu.com>
5143
5144 * docs/grub.texi (Features): Update list of supported file systems.
5145 (GNU/Linux): Update for GRUB 2.
5146 (Serial terminal): Remove mention of --disable-serial, which was a
5147 GRUB Legacy configure option. Update instructions to use
5148 `terminal_input' and `terminal_output' rather than `terminal'.
5149 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
5150 configuration' and `Installing GRUB using grub-install'.
5151 (Menu entry editor): Update for GRUB 2.
5152 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
5153 Document new -a, -u, and -v options.
5154 (initrd): New section.
5155 (initrd16): New section.
5156 (linux): New section.
5157 (linux16): New section.
5158 (search): The `var' argument to `--set' is optional.
5159 (GRUB only offers a rescue shell): Go into a little more detail on
5160 drive ordering.
5161
5cf69151
CW
51622010-07-05 Colin Watson <cjwatson@ubuntu.com>
5163
5164 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
5165
e3f90044
CW
51662010-07-05 Colin Watson <cjwatson@ubuntu.com>
5167
5168 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
5169 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
5170
38d8f4f3
CW
51712010-07-05 Colin Watson <cjwatson@ubuntu.com>
5172
5173 * util/i386/pc/grub-setup.c (setup): Rename prefix to
5174 install_prefix, in line with install_dos_part and install_bsd_part.
5175 Add new prefix variable, which is copied to install_prefix after
5176 comparing core.img in memory with the one read from disk in the
5177 no-embedding case, and use that rather than overwriting
5178 install_prefix immediately when installing to a partition.
5179 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
5180 Bicakci.
5181
57ebd41e
GS
51822010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
5183
5184 * configure.ac: Avoid == in test command, it's not portable.
5185 * util/grub.d/30_os-prober.in: Likewise.
5186
cb7f64b2
CW
51872010-07-04 Colin Watson <cjwatson@ubuntu.com>
5188
5189 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
5190
6b654bb0
GS
51912010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
5192
5193 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
5194 multiple (top-level) partmaps.
5195
72a2026d
VS
51962010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5197
5198 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 5199 Reported by: Tino Keitel.
72a2026d 5200
df3eb88f
VS
52012010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5202
5203 Bidi and diacritics support.
5204
5205 * Makefile.in (widthspec.bin): New target.
5206 (widthspec.h): Likewise.
5207 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
5208 * autogen.sh: Generate unidata.c.
5209 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
5210 * commands/ls.c (grub_ls_list_devices): Likewise.
5211 (grub_ls_list_files): Likewise.
5212 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
5213 (grub_mini_cmd_lsmod): Likewise.
5214 * commands/read.c: Likewise.
5215 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
5216 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
5217 * lib/arg.c (grub_arg_show_help): Likewise.
5218 * lib/crypto.c (grub_password_get): Likewise.
5219 * normal/auth.c (grub_username_get): Likewise.
5220 * normal/misc.c (grub_normal_print_device_info): Likewise.
5221 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
5222 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
5223 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
5224 (normal/charset.c_DEPENDENCIES): New variable.
5225 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
5226 (pkglib_MODULES): Remove charset.mod.
5227 (charset_mod_SOURCES): Removed.
5228 (charset_mod_CFLAGS): Likewise.
5229 (charset_mod_LDFLAGS): Likewise.
5230 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
5231 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
5232 and term/tparm.c.
5233 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5234 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5235 (kernel_img_HEADERS): Add terminfo.h.
5236 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
5237 Fill ->font. Reverse ascii bitmaps.
5238 (grub_font_get_xheight): New function.
5239 * font/font.c (grub_font_get_string_width): Moved from here ...
5240 * gfxmenu/font.c (grub_font_get_string_width): ... here.
5241 * font/font.c (grub_font_draw_string): Moved from here ...
5242 * gfxmenu/font.c (grub_font_draw_string): ... here.
5243 * font/font.c (grub_font_dup_glyph): New function.
5244 (grub_font_blit_glyph): Likewise.
5245 (grub_font_blit_glyph_mirror): Likewise.
5246 (blit_comb): Likewise.
5247 (grub_font_construct_dry_run): Likewise.
5248 (grub_font_get_constructed_device_width): Likewise.
5249 (grub_font_construct_glyph): Likewise.
5250 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
5251 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
5252 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
5253 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
5254 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
5255 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
5256 (grub_font_get_xheight): New proto.
5257 (grub_font_get_constructed_device_width): Likewise.
5258 (grub_font_construct_glyph): Likewise.
5259 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
5260 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
5261 * include/grub/font.h (grub_font_draw_string): Moved from here ...
5262 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
5263 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
5264 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
5265 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
5266 (grub_console_getcharwidth): Likewise.
5267 * include/grub/misc.h (grub_xputs): New proto.
5268 (grub_puts): Inlined.
5269 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
5270 (grub_normal_get_line_counter): Removed.
5271 (grub_install_newline_hook): Likewise.
5272 (grub_normal_get_char_counter): New proto.
5273 (grub_normal_reset_more): Likewise.
5274 (grub_xputs_normal): Likewise.
5275 * include/grub/powerpc/ieee1275/console.h: Removed.
5276 * include/grub/sparc64/ieee1275/console.h: Likewise.
5277 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
5278 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
5279 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
5280 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
5281 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
5282 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
5283 (grub_term_input): Pass reference to self. All users updated.
5284 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
5285 Pass reference to self. New fields normal_color, highlight_color and
5286 data. All users updated.
5287 (grub_putchar): Removed.
5288 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
5289 (grub_unicode_estimate_width): New function.
5290 (grub_term_getcharwidth): Add defaults.
5291 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
5292 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
5293 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
5294 (grub_cls): Remove EXPORT_FUNC.
5295 (grub_setcolorstate): Inline.
5296 (grub_newline_hook): Removed.
5297 * include/grub/terminfo.h: Rewritten. All users updated.
5298 * include/grub/unicode.h: New file.
5299 * include/grub/video.h (grub_video_signed_rect): New type.
5300 * kern/emu/console.c (grub_console_highlight_color): Removed.
5301 (grub_console_normal_color): Likewise.
5302 (grub_console_standard_color): Made static.
5303 (grub_ncurses_putchar): Remove mapping.
5304 (grub_ncurses_getcharwidth): Removed.
5305 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5306 (grub_ncurses_setcolor): Removed.
5307 (grub_ncurses_getcolor): Likewise.
5308 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
5309 (grub_console_putchar): ... this.
5310 (grub_console_putchar): Handle argument difference.
5311 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
5312 console_init_early and console_init_lately.
5313 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
5314 * kern/misc.c (grub_puts): Removed.
5315 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
5316 (grub_vsnprintf_real): Remove str = NULL support.
5317 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
5318 * normal/charset.c (grub_utf8_to_ucs4): ... here.
5319 * kern/term.c (grub_putcode): Renamed to ...
5320 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
5321 (grub_putchar): Removed.
5322 (grub_xputs_dumb): New function.
5323 (grub_xputs): New variable.
5324 * lib/charset.c: Move from here ...
5325 * normal/charset.c: ... to here.
5326 (grub_ucs4_to_utf8): New function.
5327 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
5328 (join_types): New variable.
5329 (unpack_join): New function.
5330 (bidi_types): New variable.
5331 (unpack_bidi): New function.
5332 (get_bidi_type): Likewise.
5333 (get_join_type): Likewise.
5334 (is_mirrored): Likewise.
5335 (grub_unicode_get_comb_type): Likewise.
5336 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
5337 (is_type_after): Likewise.
5338 (grub_unicode_aglomerate_comb): Likewise.
5339 (bidi_line_wrap): Likewise.
5340 (grub_bidi_line_logical_to_visual): Likewise.
5341 (grub_bidi_logical_to_visual): Likewise.
5342 (grub_unicode_mirror_code): Likewise.
5343 (grub_unicode_shape_code): Likewise.
5344 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
5345 Don't use grub_putchar.
5346 * normal/main.c (grub_normal_init_page): Use grub_putcode.
5347 (grub_normal_reader_init): Likewise.
5348 (grub_xputs_saved): New variable.
5349 (GRUB_MOD_INIT): Set grub_xputs.
5350 (GRUB_MOD_FINI): Restore grub_xputs.
5351 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
5352 (menu_init): Avoid printing gfxmenu error.
5353 (show_menu): Use grub_normal_get_char_counter.
5354 * normal/menu_entry.c (update_screen): Fix out-of-array.
5355 (complete): Avoid NULL dereferencing.
5356 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
5357 * normal/menu_text.c (print_spaces): Removed.
5358 (grub_print_ucs4): Likewise.
5359 (grub_print_message_indented): Use grub_print_ucs4.
5360 (print_message): Use grub_putcode.
5361 (print_entry): Hanlde diacritics.
5362 * normal/term.c (term_state): New type.
5363 (grub_more_lines): Removed.
5364 (term_states): New variable.
5365 (grub_normal_line_counter): Renamed to ..
5366 (grub_normal_char_counter): ...this. All users updated.
5367 (grub_normal_get_line_counter): Renamed to ...
5368 (grub_normal_get_char_counter): ... this.
5369 (grub_normal_reset_more): New function.
5370 (process_newline): Removed.
5371 (print_more): New function.
5372 (grub_install_newline_hook): Removed.
5373 (map_code): New function.
5374 (grub_puts_terminal): Use grub_print_ucs4.
5375 (putglyph): New function.
5376 (putcode_real): Likewise.
5377 (grub_putcode): Use putcode_real.
5378 (get_maxwidth): New function.
5379 (get_startwidth): Likewise.
5380 (print_ucs4_terminal): Likewise.
5381 (find_term_state): Likewise.
5382 (put_glyphs_terminal): Likewise.
5383 (print_backlog): Likewise.
5384 (print_ucs4_real): Likewise.
5385 (grub_print_ucs4): Likewise.
5386 (grub_xputs_normal): Likewise.
5387 * term/efi/console.c (grub_console_putchar): Output diacritics.
5388 (grub_console_getcharwidth): Removed.
5389 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5390 * term/gfxterm.c (clear_char): Free chars.
5391 (scroll_up): Avoid leaking memory.
5392 (grub_gfxterm_putchar): Support diacritics.
5393 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5394 * term/i386/pc/console.c (grub_console_term_output): Declare as
5395 GRUB_TERM_CODE_TYPE_VGA.
5396 * term/i386/pc/vga.c (grub_vga_term): Declare as
5397 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
5398 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
5399 GRUB_TERM_CODE_TYPE_VGA.
5400 * term/i386/vga_common.c (map_char): Removed.
5401 (grub_console_putchar): Likewise.
5402 (grub_console_getcharwidth): Likewise.
5403 * term/ieee1275/ofconsole.c: Simplify using terminfo.
5404 (colors): Reordered to match terminfo.
5405 (grub_ofconsole_normal_color): Removed.
5406 (grub_ofconsole_writeesc): Likewise.
5407 (grub_ofconsole_highlight_color): Likewise.
5408 (grub_ofconsole_getcharwidth): Likewise.
5409 (grub_ofconsole_setcolorstate): Likewise.
5410 (grub_ofconsole_setcolor): Likewise.
5411 (grub_ofconsole_getcolor): Likewise.
5412 (grub_ofconsole_readkey): Renamed to ...
5413 (readkey): ... this. Remove escape sequence handling. Return -1 on no
5414 key.
5415 (grub_ofconsole_checkkey): Removed.
5416 (grub_ofconsole_getkey): Likewise.
5417 (grub_ofconsole_getxy): Likewise.
5418 (grub_ofconsole_gotoxy): Likewise.
5419 (grub_ofconsole_cls): Likewise.
5420 (grub_ofconsole_refresh): Likewise.
5421 (grub_ofconsole_terminfo_input): New struct.
5422 (grub_ofconsole_terminfo_output): Likewise.
5423 (grub_ofconsole_term_input): Use terminfo.
5424 (grub_ofconsole_term_output): Likewise.
5425 (grub_console_init): Split into ...
5426 (grub_console_init_early): ...this and ...
5427 (grub_console_init_lately): ...this. Use terminfo.
5428 (grub_ofconsole_putchar): Renamed to ...
5429 (put): ... this. Remove mapping.
5430 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5431 * term/serial.c: Simplify using terminfo.
5432 (xpos): Removed.
5433 (ypos): Likewise.
5434 (keep_track): Likewise.
5435 (registered): Likewise.
5436 (input_buf): Likewise.
5437 (npending): Likewise.
5438 (serial_translate_key_sequence): Likewise.
5439 (fill_input_buf): Likewise.
5440 (grub_serial_checkkey): Likewise.
5441 (grub_serial_getkey): Likewise.
5442 (grub_serial_getxy): Likewise.
5443 (grub_serial_gotoxy): Likewise.
5444 (grub_serial_putchar): Likewise.
5445 (grub_serial_cls): Likewise.
5446 (grub_serial_setcolorstate): Likewise.
5447 (grub_serial_setcursor): Likewise.
5448 (serial_hw_init): Use serial_hw_fetch.
5449 (grub_serial_terminfo_input): New variable.
5450 (grub_serial_terminfo_output): Likewise.
5451 (grub_serial_term_input): Use terminfo.
5452 (grub_serial_term_output): Likewise.
5453 * term/terminfo.c (putstr): Use put.
5454 (grub_terminfo_all_free): New function
5455 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
5456 (grub_terminfo_output_register): New function.
5457 (grub_terminfo_output_unregister): Likewise.
5458 (grub_terminfo_getxy): Likewise.
5459 (grub_terminfo_readkey): Likewise.
5460 (grub_terminfo_checkkey): Likewise.
5461 (grub_terminfo_getkey): Likewise.
5462 (grub_terminfo_input_init): Likewise.
5463 (print_terminfo): Likewise.
5464 (grub_cmd_terminfo): Handle encoding.
5465 (grub_terminfo_gotoxy): Track position.
5466 (grub_terminfo_cls): Likewise.
5467 (grub_terminfo_putchar): Likewise.
5468 (grub_terminfo_setcolorstate): Handle colors
5469 (grub_terminfo_cursor_on): This ...
5470 (grub_terminfo_cursor_off): ... and this merged into ...
5471 (grub_terminfo_setcursor): ... this.
5472 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
5473 * unicode/ArabicShaping.txt: New file (imported from Unicode).
5474 * unicode/BidiMirroring.txt: Likewise.
5475 * unicode/UnicodeData.txt: Likewise.
5476 * unicode/COPYING: Likewise.
5477 * util/grub-editenv.c (grub_putchar): Removed.
5478 (grub_xputs_real): New function.
5479 (grub_xputs): New variable.
5480 * util/grub-fstest.c (grub_putchar): Removed.
5481 (grub_xputs_real): New function.
5482 (grub_xputs): New variable.
5483 * util/grub-mkdevicemap.c (grub_putchar): Removed.
5484 (grub_xputs_real): New function.
5485 (grub_xputs): New variable.
5486 * util/grub-probe.c (grub_putchar): Removed.
5487 (grub_xputs_real): New function.
5488 (grub_xputs): New variable.
5489 * util/grub-script-check.c (grub_putchar): Removed.
5490 (grub_xputs_real): New function.
5491 (grub_xputs): New variable.
5492 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
5493 (grub_xputs_real): New function.
5494 (grub_xputs): New variable.
5495 * util/import_unicode.py: New file.
5496 * util/grub-mkfont.c (ft_errmsgs): New array.
5497 (grub_glyph_info): Make bitmap a pointer.
5498 (file_formats): New type WIDTH_SPEC.
5499 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
5500 (options): Add width-spec.
5501 (help): Likewise.
5502 (add_char): Renamed to ...
5503 (add_glyph): ... this.
5504 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
5505 (glyph_replace): New type.
5506 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
5507 (add_char): New function.
5508 (add_subst): Likewise.
5509 (process_cursive): Likewise.
5510 (add_font): Handle GSUB.
5511 (write_font_width_spec): New function.
5512 (main): Sort glyphs.
5513 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
5514 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
5515 * kern/term.c (grub_cls): Moved from here...
5516 * normal/term.c (grub_cls): ... here.
5517
50f0bcda
CW
55182010-07-02 Colin Watson <cjwatson@ubuntu.com>
5519
5520 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
5521 suitable for using within the format argument of printf when
5522 converting grub_size_t.
5523 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
5524 "x" to convert grub_size_t arguments.
5525
40372103
VS
55262010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5527
5528 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
5529 too long captions.
5530 (list_get_minimal_size): Take selection box into account.
5531
942a10c7
VS
55322010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5533
5534 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
5535 NULL font.
5536
2bdb2892
CW
55372010-07-02 Colin Watson <cjwatson@ubuntu.com>
5538
5539 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
5540 devices when iterating over /dev/disk/by-id; they will be handled
5541 later if appropriate, which they aren't always (e.g. LVM).
5542
e03ed6c1
CW
55432010-07-02 Colin Watson <cjwatson@ubuntu.com>
5544
5545 * include/grub/misc.h (grub_reboot): Declare as noreturn.
5546 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
5547 fails.
5548 (grub_halt): Likewise.
5549 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
5550 reset-all fails.
5551 (grub_halt): Don't return, even if all of shut-down, power-off, and
5552 poweroff fail.
5553
47695765
CW
55542010-07-02 Colin Watson <cjwatson@ubuntu.com>
5555
5556 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
5557 arguments, not three.
5558
507736c8
CW
55592010-07-02 Colin Watson <cjwatson@ubuntu.com>
5560
5561 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
5562 * util/grub.d/10_linux.in: Use it to check for LVM, so that
5563 LVM-on-RAID is handled correctly.
5564
e3c8cd37
CW
55652010-07-02 Colin Watson <cjwatson@ubuntu.com>
5566
5567 * docs/grub.texi (Changes from GRUB Legacy): New section.
5568 (Future): Fix typo.
5569
8d4a2fec
CW
55702010-07-02 Colin Watson <cjwatson@ubuntu.com>
5571
5572 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
5573 grub.d/README accidentally ends up executable for one reason or
5574 another. Ignore it.
5575
1c4827be
VS
55762010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5577
5578 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
5579 (gpt_partition_map_iterate): Support non-512B sectors.
5580
d9a0c941
VS
55812010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5582
5583 * kern/efi/init.c (grub_efi_init): Disable watchdog.
5584 Tested by: Seth Goldberg.
5585
48f27e87
VS
55862010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5587
5588 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
5589 Properly align mbi.
5590 Reported by: Seth Goldberg.
5591
b0c4f956
VS
55922010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5593
5594 * util/grub-mkrescue.in: Avoid module duplication.
5595
105a2e8c
SF
55962010-07-01 Sean Finney <seanius@seanius.net>
5597
5598 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
5599
5944958c
SF
56002010-07-01 Sean Finney <seanius@seanius.net>
5601
5602 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
5603
56042010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5605
5606 * disk/lvm.c (grub_lvm_checkvalue): New function.
5607 (grub_lvm_check_flag): Likewise.
5608
b79889ba
RM
56092010-07-01 Robert Millan <rmh@gnu.org>
5610
5611 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
5612 Support 'p' as partition separator on kernel of FreeBSD (used
5613 with GPT labels).
5614 (grub_util_biosdisk_get_grub_dev): Likewise.
5615
ec1d04f1
VS
56162010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5617
5618 Yeeloong firmware port.
5619
5620 * boot/mips/yeeloong/fwstart.S: New file.
5621 * bus/cs5536.c (gpiodump): New const.
5622 (set_io_space): New function.
5623 (set_iod): Likewise.
5624 (set_p2d): Likewise.
5625 (grub_cs5536_init_geode): Likewise.
5626 * commands/mips/yeeloong/lsspd.c: New file.
5627 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
5628 (serial_mod_SOURCES): New variable.
5629 (serial_mod_CFLAGS): Likewise.
5630 (serial_mod_LDFLAGS): Likewise.
5631 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
5632 term/terminfo.c and term/tparm.c.
5633 (pkglib_IMAGES): Add fwstart.img.
5634 (fwstart_img_SOURCES): New variable.
5635 (fwstart_img_CFLAGS): Likewise.
5636 (fwstart_img_ASFLAGS): Likewise.
5637 (fwstart_img_LDFLAGS): Likewise.
5638 (fwstart_img_FORMAT): Likewise.
5639 (pkglib_MODULES): Add lsspd.mod.
5640 (lsspd_mod_SOURCES): New variable.
5641 (lsspd_mod_CFLAGS): Likewise.
5642 (lsspd_mod_LDFLAGS): Likewise.
5643 (pkglib_MODULES): Add halt.mod.
5644 (halt_mod_SOURCES): New variable.
5645 (halt_mod_CFLAGS): Likewise.
5646 (halt_mod_LDFLAGS): Likewise.
5647 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
5648 (serial_mod_SOURCES): Removed.
5649 (serial_mod_CFLAGS): Likewise.
5650 (serial_mod_LDFLAGS): Likewise.
5651 * disk/ata.c (check_device): New function.
5652 (grub_ata_device_initialize): Use check_device.
5653 (grub_ata_iterate): Recheck devices.
5654 (grub_ata_open): Likewise.
5655 (grub_atapi_iterate): Likewise.
5656 (grub_atapi_open): Likewise.
5657 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
5658 (GRUB_ATA_CH1_PORT1): Likewise.
5659 (GRUB_ATA_CH0_PORT2): Likewise.
5660 (GRUB_ATA_CH1_PORT2): Likewise.
5661 * include/grub/mips/loongson.h: New file.
5662 * include/grub/mips/yeeloong/ec.h: Likewise.
5663 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
5664 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
5665 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
5666 * include/grub/misc.h (grub_halt): Declare as noreturn.
5667 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
5668 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
5669 (UART_ENABLE_FIFO_TRIGGER1): New definition.
5670 (UART_ENABLE_DTRRTS): Likewise.
5671 (UART_ENABLE_MODEM): Removed.
5672 (UART_ENABLE_OUT2): New const.
5673 * include/grub/term.h (grub_term_register_input_active): New function.
5674 (grub_term_register_output_active): Likewise.
5675 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
5676 argument.
5677 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
5678 (init_pci): New function.
5679 (grub_machine_init): Execute platform init when firmware. Init serial.
5680 (grub_halt): Implement.
5681 (grub_exit): Likewise.
5682 (grub_reboot): Likewise.
5683 * term/serial.c (serial_hw_init): Update macros.
5684 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
5685 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
5686 (image_targets): New target mipsel-yeeloong-flash.
5687 (generate_image): Support IMAGE_YEELOONG_FLASH.
5688 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
5689 (grub_video_sm712_setup): Init card.
5690 (grub_video_sm712_set_palette): Removed.
5691 * video/sm712_init.c: New file.
5692
ff4a70d2
CW
56932010-06-30 Colin Watson <cjwatson@ubuntu.com>
5694
5695 * Makefile.in (install-local): Temporarily prepend $(builddir) to
5696 PATH when running help2man and then run it on the unadorned
5697 executable names, rather than passing $(builddir)/* paths to
5698 help2man. This avoids the build directory ending up in generated
5699 manual pages.
5700
1246efeb
CW
57012010-06-29 Colin Watson <cjwatson@ubuntu.com>
5702
5703 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
5704 to avoid accidents when debugging with 'sh -x'.
5705 * util/grub-mkrescue.in: Likewise.
5706 * util/grub.d/00_header.in: Likewise.
5707 * util/grub.d/10_hurd.in: Likewise.
5708 * util/grub.d/10_kfreebsd.in: Likewise.
5709 * util/grub.d/10_linux.in: Likewise.
5710 * util/grub.d/10_netbsd.in: Likewise.
5711 * util/grub.d/10_windows.in: Likewise.
5712 * util/grub.d/20_linux_xen.in: Likewise.
5713 * util/grub.d/30_os-prober.in: Likewise.
5714 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5715
1ba9b889
CW
57162010-06-29 Colin Watson <cjwatson@ubuntu.com>
5717
5718 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
5719 last character in the buffer.
5720 Reported by: Vladimir Serbinenko.
5721
dccaf99d
RM
57222010-06-29 Robert Millan <rmh@gnu.org>
5723
5724 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
5725 (Command-line and menu entry commands): Document `badram' command.
5726
d500ed12
RM
57272010-06-28 Robert Millan <rmh@gnu.org>
5728
5729 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
5730 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
5731 command using ${GRUB_BADRAM} as parameter.
5732
20bc84a6
CW
57332010-06-28 Colin Watson <cjwatson@ubuntu.com>
5734
5735 * docs/grub.texi (Device map): New section.
5736 (Themes): New section (stub).
5737 * Makefile.in (docs/grub.info): The info documentation now builds
5738 without errors. Make sure it stays that way.
5739
4045dee1
VS
57402010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5741
5742 Use normal parser for menu entries.
5743 Reported by: Thomas Frauendorfer
5744
5745 * include/grub/parser.h (grub_parser_execute): Don't export.
5746 * normal/menu.c (grub_menu_execute_entry_real): New function.
5747 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
5748
bca58c7b
CW
57492010-06-28 Colin Watson <cjwatson@ubuntu.com>
5750
5751 * docs/grub.texi (Embedded configuration): New section (replacing
5752 old "Preset Menu" stub).
5753 (Images): New section.
5754 (configfile): Note that any menu entries defined in `file' are shown
5755 immediately.
5756
dec53e63
JT
57572010-06-28 Josh Triplett <josh@joshtriplett.org>
5758
5759 * mmap/i386/pc/mmap_helper.S: Set CF on return.
5760
c06e40f7
CW
57612010-06-28 Colin Watson <cjwatson@ubuntu.com>
5762
5763 * util/grub-install.in: Add --debug-image= option.
5764
cb88052b
CW
57652010-06-28 Colin Watson <cjwatson@ubuntu.com>
5766
5767 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
5768 possible on Linux.
5769
5770 * util/deviceiter.c (check_device): Rename to ...
5771 (check_device_readable_unique): ... this. Update all callers.
5772 Maintain and check a list of which devices (by canonicalized name)
5773 have already been seen.
5774 (clear_seen_devices): New function.
5775 (compare_file_names) [__linux__]: New function.
5776 (grub_util_iterate_devices): Clear the list of seen devices on exit
5777 and (just in case) on entry.
5778 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
5779 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
5780 seen-devices list, superseded by general code in check_device.
5781
bbe34652
CW
57822010-06-28 Colin Watson <cjwatson@ubuntu.com>
5783
5784 * commands/cat.c (options): New variable.
5785 (grub_cmd_cat): Parse options. If the --dos option is given, print
5786 DOS-style "\r\n" line endings as simple newlines (Debian bug
5787 #586358).
5788 (GRUB_MOD_INIT): Use extcmd.
5789 (GRUB_MOD_FINI): Likewise.
5790 * docs/grub.texi (cat): Document --dos.
5791
412e09f3
VS
57922010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5793
5794 XEN with Linux grub-mkconfig support.
5795
5796 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
5797 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
5798 GRUB_CMDLINE_XEN_DEFAULT.
5799 * util/grub.d/20_linux_xen.in: New file.
5800
53f3ef38 58012010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
5802
5803 Initialise VGA video on qemu ourselves.
5804
5805 * boot/i386/qemu/boot.S: Don't call 0xc000.
5806 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
5807 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
5808 (kernel_img_HEADERS): Add pci.h.
5809 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
5810 * configure.ac: Force unifont on qemu and yeeloong.
5811 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
5812 (grub_vga_palette_write): Use correct register.
5813 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
5814 Call grub_qemu_init_cirrus.
5815 * kern/i386/qemu/init.c: New file.
5816 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
5817
5818 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
5819
c75be4fb
PR
58202010-06-26 Pavel Roskin <proski@gnu.org>
5821
5822 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
5823 13.
5824
d8034603
CW
58252010-06-26 Colin Watson <cjwatson@ubuntu.com>
5826
5827 * docs/grub.texi (Simple configuration): Explain that
5828 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
5829 set to `true' to disable their respective recovery entries, not
5830 merely set.
5831
3fa06487
CW
58322010-06-26 Colin Watson <cjwatson@ubuntu.com>
5833
5834 Make the `source' command slightly faster.
5835
5836 * normal/main.c (grub_normal_execute): Don't re-read list files when
5837 nested.
5838
e9b29642
CW
58392010-06-23 Colin Watson <cjwatson@ubuntu.com>
5840
5841 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
5842 field position and mask size to red fields from mode_info, not
5843 green.
5844 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
5845 Remove redundant tag->common.framebuffer_type assignment.
5846 Reported by: Seth Goldberg.
5847
e726542f
CW
58482010-06-23 Colin Watson <cjwatson@ubuntu.com>
5849
5850 Sync up other versions of the Linux loader with Robert Millan's
5851 change of 2010-01-09, "Make loader output a bit more user-friendly".
5852
5853 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
5854 grub_dprintf().
5855 (grub_cmd_linux): Likewise.
5856 (grub_cmd_initrd): Likewise.
5857 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
5858 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5859
d6e98a17
CW
58602010-06-21 Colin Watson <cjwatson@ubuntu.com>
5861
5862 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
5863 larger than MEMORY_MAP_SIZE.
5864
14d3f08e
BC
58652010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
5866
5867 Fix parallel build.
5868
5869 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
5870 dependency.
5871 * script/parser.y: #include grub_script.tab.h header.
5872
4f9613a3
VS
58732010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5874
5875 Support >3GiB and <16MiB RAM in i386-qemu.
5876
5877 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
5878 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
5879 (grub_lower_mem): Removed.
5880 (grub_upper_mem): Likewise.
5881 (mem_size): Made static.
5882 (above_4g): New variable.
5883 (grub_machine_mmap_init): Detect small mem_size and above_4g.
5884 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
5885 support.
5886
05e51879
VS
58872010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5888
5889 Cirrus 5446 and Bochs video cards support.
5890
5891 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
5892 video_bochs.mod
5893 (video_cirrus_mod_SOURCES): New variable.
5894 (video_cirrus_mod_CFLAGS): Likewise.
5895 (video_cirrus_mod_LDFLAGS): Likewise.
5896 (video_bochs_mod_SOURCES): Likewise.
5897 (video_bochs_mod_CFLAGS): Likewise.
5898 (video_bochs_mod_LDFLAGS): Likewise.
5899 * include/grub/vga.h: New file.
5900 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
5901 (grub_video_fb_set_page_t): New type.
5902 (grub_video_fb_setup): New prototype.
5903 (grub_video_fb_swap_buffers): Likewise.
5904 (grub_video_fb_get_info_and_fini): Likewise.
5905 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
5906 (CRTC_DATA_PORT): Likewise.
5907 (CRTC_CURSOR): Likewise.
5908 (CRTC_CURSOR_ADDR_HIGH): Likewise.
5909 (CRTC_CURSOR_ADDR_LOW): Likewise.
5910 (CRTC_CURSOR_DISABLE): Likewise.
5911 (update_cursor): Use grub_vga_cr_write.
5912 (grub_vga_text_setcursor): Likewise.
5913 * video/bochs.c: New file.
5914 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
5915 (palette): Likewise.
5916 (palette_size): Likewise.
5917 (framebuffer): New variable.
5918 (grub_video_fb_init): Use 'framebuffer'.
5919 (grub_video_fb_fini): Likewise.
5920 (grub_video_fb_get_info): Likewise.
5921 (grub_video_fb_get_palette): Likewise.
5922 (grub_video_fb_set_palette): Likewise.
5923 (grub_video_fb_set_viewport): Likewise.
5924 (grub_video_fb_get_viewport): Likewise.
5925 (grub_video_fb_map_color): Likewise.
5926 (grub_video_fb_map_rgb): Likewise.
5927 (grub_video_fb_map_rgba): Likewise.
5928 (grub_video_fb_unmap_color): Likewise.
5929 (grub_video_fb_unmap_color_int): Likewise.
5930 (grub_video_fb_fill_rect): Likewise.
5931 (grub_video_fb_blit_bitmap): Likewise.
5932 (grub_video_fb_blit_render_target): Likewise.
5933 (grub_video_fb_scroll): Likewise.
5934 (grub_video_fb_create_render_target): Likewise.
5935 (grub_video_fb_doublebuf_blit_init): Likewise.
5936 (grub_video_fb_set_active_render_target): Handle doublebuffering.
5937 (doublebuf_pageflipping_update_screen): New function.
5938 (doublebuf_pageflipping_init): Likewise.
5939 (grub_video_fb_setup): Likewise.
5940 (grub_video_fb_swap_buffers): Likewise.
5941 (grub_video_fb_get_info_and_fini): Likewise.
5942 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
5943 All users updated.
5944 (doublebuf_pageflipping_commit): Restructured into ...
5945 (doublebuf_pageflipping_set_page): ... this.
5946 (doublebuf_pageflipping_update_screen): Removed.
5947 (doublebuf_pageflipping_init): Likewise.
5948 (double_buffering_init): Likewise.
5949 (grub_video_vbe_setup): Use grub_video_fb_setup.
5950 (grub_video_vbe_swap_buffers): Removed.
5951 (grub_video_vbe_set_active_render_target): Likewise.
5952 (grub_video_vbe_get_active_render_target): Likewise.
5953 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
5954 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
5955 grub_video_fb_set_active_render_target and
5956 grub_video_fb_get_active_render_target.
5957 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
5958 (SEQUENCER_DATA_PORT): Likewise.
5959 (MAP_MASK_REGISTER): Likewise.
5960 (CRTC_ADDR_PORT): Likewise.
5961 (CRTC_DATA_PORT): Likewise.
5962 (START_ADDR_HIGH_REGISTER): Likewise.
5963 (START_ADDR_LOW_REGISTER): Likewise.
5964 (GRAPHICS_ADDR_PORT): Likewise.
5965 (GRAPHICS_DATA_PORT): Likewise.
5966 (READ_MAP_REGISTER): Likewise.
5967 (INPUT_STATUS1_REGISTER): Likewise.
5968 (INPUT_STATUS1_VERTR_BIT): Likewise.
5969 (get_map_mask): Use grub_vga_sr_read.
5970 (set_map_mask): Use grub_vga_sr_write.
5971 (set_read_map): Use grub_vga_gr_write.
5972 (set_start_address): Use grub_vga_cr_write.
5973 * video/sm712.c (framebuffer): Remove leftover fields.
5974
4321c64a
CW
59752010-06-20 Colin Watson <cjwatson@ubuntu.com>
5976
5977 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
5978 setting GRUB_VIDEO_BACKEND. Make it available as a user override
5979 instead. Replace the gfxterm backend check with a check that
5980 ${GRUB_PREFIX}/video.lst is non-empty.
5981 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
5982 again.
5983 (load_video): New generated function. Call it before loading
5984 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
5985 * util/grub.d/10_linux.in (linux_entry): Call load_video.
5986 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
5987 * docs/grub.texi (Simple configuration): Document
5988 GRUB_VIDEO_BACKEND.
5989
59902010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5991
5992 Use video functions in linux and xnu loaders.
5993
5994 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
5995 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
5996 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
5997 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
5998 loader/i386/pc/linux.c.
5999 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
6000 (find_line_len): Removed.
6001 (find_framebuf): Likewise.
6002 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
6003 * loader/i386/efi/xnu.c: Removed.
6004 * loader/i386/pc/xnu.c: Moved from here...
6005 * loader/i386/xnu.c: ...here.
6006
6007 Enable priorities in video drivers.
6008
6009 * include/grub/video.h (grub_video_adapter_prio_t): New type.
6010 (grub_video_adapter): New field prio.
6011 (grub_video_register): Respect prio when inserting.
6012 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
6013 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
6014 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
6015 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
6016 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
6017 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
6018 * video/sm712.c (grub_video_sm712_adapter): Likewise.
6019
6020 Fix SDL driver ID.
6021
6022 * include/grub/video.h (grub_video_driver_id_t): New value
6023 GRUB_VIDEO_DRIVER_SDL.
6024 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
6025
7d24e434
CW
60262010-06-17 Colin Watson <cjwatson@ubuntu.com>
6027
6028 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
6029 argument to printf.
6030 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6031
c88a83f6
CW
60322010-06-17 Colin Watson <cjwatson@ubuntu.com>
6033
6034 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
6035 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6036
094dfb69
CW
60372010-06-17 Colin Watson <cjwatson@ubuntu.com>
6038
6039 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
6040 directly, and recommend grub-install instead.
6041 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6042
2164da6b
CW
60432010-06-17 Colin Watson <cjwatson@ubuntu.com>
6044
6045 Fix i386-pc prefix handling with nested partitions (Debian bug
6046 #585068). Note that the case where the core image is booted using
6047 multiboot and relocated from its original location still requires
6048 more work.
6049
6050 * kern/i386/pc/init.c (make_install_device): If the prefix starts
6051 with "(,", fill the boot drive in between those two characters, but
6052 expect that a full partition specification including partition map
6053 names will follow.
6054 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
6055 specified, write a prefix without the drive name but including a
6056 full partition specification.
6057
044e2e60
CW
60582010-06-16 Colin Watson <cjwatson@ubuntu.com>
6059
6060 * util/grub-mkconfig.in: Ignore non-option arguments, for
6061 compatibility with older versions (before 2010-06-12) which did the
6062 same. In particular, this makes it easier to ship an update-grub
6063 wrapper which is compatible with that used with GRUB Legacy (Debian
6064 bug #586056).
6065
5591324f
GS
60662010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6067
6068 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
6069 for manual page generation.
6070
662e24d5
GS
60712010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6072
6073 * po/POTFILES: Remove leftover commands/handler.c.
6074
8d70754e
CW
60752010-06-14 Colin Watson <cjwatson@ubuntu.com>
6076
6077 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
6078 left this script non-functional.
6079
41160e2e
CW
60802010-06-14 Colin Watson <cjwatson@ubuntu.com>
6081
6082 * docs/man/grub-emu.h2m: New file.
6083
b5309cc1
CW
60842010-06-13 Colin Watson <cjwatson@ubuntu.com>
6085
6086 * docs/grub.texi (Commands): Document reduced command set in rescue
6087 mode.
6088 (cpuid): New section.
6089
fcb2d090
GS
60902010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
6091
6092 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
6093 new partition naming style.
6094 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
6095
96e5c556
BC
60962010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
6097
6098 Add "-o grub.iso" like cmdline options support.
6099
6100 * util/grub-install.in: Improve cmdline option parsing.
6101 * util/grub-mkconfig.in: Likewise.
6102 * util/grub-mkrescue.in: Likewise.
6103 * util/grub-reboot.in: Likewise.
6104 * util/grub-set-default.in: Likewise.
6105 * util/i386/efi/grub-install.in: Likewise.
6106 * util/ieee1275/grub-install.in: Likewise.
6107 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6108
c16be99b
CW
61092010-06-12 Colin Watson <cjwatson@ubuntu.com>
6110
6111 * .bzrignore: Ignore 41_custom.
6112
ce08a9fb
TS
61132010-06-12 Thomas Schmitt <scdbackup@gmx.net>
6114
6115 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
6116
7beac90c
CW
61172010-06-12 Colin Watson <cjwatson@ubuntu.com>
6118
6119 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
6120 prototype declarations.
6121
6122 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
6123 generating fs, partmap, and video lists.
6124 * include/grub/fs.h (grub_fs_register): Omit prototype if
6125 GRUB_LST_GENERATOR is defined.
6126 * include/grub/partition.h (grub_partition_map_register): Likewise.
6127 * include/grub/video.h (grub_video_register): Likewise.
6128
1c8f0f8d
JM
61292010-06-12 Javier Martín <lordhabbit@gmail.com>
6130
6131 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
6132
a6085973
TS
61332010-06-12 Thomas Schmitt <scdbackup@gmx.net>
6134
6135 * util/grub-mkrescue.in: Support --xorriso argument.
6136
25c56d29
VS
61372010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6138
6139 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
6140 Suggested by: Thomas Schmitt.
6141
e03e4b24
VS
61422010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6143
6144 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
6145 Suggested by: Thomas Schmitt.
6146
57711df6
VS
61472010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6148
6149 custom.cfg support.
6150
6151 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
6152 * util/grub.d/41_custom.in: New file.
6153
ee62c427
CW
61542010-06-12 Colin Watson <cjwatson@ubuntu.com>
6155
6156 * util/grub-mkrescue.in (make_image): Remove sh module, which has
6157 been merged back into normal.
6158
283af07a
CW
61592010-06-11 Colin Watson <cjwatson@ubuntu.com>
6160
6161 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
6162 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
6163
56a0d956
CW
61642010-06-11 Colin Watson <cjwatson@ubuntu.com>
6165
6166 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
6167 when generating manual pages.
6168 * docs/man/grub-bin2h.h2m: New file.
6169 * docs/man/grub-editenv.h2m: New file.
6170 * docs/man/grub-fstest.h2m: New file.
6171 * docs/man/grub-install.h2m: New file.
6172 * docs/man/grub-macho2img.h2m: New file.
6173 * docs/man/grub-mkconfig.h2m: New file.
6174 * docs/man/grub-mkdevicemap.h2m: New file.
6175 * docs/man/grub-mkfont.h2m: New file.
6176 * docs/man/grub-mkimage.h2m: New file.
6177 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
6178 * docs/man/grub-mkrelpath.h2m: New file.
6179 * docs/man/grub-mkrescue.h2m: New file.
6180 * docs/man/grub-ofpathname.h2m: New file.
6181 * docs/man/grub-pe2elf.h2m: New file.
6182 * docs/man/grub-probe.h2m: New file.
6183 * docs/man/grub-reboot.h2m: New file.
6184 * docs/man/grub-script-check.h2m: New file.
6185 * docs/man/grub-set-default.h2m: New file.
6186 * docs/man/grub-setup.h2m: New file.
6187
3a37e322
VS
61882010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 Use FOR_* macros instead of *_iterate whenever possible.
6191
6192 * commands/handler.c: Removed.
6193 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
6194 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
6195 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6196 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
6197 (grub_probe_SOURCES): Remove kern/parser.c.
6198 (util/grub-script-check.c_DEPENDENCIES): Removed.
6199 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
6200 and grub_script_check_init.c.
6201 (grub_script_check_init.lst): Removed.
6202 (grub_script_check_init.h): Likewise.
6203 (grub_script_check_init.c): Likewise.
6204 (pkglib_MODULES): Remove handler.mod and sh.mod.
6205 (handler_mod_SOURCES): Removed.
6206 (handler_mod_CFLAGS): Likewise.
6207 (handler_mod_LDFLAGS): Likewise.
6208 (normal_mod_SOURCES): Remove normal/handler.c.
6209 Add script/main.c, script/script.c, script/execute.c,
6210 script/function.c, script/lexer.c, grub_script.tab.c
6211 and grub_script.yy.c.
6212 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6213 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6214 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
6215 (grub_setup_SOURCES): Remove kern/parser.c.
6216 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6217 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
6218 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6219 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6220 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6221 (grub_setup_SOURCES): Remove kern/parser.c.
6222 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6223 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
6224 * include/grub/command.h (grub_command_iterate): Removed.
6225 (FOR_COMMANDS): New macro.
6226 * include/grub/dl.h (grub_dl): New member next.
6227 (grub_dl_iterate): Removed.
6228 (grub_dl_head): New variable declaration.
6229 (FOR_DL_MODULES): New macro.
6230 * include/grub/fs.h: Include list.h.
6231 (grub_fs): Make next first element.
6232 (grub_fs_list): New variable declaration.
6233 (grub_fs_register): Make inline.
6234 (grub_fs_unregister): Likewise.
6235 (grub_fs_iterate): Removed.
6236 (FOR_FILESYSTEMS): New macro.
6237 * include/grub/handler.h: Removed.
6238 * include/grub/list.h (grub_list_hook_t): Removed.
6239 (grub_list_test_t): Likewise.
6240 (grub_list_pop): Likewise.
6241 (grub_list_iterate): Likewise.
6242 (grub_list_insert): Likewise.
6243 (FOR_LIST_ELEMENTS): New macro.
6244 * include/grub/parser.h (grub_parser_class): Removed.
6245 (grub_parser_register): Likewise.
6246 (grub_parser_unregister): Likewise.
6247 (grub_parser_get_current): Likewise.
6248 (grub_parser_set_current): Likewise.
6249 (grub_register_rescue_parser): Likewise.
6250 (grub_rescue_parse_line): New function.
6251 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
6252 * include/grub/script_sh.h (grub_script_function_list): New variable
6253 declaration.
6254 (FOR_SCRIPT_FUNCTIONS): New macro.
6255 (grub_script_function_iterate): Removed.
6256 (grub_normal_parse_line): New prototype.
6257 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
6258 (FOR_DISABLED_TERM_INPUTS): Likewise.
6259 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
6260 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
6261 * include/grub/video.h (grub_video_adapter): Move 'next' to first
6262 element.
6263 (grub_video_register): Inline.
6264 (grub_video_unregister): Likewise.
6265 (grub_video_adapter_list): New variable declaration.
6266 (grub_video_iterate): Removed.
6267 (FOR_VIDEO_ADAPTERS): New macro.
6268 * kern/dl.c (grub_dl_list): Removed. All users updated.
6269 (grub_dl_iterate): Removed.
6270 * kern/fs.c (grub_fs_list): Make global.
6271 (grub_fs_register): Removed.
6272 (grub_fs_unregister): Likewise.
6273 (grub_fs_iterate): Likewise.
6274 * kern/handler.c: Removed.
6275 * kern/list.c (grub_list_pop): Removed.
6276 (grub_list_iterate): Likewise.
6277 (grub_list_insert): Likewise.
6278 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
6279 (grub_prio_list_insert): Don't use grub_list_insert.
6280 * kern/main.c (grub_register_rescue_parser): Don't call
6281 grub_register_rescue_parser.
6282 * kern/parser.c (grub_parser_class): Removed.
6283 (grub_parser_execute): Use grub_rescue_parse_line.
6284 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
6285 (grub_rescue_parser): Removed.
6286 (grub_register_rescue_parser): Likewise.
6287 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
6288 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
6289 (grub_auth_check_authentication): Likewise.
6290 * normal/completion.c (iterate_command): Removed.
6291 (grub_normal_do_completion): Use FOR_COMMANDS.
6292 * normal/handler.c: Removed.
6293 * normal/main.c (read_config_file): Remove parser changing.
6294 (grub_normal_execute): Don't call read_handler_list.
6295 (grub_normal_read_line_real): Statically allocate prompt.
6296 (grub_cmdline_run): Use grub_normal_parse_line.
6297 (GRUB_MOD_FINI): Don't call free_handler_list.
6298 * normal/menu_entry.c (run): Likewise.
6299 * script/function.c (grub_script_function_list): Make global.
6300 (grub_script_function_iterate): Removed.
6301 * script/main.c (grub_normal_parse_line): Make global.
6302 (grub_sh_parser): Removed.
6303 (GRUB_MOD_INIT): Likewise.
6304 (GRUB_MOD_FINI): Likewise.
6305 * tests/lib/functional_test.c (grub_functional_test): Use
6306 FOR_LIST_ELEMENTS.
6307 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
6308 (grub_test_run): Use FOR_LIST_ELEMENTS.
6309 * tests/lib/unit_test.c (main): Likewise.
6310 * util/deviceiter.c (grub_util_iterate_devices): Don't use
6311 grub_list_pop.
6312 * util/grub-fstest.c (grub_term_input_class): Removed.
6313 (grub_term_output_class): Likewise.
6314 * util/grub-probe.c: Likewise.
6315 * util/i386/pc/grub-setup.c: Likewise.
6316 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6317 * util/grub-script-check.c (main): Don't call grub_init_all and
6318 grub_fini_all.
6319 * video/video.c (grub_video_adapter_list): Make global.
6320 (grub_video_register): Removed.
6321 (grub_video_unregister): Likewise.
6322 (grub_video_iterate): Likewise.
6323
6289c3a7
VS
63242010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6325
6326 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
6327 reported by Henrique Ferreiro.
6328
91460247
RM
63292010-06-09 Robert Millan <rmh@gnu.org>
6330
6331 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
6332 ones, when both are available.
6333
0ea7c4f9
GS
63342010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6335
6336 Make --version uniform and avoid hard-coded program name.
6337
6338 * util/grub-mkimage.c (main): Use `program_name' instead of
6339 hard-coded string.
6340 * util/i386/pc/grub-setup.c (main): Likewise.
6341 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
6342 * util/grub-install.in: Save the basename of $0 in $self, and use the
6343 latter in informational messages. Use the same format for --version
6344 as the binary programs.
6345 * util/grub-mkconfig.in: Likewise.
6346 * util/grub-mkrescue.in: Likewise.
6347 * util/grub-reboot.in: Likewise.
6348 * util/grub-set-default.in: Likewise.
6349 * util/i386/efi/grub-install.in: Likewise.
6350 * util/ieee1275/grub-install.in: Likewise.
6351 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6352
e8a6f3b6
GS
63532010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6354
6355 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
6356 embedding area. Use <= instead of == when checking for non-emptiness.
6357
f4d095d7
GS
63582010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6359
6360 * configure.ac: Add `.' to the directories searched for unifont.
6361
50e532ca
CW
63622010-06-08 Colin Watson <cjwatson@ubuntu.com>
6363
6364 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
6365 grub_script.yy.h.
6366
d39f3dec
CW
63672010-06-08 Colin Watson <cjwatson@ubuntu.com>
6368
6369 * docs/grub.texi (History): Expand to cover GRUB 2.
6370 (Serial terminal): Refer to `terminal_input' and `terminal_output'
6371 commands, not `terminal'.
6372 (serial): Likewise.
6373 (terminal_input): New section.
6374 (terminal_output): New section.
6375 (uppermem): New section (stub).
6376 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
6377
6ef0ddb4
CW
63782010-06-08 Colin Watson <cjwatson@ubuntu.com>
6379
6380 * docs/grub.texi (Security): Menu entries are unrestricted by
6381 default, not restricted to superusers as I had previously thought.
6382 Reword to account for this.
6383
e0f4c438
CW
63842010-06-07 Colin Watson <cjwatson@ubuntu.com>
6385
6386 * kern/emu/misc.c (device_mapper_null_log): New function.
6387 (grub_device_mapper_supported): New function.
6388 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
6389 prototype.
6390 * kern/emu/hostdisk.c (find_partition_start): Check whether
6391 device-mapper is supported before trying to use it.
6392 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
6393
da908200
CW
63942010-06-07 Colin Watson <cjwatson@ubuntu.com>
6395
6396 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
6397 (File name syntax): Likewise.
6398 (help): --all is no longer supported in GRUB 2. Be more precise
6399 about pattern matching.
6400
fb55c3ac
CW
64012010-06-07 Colin Watson <cjwatson@ubuntu.com>
6402
6403 * normal/completion.c (grub_normal_do_completion): When completing
6404 arguments to "set" and the current word contains an equals sign,
6405 skip to after the equals sign before starting completion.
6406
258c2573
CW
64072010-06-07 Colin Watson <cjwatson@ubuntu.com>
6408
6409 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
6410
ee75515e
CW
64112010-06-07 Colin Watson <cjwatson@ubuntu.com>
6412
6413 * docs/grub.texi (Network): New section.
6414 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
6415 `(nd)' as in GRUB Legacy.
6416 (pxe_unload): New section.
6417
a6a700aa
CW
64182010-06-07 Colin Watson <cjwatson@ubuntu.com>
6419
6420 * docs/grub.texi (Troubleshooting): `echo' is not usually available
6421 in the rescue shell, so recommend using `set' instead. Thanks,
6422 Jordan Uggla.
6423
4003dd38
CW
64242010-06-07 Colin Watson <cjwatson@ubuntu.com>
6425
6426 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
6427 (password): New section.
6428 (password_pbkdf2): New section.
6429 (search): New section.
6430 (Security): New section.
6431 (Troubleshooting): New section, currently very incomplete.
6432 (Invoking grub-mkpasswd-pbkdf2): New section.
6433 (Internals): New section, currently very incomplete.
6434
e1cbcc40
CW
64352010-06-07 Colin Watson <cjwatson@ubuntu.com>
6436
6437 * util/grub.d/00_header.in: Add some more quoting (of
6438 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
6439 work again.
6440 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
6441
db8fa1ad
CW
64422010-06-07 Colin Watson <cjwatson@ubuntu.com>
6443
6444 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
6445 to `count', fixing variable shadowing that broke the -c option.
6446
64472010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
6448
6449 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
6450 in case they contain spaces.
6451
f28a9212
CW
64522010-06-04 Colin Watson <cjwatson@ubuntu.com>
6453
6454 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
6455 "part_" to partmap module names, in line with grub-install.
6456 Reported by: Jindřich Makovička (Debian bug #584426).
6457
9cdfe32f
CW
64582010-06-04 Colin Watson <cjwatson@ubuntu.com>
6459
6460 * util/grub-mkimage.c: Make target-related error messages slightly
6461 more helpful; -O talks about "format". Explicitly point to the use
6462 of -O if no target is specified.
6463 Reported by: Didier Raboud (Debian bug #584415).
6464
795b593a
CW
64652010-06-03 Colin Watson <cjwatson@ubuntu.com>
6466
6467 * INSTALL: Document several build requirements for optional features
6468 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
6469
9d9b5833
GS
64702010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6471
6472 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
6473 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
6474 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
6475
0819fec8
CW
64762010-06-02 Colin Watson <cjwatson@ubuntu.com>
6477
6478 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
6479 Thanks to Jordan Uggla for spotting this.
6480
49396b4f
VS
64812010-06-02 Aleš Nesrsta <starous@volny.cz>
6482
6483 Finally make USB usable.
6484
6485 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
6486 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
6487 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
6488 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
6489 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
6490 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
6491 (GRUB_OHCI_FSMPS): Likewise.
6492 (GRUB_OHCI_PERIODIC_START): Likewise.
6493 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
6494 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
6495 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
6496 (GRUB_OHCI_SET_PORT_RESET): Likewise.
6497 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
6498 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
6499 (grub_ohci_transaction): Likewise.
6500 (grub_ohci_transfer): Improve condition detection algorithms.
6501 Handle toggle property. Program the transactions correctly.
6502 Improve error handling. Various important fixups.
6503 (grub_ohci_portstatus): Put register writes in right order.
6504 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
6505 (grub_uhci_transfer): Don't show "failed" message on success.
6506 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
6507 array.
6508 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
6509 determine its size.
6510 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
6511 before initialization is completed. Use IN direction for empty
6512 transfers. Use last_trans and compute toggle.
6513 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
6514 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
6515 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
6516 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
6517 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
6518 (grub_usb_device): Increase toggle to 256.
6519 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
6520 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
6521 GRUB_USBMS_SUBCLASS_SFF8070.
6522 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
6523 (grub_scsi_inquiry): New member page and alloc_length.
6524 (grub_scsi_request_sense): New structure.
6525 (grub_scsi_request_sense_data): Likewise.
6526 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
6527 control.
6528 * disk/scsi.c (grub_scsi_request_sense): New function.
6529 (grub_scsi_test_unit_ready): Likewise.
6530 (grub_scsi_inquiry): Fill new fields.
6531 (grub_scsi_read_capacity): Likewise.
6532 (grub_scsi_read10): Add request sense at the end.
6533 (grub_scsi_read12): Likewise.
6534 (grub_scsi_write10): Likewise.
6535 (grub_scsi_write12): Likewise.
6536 (grub_scsi_open): Add Test Unit Ready.
6537 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
6538 Support additional subclasses. Con't clear halt yet. Activate the
6539 proper config. Calculate LUNs correctly.
6540 (grub_usbms_transfer): Various important fixups.
6541
65422010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6543
6544 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
6545 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
6546 (grub_ohci_fini_hw): New function.
6547 (grub_ohci_restore_hw): Likewise.
6548 (GRUB_MOD_INIT(ohci)): Register preboot hook.
6549 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
6550 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
6551
65522010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6553
6554 Dedicated DMA allocations.
6555
6556 * bus/pci.c (grub_memalign_dma32): New function
6557 (grub_dma_free): Likewise.
6558 (grub_dma_get_virt): Likewise.
6559 (grub_dma_get_phys): Likewise.
6560 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
6561 (grub_ohci_pci_iter): Use dma32_alloc.
6562 (grub_ohci_transfer): Likewise.
6563 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
6564 (grub_usb_bulk_readwrite): Likewise.
6565 * include/grub/pci.h: Add declarations.
6566
65672010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6568
6569 CS5536 support.
6570
6571 * bus/cs5536.c: New file.
6572 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
6573 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
6574 (cs5536_mod_SOURCES): New variable.
6575 (cs5536_mod_CFLAGS): Likewise.
6576 (cs5536_mod_LDFLAGS): Likewise.
6577 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
6578 machine/pci.h.
6579 (kernel_img_SOURCES): Add bus/cs5536.c.
6580 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
6581 usb_keyboard.mod.
6582 (usb_mod_SOURCES): New variable.
6583 (usb_mod_CFLAGS): New variable.
6584 (usb_mod_LDFLAGS): New variable.
6585 (usbtest_mod_SOURCES): New variable.
6586 (usbtest_mod_CFLAGS): New variable.
6587 (usbtest_mod_LDFLAGS): New variable.
6588 (ohci_mod_SOURCES): New variable.
6589 (ohci_mod_CFLAGS): New variable.
6590 (ohci_mod_LDFLAGS): New variable.
6591 (usbms_mod_SOURCES): New variable.
6592 (usbms_mod_CFLAGS): New variable.
6593 (usbms_mod_LDFLAGS): New variable.
6594 (usb_keyboard_mod_SOURCES): New variable.
6595 (usb_keyboard_mod_CFLAGS): New variable.
6596 (usb_keyboard_mod_LDFLAGS): New variable.
6597 * include/grub/smbus.h: New file.
6598 * include/grub/cs5536.h: New file.
6599
0b35b2a9
CW
66002010-06-02 Colin Watson <cjwatson@ubuntu.com>
6601
6602 * util/grub.d/00_header.in: Add safety check to make sure that
6603 ${locale_dir} exists before trying to probe it.
6604
ca0afd5b
CW
66052010-06-02 Colin Watson <cjwatson@ubuntu.com>
6606
6607 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
6608 per the GNU Coding Standards; this is now too obscure to be worth
6609 documenting.
6610 (QNX): Likewise.
6611 (chainloader): Remove cross-reference to `SCO UnixWare'.
6612
1c41aa78
CW
66132010-06-02 Colin Watson <cjwatson@ubuntu.com>
6614
6615 * docs/grub.texi (Chain-loading): New section.
6616 (DOS/Windows): New section, borrowed from GRUB Legacy with details
6617 adjusted for GRUB 2.
6618 (SCO UnixWare): Likewise.
6619 (QNX): Likewise.
6620 (chainloader): Add reference to `Block list syntax'.
6621 (drivemap): New section.
6622 (parttool): New section.
6623
bb8ea0f5
CW
66242010-06-02 Colin Watson <cjwatson@ubuntu.com>
6625
6626 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
6627 the grub shell'.
6628 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
6629 (Installing GRUB using grub-install): Remove reference to the grub
6630 shell; mention `grub-mkimage' and `grub-setup' instead.
6631 (Invoking grub-install): Likewise.
6632 (Interface): Add reference to `Menu entry editor'.
6633 (serial): Remove `--device' option.
6634
288dd6ed
CW
66352010-06-02 Colin Watson <cjwatson@ubuntu.com>
6636
6637 * docs/grub.texi (Configuration): New section, documenting
6638 configuration file generation using grub-mkconfig. I've left a slot
6639 for documenting the full shell scripting format but have not yet
6640 started on writing that up.
6641 (Invoking grub-mkconfig): New section.
6642
34c9f0e9
CW
66432010-06-02 Colin Watson <cjwatson@ubuntu.com>
6644
6645 * docs/grub.texi (direntry): Remove grub-terminfo reference.
6646 (GNU GRUB manual): Likewise.
6647 (General commands): Update description of `terminfo' for GRUB 2.
6648
9121567e
CW
66492010-06-02 Colin Watson <cjwatson@ubuntu.com>
6650
6651 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
6652 (GRUB_MOD_INIT): Fix capitalisation.
6653 * docs/grub.texi (Command-line and menu entry commands): Document
6654 gettext and gptsync commands.
6655
ab631611
CW
66562010-06-02 Colin Watson <cjwatson@ubuntu.com>
6657
6658 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
6659 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
6660
bde4a9ac
CW
66612010-06-01 Colin Watson <cjwatson@ubuntu.com>
6662
6663 Add btrfs probing support, currently only in the single-device case.
6664
6665 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
6666 function.
6667 (grub_guess_root_device): Call find_root_device_from_mountinfo
6668 before looking in /dev.
6669
b1d17e10
VS
66702010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6671
6672 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
6673 GRUB_DISK_SIZE_UNKNOWN.
6674 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
6675
dfbfe004
JS
66762010-05-31 Jiro SEKIBA <jir@unicus.jp>
6677
6678 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
6679 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
6680 corrupted or not synced properly.
6681
c2ffc8e9
VS
66822010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6683
6684 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
6685 Reported by: Seth Goldberg.
6686
56293166
VS
66872010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6688
6689 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
6690 addition of dest.
6691 Reported by: Seth Goldberg.
6692
7620e7de
VS
66932010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6694
6695 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
6696 Reported by: Seth Goldberg.
6697
c837af3f
VS
66982010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6699
6700 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
6701 64-bit address as signed on MIPS.
6702
c7c75cf4
CW
67032010-05-28 Colin Watson <cjwatson@ubuntu.com>
6704
6705 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
6706 to the empty string.
6707
fa4b8490
BC
67082010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
6709
6710 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
6711
6712 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
6713 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
6714 * kern/misc.c (__enable_execute_stack): Disable on
6715 GRUB_MACHINE_EMU.
6716
a33075b9
CW
67172010-05-28 Colin Watson <cjwatson@ubuntu.com>
6718
6719 Make grub-probe work with symbolic links under /dev/mapper as well
6720 as with real block devices. The Linux world seems to be (at best)
6721 in transition here, and GRUB shouldn't get caught in the middle.
6722
6723 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
6724 /dev/mapper.
6725
d8708134
CW
67262010-05-27 Colin Watson <cjwatson@ubuntu.com>
6727
6728 * util/grub-script-check.c (main): Ensure defined behaviour on empty
6729 input files (in which case exit zero).
6730
db2102a0
CW
67312010-05-27 Colin Watson <cjwatson@ubuntu.com>
6732
6733 * kern/emu/misc.c (canonicalize_file_name): realpath can still
6734 return NULL for various reasons even if it has a maximum-length
6735 buffer: for example, there might be a symlink loop, or the path
6736 might exceed PATH_MAX. If this happens, return NULL.
6737
5fdba519
RM
67382010-05-27 Robert Millan <rmh@gnu.org>
6739
6740 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
6741 partmap module to handle cross-partmap setups.
6742 Reported by Orestes Mas. Gràcies!
6743
d1d368e4
CW
67442010-05-27 Colin Watson <cjwatson@ubuntu.com>
6745
6746 * util/grub-mkrescue.in: Initialise override_dir rather than
6747 assuming that it's unset or empty in the environment.
6748
95ac3c73
GS
67492010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
6750
6751 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
6752 variable index into p_index to suppress a warning with -Wshadow.
6753
7d8c0213
BC
67542010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
6755
6756 * INSTALL: Added flex >= 2.5.35 requirement.
6757
db4d5813
VS
67582010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
6761
f24f4300
VS
67622010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 cmostest support.
6765
6766 * commands/i386/cmostest.c: New file.
6767 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
6768 (cmostest_mod_SOURCES): New variable.
6769 (cmostest_mod_CFLAGS): Likewise.
6770 (cmostest_mod_LDFLAGS): Likewise.
6771 * conf/i386-pc.rmk: Likewise.
6772 * docs/grub.texi (Vendor power-on keys): New section.
6773 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
6774 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
6775 and GRUB_BUTTON_CMOS_ADDRESS.
6776 * util/grub.d/00_header.in: Handle powering-on by separate button.
6777
ad603f61
VS
67782010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6779
6780 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
6781 Removed drawing_scrollbar argument. All users updated
6782 Fixes #29792.
6783 Reported by Jo Shields
6784
3ecb080a
VS
67852010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6786
6787 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
6788 buffer since gfxterm handles double repaint.
6789
5f2316c1
VS
67902010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
6793 * term/gfxterm.c (real_scroll): Likewise.
6794
9a25f885
VS
67952010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
6798 before calling BIOS.
6799
39fbb79a
VS
68002010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6801
6802 * include/grub/i18n.h: Always enable grub_gettext.
6803
228cfa97
VS
68042010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
6807 partition naming style.
6808
21717c8f
CW
68092010-05-21 Colin Watson <cjwatson@ubuntu.com>
6810
6811 * util/grub-mkconfig.in: Fix handling of -o so that it works when
6812 not the first option.
6813
c0f48e65
CW
68142010-05-20 Colin Watson <cjwatson@ubuntu.com>
6815
6816 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
6817
96779aec
CW
68182010-05-20 Colin Watson <cjwatson@ubuntu.com>
6819
6820 * util/misc.c: Move inclusion of <limits.h> to ...
6821 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
6822
fa9d256e
GS
68232010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6824
6825 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
6826 Fix merge error in NetBSD code.
6827 (find_partition_start) [__NetBSD__]: Likewise.
6828
123b7a85
BC
68292010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
6830
6831 Fix grub-mkrescue usage unit testing.
6832
6833 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
6834
74276c0d
CF
68352010-05-18 Christian Franke <franke@computer.org>
6836
6837 * util/grub.d/10_windows.in: Use path names instead of
6838 drive letters to prevent warning from Cygwin 1.7.
6839 Add drivemap command to menuentry if needed.
6840
c4f7b523
ST
68412010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
6842
6843 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
6844 gnumach and gnumach.gz.
6845
95b97950
VS
68462010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6847
6848 * include/grub/i18n.h (gettext): Inline instead of using #define.
6849 (grub_gettext): Likewise.
6850 (_): Likewise.
6851
01b8d2d7
VS
68522010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6853
6854 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
6855 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
6856 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
6857 (main): Add a slash after pkglibdirroot.
6858
654e1d1e
VS
68592010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6860
6861 * util/grub-install.in: Add missing "in" keyword.
6862
26966aeb
VS
68632010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6864
6865 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
6866 Reported by: Seth Goldberg.
6867
75006747
VS
68682010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6869
6870 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
6871
74cbf5bd
CW
68722010-05-18 Colin Watson <cjwatson@ubuntu.com>
6873
6874 * configure.ac: Check for Linux device-mapper support.
6875
6876 * util/hostdisk.c (device_is_mapped): New function.
6877 (find_partition_start): New function, partly broken out from
6878 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
6879 device-mapper support added.
6880 (linux_find_partition): Use find_partition_start.
6881 (convert_system_partition_to_system_disk): Add `st' argument.
6882 Support Linux /dev/mapper/* devices if device-mapper support is
6883 available; only DM-RAID devices are understood at present.
6884 (find_system_device): Add `st' argument. Pass it to
6885 convert_system_partition_to_system_disk.
6886 (grub_util_biosdisk_get_grub_dev): Pass stat result to
6887 find_system_device and convert_system_partition_to_system_disk. Use
6888 find_partition_start.
6889
6890 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
6891 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
6892 * util/deviceiter.c [__linux__]: Define MINOR.
6893 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
6894 * util/mkdevicemap.c (grub_putchar): New function.
6895 (grub_getkey): New function.
6896 (grub_refresh): New function.
6897 (main): Set debug=all if -v -v is used.
6898
355b51e9
CW
68992010-05-18 Colin Watson <cjwatson@ubuntu.com>
6900
6901 Fix build with non-GNU libcs.
6902
6903 * util/misc.c (canonicalize_file_name): Move to ...
6904 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
6905 grub_make_system_path_relative_to_its_root.
6906
7fb5c25f
CW
69072010-05-18 Colin Watson <cjwatson@ubuntu.com>
6908
6909 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
6910 we handle finding grub-mkimage. Default to finding grub-mkimage in
6911 ${bindir} with program_transform_name applied, and provide a
6912 --grub-mkimage option to override this.
6913
1d3293d6
VS
69142010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6915
6916 Remove grub-mkisofs.
6917
6918 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
6919 (grub_mkisofs_SOURCES): Removed.
6920 (grub_mkisofs_CFLAGS): Removed.
6921 * util/mkisofs/defaults.h: Removed.
6922 * util/mkisofs/eltorito.c: Likewise.
6923 * util/mkisofs/exclude.h: Likewise.
6924 * util/mkisofs/hash.c: Likewise.
6925 * util/mkisofs/include/: Likewise.
6926 * util/mkisofs/include/fctldefs.h: Likewise.
6927 * util/mkisofs/include/mconfig.h: Likewise.
6928 * util/mkisofs/include/prototyp.h: Likewise.
6929 * util/mkisofs/include/statdefs.h: Likewise.
6930 * util/mkisofs/iso9660.h: Likewise.
6931 * util/mkisofs/joliet.c: Likewise.
6932 * util/mkisofs/match.c: Likewise.
6933 * util/mkisofs/match.h: Likewise.
6934 * util/mkisofs/mkisofs.c: Likewise.
6935 * util/mkisofs/mkisofs.h: Likewise.
6936 * util/mkisofs/msdos_partition.h: Likewise.
6937 * util/mkisofs/multi.c: Likewise.
6938 * util/mkisofs/name.c: Likewise.
6939 * util/mkisofs/rock.c: Likewise.
6940 * util/mkisofs/tree.c: Likewise.
6941 * util/mkisofs/write.c: Likewise.
6942
5dde9afe
VS
69432010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6944
6945 Unify grub-mkimage accross platforms.
6946
6947 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
6948 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
6949 (grub_mkelfimage_SOURCES): Removed.
6950 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
6951 (util/grub-mkimage.c_DEPENDENCIES): .. this.
6952 (bin_UTILITIES): Add grub-mkimage.
6953 (grub_mkimage_SOURCES): New variable.
6954 (kernel_img_HEADERS): Remove machine/kernel.h.
6955 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
6956 (pkglib_PROGRAMS): Add kernel.img.
6957 (kernel_img_HEADERS): Add machine/kernel.h.
6958 (kernel_img_FORMAT): Removed.
6959 (bin_UTILITIES): Remove grub-mkimage.
6960 (grub_mkimage_SOURCES): Removed.
6961 (grub_mkimage_CFLAGS): Likewise.
6962 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6963 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
6964 (pkglib_PROGRAMS): Add kernel.img.
6965 (bin_UTILITIES): Remove grub-mkimage.
6966 (grub_mkimage_SOURCES): Removed.
6967 (grub_mkimage_CFLAGS): Likewise.
6968 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6969 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
6970 (pkglib_PROGRAMS): Add kernel.img.
6971 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
6972 (pkglib_PROGRAMS): Add kernel.img.
6973 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
6974 (grub_mkimage_SOURCES): Removed.
6975 (grub_mkimage_CFLAGS): Likewise.
6976 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6977 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
6978 (pkglib_PROGRAMS): Add kernel.img.
6979 (bin_UTILITIES): Remove grub-mkimage.
6980 (grub_mkimage_SOURCES): Removed.
6981 (grub_mkimage_CFLAGS): Likewise.
6982 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6983 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
6984 (grub_mkimage_SOURCES): Removed.
6985 (grub_mkimage_CFLAGS): Likewise.
6986 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6987 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
6988 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
6989 (grub_pe32_optional_header): ... this.
6990 (grub_pe64_optional_header): ... and this. All users updated.
6991 (GRUB_PE32_PE32_MAGIC): Split into ..
6992 (GRUB_PE32_PE32_MAGIC): .. this.
6993 (GRUB_PE32_PE64_MAGIC): .. and this.
6994 (GRUB_PE32_SIGNATURE_SIZE): New definition.
6995 * include/grub/elf.h (PT_GNU_STACK): New definition.
6996 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
6997 * include/grub/i386/efi/kernel.h: Likewise.
6998 * include/grub/i386/kernel.h: Likewise.
6999 * include/grub/i386/pc/kernel.h: Likewise.
7000 * include/grub/i386/qemu/boot.h: Likewise.
7001 * include/grub/mips/kernel.h: Likewise.
7002 * include/grub/mips/qemu-mips/kernel.h: Likewise.
7003 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7004 * include/grub/powerpc/kernel.h: Likewise.
7005 * include/grub/sparc64/ieee1275/boot.h: Likewise.
7006 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7007 * include/grub/sparc64/kernel.h: Likewise.
7008 * include/grub/x86_64/efi/kernel.h: Likewise.
7009 * include/grub/x86_64/kernel.h: Likewise.
7010 * include/grub/offsets.h: New file.
7011 * include/grub/kernel.h (grub_module_info): Split into ...
7012 (grub_module_info32): ... this.
7013 (grub_module_info64): ... and this.
7014 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
7015 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
7016 (grub_boot_blocklist): Moved from here ...
7017 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
7018 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
7019 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
7020 * include/grub/types.h (grub_target_to_host16): Removed.
7021 (grub_target_to_host32): Likewise.
7022 (grub_target_to_host64): Likewise.
7023 (grub_host_to_target16): Likewise.
7024 (grub_host_to_target32): Likewise.
7025 (grub_host_to_target64): Likewise.
7026 (grub_host_to_target_addr): Likewise.
7027
7028 Support grub-mkrescue for efi, coreboot and qemu.
7029
7030 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
7031 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
7032 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
7033 * util/grub-mkrawimage.c: Moved from here ...
7034 * util/grub-mkimage.c: ... here. All users updated.
7035 (ALIGN_ADDR): Use image_target.
7036 (TARGET_NO_FIELD): New const.
7037 (image_target_desc): New type.
7038 (image_targets): New array.
7039 (grub_target_to_host64): Use image_target.
7040 (grub_target_to_host32): Likewise.
7041 (grub_target_to_host16): Likewise.
7042 (grub_host_to_target64): Likewise.
7043 (grub_host_to_target32): Likewise.
7044 (grub_host_to_target16): Likewise.
7045 (grub_host_to_target_addr): Likewise.
7046 (generate_image): Handle multiimage.
7047 (main): Require -O parameter. All users updated.
7048 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
7049 util/efi/grub-mkimage.c
7050 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
7051 New option --rom-directory.
7052 Use xorriso.
7053 * util/i386/efi/grub-mkimage.c: Removed.
7054 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
7055 (grub_target_to_host32): Likewise.
7056 (grub_target_to_host64): Likewise.
7057 (grub_host_to_target16): Likewise.
7058 (grub_host_to_target32): Likewise.
7059 (grub_host_to_target64): Likewise.
7060 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
7061 (grub_target_to_host32): Likewise.
7062 (grub_target_to_host64): Likewise.
7063 (grub_host_to_target16): Likewise.
7064 (grub_host_to_target32): Likewise.
7065 (grub_host_to_target64): Likewise.
7066
f4fc97d0
BC
70672010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
7068
7069 Source tree is reorganized for emu build.
7070
7071 * include/grub/util/console.h: Move from here...
7072 * include/grub/emu/console.h: ...to here.
7073 * include/grub/util/getroot.h: Move from here...
7074 * include/grub/emu/getroot.h: ...to here.
7075 * include/grub/util/hostdisk.h: Move from here...
7076 * include/grub/emu/hostdisk.h: ...to here.
7077 * util/console.c: Move from here...
7078 * kern/emu/console.c: ...to here.
7079 * util/getroot.c: Move from here...
7080 * kern/emu/getroot.c: ...to here.
7081 * util/grub-emu.c: Move from here...
7082 * kern/emu/main.c: ...to here.
7083 * util/hostdisk.c: Move from here...
7084 * kern/emu/hostdisk.c: ...to here.
7085 * util/hostfs.c: Move from here...
7086 * kern/emu/hostfs.c: ...to here.
7087 * util/mm.c: Move from here...
7088 * kern/emu/mm.c: ...to here.
7089 * util/pci.c: Move from here...
7090 * bus/emu/pci.c: ...to here.
7091 * util/sdl.c: Move from here...
7092 * video/emu/sdl.c: ...to here.
7093 * util/time.c: Move from here...
7094 * kern/emu/time.c: ...to here.
7095 * util/usb.c: Move from here...
7096 * bus/usb/emu/usb.c: ...to here.
7097
7098 * include/grub/emu/misc.h: New header for grub-emu functions.
7099 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
7100
7101 * conf/any-emu.rmk: Rule updates for above renames.
7102 * conf/common.rmk: Likewise.
7103 * conf/i386-pc.rmk: Likewise.
7104 * conf/i386-qemu.rmk: Likewise.
7105 * conf/mips.rmk: Likewise.
7106 * conf/sparc64-ieee1275.rmk: Likewise.
7107 * conf/x86-efi.rmk: Likewise.
7108
7109 * disk/lvm.h: #include updates for above renames.
7110 * util/grub-mkrelpath.c: Likewise.
7111 * util/grub-probe.c: Likewise.
7112 * util/i386/pc/grub-setup.c: Likewise.
7113 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7114 * kern/emu/console.c: Likewise.
7115 * kern/emu/getroot.c: Likewise.
7116 * kern/emu/hostdisk.c: Likewise.
7117 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
7118
7119 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
7120 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
7121 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
7122 * util/misc.c: Remove grub-emu functions.
7123
cced9145
VS
71242010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7125
7126 Fix gfxmenu crash.
7127 Reported by: Thorsten Grützmacher.
7128
7129 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
7130 timeout hook.
7131 (circprog_set_property): Register and unregister timeout hook.
7132 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
7133 (label_destroy): Free template. and unregister hook.
7134 (label_set_state): New function.
7135 (label_set_property): Handle templates and hooks.
7136 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
7137 timeout hook.
7138 (progress_bar_set_property): Register and unregister timeout hook.
7139 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
7140 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
7141 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
7142 (update_timeout_visit): Removed.
7143 (update_timeouts): New function.
7144 (redraw_timeouts): Likewise.
7145 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
7146 (grub_gfxmenu_clear_timeout): Likewise.
7147 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
7148 (grub_gfxmenu_timeout_notify): Likewise.
7149 (grub_gfxmenu_timeout_notifications): New external variable.
7150 (grub_gfxmenu_timeout_register): New function.
7151 (grub_gfxmenu_timeout_unregister): Likewise.
7152
c6e5caab
VS
71532010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7154
7155 Transform (broken) vga terminal into (working) vga video driver.
7156
7157 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
7158 video/i386/pc/vga.c.
7159 * include/grub/video.h (grub_video_driver_id):
7160 Add GRUB_VIDEO_DRIVER_VGA.
7161 * term/i386/pc/vga.c: Renamed to ...
7162 * video/i386/pc/vga.c: ...this
7163 (DEBUG_VGA): Removed.
7164 (CHAR_WIDTH): Likewise.
7165 (CHAR_HEIGHT): Likewise.
7166 (TEXT_WIDTH): Likewise.
7167 (TEXT_HEIGHT): Likewise.
7168 (DEFAULT_FG_COLOR): Likewise.
7169 (DEFAULT_BG_COLOR): Likewise.
7170 (colored_char): Likewise.
7171 (xpos): Likewise.
7172 (ypos): Likewise.
7173 (cursor_state): Likewise.
7174 (fg_color): Likewise.
7175 (bg_color): Likewise.
7176 (text_buf): Likewise.
7177 (page): Likewise.
7178 (font): Likewise.
7179 (framebuffer): New variable.
7180 (set_read_map): Disabled.
7181 (setup): New variable.
7182 (is_target): Likewise.
7183 (grub_vga_mod_init): Likewise.
7184 (grub_vga_mod_fini): Likewise.
7185 (check_vga_mem): Likewise.
7186 (write_char): Likewise.
7187 (write_cursor): Likewise.
7188 (scroll_up): Likewise.
7189 (grub_vga_putchar): Likewise.
7190 (grub_vga_getcharwidth): Likewise.
7191 (grub_vga_getwh): Likewise.
7192 (grub_vga_getxy): Likewise.
7193 (grub_vga_gotoxy): Likewise.
7194 (grub_vga_cls): Likewise.
7195 (grub_vga_setcolorstate): Likewise.
7196 (grub_vga_setcursor): Likewise.
7197 (grub_video_vga_init): New function.
7198 (grub_video_vga_setup): Likewise.
7199 (grub_video_vga_fini): Likewise.
7200 (update_target): Likewise.
7201 (grub_video_vga_blit_bitmap): Likewise.
7202 (grub_video_vga_blit_render_target): Likewise.
7203 (grub_video_vga_set_active_render_target): Likewise.
7204 (grub_video_vga_get_active_render_target): Likewise.
7205 (grub_video_vga_swap_buffers): Likewise.
7206 (grub_video_vga_set_palette): Likewise.
7207 (grub_video_vga_get_info_and_fini): Likewise.
7208 (grub_vga_term): Removed.
7209 (grub_video_vga_adapter): New variable.
7210 (GRUB_MOD_INIT): Register a video driver instead of terminal.
7211 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
7212
2bf61a98
VS
72132010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7214
7215 * video/readers/jpeg.c: Indented.
7216
09ddcd11
VS
72172010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7218
7219 Various jpeg cleanups.
7220
7221 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
7222 (grub_jpeg_decode_quan_table): Use sizeof.
7223 (grub_jpeg_decode_du): Use ARRAY_SIZE.
7224
e5507505
PH
72252010-05-05 Peter Hurley <No e-mail available> (tiny change)
7226
7227 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
7228 tables. Ignore non-last ac bit.
7229 (grub_jpeg_decode_quan_table): Likewise.
7230
7e720a9b
VS
72312010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7232
7233 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7234 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
7235 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7236 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
7237 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
7238 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
7239
a7fc080b
VS
72402010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7241
7242 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
7243 error.
7244
2bf6012d
VS
72452010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
7248
265d68cd
VS
72492010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7250
7251 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
7252 condition.
7253
72542010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
7255
7256 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
7257 part.
7258
265d68cd 72592010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
7260
7261 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
7262 pointers.
7263
265d68cd 72642010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
7265
7266 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
7267
d1b61374
CF
72682010-05-01 Christian Franke <franke@computer.org>
7269
7270 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
7271 Remove broken Cygwin path conversion.
7272 * util/misc.c: [__CYGWIN__] Add include and define.
7273 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
7274 for Cygwin 1.7.
7275 (make_system_path_relative_to_its_root): Simplify loop, replace early
7276 return by break.
7277 [__CYGWIN__] Add conversion to win32 path.
7278 Include "/" case in trailing slash removal.
7279
3558c6e9
VS
72802010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7281
7282 * kern/main.c (grub_load_config): Fix copy-pasted comment.
7283 Reported by: Seth Goldberg
7284
f5f3ff93
VS
72852010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7286
7287 * commands/help.c (grub_cmd_help): Fix a typo.
7288 Reported by: Seth Goldberg
7289
d8b5cd40
VS
72902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
7293 name and add N_.
7294 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
7295 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
7296 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
7297 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
7298 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
7299 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
7300 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
7301 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
7302 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
7303 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
7304 * normal/context.c (GRUB_MOD_INIT): Likewise.
7305 * normal/main.c (GRUB_MOD_INIT): Likewise.
7306 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
7307 * term/serial.c (GRUB_MOD_INIT): Likewise.
7308 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
7309
88c14915
VS
73102010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7311
7312 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
7313 extra == 0.
7314
165134bc
VS
73152010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7316
7317 * commands/iorw.c: New file.
7318 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
7319 (iorw_mod_SOURCES): New variable.
7320 (iorw_mod_CFLAGS): Likewise.
7321 (iorw_mod_LDFLAGS): Likewise.
7322
c5ac9b32
VS
73232010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7324
7325 Hotkey support
7326
7327 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
7328 * normal/main.c (hotkey_aliases): New variable.
7329 (grub_normal_add_menu_entry): Parse "--hotkey".
7330 * normal/menu_text.c (run_menu): Handle hotkeys.
7331
ce60689c
VS
73322010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7333
7334 * kern/i386/coreboot/init.c (grub_machine_init): Call
7335 grub_machine_mmap_init on qemu.
7336
0359d006
VS
73372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 * boot/i386/qemu/boot.S: Add a missing .code16.
7340
7819a456
VS
73412010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7342
7343 Use LBIO on coreboot.
7344
7345 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
7346 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
7347 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
7348 New declaration.
7349 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
7350 grub_machine_mmap_init on coreboot.
7351 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
7352 GRUB_LINUXBIOS_MEMBER_LINK.
7353 (grub_machine_mmap_iterate): Fix declaration.
7354 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
7355
7210dca9
VS
73562010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7357
7358 Split coreboot and multiboot ports.
7359
7360 * conf/i386-multiboot.rmk: New file.
7361 * configure.ac: Add multiboot port.
7362 * include/grub/i386/multiboot/boot.h: New file.
7363 * include/grub/i386/multiboot/console.h: Likewise.
7364 * include/grub/i386/multiboot/init.h: Likewise.
7365 * include/grub/i386/multiboot/kernel.h: Likewise.
7366 * include/grub/i386/multiboot/loader.h: Likewise.
7367 * include/grub/i386/multiboot/memory.h: Likewise.
7368 * include/grub/i386/multiboot/serial.h: Likewise.
7369 * include/grub/i386/multiboot/time.h: Likewise.
7370 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
7371 * loader/multiboot.c: Likewise.
7372 * loader/multiboot_mbi2.c: Likewise.
7373 * util/grub-mkrescue.in: Generate multiboot rescue.
7374
6f8aaf68
VS
73752010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7376
3080f7a7
VS
7377 * kern/parser.c (grub_parser_execute): Cope with read-only config.
7378
73792010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7380
7381 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
7382
7383 * commands/terminal.c (abstract_terminal): New struct.
7384 (handle_command): New function. Based on grub_cmd_terminal_input.
7385 (grub_cmd_terminal_input): Use handle_command.
7386 (grub_cmd_terminal_output): Use handle_command.
7387
a8ebb841
BC
73882010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
7389
7390 Fix comment handling.
7391
7392 * tests/grub_script_comments.in: New testcase.
7393 * conf/tests.rmk: Rules for new testcase.
7394 * script/yylex.l: Updated flex rules.
7395
bb06ba08
ST
73962010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7397
7398 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
7399 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
7400 if argc is 1.
bb06ba08 7401
cc9d2425
VS
74022010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
7403
7404 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
7405 autogen issues.
7406
460d8402
CF
74072010-04-26 Christian Franke <franke@computer.org>
7408
7409 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
7410 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
7411 (grub_get_prefix): Remove function.
7412 * util/grub-emu.c (main): Replace grub_get_prefix () call by
7413 make_system_path_relative_to_its_root ().
7414 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7415
553c01f9
CF
74162010-04-24 Christian Franke <franke@computer.org>
7417
7418 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
7419 (kernel_img_LDFLAGS): Remove -static-libgcc.
7420
2aec1692
CF
74212010-04-24 Christian Franke <franke@computer.org>
7422
7423 * configure.ac: Do not CHECK_BSS_START_SYMBOL
7424 and CHECK_END_SYMBOL if grub-emu is built.
7425 Unset TARGET_OBJ2ELF if grub-emu is built
7426 without module support.
7427
f67dc308
JS
74282010-04-24 Jiro SEKIBA <jir@unicus.jp>
7429
7430 Nilfs2 support.
7431
7432 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
7433 (grub_fstest_SOURCES): Likewise.
7434 (pkglib_MODULES): Add nilfs2.mod.
7435 (nilfs2_mod_SOURCES): New variable.
7436 (nilfs2_mod_CFLAGS): Likewise.
7437 (nilfs2_mod_LDFLAGS): Likewise.
7438 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7439 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7440 * fs/nilfs2.c: New file.
7441
4ba8d354
VS
74422010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7443
7444 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
7445 is not supported.
7446
0d2c20c6
GS
74472010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
7448
7449 Add grub-mkconfig support for NetBSD.
7450
7451 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
7452 * util/grub-mkconfig.in: export new NetBSD specific variables.
7453 * po/POTFILES-shell: added 10_netbsd.in.
7454 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
7455
bc4a2d83
BC
74562010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
7457
7458 Fix emu build with grub-emu-pci and grub-emu-modules.
7459
7460 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
7461 functions.
7462 * include/grub/libpciaccess.h: New file.
7463 * conf/any-emu.rmk: Update kernel headers for emu build.
7464
f48c87aa
VS
74652010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7466
7467 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
7468
18959385
VS
74692010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
7472
0037de3f
VS
74732010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7474
7475 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
7476 Retrieve chosen/bootpath if bootpath isn't hardcoded.
7477 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
7478 util/ieee1275/ofpath.c.
7479 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
7480 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
7481 * include/grub/sparc64/ieee1275/boot.h
7482 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
7483 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
7484 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
7485 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
7486 const char *.
7487 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
7488 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
7489 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
7490 install.
7491
38e55e90
GS
74922010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7493
7494 * util/grub-mkconfig.in: Corrected two == equality tests.
7495 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
7496 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
7497 expect a number appended to it.
7498 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
7499 expects a number appended to it.
7500
a9e6ff28
VS
75012010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7502
7503 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
7504
0b830b8f
VS
75052010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7506
7507 * util/hostdisk.c (make_device_name): Change to new partition naming.
7508
0973daeb
VS
75092010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7510
7511 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
7512
460d8402 75132010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
7514
7515 * Makefile.in: Add missing localedir setting.
7516
0b456309
CW
75172010-04-14 Colin Watson <cjwatson@ubuntu.com>
7518
7519 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
7520 mistake in r2156. Noticed by Anthony Fok.
7521
7522 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
7523 @localedir@.
7524 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7525
08f46d62
BC
75262010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
7527
7528 Fix a spurious, uninitialized variable warning.
7529
7530 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
7531 Initialize variable, shdr.
7532 (grub_freebsd_load_elfmodule): Likewise.
7533 (grub_freebsd_load_elf_meta): Likewise.
7534
8c4a72d4
BC
75352010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
7536
7537 Fix for escaped dollar in double quoted strings.
7538
7539 * script/yylex.l: Updated flex rules.
7540 * conf/tests.rmk: Rule for new testcase.
7541 * tests/grub_script_dollar.in: New testcase.
7542
ce44826e
CPE
75432010-04-13 Carles Pina i Estany <carles@pina.cat>
75442010-04-13 Colin Watson <cjwatson@ubuntu.com>
7545
7546 Enclose all translated strings in grub.cfg in single quotes, and
7547 escape them appropriately (Ubuntu bug #552921).
7548
7549 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
7550 * util/grub.d/10_hurd.in: Use it.
7551 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7552 * util/grub.d/10_linux.in (linux_entry): Likewise.
7553
4b0cd8f8
VS
75542010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7555
7556 Fix cygwin compilation.
7557
7558 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
7559 * include/grub/misc.h (__register_frame_info)
7560 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
7561 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7562 * kern/misc.c (__register_frame_info)
7563 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
7564 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7565
01fcf061
VS
75662010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7567
7568 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
7569
5d04b11e
VS
75702010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7571
7572 Unify libgcc processing.
7573
7574 * Makefile.in (kernel_img_LDFLAGS): New variable.
7575 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
7576 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
7577 overwriting.
7578 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
7579 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
7580 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
7581 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
7582 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
7583 overwriting. Remove -lgcc and -static-libgcc
7584 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
7585 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7586 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7587 (kernel_img_LDFLAGS): Append instead of overwriting.
7588 Remove -lgcc and -static-libgcc
7589 * conf/sparc64-ieee1275.rmk: Likewise.
7590 * include/grub/powerpc/libgcc.h: Move to ...
7591 * include/grub/libgcc.h: .. this.
7592 * include/grub/libgcc.h: Don't export most of the function on x86.
7593 (__bswapsi2): New export.
7594 (__bswapdi2): Likewise.
7595 * include/grub/mips/libgcc.h: Removed.
7596 * include/grub/sparc64/libgcc.h: Likewise.
7597
b7f3ac29
VS
75982010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7599
7600 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
7601 disk_info_msg (conflicts with gettexting into languages with cases).
7602
2c7031b1
GS
76032010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7604
7605 Add grub-probe support for NetBSD.
7606
7607 * util/getroot.c (find_root_device): Convert block device to
7608 character device on NetBSD.
7609 * util/probe.c (probe): Require character device on NetBSD.
7610 * util/hostdisk.c: NetBSD specific headers.
7611 (configure_device_driver): new function to tune device driver
7612 parameters (currently only for NetBSD floppy driver).
7613 (grub_util_biosdisk_open): NetBSD specific code (get disk size
7614 via disklabel ioctl).
7615 (open_device): call configure_device_driver on NetBSD.
7616 (convert_system_partition_to_system_disk): NetBSD specific code.
7617 (device_is_wholedisk): Likewise.
7618 (grub_util_biosdisk_get_grub_dev): Likewise.
7619 (make_device_name): Fixed a typo in bsd_part_str.
7620 * configure.ac: check for opendisk() and getrawpartition() on
7621 NetBSD and set LIBUTIL.
7622 * Makefile.in: add LIBUTIL to LIBS.
7623
f516290c
BC
76242010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7625
7626 Documentation fix.
7627
7628 * util/grub-script-check.c: Better help message.
7629
d8dcc0df
BC
76302010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7631
7632 Fix FreeBSD build.
7633
7634 * configure.ac: Flex version check.
7635 * conf/common.rmk: Add -Wno-error to sh.mod.
7636 * script/yylex.l: Remove all #pragma.
7637
6734334a
VS
76382010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7639
7640 * include/grub/util/misc.h (canonicalise_file_name): Add missing
7641 prototype.
7642 Reported by: Seth Goldberg.
7643
daea6abd
VS
76442010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7645
7646 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
7647 Rename "module" to "module2".
7648 Reported by: Seth Goldberg.
7649
f2fd9d2b
VS
76502010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
7653 EXPORT_FUNC.
7654 Reported by: Seth Goldberg.
7655
be124579
VS
76562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7657
7658 * lib/posix_wrap/locale.h: Add missing file.
7659 Reported by: Seth Goldberg.
7660
ef5da797
VS
76612010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7662
7663 grub-emu module load support.
7664
7665 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
7666 NO_DYNAMIC_MODULES switched to this.
7667 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
7668 (CFLAGS): Likewise.
7669 * conf/any-emu.rmk: Generate symlist.
7670 (kernel_img_HEADERS): Add util/datetime.h.
7671 (kernel_img_HEADERS) [sdl]: Add sdl.h.
7672 (kernel_img_HEADERS) [libusb]: Add libusb.h.
7673 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
7674 kern/$(target_cpu)/cache.S.
7675 * configure.ac (grub-emu-modules): New option.
7676 * genmk.rb: Handle multiple source lists.
7677 * include/grub/sdl.h: New file.
7678 * include/grub/libusb.h: Likewise.
7679 * util/grub-emu.c (main): Hanle (host) root.
7680 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
7681 GRUB_ERR_UNKNOWN_DEVICE.
7682 * util/misc.c: Move mm functions to ...
7683 * util/mm.c: ... here. All users updated.
7684
47822096
VS
76852010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7686
7687 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
7688 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
7689 missing files.
7690 (maintainer-clean): Remove libgcrypt-grub.
7691
5d7e7445
VS
76922010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7693
7694 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
7695
25f4e252
EC
76962010-04-09 EFI Coder <eficoder@hotmail.com>
7697
7698 * normal/menu_text.c (print_message): Clean up the message and show
7699 the Fn information when on EFI
7700 * term/efi/console.c (grub_console_checkkey): Add F4 support.
7701
027de555
VS
77022010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7703
7704 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
7705 All users updated.
7706 * normal/crypto.c (read_crypto_list): Likewise.
7707 * normal/dyncmd.c (read_command_list): Likewise.
7708 * normal/term.c (read_terminal_list): Likewise.
7709 * normal/main.c (read_lists): Use explicit prefix.
7710 (read_lists_hook): Use read_lists.
7711 (grub_normal_execute): Likewise.
7712
47779711
VS
77132010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7714
7715 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
7716 Reported by: Thomas Schmitt.
7717 Add -no-emul-boot to grub-mkisofs parameters.
7718
1118c32e
VS
77192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * font/font.c: Indented.
7722
7d652447
BC
77232010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7724
7725 Elif support to GRUB script (by Deepak Vankadaru).
7726
7727 * tests/grub_script_if.in: New testcase.
7728 * conf/tests.rmk: Rule for new testcase.
7729 * script/parser.y: Grammar rules for elif.
7730
34bb22df
BC
77312010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7732
7733 While and until loops support to GRUB script.
7734
7735 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
7736 (grub_script_create_cmdwhile): New function prototype.
7737 (grub_script_execute_cmdwhile): New function prototype.
7738 * script/execute.c (grub_script_execute_cmdwhile): New function.
7739 * script/parser.y (command): New commands.
7740 (whilecmd): New grammar rule.
7741 (untilcmd): New grammar rule.
7742 * script/script.c (grub_script_create_cmdwhile): New function.
7743 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
7744 function.
7745
7746 * tests/grub_script_while1.in: New testcase.
7747 * conf/tests.rmk: Rule for new testcase.
7748
e215d8e0
VS
77492010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7750
7751 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
7752 as *.jpg.
7753
d7c43ba1
MV
77542010-04-09 Mario Vazquez <mariovazq@gmail.com>
7755
7756 GRUB_BACKGROUND support.
7757
7758 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
7759 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
7760
d64795c0
VS
77612010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7762
7763 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 7764 Idea by: Mario Vazquez
d64795c0
VS
7765
7766 * util/grub.d/00_header.in: Load pf2 and image modules.
7767
f267f83a
VS
77682010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7769
7770 grub-mkconfig multiple terminal support.
7771
7772 * util/grub-mkconfig.in: Handle multiple terminals correctly.
7773 * util/grub.d/00_header.in: Likewise.
7774
b7841ceb
VS
77752010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7776
7777 * Makefile.in: Specify files explicitly instead of using $< and $@ since
7778 we use cd $(srcdir).
7779
df60998c
CW
77802010-04-08 Colin Watson <cjwatson@ubuntu.com>
7781
7782 * util/grub.d/10_linux.in: Only use the first word of
7783 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
7784 spaces in GRUB_DISTRIBUTOR.
7785 * util/grub.d/10_kfreebsd.in: Likewise.
7786 * util/grub.d/10_hurd.in: Likewise.
7787
fa09c82e
BC
77882010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
7789
14e18ae3 7790 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
7791
7792 * tests/util/grub-shell.in: Remove -serial stdio option.
7793
daf892b3
BC
77942010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7795
7796 POSIX header file wrappers.
7797
7798 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
7799 equivalents.
7800 * lib/posix_wrap/ctype.h: Likewise.
7801 * lib/posix_wrap/errno.h: Likewise.
7802 * lib/posix_wrap/langinfo.h: Likewise.
7803 * lib/posix_wrap/limits.h: Likewise.
7804 * lib/posix_wrap/localcharset.h: Likewise.
7805 * lib/posix_wrap/stdint.h: Likewise.
7806 * lib/posix_wrap/stdio.h: Likewise.
7807 * lib/posix_wrap/stdlib.h: Likewise.
7808 * lib/posix_wrap/string.h: Likewise.
7809 * lib/posix_wrap/sys/types.h: Likewise.
7810 * lib/posix_wrap/unistd.h: Likewise.
7811 * lib/posix_wrap/wchar.h: Likewise.
7812 * lib/posix_wrap/wctype.h: Likewise.
7813 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
7814 (grub_script.yy.h): Likewise.
7815 * script/yylex.l: Remove POSIX emulation #defines.
7816 * Makefile.in (POSIX_CFLAGS): New variable.
7817 (GNULIB_UTIL_CFLAGS): Likewise.
7818
7819 Regexp support.
7820
7821 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
7822 (regexp_mod_SOURCES): New variable.
7823 (regexp_mod_CFLAGS): Likewise.
7824 (regexp_mod_LDFLAGS): Likewise.
7825 * commands/regexp.c: New file.
7826 * gnulib/regcomp.c: New file. Imported from gnulib.
7827 * gnulib/regex.c: Likewise.
7828 * gnulib/regex_internal.c: Likewise.
7829 * gnulib/regex_internal.h: Likewise.
7830 * gnulib/regexec.c: Likewise.
7831 * gnulib/regex.h: Likewise.
7832
974ac4f7
VS
78332010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7834
7835 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
7836 unsupported video mode types.
7837
2622c3ff
VS
78382010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
7841
064cb524
VS
78422010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
7845 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
7846
a8c3b552
VS
78472010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7848
7849 Remove unused grub_vga_get_font.
7850
7851 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
7852 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
7853
187bbe3d
GS
78542010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7855
7856 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
7857 * include/grub/misc.h: Likewise.
7858
b9396631
GS
78592010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7860
7861 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
7862 for which failure is fatal.
7863
50479feb
GS
78642010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7865
7866 * util/grub-install.in: Use mkdir -p to create grub directory.
7867 * util/i386/efi/grub-install.in: Likewise.
7868 * util/ieee1275/grub-install.in: Likewise.
7869
b1654fdf
GS
78702010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7871
7872 * Makefile.in (LEX): new variable.
7873
bd5a6415
GS
78742010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7875
7876 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
7877 `=' and added double quotes on operands of this equality test.
7878
3db3a82b
VS
78792010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7880
7881 * Makefile.in (uninstall): Remove a leftover debug echo.
7882 Reported by: Grégoire Sutre
7883
38023412
VS
78842010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 MIPS multiboot2 support.
7887
7888 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
7889 (multiboot2_mod_SOURCES): New variable.
7890 (multiboot2_mod_CFLAGS): Likewise.
7891 (multiboot2_mod_LDFLAGS): Likewise.
7892 (multiboot2_mod_ASFLAGS): Likewise.
7893 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
7894 definition.
7895 (MULTIBOOT_ENTRY_REGISTER): Likewise.
7896 (MULTIBOOT_MBI_REGISTER): Likewise.
7897 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
7898 (MULTIBOOT_ELF32_MACHINE): Likewise.
7899 (MULTIBOOT_ELF64_MACHINE): Likewise.
7900 * include/grub/mips/multiboot.h: New file.
7901 * include/grub/video.h (grub_video_driver_id): New type
7902 GRUB_VIDEO_DRIVER_SM712.
7903 (grub_video_get_info_and_fini): Export.
7904 (grub_video_get_palette): Likewise.
7905 (grub_video_get_driver_id): Likewise.
7906 * include/multiboot2.h: Resynced with spec.
7907 * loader/i386/multiboot.c: Moved from here ...
7908 * loader/multiboot.c: ... here. All users updated.
7909 (grub_multiboot_boot): Use platform-specific macros.
7910 * loader/i386/multiboot_elfxx.c: Moved from here ...
7911 * loader/multiboot_elfxx.c: ... here. All users updated.
7912 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
7913 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
7914 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
7915
47674667
VS
79162010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7917
7918 Import gnulib argp module.
7919
7920 * gnulib/argp-ba.c: New file.
7921 * gnulib/argp-eexst.c: Likewise.
7922 * gnulib/argp-fmtstream.c: Likewise.
7923 * gnulib/argp-fmtstream.h: Likewise.
7924 * gnulib/argp-fs-xinl.c: Likewise.
7925 * gnulib/argp-help.c: Likewise.
7926 * gnulib/argp-namefrob.h: Likewise.
7927 * gnulib/argp-parse.c: Likewise.
7928 * gnulib/argp-pin.c: Likewise.
7929 * gnulib/argp-pv.c: Likewise.
7930 * gnulib/argp-pvh.c: Likewise.
7931 * gnulib/argp-version-etc.c: Likewise.
7932 * gnulib/argp-version-etc.h: Likewise.
7933 * gnulib/argp-xinl.c: Likewise.
7934 * gnulib/argp.h: Likewise.
7935
495442ed
VS
79362010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7937
7938 * kern/device.c (grub_device_iterate): Clear errors after failed
7939 opening device.
7940
f9fd65df
VS
79412010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7942
7943 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
7944 returned by firmware.
7945
af09641e
VS
79462010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7947
7948 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
7949 compilation on coreboot and qemu
7950
016883a5
VS
79512010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7952
7953 * include/multiboot2.h: Resync with spec.
7954
f97e1f7d
VS
79552010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7956
7957 Multiboot2 tag support
7958
7959 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
7960 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
7961 Remove loader/multiboot_loader.c.
7962 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
7963 (grub_multiboot2_real_boot): Likewise.
7964 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
7965 (grub_get_multiboot_mmap_count): New proto.
7966 (grub_fill_multiboot_mmap): Likewise.
7967 (grub_multiboot_set_video_mode): Likewise.
7968 (grub_multiboot_set_console): Likewise.
7969 (grub_multiboot_load): Likewise.
7970 (grub_multiboot_load_elf): Likewise.
7971 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
7972 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
7973 * include/multiboot.h: Resynced with specification.
7974 * include/multiboot2.h: Resynced with specification.
7975 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
7976 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
7977 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
7978 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
7979 users updated.
7980 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
7981 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
7982 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
7983 Removed.
7984 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
7985 Moved from here...
7986 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
7987 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
7988 Moved from here...
7989 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
7990 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
7991 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
7992 All users updated.
7993 * loader/i386/multiboot_mbi2.c: New file.
7994
3506b90b
VS
79952010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7996
7997 Resync with gnulib.
7998
7999 * Makefile.in (GNULIB_CFLAGS): New variable.
8000 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
8001 (grub_script_check_CFLAGS): New variable.
8002 * gnulib/alloca.h: Resync with gnulib.
8003 * gnulib/error.c: Likewise.
8004 * gnulib/error.h: Likewise.
8005 * gnulib/fnmatch.c: Likewise.
8006 * gnulib/fnmatch_loop.c: Likewise.
8007 * gnulib/getdelim.c: Likewise.
8008 * gnulib/getline.c: Likewise.
8009 * gnulib/getopt.c: Likewise.
8010 * gnulib/getopt1.c: Likewise.
8011 * gnulib/getopt_int.h: Likewise.
8012 * gnulib/gettext.h: Likewise.
8013 * gnulib/progname.c: Likewise.
8014 * gnulib/progname.h: Likewise.
8015
394a3120
GS
80162010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
8017
8018 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
8019 which is the case with --disabled-nls.
8020
8021 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
8022 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
8023 * util/misc.c: Likewise.
8024 * util/mkisofs/mkisofs.c: Likewise.
8025 * util/mkisofs/mkisofs.h: Likewise.
8026
969d1c78
VS
80272010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8028
8029 Simplify Apple CC support.
8030
8031 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
8032 Add 0 byte at the end not to have a symbol with empty target.
8033 * mmap/i386/pc/mmap_helper.S: Likewise.
8034 * genmk.rb: Ignore errors 2030 and 2050.
8035 * kern/i386/pc/startup.S: Use LOCAL when possible.
8036
8d2977bb
BC
80372010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
8038
8039 Testcase and the fix for final semicolon on cmdline.
8040
8041 * tests/grub_script_final_semicolon.in: New testcase.
8042 * conf/tests.rmk: Rules for the new testcase.
8043 * script/parser.y: Grammar fix.
8044
a7bd6915
BC
80452010-03-26 BVK Chaitanya <bvk@localhost>
8046
8047 Blank lines testcase for GRUB script.
8048
8049 * tests/grub_script_blanklines.in: New testcase.
8050 * conf/tests.rmk: Rules for the new testcase.
8051
e4ff6628
VS
80522010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8053
8054 Don't use __FILE__.
8055
8056 * genmk.rb: Add -DGRUB_FILE to all C targets.
8057 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
8058 * include/grub/list.h: Likewise.
8059 * include/grub/misc.h: Likewise.
8060 * include/grub/mm.h: Likewise.
8061 * include/grub/test.h: Likewise.
8062 * kern/mm.c: Likewise.
8063 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
8064
6a5cf6b6
VS
80652010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8066
8067 Sunpc partitions support.
8068
8069 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
8070 (grub_fstest_SOURCES): Likewise.
8071 (pkglib_MODULES): Add part_sunpc.mod.
8072 (part_sunpc_mod_SOURCES): New variable.
8073 (part_sunpc_mod_CFLAGS): Likewise.
8074 (part_sunpc_mod_LDFLAGS): Likewise.
8075 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
8076 * partmap/sunpc.c: New file.
8077
746d9045
BC
80782010-03-26 BVK Chaitanya <bvk@localhost>
8079
8080 For loop support to GRUB script.
8081
8082 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
8083 (grub_script_create_cmdfor): New function prototype.
8084 (grub_script_execute_cmdfor): New function prototype.
8085 * script/execute.c (grub_script_execute_cmdfor): New function.
8086 * script/parser.y (command): New for command.
8087 (forcmd): New grammar rule.
8088 * script/script.c (grub_script_create_cmdfor): New function.
8089 * util/grub-script-check.c (grub_script_execute_cmdfor): New
8090 function.
8091 * tests/grub_script_for1.in: New testcase.
8092 * conf/tests.rmk: Rules for new testcase.
8093
18486b18
VS
80942010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8095
8096 Nested partitions
8097
8098 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
8099 'partition' is NULL, grub_partition_get_start already does that.
8100 * commands/loadenv.c (check_blocklists): Likewise.
8101 (write_blocklists): Likewise.
8102 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
8103 (grub_fstest_SOURCES): Likewise.
8104 (pkglib_MODULES): Add part_bsd.mod.
8105 (part_bsd_mod_SOURCES): New variable.
8106 (part_bsd_mod_CFLAGS): Likewise.
8107 (part_bsd_mod_LDFLAGS): Likewise.
8108 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
8109 (grub_emu_SOURCES): Likewise.
8110 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8111 * include/grub/bsdlabel.h: New file.
8112 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
8113 'get_name'.
8114 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
8115 (grub_partition_map_list): New variable.
8116 (grub_partition_map_register): Inline.
8117 (grub_partition_map_unregister): Likewise.
8118 (FOR_PARTITION_MAPS): New macro.
8119 (grub_partition_map_iterate): Removed.
8120 (grub_partition_get_start): Handle nested partitions.
8121 * include/grub/msdos_partition.h: Remove bsd-related entries.
8122 (grub_pc_partition): Remove.
8123 * kern/disk.c (grub_disk_close): Free partition data.
8124 (grub_disk_adjust_range): Handle nested partitions.
8125 * kern/partition.c (grub_partition_map_probe): New function.
8126 (grub_partition_probe): Parse name to number, handle subpartitions.
8127 (get_partmap): New function.
8128 (grub_partition_iterate): Handle subpartitions.
8129 (grub_partition_get_name): Likewise.
8130 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
8131 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
8132 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
8133 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
8134 Set 'number'.
8135 (acorn_partition_map_probe): Remove.
8136 (acorn_partition_map_get_name): Likewise.
8137 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
8138 Set 'number'.
8139 Set 'index' to 0 since there can be only one partition entry per sector.
8140 (amiga_partition_map_probe): Remove.
8141 (amiga_partition_map_get_name): Likewise.
8142 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
8143 Set 'number'.
8144 Set 'offset' and 'index' to real positions of partitions.
8145 (apple_partition_map_probe): Remove.
8146 (apple_partition_map_get_name): Likewise.
8147 * partmap/bsdlabel.c: New file.
8148 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
8149 Set 'number'.
8150 Allocate 'data' so it can be correctly freed.
8151 Set 'index' to offset inside sector.
8152 (gpt_partition_map_probe): Remove.
8153 (gpt_partition_map_get_name): Likewise.
8154 * partmap/msdos.c (grub_partition_parse): Remove.
8155 (pc_partition_map_iterate): Don't force raw access.
8156 Set 'number'.
8157 Make 'ext_offset' a local variable.
8158 (pc_partition_map_probe): Remove.
8159 (pc_partition_map_get_name): Remove.
8160 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
8161 Set 'number'.
8162 (sun_partition_map_probe): Remove.
8163 (sun_partition_map_get_name): Likewise.
8164 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
8165 (grub_pcpart_type): Likewise.
8166 * util/hostdisk.c (open_device): Handle new numbering scheme.
8167 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
8168 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
8169 * util/grub-probe.c (probe_partmap): Handle nested paritions.
8170 * util/grub-install.in: Insert all subpartition modules.
8171 * util/ieee1275/grub-install.in: Likewise.
8172
a3940f88
AG
81732010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
8174
8175 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
8176 grammar.
8177
21b99926 81782010-03-24 Colin Watson <cjwatson@ubuntu.com>
8179
8180 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
8181
bed1d352
CW
81822010-03-21 Colin Watson <cjwatson@ubuntu.com>
8183
8184 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
8185 match where 'make install' puts them.
8186 * util/i386/efi/grub-install.in: Likewise.
8187
c9f58427
CW
81882010-03-19 Colin Watson <cjwatson@ubuntu.com>
8189
8190 * .bzrignore: Add gentrigtables, grub-script-check,
8191 grub_script_check_init.c, grub_script_check_init.h, and
8192 trigtables.c.
8193
f84afb27
VS
81942010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
8195
8196 * kern/parser.c: Indented.
8197
ed0e3d30
VS
81982010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
8199
8200 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
8201
0ea81d98
VS
82022010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
8203
8204 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
8205 alpha_mask_size == 0 case.
8206
0cdc2a09
BC
82072010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
8208
8209 GRUB shell lexer and parser improvements.
8210
8211 * conf/any-emu.rmk: Build rule updates.
8212 * conf/common.rmk: Likewise.
8213 * conf/i386-coreboot.rmk: Likewise.
8214 * conf/i386-efi.rmk: Likewise.
8215 * conf/i386-ieee1275.rmk: Likewise.
8216 * conf/i386-pc.rmk: Likewise.
8217 * conf/powerpc-ieee1275.rmk: Likewise.
8218 * conf/x86_64-efi.rmk: Likewise.
8219
8220 * configure.ac: Configure check for flex.
8221
8222 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
8223 types.
8224 (grub_lexer_param): Struct member updates.
8225 (grub_parser_param): Likewise.
8226 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
8227 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
8228 (grub_script_lexer_init): Prototype update.
8229 (grub_script_lexer_record_start): Likewise.
8230 (grub_script_lexer_record_stop): Likewise.
8231 (grub_script_lexer_yywrap): New function prototype.
8232 (grub_script_lexer_fini): Likewise.
8233 (grub_script_execute_argument_to_string): Removed by...
8234 (grub_script_execute_argument_to_argv): ...better version.
8235
8236 * script/execute.c (ROUND_UPTO): New macro.
8237 (grub_script_execute_cmdline): Out of memory fixes.
8238 (grub_script_execute_menuentry): Likewise.
8239 (grub_script_execute_argument_to_string): Removed. Update all
8240 users by...
8241 (grub_script_execute_argument_to_argv): ...better version.
8242 * script/function.c (grub_script_function_create): Use
8243 grub_script_execute_argument_to_argv instead of
8244 grub_script_execute_argument_to_string.
8245
8246 * script/lexer.c (check_varstate): Removed.
8247 (check_textstate): Removed.
8248 (grub_script_lexer_record_start): Likewise.
8249 (grub_script_lexer_record_stop): Likewise.
8250 (recordchar): Replaced with...
8251 (grub_script_lexer_record): ...new function.
8252 (nextchar): Removed.
8253 (grub_script_lexer_init): Rewritten.
8254 (grub_script_yylex): Rewritten.
8255 (append_newline): New function.
8256 (grub_script_lexer_yywrap): New function.
8257 (grub_script_lexer_fini): New function.
8258 (grub_script_yyerror): Sets error flag.
8259
8260 * script/yylex.l: New file.
8261 (grub_lexer_yyfree): Wrapper for flex yyffre.
8262 (grub_lexer_yyalloc): Likewise.
8263 (grub_lexer_yyrealloc): Likewise.
8264 * script/parser.y: Refactored.
8265
8266 * script/script.c (grub_script_arg_add): Out of memory fixes.
8267 (grub_script_add_arglist): Likewise.
8268 (grub_script_create_cmdline): Likewise.
8269 (grub_script_create_cmdmenu): Likewise.
8270 (grub_script_add_cmd): Likewise.
8271 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
8272 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
8273 unnecessary code.
8274
8275 * tests/grub_script_echo1.in: New testcase.
8276 * tests/grub_script_vars1.in: New testcase.
8277 * tests/grub_script_echo_keywords.in: New testcase.
8278
1d63a066
VS
82792010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8280
8281 Remove some redundancy in build system.
8282
8283 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
8284 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
8285 (TARGET_LDFLAGS): Add -nostdlib.
8286 (TARGET_IMG_LDFLAGS): Likewise.
8287 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
8288 anything since mmap isn't available.
8289 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
8290 Add util/time.c.
8291 (pkglib_MODULES): Remove reboot.mod.
8292 (reboot_mod_SOURCES): Removed.
8293 (reboot_mod_CFLAGS): Likewise.
8294 (reboot_mod_LDFLAGS): Likewise.
8295 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
8296 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
8297 (DEFSYMFILES): Add kernel_syms.lst.
8298 (kernel_img_HEADERS): Add common headers.
8299 (symlist.c): New target.
8300 (kernel_syms.lst): Likewise.
8301 (pkglib_MODULES): Add memdisk.mod.
8302 (memdisk_mod_SOURCES): New variable.
8303 (memdisk_mod_CFLAGS): Likewise.
8304 (memdisk_mod_LDFLAGS): Likewise.
8305 (pkglib_MODULES): Add reboot.mod.
8306 (reboot_mod_SOURCES): New variable.
8307 (reboot_mod_CFLAGS): Likewise.
8308 (reboot_mod_LDFLAGS): Likewise.
8309 (pkglib_MODULES): Add date.mod.
8310 (date_mod_SOURCES): New variable.
8311 (date_mod_CFLAGS): Likewise.
8312 (date_mod_LDFLAGS): Likewise.
8313 (pkglib_MODULES): Add datehook.mod.
8314 (datehook_mod_SOURCES): New variable.
8315 (datehook_mod_CFLAGS): Likewise.
8316 (datehook_mod_LDFLAGS): Likewise.
8317 (pkglib_MODULES): Add lsmmap.mod.
8318 (lsmmap_mod_SOURCES): New variable.
8319 (lsmmap_mod_CFLAGS): Likewise.
8320 (lsmmap_mod_LDFLAGS): Likewise.
8321 (pkglib_MODULES): Add boot.mod.
8322 (boot_mod_SOURCES): New variable.
8323 (boot_mod_CFLAGS): Likewise.
8324 (boot_mod_LDFLAGS): Likewise.
8325 * conf/i386-coreboot.rmk: Removed redundant parts.
8326 * conf/i386-ieee1275.rmk: Likewise.
8327 * conf/i386-pc.rmk: Likewise.
8328 * conf/mips-yeeloong.rmk: Likewise.
8329 * conf/mips.rmk: Likewise.
8330 * conf/powerpc-ieee1275.rmk: Likewise.
8331 * conf/sparc64-ieee1275.rmk: Likewise.
8332 * conf/x86_64-efi.rmk: Likewise.
8333 * conf/i386-coreboot.rmk: Moved qemu parts ..
8334 * conf/i386-qemu.rmk: ... here
8335 * conf/i386-efi.rmk: Moved common parts to...
8336 * conf/x86-efi.rmk: ... here.
8337 * conf/i386.rmk: Added modules common to all x86 variants.
8338 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
8339 * disk/memdisk.c: Remove grub/machine/kernel.h.
8340 * gensymlist.sh.in: Include symbol.h.
8341 * hook/datehook.c: Correct module name.
8342 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
8343 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
8344 * include/grub/i386/efi/serial.h: New file.
8345 * include/grub/x86_64/efi/serial.h: Likewise.
8346 * util/time.c: Likewise.
8347 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
8348
463ac55f
CK
83492010-03-14 Colin King <colin.king@ubuntu.com>
83502010-03-14 Colin Watson <cjwatson@ubuntu.com>
8351
8352 Shrink the pre-partition-table part of boot.img by eight bytes.
8353
8354 * boot/i386/pc/boot.S (ERR): New macro.
8355 (chs_mode): Use ERR.
8356 (geometry_error): Likewise.
8357 (hd_probe_error): Remove. This is only used once, so we wrwite
8358 it inline instead.
8359 (read_error): Instead of printing read_error_string, just set up
8360 %si and fall through to ...
8361 (error_message): ... this new function, also used by ERR.
8362
08e46ede
CW
83632010-03-14 Colin Watson <cjwatson@ubuntu.com>
8364
8365 Speed up consecutive hostdisk operations on the same device.
8366
8367 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
8368 (grub_util_biosdisk_open): Initialise disk->data.
8369 (struct linux_partition_cache): New structure.
8370 (linux_find_partition): Cache partition start positions; these are
8371 expensive to compute on every read and write.
8372 (open_device): Cache open file descriptor in disk->data, so that we
8373 don't have to reopen it and flush the buffer cache for consecutive
8374 operations on the same device.
8375 (grub_util_biosdisk_close): New function.
8376 (grub_util_biosdisk_dev): Set `close' member.
8377
8378 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
8379 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
8380 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8381 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
8382 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
8383
4a6d2d06
VS
83842010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8385
8386 Compile parts of grub-emu as modules.
8387
8388 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
8389 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
8390 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
8391 (all-local): Add $(GRUB_EMU).
8392 (install-local): Install $(GRUB_EMU).
8393 (uninstall): Uninstall $(GRUB_EMU).
8394 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
8395 * kern/dl.c: Likewise.
8396 * commands/sleep.c: Not include machine/time.h.
8397 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
8398 (COMMON_CFLAGS): Likewise.
8399 (sbin_UTILITIES): Remove grub-emu.
8400 (grub_emu_SOURCES): Removed.
8401 (kernel_img_RELOCATABLE): New variable.
8402 (pkglib_PROGRAMS): Add kernel.img.
8403 (kernel_img_SOURCES): New variable
8404 (kernel_img_CFLAGS): Likewise.
8405 (kernel_img_LDFLAGS): Likewise.
8406 (TARGET_NO_STRIP): Likewise.
8407 (TARGET_NO_DYNAMIC_MODULES): Likewise.
8408 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
8409 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
8410 (grub-emu): New target.
8411 (GRUB_EMU): New variable.
8412 * configure.ac: Whitelist -emu as possible x86_64 architecture.
8413 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
8414 * loader/xnu.c: Likewise.
8415 * include/grub/pci.h: Likewise.
8416 * genemuinit.sh: New file.
8417 * genemuinitheader.sh: Likewise.
8418 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
8419 Support TARGET_NO_DYNAMIC_MODULES.
8420 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
8421 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
8422 * disk/loopback.c: Likewise.
8423 * font/font_cmd.c: Likewise.
8424 * partmap/acorn.c: Likewise.
8425 * partmap/amiga.c: Likewise.
8426 * partmap/apple.c: Likewise.
8427 * partmap/gpt.c: Likewise.
8428 * partmap/msdos.c: Likewise.
8429 * partmap/sun.c: Likewise.
8430 * parttool/msdospart.c: Likewise.
8431 * term/gfxterm.c: Likewise.
8432 * video/bitmap.c: Likewise.
8433 * video/readers/jpeg.c: Likewise.
8434 * video/readers/png.c: Likewise.
8435 * video/readers/tga.c: Likewise.
8436 * video/video.c: Likewise.
8437 * util/grub-emu.c (read_command_list): Removed.
8438 (main): Don't call util_init_nls.
8439 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
8440 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
8441
91fdd2ed
VS
84422010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8443
8444 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
8445 date.mod, datehook.mod.
8446 (datetime_mod_SOURCES): New variable.
8447 (datetime_mod_CFLAGS): Likewise.
8448 (datetime_mod_LDFLAGS): Likewise.
8449 (date_mod_SOURCES): Likewise.
8450 (date_mod_CFLAGS): Likewise.
8451 (date_mod_LDFLAGS): Likewise.
8452 (datehook_mod_SOURCES): Likewise.
8453 (datehook_mod_CFLAGS): Likewise.
8454 (datehook_mod_LDFLAGS): Likewise.
8455 * conf/sparc64-ieee1275.rmk: Likewise.
8456 * lib/ieee1275/datetime.c: New file.
8457
873ccae6
VS
84582010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8459
8460 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
8461 (ieee1275_fb_mod_SOURCES): New variable.
8462 (ieee1275_fb_mod_CFLAGS): Likewise.
8463 (ieee1275_fb_mod_LDFLAGS): Likewise.
8464 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
8465 New proto.
8466 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
8467 (HEAP_MAX_ADDR): Likewise.
8468 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
8469 type.
8470 Correct stop condition.
8471 (grub_ieee1275_devices_iterate): New function.
8472 * video/ieee1275.c: New file.
8473
601c97c0
VS
84742010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
8477
8478 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
8479 as scratch.
8480 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
8481 SCRATCH_PAD_DISKBOOT as scratch.
8482 (bootit): Pass Openfirmware pointer in %o4.
8483 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
8484 of 0x200000.
8485 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
8486 with util/grub-mkrawimage.c.
8487 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
8488 * include/grub/aout.h (AOUT_MID_SUN): New definition.
8489 (grub_aout_get_type) [GRUB_UTIL]: Removed.
8490 (grub_aout_load) [GRUB_UTIL]: Likewise.
8491 * include/grub/kernel.h (grub_modules_get_end): New proto.
8492 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
8493 (SCRATCH_PAD_BOOT): New definition.
8494 (SCRATCH_PAD_DISKBOOT): Likewise.
8495 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
8496 * include/grub/sparc64/ieee1275/ieee1275.h
8497 (grub_ieee1275_original_stack): New variable
8498 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
8499 New definition
8500 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
8501 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
8502 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
8503 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
8504 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
8505 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
8506 (grub_platform_image_format_t): New type.
8507 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
8508 * kern/main.c (grub_modules_get_end)
8509 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
8510 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
8511 (codestart): Switch stacks.
8512 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
8513 variable.
8514 (grub_heap_init): Use grub_modules_get_end.
8515 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
8516 stack.
8517 * util/grub-mkrawimage.c (generate_image): Support sparc64.
8518 (main): Likewise.
8519 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
8520
d68b491e
TG
85212010-03-14 Thorsten Glaser <tg@mirbsd.org>
8522
8523 * util/grub-mkrescue.in: Base ISO UUID on UTC.
8524
4e02ed50
MK
85252010-03-08 Matt Kraai <kraai@ftbfs.org>
8526
8527 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
8528 bug #559005).
8529
1f15fc1e
VS
85302010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 * genmoddep.awk: Output all missing symbols and not only first.
8533
fce5d8ff
VS
85342010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8535
8536 * NEWS: Put the date of 1.98 release.
8537
d1e8a02f
VS
85382010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8539
8540 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
8541 ft2build.h.
8542
696fd607
VS
85432010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8544
8545 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
8546 completition in the middle of string.
8547
33e2e6f3
VS
85482010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8549
8550 * util/grub-mkrescue.in: Use mktemp with explicit template.
8551
b1f6d291
VS
85522010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8553
8554 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
8555
2ac227c7
VS
85562010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8557
8558 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
8559 right pointer.
8560
8f9a632b
VS
85612010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8562
8563 Fix FreeBSD compilation.
8564
8565 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
8566 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
8567
60b03859
VS
85682010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8569
8570 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
8571
48a5a769
VS
85722010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8573
8574 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
8575
3ab4bd77
VS
85762010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8577
8578 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
8579
d116e0d8
RM
85802010-03-04 Robert Millan <rmh.grub@aybabtu.com>
8581
8582 Support relative image path in theme file.
8583
8584 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
8585 (image_set_property): Handle theme_dir and relative path.
8586
c7ef54aa
VS
85872010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8588
8589 * configure.ac: Alias amd64 to x86_64.
8590
fcee14ed
VS
85912010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8592
8593 * NEWS: mention multiboot on EFI.
8594
d0780363
VS
85952010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8596
8597 * kern/main.c (grub_load_modules): Handle errors from init functions of
8598 embeded modules.
8599
41168ea4
VS
86002010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8601
8602 * normal/autofs.c (autoload_fs_module): Handle errors.
8603
b54d93ac
VS
86042010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8605
8606 Disable linux.mod on qemu-mips since it's not functional and leads
8607 to compilation failure.
8608
8609 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
8610 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
8611 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
8612 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
8613 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
8614 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
8615 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
8616 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
8617 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
8618 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
8619 Reported by: BVK Chaitanya
8620
fc8345da
JU
86212010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
8622
8623 * INSTALL: Add gettext as a dependency and add qemu to a new section
8624 "Prerequisites for make-check".
8625
4760f979
CF
86262010-03-04 Christian Franke <franke@computer.org>
8627
8628 * util/grub-pe2elf.c: Add missing include "progname.h".
8629
f209b5b2
VS
86302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8631
8632 * normal/crypto.c (read_crypto_list): Fix a typo.
8633 Reported by: Seth Goldberg.
8634
b4b7be98
VS
86352010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8636
8637 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 8638 Reported by: Seth Goldberg.
b4b7be98 8639
c0ee0385
VS
86402010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8641
8642 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
8643 ascii.bitmaps.
8644
a8efbf64
VS
86452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8646
8647 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 8648 Reported by: Seth Goldberg.
a8efbf64 8649
08dcd913
VS
86502010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8651
8652 * util/i386/efi/grub-install.in: Copy gettext files.
8653
c4d0b332
VS
86542010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8655
8656 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
8657
c6f2fe52
VS
86582010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8659
8660 Wait for user entry basing on presence of output rather than on errors.
8661
8662 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
8663 (grub_install_newline_hook): Likewise.
8664 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
8665 * normal/menu.c (show_menu): Check line_counter to determine presence
8666 of output.
8667 * normal/term.c (grub_normal_line_counter): New variable.
8668 (grub_normal_get_line_counter): New function.
8669 (grub_install_newline_hook): Likewise.
8670
5382b1e4
VS
86712010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8672
8673 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
8674
5519963b
VS
86752010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8676
8677 * configure.ac: Update version to 1.98.
8678
72b28631
VS
86792010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8680
8681 * util/grub.d/10_linux.in (linux_entry): Don't default to
8682 gfxpayload=keep if Linux doesn't support video handover.
8683
c140a180
VS
86842010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8685
8686 Don't compile video modules on yeeloong since video subsystem is part
8687 of kernel.
8688
8689 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
8690 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
8691 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
8692 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
8693 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
8694 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
8695 * include/grub/bitmap_scale.h: Likewise.
8696 * include/grub/bufio.h: Likewise.
8697 * include/grub/font.h: Likewise.
8698 * include/grub/gfxterm.h: Likewise.
8699 * include/grub/video.h: Likewise.
8700 * include/grub/vbe.h: Don't include video_fb.h.
8701 * video/i386/pc/vbe.c: Include video_fb.h.
8702 * commands/i386/pc/vbetest.c: Include video.h.
8703
a0ca21c2
CW
87042010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
8705
8706 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
8707 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
8708 default entry if GRUB_SAVEDEFAULT=true. This allows using
8709 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
8710 saving a new default on every boot.
8711
4a8a763c
VS
87122010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8713
8714 * normal/crypto.c (read_crypto_list): Fix a memory leak.
8715 * normal/term.c (read_terminal_list): Likewise.
8716 * normal/main.c (grub_normal_init_page): Likewise.
8717 (grub_normal_read_line_real): Likewise.
8718
607ffde2
VS
87192010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8720
8721 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
8722 memory leak.
8723 Reported by: Seth Goldberg.
8724
2b8fa975
CW
87252010-02-24 Joey Korkames <joey+lists@kidfixit.com>
8726
8727 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
8728 duplicate declaration of `start'.
8729
618307dd
VS
87302010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8731
8732 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
8733 filename.
8734 Reported by: Georgy Buranov
8735
7dd05b96 87362010-02-20 Carles Pina i Estany <carles@pina.cat>
8737
8738 * util/grub-mkrawimage.c (usage): Change string formatting to
8739 improve gettext.
8740
d1484a42
MRA
87412010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
8742
8743 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
8744 backspace keys.
8745
42b1d186
VS
87462010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8747
8748 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
8749 Reported by: Michael Suchanek.
8750
87512010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
8752
8753 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
8754 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
8755
d9f31a41
VS
87562010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
8757
8758 Remove any reference to non-free fonts.
8759
8760 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
8761 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
8762 uses non-free components.
8763 * font/font.c (grub_font_get_name): Remove example name.
8764 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
8765 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8766 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
8767 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
8768
2793c71e
GB
87692010-02-16 Georgy Buranov <gburanov@gmail.com>
8770
8771 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
8772
402e3779
VS
87732010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8774
8775 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
8776 Double divisor.
8777 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
8778 features.
8779 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
8780
0dd1e0dd
VS
87812010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8782
8783 * gensymlist.sh.in: Use TARGET_CC instead of CC.
8784
6fa7cfce
ST
87852010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8786
8787 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
8788 * docs/grub.texi (Command-line and menu entry commands): Document play
8789 command.
8790
37c8483b
ST
87912010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8792
8793 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
8794 parse arguments as inline tempo and notes. Move code for playing notes
8795 to...
8796 (play): ... new function.
8797
14da0fb7
ST
87982010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8799
8800 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
8801 grub_uint16_t instead of short.
8802 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
8803 disk from little endian to cpu endianness.
8804
04459e70
ST
88052010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8806
8807 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
8808 GRUB_TICKS_PER_SECOND instead of 120.
8809
a0876943
VS
88102010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8811
8812 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
8813 escape sequence after \e.
8814
e29f95dc
VS
88152010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8816
8817 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
8818 non-ASCII characters.
8819
d27859b2
VS
88202010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8821
8822 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
8823 set root in single quotes to prevent \, from being unescaped.
8824
bc028f2f
VS
88252010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8826
8827 Prevent unknown commands from stopping menuentry execution.
8828
8829 * script/execute.c (grub_script_execute_cmdline): Print error after
8830 unknown command.
8831
095f5f82
VS
88322010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8833
8834 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
8835 Reported by: Pavel Pisa.
8836
8c717950
VS
88372010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8838
8839 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
8840
904935c3
VS
88412010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8842
8843 Merge grub_ieee1275_map_physical into grub_map and rename to
8844 grub_ieee1275_map
8845
8846 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
8847 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
8848 Remove.
8849 * kern/ieee1275/openfw.c (grub_map): Rename to ...
8850 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
8851 necessary.
8852 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
8853
5b59a4e3
VS
88542010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8855
8856 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
8857 opening and not after.
8858
69e137e8
VS
88592010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8860
8861 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
8862 constants.
8863
2c0fcc36
VS
88642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
8867 (alloc_phys): Use ALIGN_UP instead of align_addr.
8868
8c6052ce
VS
88692010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8870
8871 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
8872
17cec782
VS
88732010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8874
8875 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
8876
e0128bbd
VS
88772010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8878
8879 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
8880 verbose dprintf.
8881
ca62070b
VS
88822010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8883
8884 Fix over-4GiB seek on sparc64.
8885
8886 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
8887 Replace pos_i and pos_lo with pos. All users updated.
8888 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8889 New constant.
8890 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8891 Likewise.
8892 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
8893 and pos_lo.
8894
bdca2607
VS
88952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8896
8897 * util/grub-mkrawimage.c (main): Call set_program_name.
8898
da278c4d
VS
88992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 Properly align 64-bit targets.
8902
8903 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
8904 (generate_image): Use ALIGN_ADDR.
8905
b274d734
VS
89062010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8907
8908 Properly create cross-endian images.
8909
8910 * include/grub/types.h (grub_host_to_target_addr): New macro
8911 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
8912
82da2062
VS
89132010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
8916
7cae4377
VS
89172010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8918
8919 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
8920
8921 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
8922 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
8923 (grub_linux_boot): Divide by 64K when on VESA.
8924
65a533e7
VS
89252010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8926
8927 Support GRUB_GFXPAYLOAD_LINUX.
8928
8929 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
8930 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
8931
dd01d397
VS
89322010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8933
8934 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
8935 to show messages instead of discarding them.
8936 Process errors after executing command and not before. Keep old method
8937 too as precaution.
8938
660960d6
VS
89392010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * configure.ac: Check for ft2build.h.
8942
62509f04
VS
89432010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8944
8945 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
8946
473df63d
VS
89472010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8948
8949 * genkernsyms.sh.in: Use TARGET_CC.
8950
c98d2a13
CW
89512010-02-07 Colin Watson <cjwatson@ubuntu.com>
8952
8953 * NEWS: Update.
8954
6e14234c
VS
89552010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8956
8957 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
8958 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
8959 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 8960
b255e9cf
YB
89612010-02-07 Yves Blusseau <blusseau@zetam.org>
8962
6e14234c 8963 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 8964
98e6959d
VS
89652010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8966
8967 Fix warnings in grub-emu when compiling with maximum warning options.
8968
8969 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
8970 (grub_arch_modules_addr): Return 0 and not NULL.
8971 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 8972 (xstrdup): Use newstr instead of dup.
f88d801b
VS
8973 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
8974 of disk to dsk to avoid shadowing.
74e4934e
VS
8975 (find_free_slot): Fix prototype.
8976 * util/getroot.c (grub_util_is_dmraid): Make static.
8977 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
8978 Add missing prototype.
8979 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 8980
74e31b5c
VS
89812010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8982
8983 * loader/i386/linux.c (grub_linux_setup_video): Handle error
8984 appropriately.
8985
6b2ad14b
VS
89862010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
8989 code out.
8990
8f891adc
VS
89912010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8992
8993 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
8994 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
8995 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
8996 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
8997 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
8998 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
8999
74b45184
VS
90002010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9001
9002 * include/grub/err.h (grub_err_printf): Don't export.
9003
a4bced77
VS
90042010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9005
9006 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
9007
007d0695
VS
90082010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9009
9010 * include/grub/i18n.h (grub_gettext_dummy): Removed.
9011 * kern/misc.c (grub_gettext_dummy): Make static.
9012
b6c0d9c2
VS
90132010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9014
9015 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
9016 by non-valid ones.
9017 * kern/term.c (grub_putchar): Likewise.
9018
f51a90d0
VS
90192010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9020
9021 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
9022 buggy hook call and memory leak.
9023
6846cec5
VS
90242010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9025
9026 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
9027
468d69fe
VS
90282010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9029
9030 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
9031
51906b8c
VS
90322010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9033
9034 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
9035 modevar.
9036 Return grub_errno on allocation error.
9037
09706ce5
VS
90382010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
9041
911df80c
YB
90422010-02-06 Yves Blusseau <blusseau@zetam.org>
9043
9044 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
9045 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
9046
3746a6bc
VS
90472010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9048
9049 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
9050 non-pxe disk.
9051 (grub_pxefs_open): Likewise.
9052
09706ce5
VS
90532010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9054
9055 * util/grub.d/10_hurd.in: Add --class information to menuentries.
9056 * util/grub.d/10_kfreebsd.in: Likewise.
9057 * util/grub.d/10_linux.in: Likewise.
9058
7cc192d9
VS
90592010-02-06 Colin D Bennett <colin@gibibit.com>
9060
9061 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
9062 (gfxmenu_mod_SOURCES): New variable.
9063 (gfxmenu_mod_CFLAGS): Likewise.
9064 (gfxmenu_mod_LDFLAGS): Likewise.
9065 * include/grub/term.h (grub_term_set_current_output): Declare
9066 argument as const.
9067 * docs/gfxmenu-theme-example.txt: New file.
9068 * gfxmenu/gfxmenu.c: Likewise.
9069 * gfxmenu/gui_box.c: Likewise.
9070 * gfxmenu/gui_canvas.c: Likewise.
9071 * gfxmenu/gui_circular_progress.c: Likewise.
9072 * gfxmenu/gui_image.c: Likewise.
9073 * gfxmenu/gui_label.c: Likewise.
9074 * gfxmenu/gui_list.c: Likewise.
9075 * gfxmenu/gui_progress_bar.c: Likewise.
9076 * gfxmenu/gui_string_util.c: Likewise.
9077 * gfxmenu/gui_util.c: Likewise.
9078 * gfxmenu/icon_manager.c: Likewise.
9079 * gfxmenu/model.c: Likewise.
9080 * gfxmenu/named_colors.c: Likewise.
9081 * gfxmenu/theme_loader.c: Likewise.
9082 * gfxmenu/view.c: Likewise.
9083 * gfxmenu/widget-box.c: Likewise.
9084 * include/grub/gfxmenu_model.h: Likewise.
9085 * include/grub/gfxmenu_view.h: Likewise.
9086 * include/grub/gfxwidgets.h: Likewise.
9087 * include/grub/gui.h: Likewise.
9088 * include/grub/gui_string_util.h: Likewise.
9089 * include/grub/icon_manager.h: Likewise.
9090
90912010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9092
9093 Agglomerate scrolling in gfxterm.
9094
9095 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
9096 (grub_virtual_screen_setup): Initialise 'total_screen'.
9097 (write_char): Split to ...
9098 (paint_char): ... this ...
9099 (write_char): ... and this.
9100 (paint_char): Handle delayed scrolling.
9101 (draw_cursor): Likewise.
9102 (scroll_up): Split to ...
9103 (real_scroll): ... this ...
9104 (scroll_up): ... and this.
9105 (real_scroll): Handle multi-line scroll and draw below-the-bottom
9106 characters.
9107 (grub_gfxterm_refresh): Call real_scroll.
9108
91092010-02-06 Colin D Bennett <colin@gibibit.com>
9110
9111 * include/grub/misc.h (grub_iscntrl): New inline function.
9112 (grub_isalnum): Likewise.
9113 (grub_strtol): Likewise.
9114
91152010-02-06 Colin D Bennett <colin@gibibit.com>
9116
9117 * normal/menu_text.c (get_entry_number): Move from here ...
9118 * normal/menu.c (get_entry_number): ... moved here.
9119 * include/grub/menu.h (grub_menu_get_default_entry_index):
9120 New prototype.
9121 * normal/menu.c (grub_menu_get_default_entry_index): New function.
9122 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
9123 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
9124 (grub_menu_viewer_should_return): Likewise.
9125 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
9126 * normal/menu_text.c (run_menu): Enable menu switching.
9127 * normal/menu_viewer.c (should_return): New variable.
9128 (menu_viewer_changed): Likewise.
9129 (grub_menu_viewer_show_menu): Handle menu viewer changes.
9130 (grub_menu_viewer_should_return): New function.
9131 (menuviewer_write_hook): Likewise.
9132 (grub_menu_viewer_init): Likewise.
9133
91342010-02-06 Colin D Bennet <colin@gibibit.com>
91352010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9136
9137 Support for gfxterm in a window.
9138
9139 * include/grub/gfxterm.h: New file.
9140 * include/grub/video.h (struct grub_video_rect): New declaration.
9141 (grub_video_rect_t): Likewise.
9142 * term/gfxterm.c (struct grub_gfxterm_window): New type.
9143 (refcount): New variable.
9144 (render_target): Likewise.
9145 (window): Likewise.
9146 (repaint_callback): Likewise.
9147 (grub_virtual_screen_setup): Use 'render_target'.
9148 (init_window): New function.
9149 (grub_gfxterm_init_window): Likewise.
9150 (grub_gfxterm_init): Check reference counter.
9151 Use init_window.
9152 (destroy_window): New function.
9153 (grub_gfxterm_destroy_window): Likewise.
9154 (grub_gfxterm_fini): Check reference counter.
9155 Use destroy_window.
9156 (redraw_screen_rect): Restore viewport.
9157 Use 'render_target' and 'window'.
9158 Call 'repaint_callback'.
9159 (write_char): Use 'render_target'.
9160 (draw_cursor): Likewise.
9161 (scroll_up): Restore viewport.
9162 Use 'render_target' and 'window'.
9163 Call 'repaint_callback'.
9164 (grub_gfxterm_cls): Likewise.
9165 (grub_gfxterm_refresh): Use 'window'.
9166 (grub_gfxterm_set_repaint_callback): New function.
9167 (grub_gfxterm_background_image_cmd): Use 'window'.
9168 (grub_gfxterm_get_term): New function.
9169 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
9170
91712010-02-06 Colin D Bennett <colin@gibibit.com>
9172
9173 Bitmap scaling support.
9174
9175 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
9176 (bitmap_scale_mod_SOURCES): New variable.
9177 (bitmap_scale_mod_CFLAGS): Likewise.
9178 (bitmap_scale_mod_LDFLAGS): Likewise.
9179 * include/grub/bitmap_scale.h: New file.
9180 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
9181 (background_image_cmd_options): New variable.
9182 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
9183 (cmd): Rename and change type to ...
9184 (background_image_cmd_handle): ... this. All users updated.
9185 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
9186 * video/bitmap_scale.c: New file.
9187
91882010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9189
9190 SDL support.
9191
9192 * Makefile.in (LIBSDL): New variable.
9193 (enable_grub_emu_sdl): Likewise.
9194 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
9195 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
9196 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
9197 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
9198 * util/sdl.c: New file.
9199
92002010-02-06 Colin D Bennett <colin@gibibit.com>
92012010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9202
9203 Double buffering support.
9204
9205 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
9206 * include/grub/video.h: Update comment.
9207 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9208 New type.
9209 (grub_video_fb_doublebuf_blit_init): New prototype.
9210 * term/gfxterm.c (scroll_up): Support double buffering.
9211 (grub_gfxterm_refresh): Likewise.
9212 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
9213 (grub_video_fb_doublebuf_blit_init): Likewise.
9214 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
9215 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
9216 'displayed_page', 'render_page' and 'update_screen'.
9217 (grub_video_vbe_fini): Free offscreen buffer.
9218 (doublebuf_pageflipping_commit): New function.
9219 (doublebuf_pageflipping_update_screen): Likewise.
9220 (doublebuf_pageflipping_init): Likewise.
9221 (double_buffering_init): Likewise.
9222 (grub_video_vbe_setup): Enable doublebuffering.
9223 (grub_video_vbe_swap_buffers): Implement.
9224 (grub_video_vbe_set_active_render_target): Handle double buffering.
9225 (grub_video_vbe_get_active_render_target): Likewise.
9226 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
9227 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
9228 (grub_video_vbe_enable_double_buffering): Likewise.
9229 (grub_video_vbe_swap_buffers): Use update_screen.
9230 (grub_video_set_mode): Use double buffering.
9231
92322010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9233
9234 * maintainance/gentrigtables.py: Remove.
9235 * lib/trig.c: Likewise.
9236
9237 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
9238
9239 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
9240 `trigtables.c'.
9241 (trigtables.c): New rule.
9242 (gentrigtables): Likewise.
9243 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
9244
92452010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9246
9247 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
9248 integer constants.
9249
92502010-02-06 Colin D Bennet <colin@gibibit.com>
9251
9252 Trigonometry support.
9253
9254 * include/grub/trig.h: New file.
9255 * lib/trig.c: Likewise.
9256 * maintainance/gentrigtables.py: Likewise.
9257 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
9258 (trig_mod_SOURCES): New variable.
9259 (trig_mod_CFLAGS): Likewise.
9260 (trig_mod_LDFLAGS): Likewise.
9261
5562834e
VS
92622010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9263
9264 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
9265 disk devices.
9266
4f8528fc
VS
92672010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9268
9269 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
9270 error.
9271
2b4068e9
VS
92722010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9273
9274 * util/hostdisk.c (open_device): Don't use partition device when reading
9275 before the partition.
9276 (grub_util_biosdisk_read): Don't read from partition and before the
9277 partition in single operation.
9278 (grub_util_biosdisk_write): Don't write to partition and before the
9279 partition in single operation.
9280
399f6e4d
TL
92812010-02-03 Torsten Landschoff <torsten@debian.org>
9282
9283 * kern/disk.c (grub_disk_read): Fix offset computation when reading
9284 last sectors.
9285
996649b0
VS
92862010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9287
9288 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
9289 CDROM reads.
9290 (grub_biosdisk_write): Refuse to write to CDROM.
9291
3b205d4d
VS
92922010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9293
9294 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
9295
61e89d9d
VS
92962010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9297
9298 * font/font.c (find_glyph): Check that bmp_idx is available before
9299 using it.
9300 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
9301 with (font == NULL).
9302
bf7fcba2
CS
93032010-01-28 Christian Schmitt <chris@ilovelinux.de>
9304
9305 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
9306
f45d2663
BC
93072010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
9308
9309 * include/grub/script_sh.h (sourcecode): Add const qualifier.
9310 * util/grub-script-check.c (getline): Fix empty lines case.
9311
ec1444e6
RM
93122010-01-28 Robert Millan <rmh.grub@aybabtu.com>
9313
9314 * Makefile.in (check): Exit with fail status when one of the tests
9315 fails.
9316 * tests/example_functional_test.c (example_test): Fix reversed assert.
9317 * tests/example_unit_test.c (example_test): Likewise.
9318
2e1cb9bb
CW
93192010-01-28 Colin Watson <cjwatson@ubuntu.com>
9320
9321 * util/grub.d/10_linux.in: This script does not use any of the
9322 contents of gettext.sh, only the external command `gettext', so stop
9323 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
9324 the same prefix as GRUB.)
9325 * util/grub.d/10_kfreebsd.in: Likewise.
9326
63533ab0
VS
93272010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9328
9329 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
9330 of the line.
9331
989e1f93
VS
93322010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9333
9334 * kern/disk.c (grub_disk_read): Fix offset computation when reading
9335 last sectors.
9336
e709ebe2
VS
93372010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9338
9339 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
9340 having a 4KiB and not 32KiB buffer size.
9341
27dea7ed
RM
93422010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9343
9344 * util/hostfs.c: Include `<errno.h>'.
9345 (grub_hostfs_read): Handle errors from fseeko() and fread().
9346
67667b9c
RM
93472010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9348
9349 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
9350 loop when using read hooks on files whose size isn't sector-aligned.
9351
c294d9d8
RM
93522010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9353
9354 Remove unused parameter.
9355
9356 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
9357 (grub_iso9660_open): Remove initialization of `data->length'.
9358
af75a9f1
RM
93592010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9360
9361 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
9362 memleak conditions.
9363
254e2ce5 93642010-01-27 Carles Pina i Estany <carles@pina.cat>
9365
9366 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
9367 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
9368
b510928c 93692010-01-26 Carles Pina i Estany <carles@pina.cat>
9370
9371 * util/bin2h.c (usage): Fix warning (space after backslash).
9372
aa2f9dd2 93732010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 9374
9375 * font/font.c: Include `grub/fontformat.h.
9376 Remove font file format constants.
9377 (grub_font_load): Use the new macros.
9378 * include/grub/fontformat.h: New file.
9379 * util/grub-mkfont.c: Include `grub/fontformat.c'.
9380 (write_font_pf2): Use the new macros.
9381
94e7e712
RM
93822010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9383
9384 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
9385 does.
9386
3973a59a
RM
93872010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9388
9389 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
9390
9391 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
9392 (_start): Macroify `0x7F'.
9393
9394 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
9395 (make_install_device): Use "(pxe)" as fallback prefix when booting
9396 via PXE.
9397
42e0cba3
GS
93982010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9399
9400 * configure.ac: Reset LIBS after check for libgcc symbols.
9401
847effd8
CW
94022010-01-25 Colin Watson <cjwatson@ubuntu.com>
9403
9404 * util/hostdisk.c (open_device): Add trailing newline to debug
9405 message.
9406
ea4a7e35
GS
94072010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9408
9409 * configure.ac: Check for `limits.h'.
9410 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
9411
67951a53
RM
94122010-01-24 Robert Millan <rmh.grub@aybabtu.com>
9413
9414 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
9415 capitalize error strings.
9416
c273d4ce
ST
94172010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
9418
9419 * util/grub.d/10_hurd.in: Add a recovery mode.
9420
69be5b74
VS
94212010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9422
9423 * configure.ac: Check for libgcc symbols with -nostdlib.
9424
fc9e5810
BC
94252010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
9426
9427 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
9428
4b358c0a
VS
94292010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9430
9431 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
9432 stack since heap may be unavailable at that point.
9433 (grub_ofconsole_gotoxy): Likewise.
9434
454fcd1c
VS
94352010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9436
9437 * configure.ac: Check for _restgpr_14_x.
9438 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
9439 and _savegpr_* prototypes.
9440
566863ca
RM
94412010-01-22 Robert Millan <rmh.grub@aybabtu.com>
9442
9443 Use generic grub_reboot() for i386-efi.
9444
9445 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
9446 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
9447 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
9448
bf86e59a
VS
94492010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9450
9451 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
9452 presence of "prefix" variable as it breaks when normal.mod is
9453 embedded.
9454
d645e0f8
VS
94552010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9456
9457 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
9458 stack since heap is unavailable at that point.
9459
f9ab2e25
VS
94602010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9461
9462 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
9463 (grub_freebsd_bootinfo): Rewritten.
9464 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
9465
01fc7054
VS
94662010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9467
9468 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
9469
caab4fd6
RM
94702010-01-21 Robert Millan <rmh.grub@aybabtu.com>
9471
9472 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
9473 domain now.
9474
67eb1427
FZ
94752010-01-20 Felix Zielcke <fzielcke@z-51.de>
9476
9477 * util/misc.c (make_system_path_relative_to_its_root): Change the work
9478 around for handling "/" to the correct fix. Fix a memory leak. Use
9479 xstrdup instead of strdup.
9480
a9ed4ff3
VS
94812010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
9484
94852010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
9486
9487 Optimise glyph lookup by Basic Multilingual Plane lookup array.
9488
9489 * font/font.c (struct grub_font): New member 'bmp_idx'.
9490 (font_init): Initialise 'bmp_idx'.
9491 (load_font_index): Fill 'bmp_idx'.
9492 (find_glyph): Make inline. Use bmp_idx for BMP characters.
9493
48209f4f
VS
94942010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9495
9496 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
9497 unnecessary calls.
9498
9f0a4bb7
VS
94992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9500
9501 Move context handling out of the kernel.
9502
9503 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
9504 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
9505 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
9506 * conf/i386-efi.rmk: Likewise.
9507 * conf/i386-ieee1275.rmk: Likewise.
9508 * conf/i386-pc.rmk: Likewise.
9509 * conf/powerpc-ieee1275.rmk: Likewise.
9510 * conf/sparc64-ieee1275.rmk: Likewise.
9511 * conf/x86_64-efi.rmk: Likewise.
9512 * include/grub/env.h: Include grub/menu.h.
9513 (grub_env_var_type): Removed.
9514 (grub_env_var): Replaced field 'type' with 'global'.
9515 (grub_env_find): New prototype.
9516 (grub_env_context_open): Remove EXPORT_FUNC.
9517 (grub_env_context_close): Likewise.
9518 (grub_env_export): Likewise.
9519 (grub_env_set_data_slot): Removed.
9520 (grub_env_get_data_slot): Likewise.
9521 (grub_env_unset_data_slot): Likewise.
9522 (grub_env_unset_menu): New prototype.
9523 (grub_env_set_menu): Likewise.
9524 (grub_env_get_menu): Likewise.
9525 * include/grub/env_private.h: New file.
9526 * include/grub/normal.h (grub_context_init): New prototype.
9527 (grub_context_fini): Likewise.
9528 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
9529 * normal/context.c (grub_cmd_export): ... to here.
9530 * kern/env.c: Include env_private.h.
9531 (HASHSZ): Moved to include/grub/env_private.h.
9532 (grub_env_context): Likewise.
9533 (grub_env_sorted_var): Likewise.
9534 (current_context): Renamed from this ...
9535 (grub_current_context): ...to this. 'static' removed. All users updated.
9536 (grub_env_find): Removed 'static'.
9537 (grub_env_context_open): Moved to normal/context.c.
9538 (grub_env_context_close): Likewise.
9539 (grub_env_export): Likewise.
9540 (mangle_data_slot_name): Removed.
9541 (grub_env_set_data_slot): Likewise.
9542 (grub_env_get_data_slot): Likewise.
9543 (grub_env_unset_data_slot): Likewise.
9544 * kern/main.c (grub_set_root_dev): Don't export root.
9545 It will be done later.
9546 (grub_main): Don't export prefix.
9547 It will be done later.
9548 * normal/context.c: New file.
9549 * normal/main.c (free_menu): Use grub_env_unset_menu.
9550 (grub_normal_add_menu_entry): Use grub_env_get_menu.
9551 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
9552 (GRUB_MOD_INIT(normal)): Call grub_context_init.
9553 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
9554
8dd35b8c
VS
95552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9556
9557 setpci support.
9558
9559 * commands/setpci.c: New file.
9560 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
9561 (setpci_mod_SOURCES): New variable.
9562 (setpci_mod_CFLAGS): Likewise.
9563 (setpci_mod_LDFLAGS): Likewise.
9564
449193d5
VS
95652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9566
9567 Byte-addressable PCI configuration space.
9568
9569 * bus/pci.c (grub_pci_make_address): Use byte address instead of
9570 dword address.
9571 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
9572 GRUB_PCI_REG_CACHELINE.
9573 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
9574 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
9575 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
9576 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
9577 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
9578 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
9579 grub_pci_make_address.
9580 (lock_rom_area): Likewise.
9581 * commands/lspci.c (grub_lspci_iter): Use macroses
9582 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
9583 of grub_pci_make_address.
9584 * disk/ata.c (grub_ata_pciinit): Likewise.
9585 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
9586 (GRUB_PCI_REG_VENDOR): Likewise.
9587 (GRUB_PCI_REG_DEVICE): Likewise.
9588 (GRUB_PCI_REG_COMMAND): Likewise.
9589 (GRUB_PCI_REG_STATUS): Likewise.
9590 (GRUB_PCI_REG_REVISION): Likewise.
9591 (GRUB_PCI_REG_CLASS): Likewise.
9592 (GRUB_PCI_REG_CACHELINE): Likewise.
9593 (GRUB_PCI_REG_LAT_TIMER): Likewise.
9594 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
9595 (GRUB_PCI_REG_BIST): Likewise.
9596 (GRUB_PCI_REG_ADDRESSES): Likewise.
9597 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9598 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9599 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9600 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9601 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9602 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9603 (GRUB_PCI_REG_CIS_POINTER): Likewise.
9604 (GRUB_PCI_REG_SUBVENDOR): Likewise.
9605 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
9606 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
9607 (GRUB_PCI_REG_CAP_POINTER): Likewise.
9608 (GRUB_PCI_REG_IRQ_LINE): Likewise.
9609 (GRUB_PCI_REG_IRQ_PIN): Likewise.
9610 (GRUB_PCI_REG_MIN_GNT): Likewise.
9611 (GRUB_PCI_REG_MAX_LAT): Likewise.
9612 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
9613 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
9614 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 9615 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
9616 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
9617 space.
9618
96d73208
RM
96192010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9620
9621 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
9622 can be reliably determined to be supported.
9623
d4484482
RM
96242010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9625
9626 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
9627 that VESA is supported.
9628 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
9629 supported.
9630
00308ecf
VS
96312010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9632
9633 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
9634
f66924a4
RM
96352010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9636
9637 * util/misc.c (make_system_path_relative_to_its_root): Work around
9638 special-casing of "/", as previous incarnation of this routine did.
9639
cbca0ada
VS
96402010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9641
9642 Fix any-emu compilation.
9643
9644 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
9645 * grub_bin2h_SOURCES: New variable.
9646
34a66d99
RM
96472010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9648
9649 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
9650
94fabf58
RM
96512010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9652
9653 * util/grub.d/00_header.in: Fix handling of locale_dir.
9654
02cf98ca
VS
96552010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9656
9657 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
9658 as possible unifont location (Gentoo).
9659 Reported by: Alexander Brüning
9660
327dbcd7
VS
96612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 Don't try to generate lists for kernel.img.
9664
9665 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
9666 (pkglib_MODULES): Remove kernel.img.
9667 (kernel_img_EXPORTS): Removed.
9668 (kernel_img_RELOCATABLE): New variable.
9669 * conf/x86_64-efi.rmk: Likewise.
9670 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
9671
ca467290
VS
96722010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9673
9674 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
9675 grub_xasprintf or grub_snprintf.
9676 (grub_vsprintf): Likewise.
9677 (grub_snprintf): New proto.
9678 (grub_vsnprintf): Likewise.
9679 (grub_xasprintf): Likewise.
9680 (grub_xvasprintf): Likewise.
9681 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
9682 (grub_sprintf): Removed.
9683 (grub_vsnprintf): New function.
9684 (grub_snprintf): Likewise.
9685 (grub_xvasprintf): Likewise.
9686 (grub_xasprintf): Likewise.
9687 (grub_vsprintf): Renamed to ...
9688 (grub_vsnprintf_real): ...this. New argument max_len.
9689
aca655fd
BC
96902010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
9691
9692 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
9693 fix grub-script-check warning.
9694
7ee92c32
VS
96952010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9696
9697 * include/grub/font.h (grub_font_load): Fix prototype.
9698
f80927ca
VS
96992010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9700
9701 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
9702
119c50ea
VS
97032010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9704
9705 * include/grub/x86_64/at_keyboard.h: New file.
9706
47d5f3c1
VS
97072010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9708
9709 * loader/mips/linux.c: Include missing grub/i18n.h.
9710
55ff5266
RM
97112009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9712
9713 * normal/menu.c (notify_execution_failure): Clarify error message.
9714
c893cc87
RM
97152009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9716
9717 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
9718 return value (and revert all return statements). Update users.
9719
917dd370
CW
97202010-01-20 Dan Merillat <debian@dan.merillat.org>
9721
9722 * kern/device.c (grub_device_iterate): Allocate new part_ent
9723 structure based on sizeof (*p) rather than sizeof (p->next), to
9724 account for structure padding.
9725
9726 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
9727 disk is NULL, which might happen for LVM physical volumes with no
9728 LVM signature.
9729
d4a4ee57
RM
97302009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9731
9732 * loader/mips/linux.c (grub_cmd_initrd)
9733 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
9734
97352009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9736
9737 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
9738 (grub_video_video_init, grub_video_bitmap_init)
9739 (grub_font_manager_init, grub_term_gfxterm_init)
9740 (grub_at_keyboard_init): New extern declarations.
9741 (grub_machine_init): Initialize gfxterm and at_keyboard.
9742
9743 * kern/main.c (grub_main): Revert grub_printf delay kludge.
9744
9745 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
9746 `gfxterm.mod' into core image.
9747
9748 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9749 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9750 (kernel_img_FORMAT): Copy to ...
9751
9752 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9753 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9754 (kernel_img_FORMAT): ... here, and ...
9755
9756 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9757 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9758 (kernel_img_FORMAT): ... here.
9759
9760 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
9761 and input (at_keyboard) terminals in kernel.
9762 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
9763
9764 (pkglib_MODULES): Remove `pci.mod'.
9765 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
9766 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
9767 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
9768 (at_keyboard_mod_LDFLAGS): Remove variables.
9769
97702010-01-11 Felix Zielcke <fzielcke@z-51.de>
9771
9772 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
9773
97742009-12-10 Robert Millan <rmh.grub@aybabtu.com>
9775
9776 * include/grub/mips/libgcc.h: Only export symbols for functions
9777 that libgcc provides.
9778
97792009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 MIPS support.
9782
9783 * bus/bonito.c: New file.
9784 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
9785 GRUB_PCI_NUM_DEVICES.
9786 * term/i386/pc/serial.c: Move to ...
9787 * term/serial.c: ... here. All users updated.
9788 * util/i386/pc/grub-mkimage.c: Move to ...
9789 * util/grub-mkrawimage.c: ... here. All users updated.
9790 * term/i386/pc/at_keyboard.c: Move to ...
9791 * term/at_keyboard.c: ... here. All users updated.
9792 * conf/mips-qemu-mips.rmk: New file.
9793 * conf/mips-yeeloong.rmk: Likewise.
9794 * conf/mips.rmk: Likewise.
9795 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
9796 mipsel-qemu-mips.
9797 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
9798 to port addresses.
9799 (grub_ata_pciinit): Support CS5536.
9800 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
9801 * font/font_cmd.c (loadfont_command): Open file before passing it to
9802 grub_font_load.
9803 (pseudo_file_read): New function.
9804 (pseudo_file_close): Likewise.
9805 (pseudo_fs): New structure.
9806 (load_font_module): New function.
9807 (GRUB_MOD_INIT(font_manager)): Load embedded font.
9808 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
9809 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
9810 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
9811 * include/grub/i386/at_keyboard.h: Split into ...
9812 * include/grub/at_keyboard.h: ... this ...
9813 * include/grub/i386/at_keyboard.h: ... and this.
9814 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
9815 New prototype.
9816 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
9817 updated.
9818 (grub_elf64_size): Likewise.
9819 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
9820 filename.
9821 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
9822 * include/grub/i386/coreboot/serial.h: Rewritten.
9823 * include/grub/i386/ieee1275/serial.h: Include
9824 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
9825 * include/grub/i386/pc/serial.h: Moved from here ...
9826 * include/grub/serial.h: ... to here. All users updated.
9827 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
9828 (GRUB_PCI_NUM_BUS): Likewise.
9829 (GRUB_PCI_NUM_DEVICES): Likewise.
9830 (grub_pci_device_map_range): Add missing volatile keyword.
9831 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
9832 * include/grub/mips/at_keyboard.h: New file.
9833 * include/grub/mips/cache.h: Likewise.
9834 * include/grub/mips/io.h: Likewise.
9835 * include/grub/mips/kernel.h: Likewise.
9836 * include/grub/mips/libgcc.h: Likewise.
9837 * include/grub/mips/pci.h: Likewise.
9838 * include/grub/mips/qemu-mips/boot.h: Likewise.
9839 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9840 * include/grub/mips/qemu-mips/loader.h: Likewise.
9841 * include/grub/mips/qemu-mips/memory.h: Likewise.
9842 * include/grub/mips/qemu-mips/serial.h: Likewise.
9843 * include/grub/mips/qemu-mips/time.h: Likewise.
9844 * include/grub/mips/relocator.h: Likewise.
9845 * include/grub/mips/time.h: Likewise.
9846 * include/grub/mips/types.h: Likewise.
9847 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
9848 * include/grub/mips/yeeloong/boot.h: Likewise.
9849 * include/grub/mips/yeeloong/kernel.h: Likewise.
9850 * include/grub/mips/yeeloong/loader.h: Likewise.
9851 * include/grub/mips/yeeloong/memory.h: Likewise.
9852 * include/grub/mips/yeeloong/pci.h: Likewise.
9853 * include/grub/mips/yeeloong/serial.h: Likewise.
9854 * include/grub/mips/yeeloong/time.h: Likewise.
9855 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
9856 * kern/elf.c (grub_elf32_size): New parameter. All users
9857 updated.
9858 (grub_elf64_size): Likewise.
9859 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
9860 Load modules before saying "Welcome to GRUB!".
9861 Call grub_refresh after saying "Welcome to GRUB!".
9862 * kern/mips/cache.S: New file.
9863 * kern/mips/cache_flush.S: Likewise.
9864 * kern/mips/dl.c: Likewise.
9865 * kern/mips/init.c: Likewise.
9866 * kern/mips/qemu-mips/init.c: Likewise.
9867 * kern/mips/startup.S: Likewise.
9868 * kern/mips/yeeloong/init.c: Likewise.
9869 * kern/term.c (grub_putcode): Handle NULL terminal.
9870 (grub_getcharwidth): Likewise.
9871 (grub_getkey): Likewise.
9872 (grub_checkkey): Likewise.
9873 (grub_getkeystatus): Likewise.
9874 (grub_getxy): Likewise.
9875 (grub_getwh): Likewise.
9876 (grub_gotoxy): Likewise.
9877 (grub_cls): Likewise.
9878 (grub_setcolorstate): Likewise.
9879 (grub_setcolor): Likewise.
9880 (grub_getcolor): Likewise.
9881 (grub_refresh): Likewise.
9882 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
9883 (write_jump): Add hatch nop.
9884 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
9885 * lib/mips/setjmp.S: New file.
9886 * loader/mips/linux.c: Likewise.
9887 * term/i386/pc/at_keyboard.c: Move from here ...
9888 * term/at_keyboard.c: ... to here.
9889 * term/i386/pc/serial.c: Moved from here ...
9890 * term/serial.c: ... to here. All users updated.
9891 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
9892 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
9893 (serial_translate_key_sequence): Avoid deadlock.
9894 (grub_serial_getkey): Handle backspace.
9895 (grub_serial_putchar): Fix newline handling.
9896 * util/i386/pc/grub-mkimage.c: Move from here ...
9897 * util/grub-mkrawimage.c: ... to here. All users updated.
9898 (generate_image): New parameters 'font_path' and 'format'.
9899 Support embedding font.
9900 Use grub_host_to_target* instead of grub_cpu_to_le*.
9901 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
9902 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
9903 (options): New option "--font".
9904 (usage): Likewise.
9905 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
9906 (main): Handle "--font".
9907 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
9908 (grub_virtual_screen_setup): Set bg_color_display.
9909 (redraw_screen_rect): Use bg_color_display instead of incorrect
9910 bg_color.
9911 (grub_gfxterm_cls): Likewise.
9912 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
9913 Support embedding config file.
9914 (add_segments): Likewise.
9915 (options): New option "--config".
9916 (main): Handle "--config".
9917 * video/sm712.c: New file.
9918
25c2b5b3
RM
99192010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9920
9921 Fix parallel builds.
9922
9923 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
9924 font.c depend on ascii.h).
9925
99262010-01-12 Carles Pina i Estany <carles@pina.cat>
9927
9928 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
9929
99302010-01-11 Carles Pina i Estany <carles@pina.cat>
9931
9932 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
9933 By default: disabled.
9934 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
9935 parameter.
9936
99372010-01-10 Carles Pina i Estany <carles@pina.cat>
9938
9939 * font/font.c: Update copyright years.
9940 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
9941
99422010-01-10 Carles Pina i Estany <carles@pina.cat>
9943
9944 * font/font.c: Include `ascii.h'.
9945 (ASCII_BITMAP_SIZE): New macro.
9946 (ascii_font_glyph): Define.
9947 (ascii_glyph_lookup): New function.
9948 (grub_font_get_string_width): Change comment. If glyph not found, use
9949 ascii_glyph_lookup.
9950 (grub_font_get_glyph_with_fallback): If glyph not available returns
9951 ascii_glyph_lookup.
9952 * util/grub-mkfont.c (file_formats): New enum.
9953 (options): Add `ascii-bitmaps' new option.
9954 (usage): Add `asii-bitmaps' new option.
9955 (write_font_ascii_bitmap): New function.
9956 (write_font): Rename to ...
9957 (write_font_p2): ... this. Remove print_glyphs call.
9958 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
9959 used. Call print_glyphs.
9960 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
9961
99622010-01-14 Robert Millan <rmh.grub@aybabtu.com>
9963
9964 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
9965 (grub_bin2h_SOURCES): New variable.
9966 * util/bin2h.c: New file.
9967
915fc1b8
VS
99682010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9969
9970 * include/multiboot.h: Resynced with spec.
9971 * include/multiboot2.h: Likewise.
9972 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
9973 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
9974
9444b678
RM
99752010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9976
9977 * include/grub/term.h (grub_term_register_input,
9978 grub_term_register_output): Check return of terminal init()
9979 routines, and abort if errors are raised.
9980
9981 * commands/terminal.c: Update copyright year.
9982
cba98e8d
RM
99832010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9984
9985 * commands/terminal.c (grub_cmd_terminal_input)
9986 (grub_cmd_terminal_output): Check return of terminal init()
9987 routines, and abort if errors are raised.
9988
6f7db5d6
VS
99892010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9990
9991 * include/grub/i386/bsd.h: Fix include pathes.
9992
262bff8d
VS
99932010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9994
9995 Add missing *BSD copyright headers.
9996
9997 * include/grub/aout.h: Add BSD licence.
9998 * include/grub/i386/bsd.h: Parts under different licences moved to ...
9999 * include/grub/i386/freebsd_linker.h: ... here,
10000 * include/grub/i386/freebsd_reboot.h: ... here,
10001 * include/grub/i386/netbsd_bootinfo.h: ... here,
10002 * include/grub/i386/netbsd_reboot.h: ... here,
10003 * include/grub/i386/openbsd_bootarg.h: ... here,
10004 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
10005 licence to each file.
10006
b2cab848
RM
100072010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10008
10009 * acinclude.m4: Remove `nop' assembly instruction; it's not
10010 implemented by all architectures.
10011
2cb6be4b
RM
100122010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10013
10014 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
10015 ELILO. This is no longer necessary.
10016
a2eaee15
BC
100172010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
10018
10019 Added new tool, grub-scrit-check to verify grub.cfg syntax.
10020
10021 * util/grub-script-check.c: grub-script-check tool.
10022 * conf/common.rmk: Make rules for grub-script-check.
10023
88d17012
RM
100242010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10025
10026 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
10027 spotting it back in 2008. Shame on me for forgetting he did.
10028
10029 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
10030
8040619d
RM
100312010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10032
10033 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
10034 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
10035 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
10036 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
10037 (GRUB_VIDEO_TYPE_EFI): Rename to ...
10038 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
10039
a0c2a0f6
RM
100402010-01-17 Robert Millan <rmh.grub@aybabtu.com>
10041
10042 * include/grub/test.h: Add license header.
10043 * tests/example_functional_test.c: Likewise.
10044 * tests/example_unit_test.c: Likewise.
10045 * tests/lib/functional_test.c: Likewise.
10046 * tests/lib/test.c: Likewise.
10047 * tests/lib/unit_test.c: Likewise.
10048
b0b13907
VS
100492010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
10050
10051 Use flag-based instead of hook-based video mode selection and "auto"
10052 keyword.
10053
10054 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
10055 (grub_video_set_mode): Changed prototype. All users updated.
10056 (grub_video_check_mode_flag): New inline function.
10057 * video/video.c (parse_modespec): New function.
10058 (grub_video_set_mode): Parse flags and keywords.
10059
ea379330 100602010-01-17 Carles Pina i Estany <carles@pina.cat>
10061
10062 * util/misc.c (grub_util_info): Fix the order of the parameters in a
10063 fprintf call.
10064
e15c215e
FZ
100652010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
10066
10067 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
10068
409ae1c9 100692010-01-16 Carles Pina i Estany <carles@pina.cat>
10070
10071 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
10072 string.
10073 * util/grub-emu.c (usage): Likewise.
10074 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
10075 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10076 * util/i386/pc/grub-mkimage.c (usage): Likewise.
10077 * util/i386/pc/grub-setup.c (usage): Likewise.
10078
70a14d3d 100792010-01-16 Carles Pina i Estany <carles@pina.cat>
10080
10081 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
10082 the message.
10083 (grub_util_info): Likewise.
10084 (grub_util_error): Likewise.
10085 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
10086 and/or new lines in `grub_util_warna', `grub_util_info',
10087 `grub_util_error' calls.
10088 * util/getroot.c: Likewise.
10089 * util/grub-editenv.c: Likewise.
10090 * util/grub-emu.c: Likewise.
10091 * util/grub-fstest.c: Likewise.
10092 * util/grub-mkdevicemap.c: Likewise.
10093 * util/grub-mkfont.c: Likewise.
10094 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10095 * util/grub-mkrelpath.c: Likewise.
10096 * util/grub-pe2elf.c: Likewise.
10097 * util/grub-probe.c: Likewise.
10098 * util/hostdisk.c: Likewise.
10099 * util/i386/efi/grub-mkimage.c: Likewise.
10100 * util/i386/pc/grub-mkimage.c: Likewise.
10101 * util/i386/pc/grub-setup.c: Likewise.
10102 * util/ieee1275/ofpath.c: Likewise.
10103 * util/mkisofs/eltorito.c: Likewise.
10104 * util/mkisofs/rock.c: Likewise.
10105 * util/mkisofs/write.c: Likewise.
10106 * util/raid.c: Likewise.
10107 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
10108 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10109
a0b766fc
VS
101102010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10111
10112 Enable multiboot on non-pc.
10113
10114 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
10115 multiboot.mod and multiboot2.mod to ...
10116 * conf/i386.rmk (pkglib_MODULES): ... here.
10117 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
10118 Moved to ...
10119 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
10120 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
10121 Moved to ...
10122 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
10123 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
10124 Moved to ...
10125 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
10126 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
10127 Moved to ...
10128 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
10129 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
10130 relocator.mod.
10131 (ata_mod_SOURCES): Removed.
10132 (ata_mod_CFLAGS): Likewise.
10133 (ata_mod_LDFLAGS): Likewise.
10134 (relocator_mod_SOURCES): Removed.
10135 (relocator_mod_CFLAGS): Likewise.
10136 (relocator_mod_ASFLAGS): Likewise.
10137 (relocator_mod_LDFLAGS): Likewise.
10138 Include i386.mk.
10139 * include/grub/x86_64/multiboot.h: New file.
10140 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
10141 Terminate EFI.
10142
884ade56
VS
101432010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10144
10145 Video multiboot support.
10146
10147 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
10148 New prototype.
10149 * include/multiboot.h: Resynced with multiboot specification.
10150 * include/multiboot2.h: Likewise.
10151 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
10152 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
10153 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
10154 (HAS_VGA_TEXT): Likewise.
10155 (accepts_video): New variable.
10156 (grub_multiboot_set_accepts_video): New function.
10157 (grub_multiboot_get_mbi_size): Account for video structures.
10158 (set_video_mode): New function.
10159 (retrieve_video_parameters): Likewise.
10160 (grub_multiboot_make_mbi): Fill video fields.
10161
0d90e8a6
VS
101622010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10163
10164 Video driver ids.
10165
10166 * include/grub/video.h (grub_video_driver_id): New type.
10167 (grub_video_adapter): New member 'id'. All users updated.
10168 (grub_video_get_driver_id): New proto.
10169 * video/video.c (grub_video_get_driver_id): New function.
10170
5c71db1b 101712010-01-14 Carles Pina i Estany <carles@pina.cat>
10172
10173 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
10174 `var=val'.
10175
cca15b52 101762010-01-14 Carles Pina i Estany <carles@pina.cat>
10177
10178 * normal/cmdline.c (print_completion): Gettextizze.
10179
c586fbb2 101802001-01-14 Carles Pina i Estany <carles@pina.cat>
10181
10182 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
10183
ba2f6848 101842010-01-14 Carles Pina i Estany <carles@pina.cat>
10185
10186 * gettext/gettext.c (grub_gettext_translate): Push and pop
10187 grub_errno.
10188 (grub_gettext_delete_list): Change comment style.
10189 * kern/err.c (grub_error): Gettextizze.
10190 (grub_fatal): Gettextizze.
10191
0a46429a
RM
101922010-01-14 Robert Millan <rmh.grub@aybabtu.com>
10193
10194 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
10195 (grub_linux16_real_boot): ... this.
10196 * kern/i386/loader.S: Likewise.
10197 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
10198 (grub_linux16_boot): New function. Switches to text mode and calls
10199 grub_linux16_real_boot().
10200
10201 * loader/i386/bsd.c: Include `<grub/video.h>'.
10202 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
10203 text mode before calling grub_unix_real_boot().
10204
10205 * loader/i386/multiboot.c: Include `<grub/video.h>'.
10206 (grub_multiboot_boot): Switch to text mode before calling
10207 grub_relocator32_boot().
10208
10209 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
10210 (grub_chainloader_boot): Switch to text mode before calling
10211 grub_chainloader_real_boot().
10212
d6f93a66
RM
102132010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
102142010-01-05 Colin Watson <cjwatson@ubuntu.com>
10215
10216 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
10217 non-empty value.
10218
102192010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
102202010-01-05 Colin Watson <cjwatson@ubuntu.com>
10221
10222 * util/grub.d/00_header.in: Define a "savedefault" function for use
10223 in menu entries.
10224 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
10225
102262010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
102272010-01-05 Colin Watson <cjwatson@ubuntu.com>
10228
10229 * util/grub-mkconfig_lib.in (save_default_entry): Only set
10230 saved_entry if boot_once is unset.
10231 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
10232 previous saved entry (i.e. grub-reboot).
10233
102342009-12-08 Colin Watson <cjwatson@ubuntu.com>
10235
10236 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
10237
102382009-12-08 Colin Watson <cjwatson@ubuntu.com>
10239
10240 * util/grub.d/00_header.in: Use `set var=val' rather than plain
10241 `var=val'.
10242 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
10243
102442009-12-08 Colin Watson <cjwatson@ubuntu.com>
10245
10246 * util/grub-reboot.in: Fix --version output.
10247 * util/grub-set-default.in: Likewise.
10248
102492009-12-08 Colin Watson <cjwatson@ubuntu.com>
10250
10251 * util/grub.d/00_header.in: Silently ignore zero-sized environment
10252 blocks.
10253
102542009-12-08 Colin Watson <cjwatson@ubuntu.com>
10255
10256 * util/grub.d/00_header.in: Quote the value assigned to `default',
10257 in case it contains spaces.
10258
102592009-12-08 Colin Watson <cjwatson@ubuntu.com>
10260
10261 * util/grub.d/30_os-prober.in: Fix merge error that moved a
10262 `save_default_entry' call from the macosx case to the linux case.
10263
102642009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
102652009-10-25 Colin Watson <cjwatson@ubuntu.com>
10266
10267 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
10268 in `chosen' environment variable.
10269 * normal/menu_text.c (get_entry_number): Check if the variable
10270 matches the title of a menu entry.
10271 (run_menu): Pass menu to get_entry_number.
10272
10273 * util/grub-reboot.in: New file.
10274 * util/grub-set-default.in: New file.
10275 * conf/common.rmk (grub-reboot): New utility.
10276 (grub-set-default): New utility.
10277
10278 * util/grub-mkconfig_lib.in (save_default_entry): New function.
10279 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
10280 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
10281 move it to `saved_entry' for the next boot. Load environment on
10282 initialisation.
10283 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
10284 * util/grub.d/10_hurd.in: Likewise.
10285 * util/grub.d/10_linux.in (linux_entry): Likewise.
10286 * util/grub.d/10_windows.in: Likewise.
10287 * util/grub.d/30_os-prober.in: Likewise.
10288
10289 * util/grub-install.in: Create environment block.
10290 * util/i386/efi/grub-install.in: Likewise.
10291 * util/ieee1275/grub-install.in: Likewise.
10292 * util/sparc64/ieee1275/grub-install.in: Likewise.
10293
0934d184
BC
102942010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
10295
10296 Unit testing framework for GRUB.
10297
10298 * Makefile.in: Test framework build rules for 'make check'.
10299 * conf/tests.rmk: Build rules for individual tests and framework.
10300
10301 * include/grub/test.h: Header file for whitebox tests.
10302 * tests/lib/functional_test.c: Framework support for whitebox
10303 functional tests.
10304 * tests/lib/test.c: Common whitebox testing code for unit and
10305 functional tests.
10306 * tests/lib/unit_test.c: Framework support for whitebox unit
10307 tests.
10308
10309 * tests/util/grub-shell-tester.in: Support utility for grub-script
10310 tests.
10311 * tests/util/grub-shell.in: Utility to execute grub-script
10312 commands in a Qemu instance.
10313
10314 * tests/example_functional_test.c: Example whitebox functional
10315 test.
10316 * tests/example_grub_script_test.in: Example grub-script test.
10317 * tests/example_scripted_test.in: Example scripted test.
10318 * tests/example_unit_test.c: Example whitebox unit test.
10319
9c4ffeeb
VS
103202010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10321
10322 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
10323 Add loader/i386/multiboot_mbi.c.
10324 (multiboot2_mod_SOURCES): Likewise.
10325 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
10326 (multiboot2_mod_SOURCES): Likewise.
10327 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
10328 (grub_multiboot_make_mbi): Likewise.
10329 (grub_multiboot_free_mbi): Likewise.
10330 (grub_multiboot_init_mbi): Likewise.
10331 (grub_multiboot_add_module): Likewise.
10332 (grub_multiboot_set_bootdev): Likewise.
10333 * loader/i386/multiboot.c (mbi): Removed.
10334 (mbi_dest): Likewise.
10335 (alloc_mbi): New variable.
10336 (grub_multiboot_payload_size): Removed. All users updated.
10337 (grub_multiboot_pure_size): New variable.
10338 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
10339 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
10340 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
10341 (grub_fill_multiboot_mmap): Likewise.
10342 (grub_multiboot_get_bootdev): Likewise.
10343 (grub_multiboot): Use multiboot_mbi functions.
10344 * loader/i386/multiboot_mbi.c: New file.
10345
17383dfe
VS
103462010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10347
10348 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
10349 it would result in module crash.
10350
c1f28820
VS
103512010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10352
10353 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
10354 (grub_ofconsole_getwh): Split to ...
10355 (grub_ofconsole_getwh): ... this.
10356 (grub_ofconsole_dimensions): ...and this.
10357 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
10358
58655a16
RM
103592010-01-13 Robert Millan <rmh.grub@aybabtu.com>
10360
10361 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
10362
10891398
VS
103632010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10364
10365 * loader/i386/pc/multiboot2.c: Removed stalled file.
10366
0b8a223c
VS
103672010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10368
10369 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
10370 Reported by: Grégoire Sutre
10371
92ab12b0
RM
103722010-01-11 Robert Millan <rmh.grub@aybabtu.com>
10373
10374 * util/misc.c (canonicalize_file_name): New function.
10375 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
10376 instead of realpath().
10377
a788afb6
CW
103782010-01-11 Colin Watson <cjwatson@ubuntu.com>
10379
10380 * util/grub-install.in (usage): Clarify meaning of --root-directory,
10381 and make it clearer that it's optional. Based on confusion
10382 witnessed on IRC.
10383
ffa8e3d2
VS
103842010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10385
10386 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
10387 in premature implicit newline.
10388
e9060a9d
VS
103892010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10390
10391 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
10392 which resulted in garbled command line at the end of screen.
10393
f0d0c0b7
RM
103942010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10395
10396 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
10397 initialization with similar approach as with other Linux loaders.
10398
0e60bae7
RM
103992010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10400
10401 Fix i386-ieee1275 build.
10402
10403 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
10404 and grub_term_height() for video_{width,height} initialization.
10405
104062010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
10407
10408 Fix grub-emu build.
10409
10410 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
10411
cdb3f378
RM
104122010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
104132010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10414
10415 Support for multiple terminals.
10416
10417 * Makefile.in (pkglib_DATA): terminal.lst.
10418 (terminal.lst): New target.
10419 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
10420 (GRUB_MOD_INIT(handler)): Likewise.
10421 (GRUB_MOD_FINI(handler)): Likewise.
10422 * commands/help.c (grub_cmd_help): Handle multiple terminals.
10423 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
10424 * commands/sleep.c (do_print): Use grub_term_restore_pos.
10425 (grub_cmd_sleep): Use grub_term_save_pos.
10426 * commands/terminal.c: New file.
10427 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
10428 commands/terminal.c and lib/charset.c.
10429 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
10430 (pkglib_MODULES): Add terminal.mod.
10431 (terminal_mod_SOURCES): New variable.
10432 (terminal_mod_CFLAGS): Likewise.
10433 (terminal_mod_LDFLAGS): Likewise.
10434 * genhandlerlist.sh: Don't handle terminals.
10435 * genmk.rb: Generate terminal-*.lst.
10436 * genterminallist.sh: New file.
10437 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
10438 (grub_is_valid_utf8): Likewise.
10439 (grub_utf8_to_ucs4_alloc): Likewise.
10440 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
10441 (grub_menu_register_viewer): Changed argument.
10442 (grub_menu_try_text): New proto.
10443 (grub_gfxmenu_try_hook): New declaration.
10444 * include/grub/normal.h (grub_normal_exit_level): New declaration.
10445 (grub_menu_init_page): Additional argument term.
10446 (grub_normal_init_page): Likewise.
10447 (grub_cmdline_get): Arguments simplified.
10448 (grub_utf8_to_ucs4_alloc): Removed.
10449 (grub_print_ucs4): Additional argument term.
10450 (grub_getstringwidth): Likewise.
10451 (grub_print_message_indented): Likewise.
10452 (grub_menu_text_register_instances): New proto.
10453 (grub_show_menu): Likewise.
10454 (read_terminal_list): Likewise.
10455 (grub_set_more): Likewise.
10456 * include/grub/parser.h: Include handler.h.
10457 * include/grub/reader.h: Rewritten.
10458 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
10459 (GRUB_TERM_WIDTH): Changed to function.
10460 (GRUB_TERM_HEIGHT): Likewise.
10461 (GRUB_TERM_BORDER_WIDTH): Likewise.
10462 (GRUB_TERM_BORDER_HEIGHT): Likewise.
10463 (GRUB_TERM_NUM_ENTRIES): Likewise.
10464 (GRUB_TERM_ENTRY_WIDTH): Likewise.
10465 (GRUB_TERM_CURSOR_X): Likewise.
10466 (grub_term_input_class): Likewise.
10467 (grub_term_output_class): Likewise.
10468 (grub_term_outputs_disabled): New declaration.
10469 (grub_term_inputs_disabled): Likewise.
10470 (grub_term_outputs): Likewise.
10471 (grub_term_inputs): Likewise.
10472 (grub_term_register_input): Rewritten.
10473 (grub_term_register_output): Likewise.
10474 (grub_term_unregister_input): Likewise.
10475 (grub_term_unregister_output): Likewise.
10476 (FOR_ACTIVE_TERM_INPUTS): New macro.
10477 (FOR_DISABLED_TERM_INPUTS): Likewise.
10478 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10479 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10480 * include/grub/terminfo.h: Add oterm argument to all protypes.
10481 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
10482 Use grub_rescue_run.
10483 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
10484 All users updated.
10485 * kern/reader.c: Removed. All users updated.
10486 * kern/rescue_reader.c (grub_rescue_init): Removed.
10487 (grub_rescue_reader): Likewise.
10488 (grub_register_rescue_reader): Likewise.
10489 (grub_rescue_run): New function based on kern/reader.c.
10490 * kern/term.c: Adapted for multiterm.
10491 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
10492 (grub_is_valid_utf8): Likewise.
10493 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
10494 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
10495 right terminal.
10496 * loader/i386/linux.c (grub_linux_boot): Likewise.
10497 * normal/auth.c (grub_username_get): New function.
10498 (grub_auth_check_authentication): Use grub_username_get.
10499 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
10500 * normal/color.c: Adapt for multiterm.
10501 * normal/main.c (read_config_file): Don't use grub_reader_loop.
10502 (grub_normal_init_page): Additional argument term.
10503 (read_lists): Call read_terminal_lists.
10504 (grub_enter_normal_mode): Call grub_cmdline_run.
10505 Handle grub_normal_exit_level.
10506 (grub_cmd_normal): Make reentrant.
10507 (grub_cmd_normal_exit): New function.
10508 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
10509 * normal/menu.c: Adapt for multiterm.
10510 * normal/menu_entry.c: Likewise.
10511 * normal/menu_text.c: Likewise.
10512 * normal/menu_viewer.c: Removed. All users updated.
10513 * normal/term.c: New file.
10514 * util/console.c: Change order of includes to workaround a bug in
10515 ncurses headers.
10516 * term/terminfo.c: New argument oterm on all exported functions.
10517 All users updated.
10518 * util/grub-editenv.c (grub_term_input_class): Removed.
10519 (grub_term_output_class): Likewise.
10520
1a064917
RM
105212010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10522
10523 Make loader output a bit more user-friendly.
10524
10525 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
10526 is being loaded. Likewise for the Hurd.
10527
10528 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
10529 that kernel of FreeBSD ${version} is being loaded.
10530
10531 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
10532 grub_dprintf().
10533 (grub_cmd_initrd): Likewise.
10534 * util/grub.d/10_linux.in (linux_entry): Print message indicating
10535 that Linux ${version} is being loaded. Likewise for initrd.
10536
5ce0a83a 105372010-01-09 Carles Pina i Estany <carles@pina.cat>
10538
10539 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
10540
809bbfeb 105412010-01-08 Carles Pina i Estany <carles@pina.cat>
10542
10543 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
10544 (GRUB_MOD_INIT): Gettextizze.
10545 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
10546 (GRUB_MOD_INIT): Gettextizze.
10547 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
10548 (grub_cmd_linux): Capitalise Linux.
10549 (GRUB_MOD_INIT): Gettextizze.
10550 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
10551 (grub_cmd_linux): Capitalise Linux.
10552 (GRUB_MOD_INIT): Gettextizze.
10553 * loader/i386/linux.c: Include `<grub/i18n.h>'.
10554 (grub_cmd_linux): Capitalise Linux.
10555 (GRUB_MOD_INIT): Gettextizze.
10556 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
10557 (GRUB_MOD_INIT): Gettextizze.
10558 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
10559 (grub_cmd_linux): Capitalise Linux.
10560 (GRUB_MOD_INIT): Gettextizze.
10561 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
10562 (grub_cpu_xnu_init): Gettextizze.
10563 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
10564 (GRUB_MOD_INIT): Gettextizze.
10565 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
10566 (GRUB_MOD_INIT): Gettextizze.
10567 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
10568 (grub_linux_load64): Capitalise Linux.
10569 (GRUB_MOD_INIT): Gettextizze.
10570 * loader/xnu.c: Include `<grub/i18n.h>'.
10571 (GRUB_MOD_INIT): Gettextizze.
10572 * po/POTFILES: Add `loader/efi/appleloader.c',
10573 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
10574 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
10575 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
10576 `loader/i386/xnu.c', `loader/multiboot_loader.c',
10577 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
10578 and `loader/xnu.c'.
10579
b394b2ca
RM
105802010-01-08 Robert Millan <rmh.grub@aybabtu.com>
10581
10582 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
10583
105842010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
10585
10586 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
10587 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
10588 * util/mkisofs/mkisofs.c (main): Readjust --version output.
10589
bc8b32b3
RM
105902010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10591
10592 Reset Multiboot 2 support. New loader implements the draft in
10593 /branches/multiboot2 and shares as much code as possible with the
10594 production Multiboot 1 implementation.
10595
10596 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
10597 * loader/multiboot2.c: Likewise.
10598 * loader/i386/multiboot_helper.S: Likewise.
10599 * include/multiboot2.h: Replace with latest version from the draft
10600 in /branches/multiboot2.
10601
10602 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
10603 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
10604 and `loader/multiboot2.c'.
10605 (pkglib_MODULES): Add `multiboot2.mod'.
10606 (multiboot2_mod_SOURCES): New variable.
10607 (multiboot2_mod_LDFLAGS): Likewise.
10608 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
10609
10610 * conf/i386-pc.rmk: Likewise.
10611
10612 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
10613 (multiboot_mod_SOURCES): Remove variable.
10614 (multiboot_mod_LDFLAGS): Likewise.
10615 (multiboot_mod_CFLAGS): Likewise.
10616
10617 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
10618 `<multiboot2.h>' instead of `<multiboot.h>'.
10619 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
10620 (MULTIBOOT_HEADER_MAGIC): New macros.
10621
10622 * loader/multiboot_loader.c (module_version_status): Remove variable.
10623 (find_multi_boot2_header): Remove function.
10624 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
10625 logic. Always check for the Multiboot version we're compiling for.
10626 (grub_cmd_module_loader): Likewise.
10627 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
10628 command instead of `multiboot'.
10629
5d2c52b8
RM
106302010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10631
10632 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
10633 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
10634 all users.
10635
53108d92
RM
106362010-01-07 Robert Millan <rmh.grub@aybabtu.com>
106372010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10638
10639 Fix breakage introduced with previous commit.
10640
10641 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
10642 commands.
10643 * normal/handler.c (read_handler_list): Revert part of previous commit
10644 affecting this file.
10645 * normal/main.c (read_lists): Move read_handler_list() call back to ...
10646 (grub_normal_execute): ... here.
10647
e2e936b2
RM
106482010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10649
10650 Merge prefix-redefinition-fix branch.
10651
10652 * normal/autofs.c (read_fs_list): Make function capable of being
10653 run multiple times, gracefuly replacing the previous data
10654 structures.
10655 * normal/dyncmd.c (read_command_list): Likewise.
10656 * normal/handler.c (read_handler_list): Likewise.
10657 * normal/main.c (read_lists): New function. Calls all the
10658 list reading functions.
10659 (grub_normal_execute): Use read_lists() instead of calling all
10660 list reading functions explicitly. Register read_lists() as a
10661 variable hook attached to ${prefix}.
10662
607a3701
VS
106632010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10664
10665 Merge crypto branch.
10666
10667 * Makefile.in (pkglib_DATA): Add crypto.lst.
10668 (crypto.lst): New target.
10669 * commands/hashsum.c: New file.
10670 * commands/password.c (check_password): Use grub_crypto_memcmp.
10671 * commands/password_pbkdf2.c: New file.
10672 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
10673 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
10674 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
10675 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
10676 -I$(srcdir)/lib/libgcrypt_wrap.
10677 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
10678 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
10679 password_pbkdf2.mod.
10680 (crypto_mod_SOURCES): New variable.
10681 (crypto_mod_CFLAGS): Likewise.
10682 (crypto_mod_LDFLAGS): Likewise.
10683 (hashsum_mod_SOURCES): New variable.
10684 (hashsum_mod_CFLAGS): Likewise.
10685 (hashsum_mod_LDFLAGS): Likewise.
10686 (pbkdf2_mod_SOURCES): New variable.
10687 (pbkdf2_mod_CFLAGS): Likewise.
10688 (pbkdf2_mod_LDFLAGS): Likewise.
10689 (password_pbkdf2_mod_SOURCES): New variable.
10690 (password_pbkdf2_mod_CFLAGS): Likewise.
10691 (password_pbkdf2_mod_LDFLAGS): Likewise.
10692 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
10693 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
10694 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
10695 Include conf/gcry.rmk.
10696 * include/grub/auth.h: Rewritten.
10697 * include/grub/crypto.h: New file.
10698 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
10699 * include/grub/normal.h (read_crypto_list): New prototype.
10700 * lib/crypto.c: New file.
10701 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10702 * lib/pbkdf2.c: Likewise.
10703 * normal/auth.c (grub_auth_strcmp): Removed.
10704 (grub_iswordseparator): Likewise.
10705 (grub_auth_strword): Likewise.
10706 (is_authenticated): Use grub_strword.
10707 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
10708 and grub_strword. Pass entered password to authentication callback.
10709 * normal/crypto.c: New file.
10710 * normal/main.c: Call read_crypto_list.
10711 * util/grub-mkpasswd-pbkdf2.c: New file.
10712 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
10713
42841caa
VS
107142010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
10715
10716 Fix descent and ascent calculation.
10717
10718 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
10719 (options): New option "asce".
10720 (usage): Likewise.
10721 (add_char): Ignore invalid glyphs for descent calculation.
10722 Calculate ascent from actual content.
10723 (print_glyphs): Use 'asce'.
10724 (write_font): Likewise. Allow ascent override.
10725 (main): Handle "asce" option.
10726
e7730de7 107272010-01-06 Carles Pina i Estany <carles@pina.cat>
10728
10729 * kern/err.c: Include `<grub/i18n.h>'.
10730 (grub_print_error): Add full stop. Gettextizze.
10731 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
10732 (grub_bsd_load_elf): Capitalise ELF.
10733 (grub_cmd_freebsd_loadenv): Add `s' in error string.
10734 (grub_cmd_freebsd_module): Likewise.
10735 (grub_cmd_freebsd_module_elf): Likewise.
10736 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
10737
40e3a41f 107382010-01-06 Carles Pina i Estany <carles@pina.cat>
10739
10740 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
10741 * commands/search_file.c (HELP_MESSAGE): New macro.
10742 * commands/search_label.c (HELP_MESSAGE): Likewise.
10743 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
10744 * po/POTFILES: Add `commands/search_file.c',
10745 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
10746 `commands/search.c'.
10747
83507e68
RM
107482010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10749
10750 * config.rpath: Update from Gnulib.
10751
465c787b
YB
107522010-01-05 Yves Blusseau <blusseau@zetam.org>
10753
10754 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
10755
6581dd3a
YB
107562010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
10757
10758 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
10759
3bff18c5
CW
107602010-01-05 Colin Watson <cjwatson@ubuntu.com>
10761
10762 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
10763 arguments to fread so that we get a return value in bytes, rather
10764 than something that will normally be rounded down to 0.
10765 Adjust error handling to avoid producing garbage when size_t is not
10766 the same size as long long.
10767
a1368118
CW
107682010-01-05 Colin Watson <cjwatson@ubuntu.com>
10769
10770 * util/mkisofs/write.c (padblock_write): Check return value of
10771 fread.
10772
7c302978
RM
107732010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10774
10775 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
10776 floppy images now.
10777
10778 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
10779
e33ace06
RM
107802010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10781
10782 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
10783 instead of manual alignment.
10784 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
10785 verbose). Avoid attempts to read past end of the device
10786 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
10787 but GRUB_DISK_CACHE_SIZE may exceed that).
10788
4b856776
RM
107892010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10790
10791 * commands/crc.c (grub_cmd_crc): Abort on read errors.
10792 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
10793 it to upper layer.
10794
52c2d97f
VS
107952010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10796
10797 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
10798 New constant.
10799 (grub_efi_piwg_device_path): New structure
10800 (grub_efi_piwg_device_path_t): New type.
10801 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
10802 (devpath_1): Transform to a structure. All users updated.
10803 (devpath_2): Likewise.
10804 (devpath_3): Likewise.
10805 (devpath_4): Likewise.
10806 (devpath_5): Likewise.
10807
98ff6a54
VS
108082010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10809
10810 * loader/efi/appleloader.c: Restored. Update all users.
10811
3a73dcb6
RM
108122010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10813
10814 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
10815
10816 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
10817 (struct boot_blocklist): Move from here ...
10818 * include/grub/i386/pc/boot.h [ASM_FILE]
10819 (struct grub_boot_blocklist): ... to here. Update all users.
10820 (setup): Only initialize `start' member of `first_block'
10821 structure. Add assert() calls to verify the other members.
10822
10823 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
10824 (generate_image): Fix broken blocklist length initialization.
10825 Add assert() call to verify blocklist `segment' field.
10826
ab0eeb0c
RM
108272010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10828
10829 * loader/efi/appleloader.c: Remove. Update all users.
10830
58bc8bd5
RM
108312010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10832
10833 * boot/i386/pc/boot.S: Update copyright year.
10834 * boot/i386/pc/cdboot.S: Likewise.
10835 * boot/i386/pc/diskboot.S: Likewise.
10836 * boot/i386/pc/lnxboot.S: Likewise.
10837 * boot/i386/pc/pxeboot.S: Likewise.
10838 * bus/pci.c: Likewise.
10839 * commands/cmp.c: Likewise.
10840 * commands/help.c: Likewise.
10841 * commands/hexdump.c: Likewise.
10842 * commands/i386/pc/halt.c: Likewise.
10843 * commands/i386/pc/play.c: Likewise.
10844 * commands/i386/pc/vbeinfo.c: Likewise.
10845 * commands/ls.c: Likewise.
10846 * commands/test.c: Likewise.
10847 * disk/dmraid_nvidia.c: Likewise.
10848 * disk/i386/pc/biosdisk.c: Likewise.
10849 * disk/ieee1275/nand.c: Likewise.
10850 * disk/ieee1275/ofdisk.c: Likewise.
10851 * disk/lvm.c: Likewise.
10852 * disk/raid.c: Likewise.
10853 * disk/raid6_recover.c: Likewise.
10854 * disk/scsi.c: Likewise.
10855 * fs/affs.c: Likewise.
10856 * fs/cpio.c: Likewise.
10857 * fs/ext2.c: Likewise.
10858 * fs/hfs.c: Likewise.
10859 * fs/iso9660.c: Likewise.
10860 * fs/ntfs.c: Likewise.
10861 * fs/sfs.c: Likewise.
10862 * fs/udf.c: Likewise.
10863 * fs/ufs.c: Likewise.
10864 * fs/xfs.c: Likewise.
10865 * gencmdlist.sh: Likewise.
10866 * genmk.rb: Likewise.
10867 * include/grub/disk.h: Likewise.
10868 * include/grub/efi/api.h: Likewise.
10869 * include/grub/efi/efi.h: Likewise.
10870 * include/grub/efi/pe32.h: Likewise.
10871 * include/grub/elf.h: Likewise.
10872 * include/grub/fs.h: Likewise.
10873 * include/grub/i386/at_keyboard.h: Likewise.
10874 * include/grub/i386/pc/memory.h: Likewise.
10875 * include/grub/i386/pc/vbe.h: Likewise.
10876 * include/grub/i386/pci.h: Likewise.
10877 * include/grub/i386/tsc.h: Likewise.
10878 * include/grub/ieee1275/ieee1275.h: Likewise.
10879 * include/grub/ntfs.h: Likewise.
10880 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
10881 * include/grub/sparc64/libgcc.h: Likewise.
10882 * include/grub/symbol.h: Likewise.
10883 * include/grub/types.h: Likewise.
10884 * include/multiboot2.h: Likewise.
10885 * io/gzio.c: Likewise.
10886 * kern/device.c: Likewise.
10887 * kern/disk.c: Likewise.
10888 * kern/efi/efi.c: Likewise.
10889 * kern/efi/mm.c: Likewise.
10890 * kern/elf.c: Likewise.
10891 * kern/file.c: Likewise.
10892 * kern/i386/dl.c: Likewise.
10893 * kern/i386/pc/init.c: Likewise.
10894 * kern/i386/pc/startup.S: Likewise.
10895 * kern/ieee1275/ieee1275.c: Likewise.
10896 * kern/ieee1275/init.c: Likewise.
10897 * kern/main.c: Likewise.
10898 * kern/mm.c: Likewise.
10899 * kern/powerpc/dl.c: Likewise.
10900 * kern/sparc64/dl.c: Likewise.
10901 * kern/x86_64/dl.c: Likewise.
10902 * lib/hexdump.c: Likewise.
10903 * loader/efi/appleloader.c: Likewise.
10904 * loader/i386/ieee1275/linux.c: Likewise.
10905 * loader/i386/pc/chainloader.c: Likewise.
10906 * loader/i386/pc/linux.c: Likewise.
10907 * loader/i386/pc/multiboot2.c: Likewise.
10908 * loader/ieee1275/multiboot2.c: Likewise.
10909 * loader/multiboot2.c: Likewise.
10910 * loader/multiboot_loader.c: Likewise.
10911 * loader/powerpc/ieee1275/linux.c: Likewise.
10912 * normal/completion.c: Likewise.
10913 * normal/menu_entry.c: Likewise.
10914 * partmap/apple.c: Likewise.
10915 * util/grub.d/10_hurd.in: Likewise.
10916 * util/hostfs.c: Likewise.
10917 * video/readers/png.c: Likewise.
10918
e2d70b5c
CW
109192010-01-03 Colin Watson <cjwatson@ubuntu.com>
10920
10921 * include/grub/misc.h (GNUC_PREREQ): New macro.
10922 (ATTRIBUTE_ERROR): New macro.
10923 * include/grub/list.h (grub_bad_type_cast_real): Use
10924 ATTRIBUTE_ERROR.
10925
a173283f 109262010-01-03 Carles Pina i Estany <carles@pina.cat>
10927
10928 * normal/menu_text.c (print_message): Change messages.
10929
7fa7ff74 109302010-01-03 Carles Pina i Estany <carles@pina.cat>
10931
10932 * normal/menu_entry.c (store_completion): Gettextizze.
10933
136d24f6 109342010-01-03 Carles Pina i Estany <carles@pina.cat>
10935
10936 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
10937
f936862e 109382010-01-03 Carles Pina i Estany <carles@pina.cat>
10939
10940 * po/POTFILES: Sort correctly.
10941
29c44ad1 109422010-01-03 Carles Pina i Estany <carles@pina.cat>
10943
10944 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
10945 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
10946 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
10947 full stop.
10948 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
10949 summary. Gettextizze the strings.
10950 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
10951 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
10952 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
10953 full stop.
10954 (GRUB_MOD_INIT): Remove command name from summary.
10955 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
10956 summary.
10957 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
10958 * term/i386/pc/serial.c (options): Add full stops.
10959 (GRUB_MOD_INIT): Remove command name from the summary.
10960
77a79592 109612010-01-03 Carles Pina i Estany <carles@pina.cat>
10962
10963 * commands/acpi.c: Gettextizze help strings and/or options. Include
10964 `grub/i18n.h' if needed.
10965 * commands/blocklist.c: Likewise.
10966 * commands/boot.c: Likewise.
10967 * commands/cat.c: Likewise.
10968 * commands/cmp.c: Likewise.
10969 * commands/configfile.c: Likewise.
10970 * commands/crc.c: Likewise.
10971 * commands/date.c: Likewise.
10972 * commands/echo.c: Likewise.
10973 * commands/efi/fixvideo.c: Likewise.
10974 * commands/efi/loadbios.c: Likewise.
10975 * commands/gptsync.c: Likewise.
10976 * commands/halt.c: Likewise.
10977 * commands/handler.c: Likewise.
10978 * commands/hdparm.c: Likewise.
10979 * commands/hexdump.c: Likewise.
10980 * commands/i386/cpuid.c: Likewise.
10981 * commands/i386/pc/drivemap.c: Likewise.
10982 * commands/i386/pc/halt.c: Likewise.
10983 * commands/i386/pc/pxecmd.c: Likewise.
10984 * commands/i386/pc/vbeinfo.c: Likewise.
10985 * commands/i386/pc/vbetest.c: Likewise.
10986 * commands/ieee1275/suspend.c: Likewise.
10987 * commands/keystatus.c: Likewise.
10988 * commands/loadenv.c: Likewise.
10989 * commands/ls.c: Likewise.
10990 * commands/lsmmap.c: Likewise.
10991 * commands/lspci.c: Likewise.
10992 * commands/memrw.c: Likewise.
10993 * commands/minicmd.c: Likewise.
10994 * commands/parttool.c: Likewise.
10995 * commands/password.c: Likewise.
10996 * commands/probe.c: Likewise.
10997 * commands/read.c: Likewise.
10998 * commands/reboot.c: Likewise.
10999 * commands/search.c: Likewise.
11000 * commands/sleep.c: Likewise.
11001 * commands/test.c: Likewise.
11002 * commands/true.c: Likewise.
11003 * commands/usbtest.c: Likewise.
11004 * commands/videotest.c: Likewise.
11005 * commands/xnu_uuid.c: Likewise.
11006 * disk/loopback.c: Likewise.
11007 * hello/hello.c: Likewise.
11008 * loader/i386/bsd.c: Likewise.
11009 * term/i386/pc/serial.c: Likewise.
11010 * po/POTFILES: Add new files.
11011
da8d5c53
CW
110122010-01-02 Colin Watson <cjwatson@ubuntu.com>
11013
11014 * term/i386/pc/at_keyboard.c
11015 (keyboard_controller_wait_untill_ready): Rename to ...
11016 (keyboard_controller_wait_until_ready): ... this. Update all users.
11017
33937904 110182010-01-01 Carles Pina i Estany <carles@pina.cat>
11019
11020 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
11021 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
11022 string using string width.
11023 * normal/menu_text.c (grub_print_message_indented): Use
11024 grub_print_spaces and not print_spaces.
11025 (print_timeout): Likewise.
11026 (print_spaces): Move to...
11027 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
11028
3fd3b8d8
RM
110292010-01-01 Robert Millan <rmh.grub@aybabtu.com>
11030
11031 Import from Gnulib.
11032
11033 * gnulib/getdelim.c: New file.
11034 * gnulib/getline.c: Likewise.
11035
33433555
VS
110362009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
11037
11038 * include/grub/list.h (grub_assert_fail): Removed.
11039 (grub_bad_type_cast_real): New function.
11040 (grub_bad_type_cast): New macro.
11041 (GRUB_AS_LIST): Use grub_bad_type_cast.
11042 (GRUB_AS_LIST_P): Likewise.
e44721e8 11043 (GRUB_AS_NAMED_LIST): Likewise.
33433555 11044 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 11045 (GRUB_AS_PRIO_LIST): Likewise.
33433555 11046 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 11047 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 11048
f5a51306
VS
110492009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
11050
11051 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
11052 Fix syntax error.
11053
90d1e879
RM
110542009-12-29 Robert Millan <rmh.grub@aybabtu.com>
11055
11056 * configure.ac: Check for TARGET_CFLAGS initialization before we
11057 initialize it ourselves (sigh).
11058 Move a few modifications to TARGET_CFLAGS to be unconditional
11059 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
11060 eh_frame)
11061
11062 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
11063 * term/i386/pc/at_keyboard.c
11064 (keyboard_controller_wait_untill_ready): Likewise.
11065 (keyboard_controller_led): Rename `led_status' paramter to avoid
11066 name conflict.
11067
465b5a81 110682009-12-28 Carles Pina i Estany <carles@pina.cat>
11069
11070 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
11071 quotes.
11072
c181849b
VS
110732009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11074
11075 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
11076
9c8739a4
VS
110772009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11078
11079 * normal/menu_text.c (grub_print_message_indented): Prevent
11080 past-the-end-of-array dereference.
11081
3e74249c
VS
110822009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11083
11084 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
11085 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
11086
64fd18ed 110872009-12-27 Carles Pina i Estany <carles@pina.cat>
11088
11089 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
11090 * normal/main.c (grub_normal_read_line): Remove a space from the
11091 default prompt.
11092
714af9b9 110932009-12-27 Carles Pina i Estany <carles@pina.cat>
11094
11095 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
11096 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11097 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
11098 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
11099 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11100 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11101 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11102
82f3e412 111032009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 11104
11105 * video/readers/jpeg.c (cmd): Declare.
11106 (grub_cmd_jpegtest): Use `grub_command_t' type.
11107 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11108 Assign to `cmd'.
11109 (GRUB_MOD_FINI): Use `cmd' to unregister.
11110 * video/readers/png.c (cmd): Declare.
11111 (grub_cmd_pngtest): Use `grub_command_t' type.
11112 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11113 Assign to `cmd'.
11114 (GRUB_MOD_FINI): Use `cmd' to unregister.
11115 * video/readers/tga.c (cmd): Declare.
11116 (grub_cmd_tgatest): Use `grub_command_t' type.
11117 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11118 Assign to `cmd'.
11119 (GRUB_MOD_FINI): Use `cmd' to unregister.
11120
82f3e412 111212009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 11122
11123 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
11124 stops.
11125 * kern/corecmd.c (grub_register_core_commands): Likewise.
11126 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
11127 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
11128 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
11129 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11130 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
11131 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
11132 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
11133 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
11134 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11135 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11136 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11137 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11138 * normal/handler.c (insert_handler): Likewise.
11139 * normal/main.c (GRUB_MOD_INIT): Likewise.
11140 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
11141
fdcdbb66 111422009-12-26 Carles Pina i Estany <carles@pina.cat>
11143
11144 * commands/help.c (grub_cmd_help): Print the command name before the
11145 summary.
11146 (GRUB_MOD_INIT): Remove command name from the summary.
11147 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 11148 string as summary.
fdcdbb66 11149 * lib/arg.c (find_long): Print the command name before the summary.
11150 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
11151 summary.
11152 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
11153 * commands/cat.c (GRUB_MOD_INIT): Likewise.
11154 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
11155 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
11156 * commands/crc.c (GRUB_MOD_INIT): Likewise.
11157 * commands/date.c (GRUB_MOD_INIT): Likewise.
11158 * commands/echo.c (GRUB_MOD_INIT): Likewise.
11159 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
11160 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11161 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11162 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
11163 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
11164 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
11165 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
11166 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11167 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
11168 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
11169 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
11170 * commands/ls.c (GRUB_MOD_INIT): Likewise.
11171 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11172 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11173 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11174 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
11175 * commands/password.c (GRUB_MOD_INIT): Likewise.
11176 * commands/probe.c (GRUB_MOD_INIT): Likewise.
11177 * commands/read.c (GRUB_MOD_INIT): Likewise.
11178 * commands/search.c (GRUB_MOD_INIT): Likewise.
11179 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
11180 * commands/test.c (GRUB_MOD_INIT): Likewise.
11181 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
11182 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
11183 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
11184 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
11185 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
11186 * lib/arg.c (GRUB_MOD_INIT): Likewise.
11187 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
11188 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
11189 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11190 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11191 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
11192 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
11193 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
11194 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
11195
9c288be2
VS
111962009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11197
11198 Use search command for preliminar UUID search.
11199
11200 * commands/search.c: Split into ...
11201 * commands/search_wrap.c: ...this
11202 * commands/search.c: ...and this.
11203 * commands/search_file.c: New file.
11204 * commands/search_label.c: New file.
11205 * commands/search_uuid.c: New file.
11206 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
11207 Add commands/search_wrap.c, commands/search_file.c,
11208 commands/search_label.c and commands/search_uuid.c.
11209 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
11210 (search_mod_SOURCES): Set to commands/search_wrap.c.
11211 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
11212 search_label.mod.
11213 (search_fs_file_mod_SOURCES): New variable.
11214 (search_fs_file_mod_CFLAGS): Likewise.
11215 (search_fs_file_mod_LDFLAGS): Likewise.
11216 (search_label_mod_SOURCES): Likewise.
11217 (search_label_mod_CFLAGS): Likewise.
11218 (search_label_mod_LDFLAGS): Likewise.
11219 (search_fs_uuid_mod_SOURCES): New variable.
11220 (search_fs_uuid_mod_CFLAGS): Likewise.
11221 (search_fs_uuid_mod_LDFLAGS): Likewise.
11222 (fs_file_mod_SOURCES): Removed.
11223 (fs_file_mod_CFLAGS): Likewise.
11224 (fs_file_mod_LDFLAGS): Likewise.
11225 (fs_uuid_mod_SOURCES): Removed.
11226 (fs_uuid_mod_CFLAGS): Likewise.
11227 (fs_uuid_mod_LDFLAGS): Likewise.
11228 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
11229 Set to util/grub-install.in.
11230 * disk/fs_file.c: Removed.
11231 * disk/fs_uuid.c: Likewise.
11232 * include/grub/search.h: New file.
11233 * util/grub-install.in: Handle sparc64.
11234 Create and use load.cfg.
11235 * util/sparc64/ieee1275/grub-install.in: Removed.
11236
db943399
VS
112372009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
11240 Ignore return status if CF is cleared.
11241 (grub_biosdisk_get_diskinfo_standard): Likewise.
11242
3fdae612
RM
112432009-12-25 Robert Millan <rmh.grub@aybabtu.com>
11244
11245 * term/i386/pc/at_keyboard.c
11246 (keyboard_controller_wait_untill_ready): New function.
11247 (grub_keyboard_controller_write, grub_keyboard_controller_read)
11248 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
11249 for keyboard polling, rather than duplicate the same loop. This
11250 saves a few bytes in code size.
11251
7ebaa2b4
VS
112522009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 Support for (pxe[:server[:gateway]]) syntax and
11255 use environment variable for PXE.
11256
11257 * commands/i386/pc/pxecmd.c (options): Removed.
11258 (print_ip): Removed.
11259 (grub_cmd_pxe): Removed
11260 (grub_cmd_pxe_unload): New function.
11261 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
11262 (grub_pxe_your_ip): Made static.
11263 (grub_pxe_default_server_ip): Likewise.
11264 (grub_pxe_default_gateway_ip): Likewise.
11265 (grub_pxe_blksize): Likewise.
11266 (parse_ip): New function.
11267 (grub_pxe_open): Support server and gateway specification.
11268 (grub_pxe_close): Free disk->data.
11269 (grub_pxefs_open): Use disk->data.
11270 (grub_pxefs_read): Likewise.
11271 (grub_env_write_readonly): New function.
11272 (set_mac_env): Likewise.
11273 (set_env_limn_ro): Likewise.
11274 (parse_dhcp_vendor): Likewise.
11275 (grub_pxe_detect): Set the environment variables.
11276 (set_ip_env): New function.
11277 (write_ip_env): Likewise.
11278 (grub_env_write_pxe_default_server): Likewise.
11279 (grub_env_write_pxe_default_gateway): Likewise.
11280 (grub_env_write_pxe_blocksize): Likewise.
11281 (GRUB_MOD_INIT(pxe)): Set environment variables.
11282 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
11283 (grub_pxe_mac_addr_t): ... this. All users updated.
11284 (grub_pxe_your_ip): Removed.
11285 (grub_pxe_server_ip): Likewise.
11286 (grub_pxe_gateway_ip): Likewise.
11287 (grub_pxe_blksize): Likewise.
11288
ec5f98ab 112892009-12-25 Carles Pina i Estany <carles@pina.cat>
11290
11291 * commands/help.c: Include `<grub/i18n.h>'.
11292 (grub_cmd_help): Gettextizze.
11293 (GRUB_MOD_INIT): Likewise.
11294 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
11295 (GRUB_MOD_INIT): Gettextizze.
11296 * commands/search.c: Include `<grub/i18n.h>'.
11297 (options): Gettextizze.
11298 (GRUB_MOD_INIT): Gettextizze.
11299 * lib/arg.c: Include `<grub/i18n.h>'.
11300 (help_options): Gettextizze.
11301 (find_long): Likewise.
11302 (grub_arg_show_help): Likewise.
11303 * normal/dyncmd.c: Include `<grub/i18n.h>'.
11304 (read_command_list): Gettextizze.
11305 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 11306 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 11307
22815526
RM
113082009-12-25 Robert Millan <rmh.grub@aybabtu.com>
11309
11310 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
11311 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
11312 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
11313 (led_status): New variable.
11314 (keyboard_controller_led): New function.
11315 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
11316 update led status for caps lock, num lock and scroll lock.
11317
0ad46fd7
FZ
113182009-12-25 Felix Zielcke <fzielcke@z-51.de>
11319
11320 * util/hostdisk.c (open_device): Fix a comment.
11321
d0e158c2
RM
113222009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11323
11324 * util/grub-install.in (host_os): New variable.
11325 * util/i386/efi/grub-install.in (host_os): Likewise.
11326
401c0ad6
RM
113272009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11328
11329 * util/mkisofs/write.c (padblock_write): Abort when given an
11330 excedingly large embed image, instead of silently truncating it.
11331
d14d3370
RM
113322009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11333
11334 * include/multiboot.h: Indentation fixes.
11335
eeed10b4
RM
113362009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11337
11338 * include/multiboot.h (struct multiboot_aout_symbol_table)
11339 (struct multiboot_elf_section_header_table): New structure
11340 declarations (stolen from GRUB Legacy).
11341 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
11342 table information.
11343
11344 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
11345 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
11346 type aliases.
11347
681c70ab
RM
113482009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11349
11350 * include/multiboot.h: Make comments src2texi-friendly.
11351
e4d47d8d
RM
113522009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11353
11354 For consistency with [multiboot]/docs/boot.S.
11355
11356 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
11357 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
11358 (MULTIBOOT_MAGIC2): Rename from this ...
11359 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
11360
a0b70bda
RM
113612009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11362
11363 * include/multiboot.h: Remove `<grub/types.h>'.
11364 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
11365 types. Update all users.
11366
61ba42be 113672009-12-25 Carles Pina i Estany <carles@pina.cat>
11368
11369 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
11370 `couldn't' and `can not' by `cannot'.
11371 * commands/i386/pc/drivemap.c: Likewise.
11372 * disk/ata.c: Likewise.
11373 * disk/ieee1275/nand.c: Likewise.
11374 * fs/affs.c: Likewise.
11375 * fs/fat.c: Likewise.
11376 * fs/hfs.c: Likewise.
11377 * fs/hfsplus.c: Likewise.
11378 * fs/iso9660.c: Likewise.
11379 * fs/jfs.c: Likewise.
11380 * fs/minix.c: Likewise.
11381 * fs/reiserfs.c: Likewise.
11382 * fs/sfs.c: Likewise.
11383 * fs/udf.c: Likewise.
11384 * fs/ufs.c: Likewise.
11385 * fs/xfs.c: Likewise.
11386 * loader/powerpc/ieee1275/linux.c: Likewise.
11387 * loader/sparc64/ieee1275/linux.c: Likewise.
11388 * util/grub-probe.c: Likewise.
11389 * util/misc.c: Likewise.
11390
7fd0baee 113912009-12-24 Carles Pina i Estany <carles@pina.cat>
11392
11393 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
11394 grub_errno calls.
11395 * commands/acpi.c: Likewise.
11396 * commands/blocklist.c: Likewise.
11397 * commands/efi/loadbios.c: Likewise.
11398 * commands/i386/pc/drivemap.c: Likewise.
11399 * commands/loadenv.c: Likewise.
11400 * commands/memrw.c: Likewise.
11401 * commands/password.c: Likewise.
11402 * commands/videotest.c: Likewise.
11403 * disk/ata.c: Likewise.
11404 * disk/ata_pthru.c: Likewise.
11405 * disk/dmraid_nvidia.c: Likewise.
11406 * disk/ieee1275/nand.c: Likewise.
11407 * disk/ieee1275/ofdisk.c: Likewise.
11408 * disk/loopback.c: Likewise.
11409 * disk/lvm.c: Likewise.
11410 * disk/mdraid_linux.c: Likewise.
11411 * disk/raid.c: Likewise.
11412 * disk/raid6_recover.c: Likewise.
11413 * disk/scsi.c: Likewise.
11414 * efiemu/main.c: Likewise.
11415 * efiemu/mm.c: Likewise.
11416 * efiemu/pnvram.c: Likewise.
11417 * efiemu/symbols.c: Likewise.
11418 * font/font.c: Likewise.
11419 * fs/cpio.c: Likewise.
11420 * fs/hfsplus.c: Likewise.
11421 * fs/iso9660.c: Likewise.
11422 * fs/jfs.c: Likewise.
11423 * fs/minix.c: Likewise.
11424 * fs/ntfs.c: Likewise.
11425 * fs/ntfscomp.c: Likewise.
11426 * fs/reiserfs.c: Likewise.
11427 * fs/ufs.c: Likewise.
11428 * fs/xfs.c: Likewise.
11429 * gettext/gettext.c: Likewise.
11430 * include/grub/auth.h: Likewise.
11431 * kern/elf.c: Likewise.
11432 * kern/file.c: Likewise.
11433 * kern/ieee1275/init.c: Likewise.
11434 * kern/ieee1275/mmap.c: Likewise.
11435 * kern/ieee1275/openfw.c: Likewise.
11436 * kern/powerpc/dl.c: Likewise.
11437 * kern/sparc64/dl.c: Likewise.
11438 * lib/arg.c: Likewise.
11439 * loader/i386/bsd.c: Likewise.
11440 * loader/i386/bsdXX.c: Likewise.
11441 * loader/i386/efi/linux.c: Likewise.
11442 * loader/i386/efi/xnu.c: Likewise.
11443 * loader/i386/ieee1275/linux.c: Likewise.
11444 * loader/i386/linux.c: Likewise.
11445 * loader/i386/multiboot.c: Likewise.
11446 * loader/i386/pc/linux.c: Likewise.
11447 * loader/i386/pc/multiboot2.c: Likewise.
11448 * loader/i386/xnu.c: Likewise.
11449 * loader/ieee1275/multiboot2.c: Likewise.
11450 * loader/macho.c: Likewise.
11451 * loader/machoXX.c: Likewise.
11452 * loader/multiboot2.c: Likewise.
11453 * loader/multiboot_loader.c: Likewise.
11454 * loader/powerpc/ieee1275/linux.c: Likewise.
11455 * loader/sparc64/ieee1275/linux.c: Likewise.
11456 * loader/xnu.c: Likewise.
11457 * loader/xnu_resume.c: Likewise.
11458 * mmap/i386/pc/mmap.c: Likewise.
11459 * normal/menu_viewer.c: Likewise.
11460 * partmap/acorn.c: Likewise.
11461 * partmap/amiga.c: Likewise.
11462 * partmap/apple.c: Likewise.
11463 * script/lexer.c: Likewise.
11464 * term/gfxterm.c: Likewise.
11465 * term/i386/pc/serial.c: Likewise.
11466 * term/i386/pc/vga.c: Likewise.
11467 * term/ieee1275/ofconsole.c: Likewise.
11468 * term/terminfo.c: Likewise.
11469 * video/bitmap.c: Likewise.
11470 * video/efi_gop.c: Likewise.
11471 * video/efi_uga.c: Likewise.
11472 * video/fb/video_fb.c: Likewise.
11473 * video/i386/pc/vbe.c: Likewise.
11474 * video/readers/tga.c: Likewise.
11475 * video/video.c: Likewise.
11476
0ad46fd7 114772009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
11478
11479 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
11480 * commands/lspci.c: Likewise.
11481 * commands/probe.c: Likewise.
11482 * commands/xnu_uuid.c: Likewise.
11483 * conf/i386-coreboot.rmk: Likewise.
11484 * conf/i386-efi.rmk: Likewise.
11485 * conf/i386-ieee1275.rmk: Likewise.
11486 * conf/i386-pc.rmk: Likewise.
11487 * conf/powerpc-ieee1275.rmk: Likewise.
11488 * conf/sparc64-ieee1275.rmk: Likewise.
11489 * conf/x86_64-efi.rmk: Likewise.
11490 * fs/i386/pc/pxe.c: Likewise.
11491 * gettext/gettext.c: Likewise.
11492 * include/grub/efi/graphics_output.h: Likewise.
11493 * include/grub/i386/pc/memory.h: Likewise.
11494 * kern/env.c: Likewise.
11495 * kern/i386/qemu/startup.S: Likewise.
11496 * lib/i386/pc/biosnum.c: Likewise.
11497 * lib/i386/relocator.c: Likewise.
11498 * lib/i386/relocator_asm.S: Likewise.
11499 * lib/relocator.c: Likewise.
11500 * loader/i386/bsd.c: Likewise.
11501 * loader/i386/multiboot.c: Likewise.
11502 * loader/i386/pc/chainloader.c: Likewise.
11503 * loader/i386/xnu.c: Likewise.
11504 * loader/xnu.c: Likewise.
11505 * normal/main.c: Likewise.
11506 * normal/menu_text.c: Likewise.
11507 * util/getroot.c: Likewise.
11508 * util/grub-mkconfig_lib.in: Likewise.
11509 * util/grub.d/00_header.in: Likewise.
11510 * util/i386/pc/grub-mkimage.c: Likewise.
11511 * util/mkisofs/eltorito.c: Likewise.
11512 * util/mkisofs/exclude.h: Likewise.
11513 * util/mkisofs/hash.c: Likewise.
11514 * util/mkisofs/iso9660.h: Likewise.
11515 * util/mkisofs/joliet.c: Likewise.
11516 * util/mkisofs/mkisofs.c: Likewise.
11517 * util/mkisofs/mkisofs.h: Likewise.
11518 * util/mkisofs/multi.c: Likewise.
11519 * util/mkisofs/name.c: Likewise.
11520 * util/mkisofs/rock.c: Likewise.
11521 * util/mkisofs/tree.c: Likewise.
11522 * util/mkisofs/write.c: Likewise.
11523 * video/efi_gop.c: Likewise.
11524
009ec743
VS
115252009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11526
11527 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
11528 size counting.
11529
0ad46fd7 115302009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
11531
11532 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
11533 * genmk.rb (class SCRIPT): Modify the target file instead of source.
11534
d3d30ea0
VS
115352009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11536
11537 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
11538 (GRUB_MOD_INIT(memrw)): Update help line.
11539
a34f5c70
VS
115402009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
11543 Use grub_extcmd_t. All users updated.
11544 (options): New variable.
11545 (grub_cmd_read): Restructure for readability. Support "-v" option.
11546 (grub_cmd_write): Restructure for readability.
11547
0ad46fd7 115482009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
11549
11550 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
11551
0ad46fd7 115522009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
11553
11554 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
11555 with the actual contents of the correspondending make variable.
11556 * util/grub-mkrescue.in (pkglib_DATA): New variable.
11557 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
11558 specifying `*.lst' and `efiemu??.o'
11559
0ad46fd7 115602009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
11561
11562 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
11563 after function name.
11564 Noticed by Rene Engelhard <rene@debian.org>.
11565
dc77a799
VS
115662009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11567
11568 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
11569 (options): New variable.
11570 (iospace): Likewise.
11571 (grub_lspci_iter): List IO spaces if "-i" was given.
11572 (grub_cmd_lspci): Parse options.
11573 (GRUB_MOD_INIT(lspci)): Use extcmd.
11574 (GRUB_MOD_FINI(lspci)): Likewise.
11575
0ad46fd7 115762009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
11577
11578 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
11579 `function' keyword.
11580 Patch by Tony Mancill <tmancill@debian.org>.
11581
b5d5993b
VS
115822009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11583
11584 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
11585 (grub_uhci_portstatus): Likewise.
11586 (grub_uhci_portstatus): Add necessary delay.
11d18281 11587 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 11588
941903f2 115892009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 11590
941903f2 11591 * commands/acpi.c (options): Fix capitalizations and/or full stops.
11592 (GRUB_MOD_INIT): Likewise.
11593 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 11594 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
11595 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 11596 * commands/efi/loadbios.c (enable_rom_area): Likewise.
11597 (enable_rom_area): Likewise.
11598 (GRUB_MOD_INIT): Likewise.
11599 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11600 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
11601 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11602 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
11603 * commands/hexdump.c (options): Likewise.
11604 * commands/i386/cpuid.c (options): Likewise.
11605 (GRUB_MOD_INIT): Likewise.
11606 * commands/i386/pc/drivemap.c (options): Likewise.
11607 (GRUB_MOD_INIT): Likewise.
11608 * commands/i386/pc/halt (options): Likewise.
11609 (GRUB_MOD_INIT): Likewise.
11610 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11611 * commands/i386/pc/pxecmd.c (options): Likewise.
11612 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
11613 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
11614 * commands/keystatus.c (options): Likewise.
11615 (GRUB_MOD_INIT): Likewise.
11616 * commands/loadenv.c (options): Likewise.
11617 * commands/ls.c (options): Likewise.
11618 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11619 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11620 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11621 * commands/parttool.c (helpmsg): Likewise.
11622 * commands/probe.c (options): Likewise.
11623 * commands/read.c (GRUB_MOD_INIT): Likewise.
11624 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
11625 * commands/search.c (options): Likewise.
11626 * commands/sleep.c (options): Likewise.
11627 * commands/test.c (GRUB_MOD_INIT): Likewise.
11628 * commands/true.c (GRUB_MOD_INIT): Likewise.
11629 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
11630 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
11631 * lib/arg.c (help_options): Likewise.
e9bbb4e7 11632 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
11633 `$(XGETTEXT)'.
98a50553 11634 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 11635
0ad46fd7 116362009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 11637
ef3c2c3a 11638 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
11639 instead of specifying them explicit.
11640
7922f68b
RM
116412009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11642
11643 * NEWS: Add grub-probe support for GNU/Hurd.
11644
537ce47f
RM
116452009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11646
11647 * NEWS: gettext was added after 1.97.
11648
9b214e3a
RM
116492009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11650
11651 * util/mkisofs/msdos_partition.h: New file (based on
11652 include/grub/msdos_partition.h).
11653 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
11654 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
11655 (ld_options, main): Recognize --protective-msdos-label.
11656 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
11657 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
11658 (padblock_write): If `use_protective_msdos_label' is set, patch a
11659 protective DOS-style label in the output image.
11660
11661 * util/grub-mkrescue.in: Use --protective-msdos-label.
11662
e9309813
RM
116632009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11664
11665 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
11666 boot.
11667
0ae56929
RM
116682009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11669
11670 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
11671 variables.
11672 (ld_options, main): Recognize `--embedded-boot'.
11673 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
11674 declarations.
11675 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
11676 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
11677 (padblock_write): Likewise. Rewrite to support embedded boot image.
11678
11679 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
11680 for BIOS-based disk boot instead of only ElTorito.
11681
b15937b1
RM
116822009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11683
11684 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
11685 build (not needed for bootstrap).
11686
52cc3ce0
RM
116872009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11688
11689 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
11690 from i386-pc build (not needed for bootstrap).
11691 Rewrite a pair of strings.
11692
36f5ff04
RM
116932009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11694
11695 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
11696
973c6c85 116972009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
11698
11699 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
11700
05d21547
AB
117012009-12-21 Andreas Born <futur.andy@googlemail.com>
11702
11703 * kern/env.c (grub_env_context_open): Mark exported variable for
11704 reexport.
11705
0175d51f
AB
117062009-12-21 Andreas Born <futur.andy@googlemail.com>
11707
11708 * kern/env.c (grub_env_export): Create nonexistent variables before
11709 exporting.
11710
7f39d92f 117112009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 11712
7f39d92f 11713 * include/grub/auth.h: Include `<grub/i18n.h>'.
11714 (GRUB_GET_PASSWORD): Gettextizze string.
11715 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
11716 menu_text.c.
11717 (grub_utf8_to_ucs4_alloc): Fix indentation.
11718 (grub_print_ucs4): Likewise.
11719 (grub_getstringwidth): Likewise.
11720 (print_message_indented): New declaration.
11721 * normal/auth.c: Include `<grub/i18n.h>'.
11722 (grub_auth_check_authentication): Gettexttize string.
11723 * normal/cmdline.c: Include `<grub/i18n.h>'.
11724 (grub_cmdline_get): Gettextizze.
11725 * normal/color.c: Include `<grub/i18n.h>'.
11726 (grub_parse_color_name_pair): Gettexttize strings.
11727 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
11728 string (use `print_message_indented').
11729 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
11730 `include/grub/normal.h'.
11731 (print_message_indented): Renamed to ...
11732 (grub_print_message_indented): ... this. Remove `static' qualifer (now
11733 used in normal/main.c).
11734 (print_message): Use `grub_print_message_indented' instead of
11735 `print_message_indented'.
11736 (print_timeout): Likewise.
11737 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
11738 (grub_normal_print_device_info): Gettexttize strings.
11739 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
11740
3041d898
VS
117412009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11742
11743 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
11744 of arguments. Return number of tokens and not arguments. All users
11745 updated.
11746
de15bf8e
VS
117472009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11748
11749 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
11750 non-MSDOS paritions.
11751
e0a6ca52
VS
117522009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
11753
11754 * include/grub/types.h (UNUSED): Removed since it conflicts with
11755 NetBSD headers. All users changed to direct __attribute__ ((unused)).
11756 Reported by Grégoire Sutre.
11757
b99518d1 117582009-12-19 Carles Pina i Estany <carles@pina.cat>
11759
11760 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
11761 (grub_print_ucs4_alloc): Likewise.
11762 (grub_getstringwidth): Likewise.
11763 * normal/main.c (grub_normal_init_page): Gettextize version string.
11764 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
11765 (getstringwidth): Renamed to ...
11766 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
11767 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
11768 (grub_print_ucs4): Remove `static' qualifer (now used in
11769 normal/main.c).
11770 * po/POTFILES: Add normal/main.c.
11771
bfd5e52b 117722009-12-19 Carles Pina i Estany <carles@pina.cat>
11773
11774 * normal/menu_text.c (STANDARD_MARGIN): New macro.
11775 (print_message_indented): Add `margin_left' and `margin_right'
11776 parameters.
11777 (print_message): Update `print_message_indented' calls. Adds '\n' to the
11778 strings.
11779 (print_timeout): Use `print_message_indented' to print the message.
11780 Deletes `second_stage' parameter.
11781 (run_menu): Update `print_timeout' calls.
11782
5a1ad2b9
VS
117832009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11784
11785 Fix console palette on OpenFirmware.
11786
11787 * term/ieee1275/ofconsole.c (MAX): Removed.
11788 (colors): Redone based on VGA palette.
11789 (grub_ofconsole_setcolor): Discard brightness bit since only 8
11790 colors are supported.
11791 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
11792
b045f00a
VS
117932009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11794
11795 Fix potential EfiEmu double prepare.
11796
11797 * efiemu/main.c (prepared): New variable
11798 (grub_efiemu_unload): Set prepare to '0'.
11799 (grub_efiemu_prepare): Return if already prepared. Set prepared.
11800
11801 set_virtual_address_map support.
11802
11803 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
11804 prototype.
11805 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
11806 prototype.
11807 (grub_efiemu_crc32): Likewise.
11808 (grub_efiemu_crc64): Likewise.
11809 (grub_efiemu_set_virtual_address_map): Likewise.
11810 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
11811 New definition.
11812 (grub_autoefi_set_virtual_address_map): Likewise.
11813 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
11814 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
11815 Restructure flow to accomodate it.
11816 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
11817 (grub_efiemu_crc): Recompute CRC32.
11818 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
11819 (efiemu_ptv_relocated): ... this. Made global. All users updated.
11820 * efiemu/symbols.c (relocated_handle): New variable.
11821 (grub_efiemu_free_syms): Free relocated_handle.
11822 (grub_efiemu_alloc_syms): Allocate relocated_handle.
11823 (grub_efiemu_write_sym_markers): New function.
11824 (grub_efiemu_set_virtual_address_map): Likewise.
11825
11826 Newer XNU parameters.
11827
11828 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
11829 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
11830 (grub_xnu_fill_devicetree): New prototype.
11831 (grub_xnu_heap_real_start): New variable.
11832 * loader/xnu.c (get_name_ptr): New function.
11833 (grub_xnu_load_driver): Fill namelen and name.
11834
11835 64-bit xnu support.
11836
11837 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
11838 and 'loader/macho64.c'.
11839 * conf/i386-pc.rmk: Likewise.
11840 * conf/x86_64-efi.rmk: Likewise.
11841 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
11842 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
11843 * include/grub/macho.h (grub_macho_segment64): New structure.
11844 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
11845 (grub_macho_size32): ... to this.
11846 (grub_macho32_get_entry_point): Renamed from ...
11847 (grub_macho_get_entry_point32): ... to this.
11848 (grub_macho_contains_macho64): New prototype.
11849 (grub_macho_size64): Likewise.
11850 (grub_macho_get_entry_point64): Likewise.
11851 (grub_macho32_load): Renamed from ...
11852 (grub_macho_load32): ... to this.
11853 (grub_macho32_filesize): Renamed from ...
11854 (grub_macho_filesize32): ... to this.
11855 (grub_macho32_readfile): Renamed from ...
11856 (grub_macho_readfile32): ... to this.
11857 (grub_macho_filesize64): New prototype.
11858 (grub_macho_readfile64): Likewise.
11859 (grub_macho_parse32): Likewise.
11860 (grub_macho_parse64): Likewise.
11861 * loader/macho.c: Split into ...
11862 * loader/machoXX.c: ... and this. Replace 32 with XX.
11863 * loader/macho32.c: New file.
11864 * loader/macho64.c: Likewise.
11865 * loader/xnu.c (grub_xnu_is_64bit): New variable.
11866 (grub_cmd_xnu_kernel): Make 32-bit only.
11867 (grub_cmd_xnu_kernel64): New function.
11868 (grub_xnu_load_driver): Support Mach-O 64.
11869 (grub_cmd_xnu_mkext): Likewise.
11870 * util/grub.d/30_os-prober.in (osx_entry): New function.
11871 Generate entries for 64-bit boot too.
11872
11873 Eliminate ad-hoc tree format in XNU and EfiEmu.
11874
11875 * efiemu/main.c (grub_efiemu_prepare): Update comment.
11876 * efiemu/pnvram.c: Rewritten to use environment variables.
11877 All users updated.
11878
11879 Inline utf16_to_utf8.
11880
11881 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
11882 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
11883 All users updated.
11884 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
11885
11886 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
11887 * commands/usbtest.c (grub_usb_get_string): ... move here.
11888 (usb_print_str): Fix error handling.
11889 * include/grub/usb.h (grub_usb_get_string): Remove.
11890
11891 UTF-8 to UTF-16 transformation.
11892
11893 * conf/common.rmk (pkglib_MODULES): Add charset.mod
11894 (charset_mod_SOURCES): New variable.
11895 (charset_mod_CFLAGS): Likewise.
11896 (charset_mod_LDFLAGS): Likewise.
11897 * include/grub/utf.h: New file.
11898 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
11899
11900 Support for device properties.
11901
11902 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
11903 (grub_xnu_devprop_device_header): Likewise.
11904 (grub_xnu_devprop_device_descriptor): Likewise.
11905 (grub_xnu_devprop_add_device): New prototype.
11906 (grub_xnu_devprop_remove_device): Likewise.
11907 (grub_xnu_devprop_remove_property): Likewise.
11908 (grub_xnu_devprop_add_property_utf8): Likewise.
11909 (grub_xnu_devprop_add_property_utf16): Likewise.
11910 (grub_cpu_xnu_init): Likewise.
11911 (grub_cpu_xnu_fini): Likewise.
11912 (grub_cpu_xnu_unload): Likewise.
11913 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
11914 (property_descriptor): Likewise.
11915 (devices): New variable.
11916 (grub_xnu_devprop_remove_property): New function.
11917 (grub_xnu_devprop_add_device): Likewise.
11918 (grub_xnu_devprop_remove_device): Likewise.
11919 (grub_xnu_devprop_add_property): Likewise.
11920 (grub_xnu_devprop_add_property_utf8): Likewise.
11921 (grub_xnu_devprop_add_property_utf16): Likewise.
11922 (hextoval): Likewise.
11923 (grub_cpu_xnu_fill_devprop): Likewise.
11924 (grub_cmd_devprop_load): Likewise.
11925 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
11926 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
11927 (cmd_devprop_load): New variable.
11928 (grub_cpu_xnu_init): New function.
11929 (grub_cpu_xnu_fini): Likewise.
11930 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
11931 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
11932 (grub_cmd_xnu_devtree): Likewise.
11933 (hextoval): New function.
11934 (unescape): Likewise.
11935 (grub_xnu_fill_devicetree): Likewise.
11936
11937 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
11938 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
11939
0945f181
VS
119402009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11941
11942 Workaround for broken ATI VBE.
11943
11944 * video/i386/pc/vbe.c (last_set_mode): New variable.
11945 (grub_vbe_set_video_mode): Set 'last_set_mode'.
11946 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
11947 (grub_video_vbe_setup): Don't check for reserved flag.
11948
0ad46fd7 119492009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
11950
11951 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
11952 the `find' command.
11953
c179ebe4
VS
119542009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11955
11956 UUID support for HFS.
11957
11958 * fs/hfs.c (grub_hfs_uuid): New function.
11959 (grub_hfs_fs): New value .uuid.
11960 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
11961
0ad46fd7 119622009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
11963
11964 Fix a segfault with parsing unknown long options.
11965
11966 * util/grub-mkrelpath.c (options): Zero terminate it.
11967
c4a3e41a
CPE
119682009-12-13 Carles Pina i Estany <carles@pina.cat>
11969
11970 * include/grub/misc.h (grub_puts): New declaration.
11971 (grub_puts_): Likewise.
a22008a6 11972 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
11973 (grub_puts_): Likewise.
11974
2e8a7602
RM
119752009-12-13 Robert Millan <rmh.grub@aybabtu.com>
11976
11977 * util/grub-probe.c (probe): Improve error message.
11978
b50b77b9
RM
119792009-12-13 Robert Millan <rmh.grub@aybabtu.com>
11980
11981 * loader/i386/multiboot_elfxx.c
11982 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
11983 initialization.
11984
119852009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11986
11987 Relocator framework
11988
11989 * loader/i386/xnu_helper.S: Removed. All users updated.
11990 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
11991 (relocator_mod_SOURCES): New variable.
11992 (relocator_mod_CFLAGS): Likewise.
11993 (relocator_mod_LDFLAGS): Likewise.
11994 (relocator_mod_ASFLAGS): Likewise.
11995 * conf/x86_64.rmk: Likewise.
11996 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
11997 (grub_multiboot_payload_entry_offset): Likewise.
11998 (grub_multiboot_forward_relocator): Likewise.
11999 (grub_multiboot_forward_relocator_end): Likewise.
12000 (grub_multiboot_backward_relocator): Likewise.
12001 (grub_multiboot_backward_relocator_end): Likewise.
12002 (grub_multiboot_payload_eip): New variable.
12003 (grub_multiboot_payload_orig): Likewise.
12004 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
12005 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
12006 * include/grub/i386/memory.h
12007 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
12008 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
12009 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
12010 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
12011 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
12012 * include/grub/i386/relocator.h: New file.
12013 * include/grub/x86_64/relocator.h: Likewise.
12014 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
12015 (XNU_RELOCATOR): New macro.
12016 (grub_xnu_launcher_start): Remove.
12017 (grub_xnu_launcher_end): Likewise.
12018 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
12019 (grub_xnu_heap_real_start): Remove.
12020 (grub_xnu_heap_start): Change to void *. All users updated.
12021 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
12022 * lib/i386/relocator.c: New file.
12023 * lib/i386/relocator_asm.S: Likewise.
12024 * lib/i386/relocator_backward.S: Likewise.
12025 * lib/mips/relocator.c: Likewise.
12026 * lib/mips/relocator_asm.S: Likewise.
12027 * lib/relocator.c: Likewise.
12028 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
12029 (entry): Removed.
12030 (playground): Likewise.
12031 (grub_multiboot_payload_orig): New variable.
12032 (grub_multiboot_payload_dest): Likewise.
12033 (grub_multiboot_payload_size): Likewise.
12034 (grub_multiboot_payload_eip): Likewise.
12035 (grub_multiboot_payload_esp): Likewise.
12036 (grub_multiboot_boot): Use grub_relocator32_boot.
12037 (grub_multiboot_unload): Free relocators.
12038 (grub_multiboot): Setup stack. Use relocators.
12039 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
12040 (grub_multiboot_load_elfXX): Use relocators.
12041 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
12042 (grub_multiboot_payload_size): Likewise.
12043 (grub_multiboot_payload_dest): Likewise.
12044 (grub_multiboot_payload_entry_offset): Likewise.
12045 (grub_multiboot_forward_relocator): Likewise.
12046 (grub_multiboot_backward_relocator): Likewise.
12047 (grub_multiboot_real_boot): Likewise.
12048 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
12049 (grub_xnu_entry_point): Likewise.
12050 (grub_xnu_arg1): Likewise.
12051 (grub_xnu_stack): Likewise.
12052 (grub_xnu_launch): Removed.
12053 (grub_xnu_boot_resume): New function.
12054 (grub_xnu_boot): Use relocators.
12055 * loader/i386/xnu_helper.S: Removed.
12056 * loader/xnu.c (grub_xnu_heap_start): New variable.
12057 (grub_xnu_heap_size): Likewise.
12058 (grub_xnu_heap_malloc): Use relocators.
12059 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
12060
29eb90c6
VS
120612009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12062
12063 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
12064 anything.
12065
31027430
CPE
120662009-12-13 Carles Pina i Estany <carles@pina.cat>
12067
12068 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
12069 GRUB_ERR_NONE before calling grub_env_set.
12070
dc0c71d9
RM
120712009-12-12 Robert Millan <rmh@aybabtu.com>
12072
12073 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
12074 * genmk.rb (video): New variable.
12075 (CLEANFILES, VIDEOFILES): Add #{video}.
12076 (#{video}): New target rule.
12077 * genvideolist.sh: New file.
12078 * Makefile.in (pkglib_DATA): Add video.lst.
12079 (video.lst): New target rule.
12080 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
12081 `video.lst'.
12082 * util/grub.d/30_os-prober.in: Replace `vbe' with
12083 ${GRUB_VIDEO_BACKEND}.
12084
2a4bfcf0
RM
120852009-12-11 Robert Millan <rmh.grub@aybabtu.com>
12086
12087 * THANKS: Add David Miller.
12088
2a3aa4d5
RM
120892009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
12090
12091 libpciaccess support.
12092
12093 * Makefile.in (LIBPCIACCESS): New variable.
12094 (enable_grub_emu_pci): Likewise.
12095 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
12096 util/pci.c and commands/lspci.c.
12097 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
12098 * configure.ac (grub-emu-pci): New option.
12099 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
12100 (grub_pci_device_unmap_range): Likewise.
12101 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
12102 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
12103 (grub_pci_address_t) [!GRUB_UTIL]: New type.
12104 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
12105 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
12106 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
12107 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
12108 * include/grub/pciutils.h: New file.
12109 * util/pci.c: Likewise.
12110
0ad46fd7 121112009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
12112
12113 * util/misc.c: Don't include <errno.h> twice.
12114
0ad46fd7 121152009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
12116
12117 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
12118 name in an error message.
12119 (grub_biosdisk_rw): Likewise.
12120
2e59983c
VS
121212009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12122
12123 Eliminate NTFS 4Gib barrier.
12124
12125 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
12126 (read_run_data): Likewise.
12127 (grub_ntfs_read_run_list): Likewise.
12128 (grub_ntfs_read_block): Likewise.
12129 (grub_ntfs_iterate_dir): Likewise.
12130 (read_mft): Likewise.
12131 (read_data): Likewise.
12132 Use COM_LOG_LEN.
12133 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
12134 to avoid 64-bit division
12135 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
12136 (grub_ntfs_rlst): Use grub_disk_addr_t.
12137
71ee178a
VS
121382009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12139
12140 Eliminate grub-fstest 4Gib barrier.
12141
12142 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
12143 (read_file): Fix error reporting.
12144
2520d4b8
VS
121452009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12146
12147 Eliminate hexdump 4Gib barrier.
12148
12149 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
12150 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
12151
e1f27065
VS
121522009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12153
12154 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
12155 Fixes amarsh bug.
12156
1a0f7f45
RM
121572009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
12158
12159 Remove miscellaneous files in distclean target.
12160
12161 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
12162
c631d9fb
CW
121632009-12-09 Colin Watson <cjwatson@ubuntu.com>
12164
12165 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
12166 if they're already set. This resolves the conflict between my
12167 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
12168 fixing the --grub-probe option again.
12169 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
12170 change on 2009-10-06, so that we now once again source
12171 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
12172
7c7b6106
RM
121732009-12-08 Robert Millan <rmh.grub@aybabtu.com>
12174
12175 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
12176 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
12177 `util/devicemap.c'.
12178
e3069ec1
CPE
121792009-12-08 Carles Pina i Estany <carles@pina.cat>
12180
12181 * include/grub/misc.h (grub_printf_): New declaration.
12182 * kern/misc.c (grub_printf_): New definition.
12183 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
12184 instead of `grub_printf' and `_'.
12185 * normal/menu_entry.c (store_completion): Likewise.
12186 (run): Likewise.
12187 (grub_menu_entry_run): Likewise.
12188 * normal/menu_text.c (grub_wait_after_message): Likewise.
12189 (notify_booting): Likewise.
12190 (notify_fallback): Likewise.
12191 (notify_execution_failure): Likewise.
12192
d6ceebf1
CW
121932009-12-07 Colin Watson <cjwatson@ubuntu.com>
12194
12195 * configure.ac: Check for vasprintf.
12196 * util/misc.c (asprintf): Move allocation from here ...
12197 (vasprintf): ... to here. New function.
12198 (xasprintf): New function.
12199 * include/grub/util/misc.h (vasprintf, xasprintf): Add
12200 prototypes.
12201 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
12202 * util/grub-mkfont.c (write_font): Likewise.
12203 * util/grub-probe.c (probe): Likewise.
12204 * util/hostdisk.c (make_device_name): Likewise.
12205
de6daa8b
DM
122062009-12-06 David S. Miller <davem@sunset.davemloft.net>
12207
12208 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
12209 anything even prefixed with 'cdrom' as a cdrom.
12210
0ad46fd7 122112009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
12212
12213 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
12214 mount points.
12215
98d3dc02
CPE
122162009-12-05 Carles Pina i Estany <carles@pina.cat>
12217
12218 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
12219 grub_gettext_msg_list.
12220 (grub_gettext_gettranslation_from_position): Return const char *
12221 and not char *.
a2c1332b 12222 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
12223 returns from the list if existing there.
12224 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
12225 (grub_gettext_delete_list): Delete the list.
12226 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
12227 lang environment variable is changed.
12228 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
12229
b283f108
VS
122302009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
12231
12232 Rename kernel.mod to kernel.img.
12233
12234 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
12235 (kernel_mod_EXPORTS): Rename to ...
12236 (kernel_img_EXPORTS): ... this.
12237 (kernel_mod_SOURCES): Rename to ...
12238 (kernel_img_SOURCES): ... this.
12239 (kernel_mod_HEADERS): Rename to ...
12240 (kernel_img_HEADERS): ... this. All users updated.
12241 (kernel_mod_CFLAGS): Rename to ...
12242 (kernel_img_CFLAGS): ... this.
12243 (kernel_mod_ASFLAGS): Rename to ...
12244 (kernel_img_ASFLAGS): ... this.
12245 (kernel_mod_LDFLAGS): Rename to ...
12246 (kernel_img_LDFLAGS): ... this.
12247 * conf/x86_64-efi.rmk: Likewise.
12248 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
12249 (read_kernel_image): ... this. All users updated.
12250 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
12251
69055f8a
CPE
122522009-12-05 Carles Pina i Estany <carles@pina.cat>
12253
12254 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
12255 (print_spaces): New function.
12256 (grub_print_ucs4): New function.
12257 (getstringwidth): New function.
12258 (print_message_indented): New function.
12259 (print_message): Gettexttize strings using print_message_indented.
12260 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
12261 width.
12262 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 12263 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
12264 Gettextize.
12265 * normal/menu_entry.c (store_completion): Cleanup the gettextized
12266 string.
12267 (run): Likewise.
12268 (grub_menu_entry_run): Likewise.
12269 * PO/POTFILES: Add normal/menu_entry.c.
12270
f616f51c
VS
122712009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
12272
12273 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
12274
57bbe3be
CPE
122752009-12-05 Carles Pina i Estany <carles@pina.cat>
12276
12277 * util/grub-install.in: Install gettext .mo files.
12278 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
12279
013d67a1
CPE
122802009-12-05 Carles Pina i Estany <carles@pina.cat>
12281
12282 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
12283 grub_dprintf.
12284
fb954db0
RM
122852009-12-05 Robert Millan <rmh.grub@aybabtu.com>
12286
12287 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
12288 non-firmware-dependant one in realmode.S takes precedence.
12289
6b8474f8
RM
122902009-12-04 Robert Millan <rmh.grub@aybabtu.com>
12291
12292 * commands/halt.c: Replace misc arch-specific headers with
12293 `<grub/misc.h>'.
12294 * commands/reboot.c: Likewise.
12295 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
12296 `<grub/misc.h>'.
12297 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
12298 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
12299 (kernel_img_SOURCES): ... to here.
12300
12301 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
12302 * include/grub/i386/pc/init.h: Likewise.
12303 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12304 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12305
12306 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
12307
12308 * include/grub/i386/halt.h: Remove.
12309 * include/grub/i386/reboot.h: Likewise.
12310
12311 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
12312
4b2e6ca2
DM
123132009-12-03 David S. Miller <davem@sunset.davemloft.net>
12314
12315 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
12316 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
12317 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
12318 "progname.h"
12319 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12320 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12321 (usage): Add missing comma in printf.
12322
5239348f
RM
123232009-12-02 Robert Millan <rmh.grub@aybabtu.com>
12324
12325 Use the same reboot approach on i386 coreboot and qemu as we do on
12326 BIOS.
12327
12328 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
12329 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
12330 * kern/i386/reboot.c: Remove.
12331 * include/grub/i386/reboot.h (grub_reboot): Export function.
12332 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
12333 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
12334 0xf000:0xfff0 instead of 0xffff:0x0000.
12335 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
12336 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
12337
ef34cbd4
RM
123382009-11-30 Robert Millan <rmh.grub@aybabtu.com>
12339
12340 Fix $srcdir != $objdir build.
12341
12342 * Makefile.in (po/%.po): Rewrite as ...
12343 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
12344
dc9837ea
ST
123452009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
12346
12347 Fix GNU/Hurd grub-install crash.
12348 * util/grub-probe.c (probe): Try to access `path' only when it is not
12349 NULL.
12350
2f857f98
VS
123512009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12352
12353 Correct module naming.
12354
12355 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
12356 (GRUB_MOD_INIT(efi_uga)): ... to this
12357 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
12358 (GRUB_MOD_FINI(efi_uga)): ... to this
12359 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
12360 (GRUB_MOD_INIT(efi_gop)): ... to this
12361 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
12362 (GRUB_MOD_FINI(efi_gop)): ... to this
12363
c5448046
RM
123642009-11-28 Robert Millan <rmh.grub@aybabtu.com>
12365
12366 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
12367 translatable.
12368 (usage): Translate `arg' strings using gettext().
12369 Thanks to Jordi Mallach for the suggestion.
12370
c85184ad
VS
123712009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12372
12373 GOP support. Based on patch from Bean
12374 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12375
12376 * video/efi_gop.c: New file.
12377 * include/grub/efi/graphics_output.h: Likewise.
12378 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
12379 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12380 variables.
12381 * conf/x86_64-efi.rmk: Likewise.
12382
8a4c48d8
VS
123832009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12384
12385 Rename efi_fb to efi_uga.
12386
12387 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12388 'efi_uga.mod'.
12389 (efi_fb_mod_SOURCES): Rename this ...
12390 (efi_uga_mod_SOURCES): ... to this.
12391 (efi_fb_mod_CFLAGS): Rename this ...
12392 (efi_uga_mod_CFLAGS): ... to this.
12393 (efi_fb_mod_LDFLAGS): Rename this ...
12394 (efi_uga_mod_LDFLAGS): ... to this.
12395 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12396 'efi_uga.mod'.
12397 (efi_fb_mod_SOURCES): Rename this ...
12398 (efi_uga_mod_SOURCES): ... to this.
12399 (efi_fb_mod_CFLAGS): Rename this ...
12400 (efi_uga_mod_CFLAGS): ... to this.
12401 (efi_fb_mod_LDFLAGS): Rename this ...
12402 (efi_uga_mod_LDFLAGS): ... to this.
12403 * video/efi_fb.c: Move this ...
12404 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
12405
fb6c1a7b
RM
124062009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12407
12408 * po/README: New file. Explain our PO file workflow.
12409
3bc7896c
RM
124102009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12411
12412 * po/ChangeLog: Remove. Move relevant entries back to ...
12413 * ChangeLog: ... here.
12414 * po/ca.po: Remove (now handled by TLP).
12415 * po/id.po: Likewise.
12416 * po/zh_CN.po: Likewise.
12417 * Makefile.in (LINGUAS): Initialize in a way that supports
12418 empty set.
12419
9ed4841d
RM
124202009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12421
12422 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
12423 reliing on po/LINGUAS.
12424 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
12425 (po/%.po): ... this.
12426
0ad46fd7 124272009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
12428
12429 * util/i386/efi/grub-mkimage.c: Include "progname.h".
12430 (main): Use `program_name' instead of nonexistent `progname'.
12431
e30dd392
FZ
124322009-11-26 Felix Zielcke <fzielcke@z-51.de>
12433
12434 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12435 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
12436
7656de4f
RM
124372009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12438
12439 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
12440 commit.
12441 * conf/i386-efi.rmk: Likewise.
12442 * conf/i386-ieee1275.rmk: Likewise.
12443 * conf/powerpc-ieee1275.rmk: Likewise.
12444 * conf/sparc64-ieee1275.rmk: Likewise.
12445 * conf/x86_64-efi.rmk: Likewise.
12446
db77c4d4
FZ
124472009-11-26 Felix Zielcke <fzielcke@z-51.de>
12448
12449 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
12450
a755bb04
FZ
124512009-11-26 Felix Zielcke <fzielcke@z-51.de>
12452
12453 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
12454
8a4c07fd
RM
124552009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12456
12457 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
12458 (grub_mkdevicemap_SOURCES): New variable.
12459 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
12460 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
12461 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
12462 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
12463 (grub_mkdevicemap_SOURCES): Remove.
12464 * conf/i386-efi.rmk: Likewise.
12465 * conf/i386-ieee1275.rmk: Likewise.
12466 * conf/i386-pc.rmk: Likewise.
12467 * conf/powerpc-ieee1275.rmk: Likewise.
12468 * conf/sparc64-ieee1275.rmk: Likewise.
12469 * conf/x86_64-efi.rmk: Likewise.
12470 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
12471 (usage): Fix strings to use `program_name'.
12472 (main): Initialize gettext.
12473 * util/grub-editenv.c: Likewise.
12474 * util/grub-emu.c: Likewise.
12475 * util/grub-fstest.c: Likewise.
12476 * util/grub-mkdevicemap.c: Likewise.
12477 * util/grub-mkfont.c: Likewise.
12478 * util/grub-mkrelpath.c: Likewise.
12479 * util/grub-pe2elf.c: Likewise.
12480 * util/grub-probe.c: Likewise.
12481 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12482 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12483 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12484
12485 * util/misc.c: Include `"progname.h"'.
12486 (progname): Remove variable.
12487 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
12488
6f61ed55
FZ
124892009-11-25 Felix Zielcke <fzielcke@z-51.de>
12490
12491 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
12492 printf and print a newline after the menuentry header line.
12493 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12494
f022876b
FZ
124952009-11-25 Felix Zielcke <fzielcke@z-51.de>
12496
12497 autoconf >= 2.60 support $(localedir).
12498
12499 * INSTALL: Note that autoconf 2.60 is required.
12500 * configure.ac (AC_PREREQ): Bump to 2.60.
12501 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
12502 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12503
6717926e
YB
125042009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
12505
12506 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
12507 aclocal is run.
12508
08806a54
RM
125092009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12510
12511 * normal/main.c (grub_normal_read_line): Fix off-by-one
12512 buffer overflow.
12513
13b33fba
RM
125142009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12515
12516 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
12517 "parser.grub" in grub_command_execute() call.
12518
4a8572e9
CPE
125192009-11-24 Carles Pina i Estany <carles@pina.cat>
12520
12521 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
12522 * conf/i386-efi.rmk: Likewise.
12523 * conf/i386-ieee1275.rmk: Likewise.
12524 * conf/i386-pc.rmk: Likewise.
12525 * conf/powerpc-ieee1275.rmk: Likewise.
12526 * conf/sparc64-ieee1275.rmk: Likewise.
12527 * conf/x86_64-efi.rmk: Likewise.
12528 * gettext/gettex.c: Include <grub/i18n.h>.
12529 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
12530 here ...
12531 * include/grub/i18n.h: ... to here
12532 * include/grub/i18n.h: ... to here.
12533 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 12534 (grub_gettext_dummy): Move above user.
4a8572e9 12535
bee48093
FZ
125362009-11-24 Felix Zielcke <fzielcke@z-51.de>
12537
12538 * util/Makefile.in (install-local): Convert a `for' into a normal
12539 shell expansion.
12540
a031e91c
RM
125412009-11-24 Robert Millan <rmh.grub@aybabtu.com>
12542
12543 * autogen.sh: Add automake call.
12544 * config.guess: Remove.
12545 * config.sub: Likewise.
12546 * install-sh: Likewise.
12547
26bec39d
FZ
125482009-11-24 Felix Zielcke <fzielcke@z-51.de>
12549
12550 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
12551
8e2532fd
FZ
125522009-11-24 Felix Zielcke <fzielcke@z-51.de>
12553
12554 * util/Makefile.in (install-local): Convert a make `$(foreach)'
12555 function to a normal shell `for'.
12556
fefa1b7d
FZ
125572009-11-24 Felix Zielcke <fzielcke@z-51.de>
12558
12559 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12560
4501250b
FZ
125612009-11-24 Felix Zielcke <fzielcke@z-51.de>
12562
12563 * util/grub-mkrelpath.c: New file.
12564 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
12565 (grub_mkrelpath_SOURCES): New variable.
12566 * include/grub/util/misc.h: New function prototype.
12567 * util/misc.c (make_system_path_relative_to_its_root): New function.
12568
12569 * util/grub-mkconfig_lib.in (bindir): New variable.
12570 (grub_mkrelpath): Likewise.
12571 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
12572
12573 * util/probe.c (probe): Make the file path relative to its root.
12574 Change a info message to use the GRUB path. Enable again the
12575 check if we can read the file with GRUB facilities.
12576
12577 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
12578 to its root.
12579
11d9778b
FZ
125802009-11-24 Felix Zielcke <fzielcke@z-51.de>
12581
12582 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
12583 platform.
12584
4465287d
FZ
125852009-11-24 Felix Zielcke <fzielcke@z-51.de>
12586
12587 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
12588 strncmp().
12589
62b47f22
FZ
125902009-11-24 Felix Zielcke <fzielcke@z-51.de>
12591
12592 * util/getroot.c (grub_util_is_dmraid): New function.
12593 (grub_util_get_dev_abstraction): Treat dmraid and multipath
12594 devices as normal ones, not as LVM.
12595
1eafb9b9 125962009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
12597
12598 * conf/common.rmk: Add grub-gettext_lib target and updates
12599 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
12600 LDFLAGS.
12601 * gettext/gettext.c: New file. (Reads mo files).
12602 * include/grub/file.h (grub_file_pread): New prototype.
12603 * include/grub/i18n.h (_): New prototype.
12604 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
12605 prototypes.
12606 * kern/misc.c (grub_gettext_dummy): New function.
12607 * normal/menu_text.c: Include <grub/i18n.h>.
12608 * normal/menu_text.c (print_timeout): Gettexttize string.
12609 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
12610 * po/POTFILES: Add `normal/menu_text.c'.
12611 * po/ca.po: Add new translations.
c3ea6bd4
CPE
12612 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
12613 gettext module and defines locale_dir and lang in grub.cfg.
12614 * NEWS: Add gettext support.
12615
0fdb2568
RM
126162009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12617
12618 * util/hostdisk.c: Include `<grub/i18n.h>'.
12619 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
12620 (make_device_name): Rewrite using asprintf.
12621 (convert_system_partition_to_system_disk): Replace 0 with NULL.
12622 (find_system_device): If a device is not found, generate one just
12623 by reusing the OS path name.
12624 (read_device_map): Make it permissible for device.map not to exist.
12625
f515aa62
RM
126262009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12627
12628 * script/sh/execute.c: Move from here ...
12629 * script/execute.c: ... to here. Update all users.
12630 * script/sh/function.c: Move from here ...
12631 * script/function.c: ... to here. Update all users.
12632 * script/sh/lexer.c: Move from here ...
12633 * script/lexer.c: ... to here. Update all users.
12634 * script/sh/main.c: Move from here ...
12635 * script/main.c: ... to here. Update all users.
12636 * script/sh/parser.y: Move from here ...
12637 * script/parser.y: ... to here. Update all users.
12638 * script/sh/script.c: Move from here ...
12639 * script/script.c: ... to here. Update all users.
12640
f84b481b
RM
126412009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12642
12643 * configure.ac: Detect all `emu' platforms. Define
12644 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
12645 --enable-grub-emu logic. Disable include/grub/machine
12646 symlink on `emu' platforms.
12647
12648 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
12649 * gensymlist.sh.in: Likewise.
12650
12651 * include/grub/i386/coreboot/machine.h: Remove file.
12652 * include/grub/i386/efi/machine.h: Likewise.
12653 * include/grub/i386/ieee1275/machine.h: Likewise.
12654 * include/grub/i386/pc/machine.h: Likewise.
12655 * include/grub/i386/qemu/machine.h: Likewise.
12656 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12657 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12658 * include/grub/x86_64/efi/machine.h: Likewise.
12659
12660 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
12661 * commands/halt.c: Likewise.
12662 * commands/reboot.c: Likewise.
12663 * include/grub/autoefi.h: Likewise.
12664 * include/grub/i386/at_keyboard.h: Likewise.
12665 * include/grub/i386/kernel.h: Likewise.
12666 * include/grub/i386/loader.h: Likewise.
12667 * include/grub/i386/pc/memory.h: Likewise.
12668 * kern/dl.c: Likewise.
12669 * kern/i386/coreboot/init.c: Likewise.
12670 * loader/i386/bsd.c: Likewise.
12671 * loader/i386/linux.c: Likewise.
12672 * loader/multiboot_loader.c: Likewise.
12673 * term/i386/pc/serial.c: Likewise.
12674 * term/usb_keyboard.c: Likewise.
12675
12676 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
12677 `<grub/machine/machine.h>'
12678 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
12679 * util/misc.c: Remove `<grub/machine/machine.h>' and
12680 `<grub/machine/time.h>'.
12681
12682 * Makefile.in (enable_grub_emu): Remove variable.
12683 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
12684
12685 * conf/any-emu.rmk: New file.
12686 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
12687 (grub_emu_init.c): Move from here ...
12688 * conf/any-emu.rmk: ... to here.
12689
12690 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
12691 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
12692 * conf/any-emu.rmk: ... to here.
12693
4efeab03
RM
126942009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12695
12696 * include/grub/parser.h (grub_parser_register): Document need
12697 of `name' parameter.
12698 * normal/main.c (grub_normal_read_line): Simplify prompt string.
12699 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
12700 "sh" to "grub".
12701
ea1dd8bf
RM
127022009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12703
12704 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
12705 `$(XGETTEXT)'.
12706 * include/grub/i18n.h (N_): New macro.
12707 * util/mkisofs/mkisofs.h: Likewise.
12708 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
12709 around N_().
12710 (usage): Use gettext() to translate help strings when printing them.
12711
0c140626
RM
127122009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12713
12714 Based on patch from Bean
12715 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12716
12717 * video/efi_fb.c: New file.
12718 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
12719 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12720 variables.
12721 * conf/x86_64-efi.rmk: Likewise.
12722
87d58298
RM
127232009-11-22 Robert Millan <rmh.grub@aybabtu.com>
12724
12725 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
12726 * util/i386/pc/grub-setup.c: Likewise.
12727
994cc3a3
ST
127282009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12729
12730 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
12731 <hurd/fs.h>
12732 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
12733 file_get_storage_info to implement grub_guess_root_device.
12734
26a61d6a
FZ
127352009-11-21 Felix Zielcke <fzielcke@z-51.de>
12736
12737 * Makefile.in (target): Use make's builtin $(shell) function
12738 instead of calling directly $(SHELL) to create the locale directories,
12739 inside the $(foreach) function.
12740
74ff1dd5
FZ
127412009-11-21 Felix Zielcke <fzielcke@z-51.de>
12742
12743 * util/grub-mkrescue.in: Print an error and usage if output option
12744 has not been given.
12745
0b787d0e
FZ
127462009-11-21 Felix Zielcke <fzielcke@z-51.de>
12747
12748 Patch from Loïc Minier <loic.minier@ubuntu.com>.
12749 * util/grub.d/30_os-prober.in: Cope with Linux entries where
12750 root and /boot are on different devices.
12751
1164b270
RM
127522009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12753
12754 Fix build for srcdir != objdir.
12755
12756 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
12757 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
12758 $(srcdir).
12759 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
12760 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
12761 reference for input.
12762
13774a2f
RM
127632009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12764
12765 * util/grub-mkrescue.in: Use source directory direcly (without copiing
12766 or hardlinking it). Remove -J option, Joliet is not compatible with
12767 multiple source directories.
12768
efda854e
RM
127692009-11-21 Carles Pina i Estany <carles@pina.cat>
127702009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12771
12772 * util/grub-mkrescue.in: Recognize `--override-directory' option.
12773 (process_input_dir): New function. Process an arbitrary input
12774 directory.
12775 Misc adjustments to support both "override mode" and system-wide mode.
12776
6c09890c
FZ
127772009-11-20 Felix Zielcke <fzielcke@z-51.de>
12778
12779 * configure.ac (UNIFONT_BDF): Rename to ...
12780 (FONT_SOURCE): ... this. Update all users.
12781
a797824f
FZ
127822009-11-20 Felix Zielcke <fzielcke@z-51.de>
12783
12784 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
12785 to the list of unifont files to look for.
12786
cd4f42b0
RM
127872009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12788
12789 Patch from Joe Auricchio <jauricchio@gmail.com>
12790 * commands/minicmd.c (grub_mini_cmd_clear): New function.
12791 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
12792 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
12793
393c783d
FZ
127942009-11-19 Felix Zielcke <fzielcke@z-51.de>
12795
12796 * Makefile.in (install-local): Add a missing backslash.
12797
b2f1e327
FZ
127982009-11-19 Felix Zielcke <fzielcke@z-51.de>
12799
12800 * include/grub/x86_64/io.h: New file.
12801
f577f7a0
RM
128022009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12803
12804 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
12805 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
12806 Include `"progname.h"'.
12807 (main): Initialize gettext.
12808 * util/i386/pc/grub-setup.c: Gettexttize.
12809 * util/i386/pc/grub-mkimage.c: Likewise.
12810
12811 * Makefile.in (po/*.po): Redefine as ...
12812 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
12813
3bc7896c
RM
12814 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
12815
c37943b6
RM
128162009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12817
12818 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
12819 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
12820 (program_name): Remove.
12821 (main): Initialize gettext support.
6323f705
RM
12822 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
12823 Include `<libintl.h>'.
12824 (_): New macro.
c37943b6
RM
12825
12826 * util/mkisofs/eltorito.c: Gettexttize.
12827 * util/mkisofs/joliet.c: Likewise.
12828 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
12829 * util/mkisofs/multi.c: Likewise.
12830 * util/mkisofs/rock.c: Likewise.
12831 * util/mkisofs/tree.c: Likewise.
12832 * util/mkisofs/write.c: Likewise.
12833
3bc7896c
RM
12834 * po/POTFILES: Update with new files.
12835
5ce77c6e
RM
128362009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12837
12838 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
12839 * util/mkisofs/iso9660.h: Likewise.
12840 * util/mkisofs/joliet.c: Likewise.
12841 * util/mkisofs/mkisofs.c: Likewise.
12842 * util/mkisofs/mkisofs.h: Likewise.
12843 * util/mkisofs/rock.c: Likewise.
12844 * util/mkisofs/tree.c: Likewise.
12845 * util/mkisofs/write.c: Likewise.
12846
12847 * util/mkisofs/eltorito.c (rcsid): Remove.
12848 * util/mkisofs/hash.c: Likewise.
12849 * util/mkisofs/joliet.c: Likewise.
12850 * util/mkisofs/name.c: Likewise.
12851 * util/mkisofs/rock.c: Likewise.
12852 * util/mkisofs/tree.c: Likewise.
12853 * util/mkisofs/write.c: Likewise.
12854
1dabbc77
RM
128552009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12856
12857 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
12858 instead of static allocation.
12859 * util/mkisofs/match.h: Likewise.
12860
633877cb
RM
128612009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12862
3bc7896c
RM
12863 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
12864 and `util/grub.d/10_linux.in'.
633877cb
RM
12865 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
12866 translatable Shell files.
12867
af1c0c85
RM
128682009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12869
12870 * Makefile.in ($(srcdir)/aclocal.m4): New target.
12871
769ae37b
RM
128722009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12873
12874 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 12875 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
12876 * util/grub.d/10_kfreebsd.in (bindir): New variable.
12877 Add gettext initialization.
12878 (kfreebsd_entry): Make menuentry output translatable.
12879
128802009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12881
12882 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
12883 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
12884 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
12885 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
12886 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 12887 * po/LINGUAS: New file.
769ae37b
RM
12888
128892009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12890
12891 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
12892 other things).
12893 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
12894 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
12895 bindtextdomain() calls for gettext initialization.
12896
128972009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12898
12899 * gnulib/progname.c: New file (imported from Gnulib).
12900 * gnulib/progname.h: Likewise.
12901 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12902 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
12903 (usage): Replace `progname' with `program_name'.
12904 (main): Use set_program_name() for program name initialization.
12905
129062009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12907
12908 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
12909 from here ...
12910 * Makefile.in (CPPFLAGS): ... to here.
12911
129122009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12913
12914 * aclocal.m4: Move from here ...
12915 * acinclude.m4: ... to here.
12916 * autogen.sh: Add call to `aclocal'.
12917 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
12918
129192009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12920
12921 * Makefile.in (CLEANFILES): Add `po/*.mo'.
12922 (LINGUAS): New variable.
12923 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
12924 (install-local): Install MO files.
12925 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
12926 * include/grub/i18n.h: New file.
3bc7896c
RM
12927 * po/POTFILES: New file.
12928 * po/ca.po: New file.
769ae37b
RM
12929 * util/grub.d/10_linux.in (bindir): New variable.
12930 Add gettext initialization.
12931 (linux_entry): Make menuentry output translatable.
12932 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
12933 (usage): Make --help output translatable.
12934 (main): Initialize gettext.
12935
02c0a6ad
RM
129362009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12937
12938 * import_gcry.py: New file (written by Vladimir with minor
12939 adjustments).
12940 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
12941 ciphers.
12942 * INSTALL: Document that Python is required for bootstrap.
12943
129442009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12945
12946 Import ciphers from libgcrypt 1.4.4.
12947
12948 * lib/libgcrypt/cipher/ChangeLog
12949 * lib/libgcrypt/cipher/ac.c
12950 * lib/libgcrypt/cipher/arcfour.c
12951 * lib/libgcrypt/cipher/bithelp.h
12952 * lib/libgcrypt/cipher/blowfish.c
12953 * lib/libgcrypt/cipher/camellia-glue.c
12954 * lib/libgcrypt/cipher/camellia.c
12955 * lib/libgcrypt/cipher/camellia.h
12956 * lib/libgcrypt/cipher/cast5.c
12957 * lib/libgcrypt/cipher/cipher.c
12958 * lib/libgcrypt/cipher/crc.c
12959 * lib/libgcrypt/cipher/des.c
12960 * lib/libgcrypt/cipher/dsa.c
12961 * lib/libgcrypt/cipher/ecc.c
12962 * lib/libgcrypt/cipher/elgamal.c
12963 * lib/libgcrypt/cipher/hash-common.c
12964 * lib/libgcrypt/cipher/hash-common.h
12965 * lib/libgcrypt/cipher/hmac-tests.c
12966 * lib/libgcrypt/cipher/md.c
12967 * lib/libgcrypt/cipher/md4.c
12968 * lib/libgcrypt/cipher/md5.c
12969 * lib/libgcrypt/cipher/primegen.c
12970 * lib/libgcrypt/cipher/pubkey.c
12971 * lib/libgcrypt/cipher/rfc2268.c
12972 * lib/libgcrypt/cipher/rijndael-tables.h
12973 * lib/libgcrypt/cipher/rijndael.c
12974 * lib/libgcrypt/cipher/rmd.h
12975 * lib/libgcrypt/cipher/rmd160.c
12976 * lib/libgcrypt/cipher/rsa.c
12977 * lib/libgcrypt/cipher/seed.c
12978 * lib/libgcrypt/cipher/serpent.c
12979 * lib/libgcrypt/cipher/sha1.c
12980 * lib/libgcrypt/cipher/sha256.c
12981 * lib/libgcrypt/cipher/sha512.c
12982 * lib/libgcrypt/cipher/tiger.c
12983 * lib/libgcrypt/cipher/twofish.c
12984 * lib/libgcrypt/cipher/whirlpool.c
12985
af2f93ac
RM
129862009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12987
12988 Fix build for systems without error().
12989
12990 * gnulib/error.c: New file (imported from Gnulib).
12991 * gnulib/error.h: Likewise.
12992 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
12993 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
12994 (this variable is now used by error()).
12995
73fb3dd5
FZ
129962009-11-16 Felix Zielcke <fzielcke@z-51.de>
12997
814f5e96
FZ
12998 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
12999 instead of relying that char is signed.
73fb3dd5 13000
a691ca33
VS
130012009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13002
13003 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
13004 blocksize different from specified.
13005 (grub_pxefs_read): Likewise.
13006
2af8f0f4
FZ
130072009-11-16 Felix Zielcke <fzielcke@z-51.de>
13008
13009 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
13010
13011 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
13012 (grub_ata_readwrite): Likewise. Update 2 format strings.
13013 (grub_atapi_read): Likewise.
13014
13015 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
13016 * conf/i386.rmk (pkglib_MODULES): ... to here ...
13017 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
13018 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
13019 (ata_mod_LDFLAGS): Move from here ...
13020 * conf/i386.rmk: ... to here ...
13021 * conf/x86_64-efi.rmk: ... and here.
13022 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
13023 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
13024
83bdecaf
RM
130252009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13026
13027 Relicense multiboot.h, with RMS' blessing.
13028
13029 * include/multiboot.h: Change to X11 license.
13030
fd6fd3d7
RM
130312009-11-15 Robert Millan <rmh.grub@aybabtu.com>
13032
13033 Support --version in grub-mkisofs.
13034
13035 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
13036 (OPTION_VERSION): New macro.
13037 (ld_options): Recognize --version.
13038 (usage): Move `program_name' from here ...
13039 (program_name): ... to here. Add `static' qualifier.
13040 (main): Recognize `OPTION_VERSION'.
13041
16a88c49
FZ
130422009-11-15 Felix Zielcke <fzielcke@z-51.de>
13043
13044 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
13045 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
13046
a4158476
RM
130472009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13048
13049 Fix help2man generation for mkisofs.
13050
13051 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
13052 (usage): Send output to stdout (rather than stderr).
13053
fc2208b0
RM
130542009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13055
13056 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
13057 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
13058 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
13059 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
13060 (bin_SCRIPTS): Add `grub-mkfloppy'.
13061 (grub_mkfloppy_SOURCES): New variable.
13062
13063 * util/grub-mkrescue.in: New file.
13064 * util/i386/pc/grub-mkfloppy.in: New file.
13065
13066 * util/i386/coreboot/grub-mkrescue.in: Remove.
13067 * util/i386/pc/grub-mkrescue.in: Remove.
13068
8d0edf4a
RM
130692009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13070
13071 * include/grub/multiboot.h (struct grub_multiboot_header): Move
13072 from here ...
13073 * include/multiboot.h (struct multiboot_header): ... to here. Update
13074 all users.
13075 * include/grub/multiboot.h (struct grub_multiboot_info): Move
13076 from here ...
13077 * include/multiboot.h (struct multiboot_info): ... to here. Update
13078 all users.
13079 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
13080 from here ...
13081 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
13082 Update all users.
13083 * include/grub/multiboot.h (struct grub_mod_list): Move
13084 from here ...
13085 * include/multiboot.h (struct multiboot_mod_list): ... to here.
13086 Update all users.
13087
a73f5969
RM
130882009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13089
13090 * include/multiboot2.h (multiboot_word): Rename from this ...
13091 (multiboot2_word): ... to this. Update all users.
13092 (multiboot_header): Rename from this ...
13093 (multiboot2_header): ... to this. Update all users.
13094 (multiboot_tag_header): Rename from this ...
13095 (multiboot2_tag_header): ... to this. Update all users.
13096 (multiboot_tag_start): Rename from this ...
13097 (multiboot2_tag_start): ... to this. Update all users.
13098 (multiboot_tag_name): Rename from this ...
13099 (multiboot2_tag_name): ... to this. Update all users.
13100 (multiboot_tag_module): Rename from this ...
13101 (multiboot2_tag_module): ... to this. Update all users.
13102 (multiboot_tag_memory): Rename from this ...
13103 (multiboot2_tag_memory): ... to this. Update all users.
13104 (multiboot_tag_unused): Rename from this ...
13105 (multiboot2_tag_unused): ... to this. Update all users.
13106 (multiboot_tag_end): Rename from this ...
13107 (multiboot2_tag_end): ... to this. Update all users.
13108
1c8927f0
RM
131092009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13110
13111 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
13112 this platform we should support Multiboot1 first.
13113
13114 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13115 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
13116 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
13117
6e1e0d89
RM
131182009-11-12 Robert Millan <rmh.grub@aybabtu.com>
13119
13120 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
13121 of write calls (converting them to fwrite() if they aren't already).
13122 (get_torito_desc): Likewise.
13123 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
13124
7f2b34d8
RM
131252009-11-12 Robert Millan <rmh.grub@aybabtu.com>
13126
13127 * util/i386/pc/grub-install.in: Move from here ...
13128 * util/grub-install.in: ... to here. Update all users.
13129
c0ef3311
CW
131302009-11-11 Colin Watson <cjwatson@ubuntu.com>
13131
13132 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
13133
e1f240ff
RM
131342009-11-11 Robert Millan <rmh.grub@aybabtu.com>
13135
13136 Support for El Torito without floppy emulation.
13137
13138 * util/mkisofs/eltorito.c: Include `<errno.h>'.
13139 (init_boot_catalog): Improve error handling.
13140 (get_torito_desc): Don't use floppy emulation unless requested by
13141 user. Patch boot information table when requested via
13142 `-boot-info-table'.
13143 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
13144 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
13145 (use_boot_info_table): New variables.
13146 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
13147 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
13148 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
13149 `--eltorito-emul-floppy'.
13150 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
13151 and `OPTION_ELTORITO_EMUL_FLOPPY'.
13152 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
13153 (use_boot_info_table, get_731): New prototypes.
13154 * util/mkisofs/write.c (get_731): New function.
13155
af7d4de5
FZ
131562009-11-11 Felix Zielcke <fzielcke@z-51.de>
13157
13158 Fix the generation of the man page.
13159
13160 * util/pc/i386/grub-install.in: Source
13161 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
13162
2c55dbc0
RM
131632009-11-11 Robert Millan <rmh.grub@aybabtu.com>
13164
13165 Large file support for grub-mkisofs.
13166
13167 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
13168 * util/mkisofs/mkisofs.c (next_extent, last_extent)
13169 (session_start): Upgrade type to `uint64_t'. Update all users.
13170 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
13171 (struct directory_entry): Upgrade type of `starting_block' and
13172 `size' to `uint64_t'. Update all users.
13173 (struct deferred): Remove unused structure.
13174 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
13175 Update all users.
13176 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
13177 file is larger than `UINT32_MAX'.
13178 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
13179 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
13180 return value.
13181 (struct deferred_write): Upgrade type of `extent' and `size' to
13182 `uint64_t'. Update all users.
13183 (last_extent_written): Upgrade type to `uint64_t'. Update all
13184 users.
13185 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
13186 Update all users. Upgrade type of `remain' to `int64_t' and
13187 `use' to `size_t'. Use error() to handle fread() errors.
13188 (write_files): Rely on write_one_file() rather than calling
13189 xfwrite() directly.
13190
6a9cead5
FZ
131912009-11-09 Felix Zielcke <fzielcke@z-51.de>
13192
13193 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
13194
4825d790
RM
131952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13196
13197 * util/mkisofs/fnmatch.c: Remove.
13198 * util/mkisofs/getopt1.c: Likewise.
13199 * util/mkisofs/getopt.c: Likewise.
13200 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
13201 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
13202 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
13203 `gnulib/getopt1.c' and `gnulib/getopt.c'.
13204 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
13205
13206 * configure.ac: Detect `mingw32msvc' host_os.
13207 Check for lstat(), getuid() and getgid().
13208
13209 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
13210 instances of `u_char' with `uint8_t'.
13211
13212 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
13213 [!HAVE_GETUID] (getuid): New function (stub).
13214 [!HAVE_GETGID] (getgid): Likewise.
13215 [!HAVE_LSTAT] (lstat): Likewise.
13216 [!S_IROTH] (S_IROTH): New macro (dummy).
13217 [!S_IRGRP] (S_IRGRP): Likewise.
13218
84b860d8
RM
132192009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13220
13221 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
13222 conditional expression).
13223
66e9b712
RM
132242009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13225
13226 Import from Gnulib.
13227
13228 * gnulib/fnmatch.c: New file.
13229 * gnulib/fnmatch.h: Likewise.
13230 * gnulib/fnmatch_loop.c: Likewise.
13231 * gnulib/getopt.c: Likewise.
13232 * gnulib/getopt.h: Likewise.
13233 * gnulib/getopt1.c: Likewise.
13234 * gnulib/getopt_int.h: Likewise.
13235 * gnulib/gettext.h: Likewise.
13236
34f4a5b0
RM
132372009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13238
13239 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
13240 * normal/handler.c (read_handler_list): Likewise.
13241
ac451143
RM
132422009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13243
13244 Misc cleanup.
13245
13246 * kern/command.c (grub_register_command_prio): Use
13247 grub_zalloc() instead of explicitly zeroing data.
13248 * kern/list.c: Include `<grub/mm.h>'.
13249 (grub_named_list_find): Replace `0' with `NULL'.
13250 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
13251 (fs_module_list): Change type to `grub_named_list_t'. Update all
13252 users.
13253 * normal/dyncmd.c (read_command_list): Add space between function
13254 call and parenthesis.
13255 * normal/handler.c (read_handler_list): Likewise.
13256
4089b167
RM
132572009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13258
13259 * normal/auth.c (punishment_delay): Moved from here ...
13260 (grub_auth_strcmp): ... to here (inside function).
13261
325f5037
RM
132622009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13263
13264 * include/grub/list.h (struct grub_named_list): Remove `const'
13265 qualifier from `name'.
13266 (struct grub_prio_list): Likewise.
13267
7aea29a3
RM
132682009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13269
13270 * normal/auth.c: Include `<grub/time.h>'.
13271 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
13272
3fd6f044
RM
132732009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13274
13275 * normal/auth.c (punishment_delay): New variable.
13276 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
13277 (grub_auth_check_authentication): Punish failed login attempts with
13278 an incremental (2^N) delay.
13279
a4cd68e4
RM
132802009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13281
13282 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
13283 path with $(srcdir).
13284
7ad12f43
VS
132852009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13286
13287 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
13288
c1129f03
RM
132892009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13290
13291 * util/i386/coreboot/grub-mkrescue.in: New file.
13292 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
13293 variables.
13294
13295 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
13296 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
13297 * configure.ac: Add header and function checks to satisfy grub-mkisofs
13298 requirements.
13299 * util/mkisofs/defaults.h: New file.
13300 * util/mkisofs/eltorito.c: Likewise.
13301 * util/mkisofs/exclude.h: Likewise.
13302 * util/mkisofs/fnmatch.c: Likewise.
13303 * util/mkisofs/getopt.c: Likewise.
13304 * util/mkisofs/getopt1.c: Likewise.
13305 * util/mkisofs/hash.c: Likewise.
13306 * util/mkisofs/include/fctldefs.h: Likewise.
13307 * util/mkisofs/include/mconfig.h: Likewise.
13308 * util/mkisofs/include/prototyp.h: Likewise.
13309 * util/mkisofs/include/statdefs.h: Likewise.
13310 * util/mkisofs/iso9660.h: Likewise.
13311 * util/mkisofs/joliet.c: Likewise.
13312 * util/mkisofs/match.c: Likewise.
13313 * util/mkisofs/match.h: Likewise.
13314 * util/mkisofs/mkisofs.c: Likewise.
13315 * util/mkisofs/mkisofs.h: Likewise.
13316 * util/mkisofs/multi.c: Likewise.
13317 * util/mkisofs/name.c: Likewise.
13318 * util/mkisofs/rock.c: Likewise.
13319 * util/mkisofs/tree.c: Likewise.
13320 * util/mkisofs/write.c: Likewise.
13321
ec8bb77d
VS
133222009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13323
13324 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
13325 being insecure.
13326
3716b12c
RM
133272009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13328
13329 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
13330 `grub-mkimage' (and use $0 when possible).
13331
b97b7b91
RM
133322009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13333
13334 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
13335 error message for excessively large memory map.
13336
04114812
RM
133372009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13338
13339 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
13340 executable bit.
13341
e4eb2373
RM
133422009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13343
13344 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
13345 message for coreboot users.
13346
c926e1d5 133472009-11-07 Robert Millan <rmh.grub@aybabtu.com>
13348
13349 Fix build with GNU gold.
13350
13351 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
13352 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
13353 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
13354 link addresses.
13355 * aclocal.m4: Likewise.
13356
86e5b1db 133572009-11-04 Felix Zielcke <fzielcke@z-51.de>
13358
13359 * configure.ac (AC_PREREQ): Bump to 2.59d.
13360 * INSTALL: Make it more clear when Autoconf and Ruby are
13361 needed and when to run `./autogen.sh'.
13362
246cd78f 133632009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13364
13365 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
13366 OSes.
13367
4f9dfb37 133682009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13369
13370 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
13371
b82bd5e1 133722009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13373
13374 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
13375 giving it to GNU Mach.
13376
ff1a9bca 133772009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13378
13379 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
13380 GNU partition number to get internal GRUB partition number.
13381
61697d9c 133822009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13383
13384 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
13385 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
13386
a50569e1 133872009-11-01 Robert Millan <rmh.grub@aybabtu.com>
13388
13389 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
13390 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
13391 case.
13392
5b153867 133932009-11-01 Felix Zielcke <fzielcke@z-51.de>
13394
13395 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
13396
d9e2cd70 133972009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13398
13399 Fix build problem.
13400
13401 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
13402 `-isystem=$(srcdir)/include'.
13403
805111a4 134042009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13405
13406 * util/i386/pc/grub-install.in: Remove hint that device.map should be
13407 checked (grub-install doesn't currently rely on it).
13408
fa6e945f 134092009-10-29 Robert Millan <rmh.grub@aybabtu.com>
13410
13411 Revert SVN r2660.
13412
13413 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
13414 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13415 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
13416 * conf/i386-ieee1275.rmk: Likewise.
13417 * conf/i386-pc.rmk: Likewise.
13418 * conf/powerpc-ieee1275.rmk: Likewise.
13419 * conf/sparc64-ieee1275.rmk: Likewise.
13420 * conf/x86_64-efi.rmk: Likewise.
13421
cee15086 134222009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13423
13424 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
13425
95b9239e 134262009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13427
13428 * include/grub/misc.h: Stop checking for APPLE_CC.
13429
2ed19dfd 134302009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13431
13432 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
13433 doesn't cause an infinite call loop.
13434
fdcdde19 134352009-10-28 Felix Zielcke <fzielcke@z-51.de>
13436
13437 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
13438 strings.
13439
cefabfe1 134402009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13441
13442 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
13443 variable.
13444 * Makefile.in: Likewise.
13445
ed96ab6d 134462009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13447
13448 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
13449
0579b753 134502009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13451
13452 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
13453
478df409 134542009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13455
13456 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
13457
083d1679 134582009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13459
13460 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
13461 from here ...
13462 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
13463
5947ae32 134642009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13465
13466 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
13467 in $(MAKEINFO) invocation. This makes it clear in output that
13468 errors are being ignored.
13469
94180ff6 134702009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13471
13472 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
13473 from here ...
13474 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13475 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
13476 * conf/i386-ieee1275.rmk: Likewise.
13477 * conf/i386-pc.rmk: Likewise.
13478 * conf/powerpc-ieee1275.rmk: Likewise.
13479 * conf/sparc64-ieee1275.rmk: Likewise.
13480 * conf/x86_64-efi.rmk: Likewise.
13481
9031b03a 134822009-10-26 Colin Watson <cjwatson@ubuntu.com>
13483
13484 * util/grub-editenv.c (main): If only a command is given, use
13485 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
13486 (usage): FILENAME is now optional and has a default.
13487
e4f6809b 134882009-10-26 Colin Watson <cjwatson@ubuntu.com>
13489
13490 Improve grub-mkconfig performance when there are several menu
13491 entries on a single filesystem.
13492
13493 * util/grub.d/10_linux.in (linux_entry): Cache the output of
13494 prepare_grub_to_access_device.
13495 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13496 * util/grub.d/30_os-prober.in: Likewise.
13497
67937d4d 134982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13499
13500 * util/grub.d/10_freebsd.in: Remove.
13501 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
13502 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
13503
ee3756cc 135042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13505
5c35048e 13506 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 13507
4dea1c6f 135082009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13509
13510 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
13511 grub_util_error() call.
13512
042484d7 135132009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13514
13515 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
13516 `reserved_first_sector' member.
13517 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
13518 `reserved_first_sector' to 1.
13519 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
13520 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
13521 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
13522 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
13523 filesystems which begin at first sector.
13524 (options): New option --skip-fs-probe.
13525 (main): Handle --skip-fs-probe and pass it to setup().
13526
d64448a7 135272009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13528
13529 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
13530 (memset): Fix function prototype.
13531
508d42ec 135322009-10-25 Robert Millan <rmh.grub@aybabtu.com>
135332009-10-25 Vasily Averin <vvs@parallels.com>
13534
13535 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
13536 `dirent.direntlen == 0'.
13537
b240e30c 135382009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13539
13540 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
13541 `cpio'.
13542 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
13543
346e7fbe 135442009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13545
13546 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
13547 `__trampoline_setup' and `__ucmpdi2'.
13548 * include/grub/powerpc/libgcc.h: Only export symbols for functions
13549 that libgcc provides.
13550
cdb308b0 135512009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13552
13553 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
13554 * include/grub/sparc64/libgcc.h (memset): Likewise.
13555 * include/grub/misc.h (memset, memcmp): New function prototypes.
13556
fb26abc2 135572009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13558
13559 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
13560 `cpio'.
13561 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
13562
f6693890 135632009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13564
13565 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
13566 * docs/grub.cfg: Compensate for recent change in multiboot
13567 loader (since 2009-08-14 it won't pass filename to payload).
13568 * util/grub.d/10_hurd.in: Likewise.
13569
0933cdc0 135702009-10-21 Felix Zielcke <fzielcke@z-51.de>
13571
13572 * config.guess: Update to latest version from config git
13573 repository.
13574 * config.sub: Likewise.
13575
3b2fe8c2 135762009-10-20 Robert Millan <rmh.grub@aybabtu.com>
13577
13578 Fix build on sparc64.
13579
13580 * configure.ac: Perform checks for libgcc symbols before
13581 adding `-nostdlib' to LDFLAGS.
13582
46695a62 135832009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13584
13585 Let user specify OpenBSD root device.
13586
13587 * loader/i386/bsd.c (openbsd_root): New variable.
13588 (openbsd_opts): New option 'root'.
13589 (OPENBSD_ROOT_ARG): New macro.
13590 (grub_openbsd_boot): Use 'openbsd_root'.
13591 (grub_cmd_openbsd): Fill 'openbsd_root'.
13592
d2b6b7fc 135932009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13594
13595 * NEWS: Misc adjustments.
13596
421bd7ac 135972009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13598
13599 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
13600
f1d29d87 136012009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13602
13603 * configure.ac: Bump version to 1.97.
13604
6f3cd880 136052009-10-16 Colin Watson <cjwatson@ubuntu.com>
13606
13607 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
13608 -mno-3dnow on x86 architectures. Some toolchains enable these
13609 features by default, but they rely on registers that aren't enabled
13610 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
13611
035f7122 136122009-10-15 Robert Millan <rmh.grub@aybabtu.com>
13613
13614 Make entry text a bit more readable.
13615
13616 * util/grub.d/10_linux.in: Add `with' before `Linux'.
13617
44998e58 136182009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13619
13620 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
13621
cd2851b3 136222009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13623
13624 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
13625 operations.
13626
c6f3b249 136272009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13628
13629 * configure.ac: Add missing dollar.
13630
6b5886ba 136312009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13632
13633 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
13634
13635 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
13636 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
13637 exports.
13638 * include/grub/sparc64/libgcc.h: Likewise. Use
13639 preprocessor conditionals.
13640
e9d66f6d 136412009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13642
13643 * conf/common.rmk (grub-dumpbios): Remove rule.
13644 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
13645 * util/grub-dumpbios.in: Remove file.
13646
9155bc17 136472009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13648
13649 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
13650 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
13651
13652 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
13653 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
13654 users.
13655
13656 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
13657 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
13658 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
13659 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
13660 users.
13661
bf7f7a18 136622009-10-12 Robert Millan <rmh.grub@aybabtu.com>
13663
13664 * term/tparm.c: Switch to GPLv3.
13665
86564c26 136662009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13667
13668 * include/grub/i386/cpuid.h: Add header protection.
13669
5c936493 136702009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13671
13672 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
13673
13674 * include/grub/i386/cpuid.h: New file.
13675 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
13676 (has_longmode): Rename to ...
13677 (grub_cpuid_has_longmode): ... this. Update all users. Remove
13678 `static' attribute.
13679 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
13680 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
13681 on a CPU that doesn't implement AMD64 instruction set.
13682
186e7cf2 136832009-10-06 Colin Watson <cjwatson@ubuntu.com>
13684
13685 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
13686 that version.texi is rebuilt on version number changes.
13687
83b65c4a 136882009-10-06 Colin Watson <cjwatson@ubuntu.com>
13689
13690 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
13691 Fixes bug #27602.
13692
d244281c 136932009-10-06 Colin Watson <cjwatson@ubuntu.com>
13694
13695 * util/i386/pc/grub-install.in: Source
13696 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
13697 that the --grub-probe option will work.
13698 * util/sparc64/ieee1275/grub-install.in: Likewise.
13699
da25306d 137002009-10-05 Robert Millan <rmh.grub@aybabtu.com>
13701
13702 * configure.ac: Bump version to 1.97~beta4.
13703
e8ee83c0 137042009-10-03 Robert Millan <rmh.grub@aybabtu.com>
13705
13706 Resync grub-mkdevicemap in x86_64-efi.
13707
13708 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
13709 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
13710 `util/devicemap.c'.
13711
50dcabcf 137122009-10-01 Colin Watson <cjwatson@ubuntu.com>
13713
13714 * util/grub-editenv.c (create_envblk_file): Write new block with a
13715 .new suffix and then rename it into place, to ensure atomic
13716 creation.
13717
0e51c3a7 137182009-09-28 Robert Millan <rmh.grub@aybabtu.com>
13719
13720 Do not automatically install headers.
13721
13722 * Makefile.in (include_DATA): Remove. Update all users.
13723
31299a95 137242009-09-26 Robert Millan <rmh.grub@aybabtu.com>
13725
13726 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
13727 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
13728
13729 * util/osdetect.lua: Remove.
13730 * script/lua/lauxlib.c: Likewise.
13731 * script/lua/ldebug.c: Likewise.
13732 * script/lua/grub_main.c: Likewise.
13733 * script/lua/lauxlib.h: Likewise.
13734 * script/lua/ldebug.h: Likewise.
13735 * script/lua/ltablib.c: Likewise.
13736 * script/lua/liolib.c: Likewise.
13737 * script/lua/lstrlib.c: Likewise.
13738 * script/lua/lualib.h: Likewise.
13739 * script/lua/ldo.c: Likewise.
13740 * script/lua/ldump.c: Likewise.
13741 * script/lua/ldo.h: Likewise.
13742 * script/lua/loslib.c: Likewise.
13743 * script/lua/lundump.c: Likewise.
13744 * script/lua/grub_lib.c: Likewise.
13745 * script/lua/ldblib.c: Likewise.
13746 * script/lua/lundump.h: Likewise.
13747 * script/lua/lmem.c: Likewise.
13748 * script/lua/grub_lib.h: Likewise.
13749 * script/lua/lmathlib.c: Likewise.
13750 * script/lua/lstate.c: Likewise.
13751 * script/lua/ltm.c: Likewise.
13752 * script/lua/lvm.c: Likewise.
13753 * script/lua/lmem.h: Likewise.
13754 * script/lua/lstate.h: Likewise.
13755 * script/lua/ltm.h: Likewise.
13756 * script/lua/ltable.c: Likewise.
13757 * script/lua/lvm.h: Likewise.
13758 * script/lua/llex.c: Likewise.
13759 * script/lua/lgc.c: Likewise.
13760 * script/lua/grub_lua.h: Likewise.
13761 * script/lua/loadlib.c: Likewise.
13762 * script/lua/lfunc.c: Likewise.
13763 * script/lua/lopcodes.c: Likewise.
13764 * script/lua/lparser.c: Likewise.
13765 * script/lua/ltable.h: Likewise.
13766 * script/lua/llex.h: Likewise.
13767 * script/lua/lgc.h: Likewise.
13768 * script/lua/lfunc.h: Likewise.
13769 * script/lua/lbaselib.c: Likewise.
13770 * script/lua/lopcodes.h: Likewise.
13771 * script/lua/lparser.h: Likewise.
13772 * script/lua/lzio.c: Likewise.
13773 * script/lua/linit.c: Likewise.
13774 * script/lua/lobject.c: Likewise.
13775 * script/lua/llimits.h: Likewise.
13776 * script/lua/lstring.c: Likewise.
13777 * script/lua/lzio.h: Likewise.
13778 * script/lua/lapi.c: Likewise.
13779 * script/lua/lcode.c: Likewise.
13780 * script/lua/lua.h: Likewise.
13781 * script/lua/lobject.h: Likewise.
13782 * script/lua/lstring.h: Likewise.
13783 * script/lua/lapi.h: Likewise.
13784 * script/lua/lcode.h: Likewise.
13785 * script/lua/luaconf.h: Likewise.
13786
cb8a2c38 137872009-09-26 Colin Watson <cjwatson@ubuntu.com>
13788
13789 * docs/grub.texi (Command-line and menu entry commands): Document
13790 date and echo commands.
13791
6b9b6276 137922009-09-24 Pavel Roskin <proski@gnu.org>
13793
13794 * include/grub/kernel.h (struct grub_module_header): Remove
13795 `grub_module_header_types'. Make `type' unsigned. Make `size'
13796 32-bit on all platforms.
13797 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
13798 8-bit field. Use grub_host_to_target32() for `size'.
13799 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
13800 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
13801 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
13802
4e5a02a7 138032009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13804
13805 Fix "lost keypress" bug in at_keyboard.
13806
13807 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
13808 Checks for readyness of input buffer (without flushing it).
13809 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
13810 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
13811
c6dcedf6 138122009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13813
13814 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
13815 size check within GRUB_MACHINE_PCBIOS section.
13816
74c958b1 138172009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13818
13819 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
13820 return value.
13821 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
13822 KEYBOARD_ISREADY check.
13823 (grub_at_keyboard_checkkey): Rename to ...
13824 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
13825 Remove gratuitous cast.
13826
ff420223 138272009-09-23 Colin Watson <cjwatson@ubuntu.com>
13828
13829 * configure.ac: Call AC_PROG_MKDIR_P.
13830 * Makefile.in (docs/stamp-vti): Create docs directory. Create
13831 version.texi in $(builddir) rather than $(srcdir).
13832 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
13833 to makeinfo's @include search path.
13834
d96875df 138352009-09-23 Felix Zielcke <fzielcke@z-51.de>
13836
13837 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
13838
9b3f8365 138392009-09-23 Felix Zielcke <fzielcke@z-51.de>
13840
13841 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
13842 for `*.dpkg-new'.
13843
c44c90db 138442009-09-21 Colin Watson <cjwatson@ubuntu.com>
13845
13846 Build info documentation. Some code borrowed from Automake.
13847
13848 * configure.ac: Check for makeinfo.
13849 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
13850 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
13851 docs/version.texi.
13852 (MOSTLYCLEANFILES): Add vti.tmp.
13853 (docs/version.texi, docs/stamp-vti): Update automatically.
13854 (docs/grub.info): Build info documentation. Use --force and ignore
13855 errors for now.
13856 (all-local): Add $(INFOS).
13857 (install-local): Install info files.
13858 (uninstall): Uninstall info files.
13859 * docs/version.texi: Remove from revision control. This file is
13860 automatically generated on build now.
13861 * gendistlist.sh: Add `*.info'.
13862
e0b37bb5 138632009-09-21 Felix Zielcke <fzielcke@z-51.de>
13864
13865 * kern/term.c: Fix indentation.
13866
5a78865b 138672009-09-21 Felix Zielcke <fzielcke@z-51.de>
13868
13869 * util/hostdisk.c: Fix a comment.
13870
dace7e8a 138712009-09-20 Robert Millan <rmh.grub@aybabtu.com>
13872
13873 Fix regression introduced in r2539.
13874
13875 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
13876 to 0xA1.
13877
a83d079b 138782009-09-19 Colin Watson <cjwatson@ubuntu.com>
13879
13880 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 13881 os-prober. Under normal operation, it does not print anything to
13882 stderr; if it does, we need to debug it, and throwing away stderr
13883 makes that excessively difficult.
a83d079b 13884
be94a509 138852009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
13886
13887 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
13888
63f745e8 138892009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13890
13891 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
13892 AC_LANG_PROGRAM from autoconf.
13893 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
13894 prototypes (fixes warning).
13895
13896 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
13897 `--disable-werror' was used.
13898
bbb2a70f 138992009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13900
13901 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
13902 uninitialized `lastaddr'.
13903
77c24f1d 139042009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
13905
0f0b8c87 13906 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 13907
07197f23 139082009-09-14 Colin Watson <cjwatson@ubuntu.com>
13909
13910 * commands/test.c (get_fileinfo): Return immediately if
13911 grub_fs_probe fails.
13912
dabf1798 139132009-09-14 José Martínez <xosemp@gmail.com>
13914
13915 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
13916
d52109a7 139172009-09-14 Colin Watson <cjwatson@ubuntu.com>
13918
13919 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
13920 output.
13921
56532179 139222009-09-13 Robert Millan <rmh.grub@aybabtu.com>
13923
13924 * configure.ac: Remove --enable-grub-pe2elf. Only build
13925 grub-pe2elf when needed by the build system itself.
13926 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
13927
8ef070f5 139282009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13929
13930 * configure.ac: Bump version to 1.97~beta3.
13931 * docs/version.texi: Likewise.
13932
61229557 139332009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13934
13935 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
13936 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
13937 from here ...
13938 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
13939 (grub_linux_setup_video): ... to here (with some adjustments).
13940
5c9f8d84 139412009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13942
13943 Fix memory corruption issue (spotted by Colin Watson).
13944
13945 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
13946 causing returned size to be stored in an incorrect memory location.
13947 Fix use of uninitialized value when storing the returned size.
13948
e8f5d6e9 139492009-09-12 Yves Blusseau <blusseau@zetam.org>
13950
13951 Change clean rules to properly remove files
13952
13953 * genmk.rb: add new clean rules
13954 * Makefile.in (clean): add the new targets
13955 (mostlyclean): likewise
13956
cda2a409 139572009-09-11 Colin Watson <cjwatson@ubuntu.com>
13958
13959 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
13960 to grub_uint64_t.
13961 * fs/ntfs.c (init_file): Understand 64-bit sizes for
13962 non-resident files.
13963
86695375 139642009-09-11 Colin Watson <cjwatson@ubuntu.com>
13965
13966 * configure.ac: Don't look for help2man when cross-compiling. Fixes
13967 part of bug #27349.
13968
8aa1541a 139692009-09-10 Felix Zielcke <fzielcke@z-51.de>
13970
13971 * util/grub-mkconfig.in: Make the created config mode 400 and
13972 print a warning if it fails.
13973
48d9bb0a 139742009-09-10 Robert Millan <rmh.grub@aybabtu.com>
13975
13976 * util/grub.d/40_custom.in: Ask user to type custom entries below
13977 comment, rather than below 'exec tail' line.
13978
3b0521be 139792009-09-10 Colin Watson <cjwatson@ubuntu.com>
13980
13981 * util/grub.d/40_custom.in: Make sure that the explanatory text is
13982 visible in grub.cfg.
13983
50051d55 139842009-09-10 Colin Watson <cjwatson@ubuntu.com>
13985
13986 * util/grub.d/40_custom.in: Make it a little clearer how to use this
13987 file.
13988
c0d34387 139892009-09-10 Felix Zielcke <fzielcke@z-51.de>
13990
13991 * docs/grub.cfg: Add an example menu entry for memtest86+.
13992
80a608f3 139932009-09-09 Felix Zielcke <fzielcke@z-51.de>
13994
a2094832 13995 * config.guess: Update to latest version from config git.
80a608f3 13996 * config.sub: Likewise.
13997
99423078 139982009-09-08 Colin Watson <cjwatson@ubuntu.com>
13999
14000 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
14001 unknown-command case. Fixes bug #27320.
14002
44454e4c 140032009-09-08 Felix Zielcke <fzielcke@z-51.de>
14004
14005 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
14006 `help' if the command exists.
14007
e30d87ad 140082009-09-06 Robert Millan <rmh.grub@aybabtu.com>
14009
14010 * INSTALL: Require GCC 4.1.3 or later.
14011
9a86f1ec 140122009-09-06 Yves Blusseau <blusseau@zetam.org>
14013
14014 * Makefile.in (RMKFILES): add i386-qemu.rmk
14015 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
14016 $(srcdir)/stamp-h.in
14017
7f26d466 140182009-09-05 Robert Millan <rmh.grub@aybabtu.com>
14019
14020 * util/grub-probe.c (probe): Comment out buggy codepath, which
14021 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
14022 should be re-enabled after 1.97.
14023
3a613259 140242009-09-05 Felix Zielcke <fzielcke@z-51.de>
14025
14026 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
14027 find searches for.
14028
197f76c7 140292009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
14030
14031 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
14032 unnecessary calls to grub_error.
14033
70ba68ce 140342009-09-04 Colin Watson <cjwatson@ubuntu.com>
14035
14036 * NEWS: Mention `keystatus' and Unicode fonts.
14037
4ff0d7a4 140382009-09-04 Robert Millan <rmh.grub@aybabtu.com>
14039
14040 * configure.ac: Bump version to 1.97~beta2.
14041 * docs/version.texi: Likewise.
14042
77c55a87 140432009-09-03 Colin Watson <cjwatson@ubuntu.com>
14044
14045 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
14046 containing unwind information in some cases where it previously did
14047 not. Use -fno-dwarf2-cfi-asm if available to restore the old
14048 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
14049 discussion.
14050
f79572cd 140512009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
14052
14053 Embedding loadenv module into grub-emu
14054
14055 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
14056 commands/loadenv.c
14057 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
14058 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
14059 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
14060 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
14061 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
14062 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
14063
93a81088 140642009-09-03 Magnus Granberg <zorry@ume.nu>
14065
14066 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
14067 include -fPIE in the default specs.
14068 * configure.ac: Check if pie_possible is yes and add -fno-PIE
14069 to TARGET_CFLAGS.
14070
160034b2 140712009-09-03 Felix Zielcke <fzielcke@z-51.de>
14072
14073 * INSTALL: Note that GNU Bison 2.3 or later is required.
14074
087c07c4 140752009-09-03 Colin Watson <cjwatson@ubuntu.com>
14076
14077 * kern/i386/pc/startup.S: Fix typo.
14078
cbf978c0 140792009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
14080
14081 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
14082 according to GCS.
14083
140842009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 14085
14086 * docs/grub.texi (Naming convention): Describe one-based partition
14087 numbering.
14088 (Device syntax): Likewise.
14089 (File name syntax): Likewise.
14090 (Block list syntax): Likewise.
14091 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
14092 menu.lst.
14093 (File name syntax): Likewise.
14094 (Command-line and menu entry commands): Document acpi, blocklist,
14095 crc, export, insmod, keystatus, ls, set, and unset commands.
14096
f3e8cdfd 140972009-09-02 Colin Watson <cjwatson@ubuntu.com>
14098
14099 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
14100 to avoid implying that only one of --shift, --ctrl, or --alt may be
14101 used.
14102
c0bc232b 141032009-09-02 Colin Watson <cjwatson@ubuntu.com>
14104
14105 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
14106 rather than comparing against S_IFREG, which will almost never work.
14107
aa0f752d 141082009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
14109
14110 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
14111 (write_blocklists): Likewise.
14112
ecb3166a 141132009-09-01 Colin Watson <cjwatson@ubuntu.com>
14114
14115 * script/lua/grub_lua.h (fputs): Supply a format string as the first
14116 argument to grub_printf.
14117
c403a125 141182009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 14119
14120 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 14121 non GNU test.
31aba781 14122
b5e7312c 141232009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
14124
14125 * kern/file.c (grub_file_read): Spelling fix
14126
fe00f472 141272009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
14128
14129 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
14130 loading of headers in some cases.
14131
cc55302e 141322009-08-30 Robert Millan <rmh.grub@aybabtu.com>
14133
14134 * configure.ac: Bump version to 1.97~beta1.
14135 * docs/version.texi: Likewise.
14136
5c90cdd2 141372009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 14138
14139 * include/grub/i386/xnu.h: Add license header.
14140 include grub/err.h explicitly.
14141
c90edae4 141422009-08-29 Robert Millan <rmh.grub@aybabtu.com>
14143
14144 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
14145 to `ufs' in the vfs.root.mountfrom kernel parameter.
14146
d8888b5c 141472009-08-29 Robert Millan <rmh.grub@aybabtu.com>
14148
14149 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
14150
14151 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
14152 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
14153
14154 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
14155 `ARRAY_SIZE' macro.
14156
6f07b921 141572009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14158
14159 * kern/file.c (grub_file_read): Check offset.
14160 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
14161 * fs/jfs.c (grub_jfs_read_file): Likewise.
14162 * fs/ntfs.c (grub_ntfs_read): Likewise.
14163 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
14164 * fs/minix.c (grub_minix_read_file): Correct offset check.
14165 * fs/ufs.c (grub_ufs_read_file): Likewise.
14166
b4f34077 141672009-08-28 Colin Watson <cjwatson@ubuntu.com>
14168
14169 * term/i386/pc/console.c (bios_data_area): Cast
14170 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
14171
e7c69859 141722009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14173
14174 1-bit optimised blitters.
14175
14176 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
14177 prototype.
14178 (grub_video_fbblit_replace_24bit_1bit): Likewise.
14179 (grub_video_fbblit_replace_16bit_1bit): Likewise.
14180 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14181 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14182 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
14183 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
14184 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
14185 function.
14186 (grub_video_fbblit_replace_24bit_1bit): Likewise.
14187 (grub_video_fbblit_replace_16bit_1bit): Likewise.
14188 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14189 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14190 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
14191 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
14192 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
14193 when possible.
14194 * video/video.c (grub_video_get_blit_format): Return
14195 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
14196
a57da43f 141972009-08-28 Colin Watson <cjwatson@ubuntu.com>
14198
14199 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
14200 the first argument to grub_printf.
14201
4cbe67e5 142022009-08-28 Colin Watson <cjwatson@ubuntu.com>
142032009-08-28 Robert Millan <rmh.grub@aybabtu.com>
14204
14205 Add `getkeystatus' terminal method. Add a new `keystatus' command
14206 to query it.
14207
14208 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
14209 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
14210 modifier key bitmasks.
14211 (struct grub_term_input): Add `getkeystatus' member.
14212 (grub_getkeystatus): Add prototype.
14213 * kern/term.c (grub_getkeystatus): New function.
14214
14215 * include/grub/i386/pc/memory.h
14216 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
14217 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
14218 Data Area layout.
14219 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
14220 (grub_console_term_input): Set `getkeystatus' member.
14221 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
14222 constants.
14223 (grub_usb_keyboard_getreport): Likewise.
14224 (grub_usb_keyboard_checkkey): Likewise.
14225 (grub_usb_keyboard_getkeystatus): New function.
14226 (grub_usb_keyboard_term): Set `getkeystatus' member.
14227
14228 * commands/keystatus.c: New file.
14229 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
14230 (keystatus_mod_SOURCES): New variable.
14231 (keystatus_mod_CFLAGS): Likewise.
14232 (keystatus_mod_LDFLAGS): Likewise.
14233 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
14234 commands/keystatus.c.
14235 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14236 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14237 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14238 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14239 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14240 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 14241
6e2a9085 142422009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14243
14244 Split befs.mod and afs.mod into *_be.mod and *.mod
14245
14246 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
14247 (grub_fstest_SOURCES): Likewise.
14248 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
14249 (afs_be_mod_SOURCES): New variable.
14250 (afs_be_mod_CFLAGS): Likewise.
14251 (afs_be_mod_LDFLAGS): Likewise.
14252 (befs_be_mod_SOURCES): Likewise.
14253 (befs_be_mod_CFLAGS): Likewise.
14254 (befs_be_mod_LDFLAGS): Likewise.
14255 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
14256 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14257 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14258 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14259 (grub_emu_SOURCES): Likewise.
14260 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14261 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14262 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14263 * fs/afs_be.c: New file.
14264 * fs/befs_be.c: New file.
14265 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
14266 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
14267 (U16): Replaced with ...
14268 (grub_afs_to_cpu16): ...this. All users updated.
14269 (U32): Replaced with ...
14270 (grub_afs_to_cpu32): ...this. All users updated.
14271 (U64): Replaced with ...
14272 (grub_afs_to_cpu64): ...this. All users updated.
14273 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
14274 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 14275 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 14276 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
14277 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
14278 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
14279 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
14280 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
14281 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
14282 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
14283 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
14284
32a71655 142852009-08-26 Bean <bean123ch@gmail.com>
14286
14287 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
14288 64-bit number.
14289 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14290 (grub_xfs_inode_block): Change return type to grub_uint64_t.
14291 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
14292
552bf6c5 142932009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14294
14295 NetBSD memory map support.
14296
14297 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
14298 (grub_netbsd_btinfo_mmap_header): New structure.
14299 (grub_netbsd_btinfo_mmap_entry): Likewise.
14300 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
14301
1ae2078c 143022009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14303
14304 Enable bsd.mod on coreboot.
14305
14306 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
14307 (bsd_mod_SOURCES): New variable.
14308 (bsd_mod_CFLAGS): Likewise.
14309 (bsd_mod_LDFLAGS): Likewise.
14310 (bsd_mod_ASFLAGS): Likewise.
14311 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
14312 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
14313
beefc598 143142009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14315
14316 Cleanup NetBSD root support.
14317
14318 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
14319 grub_bsd_get_device.
14320 Fix typo.
14321
3b76e68b 143222009-08-25 Felix Zielcke <fzielcke@z-51.de>
14323
14324 * util/grub.d/00_header.in: Move check for the video backend of
14325 gfxterm from here ...
14326 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
14327 a suitable video backend.
14328
aea664ea 143292009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14330
14331 Fix breakage in grub-setup.
14332
14333 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
14334 "msdos_partition_map".
14335
ff747d50 143362009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 Fix breakage in normal/auth.c.
14339
14340 * normal/auth.c (grub_iswordseparator): New function.
14341
e7e1f93f 143422009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14343
14344 Authentication support.
14345
14346 * commands/password.c: New file.
14347 * conf/common.rmk (pkglib_MODULES): Add password.mod.
14348 (password_mod_SOURCES): New variable.
14349 (password_mod_CFLAGS): Likewise.
14350 (password_mod_LDFLAGS): Likewise.
14351 (normal_mod_SOURCES): Add normal/auth.c.
14352 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
14353 normal/auth.c.
14354 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14355 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14356 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14357 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14358 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14359 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14360 * include/grub/auth.h: New file.
14361 * include/grub/err.h (grub_err_t): New enum value
14362 GRUB_ERR_ACCESS_DENIED.
14363 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
14364 'users'.
14365 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
14366 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
14367 users updated.
14368 * normal/auth.c: New file.
14369 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
14370 (grub_cmdline_run): Don't allow to go to command line without
14371 authentication.
14372 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
14373 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
14374 menuentry without superuser rights.
14375 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
14376 user isn't a superuser.
14377
70f1161d 143782009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14379
14380 Save space by inlining misc.c functions.
14381
14382 * kern/misc.c (grub_iswordseparator): Made static.
14383 * kern/misc.c (grub_strcat): Moved from here ...
14384 * include/grub/misc.h (grub_strcat): ... here. Inlined.
14385 * kern/misc.c (grub_strncat): Moved from here ...
14386 * include/grub/misc.h (grub_strncat): ... here. Inlined.
14387 * kern/misc.c (grub_strcasecmp): Moved from here ...
14388 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
14389 * kern/misc.c (grub_strncasecmp): Moved from here ...
14390 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
14391 * kern/misc.c (grub_isalpha): Moved from here ...
14392 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
14393 * kern/misc.c (grub_isdigit): Moved from here ...
14394 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
14395 * kern/misc.c (grub_isgraph): Moved from here ...
14396 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
14397 * kern/misc.c (grub_tolower): Moved from here ...
14398 * include/grub/misc.h (grub_tolower): ... here. Inlined.
14399
48e40bff 144002009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14401
14402 * script/sh/function.c (grub_script_function_find): Cut error message
14403 not to flood terminal.
14404 * script/sh/lexer.c (grub_script_yylex): Remove command line length
14405 limit.
14406 * script/sh/script.c (grub_script_arg_add): Duplicate string.
14407
c385bfc3 144082009-08-24 Colin Watson <cjwatson@ubuntu.com>
14409
14410 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
14411 `report' grub_uint8_t *.
14412 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
14413 Use a 50-millisecond timeout rather than just repeating
14414 grub_usb_keyboard_getreport 50 times.
14415 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
14416
2d21e3e8 144172009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14418
14419 Rename *_partition_map to part_*
14420
14421 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
14422 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
14423 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
14424 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
14425 All users updated.
14426 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
14427 All users updated.
14428 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
14429 * util/grub-probe.c (probe_partmap): Don't transform partition name
14430 to get module name.
14431
dd103c4e 144322009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14433
14434 Fix OpenBSD and NetBSD support.
14435
14436 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
14437 memory address conflict.
14438 (OPENBSD_MMAP_ACPI): New definition.
14439 (OPENBSD_MMAP_NVS): Likewise.
14440 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
14441 and OPENBSD_MMAP_NVS.
14442 Add memory map terminator
14443 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 14444 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 14445
16c84d74 144462009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14447
14448 Let user specify NetBSD root device.
14449
14450 * loader/i386/bsd.c (netbsd_root): New variable.
14451 (netbsd_opts): New option 'root'.
14452 (NETBSD_ROOT_ARG): New macro.
14453 (grub_netbsd_boot): Use 'netbsd_root'.
14454 (grub_bsd_unload): Free 'netbsd_root'.
14455 (grub_cmd_netbsd): Fill 'netbsd_root'.
14456
adb29902 144572009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14458
14459 Support for 64-bit NetBSD.
14460
14461 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
14462 point when booting non-FreeBSD.
14463
f5ae9f74 144642009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14465
14466 Support --no-smp and --no-acpi for NetBSD.
14467
14468 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
14469 (NETBSD_AB_NOACPI): Likewise.
14470 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
14471 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
14472
de74f136 144732009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14474
14475 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
14476 errors.
14477 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
14478 errors. Call grub_error when needed.
14479
e9a925da 144802009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14481
14482 * commands/search.c (search_fs): Try searching without autoload first.
14483 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14484 filesystem module explicitly for faster booting.
14485
5174302b 144862009-08-23 Colin Watson <cjwatson@ubuntu.com>
14487
14488 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
14489
c8c80635 144902009-08-23 Colin Watson <cjwatson@ubuntu.com>
14491
14492 * util/grub.d/30_os-prober.in: Disable os-prober if
14493 `GRUB_DISABLE_OS_PROBER' was set to true.
14494
71acf5e5 144952009-08-23 Robert Millan <rmh.grub@aybabtu.com>
14496
14497 * partmap/pc.c: Rename to ...
14498 * partmap/msdos.c: ... this. Update all users.
14499 (grub_pc_partition_map): Rename to ...
14500 (grub_msdos_partition_map): ... this. Update all users.
14501
14502 * parttool/pcpart.c: Rename to ...
14503 * parttool/msdospart.c: ... this. Update all users.
14504
14505 * include/grub/pc_partition.h: Rename to ...
14506 * include/grub/msdos_partition.h: ... this. Update all users.
14507 (grub_pc_partition_bsd_entry): Rename to ...
14508 (grub_msdos_partition_bsd_entry): ... this. Update all users.
14509 (grub_pc_partition_disk_label): Rename to ...
14510 (grub_msdos_partition_disk_label): ... this. Update all users.
14511 (grub_pc_partition_entry): Rename to ...
14512 (grub_msdos_partition_entry): ... this. Update all users.
14513 (grub_pc_partition_mbr): Rename to ...
14514 (grub_msdos_partition_mbr): ... this. Update all users.
14515 (grub_pc_partition): Rename to ...
14516 (grub_msdos_partition): ... this. Update all users.
14517 (grub_pc_partition_is_empty): Rename to ...
14518 (grub_msdos_partition_is_empty): ... this. Update all users.
14519 (grub_pc_partition_is_extended): Rename to ...
14520 (grub_msdos_partition_is_extended): ... this. Update all users.
14521 (grub_pc_partition_is_bsd): Rename to ...
14522 (grub_msdos_partition_is_bsd): ... this. Update all users.
14523
14524 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
14525 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
14526 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
14527 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
14528 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
14529 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
14530 (gpt_mod_LDFLAGS): Rename to ...
14531 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
14532 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
14533 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
14534 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
14535 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
14536 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
14537 (part_gpt_mod_LDFLAGS): ... this.
14538 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
14539 `pcpart.mod' to `msdospart.mod'.
14540 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
14541 to ...
14542 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
14543 (msdospart_mod_LDFLAGS): ... this.
14544
c11fded5 145452009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14546
14547 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
14548 (openbsd_opts): Likewise.
14549 (netbsd_opts): Likewise.
14550 (freebsd_flags): Added 0 terminator.
14551 (openbsd_flags): Likewise.
14552 (netbsd_flags): Likewise.
14553 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
14554 (grub_cmd_freebsd): Transformed into extended command.
14555 (grub_cmd_openbsd): Likewise.
14556 (grub_cmd_netbsd): Likewise.
14557 (cmd_freebsd): Changed type to grub_extcmd_t.
14558 (cmd_openbsd): Likewise.
14559 (cmd_netbsd): Likewise.
14560 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
14561 grub_cmd_openbsd as extended commands.
14562 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
14563 cmd_netbsd and cmd_openbsd
14564
11d1c769 145652009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
14566
14567 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
14568
7a9094e5 145692009-08-21 Pavel Roskin <proski@gnu.org>
14570
5496c37e 14571 * Makefile.in (install-local): When checking if a file is in the
14572 build directory, use "test -e" to detect symlinks.
14573
7a9094e5 14574 * Makefile.in (install-local): Remove all files in
14575 $(DESTDIR)$(pkglibdir) before installing new files there.
14576
e53cea11 145772009-08-18 Felix Zielcke <fzielcke@z-51.de>
14578
14579 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
14580 grub-mkelfimage.
14581
9aced544 145822009-08-18 Felix Zielcke <fzielcke@z-51.de>
14583
14584 * util/grub-mkconfig.in: Don't use gfxterm by default if not
14585 explicitly specified by the user.
14586
b7da6bab 145872009-08-18 Pavel Roskin <proski@gnu.org>
14588
14589 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
14590 grub_uint8_t pointer for data.
14591 * include/grub/fbutil.h (struct grub_video_fbblit_info):
14592 Likewise.
14593 * video/fb/fbutil.c: Remove unnecessary casts.
14594
19f1b335 145952009-08-17 Michal Suchanek <hramrach@centrum.cz>
14596
14597 VBE cleanup.
14598
14599 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
14600 (grub_vbe_set_video_mode): Save active mode info
14601 only after setting the mode.
14602 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
14603 second argument.
14604
2f467aa9 146052009-08-17 Michal Suchanek <hramrach@centrum.cz>
14606
14607 Rename variables for clarity.
14608
14609 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
14610 (active_vbe_mode_info): ... this. All users updated.
14611 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
14612 All users updated.
14613 (initial_mode): Rename to ...
14614 (initial_vbe_mode): ... this. All users updated.
14615 (mode_in_use): Rename to ..
14616 (vbe_mode_in_use): ... this. All users updated.
14617 (mode_list): Rename to ..
14618 (vbe_mode_list): ... this. All users updated.
14619 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
14620 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
14621 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
14622 'mode_list_size' to 'vbe_mode_list_size'.
14623 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
14624 'best_mode_info' to 'best_vbe_mode_info' and
14625 'best_mode' to 'best_vbe_mode'
14626
6025fcd7 146272009-08-17 Michal Suchanek <hramrach@centrum.cz>
14628
14629 Remove duplicate grub_video_fb_get_video_ptr.
14630
14631 * include/grub/fbutil.h (get_data_ptr): Rename to ...
14632 (grub_video_fb_get_video_ptr): ... this.
14633 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
14634 * video/fb/fbutil.c: Add comment about addressing.
14635 (get_data_ptr): Rename to ...
14636 (grub_video_fb_get_video_ptr): ... this. All users updated.
14637 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
14638
cc8c6faf 146392009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14640
14641 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
14642 grub_dprintf() that was just added.
14643
08aa61f0 146442009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14645
14646 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
14647 (DEFAULT_VIDEO_MODE): Remove macros.
14648 (grub_linux_boot): Remove assumption that Linux has FB support,
14649 and use "text" as default video mode.
14650
7cef4f75 146512009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
14652
14653 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
14654 grub_dprintf.
14655 * fs/fat.c (grub_fat_read_data): Likewise.
14656
e1f39873 146572009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14658
14659 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
14660 payload.
14661 (grub_module): Likewise.
14662
c166d79e 146632009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14664
14665 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
14666 mbi->cmdline but free playground.
14667
c60cee8e 146682009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14669
14670 Handle group offset on UFS1.
14671
14672 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
14673 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
14674
c0d8b5d4 146752009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14676
14677 Split ufs.mod into ufs1.mod and ufs2.mod.
14678
14679 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
14680 (grub_fstest_SOURCES): Likewise.
14681 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
14682 (ufs_mod_SOURCES): Remove.
14683 (ufs_mod_CFLAGS): Likewise.
14684 (ufs_mod_LDFLAGS): Likewise.
14685 (ufs1_mod_SOURCES): New variable.
14686 (ufs1_mod_CFLAGS): Likewise.
14687 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 14688 (ufs2_mod_SOURCES): New variable.
14689 (ufs2_mod_CFLAGS): Likewise.
14690 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 14691 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
14692 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14693 Likewise.
14694 (grub_emu_SOURCES): Likewise.
14695 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14696 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14697 (grub_setup_SOURCES): Likewise.
14698 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14699 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
14700 (grub_setup_SOURCES): Likewise.
14701 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14702 Likewise.
14703 * fs/ufs2.c: New file.
14704 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
14705
d3539132 147062009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14707
14708 Framebuffer split.
14709
14710 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
14711 subsystem at the end.
14712 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
14713 (video_fb_mod_SOURCES): New variable.
14714 (video_fb_mod_CFLAGS): Likewise.
14715 (video_fb_mod_LDFLAGS): Likewise.
14716 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
14717 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
14718 * video/i386/pc/vbeblit.c: Moved from here ...
14719 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
14720 * video/i386/pc/vbefill.c: Moved from here ...
14721 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
14722 * video/i386/pc/vbeutil.c: Moved from here ...
14723 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
14724 * include/grub/i386/pc/vbeblit.h: Moved from here ...
14725 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
14726 * include/grub/i386/pc/vbefill.h: Moved from here ...
14727 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
14728 * include/grub/i386/pc/vbeutil.h: Moved from here ...
14729 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
14730 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
14731 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
14732 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
14733 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
14734 (grub_video_adapter): Added 'get_info_and_fini'.
14735 (grub_video_get_info_and_fini): New prototype.
14736 (grub_video_set_mode): make modestring const char *.
14737 * loader/i386/linux.c (grub_linux_setup_video): Use
14738 grub_video_get_info_and_fini.
14739 (grub_linux_boot): Move modesetting just before booting.
14740 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
14741 grub_video_get_info_and_fini.
14742 * video/i386/pc/vbe.c: Moved framebuffer part ...
14743 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
14744 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
14745 grub_video_fbstd_colors and grub_video_fb_set_palette.
14746 (grub_video_vbe_init): Clear 'framebuffer' variable and use
14747 grub_video_fb_init.
14748 (grub_video_vbe_fini): Use grub_video_fb_fini.
14749 (grub_video_vbe_setup): Use framebuffer.render_target instead of
14750 render_target and use grub_video_fb_set_active_render_target and
14751 grub_video_fb_set_palette.
14752 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
14753 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
14754 (grub_video_vbe_adapter): Use framebuffer.
14755 * video/video.c (grub_video_get_info_and_fini): New function.
14756 (grub_video_set_mode): Make modestring const char *.
14757 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
14758 values are already initialised.
14759
d404ee56 147602009-08-14 Pavel Roskin <proski@gnu.org>
14761
14762 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
14763 ABS and APPLE_CC.
14764 * boot/i386/pc/diskboot.S: Likewise.
14765 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
14766 sectors allow compilation on MacOSX.
14767 * conf/i386-pc.rmk: Enable unconditional compilation of
14768 lnxboot.img.
14769
9a10df16 147702009-08-13 Colin Watson <cjwatson@ubuntu.com>
14771
14772 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
14773 * util/grub.d/00_header.in: Enter interruptible sleep if
14774 GRUB_HIDDEN_TIMEOUT is set.
14775
be3c9ca7 147762009-08-13 Yves Blusseau <blusseau@zetam.org>
14777
14778 * include/grub/symbol.h: Add the LOCAL macro.
14779 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
14780 starting with "L_".
14781
1f9e557e 147822009-08-13 Pavel Roskin <proski@gnu.org>
14783
9ca62843 14784 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
14785 any modern compilers we support.
14786
1f9e557e 14787 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
14788 Use local labels starting with "L_" so that Apple assembler
14789 knows they are local.
14790
81623db6 147912009-08-10 Robert Millan <rmh.grub@aybabtu.com>
14792
14793 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
14794 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
14795 (bsd_kernel_types): ... this enum.
14796
14797 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
14798 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
14799 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
14800
14801 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
14802 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
14803 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
14804 messages.
14805
f5d35e7a 148062009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14807
14808 * util/grub-dumpdevtree: Moved from here ...
14809 * util/i386/efi/grub-dumpdevtree: ... to here.
14810 (hexify): New function. Converts a string to its hex version.
14811 Generate hex versions of "efi" and "device-properties" by calling
14812 hexify() on the ASCII strings rather than by hardcoding numbers.
14813
d1e1d527 148142009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14815
14816 * fs/jfs.c: Update copyright year.
14817
1ebbe064 148182009-08-08 Felix Zielcke <fzielcke@z-51.de>
14819
14820 * util/grub.d/00_header.in: Fix a comment.
14821 * util/grub.d/10_linux.in: Likewise.
14822 * util/grub.d/10_windows.in: Likewise.
14823 * util/grub.d/10_hurd.in: Likewise.
14824
a78c8d24 148252009-08-08 Felix Zielcke <fzielcke@z-51.de>
14826
14827 * util/grub-mkconfig.in: Allow the user to specify the used font
14828 with GRUB_FONT.
14829
29a6b9e8 148302009-08-08 Pavel Roskin <proski@gnu.org>
14831
b5f16cc4 14832 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
14833 available, xfs.mod needs it now.
14834
2f5cb827 14835 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
14836 the "g" modifier in sed when the intention is to strip something
14837 once. This fixes comparison of kernels with multiple dashes.
14838
29a6b9e8 14839 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
14840 on it. Add missing space before closing bracket. Fix
14841 misleading formatting.
14842
892a3d98 148432009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14844
14845 * docs/grub.texi: Major overhaul. Remove all sections that are
14846 specific to GRUB Legacy, or mostly composed of Legacy-specific
14847 information.
14848
ed94253f 148492009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14850
14851 * docs/version.texi: New file. Provides version information for
14852 grub.texi.
14853
126d6628 148542009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14855
14856 * docs/grub.texi: Update CVS information to SVN.
14857 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
14858
998b5aa9 148592009-08-07 Felix Zielcke <fzielcke@z-51.de>
14860
14861 * util/grub-mkconfig.in: Remove a wrong `fi'.
14862
818e094a 148632009-08-07 Felix Zielcke <fzielcke@z-51.de>
14864
14865 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
14866 (grub_jfs_uuid): New function.
14867 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
14868
b969c52f 148692009-08-07 Felix Zielcke <fzielcke@z-51.de>
14870
14871 * util/grub-mkconfig_lib.in (font_path): Move the functionality
14872 of it to ...
14873 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
14874 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
14875
7a4894cc 148762009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14877
14878 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
14879 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
14880 Update all users.
14881
14882 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
14883 not just "vmlinu[zx]".
14884 Moved from here ...
14885 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
14886 all users.
14887
14888 * util/grub.d/10_linux.in (find_latest): Moved from here ...
14889 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
14890 all users.
14891
4e2171f8 148922009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14893
14894 * util/grub.d/10_freebsd.in: Use an absolute device path for
14895 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
14896
6dcfcb32 148972009-08-06 Felix Zielcke <fzielcke@z-51.de>
14898
14899 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
14900 handling of multiple abstraction modules.
14901
f56a8756 149022009-08-04 Robert Millan <rmh.grub@aybabtu.com>
14903
14904 Fix a bug resulting in black screen when loading Linux using a
14905 packed video mode.
14906
14907 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
14908 function.
14909
14910 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
14911 (grub_vbe_bios_getset_dac_palette_width): New function.
14912 (grub_vbe_bios_get_dac_palette_width)
14913 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
14914 grub_vbe_bios_getset_dac_palette_width()).
14915
14916 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
14917 check for return status.
14918 (grub_vbe_get_video_mode_info): When getting information for a packed
14919 mode (<= 8 bpp), obtain DAC palette width using
14920 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
14921 {red,green,blue}_mark_size.
14922
222671b2 149232009-08-04 Felix Zielcke <fzielcke@z-51.de>
14924
ecb1a6d9 14925 * commands/search.c (options): Fix help output to match actual code.
222671b2 14926
f84114f5 149272009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
14928
14929 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
14930 of homegrown code.
14931
bd288a20 149322009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 14933
14934 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
14935 on XFS or ReiserFS.
14936
8aab5e25 149372009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14938
14939 Support Apple partition map with sector size different from 512 bytes.
14940
14941 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
14942 (apple_partition_map_iterate): Respect 'aheader.blocksize'
14943 and 'apart.partmap_size'.
14944
6ad6258a 149452009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
149462009-08-01 Robert Millan <rmh.grub@aybabtu.com>
14947
14948 Fix cpuid command.
14949
14950 * commands/i386/cpuid.c (options): New variable.
14951 (grub_cmd_cpuid): Return real error.
14952 (GRUB_MOD_INIT(cpuid)): Declare options.
14953
67459bc6 149542009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
14955
14956 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
14957 valid.
14958
fbc6ab54 149592009-07-31 Bean <bean123ch@gmail.com>
14960
14961 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
14962 log2_inode.
14963 (grub_fshelp_node): Move inode field to the end.
14964 (grub_xfs_data): Remove inode field.
14965 (grub_xfs_inode_block): Calculate inode size using sblock.
14966 (grub_xfs_inode_offset): Likewise.
14967 (grub_xfs_read_inode): Calculate inode size using sblock.
14968 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
14969 (grub_xfs_iterate_dir): Calculate inode size using sblock.
14970 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
14971 to match inode size.
14972 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
14973 not accessible when data is null.
14974 (grub_xfs_open): Likewise.
14975
f45d6cfc 149762009-07-31 Bean <bean123ch@gmail.com>
14977
14978 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
14979 Don't change pv->disk if it's already set.
14980
14981 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
14982 (grub_raid_register): ... here.
14983 (grub_raid_rescan): Removed.
14984
14985 * include/grub/raid.h (grub_raid_rescan): Removed.
14986
14987 * util/grub-fstest.c: Remove include file <grub/raid.h>.
14988 (fstest): Replace grub_raid_rescan with module fini function followed
14989 by init function.
14990
14991 * util/grub-probe.c: Add include file <grub/raid.h>.
14992 (probe_raid_level): New function.
14993 (probe): Detect abstraction by walking the disk device, support two
14994 level of abstraction (LVM on RAID) when detecting partition map.
14995
24443b5a 149962009-07-31 Pavel Roskin <proski@gnu.org>
14997
14998 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
14999 to grub_zalloc(), it was erroneous.
15000 Reported by Bean <bean123ch@gmail.com>
15001
a275d9e7 150022009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
15003
15004 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 15005 embedding zone, not only the first one.
a275d9e7 15006
56c5a47f 150072009-07-29 Joe Auricchio <jauricchio@gmail.com>
15008
15009 * term/gfxterm.c (clear_char): New function.
15010 (grub_virtual_screen_setup): Use clear_char.
15011 (scroll_up): Likewise.
15012 (grub_virtual_screen_cls): Likewise.
15013
67bb323a 150142009-07-29 Felix Zielcke <fzielcke@z-51.de>
15015
15016 * util/deviceiter.c (get_acceleraid_disk_name): New static
15017 function.
15018 (grub_util_iterate_devices): Handle Accelraid devices.
15019 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
15020
388a7c75 150212009-07-28 Robert Millan <rmh.grub@aybabtu.com>
15022
15023 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
15024 separator for the suggested gfxpayload string (';' collides with the
15025 parser and needs escaping).
15026
3bb7abcf 150272009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
15028
15029 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
15030 Clear direction flag before jumping to OS.
15031 (grub_multiboot2_real_boot): Likewise.
15032
2ddd36d7 150332009-07-28 Felix Zielcke <fzielcke@z-51.de>
15034
15035 * util/i386/pc/grub-install: Fix parsing of --disk-module
15036 option.
15037
c521b62b 150382009-07-28 Felix Zielcke <fzielcke@z-51.de>
15039
15040 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
15041 when embedding.
15042
880e0a0c 150432009-07-26 Felix Zielcke <fzielcke@z-51.de>
15044
15045 * util/grub-mkconfig.in (package_version): New variable.
15046 Use it do display the version.
15047
2366e356 150482009-07-25 Felix Zielcke <fzielcke@z-51.de>
15049
15050 * kern/file.c (grub_file_open): Revert to previous check with
15051 grub_errno.
15052
7ad8c80e 150532009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15054
15055 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
15056 from help line. It's out of sync with code.
15057
72b9658b 150582009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15059
15060 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
15061 entries on failed boot.
15062
77435277 150632009-07-25 Felix Zielcke <fzielcke@z-51.de>
15064
15065 * kern/file.c (grub_file_open): Fix an error check.
15066
fcaa8b21 150672009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
15068
35d16c74 15069 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
15070 partition map couldn't be identified.
fcaa8b21 15071
48904cd1 150722009-07-23 Pavel Roskin <proski@gnu.org>
15073
ef3c317f 15074 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
15075 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
15076 case of little endian words becomes just an optimization.
15077 Respect const modifier.
ad8ea1f4 15078 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 15079
48904cd1 15080 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
15081 to avoid loss of upper bits if align is unsigned and shorter
15082 than addr.
15083
260c9a89 150842009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
15085
15086 UUID support for UFS
15087
15088 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
15089 (grub_ufs_uuid): New function.
15090 (grub_ufs_fs): add .uuid
15091
f76ce889 150922009-07-21 Pavel Roskin <proski@gnu.org>
15093
15094 * kern/dl.c (grub_dl_check_header): Make static.
15095
6a6cbcaf 150962009-07-21 Felix Zielcke <fzielcke@z-51.de>
15097
15098 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
15099 add drivemap for Vista. It breaks Windows 7.
15100
cffcddb2 151012009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
15102
15103 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
15104 128 bytes
15105
1ef44b80 151062009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15107
15108 Add BFS support
15109
15110 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
15111 (grub_fstest_SOURCES): Likewise.
15112 (pkglib_MODULES): Add befs.mod.
15113 (befs_mod_SOURCES): New variable.
15114 (befs_mod_CFLAGS): Likewise.
15115 (befs_mod_LDFLAGS): Likewise.
15116 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
15117 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15118 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15119 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15120 (grub_setup_SOURCES): Likewise.
15121 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15122 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15123 (grub_setup_SOURCES): Likewise.
15124 * fs/befs.c: New file.
15125 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
15126 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
15127 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
15128 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
15129 (B_KEY_INDEX_ALIGN): New declaration.
15130 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
15131 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
15132 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
15133 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
15134 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
15135 (grub_afs_mount) [MODE_BFS]: Likewise.
15136 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
15137 (grub_afs_fs): Use GRUB_AFS_FSNAME
15138 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
15139 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
15140 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
15141 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
15142
4f253044 151432009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
15144
15145 * util/getroot.c (find_root_device): Add support for MacOSX.
15146 * util/hostdisk.c: Likewise.
15147
57a55913 151482009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15149
15150 * font/font.c (find_glyph): Check whether a font is present to avoid
15151 segmentation fault.
75421ca9 15152
151532009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 15154
15155 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
15156
e98cd0c2 151572009-07-20 Pavel Roskin <proski@gnu.org>
15158
15159 * configure.ac: Trim excessively wordy excuses.
15160
1d2d169a 151612009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15162
15163 Add symlink, mtime and label support to AtheFS.
15164
15165 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
15166 (grub_afs_iterate_dir): Handle symlinks.
15167 (grub_afs_open): Use grub_afs_read_symlink.
15168 (grub_afs_dir): Likewise.
15169 Pass mtime.
15170 (grub_afs_label): New function.
15171 (grub_afs_fs): Add grub_afs_label.
15172 (grub_afs_read_symlink): New function.
15173
186f3189 151742009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15175
15176 Fix AtheFS support.
15177
15178 * fs/afs.c: Fix comments style.
15179 (grub_afs_blockrun): Declare as packed.
15180 (grub_afs_datastream): Likewise.
15181 (grub_afs_bnode): Likewise.
15182 (grub_afs_btree): Likewise.
15183 (grub_afs_sblock): Likewise.
15184 Declare `name' as char.
15185 (grub_afs_inode): Declare as packed.
15186 Change void *vnode to grub_uint32_t unused.
15187 (grub_afs_iterate_dir): Check that key_size is positive.
15188 (grub_afs_mount): Don't read superblock twice.
75421ca9 15189 (grub_afs_dir): Don't free node in case of error,
186f3189 15190 grub_fshelp_find_file already handles this.
15191 (grub_afs_open): Likewise.
15192
5680109e 151932009-07-19 Pavel Roskin <proski@gnu.org>
15194
15195 * Makefile.in: Remove LIBLZO and enable_lzo.
15196 * conf/i386-pc.rmk: Remove lzo support.
15197 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
15198 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
15199 support.
15200 * kern/i386/pc/lzo1x.S: Remove.
15201 * kern/i386/pc/startup.S: Remove lzo support.
15202 * util/i386/pc/grub-mkimage.c: Likewise.
15203
ac70fa32 152042009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
15205
15206 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
15207 * fs/xfs.c (grub_xfs_dir): Likewise.
15208 * fs/afs.c (grub_afs_dir): Likewise.
15209 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
15210 (grub_iso9660_open): Likewise.
15211 * fs/jfs.c (grub_jfs_open): Likewise.
15212 * fs/ext2.c (grub_ext2_dir): Likewise.
15213 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
15214 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 15215
eab58da2 152162009-07-16 Pavel Roskin <proski@gnu.org>
15217
d2838156 15218 * configure.ac: Never add "-c" to CFLAGS.
15219
55c70904 15220 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
15221
43e6200c 15222 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
15223 grub_cv_cc_efiemu should be used.
15224
ce7a733d 15225 * configure.ac: Typo fixes.
15226
eab58da2 15227 * kern/mm.c (grub_zalloc): New function.
15228 (grub_debug_zalloc): Likewise.
15229 * include/grub/mm.h: Declare grub_zalloc() and
15230 grub_debug_zalloc().
15231 * util/misc.c (grub_zalloc): New function.
15232 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
15233 instead of grub_malloc(), remove unneeded initializations.
15234 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
15235 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
15236 * commands/parttool.c (grub_cmd_parttool): Likewise.
15237 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
15238 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
15239 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
15240 * disk/usbms.c (grub_usbms_finddevs): Likewise.
15241 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
15242 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
15243 (grub_cmd_efiemu_pnvram): Likewise.
15244 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
15245 * fs/iso9660.c (grub_iso9660_mount): Likewise.
15246 (grub_iso9660_iterate_dir): Likewise.
15247 * fs/jfs.c (grub_jfs_opendir): Likewise.
15248 * fs/ntfs.c (list_file): Likewise.
15249 (grub_ntfs_mount): Likewise.
15250 * kern/disk.c (grub_disk_open): Likewise.
15251 * kern/dl.c (grub_dl_load_core): Likewise.
15252 * kern/elf.c (grub_elf_file): Likewise.
15253 * kern/env.c (grub_env_context_open): Likewise.
15254 (grub_env_set): Likewise.
15255 (grub_env_set_data_slot): Likewise.
15256 * kern/file.c (grub_file_open): Likewise.
15257 * kern/fs.c (grub_fs_blocklist_open): Likewise.
15258 * loader/i386/multiboot.c (grub_module): Likewise.
15259 * loader/xnu.c (grub_xnu_create_key): Likewise.
15260 (grub_xnu_create_value): Likewise.
15261 * normal/main.c (grub_normal_add_menu_entry): Likewise.
15262 (read_config_file): Likewise.
15263 * normal/menu_entry.c (make_screen): Likewise.
15264 * partmap/sun.c (sun_partition_map_iterate): Likewise.
15265 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
15266 * script/sh/script.c (grub_script_parse): Likewise.
15267 * video/bitmap.c (grub_video_bitmap_create): Likewise.
15268 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15269 * video/readers/png.c (grub_png_output_byte): Likewise.
15270 (grub_video_reader_png): Likewise.
15271
830afef7 152722009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 15273
15274 Enable all targets that can be built by default
15275
830afef7 15276 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 15277 grub-mkfont and grub-fstest if they can be built
15278
ee293aee 152792009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 Fix hang and segmentation fault in grub-emu-usb
15282
15283 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
15284 * util/usb.c (grub_libusb_devices): likewise
15285 (grub_libusb_init): rename to ...
15286 (GRUB_MOD_INIT (libusb)):...this
15287 (grub_libusb_fini): rename to ..
15288 (GRUB_MOD_FINI (libusb)):...this
15289 * disk/usbms.c (grub_usbms_transfer): fix retry logic
15290 * include/grub/disk.h (grub_raid_init): removed, it's useless
15291 (grub_raid_fini): likewise
15292 (grub_lvm_init): likewise
15293 (grub_lvm_fini): likewise
15294 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
15295 by grub_init_all
15296
94414221 152972009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15298
15299 Fix libusb
15300
15301 * Makefile.in (LIBUSB): new macro
15302 * genmk.rb (Utility/print_tail): new method
15303 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
15304 (top level): call util.print_tail at the end.
15305
59ade63d 153062009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15307
15308 Make FreeBSD accept zpool.cache
15309
15310 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
15311 type is /boot/zfs/zpool.cache
15312
a58da8c7 153132009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15314
15315 Fix 64-bit efiemu
15316
15317 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
15318 correct wrong typedef
15319 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
15320
20591577 153212009-07-15 Pavel Roskin <proski@gnu.org>
15322
560ca572 15323 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
15324 * kern/disk.c (struct grub_disk_cache): Likewise.
15325
e8e8e4fd 15326 * commands/probe.c (options): Typo fix.
15327
fde24e10 15328 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
15329 Increase to 0x5a to accommodate FAT32. Adjust other offsets
15330 accordingly.
15331 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
15332
379c54c1 15333 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
15334 the end of "Error" to make the message more readable.
15335
7bd8f5bf 15336 * boot/i386/pc/boot.S (kernel_segment): Remove.
15337 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
15338 for destination.
15339
40b132c5 15340 * boot/i386/pc/boot.S (boot_version): Remove.
15341 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
15342 Remove.
15343
20591577 15344 * include/grub/i386/pc/boot.h: Sort all offsets.
15345 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
15346 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
15347 * boot/i386/pc/boot.S: Assert location of every offset listed in
15348 include/grub/i386/pc/boot.h.
15349
2df32b2c 153502009-07-13 Pavel Roskin <proski@gnu.org>
15351
44b5d879 15352 * include/grub/i386/coreboot/machine.h: Rename
15353 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
15354 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
15355 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
15356
17dc3751 15357 * kern/dl.c: Force native word size to suppress warnings when
15358 compiling grub-emu.
15359
2df32b2c 15360 * kern/device.c (grub_device_iterate): Change struct part_ent to
15361 hold the name, not a pointer to it. Use one grub_malloc() per
15362 partition, not two. Free partition_name if grub_malloc() fails.
15363 Set ents to NULL only before grub_partition_iterate() is called.
15364
75c59f59 153652009-07-11 Bean <bean123ch@gmail.com>
15366
15367 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
15368 childname.
15369
0ae1bf88 153702009-07-10 Bean <bean123ch@gmail.com>
153712009-07-10 Robert Millan <rmh.grub@aybabtu.com>
15372
15373 * kern/ieee1275/openfw.c (grub_children_iterate)
15374 (grub_devalias_iterate): Fix size evaluation for property or path
15375 strings, which was broken since r2132.
15376
8279cade 153772009-07-07 Pavel Roskin <proski@gnu.org>
15378
7d8a52d3 15379 * commands/search.c (search_file): Merge into ...
15380 (search_fs): ... this. Accept search type as argument.
15381 (grub_cmd_search): Pass search type to search_fs().
15382
25f9a05a 15383 * include/grub/util/console.h: New file.
15384 * util/console.c: Use it instead of grub/machine/console.h.
15385 * util/grub-emu.c: Likewise.
15386
8279cade 15387 * lib/arg.c (find_long_option): Remove.
15388 (find_long): Add `len' argument, make `s' const char *.
15389 (grub_arg_parse): Parse long options in place, not in a
15390 temporary buffer.
15391
4a11b60f 153922009-07-06 Pavel Roskin <proski@gnu.org>
15393
99f68041 15394 * commands/search.c (search_fs): Fix potential NULL pointer
15395 dereference.
15396
4a11b60f 15397 * commands/search.c (search_fs): Replace QUID macro with quid_fn
15398 function pointer.
15399
e110f4de 154002009-07-06 Daniel Mierswa <impulze@impulze.org>
15401
15402 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
15403 comparison.
15404
46eeb6a2 154052009-07-05 Pavel Roskin <proski@gnu.org>
15406
bab74958 15407 * include/grub/i386/linux.h (struct linux_kernel_params):
15408 Restore padding3, it's still needed.
15409
46eeb6a2 15410 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
15411 FreeBSD.
15412 * util/osdetect.lua: Likewise.
15413
b4a1dc79 154142009-07-05 Bean <bean123ch@gmail.com>
15415
15416 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
15417
15418 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
15419 (grub_lua_getenv): Likewise.
15420 (grub_lua_setenv): Likewise.
15421 (save_errno): New function.
15422 (push_result): Likewise.
15423 (grub_lua_enum_device): Likewise.
15424 (grub_lua_enum_file): Likewise.
15425 (grub_lua_file_open): Likewise.
15426 (grub_lua_file_close): Likewise.
15427 (grub_lua_file_seek): Likewise.
15428 (grub_lua_file_read): Likewise.
15429 (grub_lua_file_getline): Likewise.
15430 (grub_lua_file_getsize): Likewise.
15431 (grub_lua_file_getpos): Likewise.
15432 (grub_lua_file_eof): Likewise.
15433 (grub_lua_file_exist): Likewise.
15434 (grub_lua_add_menu): Likewise.
15435
15436 * script/lua/grub_lua.h (isupper): New inline function.
15437 (islower): Likewise.
15438 (ispunct): Likewise.
15439 (isxdigit): Likewise.
15440 (strcspn): Change to normal function.
15441 (strpbkr): New function declaration.
15442 (memchr): Likewise.
15443
15444 * script/lua/grub_main.c (scan_str): New function.
15445 (strcspn): Likewise.
15446 (strpbrk): Likewise.
15447 (memchr): Likewise.
15448
15449 * script/lua/linit.c (lualibs): Enable the string library.
15450
15451 * util/osdetect.lua: New file.
15452
2da92295 154532009-07-04 Robert Millan <rmh.grub@aybabtu.com>
15454
15455 * include/grub/i386/linux.h (struct linux_kernel_params): Add
15456 `capabilities' member.
15457
b2582ec9 154582009-07-02 Pavel Roskin <proski@gnu.org>
15459
15460 * genparttoollist.sh: Add missing newline at the end.
15461
32622956 154622009-07-01 Pavel Roskin <proski@gnu.org>
15463
87a7339e 15464 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
15465
d23af54e 15466 * util/hostdisk.c (open_device): Remove `const' from
15467 `sysctl_size', as sysctlbyname() can change it (in this case it
15468 doesn't actually happen).
15469
c94b18a9 15470 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
15471 using signed long int constants.
15472
c6cd3ef0 15473 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
15474 constant to avoid a warning on FreeBSD.
15475
0df63420 15476 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
15477 where it's needed.
15478
999577f1 15479 * Makefile.in: Install include/grub/machine symlink.
15480
6f41557f 15481 * Makefile.in: When installing symlinks, use "cp -fR", which
15482 works on FreeBSD and MacOSX.
15483 From Yves Blusseau <cl7m42e02@sneakemail.com>
15484
c8d22988 15485 * kern/dl.c (grub_dl_resolve_symbol): Make static.
15486 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
15487
1b96e952 15488 * util/misc.c: Move grub_reboot() and grub_halt() ...
15489 * util/grub-emu.c: ... here. Make main_env static.
15490 * include/grub/util/misc.h: Remove main_env.
15491
2ef0084d 15492 * kern/mm.c: Use correct format to print size_t.
15493
32622956 15494 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
15495 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
15496 * kern/powerpc/dl.c: Likewise.
15497 * kern/sparc64/dl.c: Likewise.
15498 * kern/x86_64/dl.c: Likewise.
15499
3f7f0cd0 155002009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15501
15502 Fix grub-emu build on sparc64-ieee1275.
15503
75421ca9 15504 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 15505 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
15506
211d06b5 155072009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15508
15509 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
15510 (grub_reboot, grub_halt): New functions.
15511
15512 * util/i386/pc/misc.c: Delete. Update all users.
15513 * util/sparc64/ieee1275/misc.c: Likewise.
15514 * util/powerpc/ieee1275/misc.c: Likewise.
15515
aaf53e3c 155162009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15517
15518 * conf/i386.rmk (setjmp_mod_SOURCES)
15519 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
15520 * conf/common.rmk (setjmp_mod_SOURCES)
15521 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
15522 to use $(target_cpu).
15523 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
15524 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
15525 * conf/powerpc-ieee1275.rmk: Likewise.
15526 * conf/sparc64-ieee1275.rmk: Likewise.
15527
15528 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
15529 $(target_cpu) for kern/$(target_cpu)/dl.c.
15530 * conf/i386-efi.rmk: Likewise.
15531 * conf/i386-ieee1275.rmk: Likewise.
15532 * conf/x86_64-efi.rmk: Likewise.
15533 * conf/i386-coreboot.rmk: Likewise.
15534 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
15535 $(target_cpu) for kern/$(target_cpu)/dl.c and for
15536 kern/$(target_cpu)/cache.S.
15537 * conf/sparc64-ieee1275.rmk: Likewise.
15538
a337130b 155392009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15540
15541 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
15542 type to `grub_uint8_t', and adjust `padding9' accordingly.
15543
c6fe4d53 155442009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15545
b09db61d 15546 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
15547
c6fe4d53 15548 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
15549 assembly in final jump, using register constraints.
15550
b09db61d 15551 (grub_linux_boot): For text mode, initialize `have_vga' using
15552 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
15553
15554 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
15555 right before the final jump.
15556
15557 Set `video_mode' to 0x3.
15558
15559 Document initialization of `video_page', `video_mode' and
15560 `video_ega_bx'.
15561
28333ad0 155622009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15563
15564 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
15565 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 15566 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 15567
02164e1b 155682009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15569
15570 Fix build on Debian / sparc.
15571
15572 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
15573
18b6c557 155742009-06-28 Pavel Roskin <proski@gnu.org>
15575
85f2aab6 15576 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
15577 fix a warning.
15578
18b6c557 15579 * util/grub.d/10_linux.in: Match SUSE style initrd names.
15580
ad760f81 155812009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15582
15583 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
15584 `err'.
15585
87a4623b 155862009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15587
15588 Revert r2338.
15589
15590 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
15591 file can't be opened. grub_file_open() is already supposed to set
75421ca9 15592 grub_errno / grub_errmsg appropriately.
87a4623b 15593 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15594
8231fb77 155952009-06-27 Pavel Roskin <proski@gnu.org>
155962009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15597
15598 * include/grub/dl.h: Include grub/elf.h.
15599 (struct grub_dl): Add symtab field.
15600 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
15601 GRUB_MODULES_MACHINE_READONLY.
15602 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
15603 of the header for read-only modules.
15604 (grub_dl_unload): Free mod->symtab for read-only modules.
15605 * kern/i386/dl.c: Use mod->symtab.
15606 * kern/powerpc/dl.c: Likewise.
15607 * kern/sparc64/dl.c: Likewise.
15608 * kern/x86_64/dl.c: Likewise.
15609
15610 * conf/i386-qemu.rmk: New file.
15611 * kern/i386/qemu/startup.S: Likewise.
15612 * kern/i386/qemu/mmap.c: Likewise.
15613 * boot/i386/qemu/boot.S: Likewise.
15614 * include/grub/i386/qemu/time.h: Likewise.
15615 * include/grub/i386/qemu/serial.h: Likewise.
15616 * include/grub/i386/qemu/kernel.h: Likewise.
15617 * include/grub/i386/qemu/console.h: Likewise.
15618 * include/grub/i386/qemu/boot.h: Likewise.
15619 * include/grub/i386/qemu/init.h: Likewise.
15620 * include/grub/i386/qemu/machine.h: Likewise.
15621 * include/grub/i386/qemu/loader.h: Likewise.
15622 * include/grub/i386/qemu/memory.h: Likewise.
15623
15624 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
15625 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
15626 [qemu] (pkglib_IMAGES): Add `boot.img'.
15627 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
15628 [qemu] (boot_img_FORMAT): New variables.
15629 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
15630 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
15631 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
15632 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15633 [qemu] (kernel_img_FORMAT): New variables.
15634
15635 * configure.ac: Recognise `i386-qemu'.
15636
15637 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
15638 (for no compression).
15639 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
15640 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
15641 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
15642 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
15643 ifdefs).
15644
97fe384e 156452009-06-27 Pavel Roskin <proski@gnu.org>
15646
15647 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
15648 read.
15649 * efiemu/prepare32.c: Likewise.
15650 * efiemu/prepare64.c: Likewise.
15651
c402ab17 156522009-06-26 Pavel Roskin <proski@gnu.org>
15653
15654 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
15655 * include/grub/elf.h: Define symbols without "32" or "64" based
15656 on GRUB_TARGET_WORDSIZE.
15657 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
15658 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
15659 ELF definitions.
15660 * efiemu/loadcore64.c: Likewise.
15661 * loader/i386/bsd32.c: Likewise.
15662 * loader/i386/bsd64.c: Likewise.
15663 * kern/dl.c: Remove own ELF definitions.
15664 * util/i386/efi/grub-mkimage.c: Likewise.
15665
9bbdfd4d 156662009-06-23 Robert Millan <rmh.grub@aybabtu.com>
15667
15668 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
15669 segment 0x0 unconditionally, because the reference generated by
15670 GAS is an absolute address.
15671
a42ce6e9 156722009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15673
15674 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
15675 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
15676
c952cf92 156772009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15678
15679 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
15680 indexes. Check for -f explicitly.
cc3752ad 15681 (search_file): Improve error message.
15682 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 15683
132a0a59 156842009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15685
15686 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
15687 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
15688
387a140c 156892009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15690
15691 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
15692 * conf/i386-ieee1275.rmk: Likewise.
15693 * conf/i386-coreboot.rmk: Likewise.
15694
15695 * kern/i386/pc/startup.S (grub_stop): Remove function.
15696 * kern/i386/ieee1275/startup.S: Likewise.
15697 * kern/i386/coreboot/startup.S: Likewise.
15698 * kern/i386/misc.S (grub_stop): New function.
15699
41da9665 157002009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15701
15702 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
15703 * kern/i386/realmode.S (real_to_prot): ... to here.
15704
bf337234 157052009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15706
15707 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
15708 with `kernel.img'.
15709 (kernel_elf_SOURCES): Rename to ...
15710 (kernel_img_SOURCES): ... this.
15711 (kernel_elf_HEADERS): Rename to ...
15712 (kernel_img_HEADERS): ... this. Update all users.
15713 (kernel_elf_ASFLAGS): Rename to ...
15714 (kernel_img_ASFLAGS): ... this.
15715 (kernel_elf_CFLAGS): Rename to ...
15716 (kernel_img_CFLAGS): ... this.
15717 (kernel_elf_LDFLAGS): Rename to ...
15718 (kernel_img_LDFLAGS): ... this.
15719 * conf/i386-coreboot.rmk: Likewise.
15720 * conf/powerpc-ieee1275.rmk: Likewise.
15721
15722 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
15723 with "kernel.img".
15724
f52196ff 157252009-06-21 Pavel Roskin <proski@gnu.org>
15726
c3cee413 15727 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
15728 to match nested functions.
15729 * loader/sparc64/ieee1275/linux.c: Likewise.
15730
f52196ff 15731 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
15732
58750afc 157332009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15734
15735 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
15736 all i386 platforms.
15737
15355c7d 157382009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15739
15740 Fix asm file handling on ELF, and remove workarounds.
15741
15742 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 15743 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 15744 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
15745 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
15746
3f3ec72b 157472009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
15748
15749 Load BSD ELF modules
15750
15751 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
15752 and loader/i386/bsd64.c
15753 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
15754 (FREEBSD_MODTYPE_ELF_MODULE): New definition
15755 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
15756 (grub_freebsd_load_elfmodule32): New declaration
15757 (grub_freebsd_load_elfmoduleobj64): Likewise
15758 (grub_freebsd_load_elf_meta32): Likewise
15759 (grub_freebsd_load_elf_meta64): Likewise
15760 (grub_freebsd_add_meta): Likewise
15761 (grub_freebsd_add_meta_module): Likewise
15762 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
15763 (grub_freebsd_add_meta_module): Likewise and move module-specific
15764 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
15765 (grub_cmd_freebsd): Add elf-kernel specific parts
15766 based on grub_freebsd_add_meta_module
15767 (grub_cmd_freebsd_module): Add type parsing moved from
15768 grub_freebsd_add_meta_module
15769 (grub_cmd_freebsd_module_elf): New function
15770 (cmd_freebsd_module_elf): New variable
15771 (GRUB_MOD_INIT): Register freebsd_module_elf
15772 * loader/i386/bsd32.c: New file
15773 * loader/i386/bsd64.c: Likewise
15774 * loader/i386/bsdXX.c: Likewise
15775 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
15776 (grub_elf64_load): Likewise
15777 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
15778 All users updated
15779 (grub_elf64_load_hook_t): Likewise
15780
0db15301 157812009-06-21 Colin Watson <cjwatson@ubuntu.com>
15782
15783 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
15784 variable.
15785 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
15786 don't write a menu entry for recovery mode.
15787
546796c1 157882009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15789
15790 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
15791 after it's no longer needed.
15792
cd7310d5 157932009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15794
15795 * include/grub/i386/loader.h (grub_linux_prot_size)
15796 (grub_linux_tmp_addr, grub_linux_real_addr)
15797 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
15798 GRUB_MACHINE_PCBIOS.
15799 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
15800 common grub_util_info() call to ...
15801 (generate_image): ... here.
15802 Fix use of uninitialized memory, comparison of signed with
15803 unsigned integers and memory leak.
15804 Remove bogus module address message.
15805
ab32d3b5 158062009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15807
15808 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
15809 grub_raid_register
15810 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
15811
024ef597 158122009-06-19 Pavel Roskin <proski@gnu.org>
15813
15814 * configure.ac: Remove stray AC_MSG_CHECKING.
15815
3ac72b51 158162009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
15817
15818 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 15819
e14cd814 158202009-06-18 Pavel Roskin <proski@gnu.org>
15821
15822 * conf/common.rmk: Add fs_file.mod.
15823 * disk/fs_file.c: New file.
15824 * include/grub/disk.h (enum grub_disk_dev_id): Add
15825 GRUB_DISK_DEVICE_FILE_ID.
15826
26586d98 158272009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15828
15829 Fix build with Apple's toolchain. Part 2
15830
15831 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
15832 a fake start
15833
26de2bcd 158342009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15835
15836 Fix build with Apple's toolchain. Part 1
15837
15838 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
15839 for long calls
15840 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 15841 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 15842 Apple's toolchain
15843
09b3490b 158442009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15845
15846 Fix warnings
15847
15848 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
15849 (decomp_block): initialize ch
15850 use grub_memcpy instead of memcpy
15851
c22a006a 158522009-06-17 Pavel Roskin <proski@gnu.org>
15853
d3638678 15854 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
15855 version, use declarations needed to use vga_text as the startup
15856 console.
15857
c22a006a 15858 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
15859 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
15860 the kernel.
15861 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
15862 and grub_at_keyboard_fini(), it's done on module load and
15863 unload.
15864
05b129e0 158652009-06-17 Felix Zielcke <fzielcke@z-51.de>
15866
15867 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
15868 file can't be found.
15869 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15870
cf24ed9e 158712009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 Fix newline handling
15874
15875 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 15876 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 15877 (grub_script_yylex): don't segfault on unterminated script
15878 newline terminates command and variable
15879
74aa8e4b 158802009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15881
15882 avoid double grub_adjust_range call. Bug reported by David Simner
15883
15884 * kern/disk.c (grub_disk_write): change to raw disk access before
15885 calling disk_read
15886
1bd265f3 158872009-06-17 Colin Watson <cjwatson@ubuntu.com>
15888
15889 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
15890 spaces, for the benefit of help2man.
15891 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15892
a2d08c06 158932009-06-16 Pavel Roskin <proski@gnu.org>
15894
15895 * kern/i386/halt.c: Include grub/machine/init.h.
15896 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
15897
b97bcb19 158982009-06-16 Felix Zielcke <fzielcke@z-51.de>
15899
15900 * util/grub.d/30_os-prober.in: Use ${root} in the generated
15901 drivemap menuentry.
15902
0644f96c 159032009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
15904
15905 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
15906 `echo' command.
15907
3ef17a2e 159082009-06-16 Pavel Roskin <proski@gnu.org>
15909
15910 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
15911 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
15912 save %dx, we only need %dl and we never change it.
15913 * boot/i386/pc/cdboot.S: Don't set the root drive.
15914 * boot/i386/pc/pxeboot.S: Likewise.
15915 * include/grub/i386/pc/boot.h: Remove
15916 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
15917 GRUB_BOOT_MACHINE_DRIVE_CHECK.
15918 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
15919 * kern/i386/pc/init.c (make_install_device): Remove references
15920 to grub_root_drive.
15921 * kern/i386/pc/startup.S: Likewise.
15922 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
15923
693fe637 159242009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15925
15926 xnu_uuid command
15927
15928 * commands/xnu_uuid.c: new file
15929 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
15930 (xnu_uuid_mod_SOURCES): new variable
15931 (xnu_uuid_mod_CFLAGS): likewise
15932 (xnu_uuid_mod_LDFLAGS): likewise
15933 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15934 * conf/i386-ieee1275.rmk: likewise
15935 * conf/i386-pc.rmk: likewise
15936 * conf/powerpc-ieee1275.rmk: likewise
15937 * conf/sparc64-ieee1275.rmk: likewise
15938 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
15939
c9da87d0 159402009-06-16 Pavel Roskin <proski@gnu.org>
15941
15942 * configure.ac: Avoid '==' in test command, it's not portable.
15943
9c6f4596 159442009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15945
15946 Probe command
15947
15948 * commands/probe.c: new file
15949 * conf/common.rmk (pkglib_MODULES): add probe.mod
15950 (probe_mod_SOURCES): new variable
15951 (probe_mod_CFLAGS): likewise
15952 (probe_mod_LDFLAGS): likewise
15953 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15954 * conf/i386-ieee1275.rmk: likewise
15955 * conf/i386-pc.rmk: likewise
15956 * conf/powerpc-ieee1275.rmk: likewise
15957 * conf/sparc64-ieee1275.rmk: likewise
15958
70b7f9fd 159592009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 Fix handling of string like \"hello\" and "a
15962 b"
15963
15964 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
15965 (grub_script_yylex): fix parsing of quoting, escaping and newline
15966
71c79a6b 159672009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
15968
dd74360c 15969 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 15970 handling
dd74360c 15971
0644f96c 159722009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 15973
15974 * util/grub-mkconfig.in: Fix parsing of --output option.
15975
e40893c3 159762009-06-12 Pavel Roskin <proski@gnu.org>
15977
15978 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
15979 genmk.rb don't need to be generated or installed.
15980
3a1acfe2 159812009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15982
15983 * commands/i386/pc/drivemap_int13h.S: add more comments
15984
3a4575d4 159852009-06-11 Pavel Roskin <proski@gnu.org>
15986
0658e928 15987 * Makefile.in (uninstall): Uninstall manuals.
15988
ca0388f0 15989 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
15990 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
15991 and update-grub_lib in two places.
15992 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
15993
e3b27c39 15994 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
15995 a compiler warning.
15996
3a4575d4 15997 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
15998 `entry_lo' to fix variable shadowing.
15999
af1f4f55 160002009-06-11 Christian Franke <franke@computer.org>
16001
16002 * kern/misc.c (__enable_execute_stack): Add missing return type
16003 to prevent gcc warning.
16004
5225e649 160052009-06-11 Felix Zielcke <fzielcke@z-51.de>
16006
16007 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
16008
7d83bd47 160092009-06-11 Pavel Roskin <proski@gnu.org>
16010
c1cb63ba 16011 * Makefile.in: Don't rely on any scripts being executable.
16012 Always use $(SHELL) to run shell scripts.
16013
7d83bd47 16014 * configure.ac: Always define ___main if using -nostdlib. This
16015 fixes tests on Cygwin.
16016
948f48e7 160172009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
16018
16019 UDF fix
16020
7d83bd47 16021 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 16022 is in bytes and not in blocks
7d83bd47 16023
8ada9bc1 160242009-06-11 Pavel Roskin <proski@gnu.org>
16025
16026 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
16027 warning.
16028
25ad2323 160292009-06-11 Felix Zielcke <fzielcke@z-51.de>
16030
16031 * util/grub.d/30_os-prober.in: Fix a comment. Source
16032 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
16033 to set the root device. Place drivemap command in the generated
16034 chain entry.
16035
e65acb0c 160362009-06-11 Pavel Roskin <proski@gnu.org>
16037
16038 * configure.ac: Remove host_m32. Issues with 64-bit utilities
16039 have long been resolved.
16040
f285fe2d 160412009-06-11 Colin Watson <cjwatson@ubuntu.com>
16042
bd47b0b5 16043 * util/grub.d/10_linux.in: Capitalise "Linux".
16044
f285fe2d 16045 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
16046
a0c62e4e 160472009-06-11 Pavel Roskin <proski@gnu.org>
16048
b6783cb2 16049 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
16050 fix a gcc warning and ensure that the function won't ever exit.
16051
dde032e8 16052 * kern/i386/ieee1275/init.c: Add missing prototype for
16053 grub_stop_floppy().
16054
22cd079d 16055 * loader/ieee1275/multiboot2.c [__i386__]: Include
16056 grub/cpu/multiboot.h.
16057
a0c62e4e 16058 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
16059 casts to short - they are not portable and cause warnings. Fix
16060 use of uninitialized values in input_buf. Use ARRAY_SIZE.
16061
63963d17 160622009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
16063
16064 Drivemap fixes
16065
16066 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
16067 new function
16068 (grub_get_root_biosnumber_saved): new variable
16069 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
16070 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 16071 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 16072 %dx after the call if necessary
16073 * conf/common.rmk (pkglib_MODULES): remove boot.mod
16074 (boot_mod_SOURCES): remove
16075 (boot_mod_CFLAGS): remove
16076 (boot_mod_LDFLAGS): remove
16077 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
16078 (boot_mod_SOURCES): new variable
16079 (boot_mod_CFLAGS): likewise
16080 (boot_mod_LDFLAGS): likewise
16081 * conf/i386-efi.rmk: likewise
16082 * conf/i386-ieee1275.rmk: likewise
16083 * conf/i386-pc.rmk: likewise
16084 * conf/powerpc-ieee1275.rmk: likewise
16085 * conf/sparc64-ieee1275.rmk: likewise
16086 * conf/x86_64-efi.rmk: likewise
16087 * include/grub/i386/pc/biosnum.h: new file
16088 * lib/i386/pc/biosnum.c: likewise
16089 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
16090 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
16091 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 16092
33abf7ae 160932009-06-10 Pavel Roskin <proski@gnu.org>
16094
5ac35b35 16095 * io/gzio.c (test_header): Don't reuse one buffer for all data.
16096 Use separate variables. Read only the file size at the end, but
16097 not the checksum that we don't use.
16098
5c5215d5 16099 * kern/file.c (grub_file_read): Use void pointer for the buffer.
16100 Adjust all callers.
16101
27d5fef7 16102 * kern/ieee1275/openfw.c: Remove libc includes.
16103 * kern/ieee1275/cmain.c: Likewise.
16104 * include/grub/ieee1275/ieee1275.h: Likewise.
16105
33abf7ae 16106 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
16107 compiler warnings.
16108
19d50c2b 161092009-06-10 Felix Zielcke <fzielcke@z-51.de>
16110
16111 * Makefile.in: Remove all trailing whitespace.
16112 * conf/i386-pc.rmk: Likewise.
16113 * conf/powerpc-ieee1275.rmk: Likewise.
16114 * conf/sparc64-ieee1275.rmk: Likewise.
16115 * docs/grub.texi: Likewise.
16116 * docs/texinfo.tex: Likewise.
16117 * disk/fs_uuid.c: Likewise.
16118 * disk/lvm.c: Likewise.
16119 * disk/scsi.c: Likewise.
16120 * disk/ata.c: Likewise.
16121 * disk/ieee1275/ofdisk.c: Likewise.
16122 * disk/i386/pc/biosdisk.c: Likewise.
16123 * disk/host.c: Likewise.
16124 * disk/raid.c: Likewise.
16125 * disk/efi/efidisk.c: Likewise.
16126 * disk/usbms.c: Likewise.
16127 * disk/memdisk.c: Likewise.
16128 * disk/loopback.c: Likewise.
16129 * kern/powerpc/dl.c: Likewise.
16130 * kern/device.c: Likewise.
16131 * kern/dl.c: Likewise.
16132 * kern/sparc64/dl.c: Likewise.
16133 * kern/ieee1275/ieee1275.c: Likewise.
16134 * kern/term.c: Likewise.
16135 * kern/fs.c: Likewise.
16136 * kern/i386/dl.c: Likewise.
16137 * kern/i386/pc/startup.S: Likewise.
16138 * kern/i386/pc/init.c: Likewise.
16139 * kern/i386/pc/mmap.c: Likewise.
16140 * kern/i386/pc/lzo1x.S: Likewise.
16141 * kern/i386/ieee1275/init.c: Likewise.
16142 * kern/i386/realmode.S: Likewise.
16143 * kern/i386/tsc.c: Likewise.
16144 * kern/partition.c: Likewise.
16145 * kern/corecmd.c: Likewise.
16146 * kern/file.c: Likewise.
16147 * kern/efi/efi.c: Likewise.
16148 * kern/efi/init.c: Likewise.
16149 * kern/efi/mm.c: Likewise.
16150 * kern/main.c: Likewise.
16151 * kern/err.c: Likewise.
16152 * kern/env.c: Likewise.
16153 * kern/disk.c: Likewise.
16154 * kern/generic/millisleep.c: Likewise.
16155 * kern/generic/rtc_get_time_ms.c: Likewise.
16156 * kern/misc.c: Likewise.
16157 * kern/parser.c: Likewise.
16158 * genmk.rb: Likewise.
16159 * configure.ac: Likewise.
16160 * boot/i386/pc/diskboot.S: Likewise.
16161 * boot/i386/pc/pxeboot.S: Likewise.
16162 * boot/i386/pc/boot.S: Likewise.
16163 * boot/i386/pc/lnxboot.S: Likewise.
16164 * boot/i386/pc/cdboot.S: Likewise.
16165 * parttool/pcpart.c: Likewise.
16166 * video/readers/tga.c: Likewise.
16167 * video/video.c: Likewise.
16168 * video/bitmap.c: Likewise.
16169 * lib/envblk.c: Likewise.
16170 * lib/i386/setjmp.S: Likewise.
16171 * fs/xfs.c: Likewise.
16172 * fs/afs.c: Likewise.
16173 * fs/fat.c: Likewise.
16174 * fs/ntfs.c: Likewise.
16175 * fs/udf.c: Likewise.
16176 * fs/affs.c: Likewise.
16177 * fs/iso9660.c: Likewise.
16178 * fs/hfs.c: Likewise.
16179 * fs/fshelp.c: Likewise.
16180 * fs/ext2.c: Likewise.
16181 * fs/jfs.c: Likewise.
16182 * fs/reiserfs.c: Likewise.
16183 * fs/hfsplus.c: Likewise.
16184 * fs/minix.c: Likewise.
16185 * fs/cpio.c: Likewise.
16186 * fs/sfs.c: Likewise.
16187 * fs/ufs.c: Likewise.
16188 * efiemu/prepare.c: Likewise.
16189 * efiemu/loadcore_common.c: Likewise.
16190 * efiemu/runtime/efiemu.sh: Likewise.
16191 * efiemu/runtime/efiemu.S: Likewise.
16192 * efiemu/runtime/efiemu.c: Likewise.
16193 * efiemu/pnvram.c: Likewise.
16194 * efiemu/main.c: Likewise.
16195 * efiemu/i386/pc/cfgtables.c: Likewise.
16196 * efiemu/i386/loadcore64.c: Likewise.
16197 * efiemu/i386/loadcore32.c: Likewise.
16198 * efiemu/loadcore.c: Likewise.
16199 * efiemu/symbols.c: Likewise.
16200 * efiemu/mm.c: Likewise.
16201 * include/grub/autoefi.h: Likewise.
16202 * include/grub/datetime.h: Likewise.
16203 * include/grub/term.h: Likewise.
16204 * include/grub/hfs.h: Likewise.
16205 * include/grub/lvm.h: Likewise.
16206 * include/grub/i386/tsc.h: Likewise.
16207 * include/grub/i386/linux.h: Likewise.
16208 * include/grub/i386/xnu.h: Likewise.
16209 * include/grub/i386/efiemu.h: Likewise.
16210 * include/grub/i386/pc/biosdisk.h: Likewise.
16211 * include/grub/i386/pc/memory.h: Likewise.
16212 * include/grub/i386/pc/vbe.h: Likewise.
16213 * include/grub/parttool.h: Likewise.
16214 * include/grub/video.h: Likewise.
16215 * include/grub/memory.h: Likewise.
16216 * include/grub/fs.h: Likewise.
16217 * include/grub/partition.h: Likewise.
16218 * include/grub/xnu.h: Likewise.
16219 * include/grub/efi/api.h: Likewise.
16220 * include/grub/efi/pe32.h: Likewise.
16221 * include/grub/efi/memory.h: Likewise.
16222 * include/grub/multiboot.h: Likewise.
16223 * include/grub/usbdesc.h: Likewise.
16224 * include/grub/multiboot2.h: Likewise.
16225 * include/grub/acpi.h: Likewise.
16226 * include/grub/efiemu/efiemu.h: Likewise.
16227 * include/grub/disk.h: Likewise.
16228 * include/grub/ieee1275/ieee1275.h: Likewise.
16229 * include/grub/net.h: Likewise.
16230 * include/grub/machoload.h: Likewise.
16231 * include/grub/macho.h: Likewise.
16232 * include/multiboot.h: Likewise.
16233 * genmoddep.awk: Likewise.
16234 * normal/main.c: Likewise.
16235 * normal/menu_entry.c: Likewise.
16236 * normal/menu_viewer.c: Likewise.
16237 * normal/completion.c: Likewise.
16238 * normal/cmdline.c: Likewise.
16239 * normal/misc.c: Likewise.
16240 * normal/datetime.c: Likewise.
16241 * bus/usb/usbtrans.c: Likewise.
16242 * bus/usb/ohci.c: Likewise.
16243 * bus/usb/uhci.c: Likewise.
16244 * bus/usb/usb.c: Likewise.
16245 * mmap/efi/mmap.c: Likewise.
16246 * mmap/i386/pc/mmap_helper.S: Likewise.
16247 * mmap/i386/pc/mmap.c: Likewise.
16248 * mmap/i386/mmap.c: Likewise.
16249 * mmap/i386/uppermem.c: Likewise.
16250 * mmap/mmap.c: Likewise.
16251 * commands/acpi.c: Likewise.
16252 * commands/echo.c: Likewise.
16253 * commands/blocklist.c: Likewise.
16254 * commands/loadenv.c: Likewise.
16255 * commands/usbtest.c: Likewise.
16256 * commands/boot.c: Likewise.
16257 * commands/parttool.c: Likewise.
16258 * commands/search.c: Likewise.
16259 * commands/cat.c: Likewise.
16260 * commands/i386/pc/play.c: Likewise.
16261 * commands/i386/pc/drivemap.c: Likewise.
16262 * commands/i386/pc/vbeinfo.c: Likewise.
16263 * commands/i386/pc/acpi.c: Likewise.
16264 * commands/i386/pc/vbetest.c: Likewise.
16265 * commands/ls.c: Likewise.
16266 * commands/cmp.c: Likewise.
16267 * commands/test.c: Likewise.
16268 * commands/efi/acpi.c: Likewise.
16269 * commands/gptsync.c: Likewise.
16270 * commands/help.c: Likewise.
16271 * partmap/amiga.c: Likewise.
16272 * partmap/apple.c: Likewise.
16273 * partmap/acorn.c: Likewise.
16274 * partmap/pc.c: Likewise.
16275 * partmap/sun.c: Likewise.
16276 * partmap/gpt.c: Likewise.
16277 * script/sh/lexer.c: Likewise.
16278 * script/sh/function.c: Likewise.
16279 * font/font.c: Likewise.
16280 * font/font_cmd.c: Likewise.
16281 * loader/powerpc/ieee1275/linux.c: Likewise.
16282 * loader/efi/chainloader.c: Likewise.
16283 * loader/multiboot_loader.c: Likewise.
16284 * loader/macho.c: Likewise.
16285 * loader/i386/multiboot.c: Likewise.
16286 * loader/i386/linux.c: Likewise.
16287 * loader/i386/pc/linux.c: Likewise.
16288 * loader/i386/pc/multiboot2.c: Likewise.
16289 * loader/i386/pc/chainloader.c: Likewise.
16290 * loader/i386/pc/xnu.c: Likewise.
16291 * loader/i386/bsd_trampoline.S: Likewise.
16292 * loader/i386/efi/linux.c: Likewise.
16293 * loader/i386/multiboot_elfxx.c: Likewise.
16294 * loader/i386/bsd_helper.S: Likewise.
16295 * loader/i386/bsd.c: Likewise.
16296 * loader/i386/linux_trampoline.S: Likewise.
16297 * loader/i386/xnu_helper.S: Likewise.
16298 * loader/i386/xnu.c: Likewise.
16299 * loader/i386/bsd_pagetable.c: Likewise.
16300 * loader/i386/multiboot_helper.S: Likewise.
16301 * loader/xnu.c: Likewise.
16302 * loader/xnu_resume.c: Likewise.
16303 * io/gzio.c: Likewise.
16304 * term/efi/console.c: Likewise.
16305 * term/terminfo.c: Likewise.
16306 * term/ieee1275/ofconsole.c: Likewise.
16307 * term/i386/pc/serial.c: Likewise.
16308 * term/i386/pc/vesafb.c: Likewise.
16309 * term/i386/pc/vga.c: Likewise.
16310 * term/usb_keyboard.c: Likewise.
16311 * term/gfxterm.c: Likewise.
16312 * aclocal.m4: Likewise.
16313 * util/lvm.c: Likewise.
16314 * util/grub.d/30_os-prober.in: Likewise.
16315 * util/grub.d/10_hurd.in: Likewise.
16316 * util/console.c: Likewise.
16317 * util/grub-macho2img.c: Likewise.
16318 * util/grub-probe.c: Likewise.
16319 * util/hostfs.c: Likewise.
16320 * util/i386/pc/grub-mkimage.c: Likewise.
16321 * util/i386/pc/grub-setup.c: Likewise.
16322 * util/i386/efi/grub-mkimage.c: Likewise.
16323 * util/grub-mkconfig.in: Likewise.
16324 * util/raid.c: Likewise.
16325 * util/resolve.c: Likewise.
16326 * util/grub-mkdevicemap.c: Likewise.
16327 * util/grub-emu.c: Likewise.
16328 * util/getroot.c: Likewise.
16329 * util/hostdisk.c: Likewise.
16330 * util/usb.c: Likewise.
16331 * util/grub-editenv.c: Likewise.
16332 * util/misc.c: Likewise.
16333
d2d49665 163342009-06-10 Felix Zielcke <fzielcke@z-51.de>
16335
16336 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
16337 `genparttoollist.sh'.
16338 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
16339 Add `*.sh' to the list find searches for and change `mdate.sh'
16340 to `mdate-sh'.
16341
fe052e37 163422009-06-10 Pavel Roskin <proski@gnu.org>
16343
2763ac18 16344 * include/grub/multiboot2.h: Provide compatibility defines for
16345 multiboot2.h.
16346 * include/multiboot2.h: Include stdint.h only if needed, using
16347 angle brackets.
16348 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
16349 grub/multiboot2.h.
16350 * loader/ieee1275/multiboot2.c: Likewise.
16351 * loader/multiboot2.c: Likewise.
16352 * loader/multiboot_loader.c: Likewise.
16353
437e6adc 16354 * configure.ac: Use -nostdlib when probing for the target. It
16355 should not be required to have libc for the target.
16356
06a6836c 16357 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
16358 they fail without libc headers for the target.
16359 * include/grub/powerpc/libgcc.h: Use weak attribute for all
16360 exports.
16361 * include/grub/sparc64/libgcc.h: Likewise. Don't use
16362 preprocessor conditionals.
16363
fe052e37 16364 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
16365 build system doesn't need to be aware of the tar.c internals.
16366
afd22553 163672009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 16368
afd22553 16369 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 16370
6b787c4f 163712009-06-09 Robert Millan <rmh.grub@aybabtu.com>
16372
16373 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
16374 disk limit to 26 for IDE, Virtio, Xen and SCSI.
16375
163762009-06-09 Felix Zielcke <fzielcke@z-51.de>
16377
16378 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 16379 aren't available if ata.mod gets used.
6b787c4f 16380
473d1e45 163812009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 16382
473d1e45 16383 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 16384 initialising controller.
473d1e45 16385 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 16386
255a27d4 163872009-06-08 Felix Zielcke <fzielcke@z-51.de>
16388
16389 * util/i386/pc/grub-install.in: Add a parameter --disk-module
16390 to choose between ata and biosdisk module on i386-pc.
16391
473d1e45 163922009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 16393
d55842d8 16394 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
16395 Subclass and Programming Interface fields in terms of the 3 byte
16396 Class Code register.
16397 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16398
fa5db0b1 16399 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
16400 interface is OHCI. Add grub_dprintf for symmetry with
16401 bus/usb/uhci.c.
16402 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
16403 interface is UHCI. Add interf variable for programming
16404 interface. Print interface with class/subclass.
16405
c0947beb 16406 * bus/usb/ohci.c: Set interf with correct field.
16407
69da8877 16408 * bus/usb/uhci.c: Remove unneeded doubled lines.
16409 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
16410 Remove whitespace inside comment.
16411
9e172e30 164122009-06-08 Robert Millan <rmh.grub@aybabtu.com>
16413
16414 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
16415 as fallback an equivalent option without depth.
16416
de65ee2b 164172009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16418
16419 Not fail if unable to retrieve C/H/S on LBA disks
16420
473d1e45 16421 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 16422 if unable to retrieve C/H/S on LBA disks
16423
b57ea2c9 164242009-06-08 Pavel Roskin <proski@gnu.org>
16425
16426 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
16427 about aliasing.
16428
af361263 164292009-06-08 Felix Zielcke <fzielcke@z-51.de>
16430
16431 * Makefile.in (uninstall): Remove all $lib_DATA files.
16432
4c9ec6b3 164332009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16434
16435 Bugfix: install on partitionless device
16436
16437 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
16438 is a whole disk
16439
e76fc924 164402009-06-08 Felix Zielcke <fzielcke@z-51.de>
16441
16442 * Makefile.in (uninstall): Remove all $include_DATA files.
16443
ba5a0d05 164442009-06-08 Felix Zielcke <fzielcke@z-51.de>
16445
16446 * commands/true.c: New file. Implement the true and false commands.
16447 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
16448 (true_mod_SOURCES): New variable.
16449 (true_mod_CFLAGS): Likewise.
16450 (true_mod_LDFLAGS): Likewise.
16451
c8048e32 164522009-06-05 Colin D Bennett <colin@gibibit.com>
16453
16454 Optimized font character lookup using binary search instead of linear
16455 search. Fonts now are required to have the character index ordered by
16456 code point.
16457
16458 * font/font.c (load_font_index): Verify that fonts have ordered
16459 character indices.
16460 (find_glyph): Use binary search instead of linear search to find a
16461 character in a font.
16462
408305be 164632009-06-05 Michael Scherer <misc@mandriva.org>
16464
16465 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
16466 uses case sensitive btree.
16467 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
16468 only for case insensitive filesystems.
16469
8ee1e0d9 164702009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
16471
16472 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
16473 * conf/common.rmk (search_mod_CFLAGS): likewise
16474
a9966eb1 164752009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16476
473d1e45 16477 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 16478 compensate a compiler bug
16479
9e7100fb 164802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16481
473d1e45 16482 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 16483 instead of '\b'
473d1e45 16484
ede21d71 164852009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 Definitions for creating asm symbols with Apple's CC
16488
16489 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
16490 [APPLE_CC] (VARIABLE): likewise
16491
9dbf7653 164922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16493
16494 Disable lnxboot.img when compiled
16495 with Apple's CC
16496
16497 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
16498 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
16499 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
16500 [! APPLE_CC] (CODE_LENG): skip
16501 [! APPLE_CC] (setup_sects): likewise
16502 [! APPLE_CC]: skip filling
473d1e45 16503
e93cdc3d 165042009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16505
16506 Address in trampolines based on 32-bit registers when compiled
16507 with Apple's CC
16508
473d1e45 16509 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 16510 for addresses
16511 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
16512
6c688477 165132009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16514
16515 Avoid aliases when compiling with Apple's CC for PCBIOS machine
16516
16517 * kern/misc.c [APPLE_CC] (memcpy): new function
16518 [APPLE_CC] (memmove): likewise
16519 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 16520 (memcpy): define alias conditionally on !APPLE_CC
6c688477 16521 (memset): likewise
16522 (abort): likewise
16523 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
16524 APPLE_CC are defined
16525 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
16526 (grub_assert_fail): make prototype conditional
16527
e37ffc5c 165282009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16529
16530 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
16531
473d1e45 16532 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
16533 grub-macho2img
e37ffc5c 16534 (CLEANFILES): add grub-macho2img
16535 (grub_macho2img_SOURCES): new variable
16536 * kern/i386/pc/startup.S (bss_start): new variable
16537 (bss_end): likewise
16538 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
16539 * util/grub-macho2img.c: new file
16540
cf00df31 165412009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16542
16543 Use objconv when compiling with Apple's CC
16544
16545 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
16546 (efiemu64.o): likewise
16547 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
16548 when compiling with Apple's CC
16549 (efiemu64_s.o): likewise
16550 * configure.ac: check for objconv when compiling with Apple's CC
16551 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 16552
d119a20c 165532009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16554
16555 Define segment as well as section when compiling with
16556 Apple's CC
16557
16558 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
16559 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
16560 (efiemu_convert_pointer): likewise
16561 (efiemu_set_virtual_address_map): likewise
16562 (efiemu_convert_pointer): likewise
16563 (efiemu_getcrc32): likewise
16564 (init_crc32_table): likewise
16565 (reflect): likewise
16566 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
16567 (GRUB_MOD_DEP): likewise
473d1e45 16568
c8600122 165692009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16570
16571 Allow a compilation without -mcmodel=large
16572
16573 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
16574 when compiled without -mcmodel=large
473d1e45 16575 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 16576 without -mcmodel=large
473d1e45 16577 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 16578 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 16579
e8df1d4e 165802009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16581
16582 Remove nested functions in efiemu core
16583
16584 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 16585
cc6c3ac1 165862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16587
16588 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
16589
16590 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
16591 temporary storage
473d1e45 16592 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
16593 using Apple's CC
cc6c3ac1 16594 (grub_cpu_is_tsc_supported): likewise
16595 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 16596
3e325901 165972009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16598
16599 Absolute addressing through constant with Apple's cc
16600
16601 * kern/i386/pc/startup.S: Define necessary constants
16602 and address through it when using ABS with Apple's CC
16603 * boot/i386/pc/diskboot.S: likewise
16604 * boot/i386/pc/boot.S: likewise
16605 * boot/i386/pc/lnxboot.S: likewise
16606 * boot/i386/pc/cdboot.S: likewise
16607 * mmap/i386/pc/mmap_helper.S: likewise
16608 * commands/i386/pc/drivemap_int13h.S: likewise
16609
2b167a72 166102009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16611
16612 Check if compiler is apple cc
16613
16614 * Makefile.in (ASFLAGS): new variable
16615 (TARGET_ASFLAGS): likewise
16616 (TARGET_MODULE_FORMAT): likewise
16617 (TARGET_APPLE_CC): likewise
16618 (OBJCONV): likewise
16619 (TARGET_IMG_CFLAGS): likewise
16620 (TARGET_CPPFLAGS): add includedir
16621 * configure.ac: call grub_apple_cc and grub_apple_target_cc
16622 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
16623 Check for linker script only if compiler isn't Apple's CC
16624 (TARGET_MODULE_FORMAT): set
16625 (TARGET_APPLE_CC): likewise
16626 (TARGET_ASFLAGS): likewise
16627 (ASFLAGS): likewise
16628 Check for objcopy only if compiler isn't Apple's CC
16629 Check for BSS symbol only if compiler isn't Apple's CC
16630 * genmk.rb: adapt nm options if we use Apple's utils
16631 * aclocal.m4 (grub_apple_cc): new test
16632 (grub_apple_target_cc): likewise
473d1e45 16633
fb14123e 166342009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16635
16636 Simplify sed expressions and improve awk
16637
16638 * Makefile.in (install-local): simplify sed expression
16639 * gencmdlist.sh: likewise
16640 * genmoddep.awk: avoid adding module as a dependency of itself
16641
5b889789 166422009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16643
16644 Add missing start symbols
16645
16646 * boot/i386/pc/boot.S: add start
fb14123e 16647 * boot/i386/pc/pxeboot.S: likewise
473d1e45 16648
fd2bf2e3 166492009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16650
16651 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 16652
16653 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 16654 (relocate_addresses): consider both r_addend and value at offset
16655 (make_mods_section): zerofill modinfo and header
16656 (convert_elf): write prefix here
473d1e45 16657
5389763d 166582009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16659
16660 Use .asciz instead of .string
16661
16662 * i386/pc/diskboot.S: use .asciz instead of .string
16663 * i386/pc/boot.S: likewise
16664 * include/grub/dl.h (GRUB_MOD_DEP): likewise
16665 (GRUB_MOD_NAME): likewise
473d1e45 16666
3eb5ed4e 166672009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16668
16669 gfxpayload support
16670
16671 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
16672 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
16673 (grub_video_setup): remove
16674 (grub_video_set_mode): new prototype
16675 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
16676 (vid_mode): remove
16677 (linux_vesafb_res): compile only on PCBIOS
16678 (grub_linux_boot): support gfxpayload
16679 * loader/i386/pc/xnu.c (video_hook): new function
16680 (grub_xnu_set_video): support gfxpayload
16681 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
16682 (DEFAULT_VIDEO_HEIGHT): likewise
16683 (DEFAULT_VIDEO_FLAGS): likewise
16684 (DEFAULT_VIDEO_MODE): new definition
16685 (video_hook): new function
16686 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 16687 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 16688 loading xnu
16689 * video/video.c (grub_video_setup): removed
473d1e45 16690 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 16691 grub_video_setup
16692
4b0e1143 166932009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16694
16695 Avoid calling biosdisk in drivemap
16696
16697 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
16698 (revparse_biosdisk): likewise
16699 (list_mappings): derive name from id directly
16700 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 16701
fda6cb98 167022009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16703
16704 Script fixes
16705
16706 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
16707 (grub_lexer_param): add tokenonhold
16708 (grub_script_create_cmdline): remove cmdline. All callers updated
16709 (grub_script_function_create): make functionname
16710 grub_script_arg. All callers updated
16711 (grub_script_execute_argument_to_string): new prototype
16712 * kern/parser.c (state_transitions): reorder
16713 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 16714 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 16715 make global
16716 (grub_script_execute_cmdline): use new format
16717 * script/sh/function.c (grub_script_function_create): make functionname
16718 grub_script_arg. All callers updated
473d1e45 16719 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 16720 (grub_script_yylex): remove
16721 (grub_script_yylex2): renamed to ...
16722 (grub_script_yylex): ...renamed
16723 parse the expressions like a${b}c
16724 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
16725 (GRUB_PARSER_TOKEN_VAR): remove
16726 (GRUB_PARSER_TOKEN_NAME): likewise
16727 ("if"): declare as typeless
16728 ("while"): likewise
16729 ("function"): likewise
16730 ("else"): likewise
16731 ("then"): likewise
16732 ("fi"): likewise
16733 (text): remove
16734 (argument): likewise
16735 (script): accept empty scripts and make exit on error
16736 (arguments): use GRUB_PARSER_TOKEN_ARG
16737 (function): likewise
16738 (command): move error handling to script
16739 (menuentry): move grub_script_lexer_ref before
473d1e45 16740 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 16741 argument. All callers updated
16742
f4448a07 167432009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16744
16745 Prevent GRUB from probing floppies during boot.
16746
16747 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
16748 * commands/search.c (options): Add --no-floppy.
16749 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
16750 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
16751 --no-floppy when searching for UUIDs.
16752
2bf5885a 167532009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16754
16755 Simplify the code duplication in commands/search.c.
16756
16757 * commands/search.c (search_label, search_fs_uuid): Merge into ...
16758 (search_fs): ... this. Update all users.
16759
f6fd460a 167602009-06-03 Felix Zielcke <fzielcke@z-51.de>
16761
16762 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
16763
cbb3c83e 167642009-05-28 Pavel Roskin <proski@gnu.org>
16765
57788cfd 16766 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
16767 Remove the original symlink explicitly.
16768
cbb3c83e 16769 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
16770 just one slash. That's how grub_fshelp_find_file() does it.
16771
cd0d5e30 167722009-05-26 Pavel Roskin <proski@gnu.org>
16773
f0f8bbe2 16774 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
16775 to `str'.
16776
cd0d5e30 16777 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
16778 possibly unused.
16779
8c2cab51 167802009-05-25 Christian Franke <franke@computer.org>
16781
16782 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
16783 register.
16784 (grub_atapi_identify): Add wait after drive select.
16785 (grub_ata_identify): Do more strict status register check before
16786 calling grub_atapi_identify (). Suppress error message if status
16787 register is 0x00 after command failure. Add status register
16788 check after PIO read to avoid bogus identify due to stuck DRQ.
16789 Thanks to Pavel Roskin for testing.
16790 (grub_device_initialize): Remove unsafe status register check.
16791 Thanks to 'phcoder' for problem report and patch.
16792 Prevent sign extension in debug message.
16793
230c0ad6 167942009-05-23 Colin D Bennett <colin@gibibit.com>
16795
16796 Cleaned up `include/grub/normal.h'. Grouped prototypes by
16797 definition file, and functions defined in `normal/menu.c' have had
16798 their prototypes moved to `include/grub/menu.h' for consistency.
16799
16800 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
16801 from normal.h.
16802 (grub_menu_get_entry): Likewise.
16803 (grub_menu_get_timeout): Likewise.
16804 (grub_menu_set_timeout): Likewise.
16805 (grub_menu_execute_entry): Likewise.
16806 (grub_menu_execute_with_fallback): Likewise.
16807 (grub_menu_entry_run): Likewise.
16808
16809 * include/grub/normal.h: Re-ordered and grouped function
16810 prototypes by file that the function is defined in.
16811 (grub_menu_execute_callback): Removed; moved to menu.h.
16812 (grub_menu_get_entry): Likewise.
16813 (grub_menu_get_timeout): Likewise.
16814 (grub_menu_set_timeout): Likewise.
16815 (grub_menu_execute_entry): Likewise.
16816 (grub_menu_execute_with_fallback): Likewise.
16817 (grub_menu_entry_run): Likewise.
16818 (grub_menu_addentry): Renamed from this ...
16819 (grub_normal_add_menu_entry): ... to this.
16820
16821 * normal/main.c (grub_menu_addentry): Renamed from this ...
16822 (grub_normal_add_menu_entry): ... to this.
16823
16824 * script/sh/execute.c (grub_script_execute_menuentry): Update
16825 reference to renamed grub_menu_addentry function.
16826
861f03a5 168272009-05-23 Felix Zielcke <fzielcke@z-51.de>
16828
16829 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
16830
96b1619a 168312009-05-22 Pavel Roskin <proski@gnu.org>
16832
bf6a5fb2 16833 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
16834 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
16835 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
16836 compiling for the i386 targets, but not for the utilities.
16837
96b1619a 16838 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
16839 to grub_uint8_t.
16840 (grub_root_drive): Likewise.
16841 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
16842 remove alignment.
16843 (grub_root_drive): Change size to byte.
16844 (grub_start_addr): Remove.
16845 (grub_end_addr): Likewise.
16846 (grub_apm_bios_info): Likewise.
16847
b729776b 168482009-05-21 Felix Zielcke <fzielcke@z-51.de>
16849
16850 * normal/i386: Remove.
16851 * normal/powerpc: Likewise.
16852 * normal/sparc64: Likewise.
16853 * normal/x86_64: Likewise.
16854
0a15ce80 168552009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16856
16857 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 16858 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 16859 * loader/i386/xnu_helper.S: Likewise
d6da58e6 16860
33db9015 168612009-05-18 Colin D Bennett <colin@gibibit.com>
16862
d6da58e6 16863 Display error messages when parsing a Lua statement fails.
16864 Previously, executing a syntactically invalid statement like
16865 ")foo" or "bar;" would silently fail.
33db9015 16866
16867 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 16868 (grub_lua_parse_line): Improved reporting of Lua parser and
16869 execution errors.
33db9015 16870
46422c89 168712009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16872
16873 Remove -Werror which causes build to fail on some systems
16874
16875 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
16876 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
16877 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 16878
22f53a96 168792009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16880
16881 trampoline for linux on 64-bit platform
16882
18f547ad 16883 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
16884 loader/i386/efi/linux_trampoline.S
16885 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 16886 declaration
d6da58e6 16887 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
16888 here
22f53a96 16889 * loader/i386/linux_trampoline.S: moved here
d6da58e6 16890 * loader/i386/efi/linux.c (allocate_pages): reserve space for
16891 trampoline
22f53a96 16892 (jumpvector): removed
16893 (grub_linux_trampoline_start): new declaration
16894 (grub_linux_trampoline_end): likewise
16895 (grub_linux_boot): use trampoline when on 64-bit platform
16896 * loader/i386/linux.c: likewise
16897
cb5a0f40 168982009-05-16 Pavel Roskin <proski@gnu.org>
16899
16900 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
16901 const to avoid a warning.
16902 (grub_lua_setenv): Likewise.
16903 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
16904 lmsg to fix a warning.
16905
334f2c28 169062009-05-16 Felix Zielcke <fzielcke@z-51.de>
16907
16908 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 16909 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16910 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
16911 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16912 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16913 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16914 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16915 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 16916
59e5d3ec 169172009-05-16 Felix Zielcke <fzielcke@z-51.de>
16918
16919 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
16920
9d87a1ba 169212009-05-16 Bean <bean123ch@gmail.com>
16922
16923 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
16924 (lua_mod_SOURCES): New variable.
16925 (lua_mod_CFLAGS): Likewise.
16926 (lua_mod_LDFLAGS): Likewise.
16927
16928 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
16929 (setjmp_mod_SOURCES): New variable.
16930 (setjmp_mod_CFLAGS): Likewise.
16931 (setjmp_LDFLAGS): Likewise.
16932
16933 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
16934 (setjmp_mod_SOURCES): New variable.
16935 (setjmp_mod_CFLAGS): Likewise.
16936 (setjmp_LDFLAGS): Likewise.
16937
16938 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16939 (setjmp_mod_SOURCES): New variable.
16940 (setjmp_mod_CFLAGS): Likewise.
16941 (setjmp_LDFLAGS): Likewise.
16942
16943 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16944 (setjmp_mod_SOURCES): New variable.
16945 (setjmp_mod_CFLAGS): Likewise.
16946 (setjmp_LDFLAGS): Likewise.
16947
16948 * normal/i386/setjmp.S: Moved from here ...
16949 * lib/i386/setjmp.S: ... Moved here
16950 * normal/x86_64/setjmp.S: Moved from here ...
16951 * lib/x86_64/setjmp.S: ... Moved here
16952 * normal/powerpc/setjmp.S: Moved from here ...
16953 * lib/powerpc/setjmp.S: ... Moved here
16954 * normal/sparc64/setjmp.S: Moved from here ...
16955 * lib/sparc64/setjmp.S: ... Moved here
16956
16957 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
16958 returns_twice in mingw.
16959
16960 * script/lua/grub_lib.c: New file.
16961 * script/lua/grub_lib.h: Likewise.
16962 * script/lua/grub_lua.h: Likewise.
16963 * script/lua/grub_main.c: Likewise.
16964 * script/lua/lapi.c: Likewise.
16965 * script/lua/lapi.h: Likewise.
16966 * script/lua/lauxlib.c: Likewise.
16967 * script/lua/lauxlib.h: Likewise.
16968 * script/lua/lbaselib.c: Likewise.
16969 * script/lua/lcode.c: Likewise.
16970 * script/lua/lcode.h: Likewise.
16971 * script/lua/ldblib.c: Likewise.
16972 * script/lua/ldebug.c: Likewise.
16973 * script/lua/ldebug.h: Likewise.
16974 * script/lua/ldo.c: Likewise.
16975 * script/lua/ldo.h: Likewise.
16976 * script/lua/ldump.c: Likewise.
16977 * script/lua/lfunc.c: Likewise.
16978 * script/lua/lfunc.h: Likewise.
16979 * script/lua/lgc.c: Likewise.
16980 * script/lua/lgc.h: Likewise.
16981 * script/lua/linit.c: Likewise.
16982 * script/lua/liolib.c: Likewise.
16983 * script/lua/llex.c: Likewise.
16984 * script/lua/llex.h: Likewise.
16985 * script/lua/llimits.h: Likewise.
16986 * script/lua/lmathlib.c: Likewise.
16987 * script/lua/lmem.c: Likewise.
16988 * script/lua/lmem.h: Likewise.
16989 * script/lua/loadlib.c: Likewise.
16990 * script/lua/lobject.c: Likewise.
16991 * script/lua/lobject.h: Likewise.
16992 * script/lua/lopcodes.c: Likewise.
16993 * script/lua/lopcodes.h: Likewise.
16994 * script/lua/loslib.c: Likewise.
16995 * script/lua/lparser.c: Likewise.
16996 * script/lua/lparser.h: Likewise.
16997 * script/lua/lstate.c: Likewise.
16998 * script/lua/lstate.h: Likewise.
16999 * script/lua/lstring.c: Likewise.
17000 * script/lua/lstring.h: Likewise.
17001 * script/lua/lstrlib.c: Likewise.
17002 * script/lua/ltable.c: Likewise.
17003 * script/lua/ltable.h: Likewise.
17004 * script/lua/ltablib.c: Likewise.
17005 * script/lua/ltm.c: Likewise.
17006 * script/lua/ltm.h: Likewise.
17007 * script/lua/lua.h: Likewise.
17008 * script/lua/luaconf.h: Likewise.
17009 * script/lua/lualib.h: Likewise.
17010 * script/lua/lundump.c: Likewise.
17011 * script/lua/lundump.h: Likewise.
17012 * script/lua/lvm.c: Likewise.
17013 * script/lua/lvm.h: Likewise.
17014 * script/lua/lzio.c: Likewise.
17015 * script/lua/lzio.h: Likewise.
17016
5e898c9d 170172009-05-16 Bean <bean123ch@gmail.com>
17018
17019 * include/grub/kernel.h (grub_module_header_types): Add type
17020 OBJ_TYPE_CONFIG.
17021
17022 * kern/main.c (grub_load_config): New function.
17023 (grub_main): Call grub_load_config to read boot config.
17024
17025 * grub-mkimage (generate_image): New parameter config_path.
17026 (options): New option --config.
17027 (main): Parse --config option, and pass it to generate_image.
17028
cf353a47 170292009-05-14 Christian Franke <franke@computer.org>
17030
17031 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
17032 This fixes build on Cygwin.
17033
3834887f 170342009-05-14 Pavel Roskin <proski@gnu.org>
17035
17036 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
17037 jump. This saves two bytes, so the typical case of 2 swapped
17038 drives would fit 32 bytes.
17039
8090fc01 170402009-05-13 Pavel Roskin <proski@gnu.org>
17041
ac963883 17042 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
17043 grub_uint32_t to avoid a warning.
17044
8090fc01 17045 * loader/i386/linux.c (allocate_pages): When assigning
17046 real_mode_mem, cast through grub_size_t to fix a warning. The
17047 code already makes sure that the value would fit a pointer.
17048 (grub_linux_setup_video): Cast render_target->data to
17049 grub_size_t to fix a warning.
17050
18f547ad 170512009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 17052
17053 * commands/i386/pc/drivemap.c: New file - implement drivemap
17054 command.
17055 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
17056 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
17057
6f6a8b28 170582009-05-13 Pavel Roskin <proski@gnu.org>
17059
17060 * util/i386/pc/grub-setup.c (setup): Remove unused variable
17061 embedding_area_exists.
17062
15fbf4c4 170632009-05-13 Robert Millan <rmh.grub@aybabtu.com>
17064
17065 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
17066 it easier to understand / work with.
59978c8a 17067 Improve warning messages for cases where there's no embedding area,
17068 or when it is too small (or core.img too large).
15fbf4c4 17069
238e871f 170702009-05-13 Pavel Roskin <proski@gnu.org>
17071
0ab3a9a4 17072 * loader/i386/pc/multiboot2.c: Add necessary includes for
17073 grub_multiboot2_real_boot().
17074
a2c8c5f8 17075 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
17076 PX record is always little-endian. We only need the lower 2
17077 bytes of the mode.
17078
faec96af 17079 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
17080 facilitate code reuse.
17081 (grub_cpio_mount): Use "struct head", not a char buffer. This
17082 fixes a warning reported by gcc 4.4.
17083
238e871f 17084 * kernel/disk.c (grub_disk_read): Use void pointer for the
17085 buffer.
17086 (grub_disk_write): Use const void pointer for the buffer.
17087 Adjust all callers. Remove unnecessary casts.
17088
901d2f0c 170892009-05-10 Robert Millan <rmh.grub@aybabtu.com>
17090
17091 * util/i386/pc/grub-install.in: Update copyright year.
17092
18f547ad 170932009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 17094
17095 gptsync
17096
17097 * commands/gptsync.c: new file
17098 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
17099 (gptsync_mod_SOURCES): new variable
17100 (gptsync_mod_CFLAGS): likewise
17101 (gptsync_mod_LDFLAGS): likewise
18f547ad 17102 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 17103 new definition
17104 (GRUB_PC_PARTITION_TYPE_HFS): likewise
17105 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
17106 * conf/i386-ieee1275.rmk: likewise
17107 * conf/i386-pc.rmk: likewise
17108 * conf/powerpc-ieee1275.rmk: likewise
17109
b4ba690a 171102009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17111
17112 Fixed grub-emu
17113
17114 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
17115 (grub_dl_ref): likewise
17116
317e1a44 171172009-05-08 Robert Millan <rmh.grub@aybabtu.com>
17118
17119 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
17120 split in two functions (one for msdos and one for gpt).
17121
041b8094 171222009-05-08 Pavel Roskin <proski@gnu.org>
17123
752473c2 17124 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
17125 not modified.
17126
041b8094 17127 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
17128 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
17129 Initialize them with -1. Add sanity check for bad1. Eliminate
17130 nerr variable.
17131
172800ce 171322009-05-08 David S. Miller <davem@davemloft.net>
17133
17134 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
17135
29aa5e81 171362009-05-06 Robert Millan <rmh.grub@aybabtu.com>
17137
17138 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 17139 existence.
29aa5e81 17140
96613b62 171412009-05-05 Felix Zielcke <fzielcke@z-51.de>
17142
17143 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 17144 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 17145
eef73c8a 171462009-05-05 David S. Miller <davem@davemloft.net>
17147
17148 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
17149
119494b5 171502009-05-05 Pavel Roskin <proski@gnu.org>
17151
17152 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
17153 of grub_dl_ref() and grub_dl_unref().
17154 * commands/parttool.c: Remove preprocessor conditionals around
17155 grub_dl_ref() and grub_dl_unref().
17156 * fs/affs.c: Likewise.
17157 * fs/afs.c: Likewise.
17158 * fs/cpio.c: Likewise.
17159 * fs/ext2.c: Likewise.
17160 * fs/fat.c: Likewise.
17161 * fs/hfs.c: Likewise.
17162 * fs/hfsplus.c: Likewise.
17163 * fs/iso9660.c: Likewise.
17164 * fs/jfs.c: Likewise.
17165 * fs/minix.c: Likewise.
17166 * fs/ntfs.c: Likewise.
17167 * fs/reiserfs.c: Likewise.
17168 * fs/sfs.c: Likewise.
17169 * fs/udf.c: Likewise.
17170 * fs/ufs.c: Likewise.
17171 * fs/xfs.c: Likewise.
17172 * include/grub/dl.h: Likewise.
17173 * loader/xnu.c: Likewise.
17174
de5fd76e 171752009-05-04 Pavel Roskin <proski@gnu.org>
17176
17177 * commands/acpi.c: Remove unused variable my_mod.
17178 * partmap/amiga.c: Likewise.
17179 * partmap/apple.c: Likewise.
17180 * partmap/gpt.c: Likewise.
17181 * partmap/pc.c: Likewise.
17182 * partmap/sun.c: Likewise.
17183 * term/gfxterm.c: Likewise.
17184 * term/i386/pc/vesafb.c: Likewise.
17185 * term/i386/pc/vga.c: Likewise.
17186
983598ad 171872009-05-04 David S. Miller <davem@davemloft.net>
17188
17189 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
17190 pointer args to grub_ieee1275_get_property().
17191
8aadec43 17192 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
17193
9554b15e 17194 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
17195 devices, and do not traverse down under controller nodes.
17196
67e23c90 17197 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
17198 (grub_ofdisk_open): Use it to un-escape "," characters.
17199 * kern/disk.c (find_part_sep): New.
17200 (grub_disk_open): Use it to find the first non-escaped ','
17201 character in the disk name.
17202 * util/ieee1275/devicemap.c (escape_of_path): New.
17203 (grub_util_emit_devicemap_entry): Use it.
17204 * util/sparc64/ieee1275/grub-install.in: Update script to
17205 strip partition specifiers properly by not triggering on
17206 '\' escaped ',' characters.
17207
74bfdd2f 172082009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17209
17210 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
17211 to 0x300.
17212 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
17213 resolutions.
17214 (linux_vesafb_modes): Add a lot of additional modes to the list (based
17215 on documentation from Wikipedia).
17216
4241d2b1 172172009-05-04 Pavel Roskin <proski@gnu.org>
17218
17219 * disk/ata.c: Spelling fixes.
17220 * disk/raid.c: Likewise.
17221 * disk/usbms.c: Likewise.
17222 * disk/dmraid_nvidia.c: Likewise.
17223 * kern/ieee1275/openfw.c: Likewise.
17224 * kern/ieee1275/init.c: Likewise.
17225 * kern/ieee1275/cmain.c: Likewise.
17226 * boot/i386/pc/cdboot.S: Likewise.
17227 * video/readers/png.c: Likewise.
17228 * video/i386/pc/vbe.c: Likewise.
17229 * fs/udf.c: Likewise.
17230 * fs/hfs.c: Likewise.
17231 * fs/reiserfs.c: Likewise.
17232 * efiemu/runtime/efiemu.c: Likewise.
17233 * efiemu/main.c: Likewise.
17234 * efiemu/mm.c: Likewise.
17235 * include/grub/elf.h: Likewise.
17236 * include/grub/xnu.h: Likewise.
17237 * include/grub/usbdesc.h: Likewise.
17238 * include/grub/usb.h: Likewise.
17239 * include/grub/script_sh.h: Likewise.
17240 * include/grub/lib/LzmaEnc.h: Likewise.
17241 * include/grub/efiemu/efiemu.h: Likewise.
17242 * include/grub/command.h: Likewise.
17243 * normal/menu.c: Likewise.
17244 * normal/main.c: Likewise.
17245 * normal/datetime.c: Likewise.
17246 * bus/usb/uhci.c: Likewise.
17247 * mmap/i386/uppermem.c: Likewise.
17248 * mmap/mmap.c: Likewise.
17249 * commands/acpi.c: Likewise.
17250 * commands/test.c: Likewise.
17251 * partmap/apple.c: Likewise.
17252 * font/font.c: Likewise.
17253 * loader/sparc64/ieee1275/linux.c: Likewise.
17254 * loader/macho.c: Likewise.
17255 * loader/i386/bsd_trampoline.S: Likewise.
17256 * loader/i386/bsd.c: Likewise.
17257 * loader/xnu.c: Likewise.
17258 * term/i386/pc/vesafb.c: Likewise.
17259 * term/usb_keyboard.c: Likewise.
17260 * util/resolve.c: Likewise.
17261 * util/getroot.c: Likewise.
17262
0cfc0083 172632009-05-04 Felix Zielcke <fzielcke@z-51.de>
17264
17265 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
17266
7c1d00cd 172672009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17268
17269 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
17270 build error.
17271
b01f0548 172722009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17273
17274 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
17275 parameter only available on BIOS.
17276
ecc3eb22 172772009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17278
17279 Removed wrong semicolon in declaration
17280
17281 * grub/misc.h (grub_dprintf): remove semicolon
17282
112972a9 172832009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17284
17285 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
17286 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
17287 is done by grub_cmd_linux() now).
17288 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
17289 restore video to text mode.
17290 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
17291 indicates lack of "vga=" parameter. "vga=0" is mapped to
17292 `GRUB_LINUX_VID_MODE_NORMAL'.
17293
afd5c115 172942009-05-04 Felix Zielcke <fzielcke@z-51.de>
17295
17296 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
17297 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
17298 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 17299 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 17300 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
17301 `grub_script.tab.c'.
17302
17303 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17304 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17305 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17306 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17307 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17308
faa517ce 17309 * Makefile.in: Remove duplicated 2008 in Copyright line.
17310
ae0c0bdc 173112009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17312
473d1e45 17313 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 17314 unconditionally.
17315 * include/grub/util/misc.h (grub_util_warn): New declaration.
17316
17317 * util/i386/pc/grub-install.in: Understand --force and pass it down
17318 to grub-setup.
17319
17320 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
17321 down to setup().
17322 (setup): Improve error messages and add warnings when requested to
17323 install in odd layouts. Refuse to install using blocklists unless
17324 --force was set.
17325
18f547ad 173262009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 17327
17328 * disk/raid.c (grub_raid_scan_device): Improve debug message.
17329
6d260daa 173302009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17331
17332 Updated copyright year
17333
17334 * fs/hfsplus.c: updated copyright year
18f547ad 17335
69f853f8 173362009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17337
17338 HFS+ UUID
17339
18f547ad 17340 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 17341 in the space previously used by unused3
17342 (grub_hfsplus_uuid): new function
17343 (grub_hfsplus_fs): added uuid field
17344
4c402e73 173452009-05-03 Pavel Roskin <proski@gnu.org>
17346
17347 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
17348 suppress warnings. It's no longer needed.
17349 * disk/host.c: Likewise.
17350 * disk/ata_pthru.c: Likewise.
17351 * disk/loopback.c: Likewise.
17352 * hook/datehook.c: Likewise.
17353 * parttool/pcpart.c: Likewise.
17354 * fs/i386/pc/pxe.c: Likewise.
17355 * fs/ntfscomp.c: Likewise.
17356 * efiemu/main.c: Likewise.
17357 * mmap/mmap.c: Likewise.
17358 * commands/crc.c: Likewise.
17359 * commands/hexdump.c: Likewise.
17360 * commands/hdparm.c: Likewise.
17361 * commands/acpi.c: Likewise.
17362 * commands/echo.c: Likewise.
17363 * commands/minicmd.c: Likewise.
17364 * commands/blocklist.c: Likewise.
17365 * commands/memrw.c: Likewise.
17366 * commands/loadenv.c: Likewise.
17367 * commands/usbtest.c: Likewise.
17368 * commands/lsmmap.c: Likewise.
17369 * commands/boot.c: Likewise.
17370 * commands/parttool.c: Likewise.
17371 * commands/configfile.c: Likewise.
17372 * commands/search.c: Likewise.
17373 * commands/ieee1275/suspend.c: Likewise.
17374 * commands/cat.c: Likewise.
17375 * commands/i386/pc/pxecmd.c: Likewise.
17376 * commands/i386/pc/play.c: Likewise.
17377 * commands/i386/pc/halt.c: Likewise.
17378 * commands/i386/pc/vbeinfo.c: Likewise.
17379 * commands/i386/pc/vbetest.c: Likewise.
17380 * commands/lspci.c: Likewise.
17381 * commands/date.c: Likewise.
17382 * commands/handler.c: Likewise.
17383 * commands/ls.c: Likewise.
17384 * commands/test.c: Likewise.
17385 * commands/cmp.c: Likewise.
17386 * commands/efi/loadbios.c: Likewise.
17387 * commands/efi/fixvideo.c: Likewise.
17388 * commands/halt.c: Likewise.
17389 * commands/help.c: Likewise.
17390 * commands/reboot.c: Likewise.
17391 * hello/hello.c: Likewise.
17392 * script/sh/main.c: Likewise.
17393 * loader/xnu.c: Likewise.
17394 * term/terminfo.c: Likewise.
17395 * term/i386/pc/serial.c: Likewise.
17396 * term/usb_keyboard.c: Likewise.
17397
515b5079 173982009-05-03 David S. Miller <davem@davemloft.net>
17399
17400 * normal/menu.c: Include grub/parser.h
17401
dfc31a22 174022009-05-03 Pavel Roskin <proski@gnu.org>
17403
2fee74f1 17404 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
17405 not char*.
17406 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
17407 Suggested by Javier Martín <lordhabbit@gmail.com>
17408
dfc31a22 17409 * util/i386/pc/grub-mkrescue.in: Allow for the case when
17410 efiemu??.o doesn't exist.
17411 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
17412 copying.
17413
18f547ad 174142009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 17415
17416 FreeBSD 64-bit support
17417
18f547ad 17418 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 17419 and loader/i386/bsd_trampoline.S
17420 (bsd_mod_ASFLAGS): new variable
17421 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
17422 (FREEBSD_MODTYPE_KERNEL64): likewise
17423 (grub_bsd64_trampoline_start): likewise
17424 (grub_bsd64_trampoline_end): likewise
17425 (grub_bsd64_trampoline_selfjump): likewise
17426 (grub_bsd64_trampoline_gdt): likewise
17427 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
17428 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
17429 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
17430 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 17431 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 17432 of "attrib" member
17433 * loader/i386/bsd_pagetable.c: new file
17434 * loader/i386/bsd_trampoline.S: likewise
17435 * loader/i386/bsd.c (ALIGN_QWORD): new macro
17436 (ALIGN_VAR): likewise
17437 (entry_hi): new variable
17438 (kern_end_mdofs): likewise
17439 (is_64bit): likewise
17440 (grub_freebsd_add_meta): use ALIGN_VAR
17441 (grub_e820_mmap): new declaration
17442 (grub_freebsd_add_mmap): new function
17443 (grub_freebsd_add_meta_module): support 64 bit kernels
17444 (grub_freebsd_list_modules): use ALIGN_VAR
17445 (gdt_descriptor): new declaration
17446 (grub_freebsd_boot): support 64 bit kernels
17447 (grub_bsd_elf64_hook): new function
17448 (grub_bsd_load_elf): support elf64
17449
038c5720 174502009-05-03 Bean <bean123ch@gmail.com>
17451
17452 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
17453 after we get the result of if statement.
17454
fc45fb58 174552009-05-03 Bean <bean123ch@gmail.com>
17456
17457 * Makefile.in (enable_efiemu): New variable.
17458
17459 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
17460 set.
17461 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
17462 path.
17463 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
17464 path, add -mno-red-zone option.
17465 (efiemu64_s.o): Likewise.
17466 (efiemu64.o): Use macro $^ for source file.
17467
17468 * configure.ac (--enable-efiemu): New option.
17469
bbee0f2b 174702009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17471
17472 xnu support
17473
17474 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
17475 (pkglib_MODULES): add xnu.mod
17476 (xnu_mod_SOURCES): new variable
17477 (xnu_mod_CFLAGS): likewise
17478 (xnu_mod_LDFLAGS): likewise
17479 (xnu_mod_ASFLAGS): likewise
17480 * conf/i386-pc.rmk: likewise
17481 * conf/x86_64-efi.rmk: likewise
7dd4a573 17482 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 17483 new declaration
17484 * include/grub/i386/macho.h: new file
17485 * include/grub/i386/xnu.h: likewise
17486 * include/grub/macho.h: likewise
17487 * include/grub/machoload.h: likewise
17488 * include/grub/x86_64/macho.h: likewise
17489 * include/grub/x86_64/xnu.h: likewise
17490 * include/grub/xnu.h: likewise
17491 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
17492 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
17493 * loader/i386/efi/xnu.c: new file
17494 * loader/i386/pc/xnu.c: likewise
17495 * loader/i386/xnu.c: likewise
17496 * loader/i386/xnu_helper.S: likewise
17497 * loader/macho.c: likewise
17498 * loader/xnu.c: likewise
17499 * loader/xnu_resume.c: likewise
17500 * util/grub-dumpdevtree: likewise
17501 * include/grub/i386/pit.h: include grub/err.h
17502 (grub_pit_wait): export
17503 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 17504
5caf964d 175052009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17506
17507 Efiemu
7dd4a573 17508
5caf964d 17509 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 17510 _linux_efi, linux_efi.
17511 new files in grub-emu
5caf964d 17512 new targets efiemu32.o and efiemu64.o
17513 * loader/linux_normal_efiemu.c: likewise
17514 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 17515 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 17516 files to copy
17517 * include/grub/autoefi.h: new file
7dd4a573 17518 * include/grub/i386/efiemu.h: likewise
5caf964d 17519 * include/grub/i386/pc/efiemu.h: likewise
17520 * include/grub/efi/api.h: add LL suffix when necessary
17521 new definitions relating to tables
17522 * include/grub/efiemu/efiemu.h: new file
17523 * include/grub/efiemu/runtime.h: likewise
17524 * efiemu/prepare.c: likewise
17525 * efiemu/loadcore_common.c: likewise
17526 * efiemu/loadcore64.c: likewise
17527 * efiemu/runtime/efiemu.sh: likewise
17528 * efiemu/runtime/efiemu.S: likewise
17529 * efiemu/runtime/efiemu.c: likewise
17530 * efiemu/runtime/config.h: likewise
17531 * efiemu/prepare32.c: likewise
17532 * efiemu/main.c: likewise
17533 * efiemu/modules/pnvram.c: likewise
17534 * efiemu/modules/i386: likewise
17535 * efiemu/modules/i386/pc: likewise
17536 * efiemu/modules/acpi.c: likewise
17537 * efiemu/i386/pc/cfgtables.c: likewise
17538 * efiemu/i386/loadcore64.c: likewise
17539 * efiemu/i386/loadcore32.c: likewise
17540 * efiemu/prepare64.c: likewise
17541 * efiemu/loadcore.c: likewise
17542 * efiemu/symbols.c: likewise
17543 * efiemu/mm.c: likewise
17544 * efiemu/loadcore32.c: likewise
7dd4a573 17545
175462009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 17547
17548 ACPI spoofing
17549
17550 * commands/acpi.c: new file
17551 * commands/i386/pc/acpi.c: likewise
17552 * commands/efi/acpi.c: likewise
17553 * include/grub/acpi.h: likewise
17554 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
17555 (acpi_mod_SOURCES): new variable
17556 (acpi_mod_CFLAGS): likewise
17557 (acpi_mod_LDFLAGS): likewise
17558 * conf/i386-efi.rmk: likewise
17559 * conf/x86_64-efi.rmk: likewise
17560
7dd4a573 175612009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 17562
17563 Missing part from mmap patch
17564
17565 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
17566 (grub_mmap_unregister)
17567 (grub_mmap_free_and_unregister): use grub_mmap_register
17568
7dd4a573 175692009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 17570
17571 Mmap services
17572
17573 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
17574 * loader/i386/linux.c (find_mmap_size): likewise
17575 (allocate_pages): likewise
17576 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
17577 (grub_fill_multiboot_mmap): likewise
17578 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
17579 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
17580 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
17581 (OPENBSD_MMAP_RESERVED): likewise
17582 * include/grub/i386/pc/memory.h: include grub/memory.h
17583 (grub_lower_mem): removed
17584 (grub_upper_mem): likewise
17585 (GRUB_MACHINE_MEMORY_ACPI): new definition
17586 (GRUB_MACHINE_MEMORY_NVS): likewise
17587 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
17588 (GRUB_MACHINE_MEMORY_HOLE): likewise
17589 (grub_machine_mmap_register): likewise
17590 (grub_machine_mmap_unregister): likewise
17591 (grub_machine_get_upper): likewise
17592 (grub_machine_get_lower): likewise
17593 (grub_machine_get_post64): likewise
17594 * include/grub/i386/efi/memory.h: new file
17595 * include/grub/x86_64/efi/memory.h: likewise
17596 * include/grub/efi/memory.h: likewise
17597 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
17598 (mmap_mod_SOURCES): new variable
17599 (mmap_mod_LDFLAGS): likewise
17600 (mmap_mod_ASFLAGS): likewise
17601 * conf/i386-coreboot.rmk: likewise
17602 * conf/i386-ieee1275.rmk: likewise
17603 * conf/i386-efi.rmk: likewise
17604 * conf/x86_64-efi.rmk: likewise
17605 * include/grub/types.h (UINT_TO_PTR): new macro
17606 (PTR_TO_UINT32): likewise
17607 (PTR_TO_UINT64): likewise
17608 * include/grub/memory.h: new file
17609 * mmap/i386/pc/mmap.c: likewise
17610 * mmap/i386/pc/mmap_helper.S: likewise
17611 * mmap/i386/uppermem.c: likewise
17612 * mmap/mmap.c: likewise
17613 * mmap/efi/mmap.c: likewise
7dd4a573 17614 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 17615 grub_upper_mem
17616 * kern/i386/pc/init.c (grub_lower_mem): removed variable
17617 (grub_upper_mem): likewise
17618 (grub_machine_init): don't use grub_upper_mem,
17619 make grub_lower_mem local
17620 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
17621 grub_mmap_iterate and grub_mmap_get_upper
17622 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
17623
d558e6b5 176242009-05-02 Bean <bean123ch@gmail.com>
17625
17626 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
17627 script/sh/parser.y.
17628 (pkglib_MODULES): Add normal.mod and sh.mod.
17629 (normal_SOURCES): New variable.
17630 (normal_mod_CFLAGS): Likewise.
17631 (normal_mod_LDFLAGS): Likewise.
17632 (sh_mod_SOURCES): Likewise.
17633 (sh_mod_CFLAGS): Likewise.
17634 (sh_mod_LDFLAGS): Likewise.
17635
17636 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
17637 script/sh/lexer.c_DEPENDENCIES.
17638 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
17639 kern/rescue_reader.c and kern/rescue_parser.c.
17640 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
17641 (grub_emu_SOURCES): Change source files.
17642 (pkglib_MODULES): Remove normal.mod.
17643 (normal_SOURCES): Removed.
17644 (normal_mod_CFLAGS): Likewise.
17645 (normal_mod_LDFLAGS): Likewise.
17646 * conf/i386-coreboot.rmk: Likewise.
17647 * conf/i386-efi.rmk: Likewise.
17648 * conf/i386-ieee1276.rmk: Likewise.
17649 * conf/powerpc-ieee1275.rmk: Likewise.
17650 * conf/sparc64-ieee1275.rmk: Likewise.
17651 * conf/x86_64-efi.rmk: Likewise.
17652
17653 * include/grub/command.h (grub_command_execute): New inline function.
17654
17655 * include/grub/menu.h (grub_menu_entry): Removed commands field.
17656
17657 * include/grub/normal.h: Remove <grub/setjmp.h>.
17658 (grub_fs_module_list): Moved to normal/autofs.c.
17659 (grub_exit_env): Removed.
17660 (grub_command_execute): Likewise.
17661 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
17662 parameter script.
17663 (read_command_list): New function declaration.
17664 (read_fs_list): Likewise.
17665
17666 * include/parser.h: Include <grub/reader.h>.
17667 (grub_parser_split_cmdline): Change type of getline parameter.
17668 (grub_parser): New structure.
17669 (grub_parser_class): New variable.
17670 (grub_parser_execute): New function declaration.
17671 (grub_register_rescue_parser): Likewise.
17672 (grub_parser_register): New inline function.
17673 (grub_parser_unregister): Likewise.
17674 (grub_parser_get_current): Likewise.
17675 (grub_parser_set_current): Likewise.
17676
17677 * include/grub/reader.h: New file.
17678 * kern/reader.c: Likewise.
17679 * kern/rescue_parser.c: Likewise.
17680 * kern/rescue_reader.c: Likewise.
17681 * normal/autofs.c: Likewise.
17682 * normal/dyncmd.c: Likewise.
17683
17684 * include/grub/rescue.h: Removed.
17685 * normal/command.h: Likewise.
17686
17687 * include/grub/script.h: Moved to ...
17688 * include/grub/script_sh.h: ... Moved here.
17689 * normal/execute.c: Moved to ...
17690 * script/sh/execute.c: ... Moved here.
17691 * normal/function.c: Moved to ...
17692 * script/sh/function.c: ... Moved here.
17693 * normal/lexer.c: Moved to ...
17694 * script/sh/lexer.c: ... Moved here.
17695 * normal/parser.y: Moved to ...
17696 * script/sh/parser.y: ... Moved here.
17697 * normal/script.c: Moved to ...
17698 * script/sh/script.c: ... Moved here.
17699
17700 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
17701 <grub/reader.h>.
17702 (grub_exit_env): Removed.
17703 (fs_module_list): Moved to normal/autofs.c.
17704 (grub_file_getline): Don't handle comment here.
17705 (free_menu): Skip removed field entry->commands.
17706 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
17707 script parameter.
17708 (read_config_file): Removed nested parameter, change getline function.
17709 (grub_enter_normal_mode): Removed.
17710 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
17711 (read_command_list): Likewise.
17712 (autoload_fs_module): Moved to normal/autofs.c.
17713 (read_fs_list): Likewise.
17714 (reader_nested): New variable.
17715 (grub_normal_execute): Run parser.sh to switch to sh parser.
17716 (grub_cmd_rescue): Removed.
17717 (cmd_normal): Removed.
17718 (grub_cmd_normal): Unregister itself at the beginning. Don't register
17719 rescue command.
17720 (grub_cmdline_run): New function.
17721 (grub_normal_reader_init): Likewise.
17722 (grub_normal_read_line): Likewise.
17723 (grub_env_write_pager): Likewise.
17724 (cmdline): New variable.
17725 (grub_normal_reader): Likewise.
17726 (GRUB_MOD_INIT): Register normal reader and set as current, register
17727 pager hook, register normal command with grub_register_command_prio,
17728 so that it won't show up in command.lst.
17729 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
17730 grub_fs_autoload_hook.
17731
17732 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
17733 (grub_menu_execute_entry): Replace grub_script_execute with
17734 grub_parser_execute, change parameter to grub_command_execute.
17735
17736 * normal/menu_text.c: Remove <grub/script.h>.
17737
17738 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
17739 and <grub/parser.h>.
17740 (run): Change editor_getline to use new parser interface. Change
17741 parameter to grub_command_execute.
17742
17743 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
17744 <grub/reader.h> and <grub/parser.h>.
17745 (grub_load_normal_mode): Execute normal command.
17746 (grub_main): Call grub_register_core_commands,
17747 grub_register_rescue_parser and grub_register_rescue_reader, use
17748 grub_reader_loop to enter input loop.
17749
7dd4a573 17750 * kern/parser.c (grub_parser_split_cmdline): Change type of
17751 getline parameter.
d558e6b5 17752 (grub_parser_class): New variable.
17753 (grub_parser_execute): New function.
17754
17755 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
17756 * loader/multiboot2.c: Likewise.
17757 * loader/sparc64/ieee1275/linux.c: Likewise.
17758
17759 * util/grub-emu.c (read_command_list): New dummy function.
17760
18db813d 177612009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17762
17763 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
17764 count to 16 for CCISS and IDA.
17765
6c67de15 177662009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17767
17768 * normal/menu_text.c (grub_wait_after_message): Print a newline
17769 after waiting for user input.
17770
17771 * loader/i386/linux.c: Include `<grub/normal.h>'.
17772 (grub_cmd_linux): Improve the error message about `ask' mode, by
17773 waiting for user input so it's not missed (we can do this, since
17774 user requested interaction).
17775
d9dc87b0 177762009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17777
17778 Added missing lst to grub-mkrescue
17779
17780 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
17781 and ${input_dir}/parttool.lst
17782
ac8a2baa 177832009-04-30 David S. Miller <davem@davemloft.net>
17784
ad22a610 17785 * util/hostdisk.c (device_is_wholedisk): New function.
17786 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
17787 zero only if device_is_wholedisk() returns true.
17788
6966215d 17789 * util/hostdisk.c (convert_system_partition_to_system_disk):
17790 Handle virtual disk devices named /dev/vdiskX as found on sparc
17791 and powerpc.
17792
ac8a2baa 17793 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
17794 lettered partition specifier is found, convert to numbered.
17795
979b4fb4 177962009-04-29 David S. Miller <davem@davemloft.net>
17797
e2bf39b2 17798 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
17799 * include/grub/sparc64/ieee1275/memory.h: Likewise.
17800
3c64e104 17801 * normal/command.c: Add missing newline at end of file.
17802
979b4fb4 17803 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
17804 warnings.
17805 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
17806 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
17807 grub_ofdisk_read): Likewise, and deal similarly with the fact that
17808 ihandles have a 32-bit type but need to be stored in a "void *".
17809
136d9f82 178102009-04-28 Pavel Roskin <proski@gnu.org>
17811
9459c306 17812 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
17813 not disk. Adjust all dependencies.
2e08a26a 17814 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 17815 grub_disk_close().
17816
136d9f82 17817 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
17818 parent's partition, don't copy it by reference, as it gets freed
17819 on close.
17820
7dd4a573 178212009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 17822
17823 Preboot hooks support
17824
17825 * commands/boot.c (struct grub_preboot_t): new declaration
17826 (preboots_head): new variable
17827 (preboots_tail): likewise
17828 (grub_loader_register_preboot_hook): new function
17829 (grub_loader_unregister_preboot_hook): likewise
17830 (grub_loader_set): launch preboot hooks
17831 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
17832 (grub_loader_register_preboot_hook): new declaration
17833 (grub_loader_unregister_preboot_hook): likewise
17834
5af922b5 178352009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17836
17837 Warning fix
17838
7dd4a573 17839 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 17840 calling grub_dprintf
17841
a5562c30 178422009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
17843
17844 Bug and warning fixes
17845
7dd4a573 17846 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 17847 declaration
17848 * commands/test.c (test_parse): fixed bug with file tests and corrected
17849 declaration of find_file
17850
4006f85c 178512009-04-26 Pavel Roskin <proski@gnu.org>
17852
17853 * Makefile.in: Don't install empty manual pages if help2man is
17854 missing. Use help2man option for output, not shell redirection.
17855
5c77c3de 178562009-04-26 David S. Miller <davem@davemloft.net>
17857
17858 * util/grub-mkdevicemap.c (make_device_map): Add missing
17859 NESTED_FUNC_ATTR to process_device().
17860
033b10a8 178612009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17862
17863 Test command
17864
17865 * commands/test.c: rewritten to use bash-like test
17866
e4343593 178672009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17868
17869 Parttool autoloading and improvements
17870
7dd4a573 17871 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 17872 (parttool.lst): new target
17873 * genmk.rb: generate parttool-*
17874 (CLEANFILES): add #{parttool}
17875 (PARTTOOLFILES): new variable
17876 * genparttoollist.sh: new file
7dd4a573 17877 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 17878 (grub_pcpart_type): likewise
17879 * commands/parttool.c (helpmsg): new variable
17880 (grub_cmd_parttool): output help if not enough arguments are supplied
17881 autoload modules
17882 (GRUB_MOD_INIT(parttool)): use helpmsg
17883
0d312500 178842009-04-24 David S. Miller <davem@davemloft.net>
17885
7dd4a573 17886 Avoiding opening same device multiple times in device iterator.
0d312500 17887
17888 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 17889 and use it to build a list of partitions in iterate_disk() and
0d312500 17890 iterate_partition().
17891
ac20caff 17892 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
17893 on disk->data.
17894
0dcf7495 17895 * disk/ieee1275/nand.c (grub_nand_iterate): Return
17896 grub_devalias_iterate() result instead of unconditional 0.
17897 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
17898 Also, capture hook return value, either directly or via
17899 grub_children_iterate(), and propagate to caller.
17900 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
17901 grub_children_iterate): Return value is now 'int' instead of
17902 'grub_err_t'.
17903 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
17904 like a proper iterator, stopping when hooks return non-zero.
17905 (grub_devalias_iterate): Likewise.
17906
c8c08833 179072009-04-23 David S. Miller <davem@davemloft.net>
17908
17909 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
17910
f01005a8 179112009-04-22 David S. Miller <davem@davemloft.net>
17912
17913 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
17914 is larger than address_cells, use that value for address_cells too.
17915
4e8269da 17916 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
17917 IEEE1275_MAX_PATH_LEN): Define.
17918 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
17919 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
17920 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
17921 'devtype'. Explicitly NULL terminate devalias expansion.
17922
a1447506 17923 * util/sparc64/ieee1275/misc.c: New file.
17924 * util/sparc64/ieee1275/grub-setup.c: New file.
17925 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
17926 * util/sparc64/ieee1275/grub-mkimage.c: New file.
17927 * util/sparc64/ieee1275/grub-install.in: New file.
17928 * util/ieee1275/ofpath.c: New file.
17929 * util/ieee1275/devicemap.c: New file.
17930 * util/devicemap.c: New file.
17931 * util/deviceiter.c: New file.
17932 * kern/sparc64/ieee1275/init.c: New file.
17933 * include/grub/util/ofpath.h: New file.
17934 * include/grub/util/deviceiter.h: New file.
17935 * util/grub-mkdevicemap.c: Include deviceiter.h.
17936 Implement using grub_util_emit_devicemap_entry and
17937 grub_util_iterate_devices.
17938 * conf/i386-corebook.rmk: Build util/deviceiter.c and
17939 util/devicemap.c into grub-mkdevicemap
17940 * conf/i386-efi.rmk: Likewise.
17941 * conf/i386-ieee1275.rmk: Likewise.
17942 * conf/i386-pc.rmk: Likewise.
17943 * conf/powerpc-ieee1275.rmk: Likewise.
17944 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
17945 images and installation utilities. Build kernel as image
17946 instead of as elf binary. Use common rules as much as possible.
17947
7dd4a573 179482009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 17949
17950 Correct GPT definition
17951
7dd4a573 17952 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 17953 of "attrib" member
17954
c6c5219f 179552009-04-19 Felix Zielcke <fzielcke@z-51.de>
17956
17957 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
17958
0552ff9f 179592009-04-19 David S. Miller <davem@davemloft.net>
17960
17961 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
17962 (grub_rescue_cmd_linux): Rename to...
17963 (grub_cmd_linux): and fix prototype.
17964 (grub_rescue_cmd_initrd): Rename to...
17965 (grub_cmd_initrd): and fix prototype.
17966 (cmd_linux, cmd_initrd): New.
17967 (GRUB_MOD_INIT(linux)): Use grub_register_command().
17968 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
17969
d1a282fc 179702009-04-17 Pavel Roskin <proski@gnu.org>
17971
07c5039f 17972 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
17973 format.
17974 (grub_ohci_transfer): Likewise.
17975
b012002d 17976 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
17977
1bc09c35 17978 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
17979 return without a value. Fix inconsistent indentation.
17980
e0ff9126 17981 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
17982 match struct grub_fs.
17983
d1a282fc 17984 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
17985 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
17986 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17987 * commands/lspci.c (grub_lspci_iter): Likewise.
17988
a96df3f2 179892009-04-16 Bean <bean123ch@gmail.com>
17990
17991 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
17992 value.
17993
41bb0fe9 179942009-04-15 Pavel Roskin <proski@gnu.org>
17995
17996 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
17997 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
17998 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
17999 definitions.
18000
596c6970 180012009-04-15 Felix Zielcke <fzielcke@z-51.de>
18002
18003 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 18004 that no multiple data or metadata areas are supported and `Unknown
596c6970 18005 metadata header'.
18006
7dd4a573 180072009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 18008
18009 Move loader out of the kernel
18010
18011 * kern/loader.c: moved to ...
18012 * commands/boot.c: ... moved here
18013 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
18014 * commands/boot.c (grub_cmd_boot): moved here. All users updated
18015 * include/grub/kernel.h (grub_machine_fini): export
18016 * include/grub/loader.h (grub_loader_is_loaded): update declaration
18017 (grub_loader_set): likewise
18018 (grub_loader_unset): likewise
18019 (grub_loader_boot): likewise
18020 * conf/common.rmk: new module boot.mod
18021 (pkglib_MODULES): add boot.mod
18022 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
18023 (grub_emu_SOURCES): likewise
18024 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
18025 (grub_emu_SOURCES): likewise
18026 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
18027 (grub_emu_SOURCES): likewise
18028 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
18029 (grub_emu_SOURCES): likewise
18030 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
18031 (grub_emu_SOURCES): likewise
7dd4a573 18032 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
18033 (grub_emu_SOURCES): likewise
0d5d5653 18034 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 18035 (grub_emu_SOURCES): likewise
0d5d5653 18036
7dd4a573 180372009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 18038
18039 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 18040
5999d619 18041 * kern/misc.c (grub_itoa): Removed function
18042 (grub_ltoa): likewise
18043 (grub_vsprintf): use grub_lltoa
18044
7dd4a573 180452009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 18046
18047 Restore grub-emu
18048
18049 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
18050 * conf/i386-coreboot.rmk: likewise
18051 * conf/i386-ieee1275.rmk: likewise
18052 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 18053
20318222 180542009-04-15 Felix Zielcke <fzielcke@z-51.de>
18055
18056 * INSTALL: Add that `./autogen.sh' needs to be run before
18057 `./configure.'.
18058
d05f0df3 180592009-04-14 Bean <bean123ch@gmail.com>
18060
18061 * Makefile.in (pkglib_DATA): Add handler.lst.
18062 (handler.lst): New rule.
18063
18064 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
18065 * conf/i386-coreboot.rmk: Likewise.
18066 * conf/i386-ieee1275.rmk: Likewise.
18067 * conf/i386-efi.rmk: Likewise.
18068 * conf/x86_64-efi.rmk: Likewise.
18069 * conf/powerpc-ieee1275.rmk: Likewise.
18070 * conf/sparc64-ieee1275.rmk: Likewise.
18071
18072 * genhandlerlist.sh: New file.
18073
18074 * genmk.rb: Add rules to generate handler.lst.
18075
18076 * include/grub/normal.h (grub_file_getline): New function definition.
18077 (read_handler_list): Likewise.
18078 (free_handler_list): Likewise.
18079
18080 * include/grub/term.h (grub_term_register_input): Add name parameter
18081 for auto generation of handler.lst.
18082 (grub_term_register_output): Likewise.
18083
18084 * normal/handler.c: New file.
18085
18086 * normal/main.c (get_line): Renamed to grub_file_getline.
18087 (read_config_file): Use the newly renamed grub_file_getline.
18088 (read_command_list): Likewise.
18089 (read_fs_list): Likewise.
18090 (grub_normal_execute): Call read_handler_list to parse handler.lst.
18091 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
18092
18093 * term/efi/console.c (grub_console_init): Add name parameter for auto
18094 generation of handler.lst.
18095 * term/gfxterm.c: Likewise.
18096 * term/i386/pc/at_keyboard.c: Likewise.
18097 * term/i386/pc/console.c: Likewise.
18098 * term/i386/pc/serial.c: Likewise.
18099 * term/i386/pc/vesafb.c: Likewise.
18100 * term/i386/pc/vga.c: Likewise.
18101 * term/i386/pc/vga_text.c: Likewise.
18102 * term/ieee1275/ofconsole.c: Likewise.
18103 * term/usb_keyboard.c: Likewise.
18104
33c846be 181052009-04-14 Bean <bean123ch@gmail.com>
18106
18107 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
18108 properly with null character.
18109
4484e01e 181102009-04-14 Felix Zielcke <fzielcke@z-51.de>
18111
18112 * configure: Remove.
18113 * config.h.in: Likewise.
f93d668e 18114 * stamp-h.in: Likewise.
4484e01e 18115 * DISTLIST: Likewise.
18116 * conf/common.mk: Likewise.
18117 * conf/i386-coreboot.mk: Likewise.
18118 * conf/i386-efi.mk: Likewise.
18119 * conf/i386-ieee1275.mk: Likewise.
18120 * conf/i386.mk: Likewise.
18121 * conf/i386-pc.mk: Likewise.
18122 * conf/powerpc-ieee1275.mk: Likewise.
18123 * conf/sparc64-ieee1275.mk: Likewise.
18124 * conf/x86_64-efi.mk: Likewise.
18125
18126 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
18127 develop on GRUB.
18128
7dd4a573 181292009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 18130 David S. Miller <davem@davemloft.net>
18131
18132 * util/hostdisk.c (make_device_name): Fix buffer length
18133 calculations.
18134
e25b5a8c 181352009-04-14 Felix Zielcke <fzielcke@z-51.de>
18136
18137 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
18138 <sys/param.h> and <sys/sysctl.h>.
18139 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
18140 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
18141 opening the device and reset them afterwards.
18142
1f1f580c 181432009-04-13 Pavel Roskin <proski@gnu.org>
18144
18145 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
18146 Reported by John Stanley <jpsinthemix@verizon.net>
18147
7ebc2d6b 181482009-04-13 Robert Millan <rmh@aybabtu.com>
18149
18150 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 18151 that name for menuentries when appropriate.
7ebc2d6b 18152
d8ba3667 181532009-04-13 Felix Zielcke <fzielcke@z-51.de>
18154
18155 * util/grub.d/10_freebsd.in: Add a missing `fi'.
18156
cba416eb 181572009-04-13 Robert Millan <rmh@aybabtu.com>
18158
18159 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
18160 to Linux, simply abort telling the user it's no longer supported.
18161
a547a745 181622009-04-13 Felix Zielcke <fzielcke@z-51.de>
18163
18164 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 18165 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 18166 `freebsd_loadenv' only when devices.hints exist.
18167
232a769c 181682009-04-13 Pavel Roskin <proski@gnu.org>
18169
18170 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
18171
c3012039 181722009-04-13 Felix Zielcke <fzielcke@z-51.de>
18173
18174 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
18175 partition number.
18176 (grub_drive): Likewise.
18177
234022fe 181782009-04-13 David S. Miller <davem@davemloft.net>
18179
18180 * kern/sparc64/ieee1275/ieee1275.c: New file.
18181 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
18182 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
18183 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
18184 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
18185 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
18186 grub_ieee1275_alloc_physmem): Declare new exported functions.
18187
d8e1836c 18188 * include/grub/sparc64/ieee1275/loader.h: New file.
18189 * include/grub/sparc64/ieee1275/memory.h: Likewise.
18190 * include/grub/sparc64/kernel.h: Likewise.
18191 * loader/sparc64/ieee1275/linux.c: Likewise.
18192
96bd81ec 18193 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
18194 (grub_fstest_SOURCES): Likewise.
18195
6a4737e5 18196 * util/hostdisk.c (make_device_name): Do not make any assumptions
18197 about the length of drive names.
18198
1d7a72fd 18199 * kern/dl.c (grub_dl_load_file): Close file immediately when
18200 we are done using it.
18201
56bc2471 182022009-04-12 David S. Miller <davem@davemloft.net>
18203
18204 * kern/misc.c (grub_ltoa): Fix cast when handling negative
18205 values. Noticed by Pavel Roskin.
18206
df38d0bb 18207 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
18208 target compiler.
7dd4a573 18209
e382e93a 18210 * genmk.rb: Add more flexible image type specification, also
18211 pass --strip-unneeded to objcopy.
18212 * conf/i386-pc.rmk: Use *_FORMAT.
18213 * conf/i386-pc.mk: Rebuilt.
18214
f5dbbca9 18215 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
18216 (OFDISK_HASH_SZ): Define.
18217 (ofdisk_hash): New hash table.
18218 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
18219 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
18220 instead of device phandle which is not unique.
18221
91c88b12 18222 * kern/sparc64/ieee1275/init.c: Delete, replace with...
18223 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
18224 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
18225 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
18226 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
18227 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
18228 GRUB_KERNEL_MACHINE_DATA_END): Define.
18229 (grub_kernel_image_size, grub_total_module_size): Declare.
18230
5b5d4aa5 182312009-04-12 Pavel Roskin <proski@gnu.org>
18232
7dd4a573 18233 * configure.ac: Change the logic when we check for target tools.
18234 Do it when the target is specified and it's different from the
18235 specified value of the host.
5b5d4aa5 18236
c91e1793 182372009-04-11 Felix Zielcke <fzielcke@z-51.de>
18238
18239 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
18240 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
18241 GNU/kFreeBSD. Check if a device is a character device. Use
18242 DIOCGMEDIASIZE to get the size.
18243 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
18244 support for GNU/kFreeBSD.
18245 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
18246 is a character device instead of a block device. Add support for
18247 FreeBSD device names.
18248
18249 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
18250 is a character device instead of a block device.
18251
18252 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
18253 is a character device instead of a block device.
18254
b1ac8644 182552009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
18256
18257 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
18258 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
18259 FreeBSD. Check if a device is a character device. Use
18260 DIOCGMEDIASIZE to get the size.
18261 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
18262 support for FreeBSD.
18263 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
18264 is a character device instead of a block device. Add support for
18265 FreeBSD device names.
18266
18267 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
18268 a character device instead of a block device.
18269 (grub_util_check_char_device): New function.
18270
18271 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
18272 a character device instead of a block device.
18273
18274 * include/grub/util/getroot.h (grub_util_check_char_device): New
18275 prototype.
18276
a3f7515a 182772009-04-11 David S. Miller <davem@davemloft.net>
18278
18279 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
18280 static libgcc.
18281 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
18282 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
18283 function, if present.
18284 (__bswapdi2): Likewise.
18285
0d44993d 18286 * include/grub/sparc64/ieee1275/boot.h: New file.
18287 * boot/sparc64/ieee1275/boot.S: Likewise.
18288 * boot/sparc64/ieee1275/diskboot.S: Likewise.
18289
ed3d2bc2 18290 * kern/misc.c (grub_ltoa): New function.
18291 (grub_vsprintf): Use it to format 'long' integers.
18292
d3bfb59c 182932009-04-10 David S. Miller <davem@davemloft.net>
18294
18295 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
18296 slots are of type grub_ieee1275_cell_t.
18297 (grub_nand_read): Likewise.
18298 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
18299 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
18300 macros are used to compare values in arg/ret block of the call.
18301 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
18302 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
18303 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
18304 grub_ieee1275_instance_to_path, grub_ieee1275_write,
18305 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
18306 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
18307 grub_ieee1275_close, grub_ieee1275_set_property,
18308 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
18309 grub_ieee1275_cell_t.
18310 * kern/ieee1275/openfw.c (grub_map): Likewise.
18311 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
18312 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
18313
450e2238 18314 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
18315 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
18316 (grub_devalias_iterate): Likewise.
18317
7dd4a573 183182009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 18319
18320 UFS improvements
18321
18322 * fs/ufs.c (INODE_NBLOCKS): new definition
18323 (struct grub_ufs_dirent): added fields for non-BSD dirents
18324 (grub_ufs_get_file_block): fixed double indirect handling
18325 (grub_ufs_lookup_symlink): use more robust way to determine whether
18326 symlink is inline
18327 (grub_ufs_find_file): support for non-BSD dirents
18328 (grub_ufs_dir): support for non-BSD dirents
18329
e7e6862a 183302009-04-10 Bean <bean123ch@gnail.com>
18331
18332 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
18333 attribute, otherwise the size would be wrong for i386 platform.
18334
18335 * include/grub/pci.h (grub_pci_read_word): New inline function.
18336 (grub_pci_read_byte): Likewise.
18337 (grub_pci_write): Likewise.
18338 (grub_pci_write_word): Likewise.
18339 (grub_pci_write_byte): Likewise.
18340
18341 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
18342
18343 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
18344 (find_framebuf): Scan pci to locate the frame buffer address.
18345
18346 * commands/efi/fixvideo.c: New file.
18347
18348 * commands/efi/loadbios.c: Likewise.
18349
18350 * commands/memrw.c: Likewise.
18351
18352 * util/grub-dumpbios.in: Likewise.
18353
18354 * conf/common.rmk (grub-dumpbios): New utility.
18355 (pkglib_MODULES): New module memrw.mod.
18356 (memrw_mod_SOURCE): New macro.
18357 (memrw_mod_CFLAGS): Likewise.
18358 (memrw_mod_LDFLAGS): Likewise.
18359
7dd4a573 18360 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 18361 fixvideo.mod.
18362 (loadbios_mod_SOURCE): New macro.
18363 (loadbios_mod_CFLAGS): Likewise.
18364 (loadbios_mod_LDFLAGS): Likewise.
18365 (fixvideo_mod_SOURCE): Likewise.
18366 (fixvideo_mod_CFLAGS): Likewise.
18367 (fixvideo_mod_LDFLAGS): Likewise.
18368
7dd4a573 18369 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 18370 fixvideo.mod.
18371 (loadbios_mod_SOURCE): New macro.
18372 (loadbios_mod_CFLAGS): Likewise.
18373 (loadbios_mod_LDFLAGS): Likewise.
18374 (fixvideo_mod_SOURCE): Likewise.
18375 (fixvideo_mod_CFLAGS): Likewise.
18376 (fixvideo_mod_LDFLAGS): Likewise.
18377
af63ada2 183782009-04-08 Felix Zielcke <fzielcke@z-51.de>
18379
18380 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
18381
c2cdde70 183822009-04-07 David S. Miller <davem@davemloft.net>
18383
18384 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
18385 support for R_SPARC_OLO10 relocations. Fix compile warning for
18386 R_SPARC_WDISP30 case.
ea3f72cf 18387 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 18388
761319cf 183892009-04-06 Pavel Roskin <proski@gnu.org>
18390
1007d1f5 18391 * include/grub/misc.h (ARRAY_SIZE): New macro.
18392 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
18393 New macro.
18394 * loader/i386/linux.c (allocate_pages): Use free_pages().
18395 (grub_linux_unload): Don't use free_pages().
18396 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
18397 wrong index. Treat all other modes as text modes.
18398 (grub_cmd_linux): Initialize vid_mode unconditionally to
18399 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
18400
761319cf 18401 * commands/help.c (print_command_help): Use cmd->prio, not
18402 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
18403
ea761d40 184042009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 18405
ea761d40 18406 Parttool
18407
18408 * parttool/pcpart.c: new file
18409 * commands/parttool.c: likewise
18410 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
18411 (parttool_mod_SOURCES): new variable
18412 (parttool_mod_CFLAGS): likewise
18413 (parttool_mod_LDFLAGS): likewise
18414 (pcpart_mod_SOURCES): likewise
18415 (pcpart_mod_CFLAGS): likewise
18416 (pcpart_mod_LDFLAGS): likewise
7dd4a573 18417 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 18418 and parttool/pcpart.c
18419 * conf/i386-efi.rmk: likewise
18420 * conf/i386-ieee1275.rmk: likewise
18421 * conf/i386-pc.rmk: likewise
18422 * conf/powerpc-ieee1275.rmk: likewise
18423 * conf/sparc64-ieee1275.rmk: likewise
18424 * conf/x86_64-ieee1275.rmk: likewise
18425
05aaebfb 184262009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18427
18428 Support for mtime and further expandability of dir command
18429
18430 * include/grub/lib/datetime.h: moved to ...
7dd4a573 18431 * include/grub/datetime.h: ... moved here and added
05aaebfb 18432 declaration of grub_unixtime2datetime. All users updated
7dd4a573 18433 * include/grub/fs.h: new syntax for dir and mtime functions in
18434 struct grub_fs
05aaebfb 18435 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
18436 and GRUB_FSHELP_FLAGS_MASK
18437 * commands/ls.c (grub_ls_list_files): Write mtime in long format
18438 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
18439 (grub_ext2_mtime): new function
18440 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
18441 (grub_hfsplus_mtime): new function
18442 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
18443 (GRUB_UFS_ATTR_FILE): likewise
18444 (GRUB_UFS_ATTR_LNK): likewise
18445 (struct grub_ufs_sblock): new fields mtime
18446 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
18447 all users updated
18448 (grub_ufs_dir): mtime support
18449 (grub_ufs_mtime): new function
18450 * fs/affs.c (grub_affs_dir): use new dir syntax
18451 * fs/afs.c (grub_afs_dir): likewise
18452 * fs/cpio.c (grub_cpio_dir): likewise
18453 * fs/fat.c (grub_fat_find_dir): likewise
18454 * fs/hfs.c (grub_hfs_dir): likewise
18455 * fs/iso9660.c (grub_iso9660_dir): likewise
18456 * fs/jfs.c (grub_jfs_dir): likewise
18457 * fs/minix.c (grub_minix_dir): likewise
18458 * fs/ntfs.c (grub_ntfs_dir): likewise
18459 * fs/reiserfs.c (grub_reiserfs_dir): likewise
18460 * fs/sfs.c (grub_sfs_dir): likewise
18461 * fs/xfs.c (grub_xfs_dir): likewise
18462 * util/hostfs.c (grub_hostfs_dir): likewise
18463 * lib/datetime.c: moved to ...
18464 * normal/datetime.c: ... moved here
18465 (grub_unixtime2datetime): new function
18466 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 18467 * normal/completion.c (iterate_dir): use new dir syntax
18468 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 18469 last modification time of a volume
7dd4a573 18470 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 18471 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 18472 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 18473 (normal_mod_SOURCES): likewise
18474 (datetime_mod_SOURCES): Removed lib/datetime.c
18475 * conf/i386-efi.rmk: likewise
7dd4a573 18476 * conf/i386-ieee1275.rmk: likewise
05aaebfb 18477 * conf/i386-pc.rmk: likewise
18478 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 18479 * conf/sparc64-ieee1275.rmk: likewise
18480 * conf/x86_64-efi.rmk: likewise
05aaebfb 18481
8a7e1a14 184822009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18483
18484 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 18485
18486 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 18487 on grub_fat_find_dir
18488 (grub_fat_find_dir): use grub_fat_iterate_dir
18489 (grub_fat_label): likewise
18490
04186a9c 184912009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
18492
7dd4a573 18493 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 18494 and command.h
18495 remove extraneous kernel_elf_HEADERS
18496
da4c0bb6 184972009-04-04 Bean <bean123ch@gnail.com>
18498
18499 * include/grub/util/misc.h: Add dummy function fsync for mingw.
18500
18501 * util/misc.c: Likewise.
18502
54ad9555 185032009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18504
18505 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
18506 instead of grub_printf.
18507
7a6bf9f2 185082009-04-03 Robert Millan <rmh@aybabtu.com>
18509
18510 * loader/i386/linux.c (grub_linux_setup_video): Fill
18511 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
18512 values from `mode info' structure instead of hardcoded
18513 values.
18514
3fcc2083 185152009-04-01 Pavel Roskin <proski@gnu.org>
18516
18517 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
18518 unused now.
18519 * genmk.rb: Likewise.
18520 * configure.ac: Likewise.
18521
5ec9740b 185222009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
18523
18524 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
18525 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
18526
5270cec8 185272009-04-01 David S. Miller <davem@davemloft.net>
18528
18529 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 18530 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 18531 (grub_setjmp): Mark with 'returns_twice' attribute.
18532 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
18533 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
18534 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
18535
9c3dd854 185362009-04-01 Robert Millan <rmh@aybabtu.com>
18537
18538 Reapply fix from 2008-07-28 which was accidentally reverted; also
18539 perform the same fix to a similar check in same function.
18540
18541 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
18542 with the same number are found, just use issue a warning with
18543 grub_dprintf(), as this error has been reported to be non-fatal.
18544
0d818b7e 185452009-03-31 Pavel Roskin <proski@gnu.org>
18546
18547 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
18548 for cross-compilation.
18549
95646d92 185502009-03-30 Robert Millan <rmh@aybabtu.com>
18551
18552 Fix i386-ieee1275 build.
18553
18554 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
18555 Remove declaration.
18556
6a003ed1 185572009-03-30 Pavel Roskin <proski@gnu.org>
18558
18559 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
18560 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
18561 zero-terminated, rely only on the strlen value. Fix comparison
18562 of strings differing in length.
18563
92f33540 185642009-03-30 Robert Millan <rmh@aybabtu.com>
18565
18566 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
18567 checking for abi version. Improve error messages on BIOS to notify
18568 user about `linux16' command.
18569
a8c48fd5 185702009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18571
f968172e 18572 Leak fixes
a8c48fd5 18573
f968172e 18574 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
18575 in case of collision
18576 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 18577
9c323f09 185782009-03-29 Robert Millan <rmh@aybabtu.com>
18579
18580 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
18581 set `vid_mode' accordingly.
18582 (grub_linux_boot): Process `vid_mode' and set video mode.
18583
ae68f423 185842009-03-29 Robert Millan <rmh@aybabtu.com>
18585
18586 * util/grub.d/10_linux.in (linux_entry): New function.
18587 Factorize generation of Linux boot entries.
18588
5709cfc4 185892009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
18590
18591 Make the format of Environment Block plain text. The boot loader
18592 part is not tested well yet.
7dd4a573 18593
5709cfc4 18594 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
18595 (buffer): Removed.
18596 (envblk): Likewise.
18597 (usage): Remove "info" and "clear". Add "unset". Update the
18598 description of "set", as this does not delete variables any
18599 longer.
18600 (create_envblk_file): Complete rewrite.
18601 (open_envblk_file): Likewise.
18602 (cmd_info): Removed.
18603 (cmd_list): Likewise.
18604 (cmd_set): Likewise.
18605 (cmd_clear): Likewise.
18606 (list_variables): New function.
18607 (write_envblk): Likewise.
18608 (set_variables): Likewise.
18609 (unset_variables): Likewise.
18610 (main): Complete rewrite.
18611
18612 * commands/loadenv.c (buffer): Removed.
18613 (envblk): Likewise.
18614 (open_envblk_file): New function.
18615 (read_envblk_file): Complete rewrite.
18616 (grub_cmd_load_env): Likewise.
18617 (grub_cmd_list_env): Likewise.
18618 (struct blocklist): New struct.
18619 (free_blocklists): New function.
18620 (check_blocklists): Likewise.
18621 (write_blocklists): Likewise.
18622 (grub_cmd_save_env): Complete rewrite.
18623
18624 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
18625 a plain text signature.
18626 (GRUB_ENVBLK_MAXLEN): Removed.
18627 (struct grub_envblk): Complete rewrite.
18628 (grub_envblk_find): Removed.
18629 (grub_envblk_insert): Likewise.
18630 (grub_envblk_open): New prototype.
18631 (grub_envblk_set): Likewise.
18632 (grub_envblk_delete): Put const to VALUE.
18633 (grub_envblk_iterate): Put const to NAME and VALUE.
18634 (grub_envblk_close): New prototype.
18635 (grub_envblk_buffer): New inline function.
18636 (grub_envblk_size): Likewise.
18637
18638 * lib/envblk.c: Include grub/mm.h.
18639 (grub_env_find): Removed.
18640 (grub_envblk_open): New function.
18641 (grub_envblk_close): Likewise.
18642 (escaped_value_len): Likewise.
18643 (find_next_line): Likewise.
18644 (grub_envblk_insert): Removed.
18645 (grub_envblk_set): New function.
18646 (grub_envblk_delete): Complete rewrite.
18647 (grub_envblk_iterate): Likewise.
18648
a9368fd3 186492009-03-28 Robert Millan <rmh@aybabtu.com>
18650
18651 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
18652 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
18653 variables. Use 16-bit loader.
18654 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
18655 loader.
18656 * kern/i386/loader.S (grub_linux_boot): Rename to ...
18657 (grub_linux16_boot): ... this. Update all users.
18658 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
18659 (grub_linux_boot): ... this. Update all users.
18660
18661 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
18662 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
18663 commands to `linux16' and `initrd16'.
18664 (GRUB_MOD_FINI(linux)): Rename to ...
18665 (GRUB_MOD_FINI(linux16)): ... this.
18666
e4dd5a7e 186672009-03-24 Pavel Roskin <proski@gnu.org>
18668
18669 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
18670 not just for compilation.
18671
c04d6e05 186722009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
18673
18674 Move multiboot helper out of kernel
18675
18676 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
18677 `loader/i386/multiboot_helper.S'.
18678 * conf/i386-coreboot.rmk: Likewise
18679 * conf/i386-ieee1275.rmk: Likewise
18680
18681 * kern/i386/loader.S: Move multiboot helpers from here...
18682 * loader/i386/multiboot_helper.S: ...moved here
18683 * include/grub/i386/loader.h: Move declarations of multiboot
18684 helpers from here...
18685 * include/grub/i386/multiboot.h: ...moved here
18686 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
18687
42a5b3fc 186882009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18689
18690 * kern/env.c (grub_env_context_open): Added an argument to specify
18691 whether a new context inherits exported variables from current
18692 one. This is useful when making a sandbox to interpret a config
18693 file.
18694 All callers updated.
18695
18696 * include/grub/env.h (grub_env_context_open): Updated the prototype.
18697
b28bbc4e 186982009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18699
18700 * kern/env.c (grub_env_context_close): Fix memory leaks.
18701
f04f02e4 187022009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18703
18704 * normal/main.c (grub_normal_execute): Added an argument
18705 BATCH to specify if an interactive interface should be provided
18706 after reading a config file.
18707 All callers updated.
18708 (read_command_list): Prevent being executed twice.
18709 (read_fs_list): Likewise.
18710
42a5b3fc 18711 * include/grub/normal.h (grub_normal_execute): Updated the
18712 prototype.
f04f02e4 18713
41473ac2 187142009-03-22 Pavel Roskin <proski@gno.org>
18715
fbc00b0c 18716 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
18717 _start.
18718 * kern/i386/pc/startup.S: Likewise.
18719 * kern/i386/efi/startup.S: Likewise.
18720 * kern/i386/ieee1275/startup.S: Likewise.
18721 * kern/i386/coreboot/startup.S: Likewise.
18722 * kern/x86_64/efi/startup.S: Likewise.
18723
41473ac2 18724 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
18725 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
18726 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
18727
2274cc8f 187282009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
18729
18730 Bugfixes in multiboot for bugs uncovered by solaris kernel.
18731
18732 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
18733 limit detection.
18734 Use vaddr of correct segment for entry_point.
18735
b1b797cb 187362009-03-21 Bean <bean123ch@gmail.com>
18737
18738 * commands/blocklist.c: Add include file <grub/command.h>, remove
18739 <grub/normal.h> and <grub/arg.h>.
18740 (grub_cmd_blocklist): Use the new command interface.
18741 (GRUB_MOD_INIT): Likewise.
18742 (GRUB_MOD_FINI): Likewise.
18743 * commands/boot.c: Likewise.
18744 * commands/cat.c: Likewise.
18745 * commands/cmp.c: Likewise.
18746 * commands/configfile.c: Likewise.
18747 * commands/crc.c: Likewise.
18748 * commands/echo.c: Likewise.
18749 * commands/halt.c: Likewise.
18750 * commands/handler.c: Likewise.
18751 * commands/hdparm.c: Likewise.
18752 * commands/help.c: Likewise.
18753 * commands/hexdump.c: Likewise.
18754 * commands/loadenv.c: Likewise.
18755 * commands/ls.c: Likewise.
18756 * commands/lsmmap.c: Likewise.
18757 * commands/lspci.c: Likewise.
18758 * commands/loadenv.c: Likewise.
18759 * commands/read.c: Likewise.
18760 * commands/reboot.c: Likewise.
18761 * commands/search.c: Likewise.
18762 * commands/sleep.c: Likewise.
18763 * commands/test.c: Likewise.
18764 * commands/usbtest.c: Likewise.
18765 * commands/videotest.c: Likewise.
18766 * commands/i386/cpuid.c: Likewise.
18767 * commands/i386/pc/halt.c: Likewise.
18768 * commands/i386/pc/play.c: Likewise.
18769 * commands/i386/pc/pxecmd.c: Likewise.
18770 * commands/i386/pc/vbeinfo.c: Likewise.
18771 * commands/i386/pc/vbetest.c: Likewise.
18772 * commands/ieee1275/suspend.c: Likewise.
18773 * disk/loopback.c: Likewise.
18774 * font/font_cmd.c: Likewise.
18775 * hello/hello.c: Likewise.
18776 * loader/efi/appleloader.c: Likewise.
18777 * loader/efi/chainloader.c: Likewise.
18778 * loader/i386/bsd.c: Likewise.
18779 * loader/i386/efi/linux.c: Likewise.
18780 * loader/i386/ieee1275/linux.c: Likewise.
18781 * loader/i386/linux.c: Likewise.
18782 * loader/i386/pc/chainloader.c: Likewise.
18783 * loader/i386/pc/linux.c: Likewise.
18784 * loader/powerpc/ieee1275/linux.c: Likewise.
18785 * loader/multiboot_loader.c: Likewise.
18786 * term/gfxterm.c: Likewise.
18787 * term/i386/pc/serial.c: Likewise.
18788 * term/terminfo.c: Likewise.
18789
18790 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
18791 * term/i386/pc/vga.c: Likewise.
18792 * video/readers/jpeg.c: Likewise.
18793 * video/readers/png.c: Likewise.
18794 * video/readers/tga.c: Likewise.
18795
18796 * util/grub-fstest (cmd_loopback): Removed.
18797 (cmd_blocklist): Likewise.
18798 (cmd_ls): Likewise.
18799 (grub_register_command): Likewise.
18800 (grub_unregister_command): Likewise.
18801 (execute_command): Use grub_command_find to locate command and execute
18802 it.
18803
18804 * include/grub/efi/chainloader.h: Removed.
18805 * loader/efi/chainloader_normal.c: Likewise.
18806 * loader/i386/bsd_normal.c: Likewise.
18807 * loader/i386/pc/chainloader_normal.c: Likewise.
18808 * loader/i386/pc/multiboot_normal.c: Likewise.
18809 * loader/linux_normal.c: Likewise.
18810 * loader/multiboot_loader_normal.c: Likewise.
18811 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18812
18813 * gencmdlist.sh: Scan new registration command grub_register_extcmd
18814 and grub_register_command_p1.
18815
18816 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
18817 kern/command.c, lib/arg.c and commands/extcmd.c.
18818 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
18819 (minicmd_mod_SOURCES): New variable.
18820 (minicmd_mod_CFLAGS): Likewise.
18821 (minicmd_mod_LDFLAGS): Likewise.
18822 (extcmd_mod_SOURCES): Likewise.
18823 (extcmd_mod_CFLAGS): Likewise.
18824 (extcmd_mod_LDFLAGS): Likewise.
18825 (boot_mod_SOURCES): Removed.
18826 (boot_mod_CFLAGS): Likewise.
18827 (boot_mod_LDFLAGS): Likewise.
18828
18829 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
18830 kern/corecmd.c.
18831 (kernel_img_HEADERS): Add command.h.
18832 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
18833 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
18834 and lib/arg.c.
18835 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
18836 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
18837 remove the corresponding normal mode command.
18838 (normal_mod_SOURCES): Remove normal/arg.c.
18839 * conf/i386-coreboot.rmk: Likewise.
18840 * conf/i386-efi.rmk: Likewise.
18841 * conf/i386-ieee1275.rmk: Likewise.
18842 * conf/powerpc-ieee1275.rmk: Likewise.
18843 * conf/x86_64-efi.rmk: Likewise.
18844
18845 * include/grub/arg.h: Move from here ...
18846 * include/grub/lib/arg.h: ... to here.
18847
18848 * normal/arg.c: Move from here ...
18849 * lib/arg.c: ... to here.
18850
18851 * commands/extcmd.c: New file.
18852 * commands/minicmd.c: Likewise.
18853 * include/grub/command.h: Likewise.
18854 * include/grub/extcmd.h: Likewise.
18855 * kern/command.c: Likewise.
18856 * kern/corecmd.c: Likewise.
18857
18858 * kern/list.c (grub_list_iterate): Return int instead of void.
18859 (grub_list_insert): New function.
18860 (grub_prio_list_insert): Likewise.
18861
18862 * kern/rescue.c (grub_rescue_command): Removed.
18863 (grub_rescue_command_list): Likewise.
18864 (grub_rescue_register_command): Likewise.
18865 (grub_rescue_unregister_command): Likewise.
18866 (grub_rescue_cmd_boot): Move to minicmd.c
18867 (grub_rescue_cmd_help): Likewise.
18868 (grub_rescue_cmd_info): Likewise.
18869 (grub_rescue_cmd_boot): Likewise.
18870 (grub_rescue_cmd_testload): Likewise.
18871 (grub_rescue_cmd_dump): Likewise.
18872 (grub_rescue_cmd_rmmod): Likewise.
18873 (grub_rescue_cmd_lsmod): Likewise.
18874 (grub_rescue_cmd_exit): Likewise.
18875 (grub_rescue_print_devices): Moved to corecmd.c.
18876 (grub_rescue_print_files): Likewise.
18877 (grub_rescue_cmd_ls): Likewise.
18878 (grub_rescue_cmd_insmod): Likewise.
18879 (grub_rescue_cmd_set): Likewise.
18880 (grub_rescue_cmd_unset): Likewise.
7d074e3c 18881 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 18882 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 18883 commands, remove grub_rescue_register_command calls.
b1b797cb 18884
7d074e3c 18885 * normal/command.c (grub_register_command): Removed.
b1b797cb 18886 (grub_unregister_command): Likewise.
18887 (grub_command_find): Likewise.
18888 (grub_iterate_commands): Likewise.
18889 (rescue_command): Likewise.
18890 (export_command): Moved to corecmd.c.
18891 (set_command): Removed.
18892 (unset_command): Likewise.
18893 (insmod_command): Likewise.
18894 (rmmod_command): Likewise.
18895 (lsmod_command): Likewise.
18896 (grub_command_init): Likewise.
18897
18898 * normal/completion.c (iterate_command): Use cmd->prio to check for
18899 active command.
18900 (complete_arguments): Use grub_extcmd_t structure to find options.
18901 (grub_normal_do_completion): Change function grub_iterate_commands to
18902 grub_command_iterate.
18903
18904 * normal/execute.c (grub_script_execute_cmd): No need to parse
18905 argument here.
18906
18907 * normal/main.c (grub_dyncmd_dispatcher): New function.
18908 (read_command_list): Register unload commands as dyncmd.
18909 (grub_cmd_normal): Use new command interface, register rescue,
18910 unregister normal at entry, register normal, unregister rescue at exit.
18911
18912 * include/grub/list.h (grub_list_test_t): New type.
18913 (grub_list_iterate): Return int instead of void.
18914 (grub_list_insert): New function.
18915 (GRUB_AS_NAMED_LIST_P): New macro.
18916 (GRUB_AS_PRIO_LIST): Likewise.
18917 (GRUB_AS_PRIO_LIST_P): Likewise.
18918 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
18919 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
18920 (grub_prio_list): New structure.
18921 (grub_prio_list_insert): New function.
18922 (grub_prio_list_remove): New inline function.
18923
18924 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
18925 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
18926 (GRUB_COMMAND_FLAG_MENU): Likewise.
18927 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18928 (GRUB_COMMAND_FLAG_TITLE): Likewise.
18929 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18930 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
18931 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
18932 (grub_command): Likewise.
18933 (grub_register_command): Likewise.
18934 (grub_command_find): Likewise.
18935 (grub_iterate_commands): Likewise.
18936 (grub_command_init): Likewise.
18937 (grub_arg_parse): Likewise.
18938 (grub_arg_show_help): Likewise.
18939
18940 * include/grub/rescue.h (grub_rescue_register_command): Removed.
18941 (grub_rescue_unregister_command): Likewise.
18942
18943 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
18944 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
18945 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
18946
18947 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
18948 grub_rescue_cmd_initrd.
18949 * include/grub/i386/loader.h: Likewise.
18950 * include/grub/x86_64/loader.h: Likewise.
18951
18952 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
18953
1f4147aa 189542009-03-21 Bean <bean123ch@gmail.com>
18955
18956 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
18957 instead of stat in mingw environment.
18958
18959 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
18960
18961 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
18962
18963 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
18964 AC_CONFIG_LINKS.
18965
2156d5ba 189662009-03-21 Bean <bean123ch@gmail.com>
18967
18968 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
18969 out of range error.
18970
177b82ca 189712009-03-18 Michel Dänzer <michel@daenzer.net>
18972
18973 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
18974 checking inode flags for EXT4_EXTENTS_FLAG.
18975
14aad807 189762009-03-18 Robert Millan <rmh@aybabtu.com>
18977
18978 * loader/i386/linux.c: Include `<grub/video.h>' and
18979 `<grub/i386/pc/vbe.h>'..
18980 (grub_linux_setup_video): New function. Loosely based on the EFI one.
18981 (grub_linux32_boot): Attempt to configure video settings with
18982 grub_linux_setup_video().
18983 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
18984 to avoid grub_console_fini() which would step out of graphical mode
18985 unconditionally.
18986
8cf83a27 189872009-03-14 Robert Millan <rmh@aybabtu.com>
18988
18989 Fix build on powerpc.
18990 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
18991
40164e75 189922009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
18993
18994 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
18995 background image command.
18996
c58bc32a 189972009-03-12 Colin D Bennett <colin@gibibit.com>
18998
18999 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
19000 (grub_gfxterm_putchar): Extract pairs of identical calls to
19001 draw_cursor out of conditional blocks.
19002
5415144a 190032009-03-11 Pavel Roskin <proski@gnu.org>
19004
19005 * fs/hfs.c (grub_hfs_strncasecmp): New function.
19006 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
19007
6394042e 190082009-03-11 Robert Millan <rmh@aybabtu.com>
19009
19010 * loader/i386/multiboot_elfxx.c
19011 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
19012
b7b50e5f 190132009-03-11 Felix Zielcke <fzielcke@z-51.de>
19014
19015 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
19016 `kern/handler.c'.
19017
1ca7fc96 190182009-03-11 Robert Millan <rmh@aybabtu.com>
19019
19020 * loader/i386/multiboot.c (code_size): New variable.
19021 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 19022 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 19023 4-byte alignment to MBI and others by increasing
7d074e3c 19024 `boot_loader_name_length' appropriately.
1ca7fc96 19025
19026 * loader/i386/multiboot_elfxx.c
19027 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
19028
a83ea1d2 190292009-03-09 Felix Zielcke <fzielcke@z-51.de>
19030
19031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
19032 `fs/ext2.c'.
19033
aa9f3bff 190342009-03-08 Robert Millan <rmh@aybabtu.com>
19035
19036 Make loader/i386/linux.c usable on i386-pc again.
19037
19038 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
19039 memory to heap.
19040 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
19041 `#error' stanza.
19042
d8b3b60e 190432009-03-07 Bean <bean123ch@gmail.com>
19044
19045 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
19046 allocation.
19047
b362c9e9 190482009-03-06 Robert Millan <rmh@aybabtu.com>
19049
19050 Fix display issue on terminals with screen size other than 80x25
19051 (e.g. gfxterm with resolution higher than 640x480).
19052
19053 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 19054 position relative to the center of the terminal instead of relying
b362c9e9 19055 on a hardcoded offset.
19056
9304eef1 190572009-03-04 Robert Millan <rmh@aybabtu.com>
19058
19059 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
19060 installed.
19061
19062 * Makefile.in (host_kernel): New variable.
19063 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
19064 scripts instead of just the windows one.
19065 * configure.ac: Initialize and AC_SUBST `host_kernel'.
19066
eabc95fb 190672009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 19068
19069 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
19070 `kern/handler.c'.
19071 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19072 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19073 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19074 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19075 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19077
ceb1223c 190782009-03-04 Felix Zielcke <fzielcke@z-51.de>
19079
19080 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
19081 or if there's no space for the disk label and print the partition number on a
19082 invalid magic.
19083
4910684a 190842009-03-04 Felix Zielcke <fzielcke@z-51.de>
19085
19086 * util/misc.c: Include <time.h>.
19087 (grub_millisleep): New function.
19088
7e9ca17a 190892009-03-04 Bean <bean123ch@gmail.com>
19090
19091 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
19092 another option -mno-red-zone.
19093
19094 * commands/handler.c: Change module description.
19095
19096 * kern/handler.c: Add missing space at the end of description line.
19097
19098 * kern/list.c: Likewise.
19099
f501677c 191002009-03-03 Robert Millan <rmh@aybabtu.com>
19101
19102 Move more components to the relocation area, and fix mbi pointer
19103 handling to use the destination rather than the origin (thanks to
19104 Vladimir Serbinenko for spotting).
19105
19106 * loader/i386/multiboot.c (mbi_dest): New variable.
19107 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
19108 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
19109 relocation area.
19110
9902d047 191112009-03-01 Bean <bean123ch@gmail.com>
19112
50fb7002 19113 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 19114 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
19115 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
19116 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
19117
19118 * loader/i386/efi/linux.c (acpi_guid): New variable.
19119 (acpi_guid): Likewise.
19120 (EBDA_SEG_ADDR): New constant.
19121 (LOW_MEM_ADDR): Likewise.
19122 (FAKE_EBDA_SEG): Likewise.
19123 (fake_bios_data): New function.
19124 (grub_linux_boot): Call fake_bios_data.
19125
71b9f361 191262009-03-01 Bean <bean123ch@gmail.com>
19127
19128 * commands/terminal.c: Removed.
19129
19130 * commands/handler.c: New file.
19131
19132 * include/grub/list.h: Likewise.
19133
19134 * include/grub/handler.h: Likewise.
19135
19136 * kern/list.c: Likewise.
19137
19138 * kern/handler.c: Likewise.
19139
19140 * kern/term.h: Include header file <grub/handler.h>.
19141 (grub_term_input): Move next field to the beginning.
19142 (grub_term_output): Likewise.
19143 (grub_term_input_class): New variable.
19144 (grub_term_output_class): Likewise.
19145 (grub_term_register_input): Changed to inline function.
19146 (grub_term_register_output): Likewise.
19147 (grub_term_unregister_input): Likewise.
19148 (grub_term_unregister_output): Likewise.
19149 (grub_term_set_current_input): Likewise.
19150 (grub_term_set_current_output): Likewise.
19151 (grub_term_get_current_input): Likewise.
19152 (grub_term_get_current_output): Likewise.
19153 (grub_term_iterate_input): Removed.
19154 (grub_term_iterate_output): Likewise.
19155
19156 * kern/term.c (grub_term_list_input): Removed.
19157 (grub_term_list_output): Likewise.
19158 (grub_term_input_class): New variable.
19159 (grub_term_output_class): Likewise.
50fb7002 19160 (grub_cur_term_input): Change variable as macro.
71b9f361 19161 (grub_cur_term_output): Likewise.
19162 (grub_term_register_input): Removed.
19163 (grub_term_register_output): Likewise.
19164 (grub_term_unregister_input): Likewise.
19165 (grub_term_unregister_output): Likewise.
19166 (grub_term_set_current_input): Likewise.
19167 (grub_term_set_current_output): Likewise.
19168 (grub_term_iterate_input): Likewise.
19169 (grub_term_iterate_output): Likewise.
19170 (grub_term_get_current_input): Likewise.
19171 (grub_term_get_current_output): Likewise.
19172
19173 * util/grub-editenv.c: Include header file <grub/handler.h>.
19174 (grub_term_get_current_input): Removed.
19175 (grub_term_get_current_output): Likewise.
19176 (grub_term_input_class): New variable.
50fb7002 19177 (grub_term_output_class): Likewise.
71b9f361 19178
19179 * util/grub-fstest.c (grub_term_get_current_input): Removed.
19180 (grub_term_get_current_output): Likewise.
19181 (grub_term_input_class): New variable.
50fb7002 19182 (grub_term_output_class): Likewise.
71b9f361 19183
19184 * util/grub-probe.c (grub_term_get_current_input): Removed.
19185 (grub_term_get_current_output): Likewise.
19186 (grub_term_input_class): New variable.
50fb7002 19187 (grub_term_output_class): Likewise.
71b9f361 19188
19189 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
19190 (grub_term_get_current_output): Likewise.
19191 (grub_term_input_class): New variable.
50fb7002 19192 (grub_term_output_class): Likewise.
71b9f361 19193
19194 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
19195 (terminal_mod_SOURCES): Likewise.
19196 (terminal_mod_CFLAGS): Likewise.
19197 (terminal_mod_LDFLAGS): Likewise.
19198
19199 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
19200 handler.c.
19201 (kernel_img_SOURCES): Add list.c and handler.c.
19202 (kernel_img_HEADERS): Add list.h and handler.h.
19203
19204 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
19205 handler.c.
19206 (kernel_mod_SOURCES): Add list.c and handler.c.
19207 (kernel_mod_HEADERS): Add list.h and handler.h.
19208
19209 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
19210 handler.c.
19211 (kernel_elf_SOURCES): Add list.c and handler.c.
19212 (kernel_elf_HEADERS): Add list.h and handler.h.
19213
19214 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
19215 handler.c.
19216 (kernel_elf_SOURCES): Add list.c and handler.c.
19217 (kernel_elf_HEADERS): Add list.h and handler.h.
19218
19219 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
19220 handler.c.
19221 (kernel_mod_SOURCES): Add list.c and handler.c.
19222 (kernel_mod_HEADERS): Add list.h and handler.h.
19223
19224 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
19225 handler.c.
19226 (kernel_elf_SOURCES): Add list.c and handler.c.
19227 (kernel_elf_HEADERS): Add list.h and handler.h.
19228
8a31787f 192292009-02-27 Robert Millan <rmh@aybabtu.com>
19230
19231 Factorize elf32 / elf64 code in Multiboot loader. This will
19232 prevent it from getting out of sync again.
19233
19234 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
19235 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
19236 grub_multiboot_load_elf64): Move from here ...
19237 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
19238 grub_multiboot_load_elf): ... to here (new file).
19239
51cd3dfc 192402009-02-27 Robert Millan <rmh@aybabtu.com>
19241
19242 * util/grub.d/10_linux.in: Rename "single-user mode" to
19243 "recovery mode".
19244
6e8c9c3a 192452009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
19246
19247 Don't leak in SCSI code.
19248 * disk/scsi.c (grub_scsi_close): free `scsi'.
19249
4b6bf4f9 192502009-02-27 Robert Millan <rmh@aybabtu.com>
19251
19252 * loader/i386/pc/multiboot.c: Move from here ...
19253 * loader/i386/multiboot.c: ... to here. Update all users.
19254
b9413424 192552009-02-27 Robert Millan <rmh@aybabtu.com>
19256
19257 Patch from Alexandre Bique <bique.alexandre@gmail.com>
19258 * util/i386/pc/grub-setup.c (setup): Fix directory path.
19259
50fb7002 192602009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 19261
19262 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
19263 b-tree.
19264
8cc50345 192652009-02-27 Robert Millan <rmh@aybabtu.com>
19266
19267 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
19268 `0x' qualifier as 0 when base is specified as parameter).
19269
6e09b8b7 192702009-02-24 Bean <bean123ch@gmail.com>
19271
19272 * configure.ac: Check for -mcmodel=large in x86_64 target.
19273
19274 * include/grub/efi/api.h (efi_call_10): New macro.
19275 (efi_wrap_10): New function.
19276
19277 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
19278 (GRUB_PE32_REL_BASED_HIGH): Likewise.
19279 (GRUB_PE32_REL_BASED_LOW): Likewise.
19280 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
19281 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
19282 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
19283 (GRUB_PE32_REL_BASED_SECTION): Likewise.
19284 (GRUB_PE32_REL_BASED_REL): Likewise.
19285 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
19286 (GRUB_PE32_REL_BASED_DIR64): Likewise.
19287 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
19288
19289 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
19290 issue.
19291
19292 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
19293 (efi_wrap_10): New function.
19294
19295 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
19296
19297 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
19298 MB/MBP model (NV chipset).
19299 (devdata_devs): Add devpath_5 to the list.
19300
19301 * load/i386/efi/linux.c (video_base): Remove variable.
19302 (RGB_MASK): New macro.
19303 (RGB_MAGIC): Likewise.
19304 (LINE_MIN): Likewise.
19305 (LINE_MAX): Likewise.
19306 (FBTEST_STEP): Likewise.
19307 (FBTEST_COUNT): Likewise.
19308 (fb_list): New variable.
19309 (grub_find_video_card): Remove function.
19310 (find_framebuf): New function.
19311 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
19312 line length.
19313
19314 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
19315 problem for x86_64.
19316
74b21bee 193172009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
19318
19319 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
19320
19321 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
19322 coding tool name.
19323
a455f472 193242009-02-22 Robert Millan <rmh@aybabtu.com>
19325
19326 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
19327 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
19328 in our relocation, instead of using it directly from heap. Also
19329 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
19330
6374daf3 193312009-02-21 Robert Millan <rmh@aybabtu.com>
19332
19333 Implement USB keyboard support (based on patch by Marco Gerards)
19334
19335 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
19336 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
19337 (usb_keyboard_mod_LDFLAGS): New variables.
19338
19339 * term/usb_keyboard.c: New file.
19340
8fa4ea70 193412009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
19342
19343 Corrected wrong declaration
19344
19345 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
19346
353976ac 193472009-02-14 Christian Franke <franke@computer.org>
19348
19349 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
19350 (grub_lspci_iter): Print class code and programming interface byte.
19351
6aa1169b 193522009-02-14 Christian Franke <franke@computer.org>
19353
19354 * gendistlist.sh: Ignore `.svn' directories.
19355
265372ca 193562009-02-14 Felix Zielcke <fzielcke@z-51.de>
19357
19358 * fs/fat.c: Add 2009 to Copyright line.
19359
9ff516f3 193602009-02-14 Christian Franke <franke@computer.org>
19361
19362 * commands/hdparm.c: New file. Provides `hdparm' command
19363 which sends ATA commands via grub_disk_ata_pass_through ().
19364
19365 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
19366
19367 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
19368 and <grub/cpu/io.h> to include/grub/ata.h.
19369 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
19370 (GRUB_CDROM_SECTOR_SIZE): Remove.
19371 (GRUB_ATA_*): Move to include/grub/ata.h.
19372 (GRUB_ATAPI_*): Likewise.
19373 (enum grub_ata_commands): Likewise.
19374 (enum grub_ata_timeout_milliseconds): Likewise.
19375 (struct grub_ata_device): Likewise.
19376 (grub_ata_regset): Likewise.
19377 (grub_ata_regget): Likewise.
19378 (grub_ata_regset2): Likewise.
19379 (grub_ata_regget2): Likewise.
19380 (grub_ata_check_ready): Likewise.
19381 (grub_ata_wait_not_busy): Remove static, exported in
19382 include/grub/ata.h.
19383 (grub_ata_wait_drq): Likewise.
19384 (grub_ata_pio_read): Likewise.
19385
19386 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
19387 function for hdparm.mod.
19388
19389 * include/grub/ata.h: New file, contains declarations from
19390 disk/ata.c.
19391 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
19392
19393 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
19394 (grub_disk_ata_pass_through): New exported variable.
19395
19396 * kern/disk.c (grub_disk_ata_pass_through): New variable.
19397
772e23da 193982009-02-13 Colin D Bennett <colin@gibibit.com>
19399
19400 Support multiple fallback entries, and provide an API to support
19401 executing default+fallback menu entries. Renamed the `terminal' menu
19402 viewer to `text'.
19403
19404 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
19405 variable declaration.
19406 (grub_menu_execute_callback): New structure declaration.
19407 (grub_menu_execute_callback_t): New typedef.
19408 (grub_menu_execute_with_fallback): New function declaration.
19409 (grub_menu_get_entry): Likewise.
19410 (grub_menu_get_timeout): Likewise.
19411 (grub_menu_set_timeout): Likewise.
19412
19413 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
19414
19415 * normal/menu.c (grub_wait_after_message): Moved to
19416 `normal/menu_text.c'.
19417 (draw_border): Likewise.
19418 (print_message): Likewise.
19419 (print_entry): Likewise.
19420 (print_entries): Likewise.
19421 (grub_menu_init_page): Likewise.
19422 (get_entry_number): Likewise.
19423 (print_timeout): Likewise.
19424 (run_menu): Likewise.
19425 (grub_menu_execute_entry): Likewise.
19426 (show_text_menu): Likewise.
19427 (get_and_remove_first_entry_number): New function.
19428 (grub_menu_execute_with_fallback): Likewise.
19429 (get_entry): Renamed to ...
19430 (grub_menu_get_entry): .. this and made it global.
19431 (get_timeout): Renamed to ...
19432 (grub_menu_get_timeout): ... this and made it global.
19433 (set_timeout): Renamed to ...
19434 (grub_menu_set_timeout): ... this and made it global.
19435 (grub_normal_terminal_menu_viewer): Renamed to ...
19436 (grub_normal_text_menu_viewer): ... this.
19437
19438 * normal/menu_text.c: New file. Extracted text-menu-specific code
19439 from normal/menu.c.
19440
19441 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
19442 (normal_mod_SOURCES): Likewise.
19443
19444 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19445 (normal_mod_SOURCES): Likewise.
19446
19447 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19448 (normal_mod_SOURCES): Likewise.
19449
19450 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
19451 (normal_mod_SOURCES): Likewise.
19452
19453 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19454 (normal_mod_SOURCES): Likewise.
19455
19456 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19457 (normal_mod_SOURCES): Likewise.
19458
19459 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19460 (normal_mod_SOURCES): Likewise.
19461
16ac430e 194622009-02-11 Robert Millan <rmh@aybabtu.com>
19463
19464 * util/grub.d/00_header.in: Update old reference to `font' command.
19465
06ff20fc 194662009-02-10 Felix Zielcke <fzielcke@z-51.de>
19467
19468 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
19469
19470 Based on patch from Javier Martín.
19471
96da9407 194722009-02-09 Felix Zielcke <fzielcke@z-51.de>
19473
19474 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 19475 to avoid false positives with FAT.
96da9407 19476 (grub_fstest_SOURCES): Likewise.
19477 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19478 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19479 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19480 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19481 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19482 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19483
6dca6fe4 194842009-02-09 Felix Zielcke <fzielcke@z-51.de>
19485
06ff20fc 19486 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 19487 bpb.version_specific.fat12_or_fat16.fstype and
19488 bpb.version_specific.fat32.fstype.
19489
2550c62f 194902009-02-08 Robert Millan <rmh@aybabtu.com>
19491
be110b30 19492 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 19493
56978920 194942009-02-08 Robert Millan <rmh@aybabtu.com>
19495
19496 * Makefile.in (host_os, host_cpu): New variables.
19497 (target_os): Remove. Update all users.
19498
d64399b5 194992009-02-08 Marco Gerards <marco@gnu.org>
19500
19501 * Makefile.in (enable_grub_emu_usb): New variable.
19502 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
19503 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
19504 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
19505 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
19506 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
19507 `usbtest.mod' and `usbms.mod'.
19508 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
19509 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
19510 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
19511 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
19512 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
19513 variables.
19514
19515 * disk/usbms.c: New file.
19516
19517 * include/grub/usb.h: Likewise.
19518
19519 * include/grub/usbtrans.h: Likewise.
19520
19521 * include/grub/usbdesc.h: Likewise.
19522
19523 * bus/usb/usbtrans.c: Likewise.
19524
19525 * bus/usb/ohci.c: Likewise.
19526
19527 * bus/usb/uhci.c: Likewise.
19528
19529 * bus/usb/usbhub.c: Likewise.
19530
19531 * bus/usb/usb.c: Likewise.
19532
19533 * commands/usbtest.c: Likewise.
19534
19535 * util/usb.c: Likewise.
50fb7002 19536
d64399b5 19537 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
19538
19539 * configure.ac: Test for libusb presence.
50fb7002 19540
d64399b5 19541 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
19542
2b40d6bb 195432009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
19544
19545 * kern/mm.c: Add more comments.
19546
73a4ce81 195472009-02-08 Robert Millan <rmh@aybabtu.com>
19548
19549 Patch from Javier Martín.
19550 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
19551 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
19552
f821ce59 195532009-02-08 Robert Millan <rmh@aybabtu.com>
19554
19555 * fs/cpio.c: Split tar functionality to ...
19556 * fs/tar.c: ... here (new file). Update all users.
19557
aebfc4b0 195582009-02-07 Robert Millan <rmh@aybabtu.com>
19559
19560 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
19561 backward-incompatible features.
19562
19563 Based on patch from Javier Martín, with some adjustments.
19564
50fb7002 195652009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 19566
19567 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
19568
0bb5115e 195692009-02-07 Robert Millan <rmh@aybabtu.com>
19570
19571 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
19572 position of `disk/lvm.c' to ensure grub_init_all() always picks it
19573 after the RAID stuff.
19574
38a0f8e7 195752009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
19576
50fb7002 19577 Fixes problem when running vbetest command as reported by
38a0f8e7 19578 Vladimir Serbinenko <phcoder@gmail.com>.
19579
19580 * (grub_vbe_set_video_mode): Fixed problem with text modes.
19581
3143cc1c 195822009-02-04 Felix Zielcke <fzielcke@z-51.de>
19583
19584 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
19585 /dev/md/NpN style mdraid devices.
19586
9cba6fce 195872009-02-03 Felix Zielcke <fzielcke@z-51.de>
19588
19589 * util/unifont2pff.rb: Remove.
19590
e507a2c1 195912009-02-03 Felix Zielcke <fzielcke@z-51.de>
19592
19593 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
19594 `#'.
19595
d2c2b4cd 195962009-02-03 Felix Zielcke <fzielcke@z-51.de>
19597
19598 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
19599 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19600 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19601 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19602 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19603 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19604 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19605
b4315fb0 196062009-02-02 Christian Franke <franke@computer.org>
19607
19608 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
19609
de3aa260 196102009-02-01 Felix Zielcke <fzielcke@z-51.de>
19611
7c3ff286 19612 * INSTALL: Note that we now require at least autoconf 2.59 and
19613 that LZO is optional.
de3aa260 19614
825a182b 196152009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19616
19617 Base on patch on bug #24154 created by Tomas Tintera
19618 <trosos@seznam.cz>.
19619
19620 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
19621
a69ef770 196222009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19623
7c3ff286 19624 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 19625 <bero@arklinux.org>.
19626
19627 * normal/parser.y (script_init): Add missing semicolon.
19628
6fa42fa6 196292009-01-31 Colin D Bennett <colin@gibibit.com>
19630
7c3ff286 19631 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 19632 (free_menu_entry_classes): Added.
19633 (grub_normal_menu_addentry): Added class property handling.
19634 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
19635 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
19636
19637 * normal/menu_viewer.c: New file.
19638
19639 * normal/menu.c (run_menu_entry): Renamed to ...
19640 (grub_menu_execute_entry): ... this and made it as global.
19641 (grub_menu_run): Renamed to ...
19642 (show_text_menu): ... this and made it local.
19643 (show_text_menu): Adapt to new function names.
19644 (grub_normal_terminal_menu_viewer): New global variable.
19645
19646 * include/grub/menu.h: New file.
19647
19648 * include/grub/menu_viewer.h: New file.
19649
19650 * include/grub/normal.h: Added include to grub/menu.h.
19651 (grub_menu_entry): Moved to include/grub/menu.h.
19652 (grub_menu_entry_t): Likewise.
19653 (grub_menu): Likewise.
19654 (grub_menu_t): Likewise.
19655 (grub_normal_terminal_menu_viewer): Added.
19656 (grub_menu_execute_entry): Likewise.
19657 (grub_menu_run): Removed.
19658
19659 * DISTLIST: Added include/grub/menu.h.
19660 Added include/grub/menu_viewer.h.
19661 Added normal/menu_viewer.c.
19662
196632009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
19664
19665 * normal/execute.c (grub_script_execute_menuentry): Changed to use
19666 arglist for menutitle arguments.
19667
19668 * normal/main.c (grub_normal_menu_addentry): Likewise.
19669
19670 * normal/parser.y (menuentry): Likewise.
19671
19672 * normal/script.c (grub_script_create_cmdmenu): Likewise.
19673
19674 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
19675 (grub_script_create_cmdmenu): Likewise.
19676
19677 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
19678
19679 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
19680 changes.
19681
19682 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
19683
19684 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
19685
19686 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
19687
19688 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19689
19690 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19691
19692 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19693
56192c23 196942009-01-30 Christian Franke <franke@computer.org>
19695
19696 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
19697 in option help text.
19698
d72521b3 196992009-01-27 Pavel Roskin <proski@gnu.org>
19700
19701 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
19702
994b5e84 197032009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19704
19705 * commands/lsmmap.c: Add include to grub/machine/memory.h.
19706
19707 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
19708
19709 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
19710 unregister function.
19711
6a7eab2c 197122009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19713
19714 * disk/scsi.c (grub_scsi_read): Fix sign problem.
19715
19716 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
19717
19718 * util/grub-mkfont.c (usage): Fix typo.
19719
19720 * util/elf/grub-mkimage.c (load_modules): Fix warning.
19721
1806b56e 197222009-01-26 Daniel Mierswa <impulze@impulze.org>
19723
3fb18f09 19724 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
19725
336e1fb9 19726 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
19727
1806b56e 19728 * kern/misc.c (grub_strcasecmp): New function.
19729 (grub_strcasecmp): Use grub_size_t instead of int for length.
19730 Fix return value.
19731 * include/grub/misc.h: Update function prototypes.
19732
580b2a0f 197332009-01-26 Robert Millan <rmh@aybabtu.com>
19734
19735 * configure.ac: Fix cross-compilation check.
ef257b36 19736
d31c24f1 197372009-01-22 Christian Franke <franke@computer.org>
19738
19739 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
19740 (precision) digit string. Allow `.format2' without `format1' (width).
19741 Limit input chars for `%s' output to `format2' if specified. This is
19742 compatible with standard printf ().
19743
3138b44c 197442009-01-22 Christian Franke <franke@computer.org>
19745
19746 * disk/ata.c (grub_ata_wait_status): Replace by ...
19747 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
19748 other status bits may be invalid while BSY is asserted.
19749 (grub_ata_check_ready): New function.
19750 (grub_ata_cmd): Removed.
19751 (grub_ata_wait_drq): New function.
19752 (grub_ata_strncpy): Remove inline.
19753 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
19754 and error check now done by grub_ata_wait_drq ().
19755 (grub_ata_pio_write): Likewise.
19756 (grub_atapi_identify): Set DEV before check for !BSY. Use
19757 grub_ata_wait_drq () to wait for data.
19758 (grub_ata_device_initialize): Add status register check to
19759 detect missing SATA slave devices. Add debug messages.
19760 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
19761 (grub_atapi_packet): Set DEV before check for !BSY. Replace
19762 transfer loop by grub_ata_pio_write ().
19763 (grub_ata_identify): Set DEV before check for !BSY. Use
19764 grub_ata_wait_drq () to wait for data.
ef257b36 19765 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 19766 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
19767 read/write in one loop. Fix invalid command on write. Fix incomplete
19768 command on (size % batch) == 0. Add missing error check after write of
19769 last block. Add debug messages.
19770 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
19771
59a64ef6 197722009-01-19 Christian Franke <franke@computer.org>
19773
19774 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
19775 (GRUB_ATAPI_IREASON_*): Likewise.
19776 (grub_ata_pio_write): Fix timeout error return.
19777 (grub_atapi_identify): Add grub_ata_wait () after cmd.
19778 (grub_atapi_wait_drq): New function.
19779 (grub_atapi_packet): New parameter `size'.
19780 Use grub_atapi_wait_drq () and direct write instead of
19781 grub_ata_pio_write ().
19782 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
19783 reads the number of bytes requested by the device for each DRQ
19784 assertion.
19785 (grub_atapi_write): Remove old implementation, return not
19786 implemented instead.
19787
1cfe20b3 197882009-01-19 Christian Franke <franke@computer.org>
19789
19790 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
19791 of 512 to calculate data size.
19792 (grub_scsi_read12): Likewise.
19793 (grub_scsi_write10): Likewise.
19794 (grub_scsi_write12): Likewise.
19795 (grub_scsi_read): Adjust size according to blocksize.
19796 Add checks for invalid blocksize and unaligned transfer.
19797
bee5fe5d 197982009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
19799
19800 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
19801
ef257b36 19802 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 19803 width glyphs.
19804
3e643f8c 198052009-01-19 Robert Millan <rmh@aybabtu.com>
19806
19807 * config.guess: Update to latest version from config git.
19808 * config.sub: Likewise.
19809
4fa80998 198102009-01-17 Felix Zielcke <fzielcke@z-51.de>
19811
19812 * Makefile.in: Change font compilation to use new grub-mkfont instead
19813 of java version.
19814
19815 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
19816 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
19817 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19818 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19819 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
19820 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
19821 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
19822 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
19823 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
19824
7086085b 198252009-01-16 Christian Franke <franke@computer.org>
19826
19827 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
19828 (enum grub_ata_timeout_milliseconds): New enum.
19829 (grub_ata_wait_status): Add parameter milliseconds.
19830 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
19831 recovery from timed-out commands.
19832 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
19833 return grub_errno instead of REG_ERROR.
19834 (grub_ata_pio_write): Add parameter milliseconds.
19835 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
19836 Pass milliseconds to grub_ata_wait_status () and
19837 grub_ata_pio_read ().
19838 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
19839 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
19840 grub_ata_wait_status (). Fix IDENTIFY timeout check.
19841 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
19842 It is not suitable for device detection, because DEV bit is ignored,
19843 the command may run too long, and not all devices set the signature
19844 properly.
19845 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
19846 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
19847 Fix device selection, DEV bit must be set first to address the registers
19848 of the correct device.
19849 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
19850 grub_ata_pio_read/write ().
19851 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
19852 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
19853
4a412913 198542009-01-13 Carles Pina i Estany <carles@pina.cat>
19855
19856 * util/grub-editenv.c (main): Use fseeko(), not fseek().
19857
7795c55e 198582009-01-13 Bean <bean123ch@gmail.com>
d913988c 19859
19860 * util/grub-mkfont.c (write_font): forget to remove some debug code.
19861
7795c55e 198622009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 19863
19864 * Makefile.in: (enable_grub_mkfont): New variable.
19865 (freetype_cflags): Likewise.
19866 (freetype_libs): Likewise.
19867
19868 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
19869 (grub_mkfont_SOURCES): New variable.
19870 (grub_mkfont_CFLAGS): Likewise.
19871 (grub_mkfont_LDFLAGS): Likewise.
19872
19873 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
19874 library if `--enable-grub-mkfont' is requested.
19875 (enable_grub_mkfont): New variable.
19876 (freetype_cflags): Likewise.
19877 (freetype_libs): Likewise.
19878
19879 * util/grub-mkfont.c: New file.
19880
093af1fe 198812009-01-12 Christian Franke <franke@computer.org>
19882
19883 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
19884 mode check. Fix setting of compat_use[].
19885
f36cc108 198862009-01-10 Robert Millan <rmh@aybabtu.com>
19887
19888 Update a few copyright years which we forgot to do in 2008 (only for
19889 files whose changes made in 2008 were copyright-significant)
19890
19891 * Makefile.in: Add 2008 to Copyright line.
19892 * disk/ieee1275/ofdisk.c: Likewise.
19893 * disk/efi/efidisk.c: Likewise.
19894 * kern/dl.c: Likewise.
19895 * kern/sparc64/ieee1275/init.c: Likewise.
19896 * kern/mm.c: Likewise.
19897 * kern/efi/mm.c: Likewise.
19898 * boot/i386/pc/boot.S: Likewise.
19899 * genfslist.sh: Likewise.
19900 * fs/iso9660.c: Likewise.
19901 * fs/hfs.c: Likewise.
19902 * fs/jfs.c: Likewise.
19903 * fs/minix.c: Likewise.
19904 * fs/ufs.c: Likewise.
19905 * gensymlist.sh.in: Likewise.
19906 * genkernsyms.sh.in: Likewise.
19907 * include/grub/misc.h: Likewise.
19908 * include/grub/types.h: Likewise.
19909 * include/grub/symbol.h: Likewise.
19910 * include/grub/elf.h: Likewise.
19911 * include/grub/kernel.h: Likewise.
19912 * include/grub/disk.h: Likewise.
19913 * include/grub/dl.h: Likewise.
19914 * include/grub/i386/linux.h: Likewise.
19915 * include/grub/i386/pc/biosdisk.h: Likewise.
19916 * include/grub/efi/api.h: Likewise.
19917 * include/grub/efi/pe32.h: Likewise.
19918 * include/grub/util/misc.h: Likewise.
19919 * normal/execute.c: Likewise.
19920 * normal/arg.c: Likewise.
19921 * normal/completion.c: Likewise.
19922 * normal/lexer.c: Likewise.
19923 * normal/parser.y: Likewise.
19924 * normal/misc.c: Likewise.
19925 * commands/i386/pc/vbeinfo.c: Likewise.
19926 * commands/hexdump.c: Likewise.
19927 * commands/terminal.c: Likewise.
19928 * commands/ls.c: Likewise.
19929 * commands/help.c: Likewise.
19930 * partmap/pc.c: Likewise.
19931 * loader/efi/chainloader.c: Likewise.
19932 * loader/multiboot_loader.c: Likewise.
19933 * loader/i386/pc/multiboot2.c: Likewise.
19934 * term/efi/console.c: Likewise.
19935 * term/i386/pc/serial.c: Likewise.
19936 * util/lvm.c: Likewise.
19937 * util/console.c: Likewise.
19938 * util/i386/efi/grub-mkimage.c: Likewise.
19939 * util/raid.c: Likewise.
19940
7f02114b 199412009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
19942
19943 * commands/videotest.c: Removed include to grub/machine/memory.h.
19944
19945 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
19946 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
19947 (video_mod_SOURCES): Removed.
19948 (video_mod_CFLAGS): Likewise.
19949 (video_mod_LDFLAGS): Likewise.
19950 (gfxterm_mod_SOURCES): Likewise.
19951 (gfxterm_mod_CFLAGS): Likewise.
19952 (gfxterm_mod_LDFLAGS): Likewise.
19953 (videotest_mod_SOURCES): Likewise.
19954 (videotest_mod_CFLAGS): Likewise.
19955 (videotest_mod_LDFLAGS): Likewise.
19956 (bitmap_mod_SOURCES): Likewise.
19957 (bitmap_mod_CFLAGS): Likewise.
19958 (bitmap_mod_LDFLAGS): Likewise.
19959 (tga_mod_SOURCES): Likewise.
19960 (tga_mod_CFLAGS): Likewise.
19961 (tga_mod_LDFLAGS): Likewise.
19962 (jpeg_mod_SOURCES): Likewise.
19963 (jpeg_mod_CFLAGS): Likewise.
19964 (jpeg_mod_LDFLAGS): Likewise.
19965 (png_mod_SOURCES): Likewise.
19966 (png_mod_CFLAGS): Likewise.
19967 (png_mod_LDFLAGS): Likewise.
19968
19969 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
19970 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
19971 (video_mod_SOURCES): Added.
19972 (video_mod_CFLAGS): Likewise.
19973 (video_mod_LDFLAGS): Likewise.
19974 (videotest_mod_SOURCES): Likewise.
19975 (videotest_mod_CFLAGS): Likewise.
19976 (videotest_mod_LDFLAGS): Likewise.
19977 (bitmap_mod_SOURCES): Likewise.
19978 (bitmap_mod_CFLAGS): Likewise.
19979 (bitmap_mod_LDFLAGS): Likewise.
19980 (tga_mod_SOURCES): Likewise.
19981 (tga_mod_CFLAGS): Likewise.
19982 (tga_mod_LDFLAGS): Likewise.
19983 (jpeg_mod_SOURCES): Likewise.
19984 (jpeg_mod_CFLAGS): Likewise.
19985 (jpeg_mod_LDFLAGS): Likewise.
19986 (png_mod_SOURCES): Likewise.
19987 (png_mod_CFLAGS): Likewise.
19988 (png_mod_LDFLAGS): Likewise.
19989 (gfxterm_mod_SOURCES): Likewise.
19990 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 19991 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 19992
19993 * term/gfxterm.c: Removed include to grub/machine/memory.h,
19994 grub/machine/console.h.
19995
644fff97 199962009-01-04 Jerone Young <jerone@gmail.com>
19997
19998 Make on screen instructions clearer
19999
20000 Based on patch created by Jidanni <jidanni@jidanni.org>
20001
20002 * normal/menu.c: print clearer instructions on the screen
20003
1e901a75 200042009-01-02 Colin D Bennett <colin@gibibit.com>
20005
20006 New font engine.
34c44600 20007
1e901a75 20008 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
20009 build system and fixed gfxterm.c to work with different sized fonts.
20010
20011 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 20012
1e901a75 20013 * configure: Re-generated.
34c44600 20014
1e901a75 20015 * DISTLIST: Removed font/manager.c.
20016 Added font/font.c.
20017 Added font/font_cmd.c.
34c44600 20018
1e901a75 20019 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
20020 compilation.
34c44600 20021
1e901a75 20022 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 20023
20024 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 20025
20026 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 20027
1e901a75 20028 * normal/menu.c: Likewise.
34c44600 20029
1e901a75 20030 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
20031 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 20032
1e901a75 20033 * include/grub/font.h: Replaced with new file.
34c44600 20034
1e901a75 20035 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
20036 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
20037 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
20038 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
20039 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 20040 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 20041 fg_red, fg_green, fg_blue, fg_alpha.
20042 (grub_video_adapter): Removed blit_glyph.
34c44600 20043 (grub_video_blit_glyph): Removed.
20044
1e901a75 20045 * font/manager.c: Removed file.
34c44600 20046
20047 * font/font.c: New file.
20048
1e901a75 20049 * font/font_cmd.c: Likewise.
34c44600 20050
1e901a75 20051 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 20052
1e901a75 20053 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
20054 (grub_video_vbe_map_rgba): Likewise.
20055 (grub_video_vbe_unmap_color_int): Likewise.
20056 (grub_video_vbe_blit_glyph): Removed.
20057 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 20058
1e901a75 20059 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
20060 (get_pixel): Likewise.
34c44600 20061 (set_pixel): Likewise.
20062
1e901a75 20063 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 20064
1e901a75 20065 * term/gfxterm.c: Adapted to new font engine.
34c44600 20066
1e901a75 20067 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 20068
1e901a75 20069 * term/i386/pc/vga.c: Likewise.
34c44600 20070
1e901a75 20071 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 20072
1e901a75 20073 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 20074
1e901a75 20075 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 20076
1e901a75 20077 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 20078
1e901a75 20079 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 20080
1e901a75 20081 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 20082
1e901a75 20083 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 20084
1e901a75 20085 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 20086
1e901a75 20087 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
20088
20089 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 20090
1e901a75 20091 * util/grub-mkconfig_lib.in: Changed font extension.
20092
278922e8 200932008-12-28 Felix Zielcke <fzielcke@z-51.de>
20094
20095 * util/getroot.c (grub_util_get_grub_dev): Add support for
20096 /dev/md/dNNpNN style partitionable mdraid devices.
20097
3ced05cf 200982008-12-12 Alex Smith <alex@alex-smith.me.uk>
20099
20100 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
20101 at a time limit of the PXE TFTP API correctly.
20102 (grub_pxefs_close): Likewise.
20103
7fd0ee30 201042008-11-29 Robert Millan <rmh@aybabtu.com>
20105
34c44600 20106 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 20107 grub_ata_device_initialize() calls.
20108
34c44600 201092008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 20110
20111 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
20112 iteration failed.
20113 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
20114
89313780 201152008-11-28 Robert Millan <rmh@aybabtu.com>
20116
20117 Fix build on powerpc-ieee1275. Based on patch created by
20118 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
20119 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20120 `kern/ieee1275/mmap.c'.
20121 * include/grub/powerpc/ieee1275/memory.h: New file.
20122
15257703 20123 Provide grub-install on coreboot.
20124 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
20125 (grub_install_SOURCES): New variable.
20126 * util/i386/pc/grub-install.in: Add a few condition checks to make it
20127 usable on coreboot.
20128
9fc5388a 201292008-11-25 Felix Zielcke <fzielcke@z-51.de>
20130
20131 * util/grub-fstest.c (grub_term_get_current_input): Change return type
20132 to `grub_term_input_t'.
20133 (grub_term_get_current_output): Change return type to
20134 `grub_term_output_t'.
20135
bc3a2f31 201362008-11-22 Robert Millan <rmh@aybabtu.com>
20137
34c44600 20138 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 20139 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
20140 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
20141 grub_vga_text_cls().
20142
80fc88f2 20143 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 20144 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 20145
cbf36fd3 20146 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
20147 to 0x200000 (avoids trouble with some OFW implementations, and matches
20148 with the one in Yaboot).
20149 Reported by Manoel Abranches
20150
73e8e268 201512008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 20152
20153 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
20154 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
20155
73e8e268 20156 * util/grub-mkconfig_lib.in (grub_warn): New function.
20157 (convert_system_path_to_grub_path): Use grub_warn() when issuing
20158 warnings, to obtain consistent formatting.
20159 * util/grub.d/00_header.in: Likewise.
20160 * util/update-grub_lib.in: Likewise.
20161
e94045a1 20162 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 20163 Move comment text to `#error' stanza.
e94045a1 20164
79d29fd7 20165 Harmonize ieee1275's grub_available_iterate() with the generic
20166 grub_machine_mmap_iterate() interface (fixes a recently-introduced
20167 build problem on i386-ieee1275):
20168 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
20169 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
20170 parameter `type'. Update all users of this function.
20171 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
20172 `kern/ieee1275/mmap.c'.
20173 * kern/ieee1275/init.c
20174 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
20175 with ...
20176 (grub_machine_mmap_iterate): ... this.
20177 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
20178 return type to `grub_err_t'. Update all implementations of this
20179 function prototype.
20180 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
20181 Likewise.
20182
60d6b16e 20183 Add `lsmmap' command (lists firmware-provided memory map):
20184 * commands/lsmmap.c: New file.
20185 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
20186 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
20187 variables.
20188 * conf/powerpc-ieee1275.rmk: Likewise.
20189 * conf/i386-coreboot.rmk: Likewise.
20190 * conf/i386-ieee1275.rmk: Likewise.
20191
ebaaf49b 201922008-11-19 Robert Millan <rmh@aybabtu.com>
20193
20194 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 20195 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
20196 constraints to initrd allocation (based on code from
20197 loader/i386/pc/linux.c). Without them, initrd was allocated too high
20198 for Linux to find it.
ebaaf49b 20199
dfab719f 202002008-11-14 Robert Millan <rmh@aybabtu.com>
20201
20202 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
20203 order to cope with duplicate slashes.
20204
10fc3eb9 202052008-11-14 Robert Millan <rmh@aybabtu.com>
20206
20207 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
20208 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
20209 don't want to mess with lower memory, because it is used in the Linux
20210 loader.
20211
20212 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 20213 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 20214 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
20215 is in our heap (probably as a result of it being corrupted during
2f2a3442 20216 decompression). Add #error instance with comment to explain why this
20217 loader isn't currently usable on PC/BIOS.
10fc3eb9 20218
e2e07847 202192008-11-14 Robert Millan <rmh@aybabtu.com>
20220
20221 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 20222 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 20223
fe8e8d69 202242008-11-12 Robert Millan <rmh@aybabtu.com>
20225
20226 Make loader/i386/linux.c buildable on i386-pc (although disabled).
20227
20228 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
20229 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
20230 from here ...
20231 * include/grub/i386/pc/memory.h: ... to here.
20232
976b07d0 202332008-11-12 Robert Millan <rmh@aybabtu.com>
20234
20235 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
20236 split).
20237
20238 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
20239 (grub_console_cur_color, grub_console_real_putchar)
20240 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
20241 (grub_console_setcolorstate, grub_console_setcolor)
20242 (grub_console_getcolor): Move from here ...
20243 * include/grub/i386/vga_common.h: ... to here (new file).
20244
20245 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
20246 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
20247 `<grub/i386/io.h>'.
20248 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
20249 `<grub/i386/vga_common.h>'.
20250
76679cd3 202512008-11-12 Robert Millan <rmh@aybabtu.com>
20252
20253 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
20254 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
20255 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
20256 variables.
20257 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
20258 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
20259
20260 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
20261 grub_console_init() with call to grub_vga_text_init().
20262 (grub_machine_fini): Replace call to
20263 grub_console_fini() with call to grub_vga_text_fini() and
20264 grub_at_keyboard_fini().
20265
20266 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
20267 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
20268 (grub_console_setcolorstate, grub_console_setcolor)
20269 (grub_console_getcolor): New function prototypes.
20270
20271 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
20272 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
20273 (grub_vga_text_setcursor): Static-ize.
20274 (grub_vga_text_term): New structure.
20275 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
20276
20277 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
20278 (grub_console_cur_color, grub_console_standard_color)
20279 (grub_console_normal_color, grub_console_highlight_color)
20280 (map_char, grub_console_putchar, grub_console_getcharwidth)
20281 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
20282 (grub_console_getcolor): Move from here ...
20283 * term/i386/vga_common.c: ... to here (same function names).
20284
95b841d3 202852008-11-12 Robert Millan <rmh@aybabtu.com>
20286
20287 Use newly-added Multiboot support in coreboot.
20288
20289 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
20290 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
20291
20292 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
20293 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
20294 (codestart): Store the MBI in `startup_multiboot_info' when we're
20295 being loaded using Multiboot.
20296
20297 * kern/i386/coreboot/init.c (grub_machine_init): Move
20298 grub_at_keyboard_init() call to beginning of function (useful for
20299 debugging). Call grub_machine_mmap_init() before attempting to use
20300 grub_machine_mmap_iterate().
20301 (grub_lower_mem, grub_upper_mem): Move from here ...
20302 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
20303 here (new file).
20304
20305 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
20306 function prototype.
20307
761ca975 203082008-11-12 Robert Millan <rmh@aybabtu.com>
20309
20310 Fix a regression introduced by the at_keyboard.mod split. Because
20311 some terminals are default on some platforms and non-default on
20312 others, the first terminal being registered determines which is
20313 going to be default.
20314
20315 * kern/term.c (grub_term_register_input): If this is the first
20316 terminal being registered, set it as the current one.
20317 (grub_term_register_output): Likewise.
20318
20319 * term/efi/console.c (grub_console_init): Do not call
20320 grub_term_set_current_output() or grub_term_set_current_input().
20321 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
20322 * term/i386/pc/console.c (grub_console_init): Likewise.
20323 (grub_console_fini): Do not call grub_term_set_current_input()
20324 (but leave grub_term_set_current_output() to restore text mode).
20325
6c529df7 203262008-11-10 Robert Millan <rmh@aybabtu.com>
20327
20328 * util/grub.d/00_header.in: Add backward compatibility check for
20329 versions of terminal.mod that don't understand `terminal_input' or
20330 `terminal_output'.
20331
132e4113 203322008-11-09 Robert Millan <rmh@aybabtu.com>
20333
20334 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
20335 `terminal_input' / `terminal_output', not `terminal'.
20336
ac293d50 203372008-11-08 Robert Millan <rmh@aybabtu.com>
20338
20339 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 20340 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 20341
0025933a 203422008-11-08 Robert Millan <rmh@aybabtu.com>
20343
20344 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 20345 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 20346 members. Update all users.
20347 * util/console.c (grub_ncurses_term): Split in ...
20348 (grub_ncurses_term_input): ... this, and ...
20349 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 20350 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 20351
37c86336 203522008-11-08 Robert Millan <rmh@aybabtu.com>
20353
20354 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
20355 (PKGDATA): Add $(pkgdata_SRCDIR).
20356 (pkglib_BUILDDIR): New variable.
20357 (pkgdata_SRCDIR): New variable.
20358 (build_env.mk): New target.
20359 (include_DATA): New variable.
20360 (install-local): Install $(include_DATA) files in $(includedir).
20361
b6c15a2d 203622008-11-07 Pavel Roskin <proski@gnu.org>
20363
d99d46f1 20364 * gendistlist.sh: Use C locale for sorting to ensure consistent
20365 output on all systems.
20366
b6c15a2d 20367 * util/grub.d/00_header.in: Remove incorrect space before
20368 "serial".
20369
c32ee8c9 203702008-11-07 Robert Millan <rmh@aybabtu.com>
20371
20372 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
20373 per specification.
20374 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
20375 * loader/multiboot_loader.c (find_multi_boot2_header): New function
20376 (based on find_multi_boot1_header).
20377 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
20378 using find_multi_boot2_header(), and abort if neither Multiboot or
20379 Multiboot headers were found.
20380
651c29b7 203812008-11-07 Robert Millan <rmh@aybabtu.com>
20382
20383 Modularize at_keyboard.mod:
20384
20385 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
20386 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
20387 (at_keyboard_mod_LDFLAGS): New variables.
20388
20389 Actual terminal split:
20390
20391 * include/grub/term.h (struct grub_term): Split in ...
20392 (struct grub_term_input): ... this, and ...
20393 (struct grub_term_output): ... this. Update all users.
20394 (grub_term_set_current): Split in ...
20395 (grub_term_set_current_input): ... this, and ...
20396 (grub_term_set_current_output): ... this.
20397 (grub_term_get_current): Split in ...
20398 (grub_term_get_current_input): ... this, and ...
20399 (grub_term_get_current_output): ... this.
20400 (grub_term_register): Split in ...
20401 (grub_term_register_input): ... this, and ...
20402 (grub_term_register_output): ... this.
20403 (grub_term_unregister): Split in ...
20404 (grub_term_unregister_input): ... this, and ...
20405 (grub_term_unregister_output): ... this.
20406 (grub_term_iterate): Split in ...
20407 (grub_term_iterate_input): ... this, and ...
20408 (grub_term_iterate_output): ... this.
20409
20410 * kern/term.c (grub_term_list): Split in ...
20411 (grub_term_list_input): ... this, and ...
20412 (grub_term_list_output): ... this. Update all users.
20413 (grub_cur_term): Split in ...
20414 (grub_cur_term_input): ... this, and ...
20415 (grub_cur_term_output): ... this. Update all users.
20416 (grub_term_set_current): Split in ...
20417 (grub_term_set_current_input): ... this, and ...
20418 (grub_term_set_current_output): ... this.
20419 (grub_term_get_current): Split in ...
20420 (grub_term_get_current_input): ... this, and ...
20421 (grub_term_get_current_output): ... this.
20422 (grub_term_register): Split in ...
20423 (grub_term_register_input): ... this, and ...
20424 (grub_term_register_output): ... this.
20425 (grub_term_unregister): Split in ...
20426 (grub_term_unregister_input): ... this, and ...
20427 (grub_term_unregister_output): ... this.
20428 (grub_term_iterate): Split in ...
20429 (grub_term_iterate_input): ... this, and ...
20430 (grub_term_iterate_output): ... this.
20431
20432 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
20433 a check for input and one for output (and only attempt to get keys
20434 from user when input works).
20435
20436 * util/grub-probe.c (grub_term_get_current): Split in ...
20437 (grub_term_get_current_input): ... this, and ...
20438 (grub_term_get_current_output): ... this.
20439 * util/grub-fstest.c: Likewise.
20440 * util/i386/pc/grub-setup.c: Likewise.
20441 * util/grub-editenv.c: Likewise.
20442
20443 Portability adjustments:
20444
20445 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
20446 `term/i386/pc/at_keyboard.c'.
20447 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
20448 grub_keyboard_controller_init() (now handled by terminal .init).
20449 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
20450 grub_at_keyboard_init().
20451 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
20452 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
20453 at_keyboard.mod via input terminal interface).
20454 * include/grub/i386/coreboot/console.h: Convert into a stub for
20455 `<grub/i386/pc/console.h>'.
20456
20457 Migrate full terminals to new API:
20458
20459 * term/efi/console.c (grub_console_term): Split into ...
20460 (grub_console_term_input): ... this, and ...
20461 (grub_console_term_output): ... this. Update all users.
20462 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
20463 (grub_ofconsole_init): Split into ...
20464 (grub_ofconsole_init_input): ... this, and ...
20465 (grub_ofconsole_init_output): ... this.
20466 (grub_ofconsole_term): Split into ...
20467 (grub_ofconsole_term_input): ... this, and ...
20468 (grub_ofconsole_term_output): ... this. Update all users.
20469 * term/i386/pc/serial.c (grub_serial_term): Split into ...
20470 (grub_serial_term_input): ... this, and ...
20471 (grub_serial_term_output): ... this. Update all users.
20472 * term/i386/pc/console.c (grub_console_term): Split into ...
20473 (grub_console_term_input): ... this, and ...
20474 (grub_console_term_output): ... this. Update all users.
20475 (grub_console_term_input): Only enable it on PC/BIOS platform.
20476 (grub_console_init): Remove grub_keyboard_controller_init() call.
20477
20478 Migrate input terminals to new API:
20479
20480 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
20481 `i386' and `i386/pc' to enable build on x86_64 (this driver is
20482 i386-specific anyway).
20483 (grub_console_checkkey): Rename to ...
20484 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
20485 users.
20486 (grub_keyboard_controller_orig): New variable.
20487 (grub_console_getkey): Rename to ...
20488 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
20489 users.
20490 (grub_keyboard_controller_init): Static-ize. Save original
20491 controller value so that it can be restored ...
20492 (grub_keyboard_controller_fini): ... here (new function).
20493 (grub_at_keyboard_term): New structure.
20494 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
20495 functions.
20496
20497 Migrate output terminals to new API:
20498
20499 * term/i386/pc/vga.c (grub_vga_term): Change type to
20500 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20501 members. Update all users.
20502 * term/gfxterm.c (grub_video_term): Change type to
20503 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20504 members. Update all users.
20505 * include/grub/i386/pc/console.h (grub_console_checkkey)
20506 (grub_console_getkey): Do not export (no longer needed by gfxterm,
20507 etc).
20508
20509 Migrate `terminal' command and userland tools to new API:
20510
20511 * commands/terminal.c (grub_cmd_terminal): Split into ...
20512 (grub_cmd_terminal_input): ... this, and ...
20513 (grub_cmd_terminal_output): ... this.
20514 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
20515 `terminal_input' and `terminal_output'.
20516 * util/grub.d/00_header.in: Adjust `terminal' calls to new
20517 `terminal_input' / `terminal_output' API.
20518 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
20519 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
20520 provided ${GRUB_TERMINAL}, convert it).
20521
96e5d876 205222008-11-04 Robert Millan <rmh@aybabtu.com>
20523
20524 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
20525 for FreeBSD.
20526 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
20527
556f3775 205282008-11-03 Bean <bean123ch@gmail.com>
20529
20530 * kern/elf.c (grub_elf32_load): Revert to previous code.
20531 (grub_elf64_load): Likewise.
20532
20533 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
20534
926b9823 205352008-11-01 Robert Millan <rmh@aybabtu.com>
20536
20537 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
20538 (TARGET_CPPFLAGS): Likewise.
20539 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
20540
1432e958 205412008-11-01 Carles Pina i Estany <carles@pina.cat>
20542
20543 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
20544
dba3f844 205452008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 20546
20547 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
20548 addition of objects until the code is not going to be able to fail.
20549
dba3f844 205502008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 20551
20552 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
20553 (add a missing NULL check, and correct them by moving the pointer
20554 operations after the actual check).
20555
7ab28c21 205562008-10-29 Robert Millan <rmh@aybabtu.com>
20557
20558 * util/i386/pc/grub-install.in: Handle empty string as output from
20559 make_system_path_relative_to_its_root().
20560
1b7748eb 205612008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
20562
20563 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
20564 circular metadata worst case scenario. If the metadata is circular
20565 then copy the wrap in place.
20566 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
20567 project lib/format_text/layout.h
20568 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
20569
c9618ab2 205702008-10-03 Felix Zielcke <fzielcke@z-51.de>
20571
7a36edca 20572 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 20573
bf981c62 205742008-10-03 Felix Zielcke <fzielcke@z-51.de>
20575
20576 * util/update-grub_lib.in: Mention filename in warning message.
20577
6d994591 205782008-09-29 Felix Zielcke <fzielcke@z-51.de>
20579
20580 * NEWS: Update for rename of update-grub to grub-mkconfig.
20581
18ade780 205822008-09-29 Felix Zielcke <fzielcke@z-51.de>
20583
20584 * util/update-grub_lib.in: Copy to ...
20585 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 20586 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 20587 * util/update-grub.in: Rename to ...
20588 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
20589 option. Add `--output' option to allow users to specify the generated
20590 configuration file. Default to stdout.
20591 (update_grub_dir): Rename to ...
20592 (grub_mkconfig_dir): ... this.
20593 (grub_cfg): Default to an empty string.
20594 * conf/common.rmk (update-grub): Rename to ...
20595 (grub-mkconfig): ... this.
20596 (update-grub_lib): Copy to ...
20597 (grub-mkconfig_lib): ... this.
20598 (update-grub_SCRIPTS): Copy to ...
20599 (grub-mkconfig_SCRIPTS): ... this. Update all users.
20600 (update-grub_DATA): Rename to ...
20601 (grub-mkconfig_DATA): ... this.
20602
556ce6ac 206032008-09-28 Robert Millan <rmh@aybabtu.com>
20604
20605 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
20606 to `modified'. Add the real `created' field.
20607 (grub_iso9660_uuid): Use `modified' rather than `created' for
20608 constructing the UUID.
20609
206102008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 20611
20612 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
20613 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
20614
92274e85 206152008-09-28 Bean <bean123ch@gmail.com>
20616
20617 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
20618 Thanks to Christian Franke for finding this bug.
20619
add6f17a 206202008-09-25 Robert Millan <rmh@aybabtu.com>
20621
20622 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
20623 instances of grub_util_get_disk_name() (see previous commit).
20624
d2a367b8 206252008-09-25 Robert Millan <rmh@aybabtu.com>
20626
20627 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
20628 `util/i386/get_disk_name.c'.
20629 * conf/i386-efi.rmk: Likewise.
20630 * conf/x86_64-efi.rmk: Likewise.
20631 * conf/i386-coreboot.rmk: Likewise.
20632 * conf/i386-ieee1275.rmk: Likewise.
20633 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
20634 `util/ieee1275/get_disk_name.c'.
20635 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
20636 * util/ieee1275/get_disk_name.c: Remove file.
20637 * util/i386/get_disk_name.c: Remove file.
20638 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
20639 "hd%d" for device.map entries, rather than using
20640 grub_util_get_disk_name().
20641
81a06771 206422008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 20643
20644 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
20645 warning.
20646 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
20647
5a004279 206482008-09-24 Carles Pina i Estany <carles@pina.cat>
20649
20650 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
20651 Changed to 0x5100.
20652 (GRUB_TERM_PPAGE): Changed to 0x4900.
20653
397093d3 206542008-09-24 Robert Millan <rmh@aybabtu.com>
20655
20656 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
20657 macros (they were i386-pc specific).
20658 * include/grub/sparc64/ieee1275/console.h: Likewise.
20659 * include/grub/efi/console.h: Likewise.
20660
a91b6c7c 206612008-09-22 Bean <bean123ch@gmail.com>
20662
20663 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
20664 resident and in attribute list.
20665
20666 * include/grub/ntfs.h (BMP_LEN): Removed.
20667
c40fd116 206682008-09-22 Bean <bean123ch@gmail.com>
20669
81a06771 20670 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 20671 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
20672
20673 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
20674 error occurs, as grub_disk_open will call grub_disk_close, which will
20675 call p->close (scsi).
20676
81a06771 206772008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 20678
20679 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
20680 (AC_PREREQ): Bumped to 2.59.
20681 (AC_TRY_COMPILE): Replace obsolete macro with ...
20682 (AC_COMPILE_IFELSE): ... this.
20683 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
20684 (AC_LINK_IFELSE): ... this.
20685
5dc43410 206862008-09-21 Felix Zielcke <fzielcke@z-51.de>
20687
20688 * autogen.sh: Add a call to `gendistlist.sh'.
20689
9035dce4 206902008-09-19 Christian Franke <franke@computer.org>
20691
20692 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
20693 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
20694 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
20695 Export __enable_execute_stack() to modules.
20696 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
20697 New function.
20698
7fd75377 206992008-09-09 Felix Zielcke <fzielcke@z-51.de>
20700
040030b3 20701 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
20702 Sort the list.
20703
207042008-09-09 Felix Zielcke <fzielcke@z-51.de>
20705
20706 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 20707 #include <grub/util/hostdisk.h>.
20708
89d5ffcf 207092008-09-08 Robert Millan <rmh@aybabtu.com>
20710
20711 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
20712 segments when their filesz is zero (grub_file_read() interprets
81a06771 20713 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 20714 Use `lowest_segment' rather than 0 for calculating the current
20715 segment load address.
20716
40da438f 207172008-09-08 Robert Millan <rmh@aybabtu.com>
20718
20719 * util/hostdisk.c (open_device): Replace a grub_util_info() call
20720 with grub_dprintf("hostdisk", ...), as it was so verbose that it
20721 clobbered useful information.
20722
ddbf5556 207232008-09-08 Robert Millan <rmh@aybabtu.com>
20724
20725 * include/grub/util/biosdisk.h: Move to ...
20726 * include/grub/util/hostdisk.h: ... here. Update all users.
20727 * util/biosdisk.c: Move to ...
20728 * util/hostdisk.c: ... here. Update all users.
20729
783d0f48 207302008-09-07 Robert Millan <rmh@aybabtu.com>
20731
20732 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
20733 variables.
20734 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
20735 and length can be stored directly in the `mbi->mmap_addr' and
20736 `mbi->mmap_length' struct fields.
20737
548e2ea5 207382008-09-07 Robert Millan <rmh@aybabtu.com>
20739
20740 * conf/i386.rmk: New file. Provides declaration for building
20741 `cpuid.mod'.
20742 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
20743 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
20744 variables.
20745 Include `conf/i386.mk'.
20746 * conf/i386-efi.rmk: Likewise.
20747 * conf/x86_64-efi.rmk: Likewise.
20748 * conf/i386-coreboot.rmk: Likewise.
20749 * conf/i386-ieee1275.rmk: Likewise.
20750
0ea85a37 207512008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
20752
20753 Based on patch created by Colin D Bennett <colin@gibibit.com>.
20754 Adds optimization support for BGR based modes.
20755
20756 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
20757 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20758 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20759 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20760 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20761 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20762 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20763 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20764 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20765 (grub_video_i386_vbeblit_index_index): Likewise.
20766 (grub_video_i386_vbeblit_replace_directN): Added.
20767 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20768 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20769 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20770 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20771 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20772 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 20773 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 20774 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20775 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20776 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20777 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20778 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20779 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
20780
20781 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
20782 (grub_video_i386_vbefill_R8G8B8): Likewise.
20783 (grub_video_i386_vbefill_index): Likewise.
20784 (grub_video_i386_vbefill_direct32): Added.
20785 (grub_video_i386_vbefill_direct24): Likewise.
20786 (grub_video_i386_vbefill_direct16): Likewise.
20787 (grub_video_i386_vbefill_direct8): Likewise.
20788
81a06771 20789 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 20790 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
20791 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
20792 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
20793 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
20794 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 20795
0ea85a37 20796 * video/video.c (grub_video_get_blit_format): Updated to use new
20797 blit formats. Added handling for 16 bit color modes.
81a06771 20798
20799 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 20800 fillers.
20801 (common_blitter): Updated to use new blitters.
20802
20803 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
20804 Removed.
20805 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20806 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20807 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20808 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20809 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20810 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20811 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20812 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20813 (grub_video_i386_vbeblit_index_index): Likewise.
20814 (grub_video_i386_vbeblit_replace_directN): Added.
20815 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20816 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20817 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20818 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20819 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20820 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
20821 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
20822 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20823 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20824 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20825 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20826 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20827 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 20828
0ea85a37 20829 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
20830 (grub_video_i386_vbefill_R8G8B8): Likewise.
20831 (grub_video_i386_vbefill_index): Likewise.
20832 (grub_video_i386_vbefill_direct32): Added.
20833 (grub_video_i386_vbefill_direct24): Likewise.
20834 (grub_video_i386_vbefill_direct16): Likewise.
20835 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 20836
0ea85a37 20837 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
20838 types.
81a06771 20839
0ea85a37 20840 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
20841 types.
81a06771 20842
0ea85a37 20843 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
20844 blitter types.
81a06771 20845
0ea85a37 20846 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
20847 types.
20848
e8a83df6 208492008-09-06 Felix Zielcke <fzielcke@z-51.de>
20850
20851 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
20852 RAID level 1.
20853
6bcd8ee5 208542008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 20855
6bcd8ee5 20856 * fs/iso9660.c (grub_iso9660_date): New structure.
20857 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
20858 (grub_iso9660_uuid): New function.
c375ae58 20859
59261157 208602008-09-05 Bean <bean123ch@gmail.com>
20861
20862 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
20863
20864 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
20865 insensitive bit for names in Win32 and Win32 & DOS namespace.
20866
20867 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
20868
20869 * include/grub/types.h (LONG_MAX): Likewise.
20870
58b6645a 208712008-09-04 Felix Zielcke <fzielcke@z-51.de>
20872
4ee55921 20873 * util/getroot.c: Include <config.h>.
20874 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
20875 add support for /dev/md/N devices and handle LVM double dash escaping.
20876
208772008-09-04 Felix Zielcke <fzielcke@z-51.de>
20878
20879 * config.guess: Update to latest version from config git.
20880 * config.sub: Likewise.
58b6645a 20881
9124f65d 208822008-09-03 Robert Millan <rmh@aybabtu.com>
20883
20884 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
20885 `disk->total_sectors'.
20886
81a06771 208872008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 20888
20889 * include/grub/normal.h: Fixed incorrect comment for
20890 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
20891
81a06771 208922008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 20893
20894 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
20895 values with defines.
20896
20897 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
20898 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
20899 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
20900 (GRUB_VBE_MODEATTR_COLOR): Likewise.
20901 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
20902 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
20903 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
20904 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
20905 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
20906 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
20907 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
20908 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
20909 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
20910 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
20911 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
20912 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
20913 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
20914 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
20915 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
20916
93d5cbf8 209172008-08-31 Robert Millan <rmh@aybabtu.com>
20918
20919 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
20920 declaration.
20921 (grub_multiboot): Fix a few warnings.
20922
21751d50 209232008-08-31 Robert Millan <rmh@aybabtu.com>
20924
20925 * loader/i386/pc/multiboot.c: Update comment not to say that
20926 boot_device support is unimplemented.
20927
e27a75c5 209282008-08-31 Robert Millan <rmh@aybabtu.com>
20929
20930 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
20931 or memory map support are unimplemented.
20932
81a06771 209332008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 20934
20935 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
20936
81a06771 209372008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 20938
20939 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
20940 total video memory in 'vbeinfo' output; show color format details for
20941 each video mode.
20942
7c5d8d95 209432008-08-30 Pavel Roskin <proski@gnu.org>
20944
20945 * util/genmoddep.c: Remove for real this time.
20946 * DISTLIST: Remove util/genmoddep.c.
20947
4cebd25a 209482008-08-30 Robert Millan <rmh@aybabtu.com>
20949
20950 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
20951 as required by Multiboot spec (it was already 4-byte aligned, but
20952 only by chance).
20953
b497a269 209542008-08-29 Pavel Roskin <proski@gnu.org>
20955
e3925185 20956 * kern/powerpc/ieee1275/crt0.S: Rename to ...
20957 * kern/powerpc/ieee1275/startup.S: ... this.
20958 * conf/powerpc-ieee1275.rmk: Adjust for the above.
20959 * DISTLIST: Likewise.
20960
b497a269 20961 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
20962 grub/cpu/kernel.h. Add start label for consistency with other
20963 platforms. Add grub_prefix immediately after start. Add jump
20964 to the code after grub_prefix.
20965 * include/grub/powerpc/kernel.h: Provide valid values for
20966 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
20967
6e5a42fe 209682008-08-29 Bean <bean123ch@gmail.com>
20969
20970 * configure.ac: Change host_os to cygwin for mingw.
20971 (asprintf): New check for function.
20972
20973 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
20974 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
20975
20976 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 20977 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 20978 sync, sleep and grub_util_get_disk_size for mingw.
20979
20980 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
20981 to get size in mingw.
20982 (open_device): Use flag O_BINARY if it's defined.
20983 (find_root_device): Add dummy code for mingw.
20984
20985 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
20986 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
20987 (get_scsi_disk_name): Return 0 for mingw.
20988
20989 * util/hostfs.c: #include <grub/util/misc.h>.
20990 (grub_hostfs_open): Use "rb" flag to open file, use
20991 grub_util_get_disk_size to get disk size for mingw.
20992
20993 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
20994 (asprintf): New function if HAVE_ASPRINTF is not set.
20995 (sync): New function for mingw.
20996 (sleep): Likewise.
20997 (grub_util_get_disk_size): Likewise.
20998
ab3f2673 209992008-08-28 Pavel Roskin <proski@gnu.org>
21000
21001 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21002 kern/time.c.
21003
1c282483 210042008-08-28 Robert Millan <rmh@aybabtu.com>
21005
21006 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
21007
678e849c 210082008-08-28 Robert Millan <rmh@aybabtu.com>
21009
21010 Change find_grub_drive() syntax so it doesn't prevent it from
21011 detecting NULL names as errors.
21012
21013 * util/biosdisk.c (find_grub_drive): Move free slot search code
21014 from here ...
21015 (find_free_slot): ... to here.
21016 (read_device_map): Use find_free_slot() to search for free slots.
21017
965c75ca 210182008-08-27 Marco Gerards <marco@gnu.org>
21019
21020 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
21021 (scsi_mod_SOURCES): New variable.
21022 (scsi_mod_CFLAGS): Likewise
21023 (scsi_mod_LDFLAGS): Likewise.
21024
21025 * disk/scsi.c: New file.
21026
21027 * include/grub/scsi.h: Likewise.
21028
21029 * include/grub/scsicmd.h: Likewise.
21030
21031 * disk/ata.c: Include <grub/scsi.h>.
21032 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
21033 instead.
21034 (grub_ata_iterate): Skip ATAPI devices.
21035 (grub_ata_open): Only handle ATAPI devices.
21036 (struct grub_atapi_read): Removed.
21037 (grub_atapi_readsector): Likewise.
21038 (grub_ata_read): No longer handle ATAPI devices.
21039 (grub_ata_write): Likewise.
21040 (grub_atapi_iterate): New function.
21041 (grub_atapi_read): Likewise.
21042 (grub_atapi_write): Likewise.
21043 (grub_atapi_open): Likewise.
21044 (grub_atapi_close): Likewise.
21045 (grub_atapi_dev): New variable.
21046 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
21047 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
21048
21049 * include/grub/disk.h (enum grub_disk_dev_id): Add
21050 `GRUB_DISK_DEVICE_SCSI_ID'.
21051
c07ae501 210522008-08-26 Robert Millan <rmh@aybabtu.com>
21053
21054 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
21055 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
21056 descriptive.
21057
5ed20adc 210582008-08-23 Bean <bean123ch@gmail.com>
21059
21060 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
21061 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
21062 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
21063 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
21064 dm_nv.mod.
21065 (raid5rec_mod_SOURCES): New macro.
21066 (raid5rec_mod_CFLAGS): Likewise.
21067 (raid5rec_mod_LDFLAGS): Likewise.
21068 (raid6rec_mod_SOURCES): Likewise.
21069 (raid6rec_mod_CFLAGS): Likewise.
21070 (raid6rec_mod_LDFLAGS): Likewise.
21071 (mdraid_mod_SOURCES): Likewise.
21072 (mdraid_mod_CFLAGS): Likewise.
21073 (mdraid_mod_LDFLAGS): Likewise.
21074 (dm_nv_mod_SOURCES): Likewise.
21075 (dm_nv_mod_CFLAGS): Likewise.
21076 (dm_nv_mod_LDFLAGS): Likewise.
21077
21078 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
21079 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
21080 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
21081
21082 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
21083 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
21084
21085 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21086
21087 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21088
21089 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21090
21091 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21092
21093 * disk/raid5_recover.c: New file.
21094
21095 * disk/raid6_recover.c: Likewise.
21096
21097 * disk/mdraid_linux.c: Likewise.
21098
21099 * disk/dmraid_nvidia.c: Likewise.
21100
21101 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
21102 ULONG_MAX.
21103
21104 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
21105 calculate the size of raid device.
21106 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
21107 different layout of raid5.
21108 (grub_raid_scan_device): Remove code specific to mdraid.
21109 (grub_raid_list): New variable.
21110 (free_array): New function.
21111 (grub_raid_register): Likewise.
21112 (grub_raid_unregister): Likewise.
21113 (grub_raid_rescan): Likewise.
21114 (GRUB_MOD_INIT): Don't iterate device here.
21115 (GRUB_MOD_FINI): Use free_array to release resource.
21116
21117 * include/grub/raid.h: Remove macro and structure specific to mdraid.
21118 (grub_raid5_recover_func_t): New function variable type.
21119 (grub_raid6_recover_func_t): Likewise.
21120 (grub_raid5_recover_func): New variable.
21121 (grub_raid6_recover_func): Likewise.
21122 (grub_raid_register): New function.
21123 (grub_raid_unregister): Likewise.
21124 (grub_raid_rescan): Likewise.
21125 (grub_raid_block_xor): Likewise.
21126
21127 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
21128 (CMD_CRC): New macro.
21129 (part): Removed.
21130 (read_file): Handle device as well as file.
21131 (cmd_crc): New function.
21132 (fstest): Handle multiple disks.
21133 (options): Remove part, raw and long, add root and diskcount.
21134 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 21135 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 21136 add handling for the new options, support multiple disks.
21137
21138 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
21139
29c18915 211402008-08-23 Bean <bean123ch@gmail.com>
21141
21142 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
21143
21144 * genfslist.sh: Ignore kernel.mod.
21145
21146 * genpartmaplist.sh: Likewise.
21147
8415f261 211482008-08-23 Robert Millan <rmh@aybabtu.com>
21149
21150 * util/getroot.c (find_root_device): Skip anything that starts with
21151 a dot, not just directories. This avoids things like /dev/.tmp.md0.
21152
d5a7dc5b 211532008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 21154
d5a7dc5b 21155 * util/update-grub.in (GRUB_GFXMODE): Export variable.
21156 * util/grub.d/00_header.in: Allow the administrator to change default
21157 gfxmode via ${GRUB_GFXMODE}.
21158
380cfbb4 211592008-08-21 Felix Zielcke <fzielcke@z-51.de>
21160
21161 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
21162
c9baafe7 211632008-08-21 Robert Millan <rmh@aybabtu.com>
21164
21165 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
21166 loader.
21167 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
21168 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
21169
e290bef2 211702008-08-20 Carles Pina i Estany <carles@pina.cat>
21171
21172 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
21173 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
21174
f9dbfc96 211752008-08-19 Robert Millan <rmh@aybabtu.com>
21176
21177 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
21178 (struct grub_virtual_screen): Remove `cursor_color'.
21179 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
21180 initialization.
21181 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
21182
dd6bd6ab 211832008-08-18 Robert Millan <rmh@aybabtu.com>
21184
21185 Unify (identical) linux_normal.c files.
21186 * loader/i386/efi/linux_normal.c: Move from here ...
21187 * loader/linux_normal.c: ... to here. Update all users.
21188 * loader/i386/pc/linux_normal.c: Delete. Update all users.
21189 * loader/i386/ieee1275/linux_normal.c: Likewise.
21190
7f42f83e 211912008-08-18 Robert Millan <rmh@aybabtu.com>
21192
21193 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
21194 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
21195 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
21196 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
21197 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
21198 New macros.
21199 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
21200 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
21201 (GRUB_LINUX_CL_END_OFFSET): ... to here.
21202 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
21203 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
21204 (GRUB_EFI_CL_END_OFFSET): Rename to ...
21205 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
21206 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
21207 Initialize `params->video_cursor_x' and `params->video_cursor_y'
21208 portably using grub_getxy().
21209 Replace `-EFI' with `-bzImage' in boot message.
21210
38487ddb 212112008-08-17 Robert Millan <rmh@aybabtu.com>
21212
21213 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
21214
deceb3ec 212152008-08-17 Robert Millan <rmh@aybabtu.com>
21216
21217 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
21218
21219 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
21220 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
21221 (grub_machine_mmap_iterate): New function declaration.
21222 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
21223 structure.
21224 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
21225 macros.
21226
21227 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
21228 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
21229 Move e820 parsing from here ...
21230 * kern/i386/pc/mmap.c: New file.
21231 (grub_machine_mmap_iterate): ... to here.
21232
21233 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
21234 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
21235 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
21236 (grub_available_iterate): Redeclare to return `void', and redeclare
21237 its hook to use grub_uint64_t as addr and size parameters, and rename
21238 to ...
21239 (grub_machine_mmap_iterate): ... this. Update all users.
21240
21241 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
21242 to make it more readable. Rename to ...
21243 (grub_machine_mmap_iterate): ... this.
21244
21245 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
21246 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
21247 (grub_multiboot): Allocate an extra region after the payload, and fill
21248 it with a Multiboot memory map. Adjust a.out loader to calculate size
21249 with the extra space.
21250 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
21251 with the extra space.
21252
f8aa0f43 212532008-08-17 Carles Pina i Estany <carles@pina.cat>
21254
9807deb9 21255 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 21256
605f5bb6 212572008-08-17 Felix Zielcke <fzielcke@z-51.de>
21258
21259 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
21260 mdate-sh to the list `find' searches for.
21261 * DISTLIST: Regenerated.
21262
210db6c6 212632008-08-16 Felix Zielcke <fzielcke@z-51.de>
21264
21265 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
21266 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 21267 genmoddep.awk, gensymlist.sh.in.
21268 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 21269 * DISTLIST: Regenerated.
48cdbfd4 21270 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 21271
1082b929 212722008-08-16 Robert Millan <rmh@aybabtu.com>
21273
21274 * disk/raid.c (grub_raid_init): Handle/report errors set by
21275 grub_device_iterate().
21276 * disk/lvm.c (grub_lvm_init): Likewise.
21277
42ce5170 212782008-08-15 Bean <bean123ch@gmail.com>
21279
21280 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21281 and datehook.mod.
21282 (datetime_mod_SOURCES): New macro.
21283 (datetime_mod_CFLAGS): Likewise.
21284 (datetime_mod_LDFLAGS): Likewise.
21285 (date_mod_SOURCES): Likewise.
21286 (date_mod_CFLAGS): Likewise.
21287 (date_mod_LDFLAGS): Likewise.
21288 (datehook_mod_SOURCES): Likewise.
21289 (datehook_mod_CFLAGS): Likewise.
21290 (datehook_mod_LDFLAGS): Likewise.
21291
21292 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21293 and datehook.mod.
21294 (datetime_mod_SOURCES): New macro.
21295 (datetime_mod_CFLAGS): Likewise.
21296 (datetime_mod_LDFLAGS): Likewise.
21297 (date_mod_SOURCES): Likewise.
21298 (date_mod_CFLAGS): Likewise.
21299 (date_mod_LDFLAGS): Likewise.
21300 (datehook_mod_SOURCES): Likewise.
21301 (datehook_mod_CFLAGS): Likewise.
21302 (datehook_mod_LDFLAGS): Likewise.
21303
21304 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21305 and datehook.mod.
21306 (datetime_mod_SOURCES): New macro.
21307 (datetime_mod_CFLAGS): Likewise.
21308 (datetime_mod_LDFLAGS): Likewise.
21309 (date_mod_SOURCES): Likewise.
21310 (date_mod_CFLAGS): Likewise.
21311 (date_mod_LDFLAGS): Likewise.
21312 (datehook_mod_SOURCES): Likewise.
21313 (datehook_mod_CFLAGS): Likewise.
21314 (datehook_mod_LDFLAGS): Likewise.
21315
21316 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21317 and datehook.mod.
21318 (datetime_mod_SOURCES): New macro.
21319 (datetime_mod_CFLAGS): Likewise.
21320 (datetime_mod_LDFLAGS): Likewise.
21321 (date_mod_SOURCES): Likewise.
21322 (date_mod_CFLAGS): Likewise.
21323 (date_mod_LDFLAGS): Likewise.
21324 (datehook_mod_SOURCES): Likewise.
21325 (datehook_mod_CFLAGS): Likewise.
21326 (datehook_mod_LDFLAGS): Likewise.
21327
21328 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21329 and datehook.mod.
21330 (datetime_mod_SOURCES): New macro.
21331 (datetime_mod_CFLAGS): Likewise.
21332 (datetime_mod_LDFLAGS): Likewise.
21333 (date_mod_SOURCES): Likewise.
21334 (date_mod_CFLAGS): Likewise.
21335 (date_mod_LDFLAGS): Likewise.
21336 (datehook_mod_SOURCES): Likewise.
21337 (datehook_mod_CFLAGS): Likewise.
21338 (datehook_mod_LDFLAGS): Likewise.
21339
21340 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
21341
21342 * commands/date.c: New file.
21343
21344 * hook/datehook.c: Likewise.
21345
21346 * include/grub/lib/datetime.h: Likewise.
21347
21348 * include/grub/i386/cmos.h: Likewise.
21349
21350 * lib/datetime.c: Likewise.
21351
21352 * lib/i386/datetime.c: Likewise.
21353
21354 * lib/efi/datetime.c: Likewise.
21355
0e9242da 213562008-08-14 Robert Millan <rmh@aybabtu.com>
21357
21358 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
21359 (grub_mkelfimage_SOURCES): New variable.
21360 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
21361
21362 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
21363 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
21364 * conf/powerpc-ieee1275.rmk: Likewise.
21365 * conf/i386-ieee1275.rmk: Likewise.
21366
21367 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
21368 * kern/i386/coreboot/init.c: Likewise.
21369
21370 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
21371 with `<grub/cpu/kernel.h>'.
21372 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
21373 to ...
21374 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
21375 * kern/i386/coreboot/startup.S: Likewise.
21376
21377 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
21378 (GRUB_MOD_GAP): Remove.
21379 * include/grub/powerpc/kernel.h: New file.
21380 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
21381 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21382 * include/grub/i386/kernel.h: New file.
21383 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
21384 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
21385 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21386
21387 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
21388 `grub-mkelfimage'.
21389 Use --directory when invoking grub_mkimage.
21390
21391 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
21392 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
21393 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
21394 and GRUB_KERNEL_CPU_PREFIX.
21395
b86408f8 213962008-08-14 Felix Zielcke <fzielcke@z-51.de>
21397
d5e619ca 21398 * include/grub/err.h (grub_err_printf): New function prototype.
21399 * util/misc.c (grub_err_printf): New function.
21400 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
21401 grub_printf.
21402 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 21403
7161f0e0 214042008-08-13 Robert Millan <rmh@aybabtu.com>
21405
21406 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
21407
a1967522 214082008-08-13 Robert Millan <rmh@aybabtu.com>
21409
21410 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
21411 boot entry.
21412
371458b5 214132008-08-12 Robert Millan <rmh@aybabtu.com>
21414
21415 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
21416 of the relocation code from here ...
21417 (grub_multiboot): ... to here.
21418 (forward_relocator, backward_relocator): Move from here ...
21419 * kern/i386/loader.S (grub_multiboot_forward_relocator)
21420 (grub_multiboot_backward_relocator): ... to here.
21421 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
21422 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
21423 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
21424 (grub_multiboot_forward_relocator_end)
21425 (grub_multiboot_backward_relocator)
21426 (grub_multiboot_backward_relocator_end): New variables.
21427
05f9452b 214282008-08-12 Bean <bean123ch@gmail.com>
21429
21430 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
21431
20024ab0 214322008-08-11 Robert Millan <rmh@aybabtu.com>
21433
21434 * kern/i386/linuxbios/startup.S: Move from here ...
21435 * kern/i386/coreboot/startup.S: ... to here.
21436
21437 * kern/i386/linuxbios/init.c: Move from here ...
21438 * kern/i386/coreboot/init.c: ... to here.
21439
21440 * kern/i386/linuxbios/table.c: Move from here ...
21441 * kern/i386/coreboot/mmap.c: ... to here.
21442
21443 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
21444
e352e9cd 214452008-08-11 Robert Millan <rmh@aybabtu.com>
21446
21447 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
21448 errors. Leave it to the upper layer to handle them.
21449
2d05bc6a 214502008-08-09 Christian Franke <franke@computer.org>
21451
21452 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
21453 * conf/common.rmk: Install `grub-pe2elf' only if requested.
21454 Install `grub.d/10_windows' only on Cygwin.
21455 * configure.ac: Add subst of `target_os'.
21456 Check `target_os' also before setting TARGET_OBJ2ELF.
21457 Add `--enable-grub-pe2elf'.
21458
042bd419 214592008-08-08 Robert Millan <rmh@aybabtu.com>
21460
21461 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21462 (grub_last_time): Change type to grub_uint64_t.
21463 (grub_disk_open): Migrate code from to using grub_get_time_ms().
21464 (grub_disk_close): Likewise.
21465
21466 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21467 (run_menu): Migrate code from to using grub_get_time_ms().
21468
21469 * util/misc.c (grub_get_time_ms): New function.
21470
7f280db5 214712008-08-08 Marco Gerards <marco@gnu.org>
21472
21473 * disk/ata.c (grub_ata_regget): Change return type to
21474 `grub_uint8_t'.
21475 (grub_ata_regget2): Likewise.
21476 (grub_ata_wait_status): New function.
21477 (grub_ata_wait_busy): Removed function, updated all users to use
21478 `grub_ata_wait_status'.
21479 (grub_ata_wait_drq): Likewise.
21480 (grub_ata_cmd): New function.
21481 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
21482 error handling.
21483 (grub_ata_pio_write): Add error handling.
21484 (grub_atapi_identify): Likewise.
21485 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
21486 handling.
21487 (grub_ata_identify): Use `grub_ata_cmd' and improve error
21488 handling. Actually use the detected registers. Reorder the
21489 detection logic such that it is easier to read.
21490 (grub_ata_pciinit): Do not assign the same ID to each controller.
21491 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
21492 handling.
21493 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
21494
21495 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
21496
1fbc5e66 214972008-08-08 Marco Gerards <marco@gnu.org>
21498
21499 * NEWS: Update.
21500
819ce6c0 215012008-08-07 Bean <bean123ch@gmail.com>
21502
21503 * include/grub/x86_64/pci.h: New file.
21504
5c41d44d 215052008-08-07 Christian Franke <franke@computer.org>
21506
21507 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
21508 (TIMER2_GATE): Likewise.
21509 (grub_pit_wait): Add enable/disable of the timer2 gate
21510 bit of port 0x61. This fixes a possible infinite loop.
21511
5ebc275d 215122008-08-07 Bean <bean123ch@gmail.com>
21513
21514 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
21515 kern/i386/tsc.c and kern/i386/pit.c.
21516
21517 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
21518 x86_64 platform.
21519
21520 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
21521 <grub/i386/tsc.h>.
21522
21523 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
21524
e383b3d0 215252008-08-07 Bean <bean123ch@gmail.com>
21526
21527 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
21528
21529 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
21530
21531 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
21532 multiple inclusion. Add #include <grub/types.h>.
21533
1cbb58ac 215342008-08-06 Christian Franke <franke@computer.org>
21535
21536 * conf/common.rmk: Build and install `10_windows'.
21537 * util/grub.d/10_windows.in: New script.
21538
337f5a1e 215392008-08-06 Pavel Roskin <proski@gnu.org>
21540
21541 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
21542
057bc4ac 215432008-08-06 Robert Millan <rmh@aybabtu.com>
21544
21545 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
21546 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
21547
2b99f123 215482008-08-06 Bean <bean123ch@gmail.com>
21549
21550 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
21551 (grub_pxefs_fs_int): Remove dummy definition.
21552 (grub_pxefs_open): Use data->block_size to store the current block
21553 size setting.
21554 (grub_pxefs_read): Use block size stored in data->block_size. As the
21555 value of grub_pxe_blksize can be changed after the file is opened.
21556
9f0234cb 215572008-08-06 Bean <bean123ch@gmail.com>
21558
21559 * fs/i386/pc/pxe.c (curr_file): new variable.
21560 (grub_pxefs_open): Simply the handling of pxe file system. Don't
21561 require the dummy internal file system anymore.
21562 (grub_pxefs_read): Removed.
21563 (grub_pxefs_close): Likewise.
21564 (grub_pxefs_fs_int): Likewise.
21565 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
21566 connection when we switch file.
21567 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
21568
a55d42e0 215692008-08-06 Robert Millan <rmh@aybabtu.com>
21570
21571 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
21572 `halt.mod'.
21573 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
21574 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
21575
21576 * kern/i386/halt.c: New file.
21577 * kern/i386/reboot.c: Likewise.
21578 * include/grub/i386/reboot.h: Likewise.
21579 * include/grub/i386/halt.h: Likewise.
21580
21581 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
21582 Include `<grub/cpu/halt.h>'.
21583 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
21584 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
21585
21586 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
21587 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
21588 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
21589 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
21590 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
21591 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
21592 from here ...
21593 * include/grub/i386/at_keyboard.h: ... to here.
21594
24371d26 215952008-08-05 Robert Millan <rmh@aybabtu.com>
21596
21597 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
21598 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
21599 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
21600 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21601 `kern/generic/millisleep.c'.
21602
21603 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
21604 instead of grub_get_rtc().
21605 (grub_tsc_init): Initialize `tsc_boot_time'.
21606
21607 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
21608 (grub_machine_init): Use grub_tsc_init() rather than
21609 installing an RTC-based handler via grub_install_get_time_ms().
21610
21611 * kern/i386/pit.c: New file.
21612 * include/grub/i386/pit.h: Likewise.
21613
9e7007b3 216142008-08-05 Bean <bean123ch@gmail.com>
21615
21616 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
21617
21618 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
21619 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
21620 (pxe_mod_SOURCES): New macro.
21621 (pxe_mod_CFLAGS): Likewise.
21622 (pxe_mod_LDFLAGS): Likewise.
21623 (pxecmd_mod_SOURCES): Likewise.
21624 (pxecmd_mod_CFLAGS): Likewise.
21625 (pxecmd_mod_LDFLAGS): Likewise.
21626
21627 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
21628 (grub_pxe_call): Likewise.
21629
21630 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
21631
21632 * commands/i386/pc/pxecmd.c: New file.
21633
9f0234cb 21634 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 21635
21636 * include/grub/i386/pc/pxe.h: Likewise.
21637
6977d49f 216382008-08-05 Bean <bean123ch@gmail.com>
21639
21640 * util/console.c (grub_console_cur_color): New variable.
21641 (grub_console_standard_color): Likewise.
21642 (grub_console_normal_color): Likewise.
21643 (grub_console_highlight_color): Likewise.
21644 (color_map): Likewise.
21645 (use_color): Likewise.
21646 (NUM_COLORS): New macro.
21647 (grub_ncurses_setcolorstate): Handle color properly.
21648 (grub_ncurses_setcolor): Don't change color here, just remember the
21649 settings, color will be set in grub_ncurses_setcolorstate.
21650 (grub_ncurses_getcolor): New function.
21651 (grub_ncurses_init): Initialize color pairs.
21652 (grub_ncurses_term): New member grub_ncurses_getcolor.
21653
9c2ff3ee 216542008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 21655
9c2ff3ee 21656 High resolution timer support. Implemented for x86 CPUs using TSC.
21657 Extracted generic grub_millisleep() so it's linked in only as needed.
21658 This requires a Pentium compatible CPU; if the RDTSC instruction is
21659 not supported, then it falls back on the generic grub_get_time_ms()
21660 implementation that uses the machine's RTC.
21661
21662 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
21663 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21664 `kern/generic/millisleep.c'.
21665
21666 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
21667 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
21668
21669 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
21670 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
21671
21672 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21673
21674 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21675 `kern/generic/millisleep.c'.
21676
21677 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21678
21679 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
21680
21681 * kern/generic/rtc_get_time_ms.c: New file.
21682
21683 * kern/generic/millisleep.c: New file.
337f5a1e 21684
9c2ff3ee 21685 * kern/misc.c: Don't include
21686 <kern/time.h> anymore.
21687 (grub_millisleep_generic): Removed.
21688
21689 * commands/sleep.c (grub_interruptible_millisleep): Uses
21690 grub_get_time_ms() instead of grub_get_rtc().
21691
21692 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
21693 function.
21694 (grub_cpu_is_cpuid_supported): New inline function.
21695 (grub_cpu_is_tsc_supported): New inline function.
21696 (grub_tsc_init): New function prototype.
21697 (grub_tsc_get_time_ms): New function prototype.
21698
21699 * kern/i386/tsc.c (grub_get_time_ms): New file.
21700
21701 * include/grub/time.h: Include <grub/types.h.
21702 (grub_millisleep_generic): Removed.
21703 (grub_get_time_ms): New prototype.
21704 (grub_install_get_time_ms): New prototype.
21705 (grub_rtc_get_time_ms): New prototype.
21706
21707 * kern/time.c (grub_get_time_ms): New function.
21708 (grub_install_get_time_ms): New function.
21709
21710 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
21711 <grub/time.h> anymore.
21712 (grub_millisleep): Removed.
21713 (grub_machine_init): Call grub_tsc_init.
21714
21715 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
21716 get_time_ms() implementation.
21717
21718 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
21719 (ieee1275_get_time_ms): New function.
21720 (grub_machine_init): Install get_time_ms() implementation.
21721
21722 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
21723 (grub_machine_init): Call grub_tsc_init().
21724 (grub_millisleep): Removed.
bf06a93f 21725
9c2ff3ee 21726 * kern/ieee1275/init.c (grub_millisleep): Removed.
21727 (grub_machine_init): Install ieee1275_get_time_ms()
21728 implementation.
21729 (ieee1275_get_time_ms): New function.
21730 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
21731 real work.
21732
9ec92aaf 217332008-08-05 Marco Gerards <marco@gnu.org>
21734
21735 * disk/ata.c: Include <grub/pci.h>.
21736 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
21737 (grub_ata_initialize): Rewritten.
21738 (grub_ata_device_initialize): New function.
21739
8d23f507 217402008-08-04 Pavel Roskin <proski@gnu.org>
21741
21742 * kern/main.c: Include grub/mm.h.
21743
5e15ee3d 217442008-08-04 Robert Millan <rmh@aybabtu.com>
21745
21746 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
21747 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
21748 corruption problem).
21749
a9053f8f 217502008-08-04 Robert Millan <rmh@aybabtu.com>
21751
21752 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
21753 warnings introduced in my last commit.
21754
dd19c7d7 217552008-08-03 Robert Millan <rmh@aybabtu.com>
21756
21757 Make PCI available on all i386 architectures.
21758
21759 * include/grub/i386/pc/pci.h: Move from here ...
21760 * include/grub/i386/pci.h: ... to here.
21761
21762 * include/grub/i386/pc/pci.h: Remove.
21763 * include/grub/i386/efi/pci.h: Remove.
21764 * include/grub/x86_64/efi/pci.h: Remove.
21765
21766 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
21767 `<grub/cpu/pci.h>'.
21768
21769 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
21770 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
21771 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
21772
21773 * conf/i386-ieee1275.rmk: Likewise.
21774
e14a6184 217752008-08-03 Robert Millan <rmh@aybabtu.com>
21776
21777 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
21778 (grub_console_setcursor): Make it possible to set cursor off.
21779
52768e37 217802008-08-03 Robert Millan <rmh@aybabtu.com>
21781
21782 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
21783 of modules instead of assuming which platform provides what.
21784 * util/update-grub.in: Likewise.
21785
2d52f57f 217862008-08-03 Robert Millan <rmh@aybabtu.com>
21787
21788 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
21789 instead of `grub_install_dos_part' to determine whether a drive needs
21790 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 21791 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 21792
2a5cd121 217932008-08-02 Robert Millan <rmh@aybabtu.com>
21794
21795 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
21796
93808428 217972008-08-02 Robert Millan <rmh@aybabtu.com>
21798
21799 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
21800 of informational grub_dprintf() calls.
21801
3bd0a12a 218022008-08-02 Robert Millan <rmh@aybabtu.com>
21803
21804 * disk/memdisk.c (memdisk_size): Don't initialize.
21805 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
21806
21807 * include/grub/i386/pc/kernel.h
21808 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
21809 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
21810 (grub_memdisk_image_size, grub_arch_memdisk_addr)
21811 (grub_arch_memdisk_size): Remove.
21812
21813 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
21814 field (was only used to transfer a constant). Add `type' field to
21815 support multiple module types.
21816 (grub_module_iterate): New function.
21817
21818 * kern/device.c (grub_device_open): Do not hide error messages
21819 when grub_disk_open() fails. Use grub_print_error() instead.
21820
21821 * kern/i386/pc/init.c (grub_arch_modules_addr)
21822 (grub_arch_memdisk_size): Remove functions.
21823 (grub_arch_modules_addr): Return the module address in high memory
21824 (now that it isn't copied anymore).
21825
21826 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
21827 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
21828 decompression routine (grub_total_module_size already includes that
21829 now). Don't copy modules back to low memory.
21830
21831 * kern/main.c: Include `<grub/mm.h>'.
21832 (grub_load_modules): Split out (and use) ...
21833 (grub_module_iterate): ... this function, which iterates through
21834 module objects and runs a hook.
21835 Comment out grub_mm_init_region() call, as it would cause non-ELF
21836 modules to be overwritten.
21837
21838 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
21839 the memdisk image in its own region, make it part of the module list.
21840 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
21841 (main): Parse --memdisk|-m option, and pass user-provided path as
21842 parameter to generate_image().
21843 (add_segments): Pass `memdisk_path' down to load_modules().
21844 (load_modules): Embed memdisk image in module section when requested.
21845 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
21846 `header.type' instead of `header.offset'.
21847
21848 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
21849 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
21850 (memdisk_mod_LDFLAGS): New variables.
21851 * conf/i386-coreboot.rmk: Likewise.
21852 * conf/i386-ieee1275.rmk: Likewise.
21853
a927cc73 218542008-08-02 Robert Millan <rmh@aybabtu.com>
21855
21856 * loader/i386/pc/multiboot.c (playground, forward_relocator)
21857 (backward_relocator): New variables. Used to allocate and relocate
21858 the payload, respectively.
21859 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 21860 address, install the appropriate relocator code in each bound of
a927cc73 21861 the payload, and set the entry point such that
21862 grub_multiboot_real_boot() will jump to one of them.
21863
21864 * kern/i386/loader.S (grub_multiboot_payload_size)
21865 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21866 (grub_multiboot_payload_entry_offset): New variables.
21867 (grub_multiboot_real_boot): Set cpu context to what the relocator
21868 expects, and jump to the relocator instead of the payload.
21869
21870 * include/grub/i386/loader.h (grub_multiboot_payload_size)
21871 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21872 (grub_multiboot_payload_entry_offset): Export.
21873
b15d8a0c 218742008-08-01 Bean <bean123ch@gmail.com>
21875
21876 * normal/menu_entry.c (editor_getline): Don't return the original
21877 string as result, as it will be released by lexer once it has done
21878 using it.
21879
cdfb3d22 218802008-08-01 Robert Millan <rmh@aybabtu.com>
21881
21882 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
21883 within menuentries, not before them.
21884 util/grub.d/10_hurd.in: Likewise.
21885
9175e93d 218862008-08-01 Bean <bean123ch@gmail.com>
21887
21888 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
21889 (bufio_mod_SOURCES): New macro.
21890 (bufio_mod_CFLAGS): Likewise.
21891 (bufio_mod_LDFLAGS): Likewise.
21892
21893 * include/grub/bufio.h: New file.
21894
21895 * io/bufio.c: Likewise.
21896
21897 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
21898 (grub_video_reader_png): Use grub_buffile_open to open file.
21899
21900 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
21901 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
21902
21903 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
21904 (grub_video_reader_tga): Use grub_buffile_open to open file.
21905
21906 * font/manager.c: Include <grub/bufio.h>.
21907 (add_font): Use grub_buffile_open to open file.
21908
3d8383e7 219092008-07-31 Robert Millan <rmh@aybabtu.com>
21910
21911 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
21912 ELF segments, use a macro for arbitrarily accessing any of them instead
21913 of preparing a pointer that allows access to one at a time.
21914 (grub_multiboot_load_elf64): Likewise.
21915
16e641b6 219162008-07-31 Bean <bean123ch@gmail.com>
21917
21918 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
21919 GRUB_KERNEL_MACHINE_DATA_END.
21920
59198b72 219212008-07-30 Robert Millan <rmh@aybabtu.com>
21922
21923 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
21924 Increase from 0x50 to 0x60.
21925 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
21926 use UUIDs to identify the root drive for them. If that's not
21927 possible, abort.
21928 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
21929 check, for cross-disk installs.
21930
ae88bca3 219312008-07-30 Robert Millan <rmh@aybabtu.com>
21932
21933 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
21934 is non-empty, use it to set the `prefix' environment variable instead
21935 of the usual approach.
21936 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
21937 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
21938 environment variable instead of dummy make_install_device().
21939
21940 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
21941 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 21942 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 21943
21944 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
21945 New variable reference.
21946 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
21947 New macro. Defines offset of `grub_prefix' within startup.S (relative
21948 to `start').
21949 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
21950 section within startup.S (relative to `start').
21951 * include/grub/i386/coreboot/kernel.h: Likewise.
21952
21953 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
21954 Overwrite grub_prefix with its contents, at the beginning of the
21955 first segment.
21956 (main): Understand -p|--prefix.
21957
14f41dd1 219582008-07-30 Robert Millan <rmh@aybabtu.com>
21959
21960 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
21961
4ca049a3 219622008-07-30 Robert Millan <rmh@aybabtu.com>
21963
21964 * term/i386/pc/vga_text.c (grub_console_cls): Use
21965 grub_console_gotoxy() to go back to beginning of the screen.
21966 Found by Patrick Georgi <patrick.georgi@coresystems.de>
21967
2921d337 219682008-07-29 Christian Franke <franke@computer.org>
21969
21970 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
21971 Add conversion of emulated mount points on Cygwin.
21972
b609876d 219732008-07-29 Christian Franke <franke@computer.org>
21974
21975 * util/update-grub.in: Add a check for admin
21976 group on Cygwin.
21977 Remove old `grub.cfg.new' before creation.
21978 Add `-f' to `mv' to handle the different filesystem
21979 semantics of Windows.
21980
e93e4679 219812008-07-29 Bean <bean123ch@gmail.com>
21982
21983 * normal/main.c (get_line): Fix buffer overflow bug.
21984
41694fd0 219852008-07-28 Robert Millan <rmh@aybabtu.com>
21986
21987 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
21988 (struct grub_apple_header): New struct. Describes the layout of
21989 the partmap header.
21990 (apple_partition_map_iterate): Check the header magic as well as the
21991 partition magic (which was already being checked).
21992
cfd0b4e6 219932008-07-28 Pavel Roskin <proski@gnu.org>
21994
21995 * genmk.rb: Add a warning to the beginning of the output that
21996 it's a generated file and should not be edited.
21997
93cce016 219982008-07-28 Robert Millan <rmh@aybabtu.com>
21999
22000 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
22001 with the same number are found, just use issue a warning with
22002 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 22003
cd1df915 220042008-07-27 Robert Millan <rmh@aybabtu.com>
22005
22006 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
22007 information.
22008
b70a8427 220092008-07-27 Bean <bean123ch@gmail.com>
22010
22011 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
22012 (grub_fat_find_dir): Ignore case when comparing filename.
22013
8f5e379f 220142008-07-27 Bean <bean123ch@gmail.com>
22015
22016 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
22017 smallino, as it's more descriptive, and i8count can be confused with
22018 the other field count.
22019 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
22020 inode type.
22021
a85cd5a0 220222008-07-27 Bean <bean123ch@gmail.com>
22023
22024 * commands/crc.c: New file.
22025
22026 * lib/crc.c: Likewise.
22027
22028 * include/grub/lib/crc.h: Likewise.
22029
22030 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
22031
22032 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
22033 (hexdump): Move this function to ...
22034
22035 * lib/hexdump.c: ... here.
22036
22037 * include/grub/hexdump.h: Renamed to ...
22038
22039 * include/grub/lib/hexdump.h: ... this.
22040
22041 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
22042
22043 * util/grub-editenv.c: Likewise.
22044
22045 * include/envblk.h: Renamed to ...
22046
22047 * include/lib/envblk.h: ... this.
22048
22049 * util/envblk.c: Renamed to ...
22050
22051 * lib/envblk.c: ... this.
22052
22053 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
22054 lib/hexdump.c.
22055 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
22056 (pkglib_MODULES): Add crc.mod.
22057 (hexdump_mod_SOURCES): Add lib/hexdump.c.
22058 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
22059 (crc_mod_SOURCES): New macro.
22060 (crc_mod_CFLAGS): Likewise.
22061 (crc_mod_LDFLAGS): Likewise.
22062
22063 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
22064
22065 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22066
22067 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22068
22069 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22070
22071 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22072
c298def0 220732008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 22074
22075 * commands/help.c: Include <grub/term.h>.
22076 (TERM_WIDTH): Removed. Updated all users.
22077
cc349fb3 220782008-07-27 Pavel Roskin <proski@gnu.org>
22079
22080 * util/getroot.c (find_root_device): Rephrase a comment to avoid
22081 spurious warnings about a comment within a comment.
22082
9051607e 220832008-07-25 Robert Millan <rmh@aybabtu.com>
22084
22085 * util/getroot.c (find_root_device): Skip devices that match
22086 /dev/dm-[0-9]. This lets the real device be found for any type of
22087 abstraction (LVM, EVMS, RAID..).
22088 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
22089 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
22090 device is found first, find_root_device() will now skip it.
22091
01453bfc 220922008-07-24 Pavel Roskin <proski@gnu.org>
22093
22094 * include/grub/types.h: Use __builtin_bswap32() and
22095 __builtin_bswap64() with gcc 4.3 and newer.
22096
6af9849f 220972008-07-24 Christian Franke <franke@computer.org>
22098
3a0fa256 22099 * util/i386/pc/grub-install.in: If `--debug' is specified,
22100 pass `--verbose' to grub-setup.
22101 Abort script if make_system_path_relative_to_its_root() fails.
22102
7810e747 221032008-07-24 Bean <bean123ch@gmail.com>
22104
22105 * configure.ac: Fixed a bug caused by the previous cygwin patch,
22106 variable `target_platform' should be `platform'.
22107
42290e17 221082008-07-24 Bean <bean123ch@gmail.com>
22109
51cc5193 22110 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 22111 (grub_png_init_fixed_block): New function.
22112 (grub_png_decode_image_data): Handle fixed huffman code compression.
22113
2a8a80e4 221142008-07-24 Bean <bean123ch@gmail.com>
22115
22116 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
22117 (grub_pe2elf_SOURCES): New macro.
22118 (CLEANFILES): Add grub-pe2elf.
22119
22120 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
22121 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
22122 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
22123 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
22124 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
22125 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
22126 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
22127 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
22128 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
22129 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
22130 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
22131 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
22132 (GRUB_PE32_DT_FUNCTION): Likewise.
22133 (GRUB_PE32_REL_I386_DIR32): Likewise.
22134 (GRUB_PE32_REL_I386_REL32): Likewise.
22135 (grub_pe32_symbol): New structure.
22136 (grub_pe32_reloc): Likewise.
22137
22138 * util/grub-pe2elf.c: New file.
22139
22140 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
22141 start symbol in non pc platform.
22142
22143 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
22144
22145 The following patches are from Christian Franke.
22146
22147 * include/grub/dl.h: Remove .previous, gas supports this only
22148 for ELF format.
22149
22150 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
22151 Remove .type, gas supports this only for ELF format.
22152
22153 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
22154 nullbytes in symbol table. This fixes an infinite loop if table is
22155 zero filled.
22156
22157 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
22158 TARGET_IMG_LDFLAGS and EXEEXT.
22159
22160 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
22161 TARGET_IMG_LDFLAGS_AC.
22162 (grub_CHECK_STACK_ARG_PROBE): New function.
22163
22164 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
22165
22166 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
22167
22168 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
22169 to set TARGET_IMG_LD* accordingly.
22170 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
22171 Add call to grub_CHECK_STACK_ARG_PROBE.
22172 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
22173
22174 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
22175
22176 * genmk.rb: Add EXEEXT to CLEANFILES.
22177
12ccdb75 221782008-07-23 Robert Millan <rmh@aybabtu.com>
22179
22180 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
22181 define the codes for arrows and lines used for the menu).
22182 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
22183 as well.
22184
22185 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
22186 fonts, because the latter are too slow.
22187
18eeaf04 221882008-07-21 Bean <bean123ch@gmail.com>
22189
22190 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
22191 a20. Run keyboard test last, as it will cause macbook to halt.
22192
b095e2ad 221932008-07-18 Pavel Roskin <proski@gnu.org>
22194
22195 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
22196 load foreign architecture modules correctly anyway. Keep
22197 support for loading host architecture modules, whether we
22198 compile them or not.
22199
737feb35 222002008-07-17 Pavel Roskin <proski@gnu.org>
22201
3f4ce737 22202 * configure.ac: Use -m32 or -m64 regardless of whether we had to
22203 change target_cpu. The compiler default can mismatch target_cpu
22204 in any case.
22205
4ad2d049 22206 * disk/efi/efidisk.c: Fix format warnings on x86_64.
22207 * kern/efi/efi.c: Likewise.
22208
f6130a12 22209 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
22210 target compiler is functional.
22211 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
22212 are set up.
22213
58393a2d 22214 * configure.ac: Default to efi platform for x86_64-apple. Allow
22215 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
22216 adjustments from the rest, only do them if target is not
22217 explicitly given. Merge other adjustments with the final sanity
22218 check. Remove an extraneous check for supported CPU. Be
22219 specific which CPU and which platform is not supported.
22220
737feb35 22221 * configure.ac: Default to pc platform for x86_64.
22222
546f966a 222232008-07-17 Robert Millan <rmh@aybabtu.com>
22224
22225 Partial LinuxBIOS -> Coreboot rename.
22226
22227 * conf/i386-linuxbios.rmk: Renamed to ...
22228 * conf/i386-coreboot.rmk: ... this.
22229 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
22230 * configure.ac: Accept "coreboot" as input platform (but maintain
22231 compatibility with "linuxbios").
22232 * include/grub/i386/linuxbios: Renamed to ...
22233 * include/grub/i386/coreboot: ... this.
22234
20011694 222352008-07-17 Bean <bean123ch@gmail.com>
22236
22237 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 22238 (appleldr_mod_SOURCE): New variable.
20011694 22239 (appleldr_mod_CFLAGS): Likewise.
22240 (appleldr_mod_LDFLAGS): Likewise.
22241 (pci_mod_SOURCES): Likewise.
22242 (pci_mod_CFLAGS): Likewise.
22243 (pci_mod_LDFLAGS): Likewise.
22244 (lspci_mod_SOURCES): Likewise.
22245 (lspci_mod_CFLAGS): Likewise.
22246 (lspci_mod_LDFLAGS): Likewise.
22247
22248 * conf/x86_64-efi.rmk: New file.
22249
22250 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
22251 macro.
22252 (grub_efidisk_write): Likewise.
22253
22254 * include/efi/api.h (efi_call_0): New macro.
22255 (efi_call_1): Likewise.
22256 (efi_call_2): Likewise.
22257 (efi_call_3): Likewise.
22258 (efi_call_4): Likewise.
22259 (efi_call_5): Likewise.
22260 (efi_call_6): Likewise.
22261
22262 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
22263 grub_rescue_cmd_chainloader.
22264
22265 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
22266 (grub_pe32_optional_header): Change some fields based on i386 or
22267 x86_64 platform.
22268 (GRUB_PE32_PE32_MAGIC): Likewise.
22269
22270 * include/grub/efi/uga_draw.h: New file.
22271
22272 * include/grub/elf.h (STN_ABS): New constant.
22273 (R_X86_64_NONE): Relocation constant for x86_64.
22274 (R_X86_64_64): Likewise.
22275 (R_X86_64_PC32): Likewise.
22276 (R_X86_64_GOT32): Likewise.
22277 (R_X86_64_PLT32): Likewise.
22278 (R_X86_64_COPY): Likewise.
22279 (R_X86_64_GLOB_DAT): Likewise.
22280 (R_X86_64_JUMP_SLOT): Likewise.
22281 (R_X86_64_RELATIVE): Likewise.
22282 (R_X86_64_GOTPCREL): Likewise.
22283 (R_X86_64_32): Likewise.
22284 (R_X86_64_32S): Likewise.
22285 (R_X86_64_16): Likewise.
22286 (R_X86_64_PC16): Likewise.
22287 (R_X86_64_8): Likewise.
22288 (R_X86_64_PC8): Likewise.
22289
22290 * include/grub/i386/efi/pci.h: New file.
22291
22292 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
22293 Change it value based on platform.
22294 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
22295 (GRUB_E820_RAM): Likewise.
22296 (GRUB_E820_RESERVED): Likewise.
22297 (GRUB_E820_ACPI): Likewise.
22298 (GRUB_E820_NVS): Likewise.
22299 (GRUB_E820_EXEC_CODE): Likewise.
22300 (GRUB_E820_MAX_ENTRY): Likewise.
22301 (grub_e820_mmap): New structure.
22302 (linux_kernel_header): Change the efi field according to different
22303 kernel version, also field from linux_kernel_header.
22304
22305 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
22306
22307 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
22308 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
22309 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
22310 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
22311 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
22312 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
22313 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
22314 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
22315 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
22316 (GRUB_PCI_ADDR_IO_MASK): Likewise.
22317
22318 * include/grub/x86_64/efi/kernel.h: New file.
22319
22320 * include/grub/x86_64/efi/loader.h: Likewise.
22321
22322 * include/grub/x86_64/efi/machine.h: Likewise.
22323
22324 * include/grub/x86_64/efi/pci.h: Likewise.
22325
22326 * include/grub/x86_64/efi/time.h: Likewise.
22327
22328 * include/grub/x86_64/linux.h: Likewise.
22329
22330 * include/grub/x86_64/setjmp.h: Likewise.
22331
22332 * include/grub/x86_64/time.h: Likewise.
22333
22334 * include/grub/x86_64/types.h: Likewise.
22335
22336 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
22337 GRUB_TARGET_SIZEOF_VOID_P.
22338
22339 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
22340 (grub_efi_locate_handle): Likewise.
22341 (grub_efi_open_protocol): Likewise.
22342 (grub_efi_set_text_mode): Likewise.
22343 (grub_efi_stall): Likewise.
22344 (grub_exit): Likewise.
22345 (grub_reboot): Likewise.
22346 (grub_halt): Likewise.
22347 (grub_efi_exit_boot_services): Likewise.
22348 (grub_get_rtc): Likewise.
22349
22350 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
22351 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
22352 (grub_efi_allocate_pages): Wrap efi calls.
22353 (grub_efi_free_pages): Wrap efi calls.
22354 (grub_efi_get_memory_map): Wrap efi calls.
22355
22356 * kern/x86_64/dl.c: New file.
22357
22358 * kern/x86_64/efi/callwrap.S: Likewise.
22359
22360 * kern/x86_64/efi/startup.S: Likewise.
22361
22362 * loader/efi/appleloader.c: Likewise.
22363
22364 * loader/efi/chainloader.c (cmdline): New variable.
22365 (grub_chainloader_unload): Wrap efi calls.
22366 (grub_chainloader_boot): Likewise.
22367 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
22368 command line.
22369
22370 * loader/efi/chainloader_normal.c (chainloader_command):
22371 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
22372 command line.
22373
22374 * loader/i386/efi/linux.c (allocate_pages): Change allocation
22375 method.
22376 (grub_e820_add_region): New function.
22377 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
22378 booting.
22379 (grub_find_video_card): New function.
22380 (grub_linux_setup_video): New function.
22381 (grub_rescue_cmd_linux): Probe for video information.
22382
22383 * normal/x86_64/setjmp.S: New file.
22384
22385 * term/efi/console.c (map_char): New function.
22386 (grub_console_putchar): Map unicode char.
22387 (grub_console_checkkey): Wrap efi calls.
22388 (grub_console_getkey): Likewise.
22389 (grub_console_getwh): Likewise.
22390 (grub_console_gotoxy): Likewise.
22391 (grub_console_cls): Likewise.
22392 (grub_console_setcolorstate): Likewise.
22393 (grub_console_setcursor): Likewise.
22394
22395 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
22396
59652a20 223972008-07-16 Pavel Roskin <proski@gnu.org>
22398
ef294055 22399 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
22400 format strings.
22401
59652a20 22402 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
22403 pointer, not an integer. This fixes a warning and prevents
22404 precision loss on 64-bit systems.
22405 (relocate_addresses): Remove unneeded cast.
22406
afc3b5d7 224072008-07-15 Pavel Roskin <proski@gnu.org>
22408
506b2b3e 22409 * kern/i386/ieee1275/init.c: Include grub/cache.h.
22410
62ead89c 22411 * term/ieee1275/ofconsole.c: Disable code unused on i386.
22412
c4cd51d7 22413 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
22414 Fix comparison between signed and unsigned.
22415
0d3d8f28 22416 * include/grub/i386/ieee1275/console.h: Declare
22417 grub_console_init() and grub_console_fini().
22418
8804b286 22419 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
22420 It's empty and unused.
22421
ee01cf35 22422 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
22423 beginning to avoid warnings with some compilers.
22424
afc3b5d7 22425 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
22426 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
22427
e4e8eaa5 224282008-07-14 Pavel Roskin <proski@gnu.org>
22429
407aceb4 22430 * kern/env.c (grub_register_variable_hook): Don't copy empty
22431 string, it leaks memory. Pass "" to grub_env_set(), it should
22432 handle constant strings.
22433
e4e8eaa5 22434 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
22435 * commands/cmp.c (grub_cmd_cmp): Likewise.
22436 * kern/dl.c (grub_dl_flush_cache): Likewise.
22437 (grub_dl_load_core): Likewise.
22438 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
22439 (grub_elf64_load_phdrs): Likewise.
22440
d4e2dad3 224412008-07-13 Pavel Roskin <proski@gnu.org>
22442
22443 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
22444 between signed and unsigned.
22445 (LzmaEnc_Finish): Fix warning about an unused parameter.
22446
aa24b516 224472008-07-13 Bean <bean123ch@gmail.com>
22448
22449 * Makefile.in (enable_lzo): New rule.
22450
22451 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
22452
22453 * configure.ac (ENABLE_LZO): New option --enable-lzo.
22454
22455 * boot/i386/pc/lnxboot.S: #include <config.h>.
22456
22457 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 22458 its value according to the compression algorithm used, lzo or lzma.
aa24b516 22459
22460 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
22461 compression algorithm according to configure macro.
22462
22463 * kern/i386/pc/startup.S (codestart): Likewise.
22464
22465 * kern/i386/pc/lzma_decode.S: New file.
22466
22467 * include/grub/lib/LzFind.h: Likewise.
22468
22469 * include/grub/lib/LzHash.h: Likewise.
22470
22471 * include/grub/lib/LzmaDec.h: Likewise.
22472
22473 * include/grub/lib/LzmaEnc.h: Likewise.
22474
22475 * include/grub/lib/LzmaTypes.h: Likewise.
22476
22477 * lib/LzFind.c: Likewise.
22478
22479 * lib/LzmaDec.c: Likewise.
22480
22481 * lib/LzmaEnc.c: Likewise.
22482
4ae821ac 224832008-07-13 Bean <bean123ch@gmail.com>
22484
22485 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
22486 (grub_ext4_extent_header): New structure.
22487 (grub_ext4_extent): Likewise.
22488 (grub_ext4_extent_idx): Likewise.
22489 (grub_ext4_find_leaf): New function.
22490 (grub_ext2_read_block): Handle extents.
22491
9a745147 224922008-07-12 Robert Millan <rmh@aybabtu.com>
22493
22494 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
22495
d49a4cf6 224962008-07-11 Robert Millan <rmh@aybabtu.com>
22497
22498 * util/grub.d/40_custom.in: New file. Example on how to add custom
22499 entries to /etc/grub.d.
22500 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
22501 40_custom (implicitly, by merging all the grub.d rules).
22502
947414b4 225032008-07-11 Pavel Roskin <proski@gnu.org>
22504
0059cf6f 22505 * commands/read.c (grub_getline): Fix invalid memory access.
22506 Don't add newline to the variable value.
22507
947414b4 22508 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
22509 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
22510 (serial_hw_get_port): Check validity of the port number.
22511 (grub_cmd_serial): Check return value of serial_hw_get_port().
22512
62a02d00 225132008-07-07 Pavel Roskin <proski@gnu.org>
22514
22515 * boot/i386/pc/diskboot.S (notification_string): Replace
22516 "Loading kernel" with just "loading". This is shorter, less
22517 confusing and saves a few bytes for possible future changes.
22518
3e5581b0 225192008-07-05 Pavel Roskin <proski@gnu.org>
22520
ea387a48 22521 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
22522 size for ATAPI devices, they are undefined. Output sector
22523 number in decimal form.
22524
3e5581b0 22525 * disk/ata.c: Use named constants for status bits.
22526
fdecb8fd 225272008-07-04 Pavel Roskin <proski@gnu.org>
22528
bcd35b90 22529 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
22530 grub_addr_t before casting it to the void pointer to fix a
22531 warning. Non-addressable regions are discarded earlier.
22532 (grub_arch_modules_addr): Cast _end to grub_addr_t.
22533 * kern/i386/linuxbios/table.c: Include grub/misc.h.
22534 (check_signature): Don't shadow table_header.
22535 (grub_linuxbios_table_iterate): Cast numeric constants to
22536 grub_linuxbios_table_header_t.
22537 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
22538 grub_stop().
22539
af58ab3d 22540 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
22541 prevent warnings.
22542
1759aa57 22543 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
22544 pointer, which can cause warnings. Support 64-bit addresses.
22545
fdecb8fd 22546 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
22547 of sizeof(long). This fixes PowerPC image generation on x86_64.
22548
8516d2a8 225492008-07-04 Robert Millan <rmh@aybabtu.com>
22550
22551 This fixes a performance issue when pc & gpt partmap iterators
22552 didn't abort iteration even after our hook found what it was
fe987087 22553 looking for (often causing expensive probes of non-existent drives).
8516d2a8 22554
22555 Some callers relied on previous buggy behaviour, since they would
34c44600 22556 raise an error when their own hooks caused early abortion of its
8516d2a8 22557 iteration.
22558
22559 * kern/device.c (grub_device_open): Improve error message.
22560 * disk/lvm.c (grub_lvm_open): Likewise.
22561 * disk/raid.c (grub_raid_open): Likewise.
22562
22563 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
22564 when hook requests it, independently of grub_errno.
22565 (pc_partition_map_probe): Do not fail when find_func() caused
22566 early abortion of pc_partition_map_iterate().
22567
22568 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
22569 when hook requests it, independently of grub_errno.
22570 (gpt_partition_map_probe): Do not fail when find_func() caused
22571 early abortion of gpt_partition_map_iterate().
22572
22573 * kern/partition.c (grub_partition_iterate): Abort parent iteration
22574 when hook requests it, independently of grub_errno. Do not fail when
22575 part_map_iterate_hook() caused early abortion of p->iterate().
22576
22577 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
22578 when grub_partition_iterate() returned with non-zero.
22579
277d0de9 225802008-07-03 Pavel Roskin <proski@gnu.org>
22581
22582 * disk/ata.c (grub_ata_pio_write): Check status before writing,
22583 like we do in grub_ata_pio_read().
22584 (grub_ata_readwrite): Always write individual sectors. Fix the
22585 sector count for the remainder.
22586 (grub_ata_write): Enable writing to ATA devices. Correctly
22587 report error for ATAPI devices.
22588
d4c9b428 225892008-07-02 Pavel Roskin <proski@gnu.org>
22590
e43fc690 22591 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
22592 warning.
22593
f707af42 22594 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
22595 for every read sector, we already increment it for the whole
22596 batch. This fixes reading more than 256 sectors at once.
22597
11e16b15 22598 * util/grub-editenv.c (cmd_info): Cast argument to long
22599 explicitly. ptrdiff_t reduces to int on i386.
22600
cbabfdd4 22601 * util/grub-editenv.c (main): Be specific which parameter is
22602 missing.
22603
b8fbce0a 22604 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
22605 (memdisk): Make memdisk_orig_addr a pointer.
22606
c9c8e606 22607 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
22608 for file offsets, use grub_off_t instead. Fix printf format
22609 warnings.
22610
ca62e598 22611 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
22612 there. Real unexpected warnings should not drown in the noise
22613 about known problems.
22614
ce8d1766 22615 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
22616 grub_disk_addr_t for memory addresses.
22617
00c7a56a 22618 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
22619 explicitly to fix a warning.
22620
08d3ef09 22621 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
22622
cb71ba20 22623 * Makefile.in (MODULE_LDFLAGS): New variable.
22624 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
22625 the linker accepts --build-id=none.
22626 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
22627 MODULE_LDFLAGS.
22628 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
22629
d4c9b428 22630 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
22631 those in Linux XFS code. Provide a way to access 64-bit parent
22632 inode.
22633 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
22634 the end of struct grub_xfs_dir_header.
22635
d4156eee 226362008-07-02 Bean <bean123ch@gmail.com>
22637
22638 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
22639 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22640 and GRUB_IEEE1275_FLAG_NO_ANSI.
22641
22642 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
22643 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22644 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
22645
22646 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
22647 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
22648
22649 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
22650 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
22651
22652 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
22653 esc sequence on non ANSI terminal.
22654 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
22655
22656 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
22657 beginning of file.
22658
2270f77b 226592008-07-02 Bean <bean123ch@gmail.com>
22660
22661 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
22662 (grub_editenv_SOURCES): New variable.
22663 (pkglib_MODULES): Add loadenv.mod.
22664 (loadenv_mod_SOURCES): New variable.
22665 (loadenv_mod_CFLAGS): Likewise.
22666 (loadenv_mod_LDFLAGS): Likewise.
22667
22668 * include/grub/envblk.h: New file.
22669
22670 * util/envblk.c: New file.
22671
22672 * util/grub-editenv.c: New file.
22673
22674 * commands/loadenv.c: New file.
22675
0e9e51ec 226762008-07-01 Pavel Roskin <proski@gnu.org>
22677
d89b7634 22678 * include/multiboot2.h (struct multiboot_tag_module): Use char,
22679 not unsigned char. This fixes warnings and is consistent with
22680 other tags.
22681
bf1835b1 22682 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
22683
8222a04b 22684 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
22685
6a42d99d 22686 * term/tparm.c (analyze): Always set *popcount.
22687
10b159d1 22688 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
22689 cast to fix a warning.
22690
b8789f6c 22691 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
22692 cast to suppress a warning.
22693
29d7e38a 22694 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
22695 grub_fshelp_read_file() expects.
22696
f341f669 22697 * fs/fat.c: Fix UUID calculation on big-endian systems. We
22698 write uuid as a 32-bit value in CPU byte order, so declare and
22699 use it as such.
22700
0e9e51ec 22701 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
22702 long if the format specifier expects it.
22703 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
22704 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22705 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
22706 long to fix a warning.
22707 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
22708 grub_dprintf() arguments to fix warnings.
22709
3aefa857 227102008-06-30 Pavel Roskin <proski@gnu.org>
22711
56c7668b 22712 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
22713 install_bsd_part immediately before core.img is embedded or
22714 modified on disk. This fixes core.img verification if core.img
22715 cannot be embedded.
22716
3aefa857 22717 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
22718 core_path to calculate the blocklist.
22719 Patch from Javier Martín <lordhabbit@gmail.com>
22720
5444088d 227212008-06-29 Robert Millan <rmh@aybabtu.com>
22722
22723 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
22724 block to disk block.
22725 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
22726 Patch from Niels Böhm <bitbucket@arcor.de>
22727
674835c8 227282008-06-29 Robert Millan <rmh@aybabtu.com>
22729
22730 * util/update-grub_lib.in (font_path): Search for fonts in
22731 /boot/grub first, which is more likely to be readable (we aren't
22732 deciding where fonts live, just looking for them).
22733
f527dbc8 227342008-06-26 Pavel Roskin <proski@gnu.org>
22735
6c2d8df6 22736 * util/biosdisk.c (read_device_map): Don't leave dead map
22737 entries for devices failing stat() check.
22738
f527dbc8 22739 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
22740 core_path_dev for the core.img path on the target device.
22741
aebe3d13 227422008-06-26 Robert Millan <rmh@aybabtu.com>
22743
22744 * disk/fs_uuid.c: New file.
22745 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
22746 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
22747 (fs_uuid_mod_LDFLAGS): New variables.
22748 * include/grub/disk.h (grub_disk_dev_id): Add
22749 `GRUB_DISK_DEVICE_UUID_ID'.
22750 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
22751 implement iterate().
22752
37aaf354 227532008-06-26 Robert Millan <rmh@aybabtu.com>
22754
22755 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
22756 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
22757 Linux image includes no initrd.
22758
25ff262a 227592008-06-21 Javier Martín <lordhabbit@gmail.com>
22760
22761 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
22762 call to resolve the core image location that effectively appended the
22763 name twice.
22764
76a2bd44 227652008-06-21 Robert Millan <rmh@aybabtu.com>
22766
22767 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
22768 call from here ...
22769
22770 * util/grub.d/10_hurd.in: ... to here ...
22771 * util/grub.d/10_linux.in: ... and here.
22772
650e1c79 227732008-06-19 Robert Millan <rmh@aybabtu.com>
22774
fe987087 22775 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 22776 after it has been set by grub_machine_set_prefix().
22777
6ce63911 227782008-06-19 Robert Millan <rmh@aybabtu.com>
22779
22780 * commands/search.c (search_label, search_fs_uuid, search_file): Print
22781 search result when not saving to variable, not the other way around.
22782 When saving to variable, abort iteration as soon as a match is found.
22783
73940cec 227842008-06-19 Robert Millan <rmh@aybabtu.com>
22785
22786 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
22787 check for partition that provides /boot/grub. Its logic is flawed,
22788 as it prevents prepare_grub_to_access_device() from being called
22789 multiple times.
22790
3c62a39d 227912008-06-19 Robert Millan <rmh@aybabtu.com>
22792
22793 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
22794 "insmod" command directly when abstraction modules are needed,
fe987087 22795 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 22796 since it had already been processed).
22797
47395a42 227982008-06-19 Pavel Roskin <proski@gnu.org>
22799
22800 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
22801 changed. This is needed in case GRUB_LIBDIR changes.
22802 * conf/i386-ieee1275.rmk: Likewise.
22803 * conf/i386-linuxbios.rmk: Likewise.
22804 * conf/i386-pc.rmk: Likewise.
22805 * conf/powerpc-ieee1275.rmk: Likewise.
22806
a145ac2d 228072008-06-18 Pavel Roskin <proski@gnu.org>
22808
22809 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
22810 kernel_elf_symlist.c to symlist.c for consistency with other
22811 architectures. Update all users.
22812 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22813
7847c51e 228142008-06-18 Robert Millan <rmh@aybabtu.com>
22815
22816 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
22817 it in prefix.
22818
22819 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
22820 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
22821 a RAID device, run setup() for all members independently on whether
22822 LVM abstraction is being used.
22823 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
22824 If grub-mkimage has set `*install_dos_part == -2', don't override this
22825 value.
22826 Perform *install_dos_part adjustments independently on whether
22827 we're embedding or not.
22828 Clarify error message when image is too big for embedding.
22829 Remove duplicate *install_dos_part stanza.
22830
b23e5644 228312008-06-17 Robert Millan <rmh@aybabtu.com>
22832
22833 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
22834 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
22835 variables.
22836 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
22837 values in grub_ofconsole_normal_color and
22838 grub_ofconsole_highlight_color (they're not directly related to
22839 background and foreground).
22840 (grub_ofconsole_setcolorstate): Extract background and foreground
22841 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
22842
0aac2f79 228432008-06-17 Robert Millan <rmh@aybabtu.com>
22844
22845 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
22846 /boot/grub for the check in last commit, not /boot (they could be
22847 different partitions).
22848
3cca7ef3 228492008-06-16 Robert Millan <rmh@aybabtu.com>
22850
22851 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
22852 asked to setup access for the same partition that provides /boot,
22853 don't bother using UUIDs since our root already has the value we
22854 want.
22855
347396d8 228562008-06-16 Robert Millan <rmh@aybabtu.com>
22857
22858 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
22859 I2O devices.
22860 Patch from Sven Mueller <sven@debian.org>.
22861
991477f8 228622008-06-16 Robert Millan <rmh@aybabtu.com>
22863
22864 * util/update-grub.in: Check for $EUID instead of $UID.
22865 Reported by Vincent Zweije.
22866
d31a32a1 228672008-06-16 Bean <bean123ch@gmail.com>
22868
fe987087 22869 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 22870 (grub_ext2_read_block): Likewise.
22871 (grub_ext2_read_inode): Likewise.
22872 (grub_ext2_mount): Likewise.
22873 (grub_ext2_close): Likewise.
22874 (grub_ext3_get_journal): Removed.
22875
fe987087 22876 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 22877 (grub_reiserfs_read_symlink): Likewise.
22878 (grub_reiserfs_mount): Likewise.
22879 (grub_reiserfs_open): Likewise.
22880 (grub_reiserfs_read): Likewise.
22881 (grub_reiserfs_close): Likewise.
22882 (grub_reiserfs_get_journal): Removed.
22883
22884 * fs/fshelp.c (grub_fshelp_read): Removed.
22885 (grub_fshelp_map_block): Likewise.
22886
22887 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
22888 (grub_fshelp_journal): Likewise.
22889 (grub_fshelp_read): Likewise.
22890 (grub_fshelp_map_block): Likewise.
22891
3540a760 228922008-06-16 Pavel Roskin <proski@gnu.org>
22893
22894 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
22895 floating point anymore.
22896 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
22897
95614c84 228982008-06-15 Pavel Roskin <proski@gnu.org>
22899
22900 * commands/ls.c (grub_ls_list_files): Use integer calculations
22901 for human readable format, avoid floating point use.
22902 * kern/misc.c (grub_ftoa): Remove.
22903 (grub_vsprintf): Remove floating point support.
22904
50465dd6 229052008-06-15 Robert Millan <rmh@aybabtu.com>
22906
fe6b695a 22907 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 22908 devices.
22909 Reported by Max Vozeler.
22910
a9207284 229112008-06-15 Robert Millan <rmh@aybabtu.com>
22912
22913 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
22914 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
22915 skipped later.
22916 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
22917 the beginning of the prefix.
22918
22919 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
22920 It is assumed that if we have a memdisk, grub-mkimage has set
22921 grub_prefix to include the "(memdisk)" drive in it.
22922
a7cbd45a 229232008-06-15 Robert Millan <rmh@aybabtu.com>
22924
22925 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
22926 Initialize keyboard controller after registering the terminal, so that
22927 grub_printf() can be called from grub_keyboard_controller_init().
22928
21cf716a 229292008-06-15 Robert Millan <rmh@aybabtu.com>
22930
22931 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
22932 extent-btree which is written as big endian on disk.
22933 Reported by Alain Greppin <al@chilibi.org>.
22934
23a64d8e 229352008-06-14 Robert Millan <rmh@aybabtu.com>
22936
22937 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
22938 * util/i386/pc/grub-install.in (modules): Likewise.
22939
d687651c 229402008-06-13 Pavel Roskin <proski@gnu.org>
22941
22942 * commands/ls.c (grub_ls_list_files): Fix format warnings.
22943
dfe9ddd4 229442008-06-13 Bean <bean123ch@gmail.com>
22945
22946 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
22947
22948 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
22949
22950 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
22951 to indicate sparse block.
22952
16ae7781 229532008-06-12 Pavel Roskin <proski@gnu.org>
22954
e6d1a308 22955 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
22956 number, grub_fshelp_read() does it for us.
22957
16ae7781 22958 * fs/fshelp.c (grub_fshelp_read): New function. Implement
22959 linear disk read with journal translation.
22960 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
22961 * include/grub/fshelp.h: Declare grub_fshelp_read().
22962
40fd3a2b 229632008-06-09 Pavel Roskin <proski@gnu.org>
22964
22965 * fs/minix.c (grub_minix_mount): Handle error reading
22966 superblock.
22967
f5679726 229682008-06-08 Robert Millan <rmh@aybabtu.com>
22969
22970 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
22971 don't append the RAID prefix afterwards.
22972 Reported by Clint Adams.
22973
ce525529 229742008-06-08 Robert Millan <rmh@aybabtu.com>
22975
22976 Based on description from Pavel:
22977 * kern/disk.c (grub_disk_check_range): Rename to ...
22978 (grub_disk_adjust_range): ... this. Add a comment explaining the
22979 tasks performed by this function.
22980
ad4936a0 229812008-06-08 Robert Millan <rmh@aybabtu.com>
22982
22983 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
22984 `num_serial' (for consistency with other variables).
22985 (struct grub_ntfs_data): Add `uuid' member.
22986 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
22987 (grub_ntfs_uuid): New function.
22988 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
22989
dc20b0f9 229902008-06-07 Pavel Roskin <proski@gnu.org>
22991
22992 * util/biosdisk.c (open_device): Revert last change to the
22993 function, it broke installation. The sector needs to be
22994 different dependent on which device is opened.
22995
c5e3cfba 229962008-06-06 Robert Millan <rmh@aybabtu.com>
22997
22998 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
22999 rest of GRUB, and breakage doesn't happen if its value were modified.
23000
23001 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23002 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
23003 a constant (same value).
23004 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
23005 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
23006
26a1f8c4 230072008-06-06 Robert Millan <rmh@aybabtu.com>
23008
23009 * util/biosdisk.c (open_device): Do not modify sector offset when
23010 accessing a partition. kern/disk.c already handles this for us.
23011
25d6b327 230122008-06-06 Robert Millan <rmh@aybabtu.com>
23013
23014 * util/grub-emu.c (grub_machine_init): Move code in this function from
23015 here ...
23016 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
23017 segfault in case grub_printf() is called).
23018
23019 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
23020 grub_probe. Update all users not to explicitly add it again.
23021 (grub_device): New variable; contains corresponding device for grubdir.
23022 (fs_module, partmap_module, devabstraction_module): Pass
23023 `--device ${grub_device}' to grub_probe to avoid traversing /dev
23024 every time.
23025
9ece62fb 230262008-06-05 Robert Millan <rmh@aybabtu.com>
23027
23028 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
23029 is found, print it (same layout as with labels).
23030
1ad36d37 230312008-06-04 Robert Millan <rmh@aybabtu.com>
23032
23033 * util/biosdisk.c (get_drive): Rename to ...
23034 (find_grub_drive): ... this. Update all users.
23035
23036 (get_os_disk): Rename to ...
23037 (convert_system_partition_to_system_disk): ... this. Update all users.
23038
23039 (find_drive): Rename to ...
23040 (find_system_device): ... this. Update all users.
23041
e6a30859 230422008-06-04 Robert Millan <rmh@aybabtu.com>
23043
23044 * util/biosdisk.c (get_os_disk): Handle IDA devices.
23045 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23046 (make_device_map): Likewise.
23047
00c108a4 230482008-06-01 Robert Millan <rmh@aybabtu.com>
23049
23050 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
23051 before dereferencing it.
23052
23053 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
23054 union with fat12/fat16-specific ones. Add some new fields, including
23055 `num_serial' for both versions.
23056 (struct grub_fat_data): Add `uuid' member.
23057 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
23058 names. Initialize `data->uuid' using `num_serial'.
23059 (grub_fat_uuid): New function.
23060 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
23061
23062 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
23063 (grub_reiserfs_uuid): New function.
23064 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
23065 member.
23066
23067 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
23068 (grub_xfs_uuid): New function.
23069 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
23070
1385c5bb 230712008-06-01 Robert Millan <rmh@aybabtu.com>
23072
23073 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
23074 code that is backward compatible with pre-uuid search command.
23075
c682dfd7 230762008-05-31 Robert Millan <rmh@aybabtu.com>
23077
23078 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
23079 floppies after everything else, to ensure floppy drive isn't accessed
23080 unnecessarily (patch from Bean).
23081
b7db5d47 230822008-05-31 Robert Millan <rmh@aybabtu.com>
23083
23084 * commands/search.c (search_label, search_fs_uuid, search_file): Do
23085 not print device names when we were asked to set a variable.
23086
6e037aa9 230872008-05-31 Robert Millan <rmh@aybabtu.com>
23088
23089 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
23090 using "cursor-on" and "cursor-off" commands (understood at least by
23091 the Open Firmware flavour on OLPC).
23092
41305bc8 230932008-05-31 Michael Gorven <michael@gorven.za.net>
23094
23095 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
23096 on and off sequences.
23097
69ba137e 230982008-05-31 Robert Millan <rmh@aybabtu.com>
23099
23100 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
23101 * util/update-grub.in: Likewise.
23102
520ae21b 231032008-05-30 Pavel Roskin <proski@gnu.org>
23104
23105 * util/biosdisk.c (linux_find_partition): Simplify logic and
23106 make the code more universal. Keep special processing for
23107 devfs, but use a simple rule for all other devices. If the
23108 device ends with a number, append 'p' and the partition number.
23109 Otherwise, append only the partition number.
23110
5786569b 231112008-05-30 Robert Millan <rmh@aybabtu.com>
23112
23113 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
23114 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
23115 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
23116 the `root' parameter to Linux.
23117
51500452 231182008-05-30 Robert Millan <rmh@aybabtu.com>
23119
23120 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
23121 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
23122 --fs_uuid with --fs-uuid.
23123 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
23124 all filesystems support them).
23125
811d3878 231262008-05-30 Robert Millan <rmh@aybabtu.com>
23127
23128 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 23129 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 23130
cab63c95 231312008-05-30 Robert Millan <rmh@aybabtu.com>
23132
23133 * util/grub.d/00_header.in: Remove obsolete comment referencing
23134 convert_system_path_to_grub_path().
23135 * util/update-grub.in: Likewise.
23136 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
23137 (convert_system_path_to_grub_path): Add a warning message explaining
23138 that this function is deprecated. Rely on is_path_readable_by_grub()
23139 for the readability checks.
23140 (font_path): Use is_path_readable_by_grub() for the readability
23141 check rather than convert_system_path_to_grub_path().
23142
972e2f7a 231432008-05-30 Robert Millan <rmh@aybabtu.com>
23144
23145 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
23146 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
23147 converting it first.
23148 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
23149 grub.cfg for access to font file, and afterwards call it again to set
23150 the root device.
23151
62191274 231522008-05-30 Robert Millan <rmh@aybabtu.com>
23153
23154 * commands/search.c (options): Add --fs_uuid option.
23155 (search_fs_uuid): New function.
23156 (grub_cmd_search): Fix --set argument passing.
23157 Use search_fs_uuid() when requested via --fs_uuid.
23158 (grub_search_init): Update help message.
23159 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
23160 and redeclare it as an array of 16-bit words.
23161 (grub_ext2_uuid): New function.
23162 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
23163 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
23164 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
23165 (GRUB_DEVICE_BOOT_UUID): New variables.
23166 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
23167 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
23168 whenever possible.
23169 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
23170 just assume `root' variable has the right value.
23171 * util/grub.d/10_linux.in: Likewise.
23172 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
23173 via PRINT_FS_UUID.
23174 (main): Recognise `-t fs_uuid' argument.
23175
01b73ec8 231762008-05-30 Robert Millan <rmh@aybabtu.com>
23177
23178 * util/biosdisk.c (map): Redefine structure to hold information
23179 about GRUB drive name.
fe6b695a 23180 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 23181 drive names.
23182 (call_hook): Remove.
23183 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
23184 member. Assume drive has partitions.
23185 (grub_util_biosdisk_open): Access device names via `.device' struct
23186 member.
23187 (open_device): Likewise.
23188 (find_drive): Likewise.
23189 (read_device_map): Adjust map[] usage to match the new struct
23190 definition. Don't check for duplicates (still possible, but not cheap
23191 anymore).
23192 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
23193 (make_device_name): Remove assumption of BIOS-like drive names.
23194
22f16596 231952008-05-30 Pavel Roskin <proski@gnu.org>
23196
23197 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
23198 compiling execute.c doesn't need grub_script.tab.h anymore.
23199 (normal/command.c_DEPENDENCIES): Likewise.
23200 (normal/function.c_DEPENDENCIES): Likewise.
23201 * conf/i386-ieee1275.rmk: Likewise.
23202 * conf/i386-linuxbios.rmk: Likewise.
23203 * conf/i386-pc.rmk: Likewise.
23204 * conf/powerpc-ieee1275.rmk: Likewise.
23205 * conf/sparc64-ieee1275.rmk: Likewise.
23206
528ad8f2 232072008-05-29 Pavel Roskin <proski@gnu.org>
23208
d1dff95d 23209 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
23210 when scanning metadata for volume group name.
23211
528ad8f2 23212 * include/grub/script.h: Don't include grub_script.tab.h. It's
23213 a generated file, which may only be included from the files with
23214 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
23215 use union YYSTYPE, as the later allows forward declaration.
23216 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
23217
47248e08 232182008-05-29 Robert Millan <rmh@aybabtu.com>
23219
23220 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
23221 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
23222 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
23223 (grub_console_checkkey): Add grub_dprintf() call to report unknown
23224 scan codes.
23225
ee632529 232262008-05-29 Robert Millan <rmh@aybabtu.com>
23227
23228 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
23229 control key combinations.
23230
eee96e08 232312008-05-29 Robert Millan <rmh@aybabtu.com>
23232
23233 * util/powerpc/ieee1275/grub-install.in: Move from here ...
23234 * util/ieee1275/grub-install.in: ... to here.
23235 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
23236 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
23237 (grub_install_SOURCES): Likewise.
23238
da9a6a94 232392008-05-29 Robert Millan <rmh@aybabtu.com>
23240
23241 * fs/affs.c: Update copyright year.
23242 * fs/ext2.c: Likewise.
23243 * fs/fshelp.c: Likewise.
23244 * fs/hfsplus.c: Likewise.
23245 * fs/ntfs.c: Likewise.
23246 * fs/xfs.c: Likewise.
23247 * include/grub/fshelp.h: Likewise.
23248 * util/grub-mkdevicemap.c: Likewise.
23249
12e65f3a 232502008-05-28 Robert Millan <rmh@aybabtu.com>
23251
23252 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
23253 might need to be fatfs to support some firmware implementations
23254 (e.g. OFW or EFI).
23255
23023641 232562008-05-28 Robert Millan <rmh@aybabtu.com>
23257
23258 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
23259 devices.
23260 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23261 (make_device_map): Likewise.
23262
887d2619 232632008-05-20 Bean <bean123ch@gmail.com>
23264
23265 * fs/fshelp.c (grub_fshelp_map_block): New function.
23266 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
23267 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
23268
23269 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
23270 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
23271 (grub_fshelp_journal): New structure.
23272 (grub_fshelp_map_block): New function prototype.
23273 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
23274 (grub_fshelp_map_block): Likewise.
23275
23276 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
23277 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
23278 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
23279 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
23280 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
23281 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
23282 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
23283 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
23284 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
23285 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
23286 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
23287 (grub_ext2_sblock): New members for journal support.
23288 (grub_ext3_journal_header): New structure.
23289 (grub_ext3_journal_revoke_header): Likewise.
23290 (grub_ext3_journal_block_tag): Likewise.
23291 (grub_ext3_journal_sblock): Likewise.
23292 (grub_fshelp_node): New members logfile and journal.
23293 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
23294 grub_fshelp_map_block to get real block number.
23295 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
23296 number.
23297 (grub_ext2_read_inode): Likewise.
23298 (grub_ext3_get_journal): New function.
23299 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
23300 (grub_ext2_close): Release memory used by journal.
23301
23302 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
23303 (REISERFS_MAGIC_DESC_BLOCK): New macro.
23304 (grub_reiserfs_transaction_header): Renamed to
23305 grub_reiserfs_description_block, replace field data with real_blocks.
23306 (grub_reiserfs_commit_block): New structure.
23307 (grub_reiserfs_data): New member journal.
23308 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
23309 number.
23310 (grub_reiserfs_read_symlink): Likewise.
23311 (grub_reiserfs_iterate_dir): Likewise.
23312 (grub_reiserfs_open): Likewise.
23313 (grub_reiserfs_read): Likewise.
23314 (grub_reiserfs_get_journal): New function.
23315 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
23316 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
23317 using grub_reiserfs_get_journal.
23318 (grub_reiserfs_close): Release memory used by journal.
23319
23320 * fs/affs.c (grub_affs_read_block): Change block type to
23321 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
23322
23323 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
23324
23325 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
23326
23327 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
23328
23329 * fs/udf.c (grub_udf_read_block): Change block type to
23330 grub_disk_addr_t. Use type cast to avoid warning.
23331
23332 * fs/xfs.c (grub_xfs_read_block): Likewise.
23333
b7c6bed5 233342008-05-16 Christian Franke <franke@computer.org>
23335
23336 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
23337 to ensure that break with ESC will always work.
23338 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
23339 Remove ESC from keyboard queue.
23340
eedf167f 233412008-05-16 Christian Franke <franke@computer.org>
23342
23343 * util/biosdisk.c: [__CYGWIN__] Add includes.
23344 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
23345 (get_os_disk): Move variable declarations to OS specific
23346 parts to avoid warning.
23347 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
23348 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
23349 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
23350 Cygwin.
23351 * util/getroot.c: [__CYGWIN__] Add includes.
23352 (strip_extra_slashes): Fix "/" case.
23353 [__CYGWIN__] (get_win32_path): New function.
23354 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
23355 [__CYGWIN__] (find_root_device): Disable.
23356 [__CYGWIN__] (get_bootsec_serial): New function.
23357 [__CYGWIN__] (find_cygwin_root_device): Likewise.
23358 [__linux__] (grub_guess_root_device): Add early returns to simplify
23359 structure.
23360 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
23361 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
23362 check for Linux only.
23363
a079699e 233642008-05-15 Bean <bean123ch@gmail.com>
23365
23366 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
23367 keyboard hang problem in apple's intel mac.
23368
1cf4059a 233692008-05-09 Robert Millan <rmh@aybabtu.com>
23370
23371 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
23372 devices.
23373 * util/grub-mkdevicemap.c (get_virtio_disk_name)
23374 (make_device_map): Likewise.
23375 Reported by Aurelien Jarno <aurel32@debian.org>
23376
ed759390 233772008-05-07 Ian Campbell <ijc@hellion.org.uk>
23378
23379 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
23380 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
23381 (make_device_map): Output entries for xvd type disks.
23382
b56c4eaa 233832008-05-07 Robert Millan <rmh@aybabtu.com>
23384
23385 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
23386 devices.
23387 * util/grub-mkdevicemap.c (get_cciss_disk_name)
23388 (make_device_map): Likewise.
23389 Reported by Roland Dreier <rdreier@cisco.com>
23390
7f8866ed 233912008-05-07 Robert Millan <rmh@aybabtu.com>
23392
23393 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
23394 grub_strstr() call. Correct a few mistakes in failure path handling.
23395
b0346e0f 233962008-05-06 Robert Millan <rmh@aybabtu.com>
23397
23398 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
23399 Do not print a trailing slash (therefore, the root directory is an
23400 empty string).
23401 (convert_system_path_to_grub_path): Do not remove trailing slash
23402 from make_system_path_relative_to_its_root() output.
23403
23404 * util/i386/pc/grub-install.in: Add trailing slash to output from
23405 make_system_path_relative_to_its_root().
23406
6cf12cbd 234072008-05-06 Robert Millan <rmh@aybabtu.com>
23408
23409 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
23410 ensures that output lines aren't intermangled with those sent to
23411 stderr (via grub_util_info()).
23412 * util/grub-probe.c (grub_refresh): Likewise.
23413 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
23414
0fbb3117 234152008-05-05 Christian Franke <franke@computer.org>
23416
23417 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
23418 Add Cygwin device names.
23419 (get_ide_disk_name) [__CYGWIN__]: Likewise.
23420 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
23421 (check_device): Return error instead of success on empty name.
23422 (make_device_map): Move label inside linux specific code to
23423 prevent compiler warning.
23424
8124cdb7 234252008-04-30 Robert Millan <rmh@aybabtu.com>
23426
23427 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
23428 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
23429 first boot option.
23430 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
23431
094c01d0 234322008-04-29 Robert Millan <rmh@aybabtu.com>
23433
23434 * docs/grub.cfg: New file (example GRUB configuration).
23435
f4b1fc02 234362008-04-26 Robert Millan <rmh@aybabtu.com>
23437
329ce2a5 23438 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
23439 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
23440 and `disk/ieee1275/nand.c'.
f4b1fc02 23441
25f16ec1 234422008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 23443
25f16ec1 23444 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
23445 i386-linuxbios.
23446
23447 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
23448 change the buffer size to 4096 for cdrom device.
23449
23450 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
23451 and nand.mod.
23452 (_linux_mod_SOURCES): New variable.
23453 (_linux_mod_CFLAGS): Likewise.
23454 (_linux_mod_LDFLAGS): Likewise.
23455 (linux_mod_SOURCES): Likewise.
23456 (linux_mod_CFLAGS): Likewise.
23457 (linux_mod_LDFLAGS): Likewise.
23458 (nand_mod_SOURCES): Likewise.
23459 (nand_mod_CFLAGS): Likewise.
23460 (nand_mod_LDFLAGS): Likewise.
23461
23462 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
23463 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
23464 type property. (nand device in olpc don't have this property)
23465
23466 * include/grub/disk.h (grub_disk_dev_id): New macro
23467 GRUB_DISK_DEVICE_NAND_ID.
23468
23469 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
23470 function prototype.
23471 (grub_rescue_cmd_initrd): Likewise.
23472
23473 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
23474 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
23475 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 23476
25f16ec1 23477 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
23478 GRUB_MACHINE_IEEE1275 is defined.
23479
23480 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
23481 Use NESTED_FUNC_ATTR attribute on the hook parameter.
23482
23483 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
23484 on nested function heap_init.
23485 (grub_upper_mem): New variable for i386-ieee1275.
23486 (grub_get_extended_memory): New function for i386-ieee1275.
23487 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
23488
23489 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
23490 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
23491 property.
f19dbdb7 23492
25f16ec1 23493 * loader/i386/ieee1275/linux.c: New file.
23494
23495 * loader/i386/ieee1275/linux_normal.c: New file.
23496
23497 * disk/ieee1275/nand.c: New file.
23498
e89d61e9 234992008-04-18 Thomas Schwinge <tschwinge@gnu.org>
23500
23501 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
23502 value.
23503 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
23504
602566f6 235052008-04-18 Robert Millan <rmh@aybabtu.com>
23506
23507 Restructures early code path on ieee1275 to unify grub_main() as
23508 the first C function that is executed in every platform.
23509
23510 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
23511 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
23512 cmain().
23513 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
23514 * kern/ieee1275/cmain.c (cmain): Rename to ...
23515 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
23516 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
23517 at the beginning.
23518
57490c2b 235192008-04-18 Robert Millan <rmh@aybabtu.com>
23520
23521 * util/update-grub.in: Fix syntax error when setting
23522 `GRUB_PRELOAD_MODULES'.
23523 Reported by Stephane Chazelas <stephane@artesyncp.com>
23524
1977517d 235252008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
23526
23527 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
23528 section into account, newer toolchains generate unique build ids
23529 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 23530 we want build ids to be preserved
1977517d 23531 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
23532 far from other sections don't cause the raw binary images grow
23533 size
23534
bfb1f1a2 235352008-04-15 Robert Millan <rmh@aybabtu.com>
23536
23537 * disk/lvm.c: Update copyright year.
23538 * kern/misc.c: Likewise.
23539
01979850 235402008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23541
23542 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 23543 there is no memory left for physical volume name.
01979850 23544
0a1150e2 235452008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23546
23547 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
23548 volume name mapping to support bigger than 9 character names properly.
23549
82ead3fe 235502008-04-13 Robert Millan <rmh@aybabtu.com>
23551
23552 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
23553 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
23554
e54a72f5 235552008-04-13 Christian Franke <franke@computer.org>
23556
23557 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
23558 to create a floppy emulation boot CD when non emulation mode
23559 does not work.
23560 Enable Joliet CD filesystem extension.
23561
9fe86034 235622008-04-13 Robert Millan <rmh@aybabtu.com>
23563
23564 * kern/misc.c (grub_strncat): Fix off-by-one error.
23565 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
23566
23567 * kern/env.c (grub_env_context_close): Clear current context, not
23568 previous one.
23569 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
23570
23571 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
23572
7ceeee39 235732008-04-13 Robert Millan <rmh@aybabtu.com>
23574
23575 Improve robustness when handling LVM.
23576
23577 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 23578 (and leave `*p' unmodified).
7ceeee39 23579 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
23580 through it.
23581 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
23582 iterating through it.
23583 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
23584 through it.
fe6b695a 23585 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 23586 when due) on each grub_lvm_getvalue() or grub_strstr() call.
23587 Don't assume `vg->pvs != NULL' when iterating through it.
23588
58cd3d85 235892008-04-13 Robert Millan <rmh@aybabtu.com>
23590
23591 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
23592 * genmk.rb (partmap): New variable.
23593 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
23594 (#{partmap}): New target rule.
23595 * genpartmaplist.sh: New file.
23596 * Makefile.in (pkglib_DATA): Add partmap.lst.
23597 (partmap.lst): New target rule.
23598 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
23599 modules (including all partition maps), instead of preloading them.
23600
78b51059 236012007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
23602
23603 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
23604 `linux-boot-prober' (if installed) to detect other operating
23605 systems which are installed on the computer and add them to
23606 the boot menu.
23607 * conf/common.rmk: Build and install 30_os-prober.
23608
a91627b4 236092008-04-12 Robert Millan <rmh@aybabtu.com>
23610
23611 * kern/powerpc/ieee1275/init.c: Move from here ...
23612 * kern/ieee1275/init.c: ... to here. Update all users.
23613
23614 * kern/powerpc/ieee1275/cmain.c: Move from here ...
23615 * kern/ieee1275/cmain.c: ... to here. Update all users.
23616
23617 * kern/powerpc/ieee1275/openfw.c: Move from here ...
23618 * kern/ieee1275/openfw.c: ... to here. Update all users.
23619
23620 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
23621 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
23622
322562ea 236232008-04-10 Pavel Roskin <proski@gnu.org>
23624
23625 * configure.ac: Always use "_cv_" in cache variables for
23626 compatibility with Autoconf 2.62.
23627
a02a73c5 236282008-04-07 Robert Millan <rmh@aybabtu.com>
23629
23630 Revert grub/machine/init.h addition by Pavel (since it breaks on
23631 i386-ieee1275 and others):
23632 * util/i386/pc/misc.c: Remove grub/machine/init.h.
23633 * util/powerpc/ieee1275/misc.c: Likewise.
23634
25c024b1 236352008-04-07 Robert Millan <rmh@aybabtu.com>
23636
23637 * util/grub-probe.c (probe): Improve error message.
23638
3cbd2f98 236392008-04-07 Robert Millan <rmh@aybabtu.com>
23640
23641 * util/biosdisk.c (read_device_map): Skip devices that don't exist
23642 (this prevents the presence of a bogus entry from ruining the whole
23643 thing).
23644
87a297bf 236452008-04-06 Pavel Roskin <proski@gnu.org>
23646
36747a62 23647 * util/biosdisk.c: Include grub/util/biosdisk.h.
23648 * util/grub-fstest.c (execute_command): Make static.
23649 * util/grub-mkdevicemap.c (check_device): Likewise.
23650 * util/i386/pc/misc.c: Include grub/machine/init.h.
23651 * util/powerpc/ieee1275/misc.c: Likewise.
23652 * util/lvm.c: Include grub/util/lvm.h.
23653 * util/misc.c: Include grub/kernel.h, grub/misc.h and
23654 grub/cache.h.
23655 * util/raid.c: Include grub/util/raid.h.
23656 (grub_util_getdiskname): Make static.
23657
87a297bf 23658 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
23659 grub_hostfs_fini(), as they are called from grub_init_all() and
23660 grub_fini_all() respectively. This fixes an infinite loop in
23661 grub-fstest due to double registration of hostfs.
23662 Reported by Christian Franke <Christian.Franke@t-online.de>
23663
f6ce7629 236642008-04-05 Pavel Roskin <proski@gnu.org>
23665
23666 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
23667 all 8 functions. Otherwise, probe function 0 only.
23668
070e49e4 236692008-04-04 Pavel Roskin <proski@gnu.org>
23670
8b088a4c 23671 * commands/lspci.c (grub_lspci_iter): Print the bus number
23672 correctly.
23673
4f657021 23674 * commands/lspci.c (grub_pci_classes): Fix typos.
23675 (grub_lspci_iter): Don't print func twice. Print vendor ID
23676 before device ID, as it's normally done.
23677
070e49e4 23678 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
23679 Fix signedness warnings.
23680 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
23681 Likewise.
23682 * util/ieee1275/get_disk_name.c: Include config.h so that
23683 _GNU_SOURCE is defined and getline() is declared. Mark an
23684 unused argument as such. Fix a signedness warning.
23685
ba7328dc 236862008-04-02 Pavel Roskin <proski@gnu.org>
23687
26887f22 23688 * genkernsyms.sh.in: Use more robust assignments for CC and
23689 srcdir. Quote srcdir.
23690 * gensymlist.sh.in: Likewise. Assert at the compile time that
23691 the symbol table is not empty.
23692
ba7328dc 23693 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
23694 * fs/cpio.c (grub_cpio_read): Likewise.
23695
0f582c6b 236962008-04-01 Pavel Roskin <proski@gnu.org>
23697
4b6e1995 23698 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
23699 * disk/host.c (grub_host_open): Likewise.
23700 * disk/loopback.c (grub_loopback_open): Likewise.
23701 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
23702 disk->id as in disk/host.c, not a multi-character constant.
23703
828a2768 23704 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
23705 later is obsolete, potentially dangerous and sets a bad example.
23706 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
23707 * util/misc.c (grub_util_get_image_size): Likewise.
23708
2bb4fb47 23709 * disk/loopback.c (options): Improve help for "--partitions".
23710
0f582c6b 23711 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
23712 options to align them with the short options, e.g. "echo -e".
23713
a33224e0 237142008-03-31 Bean <bean123ch@gmail.com>
23715
23716 * video/reader/png.c (grub_png_data): New member is_16bit and
23717 image_data.
23718 (grub_png_decode_image_header): Detect 16 bit png image.
23719 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
23720 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
23721 (grub_video_reader_png): Release memory occupied by image_data.
23722
23723 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
23724 4096 bytes.
23725 (grub_nfs_mount): Skip the test for sector per cluster.
23726
23727 * include/grub/ntfs.h (MAX_SPC): Removed.
23728
86cb4f54 237292008-03-31 Bean <bean123ch@gmail.com>
23730
23731 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
23732 (grub_probe_SOURCES): Add fs/afs.c.
23733 (grub_fstest_SOURCES): Likewise.
23734 (afs_mod_SOURCES): New variable.
23735 (afs_mod_CFLAGS): Likewise.
23736 (afs_mod_LDFLAGS): Likewise.
23737
23738 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
23739 (grub_emu_SOURCES): Likewise.
23740
23741 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23742
23743 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23744
23745 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23746
23747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23748
23749 * fs/afs.c: New file.
23750
17c74c21 237512008-03-30 Pavel Roskin <proski@gnu.org>
23752
4cb68e89 23753 * disk/host.c: Include grub/misc.h to fix a warning.
23754 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
23755 warnings about implicit declarations.
23756
8790bb04 23757 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
23758 variable.
23759 * include/grub/i386/loader.h: Change declaration of
23760 grub_linux_boot() to match what grub_loader_set() expects.
23761 * util/getroot.c (grub_guess_root_device): Return const char* to
23762 fix a warning.
23763 * util/grub-probe.c (probe): Fix a warning about uninitialized
23764 abstraction_name variable.
23765 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
23766 second argument as unused to fix a warning.
23767
9a3f3296 23768 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
23769 missing grub_error() call.
23770
0ecef90d 23771 * util/update-grub_lib.in: Define datarootdir, since Autoconf
23772 2.60 and newer uses it to define datadir.
23773
0bf6d401 23774 * commands/sleep.c: Fix warning about implicit declaration.
23775 * disk/memdisk.c: Likewise.
23776 * loader/aout.c: Likewise.
23777 * loader/i386/bsd_normal.c: Likewise.
23778 * util/grub-probe.c: Likewise.
23779
7cdacf97 23780 * commands/i386/cpuid.c (has_longmode): Make static.
23781 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
23782 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
23783
17c74c21 23784 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
23785 GDT. This is more robust, as %ds can change.
23786 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
23787 calling real_to_prot().
23788 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
23789
80a3e68b 237902008-03-28 Pavel Roskin <proski@gnu.org>
23791
23792 * kern/i386/pc/startup.S: Assert that uncompressed functions
23793 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
23794 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
23795 code, as they push parts of the code (error handlers) beyond
23796 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
23797 code as correctness and size.
23798
77bcd272 237992008-03-28 Pavel Roskin <proski@gnu.org>
23800
23801 * kern/i386/pc/startup.S
23802 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
23803 data block address to the real mode, keep offset minimal. This
23804 works around a bug in AWARD BIOS on old Athlon systems, which
23805 makes CD detection hang.
23806
c5dfd43b 238072008-03-26 Pavel Roskin <proski@gnu.org>
23808
23809 * normal/color.c (grub_parse_color_name_pair): Make `name' a
23810 const.
23811 * include/grub/normal.h: Add grub_parse_color_name_pair()
23812 declaration.
23813
bf962df2 238142008-03-24 Bean <bean123ch@gmail.com>
23815
23816 * disk/i386/pc/biosdisk.c (cd_start): Removed.
23817 (cd_count): Removed.
23818 (cd_drive): New variable.
23819 (grub_biosdisk_get_drive): Don't check for (cdN) device.
23820 (grub_biosdisk_call_hook): Likewise.
23821 (grub_biosdisk_iterate): Change cdrom detection method.
23822 (grub_biosdisk_open): Replace cd_start with cd_drive.
23823 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
23824 detect cdrom device.
23825
23826 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
23827 Removed.
23828 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
23829 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
23830 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
23831 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
23832 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
23833 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
23834 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
23835 (grub_biosdisk_cdrp): New structure.
23836 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
23837
23838 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
23839
23840 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
23841 device.
23842
23843 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
23844 New function.
23845
68e7fc7a 238462008-03-20 Robert Millan <rmh@aybabtu.com>
23847
23848 Remove 2 TiB limit in ata.mod.
23849 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
23850 (grub_ata_dumpinfo): Print sector count with 0x%llx.
23851 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
23852 grub_uint64_t instead of grub_uint32_t.
23853
38ad2cf5 238542008-03-05 Bean <bean123ch@gmail.com>
23855
23856 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
23857 (grub_multiboot): Set boot device.
23858
23859 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
23860
2b89344e 238612008-03-02 Bean <bean123ch@gmail.com>
23862
23863 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
23864 symlink_buffer.
23865
87a95d1f 238662008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
23867
23868 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
23869 texinfo.tex.
23870
23871 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
23872 modified.
23873
23874 * docs/fdl.texi: New file.
f19dbdb7 23875
87a95d1f 23876 * docs/mdate-sh: New file. Copied from gnulib.
23877 * docs/texinfo.tex: Likewise.
23878
23879 * config.guess: Updated from gnulib.
23880 * install-sh: Likewise.
23881
7dc15d8e 238822008-02-28 Robert Millan <rmh@aybabtu.com>
23883
23884 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
23885 (aout_mod_SOURCES): New variable.
23886 (aout_mod_CFLAGS): Likewise.
23887 (aout_mod_LDFLAGS): Likewise.
23888
23889 * conf/i386-ieee1275.rmk: Likewise.
23890
b00ab696 238912008-02-28 Robert Millan <rmh@aybabtu.com>
23892
23893 * util/update-grub.in: Reorganise terminal validity check. Accept
23894 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
23895 Based on suggestion by Franklin PIAT.
23896
79ca2d78 238972008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
23898
23899 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
23900 function.
23901 * util/getroot.c (grub_util_check_block_device): New function that
23902 returns the given argument if it is a block device and returns NULL else.
23903 * util/grub-probe.c (argument_is_device): New variable.
23904 (probe): Promote device_name from a variable to an argument. Receive
23905 device_name from grub_util_check_block_device() if path is NULL and from
23906 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 23907 (options): Introduce new parameter '-d, --device'.
79ca2d78 23908 (main): Add description of the new parameter to the help screen.
23909 Rename path variable to argument. Set argument_is_device if the '-d'
23910 option is given. Pass argument to probe() depending on
23911 argument_is_device.
23912
0d16e571 239132008-02-24 Bean <bean123ch@gmail.com>
23914
23915 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
23916 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
23917 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
23918 (GRUB_ISO9660_VOLDESC_PART): Likewise.
23919 (GRUB_ISO9660_VOLDESC_END): Likewise.
23920 (grub_iso9660_primary_voldesc): New member escape.
23921 (grub_iso9660_data): New member joliet.
23922 (grub_iso9660_convert_string): New function.
23923 (grub_iso9660_mount): Detect joliet extension.
23924 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
23925 (grub_iso9660_iso9660_label): Likewise.
23926
23927 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
23928 (grub_setup_SOURCES): Add fs/udf.c.
23929 (grub_fstest_SOURCES): Likewise.
23930 (udf_mod_SOURCES): New variable.
23931 (udf_mod_CFLAGS): Likewise.
23932 (udf_mod_LDFLAGS): Likewise.
23933
23934 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
23935 (grub_emu_SOURCES): Likewise.
23936
23937 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23938
23939 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23940
23941 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23942
23943 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23944
23945 * fs/udf.c: New file.
23946
8a594a17 239472008-02-24 Robert Millan <rmh@aybabtu.com>
23948
23949 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
23950 (normal/lexer.c_DEPENDENCIES): New variables.
23951 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23952 (normal/lexer.c_DEPENDENCIES): Likewise.
23953 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
23954 (normal/lexer.c_DEPENDENCIES): Likewise.
23955 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
23956 (normal/lexer.c_DEPENDENCIES): Likewise.
23957 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23958 (normal/lexer.c_DEPENDENCIES): Likewise.
23959 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23960 (normal/lexer.c_DEPENDENCIES): Likewise.
23961
2dc33c03 239622008-02-23 Robert Millan <rmh@aybabtu.com>
23963
23964 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
23965 since they were intended to be in hex. This didn't break previously
23966 because of a bug in gpt_partition_map_iterate() (see below).
23967
23968 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
23969 when checking the validity of GPT header.
23970 Remove `partno', since it always provides the same information as `i'.
23971
f6f4cfb0 239722008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
23973
23974 * include/grub/efi/time.h: Fix a wrong comment.
23975
79ff665f 239762008-02-19 Pavel Roskin <proski@gnu.org>
23977
23978 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
23979 message.
23980
d38e24c2 239812008-02-19 Bean <bean123ch@gmail.com>
23982
23983 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
23984 (aout_mod_SOURCES): New variable.
23985 (aout_mod_CFLAGS): Likewise.
23986 (aout_mod_LDFLAGS): Likewise.
23987 (_bsd_mod_SOURCES): New variable.
23988 (_bsd_mod_CFLAGS): Likewise.
23989 (_bsd_mod_LDFLAGS): Likewise.
23990 (bsd_mod_SOURCES): New variable.
23991 (bsd_mod_CFLAGS): Likewise.
23992 (bsd_mod_LDFLAGS): Likewise.
23993
23994 * include/grub/aout.h: New file.
23995
23996 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
23997
23998 * include/grub/i386/bsd.h: New file.
23999
24000 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
24001 to make it public.
24002
24003 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
24004 function is called, so that it's possible to change it inside the hook.
24005 (grub_elf64_load): Likewise.
24006 (grub_elf_file): Don't close the file if elf header is not found.
24007 (grub_elf_close): Close the file if grub_elf_file fails (The new
24008 grub_elf_file won't close it).
24009 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
24010 (grub_elf64_size): Likewise.
24011
24012 * kern/i386/loader.S (grub_unix_real_boot): New function.
24013
24014 * loader/aout.c: New file.
24015
24016 * loader/i386/bsd.c: New file.
24017
24018 * loader/i386/bsd_normal.c: New file.
24019
24020 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
24021
24022 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 24023 can test other formats.
d38e24c2 24024
b93bdb0f 240252008-02-19 Robert Millan <rmh@aybabtu.com>
24026
24027 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
24028 (grub_gpt_partition_type_empty): Redefine with macro from
24029 `<grub/gpt_partition.h>'.
24030 (gpt_partition_map_iterate): Adjust partition type comparison.
24031
24032 Export `entry' as partmap-specific `part.data' struct.
24033 (grub_gpt_header, grub_gpt_partentry): Move from here ...
24034
24035 * include/grub/gpt_partition.h (grub_gpt_header)
24036 (grub_gpt_partentry): ... to here (new file).
24037
24038 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
24039
24040 (grub_gpt_partition_type_bios_boot): New const variable, defined
24041 with macro from `<grub/gpt_partition.h>'.
24042
24043 (setup): Replace `first_start' with `embed_region', which keeps
24044 track of the embed region (and is partmap-agnostic).
24045
24046 Replace find_first_partition_start() with find_usable_region(),
24047 which finds a usable region for embedding using partmap-specific
24048 knowledge (supports PC/MSDOS and GPT).
24049
24050 Fix all assumptions that the embed region start at sector 1, using
24051 `embed_region.start' from now on. Similarly, use `embed_region.end'
24052 rather than `first_start' to calculate available size.
24053
24054 In grub_util_info() message, replace "into after the MBR" with an
24055 indication of the specific sector our embed region starts at.
24056
66cb40f6 240572008-02-19 Robert Millan <rmh@aybabtu.com>
24058
24059 * DISTLIST: Replace `commands/ieee1275/halt.c' and
24060 `commands/ieee1275/reboot.c' with `commands/halt.c' and
24061 `commands/reboot.c'.
24062 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
24063 (halt_mod_SOURCES): Likewise.
24064 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
24065 (halt_mod_SOURCES): Likewise.
24066
b7202015 240672008-02-17 Christian Franke <franke@computer.org>
24068
24069 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
24070
32b0fc49 240712008-02-17 Robert Millan <rmh@aybabtu.com>
24072
24073 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
24074 set `first_start' to 0 for non-PC/MSDOS partition maps.
24075
aca63502 240762008-02-16 Robert Millan <rmh@aybabtu.com>
24077
24078 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
24079 do not assume partition map is PC/MSDOS before performing checks that
24080 are specific to that layout.
24081
0de8be86 240822008-02-13 Robert Millan <rmh@aybabtu.com>
24083
24084 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
24085 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
24086 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
24087
c3db8364 240882008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
24089
24090 * configure.ac: Only a cosmetic change on the handling of
24091 -fno-stack-protector.
24092
f714229e 240932008-02-12 Alexandre Boeglin <alex@boeglin.org>
24094
c3db8364 24095 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
24096 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
24097 reboot.c.
f714229e 24098 (grub_install_SOURCES): Add halt.mod and reboot.mod.
24099 (halt_mod_SOURCES): New variable.
24100 (halt_mod_CFLAGS): Likewise.
24101 (halt_mod_LDFLAGS): Likewise.
24102 (reboot_mod_SOURCES): Likewise.
24103 (reboot_mod_CFLAGS): Likewise.
24104 (reboot_mod_LDFLAGS): Likewise.
24105
c3db8364 24106 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
24107 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
24108 reboot.c.
f714229e 24109 (halt_mod_SOURCES): Likewise.
24110 (reboot_mod_SOURCES): Likewise.
24111
c3db8364 24112 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
24113 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 24114 (reboot_mod_SOURCES): Likewise.
24115
24116 * commands/i386/pc/reboot.c: merge this file ...
24117
24118 * commands/ieee1275/reboot.c: ... and this file ...
24119
24120 * commands/reboot.c: ... to this file.
c3db8364 24121 Add some precompiler directive to include the correct header for
24122 each machine.
f714229e 24123
24124 * commands/ieee1275/halt.c: move this file ...
24125
24126 * commands/halt.c: ... to here.
c3db8364 24127 Add some precompiler directive to include the correct header for
24128 each machine.
f714229e 24129
24130 * include/grub/efi/efi.h (grub_reboot): New function declaration.
24131 (grub_halt): Likewise.
24132
24133 * kern/efi/efi.c (grub_reboot): New function.
24134 (grub_halt): Likewise.
24135
c74493e0 241362008-02-12 Robert Millan <rmh@aybabtu.com>
24137
24138 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
24139 /dev (like it is done for /dev/mapper). This doesn't provide support
24140 for EVMS, but at least it is now easy to identify the problem when it
24141 arises.
24142
d0db4b04 241432008-02-11 Robert Millan <rmh@aybabtu.com>
24144
24145 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
24146 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
24147 comparing it with -1, not 0.
24148
bf748642 241492008-02-10 Robert Millan <rmh@aybabtu.com>
24150
24151 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
24152 `disk/lvm.c'.
24153 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24154 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24155
24156 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
24157 `disk/lvm.c' to the end of the list.
24158 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24159 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24160
b5db202a 241612008-02-10 Robert Millan <rmh@aybabtu.com>
24162
24163 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
24164 grub_print_error() instead. This will let user know why we're entering
24165 rescue mode.
24166 Based on suggestions from Sam Morris.
24167
83abee31 241682008-02-10 Alexandre Boeglin <alex@boeglin.org>
24169
24170 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
24171 on remaining N args, instead of "--" arg N times.
24172
78d5a08b 241732008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
24174
24175 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
24176 (fill_with_default_glyph): Changed to use unknown_glyph for fill
24177 pattern for unknown glyphs.
24178
68807e5f 241792008-02-09 Robert Millan <rmh@aybabtu.com>
24180
24181 * configure.ac: Probe for `help2man'.
24182 * Makefile.in (builddir): New variable.
24183 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
24184 or otherwise add a few flags/options to it.
24185 (install-local): For every executable utility or script that is
24186 installed, invoke $(HELP2MAN) to install a manpage based on --help
24187 output.
24188
24189 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
24190 that it doesn't prevent --help from working in build tree.
24191
24192 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
24193 with `bug-grub@gnu.org'.
24194 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
24195 * util/update-grub.in (usage): New function.
24196 Implement proper argument check, with support for --help and --version
24197 (as well as existing -y).
24198
241992008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 24200
24201 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
24202 avoid overwriting previous output.
24203 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
24204
c1962162 242052008-02-09 Robert Millan <rmh@aybabtu.com>
24206
24207 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
24208 drawing the menu.
24209
3dac2e3f 242102008-02-09 Robert Millan <rmh@aybabtu.com>
24211
24212 * commands/sleep.c: New file.
24213 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
24214 (sleep_mod_SOURCES): New variable.
24215 (sleep_mod_CFLAGS): Likewise.
24216 (sleep_mod_LDFLAGS): Likewise.
24217
7a634e08 242182008-02-09 Robert Millan <rmh@aybabtu.com>
24219
24220 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
24221 situations in which we can deduce the RAID size and the superblock
24222 doesn't match it.
24223
b92f0c18 242242008-02-09 Robert Millan <rmh@aybabtu.com>
24225
24226 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
24227 and return a grub_diskmemberlist_t composed of LVM physical volumes.
24228 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
24229
24230 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
24231 and return a grub_diskmemberlist_t composed of physical array members.
24232 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
24233
24234 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
24235 prototype.
24236 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
24237 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
24238 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
24239
24240 * util/grub-probe.c (probe): Move partmap probing code from here ...
24241 (probe_partmap): ... to here.
24242 (probe): Use probe_partmap() once for the disk we're probing, and
24243 additionally, when such disk contains a memberlist() struct member,
24244 once for each disk that is contained in the structure returned by
24245 memberlist().
24246
91a4bf68 242472008-02-09 Robert Millan <rmh@aybabtu.com>
24248
24249 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
24250 environment variable to 'all' in order to obtain debug output from
24251 non-util/ code.
24252 * util/i386/pc/grub-setup.c (main): Likewise.
24253
a96f9caa 242542008-02-08 Robert Millan <rmh@aybabtu.com>
24255
24256 * disk/raid.c (grub_raid_scan_device): Check for
24257 `array->device[sb.this_disk.number]' rather than for
24258 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 24259 guaranteed to be accessible.
a96f9caa 24260
b37a9222 242612008-02-08 Robert Millan <rmh@aybabtu.com>
24262
24263 * disk/raid.c: Update copyright.
24264 * fs/cpio.c: Likewise.
24265 * include/grub/raid.h: Likewise.
24266 * loader/i386/pc/multiboot.c: Likewise.
24267 * util/hostfs.c: Likewise.
24268
5626aee1 242692008-02-08 Robert Millan <rmh@aybabtu.com>
24270
24271 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
24272 to a grub_disk_t array.
24273 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
24274 `device[x]'.
24275 (grub_raid_scan_device): Replace `device[x].name' accesses with
24276 `device[x]->name'. Simplify initialization of `array->device[x]'.
24277
554f0187 242782008-02-08 Robert Millan <rmh@aybabtu.com>
24279
24280 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
24281 grub_dprintf() calls.
24282 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
24283 error message.
24284
1ec8425d 242852008-02-07 Christian Franke <franke@computer.org>
24286
24287 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
24288 instead of fseek and ftell to support large files.
24289 (grub_hostfs_read): Likewise.
24290
f2156fda 242912008-02-07 Robert Millan <rmh@aybabtu.com>
24292
24293 Patch from Jeroen Dekkers.
24294 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 24295 failure, since successfully reading all array members might not be
f2156fda 24296 required.
24297
9216e0e7 242982008-02-06 Robert Millan <rmh@aybabtu.com>
24299
24300 * util/grub-probe.c (probe): Simplify partmap probing (with the
24301 assumption that the first word up to the underscore equals to
24302 the module name).
24303
b0dfd29a 243042008-02-06 Christian Franke <franke@computer.org>
24305
24306 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
24307 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
24308 last block of a cpio or tar stream.
24309 Check for "TRAILER!!!" instead of any empty data
24310 block to detect last block of a cpio stream.
24311 (grub_cpio_dir): Fix constness of variable np.
24312 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
24313 cpio or tar trailer is detected. This fixes a crash
24314 on open of a non existing file.
24315
c32865bf 243162008-02-05 Bean <bean123ch@gmail.com>
24317
24318 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
24319 address of entry.
24320 (grub_multiboot_load_elf64): Likewise.
24321 (grub_multiboot): Initialize mbi structure.
24322
24323 * util/grub-fstest.c: Don't include unused header file script.h.
24324
fe6b695a 24325 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 24326 of file.
24327 (grub_fstest_SOURCES): Likewise.
24328
409480b7 243292008-02-05 Robert Millan <rmh@aybabtu.com>
24330
24331 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
24332 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
24333 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
24334 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
24335
24336 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
24337 (translation_table): Replace hardcoded values with macros
24338 provided by `<grub/term.h>'.
24339
24340 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
24341 (keyboard_map): Correct/add a few values, with macros provided
24342 by `<grub/term.h>'.
24343 (keyboard_map_shift): Zero values that don't differ from their
24344 `keyboard_map' equivalents.
24345 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
24346 Discard the second scan code that is always sent by Caps lock.
24347 Only use `keyboard_map_shift' when it provides a non-zero value,
24348 otherwise fallback to `keyboard_map'.
24349
99fadbaa 243502008-02-04 Bean <bean123ch@gmail.com>
24351
24352 * Makefile.in (enable_grub_fstest): New variable.
24353
24354 * conf/common.rmk (grub_fstest_init.lst): New rule.
24355 (grub_fstest_init.h): Likewise.
24356 (grub_fstest_init.c): Likewise.
24357 (util/grub-fstest.c_DEPENDENCIES): New variable.
24358 (grub_fstest_SOURCES): Likewise.
24359
24360 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
24361
24362 * util/grub-fstest.c: New file.
24363
bf567c50 243642008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24365
24366 Make grub-setup handle a separate root device.
f19dbdb7 24367
bf567c50 24368 * util/i386/pc/grub-setup.c (setup): Always open the root device,
24369 so that the root device can be compared with the destination
24370 device.
24371 When embedding the core image, if the root and destination devices
24372 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
24373 0xFF.
24374 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 24375
9be6b98b 243762008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24377
24378 Add support for having a grub directory in a different drive. This
24379 is still only the data handling part.
f19dbdb7 24380
9be6b98b 24381 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
24382 (codestart): Save %dh in GRUB_ROOT_DRIVE.
24383 (grub_root_drive): New variable.
24384
24385 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
24386 instead of GRUB_BOOT_DRIVE to construct a device name. Set
24387 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
24388 as it was.
24389
24390 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
24391
24392 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
24393 macro.
24394 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
24395
24396 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
24397 is bogus, because PXE booting does not specify any drive
24398 correctly.
24399
24400 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
24401 am not sure if this is really correct.
24402
24403 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
24404 is always identical to the boot drive when booting from a CD.
24405
24406 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
24407 longer.
24408 (root_drive): New variable.
24409 (real_start): Unconditionally set %dh to ROOT_DRIVE.
24410 (setup_sectors): Push %dx right after popping it, because %dh will
24411 be modified later.
24412 (copy_buffer): Restore %dx.
24413
e0ca0677 244142008-02-03 Robert Millan <rmh@aybabtu.com>
24415
24416 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
24417 use `cdboot.img' for cdrom images.
24418
3b3f6629 244192008-02-03 Robert Millan <rmh@aybabtu.com>
24420
24421 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
24422 only setup gfxterm when `font' command has succeeded.
24423
d42b3672 244242008-02-03 Robert Millan <rmh@aybabtu.com>
24425
24426 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
24427 (grub_rescue_cmd_multiboot_loader)
24428 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
24429
fa370ea6 244302008-02-03 Pavel Roskin <proski@gnu.org>
24431
e0c5dacb 24432 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 24433 %edx and %esi from stack only after grub_gate_a20() is called.
24434 grub_gate_a20() clobbers %edx.
24435
f2a76e1d 244362008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24437
24438 * configure.ac (AC_INIT): Bumped to 1.96.
24439
24440 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
24441 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
24442 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
24443 video/readers/png.c.
24444
90fd32d1 244452008-02-03 Bean <bean123ch@gmail.com>
9be665dd 24446
24447 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
24448 (cdboot_img_SOURCES): New variable.
24449 (cdboot_img_ASFLAGS): New variable.
24450 (cdboot_img_LDFLAGS): New variable.
24451
24452 * boot/i386/pc/cdboot.S: New file.
24453
24454 * disk/i386/pc/biosdisk.c (cd_start): New variable.
24455 (cd_count): Likewise.
24456 (grub_biosdisk_get_drive): Add support for cd device.
24457 (grub_biosdisk_call_hook): Likewise.
24458 (grub_biosdisk_iterate): Likewise.
24459 (grub_biosdisk_open): Likewise.
24460 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
24461 (grub_biosdisk_rw): Support reading from cd device.
24462 (GRUB_MOD_INIT): Iterate cd devices.
24463
24464 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
24465 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
24466 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
24467
24468 * kern/i386/pc/init.c (make_install_device): Check for cd device.
24469
4020aa53 244702008-02-02 Robert Millan <rmh@aybabtu.com>
24471
24472 * commands/read.c: New file.
24473 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
24474 (read_mod_SOURCES): New variable.
24475 (read_mod_CFLAGS): Likewise.
24476 (read_mod_LDFLAGS): Likewise.
24477
e03a1132 244782008-02-02 Robert Millan <rmh@aybabtu.com>
24479
24480 * normal/main.c (grub_normal_execute): Check for `menu->size' when
24481 determining whether menu has to be displayed.
24482
58c69220 244832008-02-02 Marco Gerards <marco@gnu.org>
24484
24485 * bus/pci.c: New file.
24486
24487 * include/grub/pci.h: Likewise.
24488
24489 * include/grub/i386/pc/pci.h: Likewise.
24490
24491 * commands/lspci.c: Likewise.
24492
24493 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
24494 `lspci.mod'.
24495 (pci_mod_SOURCES): New variable.
24496 (pci_mod_CFLAGS): Likewise.
24497 (pci_mod_LDFLAGS): Likewise.
24498 (lspci_mod_SOURCES): Likewise.
24499 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 24500 (lspci_mod_LDFLAGS): Likewise.
58c69220 24501
c004e1b4 245022008-02-02 Bean <bean123ch@gmail.com>
24503
24504 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
24505 (grub_ufs_get_file_block): Fix indirect block calculation problem.
24506
24507 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
24508 (grub_xfs_btree_node): New structure.
24509 (grub_xfs_btree_root): New structure.
24510 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
24511 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
24512 (GRUB_XFS_EXTENT_BLOCK): Likewise.
24513 (GRUB_XFS_EXTENT_SIZE): Likewise.
24514 (grub_xfs_read_block): Support btree format type.
24515 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
24516 Use directory block as basic unit.
24517
24518 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
24519
24520 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
24521 __attribute__ ((__regparm__ (1))).
24522
f95562bf 245232008-02-01 Robert Millan <rmh@aybabtu.com>
24524
24525 Correct a mistake in previous commit.
24526
24527 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
24528 top.
24529 (normal/command.c_DEPENDENCIES): New variable.
24530
7d31f41f 245312008-02-01 Robert Millan <rmh@aybabtu.com>
24532
24533 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
24534 top.
24535 (normal/command.c_DEPENDENCIES): New variable.
24536 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
24537 * conf/i386-ieee1275.rmk: Likewise.
24538 * conf/i386-linuxbios.rmk: Likewise.
24539 * conf/i386-pc.rmk: Likewise.
24540 * conf/sparc64-ieee1275.rmk: Likewise.
24541 * conf/powerpc-ieee1275.rmk: Likewise.
24542 (grub_emu_SOURCES): Add `fs/fshelp.c'.
24543
24544 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
24545
60b6be74 245462008-02-01 Robert Millan <rmh@aybabtu.com>
24547
24548 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
24549 call at beginning of function.
24550
078522ab 245512008-01-31 Pavel Roskin <proski@gnu.org>
24552
24553 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 24554 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
24555 (grub_mkrescue_SOURCES): Likewise.
078522ab 24556 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
24557
ccaa8a5f 245582008-01-30 Robert Millan <rmh@aybabtu.com>
24559
24560 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
24561 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
24562 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
24563 (grub_probe_SOURCES): ... to here.
24564
24565 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
24566 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
24567 * conf/i386-ieee1275.rmk: Likewise.
24568 * conf/i386-linuxbios.rmk: Likewise.
24569 * conf/powerpc-ieee1275.rmk: Likewise.
24570
ae5a9cd7 245712008-01-30 Tristan Gingold <gingold@free.fr>
24572
24573 * kern/rescue.c: Silently accept empty lines.
24574
70bc2ef2 245752008-01-29 Bean <bean123ch@gmail.com>
24576
24577 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
24578 (real_code_2): Code cleanup and change comment style.
24579 (move_memory): Avoid using 32-bit address mode.
24580
6a4d50ea 245812008-01-29 Bean <bean123ch@gmail.com>
24582
24583 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
24584 (png_mod_SOURCES): New variable.
24585 (png_mod_CFLAGS): Likewise.
24586 (png_mod_LDFLAGS): Likewise.
24587
24588 * video/readers/png.c: New file.
24589
11cc30ac 245902008-01-28 Robert Millan <rmh@aybabtu.com>
24591
24592 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
24593 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
24594 `ifndef GRUB_MOD_GAP' hack.
24595 * util/elf/grub-mkimage.c (add_segments): Likewise.
24596
3abc589f 245972008-01-27 Robert Millan <rmh@aybabtu.com>
24598
24599 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
24600 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 24601 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 24602
e1907778 246032008-01-27 Robert Millan <rmh@aybabtu.com>
24604
24605 Get grub-emu to build again (including parallel builds).
24606
24607 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
24608 Split into ...
24609 (util/grub-emu.c_DEPENDENCIES): ... this, ...
24610 (normal/execute.c_DEPENDENCIES): ... this, ...
24611 (grub-emu_DEPENDENCIES): ... and this.
24612
24613 * conf/i386-efi.rmk: Likewise.
24614 * conf/i386-linuxbios.rmk: Likewise.
24615 * conf/i386-ieee1275.rmk: Likewise.
24616 * conf/powerpc-ieee1275.rmk: Likewise.
24617 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
24618
2216b101 246192008-01-27 Robert Millan <rmh@aybabtu.com>
24620
24621 * NEWS: Add a few items.
24622
f75172d9 246232008-01-27 Robert Millan <rmh@aybabtu.com>
24624
24625 Fix parallel builds with grub-emu. Based on earlier commit for
24626 grub-probe and grub-setup.
24627
24628 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24629 (util/grub-emu.c_DEPENDENCIES): ... this.
24630 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24631 (util/grub-emu.c_DEPENDENCIES): ... this.
24632 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24633 (util/grub-emu.c_DEPENDENCIES): ... this.
24634 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24635 (util/grub-emu.c_DEPENDENCIES): ... this.
24636 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24637 (util/grub-emu.c_DEPENDENCIES): ... this.
24638
3f51de77 246392008-01-27 Pavel Roskin <proski@gnu.org>
24640
24641 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
24642 to create a gap between _end and the modules added to the image
24643 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
24644 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
24645 * util/elf/grub-mkimage.c (add_segments): Likewise.
24646
2033f53e 246472008-01-26 Pavel Roskin <proski@gnu.org>
24648
24649 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
24650 just return an error.
24651
22da1f6f 246522008-01-26 Bean <bean123ch@gmail.com>
24653
24654 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
24655 (grub_reiserfs_get_item): Save offset of the next item.
24656 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
24657
2a9525e6 246582008-01-25 Robert Millan <rmh@aybabtu.com>
24659
24660 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
24661 make all filesystem sources appear together (possibly fixing omissions
24662 while at it).
24663 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24664 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24665 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24666 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24667
24668 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
24669 add `kern/file.c'.
24670 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
24671 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24672 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
24673 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24674
24675 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
24676 (probe): Add a sanity check to make sure of our ability to read
24677 requested files when probing for filesystem type.
24678
24679 * genmk.rb: Update copyright year (2007).
24680
24681 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
24682 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
24683 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
24684 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
24685 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
24686 : Remove function prototypes.
24687
b95f71b5 246882008-01-25 Robert Millan <rmh@aybabtu.com>
24689
24690 Revert my previous commits (based on wrong assumption of how grub_errno
24691 works).
24692
fe6b695a 24693 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 24694 * kern/file.c (grub_file_open): Likewise.
24695
d08bbb49 246962008-01-24 Pavel Roskin <proski@gnu.org>
24697
24698 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
24699 that hang if GRUB tries to setup colors.
24700 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
24701 colors for firmwares that don't support it.
24702 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
24703 Recognize Open Hack'Ware, set flags to work around its
24704 limitations.
24705
605e36ed 247062008-01-24 Robert Millan <rmh@aybabtu.com>
24707
24708 * kern/file.c (grub_file_open): Do not account previous failures of
24709 unrelated functions when grub_errno is checked for.
24710 Reported by Oleg Strikov.
24711
bac332a1 247122008-01-24 Bean <bean123ch@gmail.com>
24713
24714 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
24715 (grub_ufs_sblock): New member volume name.
24716 (grub_ufs_find_file): Fix string copy bug.
24717 (grub_ufs_label): Implement this function properly.
24718
24719 * fs/hfs.c (grub_hfs_cnid_type): New enum.
24720 (grub_hfs_iterate_records): Use the correct file number for extents
24721 and catalog file. Fix problem in next index calculation.
24722 (grub_hfs_find_node): Replace recursive function call with loop.
24723 (grub_hfs_iterate_dir): Replace recursive function call with loop.
24724
15c80c09 247252008-01-23 Robert Millan <rmh@aybabtu.com>
24726
24727 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
24728 `<grub/symbol.h>' and `<grub/multiboot.h>'.
24729 (grub_multiboot2_real_boot): New function prototype.
24730
24731 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
24732 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
24733
24734 * kern/i386/ieee1275/init.c (grub_os_area_addr)
24735 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
24736
305338fd 247372008-01-23 Robert Millan <rmh@aybabtu.com>
24738
24739 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
24740 #ifdef'ed out grub_printf().
24741
3ea52685 247422008-01-23 Robert Millan <rmh@aybabtu.com>
24743
24744 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
24745 grub_dprintf calls, since they make "debug=all" mode unusable.
24746 (grub_console_checkkey): Likewise.
24747
5882ae4b 247482008-01-23 Robert Millan <rmh@aybabtu.com>
24749
24750 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
24751 `term/i386/pc/at_keyboard.c'.
24752 (pkglib_MODULES): Add `serial.mod'.
24753 (serial_mod_SOURCES): New variable.
24754 (serial_mod_CFLAGS): Likewise.
24755 (serial_mod_LDFLAGS): Likewise.
24756
24757 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
24758 `<grub/powerpc/ieee1275/console.h>'.
24759 (grub_keyboard_controller_init): New function prototype.
24760 (grub_console_checkkey): Likewise.
24761 (grub_console_getkey): Likewise.
24762
24763 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
24764 keyboard on i386.
24765
24766 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
24767 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
24768
06ab5303 247692008-01-23 Robert Millan <rmh@aybabtu.com>
24770
24771 * kern/i386/pc/init.c (make_install_device): When memdisk image is
24772 present, "(memdisk)/boot/grub" becomes the default prefix.
24773
24774 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
24775 a memdisk tarball with all the modules. Add --overlay=DIR option that
24776 allows users to overlay additional files into the image.
24777
dbb475a4 247782008-01-23 Robert Millan <rmh@aybabtu.com>
24779
24780 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
24781 and `machine/memory.h'.
24782 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
24783 (_multiboot_mod_SOURCES): New variable.
24784 (_multiboot_mod_CFLAGS): Likewise.
24785 (_multiboot_mod_LDFLAGS): Likewise.
24786 (multiboot_mod_SOURCES): Likewise.
24787 (multiboot_mod_CFLAGS): Likewise.
24788 (multiboot_mod_LDFLAGS): Likewise.
24789
24790 * include/grub/i386/ieee1275/loader.h: New file.
24791
24792 * include/grub/i386/ieee1275/machine.h: Likewise.
24793
24794 * include/grub/i386/ieee1275/memory.h: Likewise.
24795
24796 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
24797 variable declaration.
24798 (grub_os_area_size): Likewise.
24799
24800 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
24801 (grub_lower_mem, grub_upper_mem): New variables.
24802 (grub_stop_floppy): New function (just to make
24803 grub_multiboot2_real_boot() happy).
24804
24805 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
24806 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
24807 (grub_stop): New function.
24808 Include `"../realmode.S"' and `"../loader.S"'.
24809
24810 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
24811 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
24812
24813 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
24814 rely on grub_multiboot2_real_boot() for final boot.
24815
25638629 248162008-01-22 Robert Millan <rmh@aybabtu.com>
24817
24818 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
24819 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
24820 device that doesn't look like an SD card.
24821 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
24822 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
24823 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
24824 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
24825 found.
24826
9dad816d 248272008-01-22 Robert Millan <rmh@aybabtu.com>
24828
24829 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
24830 avoid claiming over our own code.
24831
34842f2d 248322008-01-22 Bean <bean123ch@gmail.com>
24833
24834 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
24835 (jpeg_mod_SOURCES): New variable.
24836 (jpeg_mod_CFLAGS): Likewise.
24837 (jpeg_mod_LDFLAGS): Likewise.
24838
24839 * video/readers/jpeg.c : New file.
24840
44023a28 248412008-01-22 Bean <bean123ch@gmail.com>
24842
24843 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
24844 there are no more items.
24845
bc2d8ac6 248462008-01-21 Robert Millan <rmh@aybabtu.com>
24847
24848 * kern/mm.c (grub_mm_init_region): Improve debug message.
24849
261bd4bc 248502008-01-21 Robert Millan <rmh@aybabtu.com>
24851
24852 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
24853 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
24854 address.
24855 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
24856 a C macro.
24857 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
24858 Indicates start of upper memory.
24859 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
24860 (generate_image): Abort when image size is big enough to corrupt
24861 upper memory.
24862
24863 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
24864 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
24865 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24866 instead of hardcoding 0xA0000.
24867 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
24868 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24869 instead of hardcoding 0xA0000.
24870
f970b55e 248712008-01-21 Robert Millan <rmh@aybabtu.com>
24872
24873 * disk/memdisk.c (memdisk_size): New variable.
24874 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
24875 `memdisk_size'.
24876 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
24877 image to dynamic memory.
24878 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
24879 `memdisk_size'. Free memdisk block.
24880
1a8b0526 248812008-01-21 Robert Millan <rmh@aybabtu.com>
24882
24883 Fix detection of very small filesystems (like tar).
24884
24885 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
24886 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
24887 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
24888 a problem with this disk).
24889
6e9b4aab 248902008-01-21 Robert Millan <rmh@aybabtu.com>
24891
24892 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
24893 on grub_biosdisk_rw_standard() error.
24894
0d8837b2 248952008-01-21 Robert Millan <rmh@aybabtu.com>
24896
24897 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
24898 recent changes.
24899 * kern/elf.c: Likewise.
24900 * kern/ieee1275/ieee1275.c: Likewise.
24901 * kern/powerpc/ieee1275/openfw.c: Likewise.
24902 * term/ieee1275/ofconsole.c: Likewise.
24903
ffd36e34 249042008-01-21 Robert Millan <rmh@aybabtu.com>
24905
24906 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
24907
3f0093d0 24908 * include/grub/kernel.h (grub_arch_memdisk_addr)
24909 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 24910
3f0093d0 24911 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
24912 (grub_arch_memdisk_size): ... to here.
ffd36e34 24913
6c391b21 249142008-01-21 Robert Millan <rmh@aybabtu.com>
24915
24916 Mostly based on bugfix from Bean.
24917
24918 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
24919 attribute with hook() parameter.
24920 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
24921 declaration.
24922 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
24923 attribute with hook() parameter.
24924 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
24925 declaration.
24926
55a581dc 249272008-01-21 Robert Millan <rmh@aybabtu.com>
24928
24929 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
24930 (pkglib_MODULES): Add `memdisk.mod'.
24931 (memdisk_mod_SOURCES): New variable.
24932 (memdisk_mod_CFLAGS): Likewise.
24933 (memdisk_mod_LDFLAGS): Likewise.
24934
24935 * disk/memdisk.c: New file.
24936
24937 * include/grub/disk.h (grub_disk_dev_id): Add
24938 `GRUB_DISK_DEVICE_MEMDISK_ID'.
24939
24940 * include/grub/i386/pc/kernel.h
24941 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
24942 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
24943 (grub_kernel_image_size): New variable declaration.
24944 (grub_total_module_size): Likewise.
24945 (grub_memdisk_image_size): Likewise.
24946
24947 * include/grub/i386/pc/memory.h
24948 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
24949
24950 * include/grub/kernel.h: Include `<grub/symbol.h>'.
24951 (grub_arch_memdisk_addr): New variable declaration.
24952 (grub_arch_memdisk_size): Likewise.
24953
24954 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
24955 (grub_arch_memdisk_size): Likewise.
24956
24957 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
24958 (codestart): Replace hardcoded `0x100000' with
24959 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
24960
24961 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
24962 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
24963 not NULL, append the contents of the file it refers to, at the end of
24964 the compressed kernel image. Initialize `grub_memdisk_image_size'
24965 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
24966 (options): Add "memdisk"|'m' option.
24967 (main): Parse --memdisk|-m option, and pass user-provided path as
24968 parameter to generate_image().
24969
3d7f54c9 249702008-01-20 Robert Millan <rmh@aybabtu.com>
24971
24972 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
24973 grub_dprintf() calls from here ...
24974 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
24975
0bf74728 249762008-01-20 Robert Millan <rmh@aybabtu.com>
24977
24978 Fix detection of "real mode" when /options/real-mode? doesn't exist.
24979
24980 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
24981 declaration.
24982 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
24983 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
24984 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 24985 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 24986 property).
24987 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
24988 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
24989
33bf70a7 249902008-01-19 Robert Millan <rmh@aybabtu.com>
24991
fe6b695a 24992 Get rid of confusing function (superseded by
33bf70a7 24993 `grub_ieee1275_get_integer_property')
24994 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
24995 prototype.
24996 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
24997 function.
24998 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
24999 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 25000 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 25001
e2da7d26 250022008-01-19 Robert Millan <rmh@aybabtu.com>
25003
25004 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
25005 command after "shut-down", since implementations differ on which
25006 the command for halt is.
25007
59f1fd8d 250082008-01-19 Robert Millan <rmh@aybabtu.com>
25009
25010 * include/grub/i386/linuxbios/console.h: Add header protection.
25011 (grub_keyboard_controller_init): New function prototype.
25012 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
25013 (KEYBOARD_COMMAND_READ): Likewise.
25014 (KEYBOARD_COMMAND_WRITE): Likewise.
25015 (KEYBOARD_SCANCODE_SET1): Likewise.
25016 (grub_keyboard_controller_write): New function.
25017 (grub_keyboard_controller_read): Likewise.
25018 (grub_keyboard_controller_init): Likewise.
25019
25020 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
25021 (grub_console_init): On coreboot/LinuxBIOS, call
25022 grub_keyboard_controller_init().
25023
5f5a7c15 250242008-01-19 Robert Millan <rmh@aybabtu.com>
25025
25026 PowerPC changes provided by Pavel Roskin.
25027
25028 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
25029 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
25030 don't rely on cmain() doing it.
25031 * kern/i386/ieee1275/startup.S (_start): Store %eax in
25032 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
25033
1210e168 250342008-01-16 Robert Millan <rmh@aybabtu.com>
25035
25036 * include/grub/i386/linuxbios/memory.h
25037 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
25038 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
25039 receive `table_header' as argument. Instead, probe for it in the
25040 known memory ranges where it can be present.
25041 (grub_available_iterate): Do not pass a fixed `table_header' address
25042 to grub_linuxbios_table_iterate().
25043
3d04eab8 250442008-01-15 Robert Millan <rmh@aybabtu.com>
25045
25046 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
25047 * conf/i386-ieee1275.rmk: New file.
25048 * include/grub/i386/ieee1275/console.h: Likewise.
25049 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
25050 * include/grub/i386/ieee1275/kernel.h: Likewise.
25051 * include/grub/i386/ieee1275/time.h: Likewise.
25052 * kern/i386/ieee1275/init.c: Likewise.
25053 * kern/i386/ieee1275/startup.S: Likewise.
25054
d1bc1b73 250552008-01-15 Robert Millan <rmh@aybabtu.com>
25056
25057 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
25058 when pointers are 32-bit (but still do set it to one when they are
25059 64-bit).
25060
66a65807 250612008-01-15 Robert Millan <rmh@aybabtu.com>
25062
25063 * include/grub/ieee1275/ieee1275.h
25064 (grub_ieee1275_get_integer_property): New function prototype.
25065
25066 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
25067 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 25068 grub_ieee1275_get_property() to handle endianness.
66a65807 25069
25070 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
25071 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 25072 where appropriate.
66a65807 25073 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
25074 (grub_map): Likewise.
25075 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
25076
a83ccafd 250772008-01-15 Bean <bean123ch@gmail.com>
25078
25079 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
25080 (grub_script_execute_cmdline): Reset grub_errno.
25081
25082 * normal/main.c (read_config_file): Reset grub_errno.
25083
25084 * normal/parse.y (script_init): New.
25085 (script): Move function and menuentry here.
25086 (delimiter): New.
25087 (command): Add delimiter at the end of command.
25088 (commands): Adjust to match the new command.
25089 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 25090 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 25091 (if): Use the new commands.
25092
25093 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
25094
df6ecfc6 250952008-01-15 Robert Millan <rmh@aybabtu.com>
25096
25097 * normal/menu.c (run_menu): Move timeout message from here ...
25098 (print_timeout): ... to here.
25099 (run_menu): Use print_timeout() once during initial draw to print
25100 the whole message, and again in every clock tick to update only
25101 the number of seconds.
25102
87ae25eb 251032008-01-15 Robert Millan <rmh@aybabtu.com>
25104
25105 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
25106 actual size of `available' from grub_ieee1275_get_property(), and
25107 restrict parsing to that bound.
25108
47bf09a4 251092008-01-15 Christian Franke <franke@computer.org>
25110
25111 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
25112 (argp_program_version): Remove variable.
25113 (argp_program_bug_address): Likewise.
25114 (options): Convert from struct argp_option to struct option.
25115 (struct arguments): Remove.
25116 (parse_opt): Remove.
25117 (usage): New function.
25118 (main): Replace struct args members by simple variables.
25119 Replace argp_parse() by getopt_long().
25120 Add switch to evaluate options.
25121 Add missing "(...)" around root_dev in prefix string.
25122
c86f1469 251232008-01-14 Robert Millan <rmh@aybabtu.com>
25124
25125 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
25126 for grub_ieee1275_exit(), in order to improve portability.
25127
e622c559 251282008-01-14 Robert Millan <rmh@aybabtu.com>
25129
25130 * util/grub.d/10_linux.in (prefix): Define.
25131 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
25132
44cb1ec8 251332008-01-13 Pavel Roskin <proski@gnu.org>
25134
25135 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
25136 grub_errno if no errors have been detected.
25137
1eb8c802 251382008-01-12 Robert Millan <rmh@aybabtu.com>
25139
25140 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
25141 (grub_util_get_dev_abstraction): New function prototype.
25142
25143 * util/getroot.c: Include `<grub/util/getroot.h>'
25144 (grub_util_get_grub_dev): Move detection of abstraction type to ...
25145 (grub_util_get_dev_abstraction): ... here (new function).
25146
25147 * util/grub-probe.c: Convert PRINT_* to an enum. Add
25148 `PRINT_ABSTRACTION'.
25149 (probe): Probe for abstraction type when requested.
25150 (main): Understand `--target=abstraction'.
25151
25152 * util/i386/efi/grub-install.in: Add abstraction module to core
25153 image when it is found to be necessary.
25154 * util/i386/pc/grub-install.in: Likewise.
25155 * util/powerpc/ieee1275/grub-install.in: Likewise.
25156
25157 * util/update-grub_lib.in (font_path): Return system path without
25158 converting to GRUB path.
25159 * util/update-grub.in: Convert system path returned by font_path()
25160 to a GRUB path. Use `grub-probe -t abstraction' to determine what
25161 abstraction module is needed for loading fonts (if any). Export
25162 that as `GRUB_PRELOAD_MODULES'.
25163 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
25164 insmod commands).
25165
52bd3de9 251662008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
25167
25168 Remove some unused code from reiserfs.
f19dbdb7 25169
52bd3de9 25170 * fs/reiserfs.c (struct grub_reiserfs_key)
25171 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
25172 (struct grub_reiserfs_node_body): Removed.
25173 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
25174 Likewise.
25175 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25176 Likewise.
25177 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25178 Likewise.
25179 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25180 Likewise.
25181 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
25182 Likewise.
25183 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
25184 Likewise.
25185 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25186 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25187 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25188
2f80039d 251892008-01-10 Robert Millan <rmh@aybabtu.com>
25190
25191 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
25192 Determines if a file is garbage left by packaging systems, etc.
25193 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
25194 for processing /etc/grub.d scripts.
25195 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
25196 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
25197 as a condition for processing Linux images.
25198
87888032 251992008-01-10 Pavel Roskin <proski@gnu.org>
25200
25201 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
25202 to compile reiserfs.c on PowerPC.
25203
7e54fced 252042008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 25205
25206 * kern/device.c (grub_device_iterate): Do not abort device iteration
25207 when one of the devices cannot be opened.
25208 * kern/disk.c (grub_disk_open): Do not account previous failures of
25209 unrelated functions when grub_errno is checked for.
25210
5aa541e6 252112008-01-08 Robert Millan <rmh@aybabtu.com>
25212
25213 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
25214 `! grub_linux_is_bzimage', change order of address comparison to make
25215 it more intuitive, and improve "too big zImage" error message.
25216
7076340d 252172008-01-08 Robert Millan <rmh@aybabtu.com>
25218
25219 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
25220 `$(update-grub_DATA)'.
25221 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
25222 targets.
25223
9ca70333 252242008-01-07 Robert Millan <rmh@aybabtu.com>
25225
25226 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
25227 which instruction is modified by grub-setup during installation
25228 (since it wasn't obvious by only looking at this file).
25229
38ccf575 252302008-01-07 Robert Millan <rmh@aybabtu.com>
25231
25232 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
25233 listing actual TODO items.
25234
f5db4291 252352008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25236
868967cf 25237 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
25238 correctly.
25239 (grub_reiserfs_get_key_offset): Likewise.
25240 (grub_reiserfs_set_key_offset): Likewise.
25241 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 25242 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 25243
25244 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
25245 better to remove the bitfield version completely.
f19dbdb7 25246
868967cf 252472008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 25248
f5db4291 25249 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
25250 allocated from the heap, due to the fshelp implementation.
25251 (grub_reiserfs_dir): Free NODE, due to the same reason.
25252
492e6d9d 252532008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25254
25255 Mostly from Vincent Pelletier:
f19dbdb7 25256
492e6d9d 25257 * fs/reiserfs.c: New file.
f19dbdb7 25258
492e6d9d 25259 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
25260 (reiserfs_mod_SOURCES): New variable.
25261 (reiserfs_mod_CFLAGS): Likewise.
25262 (reiserfs_mod_LDFLAGS): Likewise.
25263
25264 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
25265 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
25266 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
25267 normal/color.c.
25268
9ce3e7c1 252692008-01-06 Robert Millan <rmh@aybabtu.com>
25270
25271 * normal/color.c: Remove `<grub/env.h>'.
25272
f3b58148 252732008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
25274
25275 * include/grub/normal.h: Include <grub/env.h>.
25276
7ac3bcfa 252772008-01-05 Robert Millan <rmh@aybabtu.com>
25278
25279 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
25280 usage example with `(hd0,1)'.
fb358190 25281 Reported by Samuel Thibault.
7ac3bcfa 25282
c8ee99d7 252832008-01-05 Robert Millan <rmh@aybabtu.com>
25284
25285 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
25286 (grub_linux_boot_zimage): Rename to ...
25287 (grub_linux_boot): ... this.
25288 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
25289 (grub_linux_boot_zimage): Conditionalize zImage copy.
25290
25291 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
25292 (grub_linux_boot_bzimage): Remove prototype.
25293 (grub_linux_boot_zimage): Rename to ...
25294 (grub_linux_boot): ... this.
25295
25296 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
25297 (grub_linux_boot): Remove function.
25298
0ece25b1 252992008-01-05 Robert Millan <rmh@aybabtu.com>
25300
25301 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
25302 (grub_env_write_color_highlight): Likewise.
25303 (grub_wait_after_message): Likewise.
25304
25305 * normal/color.c: New file.
25306
25307 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25308 (normal_mod_DEPENDENCIES): Likewise.
25309
25310 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25311 (normal_mod_DEPENDENCIES): Likewise.
25312
25313 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25314 (normal_mod_DEPENDENCIES): Likewise.
25315
25316 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25317 (normal_mod_DEPENDENCIES): Likewise.
25318
25319 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
25320 for waiting after a message is printed.
25321 * normal/main.c (read_config_file): Likewise.
25322 (grub_normal_init): Register grub_env_write_color_normal() and
25323 grub_env_write_color_highlight() hooks. Mark `color_normal' and
25324 `color_highlight' variables as global.
25325
25326 * normal/menu.c (grub_wait_after_message): New function.
25327 (grub_color_menu_normal): New variable. Replaces ...
25328 (GRUB_COLOR_MENU_NORMAL): ... this macro.
25329 (grub_color_menu_highlight): New variable. Replaces ...
25330 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
25331 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
25332 `GRUB_TERM_COLOR_STANDARD'.
25333 (print_message): Use `grub_setcolorstate' to reload colors. Rename
25334 `normal_code' and `highlight_code' to `old_color_normal' and
25335 `old_color_highlight', respectively.
25336 (grub_menu_init_page): Update colors when drawing the menu, based on
25337 `menu_color_normal' and `menu_color_highlight' variables.
25338 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
25339 a message is printed.
25340
182dd4e5 253412008-01-05 Robert Millan <rmh@aybabtu.com>
25342
25343 * kern/env.c (grub_env_context_open): Propagate hooks for global
25344 variables to new context.
25345
25346 * kern/main.c (grub_set_root_dev): Export `root' variable.
25347
ddf8f6ad 253482008-01-05 Robert Millan <rmh@aybabtu.com>
25349
25350 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 25351 discs unconditionally, since udev and others have options to provide
ddf8f6ad 25352 them.
25353
d8b43d9b 253542008-01-05 Robert Millan <rmh@aybabtu.com>
25355
25356 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
25357
2bff2de3 253582008-01-04 Christian Franke <franke@computer.org>
25359
25360 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
25361 of eisa_mmap.
25362
97eab917 253632008-01-03 Pavel Roskin <proski@gnu.org>
25364
25365 * kern/i386/linuxbios/init.c: Put "void" to all function
25366 declarations with no arguments.
25367 * kern/powerpc/ieee1275/init.c: Likewise.
25368 * term/i386/pc/at_keyboard.c: Likewise.
25369 * term/i386/pc/vga_text.c: Likewise.
25370 * util/grub-mkdevicemap.c: Likewise.
25371
b9416d00 253722008-01-02 Robert Millan <rmh@aybabtu.com>
25373
25374 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
25375 message when loaded image is out of bounds.
25376 (grub_multiboot_load_elf64): Likewise.
25377
92695df9 253782008-01-02 Pavel Roskin <proski@gnu.org>
25379
25380 * util/grub.d/10_linux.in: Try version without ".old" when
25381 looking for initrd. It's better to use initrd from the newer
25382 kernel of the same version than no initrd at all.
25383
d98d9cad 253842008-01-01 Robert Millan <rmh@aybabtu.com>
25385
25386 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
25387
dbfdce36 253882008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
25389
f19dbdb7 25390 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 25391 grub_video_get_active_render_target.
25392 (grub_video_adapter): Added unmap_color and get_active_render_target.
25393
f19dbdb7 25394 * video/video.c: Added grub_video_unmap_color and
dbfdce36 25395 grub_video_get_active_render_target.
25396 (grub_video_get_info): Changed method to accept NULL pointer as an
25397 argument to allow detection of active video adapter.
25398
25399 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
25400 grub_video_vbe_unmap_color_int.
25401 Added grub_video_vbe_unmap_color and
25402 grub_video_vbe_get_active_render_target.
25403 (grub_video_vbe_adapter): Added unmap_color and
25404 get_active_render_target.
25405
f19dbdb7 25406 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 25407 with grub_video_vbe_unmap_color_int.
25408
25409 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
25410 (DEFAULT_NORMAL_COLOR): Likewise.
25411 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
25412 (DEFAULT_FG_COLOR): Removed.
25413 (DEFAULT_BG_COLOR): Likewise.
25414 (DEFAULT_CURSOR_COLOR): Changed value.
25415 (grub_virtual_screen): Added standard_color_setting,
25416 normal_color_setting, highlight_color_setting and term_color.
25417 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
25418 (bitmap_width): Added.
25419 (bitmap_height): Likewise.
25420 (bitmap): Likewise.
25421 (set_term_color): Likewise.
25422 (grub_virtual_screen_setup): Changed to use new terminal coloring
25423 settings.
25424 (grub_gfxterm_init): Added init for bitmap.
25425 (grub_gfxterm_fini): Added destroy for bitmap.
25426 (redraw_screen_rect): Updated to use background bitmap and new
25427 terminal coloring.
25428 (scroll_up): Added optimization for case when there is no bitmap.
25429 (grub_gfxterm_cls): Fixed to use correct background color.
25430 (grub_virtual_screen_setcolorstate): Changed to use new terminal
25431 coloring.
25432 (grub_virtual_screen_setcolor): Likewise.
25433 (grub_virtual_screen_getcolor): Added.
25434 (grub_gfxterm_background_image_cmd): Likewise.
25435 (grub_video_term): Added setcolor and getcolor.
25436 (MOD_INIT): Added registration of background_image command.
25437 (MOD_TERM): Added unregistration for background_image command.
25438
c3c20931 254392007-12-30 Pavel Roskin <proski@gnu.org>
25440
25441 * loader/multiboot_loader.c: Fix multiboot command
25442 unregistration. Fix all typos in the word "multiboot".
25443
df266716 254442007-12-29 Pavel Roskin <proski@gnu.org>
94239199 25445
25446 * util/grub.d/10_linux.in: Refactor search for initrd. Add
25447 support for initrd names used in Fedora.
25448
fc6e896c 254492007-12-26 Bean <bean123ch@gmail.com>
25450
25451 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
25452 (cpio_mod_SOURCES): New variable.
25453 (cpio_mod_CFLAGS): Likewise.
25454 (cpio_mod_LDFLAGS): Likewise.
25455
25456 * fs/cpio.c: New file.
25457
25458 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
25459
25460 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25461
25462 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25463
25464 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25465
533110ad 254662007-12-25 Robert Millan <rmh@aybabtu.com>
25467
25468 * include/grub/term.h (struct grub_term): Add `getcolor' function.
25469 (grub_getcolor): New function.
25470
25471 * kern/term.c (grub_getcolor): New function.
25472 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
25473 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
25474 (print_entry): Set normal and highlight colors to
25475 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
25476 respectively, before printing and restore them to old
25477 values afterwards.
25478 (grub_menu_init_page): Likewise. Fill an additional colored space
25479 that would otherwise be left blank.
25480
25481 * term/efi/console.c (grub_console_getcolor): New function.
25482 (struct grub_console_term.getcolor): New variable.
25483 * term/i386/pc/console.c (grub_console_getcolor): New function.
25484 (struct grub_console_term.getcolor): New variable.
25485 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
25486 (struct grub_console_term.getcolor): New variable.
25487
25488 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
25489 (struct grub_console_term.setcolor): Remove variable.
25490 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
25491 (struct grub_console_term.setcolor): Remove variable.
25492 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
25493 (struct grub_console_term.setcolor): Remove variable.
25494 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
25495 (struct grub_console_term.setcolor): Remove variable.
25496
4931827f 254972007-12-25 Robert Millan <rmh@aybabtu.com>
25498
25499 * configure.ac: Search for possible unifont.hex locations, and
25500 define UNIFONT_HEX if found.
25501
25502 * Makefile.in (UNIFONT_HEX): Define variable.
25503 (DATA): Rename to ...
25504 (PKGLIB): ... this. Update all users.
25505 (PKGDATA): New variable.
25506 (pkgdata_IMAGES): Rename to ...
25507 (pkglib_IMAGES): ... this. Update all users.
25508 (pkgdata_MODULES): Rename to ...
25509 (pkglib_MODULES): ... this. Update all users.
25510 (pkgdata_PROGRAMS): Rename to ...
25511 (pkglib_PROGRAMS): ... this. Update all users.
25512 (pkgdata_DATA): Rename to ...
25513 (pkglib_DATA): ... this. Update all users.
25514 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
25515 (unicode.pff, ascii.pff): New rules.
25516 (all-local): Add `$(PKGDATA)' dependency.
25517 (install-local): Process `$(PKGDATA)'.
25518
25519 * util/update-grub_lib.in (font_path): Search for *.pff files in
25520 a few more locations, including `${pkgdata}'.
25521
57e57e31 255222007-12-23 Robert Millan <rmh@aybabtu.com>
25523
25524 Patch from Bean <bean123ch@gmail.com>:
25525 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
25526 `size'.
25527
4bc72aa9 255282007-12-21 Bean <bean123ch@gmail.com>
25529
25530 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
25531 (ntfscomp_mod_SOURCES): New variable.
25532 (ntfscomp_mod_CFLAGS): Likewise.
25533 (ntfscomp_mod_LDFLAGS): Likewise.
25534
25535 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
25536 (grub_probe_SOURCES): Likewise.
25537 (grub_emu_SOURCES): Likewise.
25538
25539 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25540 (grub_emu_SOURCES): Likewise.
25541
25542 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25543 (grub_emu_SOURCES): Likewise.
25544
25545 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25546 (grub_emu_SOURCES): Likewise.
25547
25548 * fs/ntfs.c (grub_ntfscomp_func): New variable.
25549 (read_run_list): Renamed to grub_ntfs_read_run_list.
25550 (decomp_nextvcn): Moved to ntfscomp.c.
25551 (decomp_getch): Likewise.
25552 (decomp_get16): Likewise.
25553 (decomp_block): Likewise.
25554 (read_block): Likewise.
25555 (read_data): Partially moved to ntfscomp.c.
25556 (fixup): Change unsigned to grub_uint16_t.
25557 (read_mft): Change unsigned long to grub_uint32_t.
25558 (read_attr): Likewise.
25559 (read_data): Likewise.
25560 (read_run_data): Likewise.
25561 (read_run_list): Likewise.
25562 (read_mft): Likewise.
25563
25564 * fs/ntfscomp.c: New file.
25565
25566 * include/grub/ntfs.h: New file.
25567
af680a87 255682007-12-16 Robert Millan <rmh@aybabtu.com>
25569
25570 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
25571 IDE disk check, since Linux is known to support 20 IDE disks.
25572 Reported by Colin Watson.
25573
84be7599 255742007-12-15 Bean <bean123ch@gmail.com>
25575
25576 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
25577 (lnxboot_img_SOURCES): New variable.
25578 (lnxboot_img_ASFLAGS): Likewise.
25579 (lnxboot_img_LDFLAGS): Likewise.
25580
25581 * boot/i386/pc/lnxboot.S: New file.
25582
6af9db01 255832007-11-24 Pavel Roskin <proski@gnu.org>
25584
25585 * configure.ac: Test if '--build-id=none' is supported by the
25586 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
25587 objcopy to generate incorrect binary files (binutils
25588 2.17.50.0.18-1 as shipped by Fedora 8).
25589 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
25590 linking, so that build ID doesn't break the test.
25591
7361cfe6 255922007-11-24 Pavel Roskin <proski@gnu.org>
25593
25594 * include/grub/i386/time.h: use "void" in the argument list
25595 of grub_cpu_idle().
25596 * include/grub/powerpc/time.h: Likewise.
25597 * include/grub/sparc64/time.h: Likewise.
25598
1593e10c 255992007-11-18 Christian Franke <franke@computer.org>
25600
25601 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
25602 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
25603 This fixes the problem that function keys did not work in grub-emu.
25604
3b8db1a8 256052007-11-18 Christian Franke <franke@computer.org>
25606
25607 * disk/host.c (grub_host_open): Remove attribute unused from
25608 name parameter. Add check for "host". This fixes the problem
25609 that grub-emu does not find partitions.
25610
2e29408d 256112007-11-18 Christian Franke <franke@computer.org>
25612
25613 * util/hostfs.c (is_dir): New function.
25614 (grub_hostfs_dir): Handle missing dirent.d_type case.
25615 (grub_hostfs_read): Add missing fseek().
25616 (grub_hostfs_label): Clear label pointer. This fixes a crash
25617 of grub-emu on "ls (host)".
25618
398cd047 256192007-11-18 Christian Franke <franke@computer.org>
25620
25621 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
25622 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
25623 to 64 bit boundary by default.
25624
c405c391 256252007-11-18 Bean <bean123ch@gmail.com>
25626
25627 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
25628 (hexdump_mod_SOURCES): New variable.
25629 (hexdump_mod_CFLAGS): Likewise.
25630 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 25631
c405c391 25632 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25633
25634 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25635
25636 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25637
25638 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25639
25640 * include/grub/hexdump.h: New file.
25641
25642 * commands/hexdump.c: New file.
25643
5cced7fd 256442007-11-10 Robert Millan <rmh@aybabtu.com>
25645
25646 * commands/i386/pc/play.c (beep_off): Switch order of arguments
25647 in grub_outb() calls.
25648 (beep_on): Likewise.
25649
8b714eb0 256502007-11-10 Christian Franke <franke@computer.org>
25651
25652 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
25653 (grub_menu_run): Likewise.
25654
ce0f1839 256552007-11-10 Robert Millan <rmh@aybabtu.com>
25656
25657 * include/grub/i386/efi/machine.h: New file.
25658 * include/grub/i386/linuxbios/machine.h: Likewise.
25659 * include/grub/i386/pc/machine.h: Likewise.
25660 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25661 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25662
25663 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
25664 (serial_hw_io_addr): New variable.
25665 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
25666 instead of `(unsigned short *) 0x400'.
25667
270c237d 256682007-11-10 Bean <bean123ch@gmail.com>
25669
25670 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
25671
a87783bf 256722007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25673
25674 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
25675 (vga_mod_SOURCES): Added.
25676 (vga_mod_CFLAGS): Likewise.
25677 (vga_mod_LDFLAGS): Likewise.
25678
25679 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
25680 grub_outb() calls.
25681 (set_map_mask): Likewise.
25682 (set_read_map): Likewise.
25683 (set_read_address): Likewise.
25684 (vga_font): Removed variable.
25685 (get_vga_glyph): Removed function.
25686 (invalidate_char): Likewise.
25687 (write_char): Changed to use grub_font_get_glyph() for font
25688 information.
25689 (grub_vga_putchar): Likewise.
25690 (grub_vga_getcharwidth): Likewise.
25691
6433b448 256922007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25693
25694 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
25695 flags.
25696 (pxeboot_img_LDFLAGS): Likewise.
25697 (diskboot_img_LDFLAGS): Likewise.
25698 (kernel_img_LDFLAGS): Likewise.
25699
49178511 257002007-11-06 Robert Millan <rmh@aybabtu.com>
25701
25702 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
25703 in grub_outb() calls.
25704 (serial_hw_init): Likewise.
25705
53b052de 257062007-11-05 Robert Millan <rmh@aybabtu.com>
25707
25708 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
25709 spaces. Skip non-regular files.
25710
5ab33bba 257112007-11-05 Robert Millan <rmh@aybabtu.com>
25712
25713 * kern/disk.c (grub_disk_firmware_fini)
25714 (grub_disk_firmware_is_tainted): New variables.
25715
25716 * include/grub/disk.h (grub_disk_firmware_fini)
25717 (grub_disk_firmware_is_tainted): Likewise.
25718
25719 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
25720 (grub_disk_biosdisk_fini): ... to here.
25721 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
25722 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
25723 is set. Register grub_disk_biosdisk_fini() in
25724 `grub_disk_firmware_fini'.
25725
25726 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
25727 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
25728 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
25729 to finish existing firmware disk interface.
25730
25731 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
25732 (ata_mod_SOURCES): New variable.
25733 (ata_mod_CFLAGS): Likewise.
25734 (ata_mod_LDFLAGS): Likewise.
25735
0149ab7c 257362007-11-05 Robert Millan <rmh@aybabtu.com>
25737
25738 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
25739 (grub_ata_wait): Reimplement using grub_millisleep().
25740
25741 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
25742 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
25743
be7ac41e 257442007-11-03 Marco Gerards <marco@gnu.org>
25745
25746 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
25747 (CRTC_ADDR_PORT): New macro.
25748 (CRTC_DATA_PORT): Likewise.
25749 (CRTC_CURSOR): Likewise.
25750 (CRTC_CURSOR_ADDR_HIGH): Likewise.
25751 (CRTC_CURSOR_ADDR_LOW): Likewise.
25752 (update_cursor): New function.
25753 (grub_console_real_putchar): Call `update_cursor'.
25754 (grub_console_gotoxy): Likewise.
25755 (grub_console_cls): Set the default color when clearing the
25756 screen.
25757 (grub_console_setcursor): Implemented.
25758
bb06ab2e 257592007-11-03 Marco Gerards <marco@gnu.org>
25760
25761 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
25762 become activate.
25763 (grub_ata_pio_write): Likewise.
25764
25765 (grub_atapi_identify): Wait after issuing an ATA command.
25766 (grub_atapi_packet): Likewise.
25767 (grub_ata_identify): Likewise.
25768 (grub_ata_readwrite): Likewise.
25769
cf8f780b 257702007-11-03 Marco Gerards <marco@gnu.org>
25771
25772 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
25773 (grub_ata_pio_write): Likewise.
25774 (grub_ata_readwrite): Use `grub_error', instead of
25775 returning `grub_errno'.
25776
ed649e54 257772007-11-03 Marco Gerards <marco@gnu.org>
25778
25779 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
25780 grub_ata_pio_write once for every single sector, instead of for
25781 multiple sectors.
25782
ca25d8f0 257832007-10-31 Robert Millan <rmh@aybabtu.com>
25784
25785 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
25786
25787 * conf/i386-linuxbios.rmk: New file.
25788
25789 * kern/i386/pc/hardware.c: Likewise.
25790 * term/i386/pc/at_keyboard.c: Likewise.
25791 * term/i386/pc/vga_text.c: Likewise.
25792
25793 * include/grub/i386/linuxbios/boot.h: Likewise.
25794 * include/grub/i386/linuxbios/console.h: Likewise.
25795 * include/grub/i386/linuxbios/init.h: Likewise.
25796 * include/grub/i386/linuxbios/kernel.h: Likewise.
25797 * include/grub/i386/linuxbios/loader.h: Likewise.
25798 * include/grub/i386/linuxbios/memory.h: Likewise.
25799 * include/grub/i386/linuxbios/serial.h: Likewise.
25800 * include/grub/i386/linuxbios/time.h: Likewise.
25801
25802 * kern/i386/linuxbios/init.c: Likewise.
25803 * kern/i386/linuxbios/startup.S: Likewise.
25804 * kern/i386/linuxbios/table.c: Likewise.
25805
e911ecc1 258062007-10-31 Marco Gerards <marco@gnu.org>
25807
25808 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
25809 (ata_mod_SOURCES): New variable.
25810 (ata_mod_CFLAGS): Likewise.
25811 (ata_mod_LDFLAGS): Likewise.
25812
25813 * disk/ata.c: New file.
25814
25815 * include/grub/disk.h (grub_disk_dev_id): Add
25816 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 25817
7f66d0e0 258182007-10-31 Robert Millan <rmh@aybabtu.com>
25819
25820 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
25821 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
25822
25823 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
25824 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
25825
25826 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
25827 `<grub/types.h>'.
25828
25829 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
25830
5cd7dd46 258312007-10-27 Robert Millan <rmh@aybabtu.com>
25832
3236ca65 25833 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 25834
2ebfc90f 258352007-10-22 Robert Millan <rmh@aybabtu.com>
25836
25837 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
25838 `"../realmode.S"'.
25839 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
25840
73fcb0f3 258412007-10-22 Robert Millan <rmh@aybabtu.com>
25842
25843 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
25844 (pkgdata_MODULES): Add `biosdisk.mod'.
25845 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
25846 variables.
25847
25848 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
25849 (grub_biosdisk_init): Replace with ...
25850 (GRUB_MOD_INIT(biosdisk)): ... this.
25851 (grub_biosdisk_fini): Replace with ...
25852 (GRUB_MOD_FINI(biosdisk)): ... this.
25853
25854 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
25855 (grub_machine_init): Remove call to grub_biosdisk_init().
25856 (grub_machine_fini): Remove call to grub_machine_fini().
25857
25858 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
25859
3381d274 258602007-10-22 Robert Millan <rmh@aybabtu.com>
25861
25862 * include/grub/time.h: New file.
25863 * include/grub/i386/time.h: Likewise.
25864 * include/grub/powerpc/time.h: Likewise.
25865 * include/grub/sparc64/time.h: Likewise.
25866
25867 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
25868 instances to ...
25869 (KERNEL_MACHINE_TIME_HEADER): ... this.
25870 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25871 instances to ...
25872 (KERNEL_MACHINE_TIME_HEADER): ... this.
25873 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25874 instances to ...
25875 (KERNEL_MACHINE_TIME_HEADER): ... this.
25876
25877 * kern/i386/efi/init.c: Include `<grub/time.h>'.
25878 (grub_millisleep): New function.
25879 * kern/i386/pc/init.c: Include `<grub/time.h>'.
25880 (grub_millisleep): New function.
25881 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
25882 Remove `grub/machine/time.h' include.
25883 (grub_millisleep): New function.
25884 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
25885 Remove `grub/machine/time.h' include.
25886 (grub_millisleep): New function.
25887
25888 * include/grub/misc.h (grub_div_roundup): New function.
25889
25890 * kern/misc.c: Include `<grub/time.h>'.
25891 (grub_millisleep_generic): New function.
25892
25893 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
25894 Add `time.h'.
25895 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
25896 Add `time.h'.
25897 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
25898 `machine/time.h'. Add `time.h'.
25899 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25900
a39a0312 259012007-10-21 Robert Millan <rmh@aybabtu.com>
25902
25903 * include/grub/misc.h (grub_max): New function.
25904
2aad70e2 259052007-10-21 Robert Millan <rmh@aybabtu.com>
25906
25907 * util/misc.c (grub_util_info): Call fflush() before returning.
25908
54b71c4b 259092007-10-20 Robert Millan <rmh@aybabtu.com>
25910
25911 * genmk.rb (Image): Copy `extra_flags' from here ...
25912 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
25913
25914 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
25915 to `argc' and `args' arguments.
25916
a979f513 259172007-10-17 Robert Millan <rmh@aybabtu.com>
25918
25919 * kern/i386/loader.S: New file.
25920
25921 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
25922 * kern/i386/loader.S (grub_linux_prot_size)... to here.
25923 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
25924 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
25925 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
25926 * kern/i386/loader.S (grub_linux_real_addr)... to here.
25927 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
25928 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
25929 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
25930 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
25931 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
25932 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
25933 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
25934 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
25935
25936 * kern/i386/realmode.S: New file.
25937
25938 * kern/i386/pc/startup.S (protstack): Moved from here ...
25939 * kern/i386/realmode.S (protstack)... to here.
25940 * kern/i386/pc/startup.S (gdt): Moved from here ...
25941 * kern/i386/realmode.S (gdt)... to here.
25942 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
25943 * kern/i386/realmode.S (prot_to_real)... to here.
25944
25945 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
25946 `kern/i386/realmode.S'.
25947
825fc8fd 259482007-10-17 Robert Millan <rmh@aybabtu.com>
25949
25950 * include/grub/i386/loader.h: New file.
25951
25952 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
25953 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25954 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25955 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25956 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
25957 * include/grub/i386/loader.h (grub_linux_prot_size)
25958 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25959 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25960 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25961 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
25962
25963 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
25964
e179b2f4 259652007-10-15 Robert Millan <rmh@aybabtu.com>
25966
25967 * normal/misc.c (grub_normal_print_device_info): Do not probe for
25968 filesystem when dev->disk is unset.
25969 Do probe for filesystem even when dev->disk->has_partitions is set.
25970 In case a filesystem is found, always report it.
25971 In case it isn't, if dev->disk->has_partitions is set, report that
25972 a partition table was found instead of reporting that no filesystem
25973 could be identified.
25974
5db82af6 259752007-10-12 Robert Millan <rmh@aybabtu.com>
25976
25977 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
25978 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
25979
68f6ac74 25980 * include/grub/types.h (grub_host_to_target16): New macro.
25981 (grub_host_to_target32): Likewise.
25982 (grub_host_to_target64): Likewise.
25983 (grub_target_to_host16): Likewise.
25984 (grub_target_to_host32): Likewise.
25985 (grub_target_to_host64): Likewise.
5db82af6 25986
25987 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
25988 Renamed from to ...
25989 (GRUB_MOD_ALIGN): ...this. Update all users.
25990
68f6ac74 25991 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
25992 grub_host_to_target32.
25993 Replace grub_be_to_cpu32 with grub_target_to_host32.
25994 (load_modules): Likewise.
25995 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
25996 Replace grub_be_to_cpu32 with grub_target_to_host32.
25997 Replace grub_cpu_to_be16 with grub_host_to_target16.
25998 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 25999
3cf497cc 260002007-10-12 Robert Millan <rmh@aybabtu.com>
26001
26002 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
26003 * util/elf/grub-mkimage.c: ... here.
26004
26005 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
26006 `util/powerpc/ieee1275/grub-mkimage.c'.
26007
c8cc3692 260082007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 26009
c8cc3692 26010 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
26011 and make it easier to figure out.
26012 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
26013 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
26014 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
26015 leave us with less than HEAP_MIN_SIZE total heap.
26016 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 26017
5c58b791 260182007-10-03 Robert Millan <rmh@aybabtu.com>
26019
26020 * include/grub/i386/io.h: New file.
26021 * commands/i386/pc/play.c (inb): Removed.
26022 (outb): Removed.
26023 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26024 with grub_outb().
afcd2ef8 26025 * term/i386/pc/serial.c (inb): Removed.
26026 (outb): Removed.
26027 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26028 with grub_outb().
26029 * term/i386/pc/vga.c (inb): Removed.
26030 (outb): Removed.
26031 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26032 with grub_outb().
5c58b791 26033
1a477ed6 260342007-10-02 Robert Millan <rmh@aybabtu.com>
26035
26036 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
26037 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26038 Reported by Marcin Kurek.
26039
6b5d80fa 260402007-09-07 Robert Millan <rmh@aybabtu.com>
26041
26042 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
26043 SmartFirmware version updates (as released by Sven Luther), and avoid
26044 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
26045 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
26046 known broken.
26047
5618afbf 260482007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26049
26050 From Hitoshi Ozeki:
26051 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
26052 when merging two regions.
26053
6139dcd9 260542007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26055
508e39ee 26056 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
26057 * normal/completion.c (grub_normal_do_completion): Likewise.
26058 Reported by Hitoshi Ozeki.
26059
260602007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 26061
6139dcd9 26062 Do not use devices at boot in chainloading.
f19dbdb7 26063
6139dcd9 26064 * loader/i386/pc/chainloader.c (boot_drive): New variable.
26065 (boot_part_addr): Likewise.
26066 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
26067 with BOOT_DRIVE and BOOT_PART_ADDR.
26068 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
26069 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
26070
38da6516 260712007-08-29 Robert Millan <rmh@aybabtu.com>
26072
26073 Patch from Simon Peter <dn.tlp@gmx.net>:
26074 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
26075 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
26076 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
26077 util/i386/pc/grub-setup.c_DEPENDENCIES.
26078 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
26079 util/grub-probe.c_DEPENDENCIES.
26080 * conf/powerpc-ieee1275.rmk: Likewise.
26081
29d0928c 260822007-08-28 Robert Millan <rmh@aybabtu.com>
26083
26084 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
26085 to tell grub-mkdevicemap how to name devices.
26086 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
26087 feature).
26088
26089 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
26090 util/i386/get_disk_name.c.
26091 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
26092 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
26093 util/ieee1275/get_disk_name.c.
26094
26095 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
26096
26097 * DISTLIST: Add util/i386/get_disk_name.c and
26098 util/ieee1275/get_disk_name.c.
26099
26100 * util/grub-mkdevicemap.c: Replace device naming logic with
26101 grub_util_get_disk_name() calls.
26102
5a0d3cca 261032007-08-20 Robert Millan <rmh@aybabtu.com>
26104
26105 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
26106 (so that it works for both plural and singular quantities).
26107
8b72db2f 261082007-08-05 Robert Millan <rmh@aybabtu.com>
26109
26110 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
26111 so that [xz] isn't taken into account when determining order.
26112
352466bf 261132007-08-02 Marco Gerards <marco@gnu.org>
26114
26115 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
26116 `include/multiboot2.h', `include/grub/elfload.h',
26117 `include/multiboot.h', `include/grub/multiboot.h',
26118 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
26119 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
26120 `kern/elf.c', `loader/multiboot_loader.c',
26121 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
26122 `loader/i386/pc/multiboot2.c',
26123 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
26124 `util/i386/pc/grub-mkrescue.in'. Remove
26125 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
26126 `include/grub/i386/pc/util/biosdisk.h' and
26127 `include/grub/powerpc/ieee1275/multiboot.h'.
26128
8f096014 261292007-08-02 Bean <bean123ch@gmail.com>
26130
26131 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
26132 (ntfs_mod_SOURCES): New variable.
26133 (ntfs_mod_CFLAGS): Likewise.
26134 (ntfs_mod_LDFLAGS): Likewise.
26135
26136 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
26137 (grub_probe_SOURCES): Likewise.
26138 (grub_emu_SOURCES): Likewise.
26139
26140 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
26141 (grub_emu_SOURCES): Likewise.
26142
26143 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
26144 (grub_emu_SOURCES): Likewise.
f19dbdb7 26145
8f096014 26146 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
26147
26148 * fs/ntfs.c: New file.
26149
9959f7db 261502007-08-02 Bean <bean123ch@gmail.com>
26151
26152 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
26153
26154 * file.h (grub_file): Likewise.
26155
26156 * fshelp.h (grub_fshelp_read_file): Likewise.
26157
26158 * util/i386/pc/grub-setup.c (setup): Likewise.
26159 (save_first_sector): Likewise.
26160 (save_blocklists): Likewise.
f19dbdb7 26161
9959f7db 26162 * fs/affs.c (grub_affs_read_file): Likewise.
26163
26164 * fs/ext2.c (grub_ext2_read_file): Likewise.
26165
26166 * fs/fat.c (grub_fat_read_data): Likewise.
26167
26168 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
26169
26170 * fs/hfs.c (grub_hfs_read_file): Likewise.
26171
26172 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
26173
26174 * fs/jfs.c (grub_jfs_read_file): Likewise.
26175
26176 * fs/minix.c (grub_minix_read_file): Likewise.
26177
26178 * fs/sfs.c (grub_sfs_read_file): Likewise.
26179
26180 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 26181
9959f7db 26182 * fs/xfs.c (grub_xfs_read_file): Likewise.
26183
26184 * command/blocklist.c (read_blocklist): Likewise.
26185 (print_blocklist): Likewise.
26186
0a203f83 261872007-08-02 Marco Gerards <marco@gnu.org>
26188
26189 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
26190 `util/hostfs.c'.
26191
26192 * disk/host.c: New file.
26193
26194 * util/hostfs.c: Likewise.
26195
26196 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
26197 return `GRUB_ERR_BAD_FS'.
26198 * fs/sfs.c (grub_sfs_mount): Likewise.
26199 * fs/xfs.c (grub_xfs_mount): Likewise.
26200
26201 * include/grub/disk.h (enum grub_disk_dev_id): Add
26202 `GRUB_DISK_DEVICE_HOST_ID'.
26203
26204 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
26205
e5dfe777 262062007-07-24 Jerone Young <jerone@gmail.com>
26207
f19dbdb7 26208 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 26209 modules for compilation.
26210 * conf/powerpc-ieee1275.rmk: Likewise.
26211
26212 * include/multiboot.h: Move multiboot definitions to one file. Rename
26213 many definitions to not get grub specific.
26214 * include/multiboot2.h: Create header with multiboot 2 definitions.
26215 * include/grub/multiboot.h: Header for grub specific function
26216 prototypes and definitions.
26217 * include/grub/multiboot2.h: Likewise.
26218 * include/grub/multiboot_loader.h: Likewise.
26219 * include/grub/i386/pc/multiboot.h: Removed.
26220 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
26221
26222 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
26223 and 2 to allow for one multiboot and module commands.
26224 * loader/multiboot2.c: Add multiboot2 functionality.
26225 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
26226 and definition names.
26227 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
26228 2 functions.
26229 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
26230 ieee1275 specific multiboot2 code.
26231
26232 * kern/i386/pc/startup.S: Change headers and definition names for
26233 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
26234
daf0f0ba 262352007-07-22 Robert Millan <rmh@aybabtu.com>
26236
26237 * geninitheader.sh: Process file specified in first parameter rather
26238 than hardcoding grub_modules_init.lst.
fe6b695a 26239 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 26240 than hardcoding grub_modules_init.h.
26241
26242 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
26243 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
26244 grub_probe_init.[ch] and grub_setup_init.[ch].
26245
26246 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
26247 grub_modules_init.h with grub_emu_init.h.
26248 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
26249 grub_probe_init.[ch] files.
26250 * conf/i386-efi.rmk: Likewise.
26251 * conf/i386-pc.rmk: Likewise.
26252 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
26253 grub_setup_init.[ch] files.
26254
26255 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
26256 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
26257 to initialize modules rather than a list of hardcoded functions.
26258 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
26259 grub_init_all() to initialize modules rather than a list of hardcoded
26260 functions.
26261
54cdc1cc 262622007-07-22 Robert Millan <rmh@aybabtu.com>
26263
26264 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
26265 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
26266
ad0686cc 262672007-07-22 Robert Millan <rmh@aybabtu.com>
26268
26269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
26270 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
26271 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
26272 flag when running on SmartFirmware.
26273 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
26274 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
26275 was set.
26276
26277 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
26278 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
26279 rather than decreasing it.
26280
26281 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
26282 there's not enough space to do it, fail in the same way as when it
26283 can't be done because there are no partitions.
26284
26285 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
26286 when nvsetenv failed.
26287
969c02ec 262882007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
26289
26290 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
26291 because this rule is automatically generated.
26292 (grub-mkrescue): Removed for the same reason as above.
26293
5a79f472 262942007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
26295
26296 Migrate to GNU General Public License Version 3.
f19dbdb7 26297
5a79f472 26298 * COPYING: Replaced with the plain text version of GPLv3.
26299
26300 * config.guess: Updated from gnulib.
26301 * config.sub: Likewise.
26302
26303 * geninit.sh: Output a GPLv3 copyright notice.
26304 * geninitheader.sh: Likewise.
26305 * genmodsrc.sh: Likewise.
26306 * gensymlist.sh.in: Likewise.
26307
26308 * boot/i386/pc/boot.S: Upgraded to GPLv3.
26309 * boot/i386/pc/diskboot.S: Likewise.
26310 * boot/i386/pc/pxeboot.S: Likewise.
26311 * commands/blocklist.c: Likewise.
26312 * commands/boot.c: Likewise.
26313 * commands/cat.c: Likewise.
26314 * commands/cmp.c: Likewise.
26315 * commands/configfile.c: Likewise.
26316 * commands/echo.c: Likewise.
26317 * commands/help.c: Likewise.
26318 * commands/ls.c: Likewise.
26319 * commands/search.c: Likewise.
26320 * commands/terminal.c: Likewise.
26321 * commands/test.c: Likewise.
26322 * commands/videotest.c: Likewise.
26323 * commands/i386/cpuid.c: Likewise.
26324 * commands/i386/pc/halt.c: Likewise.
26325 * commands/i386/pc/play.c: Likewise.
26326 * commands/i386/pc/reboot.c: Likewise.
26327 * commands/i386/pc/vbeinfo.c: Likewise.
26328 * commands/i386/pc/vbetest.c: Likewise.
26329 * commands/ieee1275/halt.c: Likewise.
26330 * commands/ieee1275/reboot.c: Likewise.
26331 * commands/ieee1275/suspend.c: Likewise.
26332 * disk/loopback.c: Likewise.
26333 * disk/lvm.c: Likewise.
26334 * disk/raid.c: Likewise.
26335 * disk/efi/efidisk.c: Likewise.
26336 * disk/i386/pc/biosdisk.c: Likewise.
26337 * disk/ieee1275/ofdisk.c: Likewise.
26338 * font/manager.c: Likewise.
26339 * fs/affs.c: Likewise.
26340 * fs/ext2.c: Likewise.
26341 * fs/fat.c: Likewise.
26342 * fs/fshelp.c: Likewise.
26343 * fs/hfs.c: Likewise.
26344 * fs/hfsplus.c: Likewise.
26345 * fs/iso9660.c: Likewise.
26346 * fs/jfs.c: Likewise.
26347 * fs/minix.c: Likewise.
26348 * fs/sfs.c: Likewise.
26349 * fs/ufs.c: Likewise.
26350 * fs/xfs.c: Likewise.
26351 * hello/hello.c: Likewise.
26352 * include/grub/acorn_filecore.h: Likewise.
26353 * include/grub/arg.h: Likewise.
26354 * include/grub/bitmap.h: Likewise.
26355 * include/grub/boot.h: Likewise.
26356 * include/grub/cache.h: Likewise.
26357 * include/grub/device.h: Likewise.
26358 * include/grub/disk.h: Likewise.
26359 * include/grub/dl.h: Likewise.
26360 * include/grub/elfload.h: Likewise.
26361 * include/grub/env.h: Likewise.
26362 * include/grub/err.h: Likewise.
26363 * include/grub/file.h: Likewise.
26364 * include/grub/font.h: Likewise.
26365 * include/grub/fs.h: Likewise.
26366 * include/grub/fshelp.h: Likewise.
26367 * include/grub/gzio.h: Likewise.
26368 * include/grub/hfs.h: Likewise.
26369 * include/grub/kernel.h: Likewise.
26370 * include/grub/loader.h: Likewise.
26371 * include/grub/lvm.h: Likewise.
26372 * include/grub/misc.h: Likewise.
26373 * include/grub/mm.h: Likewise.
26374 * include/grub/net.h: Likewise.
26375 * include/grub/normal.h: Likewise.
26376 * include/grub/parser.h: Likewise.
26377 * include/grub/partition.h: Likewise.
26378 * include/grub/pc_partition.h: Likewise.
26379 * include/grub/raid.h: Likewise.
26380 * include/grub/rescue.h: Likewise.
26381 * include/grub/script.h: Likewise.
26382 * include/grub/setjmp.h: Likewise.
26383 * include/grub/symbol.h: Likewise.
26384 * include/grub/term.h: Likewise.
26385 * include/grub/terminfo.h: Likewise.
26386 * include/grub/tparm.h: Likewise.
26387 * include/grub/types.h: Likewise.
26388 * include/grub/video.h: Likewise.
26389 * include/grub/efi/api.h: Likewise.
26390 * include/grub/efi/chainloader.h: Likewise.
26391 * include/grub/efi/console.h: Likewise.
26392 * include/grub/efi/console_control.h: Likewise.
26393 * include/grub/efi/disk.h: Likewise.
26394 * include/grub/efi/efi.h: Likewise.
26395 * include/grub/efi/pe32.h: Likewise.
26396 * include/grub/efi/time.h: Likewise.
26397 * include/grub/i386/linux.h: Likewise.
26398 * include/grub/i386/setjmp.h: Likewise.
26399 * include/grub/i386/types.h: Likewise.
26400 * include/grub/i386/efi/kernel.h: Likewise.
26401 * include/grub/i386/efi/loader.h: Likewise.
26402 * include/grub/i386/efi/time.h: Likewise.
26403 * include/grub/i386/pc/biosdisk.h: Likewise.
26404 * include/grub/i386/pc/boot.h: Likewise.
26405 * include/grub/i386/pc/chainloader.h: Likewise.
26406 * include/grub/i386/pc/console.h: Likewise.
26407 * include/grub/i386/pc/init.h: Likewise.
26408 * include/grub/i386/pc/kernel.h: Likewise.
26409 * include/grub/i386/pc/loader.h: Likewise.
26410 * include/grub/i386/pc/memory.h: Likewise.
26411 * include/grub/i386/pc/multiboot.h: Likewise.
26412 * include/grub/i386/pc/serial.h: Likewise.
26413 * include/grub/i386/pc/time.h: Likewise.
26414 * include/grub/i386/pc/vbe.h: Likewise.
26415 * include/grub/i386/pc/vbeblit.h: Likewise.
26416 * include/grub/i386/pc/vbefill.h: Likewise.
26417 * include/grub/i386/pc/vbeutil.h: Likewise.
26418 * include/grub/i386/pc/vga.h: Likewise.
26419 * include/grub/ieee1275/ieee1275.h: Likewise.
26420 * include/grub/ieee1275/ofdisk.h: Likewise.
26421 * include/grub/powerpc/libgcc.h: Likewise.
26422 * include/grub/powerpc/setjmp.h: Likewise.
26423 * include/grub/powerpc/types.h: Likewise.
26424 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
26425 * include/grub/powerpc/ieee1275/console.h: Likewise.
26426 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
26427 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26428 * include/grub/powerpc/ieee1275/loader.h: Likewise.
26429 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
26430 * include/grub/powerpc/ieee1275/time.h: Likewise.
26431 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
26432 * include/grub/sparc64/libgcc.h: Likewise.
26433 * include/grub/sparc64/setjmp.h: Likewise.
26434 * include/grub/sparc64/types.h: Likewise.
26435 * include/grub/sparc64/ieee1275/console.h: Likewise.
26436 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26437 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26438 * include/grub/sparc64/ieee1275/time.h: Likewise.
26439 * include/grub/util/biosdisk.h: Likewise.
26440 * include/grub/util/getroot.h: Likewise.
26441 * include/grub/util/lvm.h: Likewise.
26442 * include/grub/util/misc.h: Likewise.
26443 * include/grub/util/raid.h: Likewise.
26444 * include/grub/util/resolve.h: Likewise.
26445 * io/gzio.c: Likewise.
26446 * kern/device.c: Likewise.
26447 * kern/disk.c: Likewise.
26448 * kern/dl.c: Likewise.
26449 * kern/elf.c: Likewise.
26450 * kern/env.c: Likewise.
26451 * kern/err.c: Likewise.
26452 * kern/file.c: Likewise.
26453 * kern/fs.c: Likewise.
26454 * kern/loader.c: Likewise.
26455 * kern/main.c: Likewise.
26456 * kern/misc.c: Likewise.
26457 * kern/mm.c: Likewise.
26458 * kern/parser.c: Likewise.
26459 * kern/partition.c: Likewise.
26460 * kern/rescue.c: Likewise.
26461 * kern/term.c: Likewise.
26462 * kern/efi/efi.c: Likewise.
26463 * kern/efi/init.c: Likewise.
26464 * kern/efi/mm.c: Likewise.
26465 * kern/i386/dl.c: Likewise.
26466 * kern/i386/efi/init.c: Likewise.
26467 * kern/i386/efi/startup.S: Likewise.
26468 * kern/i386/pc/init.c: Likewise.
26469 * kern/i386/pc/lzo1x.S: Likewise.
26470 * kern/i386/pc/startup.S: Likewise.
26471 * kern/ieee1275/ieee1275.c: Likewise.
26472 * kern/powerpc/cache.S: Likewise.
26473 * kern/powerpc/dl.c: Likewise.
26474 * kern/powerpc/ieee1275/cmain.c: Likewise.
26475 * kern/powerpc/ieee1275/crt0.S: Likewise.
26476 * kern/powerpc/ieee1275/init.c: Likewise.
26477 * kern/powerpc/ieee1275/openfw.c: Likewise.
26478 * kern/sparc64/cache.S: Likewise.
26479 * kern/sparc64/dl.c: Likewise.
26480 * kern/sparc64/ieee1275/init.c: Likewise.
26481 * kern/sparc64/ieee1275/openfw.c: Likewise.
26482 * loader/efi/chainloader.c: Likewise.
26483 * loader/efi/chainloader_normal.c: Likewise.
26484 * loader/i386/efi/linux.c: Likewise.
26485 * loader/i386/efi/linux_normal.c: Likewise.
26486 * loader/i386/pc/chainloader.c: Likewise.
26487 * loader/i386/pc/chainloader_normal.c: Likewise.
26488 * loader/i386/pc/linux.c: Likewise.
26489 * loader/i386/pc/linux_normal.c: Likewise.
26490 * loader/i386/pc/multiboot.c: Likewise.
26491 * loader/i386/pc/multiboot_normal.c: Likewise.
26492 * loader/powerpc/ieee1275/linux.c: Likewise.
26493 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26494 * normal/arg.c: Likewise.
26495 * normal/cmdline.c: Likewise.
26496 * normal/command.c: Likewise.
26497 * normal/completion.c: Likewise.
26498 * normal/execute.c: Likewise.
26499 * normal/function.c: Likewise.
26500 * normal/lexer.c: Likewise.
26501 * normal/main.c: Likewise.
26502 * normal/menu.c: Likewise.
26503 * normal/menu_entry.c: Likewise.
26504 * normal/misc.c: Likewise.
26505 * normal/parser.y: Likewise.
26506 * normal/script.c: Likewise.
26507 * normal/i386/setjmp.S: Likewise.
26508 * normal/powerpc/setjmp.S: Likewise.
26509 * normal/sparc64/setjmp.S: Likewise.
26510 * partmap/acorn.c: Likewise.
26511 * partmap/amiga.c: Likewise.
26512 * partmap/apple.c: Likewise.
26513 * partmap/gpt.c: Likewise.
26514 * partmap/pc.c: Likewise.
26515 * partmap/sun.c: Likewise.
26516 * term/gfxterm.c: Likewise.
26517 * term/terminfo.c: Likewise.
26518 * term/efi/console.c: Likewise.
26519 * term/i386/pc/console.c: Likewise.
26520 * term/i386/pc/serial.c: Likewise.
26521 * term/i386/pc/vesafb.c: Likewise.
26522 * term/i386/pc/vga.c: Likewise.
26523 * term/ieee1275/ofconsole.c: Likewise.
26524 * util/biosdisk.c: Likewise.
26525 * util/console.c: Likewise.
26526 * util/genmoddep.c: Likewise.
26527 * util/getroot.c: Likewise.
26528 * util/grub-emu.c: Likewise.
26529 * util/grub-mkdevicemap.c: Likewise.
26530 * util/grub-probe.c: Likewise.
26531 * util/lvm.c: Likewise.
26532 * util/misc.c: Likewise.
26533 * util/raid.c: Likewise.
26534 * util/resolve.c: Likewise.
26535 * util/update-grub.in: Likewise.
26536 * util/update-grub_lib.in: Likewise.
26537 * util/grub.d/00_header.in: Likewise.
26538 * util/grub.d/10_hurd.in: Likewise.
26539 * util/grub.d/10_linux.in: Likewise.
26540 * util/i386/efi/grub-install.in: Likewise.
26541 * util/i386/efi/grub-mkimage.c: Likewise.
26542 * util/i386/pc/grub-install.in: Likewise.
26543 * util/i386/pc/grub-mkimage.c: Likewise.
26544 * util/i386/pc/grub-mkrescue.in: Likewise.
26545 * util/i386/pc/grub-setup.c: Likewise.
26546 * util/i386/pc/misc.c: Likewise.
26547 * util/powerpc/ieee1275/grub-install.in: Likewise.
26548 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
26549 * util/powerpc/ieee1275/misc.c: Likewise.
26550 * video/bitmap.c: Likewise.
26551 * video/video.c: Likewise.
26552 * video/i386/pc/vbe.c: Likewise.
26553 * video/i386/pc/vbeblit.c: Likewise.
26554 * video/i386/pc/vbefill.c: Likewise.
26555 * video/i386/pc/vbeutil.c: Likewise.
26556 * video/readers/tga.c: Likewise.
26557
3572d015 265582007-07-02 Robert Millan <rmh@aybabtu.com>
26559
26560 * conf/i386-efi.rmk: Replace obsolete reference to
26561 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
26562 with util/getroot.c.
26563 * conf/powerpc-ieee1275.rmk: Likewise.
26564 * conf/sparc64-ieee1275.rmk: Likewise.
26565
26566 * util/grub-emu.c (main): Fix unchecked pointer handling.
26567
2c2a681b 265682007-07-02 Robert Millan <rmh@aybabtu.com>
26569
26570 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
26571 invocation to fail, in order to support partition-less media.
26572
26573 * util/i386/pc/grub-install.in: Likewise.
26574
26575 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
26576 which fs or partmap modules are needed (akin to its sister scripts).
26577
26578 Also use grub-probe to get rid of unportable /proc/mounts check.
26579
26580 Print the same informational message that the other scripts do, before
fe6b695a 26581 exiting.
2c2a681b 26582
6193defe 265832007-06-23 Robert Millan <rmh@aybabtu.com>
26584
fe6b695a 26585 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 26586 a font file can be found and, if so, echo the GRUB path to it.
26587
26588 * util/update-grub.in: Handle multiple terminals depending on user
26589 input, platform availability and font file presence. Propagate
26590 variables of our findings to /etc/grub.d/ children.
26591
26592 * util/grub.d/00_header.in: Handle multiple terminals, based on
26593 environment setup by update-grub.
26594
eface1dc 265952007-06-23 Robert Millan <rmh@aybabtu.com>
26596
ba50d28f 26597 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 26598
bf697e28 265992007-06-21 Robert Millan <rmh@aybabtu.com>
26600
26601 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
26602 indicate end of data section in kernel image.
26603 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
26604 GRUB_KERNEL_MACHINE_DATA_END.
26605
26606 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
26607 space for it.
26608 * kern/i386/efi/startup.S: Likewise.
26609
26610 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
26611 during image generation. Implement --prefix option to override this
26612 patch.
26613 * util/i386/efi/grub-mkimage.c: Likewise.
26614
26615 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
26616 code to make path relative to its root into a separate function.
26617
26618 * util/i386/pc/grub-install.in: Use newly provided
26619 make_system_path_relative_to_its_root() to convert ${grubdir}, then
26620 pass the result to grub-install --prefix.
26621
baa574b4 266222007-06-13 Robert Millan <rmh@aybabtu.com>
26623
26624 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
26625 DEFAULT_DEVICE_MAP.
26626 * util/grub-emu.c: Use above definitions from misc.h instead of
26627 defining them.
26628 * util/grub-mkdevicemap.c: Likewise.
26629 * util/i386/pc/grub-setup.c: Likewise.
26630 * util/grub-probe.c: Likewise.
26631 (probe): Abort with grub_util_error() when either
26632 grub_guess_root_device or grub_util_get_grub_dev fails.
26633
0215dcbf 266342007-06-12 Robert Millan <rmh@aybabtu.com>
26635
26636 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
26637 "pager" assignment.
26638 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
26639 "pcdata".
26640 * util/grub-probe.c (probe): Likewise for "drive_name".
26641
8af2ab7b 266422007-06-11 Robert Millan <rmh@aybabtu.com>
26643
26644 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
26645 not just the cdrom one.
26646
59d31694 266472007-06-11 Robert Millan <rmh@aybabtu.com>
26648
26649 * util/i386/pc/grub-mkrescue.in: Add "set -e".
26650 Add --pkglibdir=DIR option to override pkglibdir.
26651 Mention --image-type=TYPE in help output.
26652 Fix --grub-mkimage (it was a no-op).
fe6b695a 26653 Abort gracefully when no parameter is given.
59d31694 26654
7ee367e4 266552007-06-11 Robert Millan <rmh@aybabtu.com>
26656
26657 * util/i386/pc/grub-mkrescue.in: New file.
26658 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
26659 * Makefile.in: Handle bin_SCRIPTS.
26660
29b0ed46 266612007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
26662
26663 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
26664 list of video modes.
26665
c0f90770 266662007-06-06 Robert Millan <rmh@aybabtu.com>
26667
26668 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
26669 file doesn't exist, or if it is in a filesystem grub can't read.
26670
26671 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
26672 not abort if GRUB_DRIVE could not be defined. Rearrange generated
26673 header comment to fit in 80 columns when the variables are resolved.
26674
26675 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
26676 could be identified by update-grub. Remove redundant check for
fe6b695a 26677 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 26678 handles that).
26679
fb36dc26 266802007-06-04 Robert Millan <rmh@aybabtu.com>
26681
26682 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
26683
26684 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
26685
26686 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
26687
0c68c93e 266882007-06-04 Robert Millan <rmh@aybabtu.com>
26689
26690 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
26691
26692 * include/grub/partition.h: Declare grub_apple_partition_map_init and
26693 grub_apple_partition_map_fini.
26694
26695 * util/biosdisk.c
26696 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
26697 to access >2 TiB disks).
26698
26699 Print disk->total_sectors with %llu instead of %lu, since this
26700 variable is always 64-bit (prevents wrong disk size from being displayed
26701 on either >2 TiB disk or big-endian CPU).
26702
26703 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
26704 into a generic case that supports all (sane) partition maps.
26705
26706 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
26707 breaks big-endian.
26708
26709 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
26710 and grub_apple_partition_map_fini() after that.
26711
0f23eb74 267122007-06-01 Robert Millan <rmh@aybabtu.com>
26713
26714 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
26715
26716 * util/grub.d/00_header.in: Only enable gfxterm when
26717 convert_system_path_to_grub_path() succeeds.
26718
42c71976 267192007-05-20 Robert Millan <rmh@aybabtu.com>
26720
26721 * util/update-grub_lib.in: New file.
26722 * DISTLIST: Add update-grub_lib.in.
26723 * conf/common.rmk: Generate update-grub_lib and install it in
26724 $(lib_DATA).
26725 * Makefile.in: Add install routine for $(lib_DATA).
26726
26727 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
26728 function provided by update-grub_lib to support arbitrary paths of
26729 unifont.pff.
26730 * util/update-grub.in: Use convert_system_path_to_grub_path() to
26731 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
26732
5beb2291 267332007-05-19 Robert Millan <rmh@aybabtu.com>
26734
26735 * commands/i386/cpuid.c: New module.
26736 * DISTLIST: Add it.
26737 * conf/i386-efi.rmk: Enable cpuid.mod.
26738 * conf/i386-pc.rmk: Likewise.
26739
7262eca1 267402007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26741
26742 * kern/disk.c (grub_disk_read): Check return value of
26743 grub_realloc().
26744
260ba823 267452007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26746
26747 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
26748 arrays.
26749 * disk/raid.c (grub_raid_open): Likewise.
26750
1ecb6cf2 267512007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26752
26753 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
26754 stack instead of on the heap.
26755
26756 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
26757 before doing a read on it.
26758
26759 * configure.ac: Only use -fno-stack-protector for the target
26760 environment.
f19dbdb7 26761
21c8cbb1 267622007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26763
26764 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
26765 __attribute_ ((unused)) to mode_type argument.
26766
26767 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 26768
21c8cbb1 26769 * kern/misc.c (memcmp): Fix prototype.
26770
26771 * include/grub/partition.h [GRUB_UTIL]
26772 (grub_gpt_partition_map_init): Add prototype.
26773 (grub_gpt_partition_map_fini): Likewise.
26774
26775 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
26776 at the right place.
26777
26778 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
26779 (grub_fat_read_data): Likewise.
26780 (grub_fat_find_dir): Likewise.
26781
26782 * font/manager.c (find_glyph): Make table a const.
26783 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 26784
849d55d3 267852007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
26786
26787 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
26788 code, first search for device in /dev/mapper, then in /dev.
26789 (grub_util_get_grub_dev): New function.
26790 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
26791 prototype.
26792 * util/grub-probe.c (probe): Remove check for RAID, call
26793 grub_util_get_grub_dev() instead of
26794 grub_util_biosdisk_get_grub_dev().
26795 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
26796 grub_util_biosdisk_get_grub_dev().
26797 * util/i386/pc/grub-setup.c (main): Likewise.
26798
8fff7c2f 267992007-05-16 Robert Millan <rmh@aybabtu.com>
26800
26801 * DISTLIST: Update for the latest changes.
26802 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
26803 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
26804 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
26805 grub/util/biosdisk.h.
26806 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
26807 grub/util/biosdisk.h.
26808
48e12b52 268092007-05-16 Robert Millan <rmh@aybabtu.com>
26810
26811 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
26812
46b9d128 268132007-05-16 Robert Millan <rmh@aybabtu.com>
26814
26815 * util/i386/efi/grub-install.in: New.
26816 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
26817 newly added grub-install.
26818 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
26819 include.
26820 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
26821 grub/util/biosdisk.h.
26822 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
26823 grub/util/biosdisk.h.
26824
2d1a40a9 268252007-05-16 Robert Millan <rmh@aybabtu.com>
26826
26827 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
26828 * include/grub/util/biosdisk.h: ... here.
26829 * util/i386/pc/biosdisk.c: Moved to ...
26830 * util/biosdisk.c: ... here.
26831 * util/i386/pc/getroot.c: Moved to ...
26832 * util/getroot.c: ... here.
26833 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
26834 * util/grub-mkdevicemap.c: ... here.
26835 * util/i386/pc/grub-probe.c: Moved to ...
26836 * util/grub-probe.c: ... here.
26837
9e26e3bc 268382007-05-15 Robert Millan <rmh@aybabtu.com>
26839
26840 * util/update-grub.in: Remove duplicated line in grub.cfg header
26841 message.
26842
57f96397 268432007-05-13 Robert Millan <rmh@aybabtu.com>
26844
26845 * util/update-grub.in: Fix a few assumptions about the devices holding
26846 /, /boot and /boot/grub being the same.
26847 * util/grub.d/00_header.in: Likewise.
26848 * util/grub.d/10_hurd.in: Likewise.
26849 * util/grub.d/10_linux.in: Likewise.
26850
26851 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
26852 patterns. Use that to define the `.old' suffix as older than `'.
26853
26854 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
26855
26856 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
26857 the grub.cfg header message.
26858
2e610d62 268592007-05-11 Robert Millan <rmh@aybabtu.com>
26860
26861 * util/update-grub.in: Create device.map if it doesn't already exist,
26862 before attempting to run grub-probe.
26863 Check for grub-probe and grub-mkdevicemap with the same code
26864 grub-install is using.
26865 Remove test mode.
26866
3f6a10ef 268672007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
26868
26869 * Makefile.in: Add the datarootdir autoconf variable.
26870
02e7b75e 268712007-05-09 Robert Millan <rmh@aybabtu.com>
26872
26873 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 26874 fail gracefully if dev->disk->partition == NULL.
02e7b75e 26875
75f396cc 268762007-05-07 Robert Millan <rmh@aybabtu.com>
26877
26878 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
26879 determine partition map module.
26880 * util/i386/pc/grub-install.in: Use this feature to decide which
26881 partition module to load, instead of hardcoding pc and gpt.
26882
da65cb36 268832007-05-07 Robert Millan <rmh@aybabtu.com>
26884
26885 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
26886 source directory differs from build directory.
26887
b57d6a91 268882007-05-05 Robert Millan <rmh@aybabtu.com>
26889
26890 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
26891 initialisation.
26892
509d00f1 268932007-05-05 Robert Millan <rmh@aybabtu.com>
26894
26895 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
26896
c48f23ef 268972007-05-05 Robert Millan <rmh@aybabtu.com>
26898
26899 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
26900 command-line arguments via ${GRUB_CMDLINE_LINUX}.
26901
20b97658 269022007-05-05 Robert Millan <rmh@aybabtu.com>
26903
26904 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
26905 (grub_probe_SOURCES): Likewise.
26906 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
26907 GPT and initialize dos_part and bsd_part accordingly.
26908 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
26909 install_bsd_part.
26910 (main): Activate gpt module for use during partition identification,
26911 and deactivate it afterwards.
26912 * util/i386/pc/grub-install.in: Add gpt module to core.img.
26913 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
26914 partition identification, and deactivate it afterwards.
26915
99123174 269162007-05-05 Robert Millan <rmh@aybabtu.com>
26917
26918 * term/i386/pc/console.c (grub_console_fini): Call
26919 grub_term_set_current() before grub_term_unregister().
26920
ebd97f6e 269212007-05-04 Robert Millan <rmh@aybabtu.com>
26922
26923 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
26924 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
26925 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
26926 and update-grub_DATA.
26927 * conf/common.rmk: Build and install update-grub components.
26928 * conf/common.mk: Regenerate.
26929 * util/update-grub.in: New. Core of update-grub.
26930 * util/grub.d/00_header.in: New. Generates grub.cfg header.
26931 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
26932 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
26933 * util/grub.d/README: New. Document grub.d directory layout.
26934
b06a264d 269352007-05-01 Robert Millan <rmh@aybabtu.com>
26936
26937 * util/grub-emu.c: Move initialization functions
26938 grub_util_biosdisk_init() and grub_init_all() before
26939 grub_util_biosdisk_get_grub_dev(), which relies on them.
26940
41f0050e 269412007-04-19 Robert Millan <rmh@aybabtu.com>
26942
26943 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
26944 it is used later.
26945
04582bb3 269462007-04-18 Jerone Young <jerone@gmail.com>
26947
f19dbdb7 26948 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 26949 stanza.
26950
08db4632 269512007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 26952
08db4632 26953 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
26954 continue on and look for device node with real device name.
26955
801b76be 269562007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 26957
fe6b695a 26958 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 26959 ability.
26960 * Makefile.in: Add autoconf package transformation code.
26961 * util/i386/pc/grub-install.in: Likewise.
26962 * util/powerpc/ieee1275/grub-install.in: Likewise.
26963
6795c4e1 269642007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26965
26966 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
26967 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
26968 (EXT2_REVISION): Likewise.
26969 (EXT2_INODE_SIZE): Likewise.
26970 (struct grub_ext2_block_group): Added a missing member
26971 "used_dirs".
26972 (grub_ext2_read_inode): Divide by the inode size in a superblock
26973 instead of 128 to obtain INODES_PER_BLOCK.
26974 Use the macro EXT2_INODE_SIZE instead of directly using
26975 SBLOCK->INODE_SIZE.
26976
d70af616 269772007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26978
26979 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
26980 superblock instead of the structure size to compute an
26981 offset. This fixes the problem that GRUB could not read a
26982 filesystem when inode size is different from 128-byte.
26983
3b801603 269842007-03-05 Marco Gerards <marco@gnu.org>
26985
26986 * normal/main.c (read_config_file): When "menu" is not set, create
26987 an initial context.
26988
4785bfe4 269892007-02-21 Hollis Blanchard <hollis@penguinppc.org>
26990
26991 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
26992 (HEAP_LIMIT): New macro.
26993 (grub_claim_heap): Claim memory up to `heaplimit'.
26994
a0cbb023 269952007-02-21 Hollis Blanchard <hollis@penguinppc.org>
26996
26997 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
26998 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
26999 (_start): Likewise.
27000 (grub_arch_modules_addr): Return address after `_end'.
27001 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
27002 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
27003 (add_segments): Calculate `_end' from phdr size and location.
27004 (ALIGN_UP): Moved to ...
27005 * include/grub/misc.h: here.
27006 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
27007 New macro.
27008 (GRUB_IEEE1275_MODULE_BASE): Removed.
27009
fd7d8eba 270102007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27011
27012 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
27013 loop boundary.
27014
9b09e6fc 270152007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27016
27017 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
27018 All users updated.
27019 (grub_elf64_load_hook_t): Likewise.
27020 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
27021 debug output.
27022
3ce27299 270232007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27024
27025 * kern/mm.c: Update copyright.
27026 (grub_mm_debug): Correct syntax error.
27027 (grub_mm_dump_free): New function.
27028 (grub_debug_free): Call `grub_free'.
27029 * include/grub/mm.h: Update copyright.
27030 (grub_mm_dump_free): Add declaration.
27031
077d5fee 270322007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27033
27034 * include/grub/ieee1275/ieee1275.h: Update copyright.
27035 * kern/powerpc/ieee1275/init.c: Likewise.
27036 * kern/powerpc/ieee1275/openfw.c: Likewise.
27037
27038 * loader/powerpc/ieee1275/linux.c: Likewise.
27039 * include/grub/elfload.h: Likewise.
27040 * kern/elf.c: Likewise.
27041 (grub_elf32_load): Pass `base' and `size' parameters. Update all
27042 callers.
27043 (grub_elf64_load): Likewise.
27044 (grub_elf32_load_segment): Move to a nested function.
27045 (grub_elf64_load_segment): Likewise.
27046
dc946850 270472007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27048
27049 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
27050 prototype.
27051 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
27052 (grub_heap_len): Likewise.
27053 (HEAP_SIZE): New macro.
27054 (grub_claim_heap): New function.
27055 (grub_machine_init): Don't claim heap directly. Call
27056 `grub_claim_heap'.
27057 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
27058 (grub_available_iterate): New function.
27059
baa2a121 270602007-02-03 Thomas Schwinge <tschwinge@gnu.org>
27061
27062 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
27063 * configure.ac: Use it for testing the HOST and TARGET compilers.
27064
4fe9862e 270652006-12-13 Thomas Schwinge <tschwinge@gnu.org>
27066
27067 * Makefile.in (enable_grub_emu): New variable.
27068 * configure.ac (--enable-grub-emu): New option.
27069 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
27070 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
27071 * conf/i386-pc.rmk: Likewise.
27072 * conf/powerpc-ieee1275.rmk: Likewise.
27073 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
27074
a8aa5762 270752006-12-12 Marco Gerards <marco@gnu.org>
27076
27077 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
27078
27079 * kern/env.c (grub_env_unset): Don't free the member `value' when
27080 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
27081 pointer.
27082
27083 * normal/main.c (current_menu): Removed.
27084 (free_menu): Unset the `menu' environment variable.
27085 (grub_normal_menu_addentry): Make use of the environment variable
27086 `menu', instead of using the global `current_menu'. Allocate
27087 memory for the sourcecode of this entry.
27088 (read_config_file): New argument `nested', changed all callers.
27089 Only in the case of a new context, initialize a new menu. Set the
27090 `menu' environment variable.
27091 (grub_normal_execute): Don't set and unset the environment
27092 variable `menu' here anymore. Only free the menu when leaving the
27093 context.
27094
27095 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
27096 leak.
27097
957b3a3e 270982006-12-11 Marco Gerards <marco@gnu.org>
27099
27100 * normal/menu_entry.c (run): Fix off by one bug so the last line
27101 is executed. Move the loader check to outside the loop.
27102
ef875714 271032006-12-08 Hollis Blanchard <hollis@penguinppc.org>
27104
27105 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
27106
4e739985 271072006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
27108
27109 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
27110 the number of sectors. Reported by Andrey Shuvikov
27111 <mr_hyro@yahoo.com>.
f19dbdb7 27112
790707f2 271132006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
27114
27115 * kern/disk.c (grub_disk_read): When there is a read error, always
27116 try to read only the necessary data.
f19dbdb7 27117
790707f2 27118 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
27119 disk/raid.c.
27120 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
27121 prototype.
27122 [GRUB_UTIL] (grub_raid_fini): Likewise.
27123 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 27124 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 27125 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
27126 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
27127 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
27128 and grub_raid_fini().
f19dbdb7 27129
03e58196 271302006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27131
27132 * include/grub/types.h (__unused): Rename to UNUSED.
27133 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
27134 (grub_elf64_size): Likewise.
f19dbdb7 27135
ae4f23bf 271362006-11-03 Hollis Blanchard <hollis@penguinppc.org>
27137
27138 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
27139 grub_error_push and grub_error_pop in the error-handling path.
27140 (grub_elf32_load_segment): Only call grub_file_read with non-zero
27141 length.
27142
2166cc83 271432006-11-03 Hollis Blanchard <hollis@penguinppc.org>
27144
27145 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
27146 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27147 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27148 (kernel_elf_SOURCES): Likewise.
27149 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
27150 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
27151 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
27152 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
27153 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
27154 (elf_mod_SOURCES): New variable.
27155 (elf_mod_CFLAGS): Likewise.
27156 (elf_mod_LDFLAGS): Likewise.
27157 * include/grub/types.h (__unused): New macro.
27158 * include/grub/elfload.h: New file.
27159 * kern/elf.c: Likewise.
27160 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
27161 (ELF32_LOADMASK): New macro.
27162 (ELF64_LOADMASK): Likewise.
27163 (vmlinux): Removed.
27164 (grub_linux_load32): New function.
27165 (grub_linux_load64): Likewise.
27166 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
27167 Use grub_elf_t instead of grub_file_t.
27168
a09d5aa5 271692006-11-02 Hollis Blanchard <hollis@penguinppc.org>
27170
27171 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
27172 `catch_result' to struct set_color_args.
27173
d976fc51 271742006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
27175
27176 * normal/menu.c: Include grub/script.h.
27177 * normal/menu_entry.c: Likewise.
27178 * include/grub/normal.h: Do not include grub/script.h.
27179
67507549 271802006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27181
27182 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
27183
69203a99 271842006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27185
27186 * kern/disk.c (grub_disk_open): Print debug messages when opening a
27187 disk.
27188 (grub_disk_close): Print debug messages when closing a disk.
27189 (grub_disk_read): Print debug messages when disk read fails.
27190 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
27191 filesystem type.
27192 * kern/partition.c: Include misc.h.
27193 (grub_partition_iterate): Print debug messages when detecting
27194 partition type.
27195
e2b8278c 271962006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27197
27198 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
27199 is negative.
27200 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
27201
97b2f2ff 272022006-10-26 Hollis Blanchard <hollis@penguinppc.org>
27203
27204 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
27205 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
27206
6555d655 272072006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
27208
27209 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
27210 instead of sizeof(lv). Patch by Michael Guntsche.
27211
4d42b77f 272122006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
27213
27214 * disk/lvm.c: Rename VGS to VG_LIST.
27215 (grub_lvm_iterate): Change VGS->LV to VG-LV.
27216 (grub_lvm_open): Likewise.
27217 Thanks to Michael Guntsche for finding this bug.
27218
5d74d927 272192006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27220
27221 * configure.ac (AC_INIT): Bumped to 1.95.
27222
a1bb27e4 272232006-10-14 Robert Millan <rmh@aybabtu.com>
27224
27225 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
27226 with "/dev/.static/dev/md".
27227
e0994b8b 272282006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
27229
27230 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
27231 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
27232 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
27233 DRIVE_NAME are always freed.
27234
27235 * util/i386/pc/biosdisk.c (make_device_name): Add one into
27236 DOS_PART, as a DOS partition is counted from one instead of zero
27237 now. Reported by Robert Millan.
27238
ddd5cee9 272392006-10-14 Robert Millan <rmh@aybabtu.com>
27240
27241 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
27242 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
27243 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
27244 string returned by grub_guess_root_device.
27245 * util/i386/pc/grub-setup.c: Likewise.
27246 * util/i386/pc/grub-probefs.c: Likewise.
27247
27248 * util/i386/pc/grub-probefs.c: Rename to ...
27249 * util/i386/pc/grub-probe.c: ... this.
27250 * DISTLIST: Remove grub-probefs, add grub-probe.
27251 * conf/i386-efi.rmk: Likewise.
27252 * conf/i386-pc.rmk: Likewise.
27253 * util/i386/pc/grub-install.in: Likewise.
27254
27255 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
27256 choose which information we want to print.
27257
2b002173 272582006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
27259
27260 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
27261 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
27262 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
27263 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
27264 video/readers/tga.c and video/i386/pc/vbeutil.c.
27265
272662006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
27267
27268 Added support for RAID and LVM.
f19dbdb7 27269
2b002173 27270 * disk/lvm.c: New file.
27271 * disk/raid.c: Likewise.
27272 * include/grub/lvm.h: Likewise.
f19dbdb7 27273 * include/grub/raid.h: Likewise.
2b002173 27274 * include/grub/util/lvm.h: Likewise.
27275 * include/grub/util/raid.h: Likewise.
27276 * util/lvm.c: Likewise.
27277 * util/raid.c: Likewise.
27278
27279 * include/grub/disk.h (grub_disk_dev_id): Add
27280 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
27281 (grub_disk_get_size): New prototype.
27282 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
27283 returns a partition.
27284 (grub_disk_get_size): New function.
f19dbdb7 27285
2b002173 27286 * kern/i386/pc/init.c (make_install_device): Copy the prefix
27287 verbatim if grub_install_dos_part is -2.
27288
27289 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
27290 and LVM devices.
27291
27292 * util/i386/pc/grub-setup.c (setup): New argument
27293 MUST_EMBED. Force embedding of GRUB when the argument is
27294 true. Close FILE before returning.
27295 (main): Add support for RAID and LVM.
f19dbdb7 27296
2b002173 27297 * conf/common.rmk: Add RAID and LVM modules.
27298 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
27299 util/lvm.c.
27300 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
27301
27302 * kern/misc.c (grub_strstr): New function.
27303 * include/grub/misc.h (grub_strstr): New prototype.
27304
050548d0 273052006-10-10 Tristan Gingold <tristan.gingold@bull.net>
27306
27307 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
27308
da849d2d 273092006-10-05 Tristan Gingold <tristan.gingold@bull.net>
27310
27311 * kern/misc.c (grub_strtoull): Guess the base only if not
27312 specified.
27313
97b2f2ff 273142006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 27315
27316 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
27317 PowerMac support.
27318
97b2f2ff 273192006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 27320
27321 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
27322
27323 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
27324 Remove `flags' argument. All callers changed.
27325 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
27326 (IEEE1275_IHANDLE_INVALID): New variable.
27327 (IEEE1275_CELL_INVALID): New variable.
27328 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27329 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
27330 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
27331 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
27332 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
27333 codes from Open Firmware. All callers updated.
27334 (grub_ieee1275_next_property): Directly return Open Firmware return
27335 code.
27336 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
27337 Standardize error checking from `grub_ieee1275_get_property'.
27338 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
27339 `devalias' to `aliases'. Correct comments. Consolidate error paths.
27340
97b2f2ff 273412006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 27342
27343 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
27344 `instance_to_package_args' to `instance_to_path_args'.
27345
27346 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
27347 `grub_ieee1275_chosen'.
27348
27349 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
27350 `grub_ieee1275_interpret'.
27351
97b2f2ff 273522006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 27353
27354 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
27355
97b2f2ff 273562006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 27357
27358 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
27359 (__cmpdi): Likewise.
27360
27361 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
27362 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
27363 `grub_ssize_t'.
27364
02bb8acc 27365 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 27366
27367 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
27368 to type `grub_ssize_t'.
27369 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
27370
7f9a8531 273712006-09-22 Marco Gerards <marco@gnu.org>
27372
27373 * normal/script.c (grub_script_create_cmdmenu): Skip leading
27374 newlines.
27375
b5ef1102 273762006-09-22 Marco Gerards <marco@gnu.org>
27377
27378 * commands/echo.c: New file.
27379
27380 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
27381
27382 * conf/common.rmk (echo_mod_SOURCES): New variable.
27383 (echo_mod_CFLAGS): Likewise.
27384 (echo_mod_LDFLAGS): Likewise.
27385
2cff3677 273862006-09-22 Marco Gerards <marco@gnu.org>
27387
27388 * normal/main.c (get_line): Malloc memory instead of using
27389 preallocated memory. Removed the arguments `cmdline' and
27390 `max_len'. Updated all callers.
27391
6ba4688b 273922006-09-22 Marco Gerards <marco@gnu.org>
27393
27394 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
27395 (normal_mod_DEPENDENCIES): Likewise.
27396
27397 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
27398 (normal_mod_DEPENDENCIES): Likewise.
27399
27400 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
27401
e02ac02c 274022006-09-22 Johan Rydberg <jrydberg@gnu.org>
27403
27404 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
27405 programs.
27406 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
27407 (normal_mod_DEPENDENCIES): Likewise.
27408 * conf/i386-pc.mk: Regenerate.
27409 * conf/i386-efi.mk: Likewise
27410 * conf/common.mk: Likewise.
27411 * conf/powerpc-ieee1275.mk: Likewise.
27412 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 27413
8d252e44 274142006-09-22 Robert Millan <rmh@aybabtu.com>
27415
27416 Sync with i386 version.
27417 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
27418 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
27419
209bf7ac 274202006-09-21 Robert Millan <rmh@aybabtu.com>
27421
27422 Import from GRUB Legacy (lib/device.c):
27423 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
27424 (init_device_map) [__linux__]: Add support for I2O devices.
27425
6b146090 274262006-09-14 Marco Gerards <marco@gnu.org>
27427
27428 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
27429 `-melf_i386'.
27430
e38600a8 274312006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 27432
27433 * util/i386/pc/grub-install.in: Skip menu.lst when removing
27434 /boot/grub/*.lst.
78fa1790 27435
2952da5d 27436 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 27437
2952da5d 27438 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
27439 before adding it to device.map.
27440
01b82a64 274412006-08-15 Johan Rydberg <jrydberg@gnu.org>
27442
fe6b695a 27443 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 27444 compiles a file; using the -MD option.
27445 * conf/common.mk: Regenerate.
27446 * conf/i386-pc.mk: Likewise.
27447 * conf/i386-efi.mk: Likewise.
27448 * conf/powerpc-ieee1275.mk: Likewise.
27449 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 27450
1064790d 274512006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
27452
27453 Move the prototypes of grub_setjmp and grub_longjmp to
27454 cpu/setjmp.h, so that each architecture may specify different
27455 attributes.
f19dbdb7 27456
1064790d 27457 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
27458 (grub_longjmp): Likewise.
27459 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
27460 (grub_longjmp): Likewise.
27461 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
27462 (grub_longjmp): Likewise.
27463
27464 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
27465 [!GRUB_UTIL] (grub_longjmp): Removed.
27466
29dda3ed 274672006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
27468
27469 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
27470 "color!" method does not return any value.
27471
ad2a06ed 274722006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27473
27474 * include/grub/bitmap.h: New file.
27475
27476 * include/grub/i386/pc/vbeutil.h: Likewise.
27477
27478 * video/bitmap.c: Likewise.
27479
27480 * video/readers/tga.c: Likewise.
27481
27482 * video/i386/pc/vbeutil.c: Likewise.
27483
27484 * commands/videotest.c: Code cleanup and updated to reflect to new
27485 video API.
27486
27487 * term/gfxterm.c: Likewise.
27488
27489 * video/video.c: Likewise.
27490
27491 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
27492 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
27493 (bitmap_mod_SOURCES): New entry.
27494 (bitmap_mod_CFLAGS): Likewise.
27495 (bitmap_mod_LDFLAGS): Likewise.
27496 (tga_mod_SOURCES): Likewise.
27497 (tga_mod_CFLAGS): Likewise.
27498 (tga_mod_LDFLAGS): Likewise.
27499
27500 * include/grub/video.h (grub_video_blit_operators): New enum type.
27501 (grub_video_render_target): Changed as forward declaration and moved
27502 actual definition to be video driver specific.
27503 (grub_video_adapter.blit_bitmap): Added blitting operator.
27504 (grub_video_adapter.blit_render_target): Likewise.
27505 (grub_video_blit_bitmap): Likewise.
27506 (grub_video_blit_render_target): Likewise.
27507
27508 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
27509 driver specific render target definition.
27510 (grub_video_vbe_map_rgba): Added driver internal helper.
27511 (grub_video_vbe_unmap_color): Updated to use
27512 grub_video_i386_vbeblit_info.
27513 (grub_video_vbe_get_video_ptr): Likewise.
27514
27515 * include/grub/i386/pc/vbeblit.h
27516 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
27517 grub_video_i386_vbeblit_info.
27518 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27519 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27520 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27521 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27522 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27523 (grub_video_i386_vbeblit_index_index): Likewise.
27524 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
27525 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27526 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27527 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
27528 operator.
27529 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
27530 operator.
27531
27532 * video/i386/pc/vbeblit.c: Updated to reflect changes on
27533 include/grub/i386/pc/vbeblit.h.
27534
27535 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
27536 Updated to use grub_video_i386_vbeblit_info.
27537 (grub_video_i386_vbefill_R8G8B8): Likewise.
27538 (grub_video_i386_vbefill_index): Likewise.
27539 (grub_video_i386_vbefill): Added generic filler.
27540
27541 * video/i386/pc/vbefill.c: Updated to reflect changes on
27542 include/grub/i386/pc/vbefill.h.
27543
27544 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
27545 grub_video_i386_vbeblit_info.
27546 (grub_video_vbe_unmap_color): Likewise.
27547 (grub_video_vbe_blit_glyph): Likewise.
27548 (grub_video_vbe_scroll): Likewise.
27549 (grub_video_vbe_draw_pixel): Removed function.
27550 (grub_video_vbe_get_pixel): Likewise.
27551 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
27552 updated code to use it.
27553 (common_blitter): Added common blitter for render target and bitmap.
27554 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
27555 (grub_video_vbe_blit_render_target): Likewise.
27556
bc8c036d 275572006-07-30 Johan Rydberg <jrydberg@gnu.org>
27558
27559 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
27560 is in text mode if there is no console control protocol instance
27561 available.
27562
684a8eff 275632006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27564
27565 * include/grub/video.h: Code cleanup.
27566
27567 * include/grub/i386/pc/vbe.h: Likewise.
27568
27569 * video/i386/pc/vbe.c: Likewise.
27570
27571 * video/i386/pc/vbeblit.c: Likewise.
27572
27573 * video/i386/pc/vbefill.c: Likewise.
27574
27575 * video/video.c: Likewise. Also added more comments.
27576
5915059b 275772006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27578
27579 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
27580 (struct grub_biosdisk_dap): Likewise.
27581
27582 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
27583 linkage settings for all functions.
27584
90ce5d56 275852006-07-12 Marco Gerards <marco@gnu.org>
27586
27587 * configure.ac (--enable-mm-debug): Fix typo.
27588
27589 * genkernsyms.sh.in: Use proper quoting for `CC'.
27590
43e7f879 275912006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
27592
27593 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
27594 (normal_mod_ASFLAGS): Remove "-m32".
27595
4889bdec 275962006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
27597
27598 * util/misc.c: Include config.h.
27599 [!HAVE_MEMALIGN]: Do not include malloc.h.
27600 (grub_memalign): Use posix_memalign, if present. Then, use
27601 memalign, if present. Otherwise, emit an error.
27602
27603 * util/grub-emu.c: Do not include malloc.h.
27604
27605 * include/grub/util/misc.h: Include unistd.h. This is required for
27606 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
27607 D. Eades III <hde@foobar-qux.org>.
27608
27609 * configure.ac (AC_GNU_SOURCE): Added.
27610 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
27611 type.
27612
fd39d4da 276132006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
27614
27615 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
27616 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
27617
b786f3b5 276182006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
27619
27620 * include/grub/types.h (grub_host_addr_t): Rename to
27621 grub_target_addr_t.
27622 (grub_host_off_t): Rename to grub_target_off_t.
27623 (grub_host_size_t): Rename to grub_target_size_t.
27624 (grub_host_ssize_t): Rename to grub_target_ssize_t.
27625 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
27626
27627 * include/grub/kernel.h (struct grub_module_header): Change type
27628 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
27629 (grub_module_info): Likewise.
f19dbdb7 27630
051988bb 276312006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27632
27633 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
27634 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
27635 Velazquez <jesus.velazquez@gmail.com>.
27636
deae281b 276372006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27638
27639 Count partitions from 1 instead of 0 in the string representation
27640 of partitions. Still use 0-based internally.
f19dbdb7 27641
deae281b 27642 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
27643 (sun_partition_map_iterate): Use grub_partition_t instead of
27644 struct grub_partition *. Cast DESC->START_CYLINDER to
27645 grub_uint64_t after converting the endian.
27646 (sun_partition_map_probe): Subtract 1 for PARTNUM.
27647 (sun_partition_map_get_name): Add 1 to P->INDEX.
27648
27649 * partmap/pc.c (grub_partition_parse): Subtract 1 for
27650 PCDATA->DOS_PART.
27651 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
27652
27653 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
27654 zero instead of one.
27655 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
27656 (gpt_partition_map_get_name): Add 1 into P->INDEX.
27657
27658 * partmap/apple.c (apple_partition_map_iterate): Change the type
27659 of POS to unsigned.
27660 (apple_partition_map_probe): Subtract 1 for PARTNUM.
27661 (apple_partition_map_get_name): Add 1 into P->INDEX.
27662
27663 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
27664 of POS to unsigned.
27665 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
27666 calculate the offset of a partition.
27667 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
27668 (amiga_partition_map_get_name): Add 1 into P->INDEX.
27669
27670 * partmap/acorn.c (acorn_partition_map_find): Change the type of
27671 SECTOR to grub_disk_addr_t.
27672 (acorn_partition_map_iterate): Likewise.
27673 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
27674 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
27675 top.
27676 (acorn_partition_map_get_name): Add 1 into P->INDEX.
27677
27678 * kern/i386/pc/init.c (make_install_device): Add 1 into
27679 GRUB_INSTALL_DOS_PART.
27680
27681 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
27682 conditional.
27683
524a1e6a 276842006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27685
27686 Clean up the code to support 64-bit addressing in disks and
27687 files. This change is not enough for filesystems yet.
f19dbdb7 27688
524a1e6a 27689 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
27690 type of "start" to grub_uint64_t.
27691 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
27692 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
27693 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
27694 convert addresses.
27695
27696 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
27697 to grub_disk_addr_t.
27698
27699 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
27700 string.
27701
27702 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27703
27704 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
27705 to char *.
27706
27707 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
27708
27709 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
27710
27711 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
27712
27713 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
27714 to grub_off_t, to detect an error from grub_file_seek.
27715 (grub_multiboot_load_elf32): Likewise.
27716
27717 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
27718 maximum unsigned long value when an overflow is detected.
27719 (grub_strtoull): New function.
27720 (grub_divmod64): Likewise.
27721 (grub_lltoa): use grub_divmod64.
27722
27723 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
27724 grub_disk_addr_t.
27725 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
27726 the pointer to next character. Use grub_strtoull instead of
27727 grub_strtoul.
27728 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
27729 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
27730 respectively.
27731
fe6b695a 27732 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 27733 return value is signed.
27734 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
27735 test if OFFSET is less than zero, as OFFSET is unsigned now.
27736
27737 * kern/disk.c (struct grub_disk_cache): Change the type of
27738 "sector" to grub_disk_addr_t.
27739 (grub_disk_cache_get_index): Change the type of SECTOR to
27740 grub_disk_addr_t. Calculate the hash with SECTOR casted to
27741 unsigned after shifting.
27742 (grub_disk_cache_invalidate): Change the type of SECTOR to
27743 grub_disk_addr_t.
27744 (grub_disk_cache_unlock): Likewise.
27745 (grub_disk_cache_store): Likewise.
27746 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
27747 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
27748 grub_disk_addr_t and grub_uint64_t, respectively.
27749 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
27750 body, as the value of OFFSET is tweaked by
27751 grub_disk_check_range. Change the types of START_SECTOR, LEN and
27752 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
27753 respectively.
27754 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
27755 body, as the value of OFFSET is tweaked by
27756 grub_disk_check_range. Change the types of LEN and N to
27757 grub_size_t.
27758
27759 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
27760 and "saved_offset" to grub_off_t.
27761 (test_header): Cast BUF to char *.
27762 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
27763 to char *.
27764 (grub_gzio_read): Change the types of OFFSET and SIZE to
27765 grub_off_t and grub_size_t, respectively.
27766
27767 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
27768 Removed.
27769 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
27770 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
27771 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
27772 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
27773 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
27774
27775 * include/grub/types.h (grub_off_t): Unconditionally set to
27776 grub_uint64_t.
27777 (grub_disk_addr_t): Changed to grub_uint64_t.
27778
27779 * include/grub/partition.h (struct grub_partition): Change the
27780 types of "start", "len" and "offset" to grub_disk_addr_t,
27781 grub_uint64_t and grub_disk_addr_t, respectively.
27782 (grub_partition_get_start): Return grub_disk_addr_t.
27783 (grub_partition_get_len): Return grub_uint64_t.
27784
27785 * include/grub/misc.h (grub_strtoull): New prototype.
27786 (grub_divmod64): Likewise.
27787
27788 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
27789 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
27790 grub_off_t, respectively.
27791 All callers and references changed.
27792
27793 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
27794 grub_size_t in "read".
27795 All callers and references changed.
27796
27797 * include/grub/file.h (struct grub_file): Change the types of
27798 "offset" and "size" to grub_off_t and grub_off_t,
27799 respectively. Change the type of SECTOR to grub_disk_addr_t in
27800 "read_hook".
27801 (grub_file_read): Change the type of LEN to grub_size_t.
27802 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
27803 grub_off_t.
27804 (grub_file_size): Return grub_off_t.
27805 (grub_file_tell): Likewise.
27806 All callers and references changed.
27807
27808 * include/grub/disk.h (struct grub_disk_dev): Change the types of
27809 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
27810 "write".
27811 (struct grub_disk): Change the type of "total_sectors" to
27812 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 27813 "read_hook".
524a1e6a 27814 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
27815 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
27816 (grub_disk_write): Likewise.
27817 All callers and references changed.
27818
27819 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
27820 char * for grub_strncmp to silence gcc.
27821 (grub_iso9660_mount): Likewise.
27822 (grub_iso9660_mount): Likewise.
27823 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
27824 return statement.
27825 (grub_iso9660_iterate_dir): Likewise.
27826 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
27827
27828 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
27829 LEN to grub_disk_addr_t and grub_size_t, respectively.
27830
27831 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
27832
27833 * fs/jfs.c (grub_jfs_read_file): Likewise.
27834
27835 * fs/minix.c (grub_jfs_read_file): Likewise.
27836
27837 * fs/sfs.c (grub_jfs_read_file): Likewise.
27838
27839 * fs/ufs.c (grub_jfs_read_file): Likewise.
27840
27841 * fs/xfs.c (grub_jfs_read_file): Likewise.
27842
27843 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
27844 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
27845 respectively.
27846
27847 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
27848 BLKNR to -1 instead of returning GRUB_ERRNO.
27849 (grub_ext2_read_file): Change the types of SECTOR and
27850 LEN to grub_disk_addr_t and grub_size_t, respectively.
27851
27852 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
27853 LEN to grub_disk_addr_t and grub_size_t, respectively.
27854
27855 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
27856 grub_file_read.
27857
27858 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
27859 string. Do not cast SECTOR explicitly.
27860
27861 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
27862 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
27863 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
27864 grub_disk_addr_t and grub_size_t, respectively. If the sector is
27865 over 2TB and LBA mode is not supported, raise an error.
27866 (get_safe_sectors): New function.
27867 (grub_biosdisk_read): Use get_safe_sectors.
27868 (grub_biosdisk_write): Likewise.
27869
27870 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
27871 (grub_efidisk_write): Likewise.
27872
27873 * disk/loopback.c (delete_loopback): Cosmetic changes.
27874 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
27875 correctly.
27876 (grub_loopback_open): Likewise.
27877 (grub_loopback_read): Likewise. Also, change the type of POS to
27878 grub_off_t, and fix the usage of grub_memset.
27879
27880 * commands/i386/pc/play.c: Include grub/machine/time.h.
27881
27882 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
27883 print FILE->SIZE.
27884
27885 * commands/configfile.c: Include grub/env.h.
27886
27887 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
27888 GRUB_ERRNO directly instead. Change the type of POS to
27889 grub_off_t. Follow the coding standard.
27890
27891 * commands/blocklist.c: Include grub/partition.h.
27892 (grub_cmd_blocklist): Return an error if the underlying device is
27893 not a disk. Take the starting sector of a partition into account,
27894 if a partition is used.
27895
27896 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
27897 a length field.
27898 (lba_mode): Support 64-bit addresses.
27899 (chs_mode): Likewise.
27900 (copy_buffer): Adapted to the new offsets of a length field and a
27901 segment field.
27902 (blocklist_default_start): Allocate 64-bit space.
27903
27904 * boot/i386/pc/boot.S (force_lba): Removed.
27905 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 27906 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 27907 space.
27908 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
27909 is useless.
27910 (lba_mode): Refactored to support a 64-bit address. More size
27911 optimization.
27912 (setup_sectors): Likewise.
27913
53af98ad 279142006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27915
27916 * DISTLIST: Added include/grub/i386/linux.h. Removed
27917 include/grub/i386/pc/linux.h
27918
27919 * configure.ac (AC_INIT): Bumped to 1.94.
27920
27921 * config.guess: Updated from gnulib.
27922 * config.sub: Likewise.
27923 * install-sh: Likewise.
27924 * mkinstalldirs: Likewise.
27925
b4c1940a 279262006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27927
27928 * conf/common.rmk (grub_modules_init.lst): Depended on
27929 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
27930 MODSRCFILES.
27931
27932 * genmk.rb (PModule::rule): Reverted the previous change.
27933
cfca1cfd 279342006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27935
27936 * conf/common.rmk (grub_modules_init.lst): Depends on
27937 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
27938 that the target does not exist before producing.
27939 (grub_modules_init.h): Remove the target before generating.
27940 (grub_emu_init.c): Likewise.
27941
27942 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
27943
aa6d7826 279442006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
27945
27946 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
27947 for the target-specific tests. Make sure that we also have the
27948 up-to-date target variables for those tests.
27949
26c607b9 279502006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27951
27952 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
27953 (PModule::rule): Likewise.
27954
0162321a 279552006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27956
27957 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
27958 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
27959 target-specific flags should be prefixed.
27960 (PModule::rule): Likewise.
27961
6c826348 279622006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
27963
27964 * configure.ac (CMP): Check if cmp is available explicitly.
27965
b977bf01 279662006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
27967
27968 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
27969 (target_cpu): New variable.
27970 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 27971
b977bf01 27972 * util/i386/pc/grub-install.in (host_cpu): Removed.
27973 (target_cpu): New variable.
27974 (pkglibdir): Use target_cpu instead of host_cpu.
27975
27976 * util/genmoddep.c: Removed.
f19dbdb7 27977
b977bf01 27978 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
27979 instead of GRUB_HOST_SIZEOF_VOID_P.
27980 * kern/dl.c: Likewise.
27981
27982 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
27983 ...
27984 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27985 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27986 (GRUB_TARGET_SIZEOF_LONG): ... this.
27987 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27988 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27989 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
27990 to ...
27991 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27992 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27993 (GRUB_TARGET_SIZEOF_LONG): ... this.
27994 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27995 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27996 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
27997 to ...
27998 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27999 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28000 (GRUB_TARGET_SIZEOF_LONG): ... this.
28001 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28002 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28003
28004 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
28005 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
28006 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
28007 instead of GRUB_HOST_SIZEOF_LONG.
28008 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
28009 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
28010 GRUB_CPU_WORDS_BIGENDIAN.
28011 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
28012 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
28013 grub_host_ssize_t.
28014
28015 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
28016 (genmoddep_SOURCES): Likewise.
28017 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
28018 (genmoddep_SOURCES): Likewise.
28019 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
28020 (genmoddep_SOURCES): Likewise.
28021 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
28022 Likewise.
28023 (genmoddep_SOURCES): Likewise.
28024
28025 * genmoddep.awk: New file.
28026
28027 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
28028 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
28029 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
28030 (PModule::rule): Likewise.
28031 (Program::rule): Likewise.
28032 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
28033 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
28034 respectively.
28035
28036 * configure.ac: Rewritten intensively to use host and target
28037 instead of build and host, respectively.
28038
28039 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
28040 (host_cpu): Removed.
28041 (target_cpu): New variable.
28042 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
28043 (BUILD_CC): Removed.
28044 (BUILD_CFLAGS): Likewise.
28045 (BUILD_CPPFLAGS): Likewise.
28046 (TARGET_CC): New variable.
28047 (TARGET_CFLAGS): Likewise.
28048 (TARGET_CPPFLAGS): Likewise.
28049 (TARGET_LDFLAGS): Likewise.
28050 (AWK): Likewise.
28051 (include): Use target_cpu instead of host_cpu.
28052 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 28053
b977bf01 28054 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
28055
f09771a1 280562006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
28057
28058 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
28059 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
28060 field 'false' to 'exec_on_false'.
28061 (grub_script_create_cmdif): Renamed argument names to reflect above
28062 changes.
28063
28064 * normal/execute.c (grub_script_execute_cmdif): Likewise.
28065
28066 * normal/script.c (grub_script_create_cmdif): Likewise.
28067
118f4fb3 280682006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
28069
28070 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
28071 top.
28072 (grub_hfsplus_btree_recptr): Likewise.
28073 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
28074 FILEBLOCK both to pass a block number and store next block
28075 number.
28076 (grub_hfsplus_read_block): Rewritten heavily to support an extent
28077 overflow file correctly. Specify errors appropriately, because
28078 fshelp expects that GRUB_ERRNO is set when fails. Reuse
28079 grub_hfsplus_btree_recptr to get the pointer to a found key.
28080 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
28081 is found.
28082
28083 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
28084 linux.mod.
28085 (_linux_mod_SOURCES): New variable.
28086 (_linux_mod_CFLAGS): Likewise.
28087 (_linux_mod_LDFLAGS): Likewise.
28088 (linux_mod_SOURCES): Likewise.
28089 (linux_mod_CFLAGS): Likewise.
28090 (linux_mod_LDFLAGS): Likewise.
28091
28092 * DISTLIST: Added loader/i386/efi/linux.c,
28093 loader/i386/efi/linux_normal.c and
28094 include/grub/i386/efi/loader.h.
28095
28096 * loader/i386/efi/linux.c: New file.
28097 * loader/i386/efi/linux_normal.c: Likewise.
28098 * include/grub/i386/efi/loader.h: Likewise.
28099
89a7d726 281002006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
28101
28102 * commands/blocklist.c: New file.
28103
28104 * DISTLIST: Added commands/blocklist.c.
28105
28106 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 28107 color for the background, and a darker color for the foreground.
89a7d726 28108 (grub_console_checkkey): Return READ_KEY.
28109 (grub_console_cls): Set the background to
28110 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
28111
28112 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
28113
28114 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
28115 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
28116
28117 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
28118 prototype.
28119
28120 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
28121 BG. The spec is wrong again.
28122
28123 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
28124 prototype.
28125 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
28126
28127 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28128 commands/blocklist.c.
28129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 28130
89a7d726 28131 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
28132 (blocklist_mod_SOURCES): New variable.
28133 (blocklist_mod_CFLAGS): Likewise.
28134 (blocklist_mod_LDFLAGS): Likewise.
28135
75c8f258 281362006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
28137
28138 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
28139 duplication.
28140 (lba_mode): Use %eax more intensively to reduce the code size.
28141
da2eb181 281422006-05-20 Marco Gerards <marco@gnu.org>
28143
28144 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
28145
28146 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
28147 for `menuentry'.
28148 (script): Accept leading newlines.
28149 (newlines): New rule to describe 0 or more newlines.
28150 (commands): Accept `command' with trailing newline. Fixed the
28151 order in which arguments were passed to `grub_script_add_cmd'.
28152 Accept commands separated by newlines.
28153 (function): Changed to accept newlines.
28154 (menuentry) Rewritten.
28155
28156 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
28157 front of the list, instead of to the end.
28158
577b4050 281592006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
28160
28161 * util/i386/pc/grub-install.in (bindir): New variable.
28162 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
28163 Shaver <lbgwjl@gmail.com>.
28164
0d6e1189 281652006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
28166
28167 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
28168 grub/machine/linux.h
28169 * loader/i386/pc/linux.c: Likewise.
28170
28171 * include/grub/i386/pc/linux.h: Moved to ...
28172 * include/grub/i386/linux.h: ... here.
28173
28174 * include/grub/i386/linux.h (struct linux_kernel_params): New
28175 struct.
f19dbdb7 28176
31b86e9f 281772006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
28178
28179 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
28180 checking.
28181 (grub_video_vbe_blit_glyph): Likewise.
28182 (grub_video_vbe_blit_bitmap): Likewise.
28183 (grub_video_vbe_blit_render_target): Likewise.
28184
83b984de 281852006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
28186
28187 * configure.ac (--with-platform): Properly quote the square
28188 brackets.
28189
5f0413bd 281902006-05-08 Marco Gerards <marco@gnu.org>
28191
28192 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
28193 this...
28194 (kernel_elf_HEADERS): ...to this. Updated all users.
28195 (grubof_symlist.c): Renamed from this...
28196 (kernel_elf_symlist.c): ...to this. Updated all users.
28197 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
28198 (grubof_SOURCES): Renamed from this...
28199 (kernel_elf_SOURCES): ...to this.
28200 (grubof_HEADERS): Renamed from this...
28201 (kernel_elf_HEADERS): ...to this.
28202 (grubof_CFLAGS): Renamed from this...
28203 (kernel_elf_CFLAGS): ...to this.
28204 (grubof_ASFLAGS): Renamed from this...
28205 (kernel_elf_ASFLAGS): ...to this.
28206 (grubof_LDFLAGS): Renamed from this...
28207 (kernel_elf_LDFLAGS): ...to this.
28208
28209 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
28210 this...
28211 (kernel_elf_HEADERS): ...to this. Updated all users.
28212 (grubof_symlist.c): Renamed from this...
28213 (kernel_elf_symlist.c): ...to this. Updated all users.
28214 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
28215 (grubof_SOURCES): Renamed from this...
28216 (kernel_elf_SOURCES): ...to this.
28217 (grubof_HEADERS): Renamed from this...
28218 (kernel_elf_HEADERS): ...to this.
28219 (grubof_CFLAGS): Renamed from this...
28220 (kernel_elf_CFLAGS): ...to this.
28221 (grubof_ASFLAGS): Renamed from this...
28222 (kernel_elf_ASFLAGS): ...to this.
28223 (grubof_LDFLAGS): Renamed from this...
28224 (kernel_elf_LDFLAGS): ...to this.
28225
28226 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
28227 `kernel.elf' instead of `grubof'.
28228
05568c2e 282292006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
28230
28231 Add --with-platform to configure. Use pkglibdir instead of
28232 pkgdatadir. This is reported by Roger Leigh.
28233
28234 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
28235 (host_vendor): Likewise.
28236 (host_os): Likewise.
28237 (pkgdatadir): Likewise.
28238 (platform): New variable.
28239 (pkglibdir): Likewise.
28240 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 28241
05568c2e 28242 * util/i386/pc/grub-install.in (datadir): Removed.
28243 (host_vendor): Likewise.
28244 (host_os): Likewise.
28245 (pkgdatadir): Likewise.
28246 (platform): New variable.
28247 (pkglibdir): Likewise.
28248 Use PKGLIBDIR instead of PKGDATADIR.
28249
28250 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
28251 instead of GRUB_DATADIR.
28252 (main): Likewise.
28253 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28254 (main): Likewise.
28255 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28256 (main): Likewise.
28257
28258 * configure.ac (--with-platform): New option.
28259 Use PLATFORM instead of HOST_VENDOR to specify a platform.
28260
28261 * Makefile.in: Include a makefile based on PLATFORM instead of
28262 HOST_VENDOR.
28263 (pkgdatadir): Not appended by the machine type.
28264 (pkglibdir): Appended by the machine type.
28265 (host_vendor): Removed.
28266 (platform): New variable.
28267 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
28268 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
28269 (uninstall): Likewise.
28270
4e93851c 282712006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
28272
28273 Use the environment context in the menu. Remove the commands
28274 "default" and "timeout", and use variables instead.
f19dbdb7 28275
4e93851c 28276 * normal/menu.c: Include grub/env.h.
28277 (print_entry): Cast TITLE to silence gcc.
28278 (get_timeout): New function.
28279 (set_timeout): Likewise.
28280 (get_entry_number): Likewise.
28281 (run_menu): Use a default entry, a fallback entry and a timeout
28282 in the environment variables "default", "fallback" and
28283 "timeout". Also, tweak the default entry if it is not within the
28284 current menu entries.
28285 (grub_menu_run): Use a fallback entry in the environment variable
28286 "fallback".
28287
28288 * normal/main.c (read_config_file): Do not initialize
28289 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
28290 NEWMENU->TIMEOUT.
28291 (grub_normal_execute): Use a data slot to store the menu.
28292
28293 * include/grub/normal.h (struct grub_menu): Removed default_entry,
28294 fallback_entry and timeout.
28295 (struct grub_menu_list): Removed.
28296 (grub_menu_list_t): Likewise.
28297 (struct grub_context): Likewise.
28298 (grub_context_t): Likewise.
28299 (grub_context_get): Likewise.
28300 (grub_context_get_current_menu): Likewise.
28301 (grub_context_push_menu): Likewise.
28302 (grub_context_pop_menu): Likewise.
28303 (grub_default_init): Likewise.
28304 (grub_default_fini): Likewise.
28305 (grub_timeout_init): Likewise.
28306 (grub_timeout_fini): Likewise.
28307
28308 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
28309 and timeout.mod.
28310 (normal_mod_SOURCES): Removed normal/context.c.
28311
28312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
28313 commands/default.c, commands/timeout.c and normal/context.c.
28314 (normal_mod_SOURCES): Removed normal/context.c.
28315
28316 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
28317 commands/timeout.c and normal/context.c.
28318 (normal_mod_SOURCES): Removed normal/context.c.
28319
28320 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
28321 commands/default.c, commands/timeout.c and normal/context.c.
28322 (normal_mod_SOURCES): Removed normal/context.c.
28323
28324 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
28325 timeout.mod.
28326 (default_mod_SOURCES): Removed.
28327 (default_mod_CFLAGS): Likewise.
28328 (default_mod_LDFLAGS): Likewise.
28329 (timeout_mod_SOURCES): Removed.
28330 (timeout_mod_CFLAGS): Likewise.
28331 (timeout_mod_LDFLAGS): Likewise.
28332
28333 * DISTLIST: Removed commands/default.c, commands/timeout.c and
28334 normal/context.c.
28335
28336 * commands/default.c: Removed.
28337 * commands/timeout.c: Likewise.
28338 * normal/context.c: Likewise.
28339
1eb9cc1d 283402006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
28341
28342 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
28343
385bd9c1 283442006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
28345
28346 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
28347 "next" to "prev" for readability.
28348 (struct grub_env_sorted_var): New struct.
28349 (grub_env_context): Renamed to ...
28350 (initial_context): ... this.
28351 (grub_env_var_context): Renamed to ...
28352 (current_context): ... this.
28353 (grub_env_find): Look only at CURRENT_CONTEXT.
28354 (grub_env_context_open): Rewritten to copy exported variables from
28355 previous context.
28356 (grub_env_context_close): Rewritten according to the new
28357 scheme. Also, add an assertion to prevent the initial context from
28358 removed.
28359 (grub_env_insert): Removed the code for the sorted list.
28360 (grub_env_remove): Likewise.
28361 (grub_env_export): Simply mark the variable with
28362 GRUB_ENV_VAR_GLOBAL.
28363 (grub_env_set): A cosmetic change for naming consistency.
28364 (grub_env_get): Likewise.
28365 (grub_env_unset): Likewise.
28366 (grub_env_iterate): Rewritten to sort variables within this
28367 function.
28368 (grub_register_variable_hook): Fixed for naming consistency. Call
28369 grub_env_find again, only if NAME is not found at the first time.
28370 (mangle_data_slot_name): New function.
28371 (grub_env_set_data_slot): Likewise.
28372 (grub_env_get_data_slot): Likewise.
28373 (grub_env_unset_data_slot): Likewise.
28374
28375 * include/grub/env.h (grub_env_var_type): New enum.
28376 (GRUB_ENV_VAR_LOCAL): New constant.
28377 (GRUB_ENV_VAR_GLOBAL): Likewise.
28378 (GRUB_ENV_VAR_DATA): Likewise.
28379 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
28380 "type".
28381 (grub_env_set): Replace VAR with NAME for consistency.
28382 (grub_register_variable_hook): Likewise.
28383 (grub_env_export): Specify the name of the argument.
28384 (grub_env_set_data_slot): New prototype.
28385 (grub_env_get_data_slot): Likewise.
28386 (grub_env_unset_data_slot): Likewise.
28387
7f362539 283882006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28389
28390 Extend the loader so that GRUB can accept a loader which comes
28391 back to GRUB when a loaded image exits. Also, this change adds
28392 support for a chainloader on EFI.
f19dbdb7 28393
7f362539 28394 * term/efi/console.c: Include grub/misc.h.
28395 (grub_console_checkkey): Display a scan code on the top for
28396 debugging. This will be removed once the EFI port gets stable.
28397 Correct the scan code mapping.
28398
28399 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
28400 allocate memory from larger regions, in order to reduce the number
28401 of allocated regions. Otherwise, the MacOSX loader panics.
28402 (filter_memory_map): Avoid less than 1MB for compatibility with
28403 other loaders.
28404 (add_memory_regions): Allocate from the tail of a region, if
28405 possible, to avoid allocating a region near to 1MB, for the MacOSX
28406 loader.
28407
28408 * kern/efi/init.c (grub_efi_set_prefix): Specify
28409 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
28410
28411 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
28412 argument IMAGE_HANDLE and specify it to get a loaded image.
28413 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
28414 grub_efi_get_loaded_image.
fe6b695a 28415 (grub_efi_get_filename): Divide the length by the size of
7f362539 28416 grub_efi_char16_t.
28417 (grub_efi_get_device_path): New function.
28418 (grub_efi_print_device_path): Print End Device Path nodes. Divide
28419 the length by the size of grub_efi_char16_t for a file path device
28420 path node.
28421
28422 * kern/loader.c (grub_loader_noreturn): New variable.
28423 (grub_loader_set): Accept a new argument NORETURN. Set
28424 GRUB_LOADER_NORETURN to NORETURN.
28425 All callers changed.
28426 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
28427 grub_machine_fini.
28428
28429 * include/grub/efi/efi.h (grub_efi_get_device_path): New
28430 prototype.
28431 (grub_efi_get_loaded_image): Take an argument to specify an image
28432 handle.
28433
28434 * include/grub/loader.h (grub_loader_set): Added one more argument
28435 NORETURN.
28436
28437 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
28438 instead of grub_efi_open_protocol.
28439 (grub_efidisk_get_device_name): Likewise.
28440 (grub_efidisk_close): Print a newline.
28441 (grub_efidisk_get_device_handle): Fixed to use
28442 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
28443 GRUB_EFI_DEVICE_PATH_TYPE.
28444
28445 * disk/efi/efidisk.c (device_path_guid): Moved to ...
28446 * kern/efi/efi.c (device_path_guid): ... here.
28447
28448 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
28449 chain.mod.
28450 (kernel_mod_HEADERS): Added efi/disk.h.
28451 (_chain_mod_SOURCES): New variable.
28452 (_chain_mod_CFLAGS): Likewise.
28453 (_chain_mod_LDFLAGS): Likewise.
28454 (chain_mod_SOURCES): Likewise.
28455 (chain_mod_CFLAGS): Likewise.
28456 (chain_mod_LDFLAGS): Likewise.
28457
28458 * DISTLIST: Added include/grub/efi/chainloader.h,
28459 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
28460
28461 * include/grub/efi/chainloader.h: New file.
28462 * loader/efi/chainloader.c: Likewise.
28463 * loader/efi/chainloader_normal.c: Likewise.
28464
c0111d6e 284652006-04-30 Marco Gerards <marco@gnu.org>
28466
28467 * commands/configfile.c (grub_cmd_source): New function.
28468 (GRUB_MOD_INIT): Register the commands `source' and `.'.
28469 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
28470
df5341da 284712006-04-30 Marco Gerards <marco@gnu.org>
28472
28473 * normal/execute.c (grub_script_execute_cmd): Change the return
28474 type to `grub_err_t'. Correctly return the error.
28475 (grub_script_execute_cmdline): In case a command line is not a
28476 command or a function, try to interpret it as an assignment.
28477
f85934bd 284782006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28479
28480 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
28481 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
28482 skip a node whose name is obviously invalid as UTF-16,
28483 i.e. contains a NUL character. Stop the iteration when the last
28484 directory entry is found. Instead of using the return value of
28485 grub_hfsplus_btree_iterate_node, store the value in RET and use
28486 it, because the iterator can be stopped by the last directory
28487 entry.
28488
8f8a2cf8 284892006-04-30 Marco Gerards <marco@gnu.org>
28490
28491 * include/grub/env.h (grub_env_export): New prototype. Reported
28492 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
28493
a27e84ce 284942006-04-30 Marco Gerards <marco@gnu.org>
28495
28496 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
28497 size of the extents in a catalog file record.
28498
eaef0553 284992006-04-29 Marco Gerards <marco@gnu.org>
28500
28501 * commands/configfile.c (grub_cmd_configfile): Execute the
28502 configfile within its own context.
28503
28504 * include/grub/env.h (grub_env_context_open): New prototype.
28505 (grub_env_context_close): Likewise.
28506
28507 * kern/env.c (grub_env): Removed.
28508 (grub_env_sorted): Likewise.
28509 (grub_env_context): New variable.
28510 (grub_env_var_context): Likewise.
28511 (grub_env_find): Search both the active context and the global
28512 context.
28513 (grub_env_context_open): New function.
28514 (grub_env_context_close): Likewise.
28515 (grub_env_insert): Likewise.
28516 (grub_env_remove): Likewise.
28517 (grub_env_export): Likewise.
28518 (grub_env_set): Changed to use helper functions to avoid code
28519 duplication.
28520 (grub_env_iterate): Rewritten so both the current context and the
28521 global context are being used.
28522
28523 * normal/command.c (export_command): New function.
28524 (grub_command_init): Register the `export' function.
28525
7b455f4d 285262006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
28527
28528 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
28529 explicitly to suppress gcc's warnings.
28530 * fs/fat.c (grub_fat_find_dir): Likewise.
28531 (grub_fat_label): Likewise.
28532 * fs/xfs.c (grub_xfs_read_inode): Likewise.
28533 (grub_xfs_mount): Likewise.
28534 (grub_xfs_label): Likewise.
28535 * fs/affs.c (grub_affs_mount): Likewise.
28536 (grub_affs_label): Likewise.
28537 (grub_affs_iterate_dir): Likewise.
28538 * fs/sfs.c (grub_sfs_mount): Likewise.
28539 (grub_sfs_iterate_dir): Likewise.
28540 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
28541 * fs/hfs.c (grub_hfs_mount): Likewise.
28542 (grub_hfs_cmp_catkeys): Likewise.
28543 (grub_hfs_find_dir): Likewise.
28544 (grub_hfs_dir): Likewise.
28545 (grub_hfs_label): Likewise.
28546 * fs/jfs.c (grub_jfs_mount): Likewise.
28547 (grub_jfs_opendir): Likewise.
28548 (grub_jfs_getent): Likewise.
28549 (grub_jfs_lookup_symlink): Likewise.
28550 (grub_jfs_label): Likewise.
28551 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
28552 (grub_hfsplus_iterate_dir): Likewise.
28553 (grub_hfsplus_btree_iterate_node): Made static.
28554
28555 * util/grub-emu.c (prefix): New variable.
28556 (grub_machine_set_prefix): New function.
28557 (main): Do not set the environment variable "prefix" here. Only
28558 set PREFIX, which is used later by grub_machine_set_prefix.
28559
28560 * include/grub/video.h: Do not include grub/symbol.h.
28561 (grub_video_register): Not exported. This symbol is not defined in
28562 the kernel.
28563 (grub_video_unregister): Likewise.
28564 (grub_video_iterate): Likewise.
28565 (grub_video_setup): Likewise.
28566 (grub_video_restore): Likewise.
28567 (grub_video_get_info): Likewise.
28568 (grub_video_get_blit_format): Likewise.
28569 (grub_video_set_palette): Likewise.
28570 (grub_video_get_palette): Likewise.
28571 (grub_video_set_viewport): Likewise.
28572 (grub_video_get_viewport): Likewise.
28573 (grub_video_map_color): Likewise.
28574 (grub_video_map_rgb): Likewise.
28575 (grub_video_map_rgba): Likewise.
28576 (grub_video_fill_rect): Likewise.
28577 (grub_video_blit_glyph): Likewise.
28578 (grub_video_blit_bitmap): Likewise.
28579 (grub_video_blit_render_target): Likewise.
28580 (grub_video_scroll): Likewise.
28581 (grub_video_swap_buffers): Likewise.
28582 (grub_video_create_render_target): Likewise.
28583 (grub_video_delete_render_target): Likewise.
28584 (grub_video_set_active_render_target): Likewise.
28585
28586 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
28587 Undefined.
28588 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
28589
28590 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
28591 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28592 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28593 instead of $(srcdir)/genkernsyms.sh.
28594
28595 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
28596 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28597 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28598 instead of $(srcdir)/genkernsyms.sh.
28599
28600 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
28601 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28602 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28603 instead of $(srcdir)/genkernsyms.sh.
28604
28605 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
28606 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28607 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28608 instead of $(srcdir)/genkernsyms.sh.
28609
28610 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
28611 genkernsyms.sh.
28612
28613 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
28614 genkernsyms.sh.
28615 (gensymlist.sh): New target.
28616 (genkernsyms.sh): Likewise.
28617
28618 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
28619 genkernsyms.sh.in and gensymlist.sh.in.
28620
28621 * genkernsyms.sh: Removed.
28622 * gensymlist.sh: Likewise.
f19dbdb7 28623
7b455f4d 28624 * genkernsyms.sh.in: New file.
28625 * gensymlist.sh.in: Likewise.
28626
1885bb27 286272006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28628
28629 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
28630 clobber "prefix", since we may have already set it manually.
28631
71538dff 286322006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28633
28634 * kern/misc.c (abort): New alias for grub_abort.
28635
2965c7cc 286362006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
28637
28638 A new machine-specific function "grub_machine_set_prefix" is
28639 defined. This is called after loading modules, so that a prefix
28640 initialization can use modules. Also, this change adds an
28641 intensive debugging feature for the memory manager via the
28642 configure option "--enable-mm-debug".
f19dbdb7 28643
2965c7cc 28644 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
28645 PART.LEN.
28646
28647 * kern/sparc64/ieee1275/init.c (abort): Removed.
28648 (grub_stop): Likewise.
28649 (grub_exit): New function.
28650 (grub_set_prefix): Renamed to ...
28651 (grub_machine_set_prefix): ... this.
28652 (grub_machine_init): Do not call grub_set_prefix.
28653
28654 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
28655 (grub_machine_set_prefix): ... this.
28656 (grub_machine_init): Do not call grub_set_prefix.
28657
28658 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
28659 (grub_machine_init): Do not set the prefix here.
28660
28661 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
28662
28663 * kern/efi/init.c: Include grub/mm.h.
28664 (grub_efi_set_prefix): New function.
28665
28666 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
28667 (grub_efi_get_filename): New function.
28668 (grub_print_device_path): Renamed to ...
28669 (grub_efi_print_device_path): ... this.
28670
28671 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
28672 [MM_DEBUG] (grub_realloc): Likewise.
28673 [MM_DEBUG] (grub_free): Likewise.
28674 [MM_DEBUG] (grub_memalign): Likewise.
28675 [MM_DEBUG] (grub_mm_debug): New variable.
28676 [MM_DEBUG] (grub_debug_malloc): New function.
28677 [MM_DEBUG] (grub_debug_free): New function.
28678 [MM_DEBUG] (grub_debug_realloc): New function.
28679 [MM_DEBUG] (grub_debug_memalign): New function.
28680
28681 * kern/misc.c (grub_abort): Print a newline to distinguish
28682 the message.
28683
28684 * kern/main.c (grub_main): Call grub_machine_set_prefix and
28685 grub_set_root_dev after loading modules. This is necessary when
28686 setting a prefix depends on modules.
28687
28688 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
28689 (grub_efi_print_device_path): ... this.
28690 (grub_efi_get_filename): New prototype.
28691 (grub_efi_set_prefix): Likewise.
28692
28693 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
28694 and grub/disk.h.
28695 (grub_efidisk_get_device_handle): New prototype.
28696 (grub_efidisk_get_device_name): Likewise.
28697
28698 * include/grub/mm.h: Include config.h.
28699 (MM_DEBUG): Removed.
28700 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
28701 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
28702 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
28703 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
28704 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
28705 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
28706 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
28707 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
28708 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
28709
28710 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
28711
28712 * disk/efi/efidisk.c: Include grub/partition.h.
28713 (iterate_child_devices): New function.
28714 (add_device): First, compare only last device path nodes, so that
28715 devices are sorted by the types.
28716 (grub_efidisk_get_device_handle): New function.
28717 (grub_efidisk_get_device_name): Likewise.
28718
28719 * configure.ac (--enable-mm-debug): New option to enable the
28720 memory manager debugging feature. This makes the binary much
28721 bigger, so is disabled by default.
28722
9cacaa17 287232006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
28724
28725 Use grub_abort instead of grub_stop, and grub_exit must be
28726 define in each architecture now. Also, this change adds support
28727 for EFI disks.
f19dbdb7 28728
9cacaa17 28729 * util/i386/pc/grub-probefs.c: Include grub/term.h.
28730 (grub_getkey): New function.
28731 (grub_term_get_current): Likewise.
28732
28733 * util/i386/pc/grub-setup.c: Include grub/term.h.
28734 (grub_getkey): New function.
28735 (grub_term_get_current): Likewise.
28736
28737 * util/misc.c (grub_stop): Renamed to ...
28738 (grub_exit): ... this.
28739
28740 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
28741 (grub_exit): ... this.
28742 (grub_machine_init): Use grub_abort instead of abort.
28743 (grub_stop): Removed.
28744
28745 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
28746 abort.
28747
28748 * kern/i386/pc/startup.S (grub_exit): New function.
28749 (cold_reboot): New label.
28750
28751 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
28752 (grub_efi_init): Call grub_efidisk_init.
28753 (grub_efi_fini): Call grub_efidisk_fini.
28754
28755 * kern/efi/efi.c: Include grub/mm.h.
28756 (grub_efi_console_control_guid): Renamed to ...
28757 (console_control_guid): ... this.
28758 (grub_efi_loaded_image_guid): Renamed to ...
28759 (loaded_image_guid): ... this.
28760 (grub_efi_locate_handle): New function.
28761 (grub_efi_open_protocol): Likewise.
28762 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
28763 GRUB_EFI_CONSOLE_CONTROL_GUID.
28764 (grub_efi_exit): Removed.
28765 (grub_stop): Likewise.
28766 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
28767 (grub_exit): New function.
28768 (grub_print_device_path): Likewise.
28769
28770 * kern/rescue.c (grub_rescue_cmd_exit): New function.
28771 (grub_enter_rescue_mode): Register "exit".
28772
28773 * kern/misc.c (grub_real_dprintf): A cosmetic change.
28774 (grub_abort): New function.
28775
28776 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
28777
28778 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
28779
28780 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
28781
28782 * include/grub/efi/efi.h (grub_efi_exit): Removed.
28783 (grub_print_device_path): New prototype.
28784 (grub_efi_locate_handle): Likewise.
28785 (grub_efi_open_protocol): Likewise.
28786
28787 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
28788 * disk/efi/efidisk.c: Likewise.
28789
28790 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
28791
28792 * include/grub/efi/console_control.h
28793 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
28794
28795 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
28796 last 8 bytes as an array.
28797 (GRUB_EFI_DISK_IO_GUID): New macro.
28798 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
28799 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
28800 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
28801 grub_uint8_t.
28802 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
28803 (struct grub_efi_device_path): Rename the member "sub_type" to
28804 "subtype".
28805 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
28806 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
28807 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
28808 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
28809 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
28810 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
28811 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
28812 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
28813 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
28814 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
28815 (struct grub_efi_pci_device_path): New structure.
28816 (grub_efi_pci_device_path_t): New type.
28817 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
28818 (struct grub_efi_pccard_device_path): New structure.
28819 (grub_efi_pccard_device_path_t): New type.
28820 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
28821 (struct grub_efi_memory_mapped_device_path): New structure.
28822 (grub_efi_memory_mapped_device_path_t): New type.
28823 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
28824 (struct grub_efi_vendor_device_path): New structure.
28825 (grub_efi_vendor_device_path_t): New type.
28826 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
28827 (struct grub_efi_controller_device_path): New structure.
28828 (grub_efi_controller_device_path_t): New type.
28829 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
28830 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
28831 (struct grub_efi_acpi_device_path): New structure.
28832 (grub_efi_acpi_device_path_t): New type.
28833 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
28834 (struct grub_efi_expanded_acpi_device_path): New structure.
28835 (grub_efi_expanded_acpi_device_path_t): New type.
28836 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
28837 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
28838 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
28839 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
28840 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
28841 (struct grub_efi_atapi_device_path): New structure.
28842 (grub_efi_atapi_device_path_t): New type.
28843 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
28844 (struct grub_efi_fibre_channel_device_path): New structure.
28845 (grub_efi_fibre_channel_device_path_t): New type.
28846 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
28847 (struct grub_efi_1394_device_path): New structure.
28848 (grub_efi_1394_device_path_t): New type.
28849 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
28850 (struct grub_efi_usb_device_path): New structure.
28851 (grub_efi_usb_device_path_t): New type.
28852 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
28853 (struct grub_efi_usb_class_device_path): New structure.
28854 (grub_efi_usb_class_device_path_t): New type.
28855 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
28856 (struct grub_efi_i2o_device_path): New structure.
28857 (grub_efi_i2o_device_path_t): New type.
28858 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
28859 (struct grub_efi_mac_address_device_path): New structure.
28860 (grub_efi_mac_address_device_path_t): New type.
28861 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
28862 (struct grub_efi_ipv4_device_path): New structure.
28863 (grub_efi_ipv4_device_path_t): New type.
28864 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
28865 (struct grub_efi_ipv6_device_path): New structure.
28866 (grub_efi_ipv6_device_path_t): New type.
28867 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
28868 (struct grub_efi_infiniband_device_path): New structure.
28869 (grub_efi_infiniband_device_path_t): New type.
28870 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
28871 (struct grub_efi_uart_device_path): New structure.
28872 (grub_efi_uart_device_path_t): New type.
28873 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
28874 (struct grub_efi_vendor_messaging_device_path): New structure.
28875 (grub_efi_vendor_messaging_device_path_t): New type.
28876 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
28877 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
28878 (struct grub_efi_hard_drive_device_path): New structure.
28879 (grub_efi_hard_drive_device_path_t): New type.
28880 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
28881 (struct grub_efi_cdrom_device_path): New structure.
28882 (grub_efi_cdrom_device_path_t): New type.
28883 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
28884 (struct grub_efi_vendor_media_device_path): New structure.
28885 (grub_efi_vendor_media_device_path_t): New type.
28886 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
28887 (struct grub_efi_file_path_device_path): New structure.
28888 (grub_efi_file_path_device_path_t): New type.
28889 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
28890 (struct grub_efi_protocol_device_path): New structure.
28891 (grub_efi_protocol_device_path_t): New type.
28892 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
28893 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
28894 (struct grub_efi_bios_device_path): New structure.
28895 (grub_efi_bios_device_path_t): New type.
28896 (struct grub_efi_disk_io): New structure.
28897 (grub_efi_disk_io_t): New type.
28898 (struct grub_efi_block_io_media): New structure.
28899 (grub_efi_block_io_media_t): New type.
28900 (struct grub_efi_block_io): New structure.
28901 (grub_efi_block_io_t): New type.
28902
28903 * include/grub/misc.h (grub_stop): Removed.
28904 (grub_exit): New prototype.
28905 (grub_abort): Likewise.
28906
28907 * include/grub/disk.h (enum grub_disk_dev_id): Added
28908 GRUB_DISK_DEVICE_EFIDISK_ID.
28909
28910 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
28911 disk/efi/efidisk.c.
28912 (kernel_syms.lst): Remove the target if an error occurs.
28913
49986a9f 289142006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
28915
28916 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
28917 as it was simply too buggy.
28918
970d3b8a 289192006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
28920
28921 * kern/misc.c (grub_lltoa): New function.
28922 (grub_vsprintf): Added support for the long long suffix,
28923 i.e. "ll".
28924
ff04ec24 289252006-04-20 Hollis Blanchard <hollis@penguinppc.org>
28926
28927 * Makefile.in (LDFLAGS): Add variable.
28928 (LD): Remove variable.
28929 * configure.ac: Add -m32 to LDFLAGS.
28930 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
28931 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
28932 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
28933 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
28934 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
28935 variables.
28936 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
28937 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
28938 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
28939
37e5e1a4 289402006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
28941
28942 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
28943 length for unknown glyph.
28944
c352d8dd 289452006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
28946
2eab1c0d 28947 Add support for pre-loaded modules into the EFI port.
f19dbdb7 28948
2eab1c0d 28949 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
28950 completely. Accept one more argument DIR. The caller has changed.
28951
28952 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
28953
28954 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
28955 (grub_efi_loaded_image_guid): New variable.
28956 (grub_efi_get_loaded_image): New function.
28957 (grub_arch_modules_addr): Likewise.
28958
28959 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
28960 prototype.
28961
28962 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
28963 (struct grub_efi_loaded_image): New structure.
28964 (grub_efi_loaded_image_t): New type.
28965
289662006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 28967
c352d8dd 28968 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
28969 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
28970 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
28971
6d01d6b4 289722006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
28973
28974 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
28975
976a4ea0 289762006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
28977
28978 * DISTLIST: Added include/grub/efi/console.h,
28979 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
28980 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
28981
28982 * include/grub/efi/console.h: New file.
28983 * include/grub/efi/time.h: Likewise.
28984 * include/grub/i386/efi/kernel.h: Likewise.
28985 * kern/efi/init.c: Likewise.
28986 * kern/efi/mm.c: Likewise.
28987 * term/efi/console.c: Likewise.
f19dbdb7 28988
976a4ea0 28989 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
28990 (grub_stop): Removed.
28991 (grub_get_rtc): Likewise.
28992 (grub_machine_init): Simply call grub_efi_init.
28993 (grub_machine_fini): Call grub_efi_fini.
28994
28995 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
28996 (grub_efi_output_string): Removed.
28997 (grub_efi_stall): New function.
28998 (grub_stop): Likewise.
28999 (grub_get_rtc): Likewise.
29000
29001 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
29002 (grub_efi_stall): New prototype.
29003 (grub_efi_allocate_pages): Likewise.
29004 (grub_efi_free_pages): Likewise.
29005 (grub_efi_get_memory_map): Likewise.
29006 (grub_efi_mm_init): Likewise.
29007 (grub_efi_mm_fini): Likewise.
29008 (grub_efi_init): Likewise.
29009 (grub_efi_fini): Likewise.
29010
29011 * include/grub/i386/efi/time.h: Do not include
29012 grub/symbol.h. Include grub/efi/time.h.
29013 (GRUB_TICKS_PER_SECOND): Removed.
29014 (grub_get_rtc): Likewise.
29015
29016 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
29017 Added padding. The EFI spec is buggy.
29018 (GRUB_EFI_BLACK): New macro.
29019 (GRUB_EFI_BLUE): Likewise.
29020 (GRUB_EFI_GREEN): Likewise.
29021 (GRUB_EFI_CYAN): Likewise.
29022 (GRUB_EFI_RED): Likewise.
29023 (GRUB_EFI_MAGENTA): Likewise.
29024 (GRUB_EFI_BROWN): Likewise.
29025 (GRUB_EFI_LIGHTGRAY): Likewise.
29026 (GRUB_EFI_BRIGHT): Likewise.
29027 (GRUB_EFI_DARKGRAY): Likewise.
29028 (GRUB_EFI_LIGHTBLUE): Likewise.
29029 (GRUB_EFI_LIGHTGREEN): Likewise.
29030 (GRUB_EFI_LIGHTCYAN): Likewise.
29031 (GRUB_EFI_LIGHTRED): Likewise.
29032 (GRUB_EFI_LIGHTMAGENTA): Likewise.
29033 (GRUB_EFI_YELLOW): Likewise.
29034 (GRUB_EFI_WHITE): Likewise.
29035 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
29036 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
29037 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
29038 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
29039 (GRUB_EFI_BACKGROUND_RED): Likewise.
29040 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
29041 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
29042 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
29043 (GRUB_EFI_TEXT_ATTR): Likewise.
29044
29045 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
29046 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29047 (kernel_mod_HEADERS): Added efi/time.h.
29048
83709125 290492006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
29050
29051 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
29052 include/grub/efi/api.h, include/grub/efi/console_control.h,
29053 include/grub/efi/efi.h, include/grub/efi/pe32.h,
29054 include/grub/i386/efi/time.h, kern/efi/efi.c,
29055 kern/i386/efi/init.c, kern/i386/efi/startup.S,
29056 and util/i386/efi/grub-mkimage.c.
29057
29058 * Makefile.in (RMKFILES): Added i386-efi.rmk.
29059
29060 * genmk.rb (PModule#rule): Do not export symbols if
29061 #{prefix}_EXPORTS is set to "no".
29062
29063 * conf/i386-efi.mk: New file.
29064 * conf/i386-efi.rmk: Likewise.
29065 * include/grub/efi/api.h: Likewise.
29066 * include/grub/efi/console_control.h: Likewise.
29067 * include/grub/efi/efi.h: Likewise.
29068 * include/grub/efi/pe32.h: Likewise.
29069 * include/grub/i386/efi/time.h: Likewise.
29070 * kern/efi/efi.c: Likewise.
29071 * kern/i386/efi/init.c: Likewise.
29072 * kern/i386/efi/startup.S: Likewise.
29073 * util/i386/efi/grub-mkimage.c: Likewise.
29074
290752006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 29076
29077 * include/grub/script.h: Include <grub/parser.h> and
29078 "grub_script.tab.h".
29079 (struct grub_lexer_param): New struct.
29080 (struct grub_parser_param): Likewise.
29081 (grub_script_create_arglist): Pass the state in an argument.
29082 (grub_script_add_arglist): Likewise.
29083 (grub_script_create_cmdline): Likewise.
29084 (grub_script_create_cmdblock): Likewise.
29085 (grub_script_create_cmdif): Likewise.
29086 (grub_script_create_cmdmenu): Likewise.
29087 (grub_script_add_cmd): Likewise.
29088 (grub_script_arg_add): Likewise.
29089 (grub_script_lexer_ref): Likewise.
29090 (grub_script_lexer_deref): Likewise.
29091 (grub_script_lexer_record_start): Likewise.
29092 (grub_script_lexer_record_stop): Likewise.
29093 (grub_script_mem_record): Likewise.
29094 (grub_script_mem_record_stop): Likewise.
29095 (grub_script_malloc): Likewise.
29096 (grub_script_yylex): Likewise.
29097 (grub_script_yyparse): Likewise.
29098 (grub_script_yyerror): Likewise.
29099 (grub_script_yylex): Likewise.
29100 (grub_script_lexer_init): Return the state.
29101
29102 * normal/lexer.c (grub_script_lexer_state): Removed variable.
29103 (grub_script_lexer_done): Likewise.
29104 (grub_script_lexer_getline): Likewise.
29105 (grub_script_lexer_refs): Likewise.
29106 (script): Likewise.
29107 (newscript): Likewise.
29108 (record): Likewise.
29109 (recording): Likewise.
29110 (recordpos): Likewise.
29111 (recordlen): Likewise.
29112 (grub_script_lexer_init): Return the state instead of setting
29113 global variables.
29114 (grub_script_lexer_ref): Use the newly added argument for state
29115 instead of globals.
29116 (grub_script_lexer_deref): Likewise.
29117 (grub_script_lexer_record_start): Likewise.
29118 (grub_script_lexer_record_stop): Likewise.
29119 (recordchar): Likewise.
29120 (nextchar): Likewise.
29121 (grub_script_yylex2): Likewise.
29122 (grub_script_yylex): Likewise.
29123 (grub_script_yyerror): Likewise.
29124
29125 * normal/parser.y (func_mem): Removed variable.
29126 (menu_entry): Likewise.
29127 (err): Likewise.
29128 (%lex-param): New parser option.
29129 (%parse-param): Likewise.
29130 (script): Always return the AST.
29131 (argument): Pass the state around.
29132 (arguments): Likewise.
29133 (grubcmd): Likewise.
29134 (commands): Likewise.
29135 (function): Likewise.
29136 (menuentry): Likewise.
29137 (if_statement): Likewise.
29138 (if): Likewise.
29139
29140 * normal/script.c (grub_script_memused): Removed variable.
29141 (grub_script_parsed): Likewise.
29142 (grub_script_malloc): Added a state argument. Use that instead of
29143 global variables.
29144 (grub_script_mem_record): Likewise.
29145 (grub_script_mem_record_stop): Likewise.
29146 (grub_script_arg_add): Likewise.
29147 (grub_script_add_arglist): Likewise.
29148 (grub_script_create_cmdline): Likewise.
29149 (grub_script_create_cmdif): Likewise.
29150 (grub_script_create_cmdmenu): Likewise.
29151 (grub_script_add_cmd): Likewise.
29152 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 29153
e2a8c904 291542006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 29155
29156 * normal/command.c (grub_command_init): Remove the title command.
29157
29158 * normal/lexer.c (grub_script_yylex): Renamed from this...
29159 (grub_script_yylex2): ... to this.
29160 (grub_script_yylex): New function. Temporary
29161 introduced to filter some tokens.
29162 (grub_script_yyerror): Print a newline.
29163
29164 * normal/main.c (read_config_file): Output information about the
29165 lines that contain errors. Wait for a key after all lines have
29166 been processed. Don't return an empty menu.
29167
29168 * normal/parser.y (func_mem): Don't initialize.
29169 (menu_entry): Likewise.
29170 (err): New variable.
29171 (script): Don't return anything when an error was encountered.
29172 (ws, returns): Removed rules.
29173 (argument): Disabled concatenated variable support.
29174 (arguments): Remove explicit separators.
29175 (grubcmd): Likewise.
29176 (function): Likewise.
29177 (menuentry): Likewise.
29178 (if): Likewise.
29179 (commands): Likewise. Add error handling.
29180
29181 * normal/script.c (grub_script_create_cmdline): If
29182 `grub_script_parsed' is 0, assume the parser encountered an error.
29183
c9a86192 291842006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
29185
29186 * configure.ac: Add support for EFI. Fix the typo
29187 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
29188
70f3b243 291892006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
29190
29191 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
29192 foreign multibyte characters should be shown correctly.
29193
65f201ad 291942006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
29195
29196 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
29197 calculation.
29198 (read_config_file): Made it to close file before returning.
29199
b4b93674 292002006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
29201
29202 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
29203 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
29204 video/i386/pc/vbefill.c.
29205
29206 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
29207 video/i386/pc/vbefill.c.
29208
29209 * include/grub/video.h (grub_video_blit_format): New enum.
29210 (grub_video_mode_info): Added new member blit_format.
29211 (grub_video_get_blit_format): New function prototype.
29212
29213 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
29214 function prototype.
29215 (grub_video_vbe_map_rgb): Likewise.
29216 (grub_video_vbe_unmap_color): Likewise.
29217
29218 * include/grub/i386/pc/vbeblit.h: New file.
29219
29220 * include/grub/i386/pc/vbefill.h: New file.
29221
29222 * video/video.c (grub_video_get_blit_format): New function.
29223 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
29224 (grub_video_vbe_map_rgb): Likewise.
29225 (grub_video_vbe_unmap_color): Likewise.
29226
29227 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
29228 optimized fills.
29229 (grub_video_vbe_blit_render_target): Changed to use more optimized
29230 blits.
29231 (grub_video_vbe_setup): Added detection for optimized settings.
29232 (grub_video_vbe_create_render_target): Likewise.
29233
29234 * video/i386/pc/vbeblit.c: New file.
29235
29236 * video/i386/pc/vbefill.c: New file.
29237
c2379b9c 292382006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
29239
29240 * font/manager.c (grub_font_get_glyph): Removed font fixup from
29241 here...
29242
29243 * util/unifont2pff.rb: ... and moved it to here. Improved argument
29244 parsing to support both hex and dec ranges. If filename was missing
29245 show usage information.
29246
bd0d7896 292472006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
29248
29249 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
29250 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
29251
29252 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
29253 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
29254 (video_mod_SOURCES): Added.
29255 (video_mod_CFLAGS): Likewise.
29256 (video_mod_LDFLAGS): Likewise.
29257 (gfxterm_mod_SOURCES): Likewise.
29258 (gfxterm_mod_CFLAGS): Likewise.
29259 (gfxterm_mod_LDFLAGS): Likewise.
29260 (videotest_mod_SOURCES): Likewise.
29261 (videotest_mod_CFLAGS): Likewise.
29262 (videotest_mod_LDFLAGS): Likewise.
29263 (vesafb_mod_SOURCES): Removed.
29264 (vesafb_mod_CFLAGS): Likewise.
29265 (vesafb_mod_LDFLAGS): Likewise.
29266 (vga_mod_SOURCES): Likewise.
29267 (vga_mod_CFLAGS): Likewise.
29268 (vga_mod_LDFLAGS): Likewise.
29269
29270 * commands/videotest.c: New file.
29271
29272 * font/manager.c (fill_with_default_glyph): Modified to use
29273 grub_font_glyph.
29274 (grub_font_get_glyph): Likewise.
29275 (fontmanager): Renamed from this...
29276 (font_manager): ... to this.
29277
29278 * include/grub/font.h (grub_font_glyph): Added new structure.
29279 (grub_font_get_glyph): Modified to use grub_font_glyph.
29280
29281 * include/grub/misc.h (grub_abs): Added as inline function.
29282
29283 * include/grub/video.h: New file.
29284
29285 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
29286 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
29287 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
29288 (grub_vbe_get_controller_info): Renamed from this...
29289 (grub_vbe_bios_get_controller_info): ... to this.
29290 (grub_vbe_get_mode_info): Renamed from this...
29291 (grub_vbe_bios_get_mode_info): ... to this.
29292 (grub_vbe_set_mode): Renamed from this...
29293 (grub_vbe_bios_set_mode): ... to this.
29294 (grub_vbe_get_mode): Renamed from this...
29295 (grub_vbe_bios_get_mode): ... to this.
29296 (grub_vbe_set_memory_window): Renamed from this...
29297 (grub_vbe_bios_set_memory_window): ... to this.
29298 (grub_vbe_get_memory_window): Renamed from this...
29299 (grub_vbe_bios_get_memory_window): ... to this.
29300 (grub_vbe_set_scanline_length): Renamed from this...
29301 (grub_vbe_set_scanline_length): ... to this.
29302 (grub_vbe_get_scanline_length): Renamed from this...
29303 (grub_vbe_bios_get_scanline_length): ... to this.
29304 (grub_vbe_set_display_start): Renamed from this...
29305 (grub_vbe_bios_set_display_start): ... to this.
29306 (grub_vbe_get_display_start): Renamed from this...
29307 (grub_vbe_bios_get_display_start): ... to this.
29308 (grub_vbe_set_palette_data): Renamed from this...
29309 (grub_vbe_bios_set_palette_data): ... to this.
29310 (grub_vbe_set_pixel_rgb): Removed.
29311 (grub_vbe_set_pixel_index): Likewise.
29312
29313 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
29314 from this...
29315 (grub_vbe_bios_get_controller_info): ... to this.
29316 (grub_vbe_get_mode_info): Renamed from this...
29317 (grub_vbe_bios_get_mode_info): ... to this.
29318 (grub_vbe_set_mode): Renamed from this...
29319 (grub_vbe_bios_set_mode): ... to this.
29320 (grub_vbe_get_mode): Renamed from this...
29321 (grub_vbe_bios_get_mode): ... to this.
29322 (grub_vbe_set_memory_window): Renamed from this...
29323 (grub_vbe_bios_set_memory_window): ... to this.
29324 (grub_vbe_get_memory_window): Renamed from this...
29325 (grub_vbe_bios_get_memory_window): ... to this.
29326 (grub_vbe_set_scanline_length): Renamed from this...
29327 (grub_vbe_set_scanline_length): ... to this.
29328 (grub_vbe_get_scanline_length): Renamed from this...
29329 (grub_vbe_bios_get_scanline_length): ... to this.
29330 (grub_vbe_set_display_start): Renamed from this...
29331 (grub_vbe_bios_set_display_start): ... to this.
29332 (grub_vbe_get_display_start): Renamed from this...
29333 (grub_vbe_bios_get_display_start): ... to this.
29334 (grub_vbe_set_palette_data): Renamed from this...
29335 (grub_vbe_bios_set_palette_data): ... to this.
29336 (grub_vbe_bios_get_controller_info): Fixed problem with registers
29337 getting corrupted after calling it. Added more pushes and pops.
29338 (grub_vbe_bios_set_mode): Likewise.
29339 (grub_vbe_bios_get_mode): Likewise.
29340 (grub_vbe_bios_get_memory_window): Likewise.
29341 (grub_vbe_bios_set_scanline_length): Likewise.
29342 (grub_vbe_bios_get_scanline_length): Likewise.
29343 (grub_vbe_bios_get_display_start): Likewise.
29344 (grub_vbe_bios_set_palette_data): Likewise.
29345
29346 * normal/cmdline.c (cl_set_pos): Refresh the screen.
29347 (cl_insert): Likewise.
29348 (cl_delete): Likewise.
29349
29350 * term/gfxterm.c: New file.
29351
29352 * term/i386/pc/vesafb.c: Removed file.
29353
29354 * video/video.c: New file.
29355
29356 * video/i386/pc/vbe.c (real2pm): Added new function.
29357 (grub_video_vbe_draw_pixel): Likewise.
29358 (grub_video_vbe_get_video_ptr): Likewise.
29359 (grub_video_vbe_get_pixel): Likewise
29360 (grub_video_vbe_init): Likewise.
29361 (grub_video_vbe_fini): Likewise.
29362 (grub_video_vbe_setup): Likewise.
29363 (grub_video_vbe_get_info): Likewise.
29364 (grub_video_vbe_set_palette): Likewise.
29365 (grub_video_vbe_get_palette): Likewise.
29366 (grub_video_vbe_set_viewport): Likewise.
29367 (grub_video_vbe_get_viewport): Likewise.
29368 (grub_video_vbe_map_color): Likewise.
29369 (grub_video_vbe_map_rgb): Likewise.
29370 (grub_video_vbe_map_rgba): Likewise.
29371 (grub_video_vbe_unmap_color): Likewise.
29372 (grub_video_vbe_fill_rect): Likewise.
29373 (grub_video_vbe_blit_glyph): Likewise.
29374 (grub_video_vbe_blit_bitmap): Likewise.
29375 (grub_video_vbe_blit_render_target): Likewise.
29376 (grub_video_vbe_scroll): Likewise.
29377 (grub_video_vbe_swap_buffers): Likewise.
29378 (grub_video_vbe_create_render_target): Likewise.
29379 (grub_video_vbe_delete_render_target): Likewise.
29380 (grub_video_vbe_set_active_render_target): Likewise.
29381 (grub_vbe_set_pixel_rgb): Remove function.
29382 (grub_vbe_set_pixel_index): Likewise.
29383 (index_color_mode): Remove static variable.
29384 (active_mode): Likewise.
29385 (framebuffer): Likewise.
29386 (bytes_per_scan_line): Likewise.
29387 (grub_video_vbe_adapter): Added new static variable.
29388 (framebuffer): Likewise.
29389 (render_target): Likewise.
29390 (initial_mode): Likewise.
29391 (mode_in_use): Likewise.
29392 (mode_list): Likewise.
29393
5f97350b 293942006-03-10 Marco Gerards <marco@gnu.org>
29395
29396 * configure.ac (AC_INIT): Bumped to 1.93.
29397
29398 * DISTLIST: Added `include/grub/hfs.h'.
29399
a3c5c6f8 294002006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
29401
29402 * boot/i386/pc/boot.S (general_error): Before looping, try INT
29403 18H, which might help the BIOS falling back to next boot media.
29404
6de53d26 294052006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
29406
29407 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
29408 Poe Chen <poe.poechen@gmail.com>.
29409
77c4a393 294102006-01-17 Marco Gerards <marco@gnu.org>
29411
29412 * include/grub/normal.h: Include <grub/script.h>.
29413 (grub_command_list): Removed struct.
29414 (grub_command_list_t): Removed type.
29415 (grub_menu_entry): Remove members `num' and `command_list'. Add
29416 members `commands' and `sourcecode'.
29417 * include/grub/script.h: Add inclusion guards.
29418 (grub_script_cmd_menuentry): New struct.
29419 (grub_script_execute_menuentry): New prototype.
29420 (grub_script_lexer_record_start): Likewise.
29421 (grub_script_lexer_record_stop): Likewise.
29422 * normal/execute.c (grub_script_execute_menuentry): New function.
29423 * normal/lexer.c (record, recording, recordpos, recordlen): New
29424 variables.
29425 (grub_script_lexer_record_start): New function.
29426 (grub_script_lexer_record_stop): Likewise.
29427 (recordchar): Likewise.
29428 (nextchar): Likewise.
29429 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
29430 2048 as the buffer size. Add the tokens `menuentry' and `@'.
29431 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
29432 (current_menu): New variable.
29433 (free_menu): Mainly rewritten.
29434 (grub_normal_menu_addentry): New function.
29435 (read_config_file): Rewritten.
29436 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 29437 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 29438 the menu entry.
29439 (run): Mainly rewritten.
29440 * normal/parser.y (menu_entry): New variable.
29441 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
29442 (menuentry): New rule.
29443 (command): Add `menuentry'.
29444 (if_statement): Allow additional returns before `fi'.
29445 * normal/script.c (grub_script_create_cmdmenu): New function.
29446
144f1f98 294472006-01-03 Marco Gerards <marco@gnu.org>
29448
29449 * INSTALL: GNU Bison is required.
29450 * configure.ac: Rewritten the test to detect Bison.
29451 * Makefile.in (YACC): New variable. Reported by Xun Sun
29452 <xun.sun.cn@gmail.com>.
29453
af4b2d89 294542006-01-03 Marco Gerards <marco@gnu.org>
29455
29456 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
29457 the HFS+ filesystem to filesystem blocks.
29458 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
29459 GCC warning is silenced.
29460
15643b71 294612006-01-03 Marco Gerards <marco@gnu.org>
29462
29463 * partmap/apple.c (apple_partition_map_iterate): Convert the data
29464 read from disk from big endian to host byte order.
29465
00905879 294662006-01-03 Hollis Blanchard <hollis@penguinppc.org>
29467
29468 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
29469 documentation.
29470 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
29471 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
29472 embedded HFS+ filesystem.
29473 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
29474 (grub_hfs_sblock): Move from here...
29475 * include/grub/hfs.h: To here... New file.
29476 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
29477 documentation.
29478 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
29479 New macros.
29480 (grub_hfsplus_volheader): Change type of member `magic' to
29481 `grub_uint16_t'.
29482 (grub_hfsplus_data): Add new member `embedded_offset'.
29483 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
29484 returned block.
29485 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
29486 Calculate the offset.
29487
8899bc3e 294882005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29489
29490 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
29491 Removed.
29492 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
29493
ae8c0277 294942005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29495
29496 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
29497 ENV->NAME is NULL after allocating ENV->VALUE.
29498
07084456 294992005-12-25 Marco Gerards <marco@gnu.org>
29500
29501 * kern/env.c (grub_env_set): Rewritten the error handling code.
29502
4750f5f1 295032005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29504
29505 * geninit.sh: Made more robust, and more portable.
29506
50214199 295072005-12-25 Marco Gerards <marco@gnu.org>
29508
29509 Add support for Apple HFS+ filesystems.
f19dbdb7 29510
50214199 29511 * fs/hfsplus.c: New file.
29512
29513 * DISTLIST: Added `fs/hfsplus.c'.
29514
29515 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
29516 (hfsplus_mod_SOURCES): New variable.
29517 (hfsplus_mod_CFLAGS): Likewise.
29518 (hfsplus_mod_LDFLAGS): Likewise.
29519 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
29520 (grub_setup_SOURCES): Likewise.
29521 (grub_mkdevicemap_SOURCES): Likewise.
29522 (grub_emu_SOURCES): Likewise.
29523 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29524
29525 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
29526
29527 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
29528
befaed6c 295292005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29530
29531 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
29532 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
29533 include/grub/parser.h, include/grub/script.h, kern/parser.c,
29534 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
29535 normal/lexer.c, normal/parser.y, normal/script.c, and
29536 partmap/gpt.c.
29537 Removed kern/sparc64/cache.c.
29538
29539 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
29540 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
29541 grub_emu_init.c.
29542
29543 * configure.ac (AC_INIT): Bumped to 1.92.
29544
6a124103 295452005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
29546
29547 * kern/err.c (grub_error_push): Added new function to support error
29548 stacks.
29549 (grub_error_pop): Likewise.
29550 (grub_error_stack_items): New local variable to support error stacks.
29551 (grub_error_stack_pos): Likewise.
29552 (grub_error_stack_assert): Likewise.
29553 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
29554 stack depth.
29555 (grub_print_error): Added support to print errors from error stack.
29556
29557 * include/grub/err.h (grub_error_push): Added function prototype.
29558 (grub_error_pop): Likewise.
29559
be973c1b 295602005-12-09 Hollis Blanchard <hollis@penguinppc.org>
29561
29562 * configure.ac: Accept `powerpc64' as host_cpu.
29563 (amd64): Rename to `biarch32'.
29564
29565 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
29566 non-cacheline-aligned addresses.
29567
29568 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
29569 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
29570 if `size' is non-zero.
29571
b04216ab 295722005-12-03 Marco Gerards <mgerards@xs4all.nl>
29573
29574 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
29575 and `cd' to make sure the filename is not prefixed with a
29576 directory name.
29577 (pkgdata_MODULES): Add `gpt.mod'.
29578 (gpt_mod_SOURCES): New variable.
29579 (gpt_mod_CFLAGS): Likewise.
29580 (gpt_mod_LDFLAGS): Likewise.
29581
29582 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
29583
29584 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
29585 New macro.
29586
29587 * partmap/gpt.c: New file.
29588
29589 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
29590 GPT partition map is detected.
29591
41730ed9 295922005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
29593
29594 * commands/i386/pc/play.c: New file.
29595 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
29596 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
29597 macros.
f19dbdb7 29598
95dc3643 295992005-11-27 Marco Gerards <mgerards@xs4all.nl>
29600
29601 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
29602 ((unused))' to silence gcc warning.
29603
1569ec51 296042005-11-26 Hollis Blanchard <hollis@penguinppc.org>
29605
29606 * configure.ac: Correct `AC_PROG_YACC' test.
29607
9abde152 296082005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29609
29610 * util/powerpc/ieee1275/grub-install.in: Run the mount point
29611 check before installing files.
29612
44b83271 296132005-11-22 Mike Small <smallm@panix.com>
29614
29615 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
29616 number regex so multidigit numbers are recognized correctly.
29617
296182005-11-22 Mike Small <smallm@panix.com>
29619
29620 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
29621 debugging message before attempting to claim memory.
29622 (grub_rescue_cmd_initrd): Add a claim debugging message and try
29623 multiple addresses in case of failure.
29624
9c12956b 296252005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29626
29627 * term/tparm.c (get_space): Remove empty `if' statement.
29628
29629 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
29630
29631 * kern/parser.c (check_varstate): Rename `state' to 's'.
29632
aeaf81d9 296332005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29634
29635 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
29636 variable definitions to the beginning of each function. Sort stack
29637 variables by size.
29638 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
29639 `buf' argument to `char *'.
29640
79bbb63f 296412005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29642
29643 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
29644 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 29645 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 29646 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29647 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29648 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29649 configfile.mod, search.mod, gzio.mod and test.mod.
29650 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29651 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29652 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29653 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29654 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29655 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29656 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29657 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29658 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29659 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29660 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29661 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29662 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29663 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29664 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29665 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29666 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29667 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29668 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29669 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29670 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29671 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29672 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
29673
29674 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
29675 `grep --include'.
29676 (pkgdata_MODULES): Add test.mod.
29677
233b1628 296782005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29679
29680 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
29681 appending to variables with "+=".
29682 (PModule): Use full pathname to generate *.lst filenames.
29683
29684 * Makefile.in: Fixed list rules moved from genmk.rb.
29685 (.DELETE_ON_ERROR): New special target.
29686 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
29687
29688 * conf/i386-pc.rmk: Include conf/common.mk.
29689 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 29690 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 29691 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29692 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29693 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29694 configfile.mod, search.mod, gzio.mod and test.mod.
29695 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29696 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29697 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29698 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29699 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29700 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29701 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29702 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29703 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29704 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29705 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29706 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29707 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29708 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29709 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29710 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29711 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29712 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29713 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29714 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29715 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29716 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29717 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
29718 here...
29719 * conf/common.rmk: ... to here. New file.
29720
29721 * conf/common.mk: New file.
29722
16f820c8 297232005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
29724
29725 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
29726 (grub_script.tab.c): ... here.
29727
29728 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
29729 (grub_script.tab.c): ... here.
29730
29731 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
29732 (grub_script.tab.c): ... here.
29733
29734 * normal/command.c (grub_command_find): Fixed a memory leak of
29735 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
29736
63ba1554 297372005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29738
29739 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
29740 "@" which marks the start of a comment on ARM.
29741 (VARIABLE): Likewise.
29742
7f67dc13 297432005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29744
79bbb63f 29745 Add support for Linux/ADFS partition tables.
7f67dc13 29746
29747 * partmap/acorn.c: New file.
29748
29749 * include/grub/acorn_filecore.h: Likewise.
29750
29751 * DISTLIST: Added `partmap/acorn.c' and
29752 `include/grub/acorn_filecore.h'.
f19dbdb7 29753
7f67dc13 29754 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29755 `partmap/acorn.c'.
29756 (pkgdata_MODULES): Add `acorn.mod'.
29757 (acorn_mod_SOURCES): New variable.
29758 (acorn_mod_CFLAGS): Likewise.
29759
29760 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29761 `partmap/acorn.c'.
29762 (pkgdata_MODULES): Add `acorn.mod'.
29763 (acorn_mod_SOURCES): New variable.
29764 (acorn_mod_CFLAGS): Likewise.
29765
29766 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
29767 (pkgdata_MODULES): Add `acorn.mod'.
29768 (acorn_mod_SOURCES): New variable.
29769 (acorn_mod_CFLAGS): Likewise.
29770 (acorn_mod_LDFLAGS): Likewise.
29771
29772 * include/types.h (grub_disk_addr_t): New typedef.
29773
6d099807 297742005-11-13 Marco Gerards <mgerards@xs4all.nl>
29775
29776 * geninit.sh: New file.
29777
29778 * geninitheader.sh: Likewise.
29779
29780 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
29781 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
29782 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
29783 * commands/configfile.c (grub_configfile_init)
29784 (grub_configfile_fini): Likewise.
29785 * commands/default.c (grub_default_init, grub_default_fini):
29786 Likewise.
29787 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
29788 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
29789 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
29790 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
29791 Likewise.
29792 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
29793 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
29794 Likewise.
29795 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 29796 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 29797 Likewise.
29798 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
29799 Likewise.
fe6b695a 29800 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 29801 Likewise.
29802 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
29803 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
29804 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
29805 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
29806 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
29807 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
29808 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
29809 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
29810 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
29811 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
29812 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
29813 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
29814 * partmap/amiga.c (grub_amiga_partition_map_init)
29815 (grub_amiga_partition_map_fini): Likewise.
29816 * partmap/apple.c (grub_apple_partition_map_init)
29817 (grub_apple_partition_map_fini): Likewise.
29818 * partmap/pc.c (grub_pc_partition_map_init)
29819 (grub_pc_partition_map_fini): Likewise.
29820 * partmap/sun.c (grub_sun_partition_map_init,
29821 grub_sun_partition_map_fini): Likewise.
29822 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
29823 Likewise.
29824
29825 * util/grub-emu.c: Include <grub_modules_init.h>.
29826 (main): Don't initialize and de-initialize any modules directly,
29827 use `grub_init_all' and `grub_fini_all' instead.
29828
29829 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
29830 `grub_vesafb_mod_init'.
29831 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
29832 all users.
29833 * term/i386/pc/vga.c (grub_vga_init): Renamed to
29834 `grub_vga_mod_init'. Updated all users.
29835 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 29836
6d099807 29837 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
29838 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
29839 rules.
29840
29841 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
29842 Generate a function to initialize the module in utilities.
29843 Updated all callers.
29844 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
29845 initialize the module in utilities. Updated all callers.
29846
9046bcf0 298472005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29848
29849 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
29850 escape sequence and a literal ^L to clear the screen.
29851
29852 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
29853 when returning from Open Firmware.
29854
d13ea639 298552005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29856
29857 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
29858 (grub_ofconsole_height): Likewise.
29859 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
29860 manually insert a '\n'.
29861 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
29862 `grub_ofconsole_height'. Return early if these are already set.
29863
a8fcf206 298642005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
29865
29866 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29867 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
29868 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
29869 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
29870 and `normal/script.c'.
29871 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29872 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29873 (test_mod_SOURCES): New variable.
29874 (test_mod_CFLAGS): Likewise.
29875 (test_mod_LDFLAGS): Likewise.
29876 (pkgdata_MODULES): Add `test.mod'.
29877 (grub_script.tab.c): New rule.
29878 (grub_script.tab.h): Likewise.
29879
b6b32745 298802005-11-07 Marco Gerards <mgerards@xs4all.nl>
29881
29882 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29883 `commands/test.c', `normal/execute.c', `normal/lexer.c',
29884 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29885 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29886 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29887 (test_mod_SOURCES): New variable.
29888 (test_mod_CFLAGS): Likewise.
29889 (pkgdata_MODULES): Add `test.mod'.
29890 (grub_script.tab.c): New rule.
29891 (grub_script.tab.h): Likewise.
29892
daac212a 298932005-11-06 Marco Gerards <mgerards@xs4all.nl>
29894
29895 Add initial scripting support.
29896
29897 * commands/test.c: New file.
29898 * include/grub/script.h: Likewise.
29899 * normal/execute.c: Likewise.
29900 * normal/function.c: Likewise.
29901 * normal/lexer.c: Likewise.
29902 * normal/parser.y: Likewise.
29903 * normal/script.c: Likewise.
29904
29905 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 29906
daac212a 29907 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
29908 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
29909 `normal/function.c' and `normal/script.c'.
29910 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29911 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 29912 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
29913 variables.
daac212a 29914 (pkgdata_MODULES): Add `test.mod'.
29915 (grub_script.tab.c): New rule.
29916 (grub_script.tab.h): Likewise.
29917
29918 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
29919
29920 * include/grub/normal.h (grub_test_init): New prototype.
29921 (grub_test_fini): Likewise.
f19dbdb7 29922
daac212a 29923 * normal/command.c: Include <grub/script.h>.
29924 (grub_command_execute): Rewritten.
f19dbdb7 29925
daac212a 29926 * util/grub-emu.c (main): Call `grub_test_init' and
29927 `grub_test_fini'.
29928
77500b2b 299292005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29930
29931 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
29932 to 0.
29933 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
29934 there are no pending characters.
29935
e45deb9e 299362005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29937
29938 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
29939 `grub_strndup' to drop device arguments. Replace unnecessary
29940 `grub_strndup' with `grub_strdup'.
29941
4ce32619 299422005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29943
29944 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
29945 `debug' environment variable has been set.
29946
299472005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 29948
4ce32619 29949 * Makefile.in (install-local): Use $(DATA).
29950 (uninstall): Likewise.
29951 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
29952 (sbin_UTILITIES): ... to here.
29953 (sbin_SCRIPTS): New variable.
29954 (grub_install_SOURCES): New variable.
29955 * util/powerpc/ieee1275/grub-install.in: New file.
29956 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
29957 variable.
29958 (add_segments): Call `grub_util_get_path'.
29959
25fe6f03 299602005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29961
29962 From Timothy Baldwin:
29963 * commands/ls.c (grub_ls_list_files): Close FILE with
29964 grub_file_close.
29965 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
29966
04ccf3ec 299672005-10-24 Marco Gerards <mgerards@xs4all.nl>
29968
29969 * include/grub/parser.h: New file.
29970
29971 * kern/parser.c: Likewise.
29972
29973 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
29974 (grub_setup_SOURCES): Likewise.
29975 (grub_probefs_SOURCES): Likewise.
29976 (grub_emu_SOURCES): Likewise.
29977 (kernel_img_HEADERS): Add `parser.h'.
29978
29979 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
29980 (grub_emu_SOURCES): Add `kern/parser.c'.
29981 (grubof_SOURCES): Likewise.
29982
29983 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
29984 (grubof_SOURCES): Add `kern/parser.c'.
29985
29986 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
29987
29988 * kern/misc.c (grub_split_cmdline): Removed function.
29989
29990 * kern/rescue.c: Include <grub/parser.h>.
29991 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
29992 of `grub_split_cmdline'.
29993
29994 * normal/command.c: Include <grub/parser.h>.
29995 (grub_command_execute): Use `grub_parser_split_cmdline' instead
29996 of `grub_split_cmdline'.
29997
29998 * normal/completion.c: Include <grub/parser.h>.
29999 (cmdline_state): New variable.
30000 (iterate_dir): End the filename with a quote depending on the
30001 command line state.
30002 (get_state): new function.
30003 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
30004 split the arguments and determine the current argument. When the
30005 argument string is not quoted, escape all spaces.
30006
6d8f4b0e 300072005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30008
30009 * normal/sparc64/setjmp.S: New file.
30010
15cf03ed 300112005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30012
30013 * include/grub/sparc64/libgcc.h: New file.
30014 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
30015 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
30016 normal/sparc64/setjmp.c.
30017
03e8661a 300182005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30019
30020 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
30021 * kern/sparc64/cache.S: New file.
30022 * kern/sparc64/cache.c: Removed.
30023 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
30024 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
30025 -mtune=ultrasparc.
30026 (COMMON_LDFLAGS): Add -melf64_sparc.
30027 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
30028 (grubof_SOURCES): Use cache.S instead of cache.c.
30029 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
30030 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
30031 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
30032 commented though.
30033 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
30034 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
30035 (linux_mod_CFLAGS): Commented out.
30036 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
30037 out because module isn't built.
30038 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
30039 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
30040 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
30041 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
30042 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
30043 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30044 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30045 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
30046 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
30047 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
30048 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30049 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30050 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
30051 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
30052
34eeec8a 300532005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
30054
30055 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
30056 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
30057 longer, because HFS should not be used on PC.
30058
708367a3 300592005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30060
30061 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
30062 consistently within the loop.
30063
6fa1251a 300642005-10-15 Marco Gerards <mgerards@xs4all.nl>
30065
30066 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
30067 directory can not be read.
30068
4801580b 300692005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30070
30071 * configure.ac (AC_INIT): Increase the version number to 1.91.
30072
30073 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
30074 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
30075 term/i386/pc/serial.c.
30076
219ad426 300772005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30078
30079 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
30080 file size must be permitted.
30081
30082 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
30083 between %ah and %al.
30084
688e5699 300852005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30086
30087 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
30088 grub_uint64_t.
30089 Call the hook with a NUL-terminated filename.
30090 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
30091 grub_cpu_to_be32.
30092
30093 * kern/term.c (cursor_state): New variable.
30094 (grub_term_set_current): Reset the cursor state on a new
30095 terminal.
30096 (grub_setcursor): Rewritten to use CURSOR_STATE.
30097 (grub_getcursor): New function.
30098
30099 * include/grub/term.h (grub_getcursor): New prototype.
30100
30101 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
30102 integers on ARM. Reported by Timothy Baldwin
30103 <T.E.Baldwin99@members.leeds.ac.uk>.
30104
bb34586c 301052005-10-11 Marco Gerards <mgerards@xs4all.nl>
30106
30107 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
30108 allocated.
30109 (grub_sfs_dir): Likewise.
30110
9a909877 301112005-10-09 Marco Gerards <mgerards@xs4all.nl>
30112
30113 Add support for the SFS filesystem.
30114
30115 * fs/sfs.c: New file.
30116
30117 * DISTLIST: Added `fs/sfs.c'.
30118
30119 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
30120 (grub_probefs_SOURCES): Likewise.
30121 (grub_emu_SOURCES): Likewise.
30122 (pkgdata_MODULES): Add `sfs.mod'.
30123 (sfs_mod_SOURCES): New variable.
30124 (sfs_mod_CFLAGS): Likewise.
30125 (sfs_mod_LDFLAGS): Likewise.
30126
30127 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
30128 (pkgdata_MODULES): Add `sfs.mod'.
30129 (sfs_mod_SOURCES): New variable.
30130 (sfs_mod_CFLAGS): Likewise.
30131
30132 * util/grub-emu.c (main): Call `grub_sfs_init' and
30133 `grub_sfs_fini'.
30134
30135 * include/grub/fs.h (grub_sfs_init): New prototype.
30136 (grub_sfs_fini): Likewise.
30137
57bdbde3 301382005-10-07 Marco Gerards <mgerards@xs4all.nl>
30139
30140 Add support for the AFFS filesystem.
30141
30142 * fs/affs.c: New file.
30143
30144 * DISTLIST: Added `fs/affs.c'.
30145
30146 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
30147 (grub_probefs_SOURCES): Likewise.
30148 (grub_emu_SOURCES): Likewise.
30149 (pkgdata_MODULES): Add `affs.mod'.
30150 (affs_mod_SOURCES): New variable.
30151 (affs_mod_CFLAGS): Likewise.
30152 (affs_mod_LDFLAGS): Likewise.
30153
30154 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
30155 (pkgdata_MODULES): Add `affs.mod'.
30156 (affs_mod_SOURCES): New variable.
30157 (affs_mod_CFLAGS): Likewise.
30158
30159 * util/grub-emu.c (main): Call `grub_affs_init' and
30160 `grub_affs_fini'.
30161
30162 * include/grub/fs.h (grub_affs_init): New prototype.
30163 (grub_affs_fini): Likewise.
30164
047b67e0 301652005-10-01 Marco Gerards <mgerards@xs4all.nl>
30166
30167 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
30168
59b8208a 301692005-10-01 Marco Gerards <mgerards@xs4all.nl>
30170
30171 * configure.ac: Accept `x86_64' as host_cpu. In that case add
30172 `-m32' to CFLAGS.
30173
30174 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
30175 linking.
f19dbdb7 30176
59b8208a 30177 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
30178 (COMMON_LDFLAGS): New variable.
30179 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
30180 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
30181 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
30182 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
30183 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
30184 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
30185 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
30186 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
30187 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
30188 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
30189 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30190 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30191 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
30192 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
30193 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
30194 variables.
30195 (normal_mod_ASFLAGS): Add `-m32'.
30196
30197 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
30198 (grub_host_size_t, grub_host_ssize_t): New types.
30199 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 30200 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 30201 `GRUB_HOST_SIZEOF_VOID_P'.
30202
30203 * include/grub/kernel.h (struct grub_module_header): Type of
30204 member offset changed to `grub_host_off_t'. Type of member size
30205 changed to `grub_host_size_t'.
30206 (struct grub_module_info): Type of member offset changed to
30207 `grub_host_off_t'. Type of member size changed to
30208 `grub_host_size_t'.
30209
b4093103 302102005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
30211
30212 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 30213
b4093103 30214 * kern/i386/pc/startup.S (multiboot_header): New label.
30215 (multiboot_entry): Likewise.
30216 (multiboot_trampoline): Likewise.
30217
30218 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30219 Increased to 0x4A0.
30220
30221 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
30222 put parentheses after a question mark.
30223 [!GRUB_UTIL] (my_mod): New variable.
30224
30225 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
30226
b2499b29 302272005-09-28 Marco Gerards <mgerards@xs4all.nl>
30228
30229 Adds support for the XFS filesystem. Btrees are not supported
30230 yet.
30231
30232 * fs/xfs.c: New file.
30233
30234 * DISTLIST: Added `fs/xfs.c'.
30235
30236 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
30237 (grub_probefs_SOURCES): Likewise.
30238 (grub_emu_SOURCES): Likewise.
30239 (pkgdata_MODULES): Add `xfs.mod'.
30240 (xfs_mod_SOURCES): New variable.
30241 (xfs_mod_CFLAGS): Likewise.
30242
30243 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
30244 (pkgdata_MODULES): Add `xfs.mod'.
30245 (xfs_mod_SOURCES): New variable.
30246 (xfs_mod_CFLAGS): Likewise.
30247
30248 * util/grub-emu.c (main): Call `grub_xfs_init' and
30249 `grub_xfs_fini'.
30250
30251 * include/grub/fs.h (grub_xfs_init): New prototype.
30252 (grub_xfs_fini): Likewise.
30253
f19dbdb7 30254
83d37a62 302552005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
30256
30257 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
30258 color modes, allow greater than 16 colors to be configured as
30259 a default palette.
30260
47d2d65e 302612005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30262
30263 * normal/completion.c (complete_arguments): Add the qualifier
30264 const into OPTIONS.
30265
30266 From Omniflux <omniflux+lists@omniflux.com>:
30267 * include/grub/terminfo.h: New file.
30268 * include/grub/tparm.h: Likewise.
30269 * include/grub/i386/pc/serial.h: Likewise.
30270 * term/terminfo.c: Likewise.
30271 * term/tparm.c: Likewise.
30272 * term/i386/pc/serial.c: Likewise.
30273 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
30274 serial.mod.
30275 (terminfo_mod_SOURCES): New variable.
30276 (terminfo_mod_CFLAGS): Likewise.
30277 (serial_mod_SOURCES): Likewise.
30278 (serial_mod_CFLAGS): Likewise.
30279
48b671ff 302802005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
30281
30282 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
30283 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
30284 and kern/powerpc/ieee1275/cmain.c, respectively.
30285
30286 * boot/powerpc/ieee1275/crt0.S: Moved to ...
30287 * kern/powerpc/ieee1275/crt0.S: ... here.
30288
30289 * boot/powerpc/ieee1275/cmain.c: Moved to ...
30290 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 30291
48b671ff 30292 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
30293 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
30294 instead of boot/powerpc/ieee1275/crt0.S and
30295 boot/powerpc/ieee1275/cmain.c, respectively.
30296
30297 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
30298 sectors. It was not used anyway.
30299
09fc77a7 303002005-08-30 Hollis Blanchard <hollis@penguinppc.org>
30301
30302 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
30303 `unused parameter' warning.
30304
003789c7 303052005-08-30 Hollis Blanchard <hollis@penguinppc.org>
30306
30307 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
30308 function.
30309 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
30310 getcharwidth.
30311
67f44c86 303122005-08-28 Marco Gerards <metgerards@student.han.nl>
30313
30314 * include/grub/normal.h (enum grub_completion_type): Added
30315 `GRUB_COMPLETION_TYPE_ARGUMENT'.
30316
30317 * normal/cmdline.c (print_completion): Handle
30318 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
30319 * normal/menu_entry.c (store_completion): Likewise.
30320
30321 * normal/completion.c (complete_arguments): New function.
30322 (grub_normal_do_completion): Call `complete_arguments' when the
30323 current words start with a dash.
30324
0b5abe02 303252005-08-27 Marco Gerards <metgerards@student.han.nl>
30326
30327 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
30328 `gzio.mod' instead of `io.mod').
30329
d9864ee1 303302005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
30331
30332 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
30333 (DISTDIRS): Added io and video.
30334 Rewrite the search routine to make an output consistently.
30335
30336 * DISTLIST: Added conf/sparc64-ieee1275.mk,
30337 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
30338 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
30339 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
30340 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
30341 util/powerpc/ieee1275/misc.c.
f19dbdb7 30342
d9864ee1 30343 * include/grub/gzio.h: New file.
30344 * io/gzio.c: Likewise.
f19dbdb7 30345
d9864ee1 30346 * kern/file.c (grub_file_close): Call grub_device_close only if
30347 FILE->DEVICE is not NULL.
30348
30349 * include/grub/mm.h [!NULL] (NULL): New macro.
30350
30351 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
30352
30353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
30354 (pkgdata_MODULES): Added gzio.mod.
30355 (gzio_mod_SOURCES): New variable.
30356 (gzio_mod_CFLAGS): Likewise.
30357
30358 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
30359 (pkgdata_MODULES): Added gzio.mod.
30360 (gzio_mod_SOURCES): New variable.
30361 (gzio_mod_CFLAGS): Likewise.
30362
30363 * commands/cat.c: Include grub/gzio.h.
30364 (grub_cmd_cat): Use grub_gzfile_open instead of
30365 grub_file_open.
f19dbdb7 30366
d9864ee1 30367 * commands/cmp.c: Include grub/gzio.h.
30368 (grub_cmd_cmp): Use grub_gzfile_open instead of
30369 grub_file_open.
30370
30371 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
30372 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
30373 grub_file_open.
30374 (grub_rescue_cmd_module): Likewise.
30375
fa46f4b5 303762005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30377
30378 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
30379 kern/sparc64/ieee1275/init.c because it contains _start.
30380 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
30381
e9211b5d 303822005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30383
30384 * configure.ac: Add support for sparc64 host with ieee1275
30385 firmware.
30386 * configure: Generated from configure.ac.
30387 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
30388 instead of int.
30389 (grub_ofdisk_read): Likewise.
30390 (grub_ofdisk_open): Use %p to print pointer values, and cast the
30391 pointers as (void *) to remove a warning.
30392 (grub_ofdisk_close): Likewise.
30393 (grub_ofdisk_read): Likewise.
30394 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
30395 returns, so make it return void to remove a warning.
30396 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
30397 Corresponding prototype change.
30398 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
30399 values, and cast the pointers as (void *) to remove a warning.
30400 (grub_mm_dump): Likewise.
30401 * conf/sparc64-ieee1275.mk: New file.
30402 * conf/sparc64-ieee1275.rmk: Likewise.
30403 * include/grub/sparc64/setjmp.h: Likewise.
30404 * include/grub/sparc64/types.h: Likewise.
30405 * include/grub/sparc64/ieee1275/console.h: Likewise.
30406 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
30407 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30408 * include/grub/sparc64/ieee1275/time.h: Likewise.
30409 * kern/sparc64/cache.c: Likewise.
30410 * kern/sparc64/dl.c: Likewise.
30411 * kern/sparc64/ieee1275/init.c: Likewise.
30412 * kern/sparc64/ieee1275/openfw.c: Likewise.
30413
385c6a92 304142005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
30415
30416 * util/console.c (grub_ncurses_putchar): If C is greater than
30417 0x7f, set C to a question mark.
30418 (grub_ncurses_getcharwidth): New function.
30419 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
30420 getcharwidth.
30421
30422 * normal/menu.c (print_entry): Made aware of Unicode. First,
30423 convert TITLE to UCS-4, and predict the cursor position by
30424 grub_getcharwidth.
30425
30426 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
30427 const to SRC.
30428 * kern/misc.c (grub_utf16_to_utf8): Likewise.
30429
16ccb8b1 304302005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30431
30432 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
30433 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30434 grub_strcat.
30435
30436 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
30437 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30438 grub_strcpy and grub_strlen. Take it into account that a space
30439 character is inserted as a delimiter.
30440
6a85ce79 304412005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30442
30443 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 30444 invalid magic in the error.
6a85ce79 30445
30446 * commands/search.c: New file.
f19dbdb7 30447
6a85ce79 30448 * util/grub-emu.c (main): Call grub_search_init and
30449 grub_search_fini.
30450
30451 * kern/rescue.c (grub_rescue_print_disks): Removed.
30452 (grub_rescue_print_devices): New function.
30453 (grub_rescue_cmd_ls): Use grub_device_iterate with
30454 grub_rescue_print_devices instead of grub_disk_dev_iterate with
30455 grub_rescue_print_disks.
30456
30457 * kern/partition.c (grub_partition_iterate): Return the result of
30458 PARTMAP->ITERATE instead of GRUB_ERRNO.
30459
30460 * kern/device.c: Include grub/partition.h.
30461 (grub_device_iterate): New function.
30462
30463 * include/grub/partition.h (grub_partition_iterate): Return int
30464 instead of grub_err_t.
30465
30466 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
30467 prototype.
30468 [GRUB_UTIL] (grub_search_fini): Likewise.
30469
30470 * include/grub/device.h (grub_device_iterate): New prototype.
30471
30472 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30473 commands/search.c.
30474 (pkgdata_MODULES): Added search.mod.
30475 (search_mod_SOURCES): New variable.
30476 (search_mod_CFLAGS): Likewise.
30477
30478 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
30479 (pkgdata_MODULES): Added search.mod.
30480 (search_mod_SOURCES): New variable.
30481 (search_mod_CFLAGS): Likewise.
30482
30483 * commands/ls.c (grub_ls_list_disks): Renamed to ...
30484 (grub_ls_list_devices): ... this, and use grub_device_iterate.
30485 All callers changed.
30486
30487 * DISTLIST: Added commands/search.c.
30488
ef095434 304892005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30490
30491 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
30492 conversion.
30493 (grub_getcharwidth): New function.
30494
30495 * kern/misc.c (grub_utf8_to_ucs4): New function.
30496
30497 * include/grub/term.h (struct grub_term): Added a new member
30498 "getcharwidth".
30499 (grub_getcharwidth): New prototype.
30500
30501 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
30502
30503 * term/i386/pc/console.c (map_char): New function. Segregated from
30504 grub_console_putchar.
30505 (grub_console_putchar): Use map_char.
30506 (grub_console_getcharwidth): New function.
30507 (grub_console_term): Specified grub_console_getcharwidth as
30508 getcharwidth.
30509
30510 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
30511 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
30512
30513 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
30514 GRUB_ERRNO.
30515 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
30516 on grub_strtoul completely.
30517 (write_char): Declare local variables in the beginning of the
30518 function.
30519 (grub_vesafb_getcharwidth): New function.
30520 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
30521 getcharwidth.
30522
1f0a95e4 305232005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
30524
30525 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
30526 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
30527 commands/i386/pc/vbetest.c.
30528
30529 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
30530 call grub_vbe_get_controller_info again, because the returned
30531 information is volatile.
30532 (grub_vbe_set_video_mode): Mostly rewritten.
30533 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
30534 grub_vbe_status_t correctly.
30535 (grub_vbe_get_video_mode_info): Likewise.
30536 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
30537 several if statements.
30538
30539 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
30540 * commands/i386/pc/vbeinfo.c: ... this.
30541
30542 * commands/i386/pc/vbe_test.c: Renamed to ...
30543 * commands/i386/pc/vbetest.c: ... this.
30544
30545 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
30546 ...
30547 (grub_cmd_vbeinfo): ... this. Save video modes before
30548 iterating. Skip a video mode, if it is not available, not enough
30549 information is given or it is monochrome. Show the memory
30550 model. Leave the interpretation of MODEVAR to grub_strtoul
30551 completely.
30552 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
30553 (GRUB_MOD_FINI): Likewise.
30554
30555 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
30556 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
30557 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
30558 duplicated grub_env_get. Leave the interpretation of MODEVAR to
30559 grub_strtoul completely.
30560 (real2pm): Removed.
30561 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
30562 (GRUB_MOD_FINI): Likewise.
30563
30564 * normal/misc.c: Include grub/mm.h.
30565
30566 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
30567 vbe_list_modes with vbetest.mod and vbeinfo.mod.
30568 (vbe_list_modes_mod_SOURCES): Removed.
30569 (vbe_list_modes_mod_CFLAGS): Likewise.
30570 (vbe_test_mod_SOURCES): Likewise.
30571 (vbe_test_mod_CFLAGS): Likewise.
30572 (vbeinfo_mod_SOURCES): New variable.
30573 (vbeinfo_mod_CFLAGS): Likewise.
30574 (vbetest_mod_SOURCES): Likewise.
30575 (vbetest_mod_CFLAGS): Likewise.
30576
992ffbbe 305772005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
30578
30579 * normal/misc.c: New file.
30580
30581 * DISTLIST: Added normal/misc.c.
f19dbdb7 30582
992ffbbe 30583 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
30584 DISK to HOOK. Call HOOK with DISK.
30585 * partmap/apple.c (apple_partition_map_iterate): Likewise.
30586 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30587 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30588
30589 * normal/menu_entry.c (struct screen): Added a new member
30590 "completion_shown".
30591 (completion_buffer): New global variable.
30592 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
30593 (store_completion): New function.
30594 (complete): Likewise.
30595 (clear_completions): Likewise.
30596 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
30597 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
30598 a tab, call complete.
30599
30600 * normal/completion.c (disk_dev): Removed.
30601 (print_simple_completion): Likewise.
30602 (print_partition_completion): Likewise.
30603 (print_func): New global variable.
30604 (add_completion): Do not take the arguments WHAT or PRINT any
30605 longer. Added a new argument TYPE. Instead of printing directly,
30606 call PRINT_FUNC if not NULL.
30607 All callers changed.
30608 (complete_device): Use a local variable DEV instead of
30609 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
30610 (grub_normal_do_completion): Take a new argument HOOK. Do not
30611 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
30612 empty string, return NULL instead.
30613 All callers changed.
30614
30615 * normal/cmdline.c (print_completion): New function.
30616
30617 * kern/partition.c (grub_partition_iterate): Add an argument DISK
30618 to HOOK.
30619 All callers changed.
30620
30621 * kern/disk.c (grub_print_partinfo): Removed.
30622
30623 * include/grub/partition.h (struct grub_partition_map): Add a new
30624 argument DISK into HOOK of ITERATE.
30625 (grub_partition_iterate): Add a new argument DISK to HOOK.
30626
30627 * include/grub/normal.h (enum grub_completion_type): New enum.
30628 (grub_completion_type_t): New type.
30629 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
30630 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
30631 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
30632 (GRUB_COMPLETION_TYPE_FILE): Likewise.
30633 (grub_normal_do_completion): Added a new argument HOOK.
30634 (grub_normal_print_device_info): New prototype.
30635
30636 * include/grub/disk.h (grub_print_partinfo): Removed.
30637
30638 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
30639 (normal_mod_SOURCES): Likewise.
30640 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30641 (normal_mod_SOURCES): Likewise.
30642
30643 * commands/ls.c (grub_ls_list_disks): Use
30644 grub_normal_print_device_info instead of grub_print_partinfo. Free
30645 PNAME.
30646 (grub_ls_list_files): Use grub_normal_print_device_info instead of
30647 duplicating the code.
30648
0bd41162 306492005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30650
30651 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 30652 follow GCS more precisely.
30653 * commands/i386/pc/vbe_test.c: Likewise.
30654 * include/grub/i386/pc/vbe.h: Likewise.
30655 * term/i386/pc/vesafb.c: Likewise.
30656 * video/i386/pc/vbe.c: Likewise.
0bd41162 30657
6323696a 306582005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30659
30660 * DISTLIST: Added term/i386/pc/vesafb.c
30661 DISTLIST: Added video/i386/pc/vbe.c
30662 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
30663 DISTLIST: Added commands/i386/pc/vbe_test.c.
30664 * commands/i386/pc/vbe_list_modes.c: New file.
30665 * commands/i386/pc/vbe_test.c: Likewise.
30666 * term/i386/pc/vesafb.c: Likewise.
30667 * video/i386/pc/vbe.c: Likewise.
30668 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
30669 (grub_vbe_probe) Added prototype.
30670 (grub_vbe_set_video_mode) Likewise.
30671 (grub_vbe_get_video_mode) Likewise.
30672 (grub_vbe_get_video_mode_info) Likewise.
30673 (grub_vbe_set_pixel_rgb) Likewise.
30674 (grub_vbe_set_pixel_index) Likewise.
30675 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
30676 (pkgdata_MODULES): Added vesafb.mod.
30677 (pkgdata_MODULES): Added vbe_list_modes.mod.
30678 (pkgdata_MODULES): Added vbe_test.mod.
30679 (vbe_mod_SOURCES): Added.
30680 (vbe_mod_CFLAGS): Likewise.
30681 (vesafb_mod_SOURCES): Likewise.
30682 (vesafb_mod_CFLAGS): Likewise.
30683 (vbe_list_modes_mod_SOURCES): Likewise.
30684 (vbe_list_modes_mod_CFLAGS): Likewise.
30685 (vbe_test_mod_SOURCES): Likewise.
30686 (vbe_test_mod_CFLAGS): Likewise.
30687
0a74e62f 306882005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
30689
0a74e62f 30690 * normal/command.c (grub_command_execute): If INTERACTIVE is
30691 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
30692 CMDLINE. Disable the pager if INTERACTIVE is true.
30693 All callers are changed.
30694
30695 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
30696 before reading a config file.
30697 * normal/main.c (read_config_file): Even if a command is not
30698 found, register it if it is within an entry.
30699
30700 * util/grub-emu.c: Include sys/types.h and unistd.h.
30701 (options): Added --hold.
30702 (struct arguments): Added a new member "hold".
30703 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
30704 missing.
30705 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
30706 cleared by a debugger, if it is not zero.
30707
30708 * include/grub/normal.h (grub_command_execute): Add an argument
30709 INTERACTIVE.
30710
e51f85ae 307112005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
30712
30713 * DISTLIST: Added include/grub/i386/pc/vbe.h.
30714
e9c6f39b 307152005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
30716
30717 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
30718 program with another one, because the old one didn't detect a bug
30719 in gcc-3.4. Always use regparm 2, because the new test is still
30720 not enough for gcc-4.0. Someone must investigate a simple test
30721 case which detects a bug in gcc-4.0.
30722
8de3495c 307232005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
30724
30725 * DISTLIST: Added normal/completion.c.
30726
30727 * normal/completion.c: New file.
f19dbdb7 30728
8de3495c 30729 * term/i386/pc/console.c (grub_console_getwh): New function.
30730 (grub_console_term): Assign grub_console_getwh to getwh.
30731
30732 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
30733 function is defined in normal/completion.c as
30734 grub_normal_do_completion.
30735 (grub_cmdline_get): Use grub_normal_do_completion instead of
30736 grub_tab_complete.
30737
30738 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
30739 returns non-zero, otherwise return 0.
30740 (grub_partition_iterate): First, probe the partition map. Then,
30741 call ITERATE only for this partition map.
30742
30743 * kern/misc.c (grub_strncmp): Rewritten.
30744
30745 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
30746 returns non-zero. Otherwise return 0.
30747
30748 * include/grub/partition.h (grub_partition_map_iterate): Return
30749 int instead of void.
30750
30751 * include/grub/normal.h (grub_normal_do_completion): New prototype.
30752
30753 * include/grub/misc.h (grub_strncmp): Change the type of N to
30754 grub_size_t.
30755
30756 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
30757 of void.
30758
30759 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 30760 unsigned explicitly before comparing it with I.
8de3495c 30761
30762 * kern/main.c (grub_env_write_root): Add the attribute unused into
30763 VAR.
30764
30765 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30766 normal/completion.c.
30767 (normal_mod_SOURCES): Likewise.
30768 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30769 (normal_mod_SOURCES): Likewise.
30770
30771 * normal/command.c (grub_iterate_commands): If ITERATE returns
30772 non-zero, return one immediately.
30773
e85e144b 307742005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
30775
30776 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
30777 * kern/i386/pc/startup.S: Updated Global Descriptor table's
30778 descriptions.
30779 (grub_vbe_get_controller_info): New function.
30780 (grub_vbe_get_mode_info): Likewise.
30781 (grub_vbe_set_mode): Likewise.
30782 (grub_vbe_get_mode): Likewise.
30783 (grub_vbe_set_memory_window): Likewise.
30784 (grub_vbe_get_memory_window): Likewise.
30785 (grub_vbe_set_scanline_length): Likewise.
30786 (grub_vbe_get_scanline_length): Likewise.
30787 (grub_vbe_set_display_start): Likewise.
30788 (grub_vbe_get_display_start): Likewise.
30789 (grub_vbe_set_palette_data): Likewise.
30790 * include/grub/i386/pc/vbe.h: New file.
30791
c46153d2 307922005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30793
30794 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30795 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
30796 * DISTLIST: Likewise.
30797 * kern/ieee1275/of.c: Moved to ...
30798 * kern/ieee1275/ieee1275.c: ... here.
30799
0cb90c45 308002005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30801
30802 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
30803 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
30804 Pass 0 as `end' parameter to grub_strtoul().
30805
a19fb360 308062005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30807
30808 * include/grub/powerpc/ieee1275/console.h: Do not include
30809 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
30810 ifdef.
30811 (grub_console_cur_color): Remove i386-specific prototype.
30812 (grub_console_real_putchar): Likewise.
30813 (grub_console_checkkey): Likewise.
30814 (grub_console_getkey): Likewise.
30815 (grub_console_getxy): Likewise.
30816 (grub_console_gotoxy): Likewise.
30817 (grub_console_cls): Likewise.
30818 (grub_console_setcursor): Likewise.
30819 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
30820 Include <grub/machine/console.h>.
30821 * term/ieee1275/ofconsole.c: Likewise.
30822
4ac9bd04 308232005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
30824
30825 * Makefile.in (LIBLZO): New variable.
30826
30827 * configure.ac: Check for LZO version 2.
30828
30829 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
30830 lzo/lzo1x.h instead of lzo1x.h.
30831
30832 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
30833 of -llzo.
30834
30835 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
30836 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
30837
30838 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
30839 copying the data from PARTITION to P.
30840
f4917dfd 308412005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30842
30843 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
30844 negative, unload the module.
30845
30846 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
30847 map is "pc_partition_map" but not "pc".
30848 (usage): Fix the description. The options are --boot-image and
30849 --core-image but not --boot-file or --core-file.
30850 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
30851 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
30852 DEFAULT_DIRECTORY.
30853
30854 * util/i386/pc/grub-install.in: Do not specify --boot-file or
30855 --core-file. Specify INSTALL_DEVICE as an argument.
30856
30857 * util/console.c: Include config.h.
30858 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
30859 [HAVE_NCURSES_H]: Include ncurses.h.
30860 [HAVE_CURSES_H]: Include curses.h.
30861 [!A_NORMAL] (A_NORMAL): Defined as zero.
30862 [!A_STANDOUT] (A_STANDOUT): Likewise.
30863
30864 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
30865 -lncurses.
30866 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
30867
30868 * configure.ac: Check for curses libraries and headers.
30869
30870 * Makefile.in (LIBCURSES): New variable.
30871
30872 * genmk.rb (Script::rule): Set the executable bits.
30873
30874 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
30875 name of the PC partition map is "pc_partition_map" but not "pc".
30876
0e143073 308772005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30878
30879 * util/i386/pc/grub-install.in (grub_probefs): New variable.
30880 (modules): Likewise.
30881 (usage): Added descriptions for --modules and --grub-probefs.
30882 Handle --modules and --grub-probefs. Save the arguments in MODULES
30883 and GRUB_PROBEFS, respectively.
30884 Auto-detect a filesystem module against GRUBDIR. If the result is
30885 empty and modules are not specified explicitly, abort the
30886 installation. Add the result to MODULES.
30887
30888 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
30889 disk/powerpc/ieee1275/ofdisk.c,
30890 include/grub/powerpc/ieee1275/init.h and
30891 term/powerpc/ieee1275/ofconsole.c.
30892 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
30893 term/ieee1275/ofconsole.c.
30894
30895 * include/grub/powerpc/ieee1275/console.h: Resurrected.
30896
30897 * COPYING: Upgraded to the latest version. Only the address of the
30898 FSF office has changed.
f19dbdb7 30899
efd6e6d5 309002005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30901
30902 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30903 kern/ieee1275.c with kern/ieee1275/of.c.
30904
30905 * kern/ieee1275.c: Moved to ...
30906 * kern/ieee1275/of.c: ... here.
30907
8ceafda2 309082005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
30909
30910 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 30911 readability.
8ceafda2 30912
30913 * config.guess: Updated to the latest version from gnulib.
30914 * config.sub: Likewise.
30915 * install.sh: Likewise.
30916 * mkinstalldirs: Likewise.
30917
30918 * include/grub/console.h: Removed. This file is arch-specific. Do
30919 not put this in include/grub.
30920
30921 * include/grub/i386/pc/console.h: Resurrected.
30922
30923 * util/console.c: Include grub/machine/console.h instead of
30924 grub/console.h.
30925 * util/grub-emu.c: Likewise.
30926
267f6cd9 309272005-08-04 Marco Gerards <metgerards@student.han.nl>
30928
30929 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
30930 hardcoded value.
f19dbdb7 30931
267f6cd9 30932 From Vincent Pelletier <subdino2004@yahoo.fr>
30933 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
30934 Redefined to use grub_getwh.
30935 (grub_term): New member named getwh.
30936 (grub_getwh): New prototype.
30937 * kern/term.c (grub_getwh): New function.
30938 * term/i386/pc/console.c (grub_console_getwh): New function.
30939 (grub_console_term): New member `getwh'.
30940 * term/i386/pc/vga.c (grub_vga_getwh): New function.
30941 (grub_vga_term): New member `getwh'.
0b5abe02 30942 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 30943 grub_ssize_t.
30944 (grub_ofconsole_getw): New function.
30945 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
30946 (grub_ofconsole_term): New field named getwh and new initial
30947 value.
30948
3be7266d 309492005-08-03 Hollis Blanchard <hollis@penguinppc.org>
30950
30951 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
30952 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
30953 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
30954 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
30955 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
30956 of <grub/machine/ieee1275.h>.
30957 * commands/ieee1275/reboot.c: Likewise.
30958 * boot/powerpc/ieee1275/ieee1275.c: Move ...
30959 * kern/ieee1275.c: ... to here. All users updated. Change all
30960 parameter structs to use new type `grub_ieee1275_cell_t'.
30961 * term/powerpc/ieee1275/ofconsole.c: Move ...
30962 * term/ieee1275/ofconsole.c: ... to here. All users updated.
30963 * disk/powerpc/ieee1275/ofdisk.c: Move ...
30964 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
30965 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
30966 to return int.
30967 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
30968 Remove unused prototypes. All users updated.
30969 * include/grub/powerpc/ieee1275/console.h: Removed.
30970 * include/grub/powerpc/ieee1275/ieee1275.h: Define
30971 `grub_ieee1275_cell_t'.
30972 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
30973 Cast comparisons with -1 to the correct type.
30974 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
30975 type to match `grub_ieee1275_entry_fn'.
30976
8b5f3938 309772005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
30978
30979 * DISTLIST: Added util/i386/pc/grub-probefs.c.
30980
30981 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
30982 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
30983 partmap/sun.c.
30984 (grub_probefs_SOURCES): New variable.
30985
30986 * util/i386/pc/grub-probefs.c: New file.
30987
30988 * util/i386/pc/grub-setup.c (main): Call
30989 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
30990 grub_hfs_init and grub_jfs_init to initialize the system. Call
30991 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
30992 grub_pc_partition_map_fini to finish the system.
30993
ea409713 309942005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
30995
30996 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
30997 function.
30998 (grub_multiboot_load_elf32): Likewise.
30999 (grub_multiboot_is_elf64): Likewise.
31000 (grub_multiboot_load_elf64): Likewise.
31001 (grub_multiboot_load_elf): Likewise.
31002 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
31003 an ELF32 or ELF64 file.
31004 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
31005
31006 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
31007 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
31008 NULL before calling FS->LABEL.
31009 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
31010 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
31011 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
31012 before calling FS->LABEL.
31013
141a288b 310142005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
31015
31016 * util/i386/pc/grub-install.in (datadir): New variable.
31017 (libdir): Removed.
31018 (pkgdatadir): New variable.
31019 (pkglibdir): Removed.
31020
0d5f8a54 310212005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
31022
31023 * DISTLIST: Added util/i386/pc/grub-install.in.
31024
31025 * util/i386/pc/grub-install.in: New file.
31026
31027 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
31028 (grub_install_SOURCES): Likewise.
31029
31030 * genmk.rb: Added support for scripts.
31031 (Script): New class.
31032 (scripts): New variable.
31033
31034 * Makefile.in (install-local): Install sbin_SCRIPTS by
31035 INSTALL_SCRIPT.
31036 (uninstall): Remove sbin_SCRIPTS.
31037
31038 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
31039 device, try to get a GRUB device by
31040 grub_util_biosdisk_get_grub_dev.
31041 Free DEST_DEV.
31042
31043 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
31044 description for --device-map.
31045
5f968e1e 310462005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31047
31048 Change the semantics of variable hooks. They now return strings
31049 instead of error values.
f19dbdb7 31050
5f968e1e 31051 * util/i386/pc/grub-setup.c: Include grub/env.h.
31052 (setup): Use grub_device_set_root instead of grub_env_set.
31053
31054 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
31055 grub_env_get instead of grub_device_set_root and
31056 grub_device_get_root, respectively.
31057
31058 * kern/main.c (grub_env_write_root): New function.
31059 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
31060 grub_env_set instead of grub_device_set_root.
31061
31062 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
31063 many variables.
31064 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
31065 rather than calling ENV->WRITE_HOOK afterwards.
31066 (grub_env_get): Return the result of ENV->READ_HOOK rather than
31067 passing a pointer of a pointer.
31068 (grub_register_variable_hook): Change the types of "read_hook" and
31069 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
31070 respectively.
31071 Allocate the default empty string on the heap, because this string
31072 may be freed later.
31073
31074 * kern/device.c: Include grub/env.h.
31075 (grub_device_set_root): Removed.
31076 (grub_device_get_root): Likewise.
31077 (grub_device_open): Use grub_env_get instead of
31078 grub_device_get_root.
31079
31080 * include/grub/env.h (grub_env_read_hook_t): New type.
31081 (grub_env_write_hook_t): Likewise.
31082 (grub_env_var): Change the types of "read_hook" and "write_hook"
31083 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
31084 (grub_register_variable_hook): Likewise.
31085
31086 * include/grub/device.h (grub_device_set_root): Removed.
31087 (grub_device_set_root): Likewise.
31088
31089 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
31090 make sure that DIRNAME terminates with '/', so that
31091 grub_fat_find_dir will fail if PATH is not a directory.
31092
31093 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
31094 from DIRNAME.
31095 Use the qualifier auto for print_files and print_files_long.
31096 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
31097 as a regular file.
31098 Put a newline only if there is no error.
31099 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
31100 used.
31101
896f0afd 311022005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31103
31104 * kern/partition.c (grub_partition_probe): Initialize PART to
31105 NULL. Otherwise, when no partition map is registered, this returns
31106 a garbage.
31107
b28b81b2 311082005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
31109
31110 * partmap/apple.c (apple_partition_map_iterate): Check if POS
31111 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
31112 valid.
31113
5f3607e0 311142005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
31115
31116 * commands/ls.c (grub_ls_list_disks): Print the filesystem
31117 information on each device, if it does not have partitions. Print
31118 "Device" instead of "Disk", because this function is not specific
31119 to disk devices.
31120
31121 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
31122 static to ensure that it is put on the memory rather than a
31123 register.
31124
502c87e8 311252005-07-17 Yoshinori Okuji <okuji@enbug.org>
31126
31127 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
31128 (grub_cat_init): Likewise.
31129 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
31130 (options): Likewise.
31131 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31132 (grub_configfile_init): Likewise.
31133 * font/manager.c (GRUB_MOD_INIT): Likewise.
31134 * commands/help.c (GRUB_MOD_INIT): Likewise.
31135 (grub_help_init): Likewise.
31136 * normal/command.c (grub_command_init): Likewise.
31137 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
31138 * disk/loopback.c (grub_loop_init): Likewise.
31139 (GRUB_MOD_INIT): Likewise.
31140 * commands/ls.c (grub_ls_init): Likewise.
31141 (GRUB_MOD_INIT): Likewise.
31142 (options): Likewise.
31143 * commands/boot.c (grub_boot_init): Likewise.
31144 (GRUB_MOD_INIT): Likewise.
31145 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
31146 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
31147 (GRUB_MOD_INIT): Likewise.
31148 * commands/cmp.c (grub_cmp_init): Likewise.
31149 (GRUB_MOD_INIT): Likewise.
31150
31151 * normal/arg.c: Use <> instead of "" to include header files.
31152 (SHORT_ARG_HELP): New macro.
31153 (SHORT_ARG_USAGE): Likewise.
31154 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
31155 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
31156 descriptions.
31157 (find_short): Check if C is 'h' or 'u' explicitly.
31158 (grub_arg_show_help): Use space characters instead of tabs. Treat
31159 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
31160 are shown with --help and --usage only if they are not used for
31161 the command itself.
31162 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
31163 'h' and 'u'.
31164
31165 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
31166 const into "longarg". Change the type of "shortarg" to int.
31167
f806d18e 311682005-07-17 Yoshinori Okuji <okuji@enbug.org>
31169
31170 * boot/i386/pc/boot.S (boot_drive_check): New label.
31171
31172 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
31173 macro.
31174
31175 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
31176 which do not pass a boot drive correctly. Copied from GRUB Legacy.
31177
e293232b 311782005-07-17 Yoshinori Okuji <okuji@enbug.org>
31179
31180 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
31181 When turning off Gate A20, skip the check and return immediately,
31182 because this is not fatal usually.
31183
ebedfd00 311842005-07-17 Yoshinori Okuji <okuji@enbug.org>
31185
31186 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
31187 be 0x7C00 instead of 0x8000.
31188
31189 * boot/i386/pc/pxeboot.S: Rewritten.
31190
31191 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
31192 EXT_C.
31193 (gate_a20_check_state): Read a byte from 0x108000. Invert the
31194 result.
31195
654fc59f 311962005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
31197
31198 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
31199 robustness. This routine now supports a BIOS call and System
31200 Control Port A to modify the gate A20.
31201
31202 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31203 Increased to 0x440.
31204
09f9923f 312052005-07-12 Hollis Blanchard <hollis@penguinppc.org>
31206
31207 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
31208 device path and resulting ihandle.
31209 (grub_ofdisk_close): dprintf the ihandle being closed.
31210 (grub_ofdisk_read): dprintf function parameters.
31211 * kern/mm.c (grub_mm_init_region): Likewise.
31212 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
31213 (grub_linux_boot): dprintf the Linux entry point, initrd address and
31214 size, and boot arguments.
31215 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
31216 before loading into memory.
31217 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
31218 before loading into memory.
31219
7ef504d8 312202005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
31221
31222 * kern/mm.c: Added much documentation.
31223 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
31224 8, set to 5 instead of 8.
31225
e0f050c2 312262005-07-10 Yoshinori Okuji <okuji@enbug.org>
31227
31228 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
31229
31230 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
31231 (grub_mkdevicemap_SOURCES): New variable.
31232
31233 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
31234 lib/device.c of GRUB Legacy.
31235
7224189a 312362005-07-10 Yoshinori Okuji <okuji@enbug.org>
31237
31238 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
31239 instead of PATH is NULL.
31240
68c864eb 312412005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
31242
31243 * commands/cmp.c (BUFFER_SIZE): New macro.
31244 (grub_cmd_cmp): Close the right file at the right time. Compare
31245 only data just read. Don't report files of different size as
31246 identical. Dynamically allocate buffers. Move variable
31247 declarations at the beginning of function.
31248
e6f3e614 312492005-07-09 Yoshinori Okuji <okuji@enbug.org>
31250
31251 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
31252 reverse.
31253
f8f1559a 312542004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
31255
31256 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
31257 when backspace is pressed at beginning of line.
31258
39c9d41d 312592005-07-03 Yoshinori Okuji <okuji@enbug.org>
31260
31261 * DISTLIST: Added genfslist.sh.
31262
31263 * normal/main.c (fs_module_list): New variable.
31264 (autoload_fs_module): New function.
31265 (read_fs_list): Likewise.
31266 (grub_normal_execute): Call read_fs_list.
31267
31268 * kern/fs.c (grub_fs_autoload_hook): New variable.
31269 (grub_fs_probe): Added support for auto-loading.
31270
31271 * include/grub/normal.h (struct grub_fs_module_list): New struct.
31272 (grub_fs_module_list_t): New type.
31273
31274 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
31275 (grub_fs_autoload_hook): New prototype.
31276
31277 * genfslist.sh: New file.
f19dbdb7 31278
39c9d41d 31279 * genmk.rb: Added a rule to generate a filesystem list.
31280
121c1d83 312812005-06-30 Marco Gerards <metgerards@student.han.nl>
31282
31283 * configure.ac: Fix the test for cross-compiling.
31284
31285 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
31286 define GRUB_UTIL anymore.
31287
31288 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
31289 so this function works on other systems than just big endian.
31290 (load_modules): Likewise.
31291 (add_segments): Likewise.
31292
e75d76e1 312932005-06-23 Hollis Blanchard <hollis@penguinppc.org>
31294
31295 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
31296 contains `l' modifier, get a long from va_arg().
31297
50b5a0a7 312982005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
31299
31300 * kern/mm.c (grub_free): If the next free block which is being
31301 merged is the first free block, set the first block to the block
31302 being freed.
31303 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
31304
89371b20 313052005-05-08 Hollis Blanchard <hollis@penguinppc.org>
31306
31307 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
31308 `grub_ieee1275_chosen'.
31309
168d6e58 313102005-05-08 Hollis Blanchard <hollis@penguinppc.org>
31311
31312 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
31313 (grub_ieee1275_chosen): New variable.
31314 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
31315 `chosen'.
31316 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
31317 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
31318 Rename first argument to `phandle' for consistency.
31319 (grub_ieee1275_get_property_length): Likewise.
31320 (grub_ieee1275_next_property): Likewise. Change type of first argument
31321 to grub_ieee1275_phandle_t.
31322 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
31323 Move export next to declaration.
31324 (grub_ieee1275_chosen): New variable.
31325 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
31326 Correct cosmetic typo.
31327 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
31328 `grub_ieee1275_chosen'.
31329 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
31330 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
31331 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
31332 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
31333 `grub_ieee1275_chosen'.
31334
ca5baa3f 313352005-05-10 Hollis Blanchard <hollis@penguinppc.org>
31336
31337 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
31338 /chosen/bootargs.
31339 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
31340 /chosen/bootargs as "variable=value" pairs.
31341
708b345f 313422005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
31343
31344 * include/grub/misc.h (grub_dprintf): New macro.
31345 (grub_real_dprintf): New prototype.
31346 (grub_strword): Likewise.
31347 (grub_iswordseparator): Likewise.
31348 * kern/misc.c (grub_real_dprintf): New function.
31349 (grub_strword): Likewise.
31350 (grub_iswordseparator): Likewise.
31351
f4c5e67c 313522005-04-30 Hollis Blanchard <hollis@penguinppc.org>
31353
31354 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
31355 (roundup): Remove macro.
31356 (grub_ieee1275_flags): Make static.
31357 (grub_ieee1275_realmode): Remove.
31358 (grub_ieee1275_test_flag): New function.
31359 (grub_ieee1275_set_flag): Likewise.
31360 (find_options): Rename to `grub_ieee1275_find_options'; update
31361 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
31362 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
31363 (cmain): New prototype.
31364 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
31365 `grub_ieee1275_flags' directly.
31366 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
31367 machine/biosdisk.h.
31368 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
31369 Don't include grub/machine/init.h.
31370 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
31371 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31372 Remove prototype.
31373 (grub_ieee1275_realmode): Likewise.
31374 (grub_ieee1275_flag): New enum.
31375 (grub_ieee1275_test_flag): New prototype.
31376 (grub_ieee1275_set_flag): New prototype.
31377 * include/grub/powerpc/ieee1275/init.h: Remove file.
31378 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
31379 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
31380 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
31381 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
31382 comment.
31383 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
31384 `grub_ieee1275_test_flag'.
31385 (grub_ieee1275_encode_devname): Likewise.
31386
ed16607e 313872005-04-21 Hollis Blanchard <hollis@penguinppc.org>
31388
31389 * include/grub/powerpc/ieee1275/ieee1275.h
31390 (grub_ieee1275_encode_devname): New prototype.
31391 (grub_ieee1275_get_filename): Likewise.
31392 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
31393 function.
31394 (grub_set_prefix): Likewise.
31395 (grub_machine_init): Call grub_set_prefix.
31396 * kern/powerpc/ieee1275/openfw.c: Fix typos.
31397 (grub_parse_type): New enum.
31398 (grub_ieee1275_get_devargs): New function.
31399 (grub_ieee1275_get_devname): Likewise.
31400 (grub_ieee1275_parse_args): Likewise.
31401 (grub_ieee1275_get_filename): Likewise.
31402 (grub_ieee1275_encode_devname): Likewise.
31403
be369920 314042005-03-30 Marco Gerards <metgerards@student.han.nl>
31405
31406 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
31407 `grub_loader_unset'.
31408
a5ce3a4a 314092005-03-26 Hollis Blanchard <hollis@penguinppc.org>
31410
31411 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
31412 instead of grub_ieee1275_interpret.
31413 (grub_halt_init): New function.
31414 (grub_halt_fini): Likewise.
31415 (GRUB_MOD_INIT): Correct message grammar.
31416 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
31417 instead of grub_ieee1275_interpret.
31418 (grub_reboot_init): New function.
31419 (grub_reboot_fini): Likewise.
31420 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
31421 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
31422 util/i386/pc/misc.c with commands/ieee1275/halt.c,
31423 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
31424 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
31425 function.
31426 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
31427 Add prototype.
31428 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
31429 prototype.
31430 (grub_halt): Likewise.
31431 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
31432 (cmain): Remove __attribute__((unused)).
31433 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
31434 (grub_heap_len): Likewise.
31435 (grub_machine_fini): New function.
31436 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
31437 (grub_halt): Likewise.
31438 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
31439 function.
31440 * util/powerpc/ieee1275/misc.c: New file.
31441
0058f771 314422005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31443
31444 * DISTLIST: New file.
31445 * gendistlist.sh: Likewise.
f19dbdb7 31446
0058f771 31447 * Makefile.in (COMMON_DISTFILES): Removed.
31448 (BOOT_DISTFILES): Likewise.
31449 (CONF_DISTFILES): Likewise.
31450 (DISK_DISTFILES): Likewise.
31451 (FS_DISTFILES): Likewise.
31452 (INCLUDE_DISTFILES): Likewise.
31453 (KERN_DISTFILES): Likewise.
31454 (LOADER_DISTFILES): Likewise.
31455 (TERM_DISTFILES): Likewise.
31456 (UTIL_DISTFILES): Likewise.
31457 (DISTFILES): Likewise.
31458 (uninstall): Uninstall files in $(pkgdata_DATA).
31459 (DISTLIST): New target.
31460 (distdir): Use the contents of the file DISTLIST to get a list of
31461 distributed files.
31462
46b3b8a5 314632005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31464
31465 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
31466 descriptor. This is ported from GRUB Legacy.
31467
31468 * gencmdlist.sh: Added an extra semicolon to make it work with
31469 old sed versions. Reported by Robert Bihlmeyer
31470 <robbe@orcus.priv.at>.
31471
5822ff87 314722005-03-08 Yoshinori Okuji <okuji@enbug.org>
31473
31474 Automatic loading of commands is supported.
f19dbdb7 31475
5822ff87 31476 * normal/main.c (read_command_list): New function.
31477 (grub_normal_execute): Call read_command_list.
31478
31479 * normal/command.c (grub_register_command): Return zero or CMD.
31480 Allocate CMD->NAME from the heap.
31481 Initialize CMD->MODULE_NAME to zero.
31482 Find the same name as well. If the same command is found and it is
31483 a dummy command, overwrite members. If it is not a dummy command,
31484 return zero.
31485 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
31486 (grub_command_find): If a dummy command is found, load a module
31487 and retry to find a command only once.
31488
31489 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
31490 make sure that each command is loaded.
31491
31492 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
31493 macro.
31494 (struct grub_command): Remove const from the member `name'.
31495 Add a new member `module_name'.
31496 (grub_register_command): Return grub_command_t.
31497
31498 * commands/help.c (grub_cmd_help): Call grub_command_find to make
31499 sure that each command is loaded.
31500
31501 * genmk.rb (PModule::rule): Specify a module name without the
31502 suffix ".mod" to gencmdlist.sh.
31503
7b1f4b57 315042005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31505
31506 * gencmdlist.sh: New file.
f19dbdb7 31507
7b1f4b57 31508 * genmk.rb (PModule::rule): Generate a rule for a command list.
31509 Clean command.lst.
31510 Generate command.lst from $(COMMANDFILES).
31511
31512 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
31513 (DATA): Added $(pkgdata_DATA).
31514 (install-local): Install files in $(pkgdata_DATA).
31515
062aaf39 315162005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31517
31518 * term/i386/pc/vga.c (debug_command): Removed.
31519 (GRUB_MOD_INIT): Do not register the command "debug".
31520
31521 From Hollis Blanchard:
31522 * commands/configfile.c: New file.
31523 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31524 commands/configfile.c.
31525 (pkgdata_MODULES): Added configfile.mod.
31526 (configfile_mod_SOURCES): New variable.
31527 (configfile_mod_CFLAGS): Likewise.
31528 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31529 commands/configfile.c.
31530 (pkgdata_MODULES): Added configfile.mod.
31531 (configfile_mod_SOURCES): New variable.
31532 (configfile_mod_CFLAGS): Likewise.
31533 * util/grub-emu.c (main): Call grub_configfile_init and
31534 grub_configfile_fini.
31535 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
31536 prototype.
31537 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 31538
cee01aa6 315392005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31540
31541 * normal/arg.c (grub_arg_show_help): Do not show the bug report
31542 address.
31543
31544 * commands/help.c (grub_cmd_help): Do not print newlines after
31545 the last command in print_command_help.
31546
93f3a1d8 315472005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31548
31549 * commands/default.h: New file.
31550 * commands/timeout.h: Likewise.
31551 * normal/context.c: Likewise.
f19dbdb7 31552
93f3a1d8 31553 * util/misc.c: Do not include sys/times.h.
31554 Include sys/time.h and grub/machine/time.h.
31555 (grub_get_rtc): Rewritten with gettimeofday.
31556
31557 * util/grub-emu.c (main): Call grub_default_init and
31558 grub_timeout_init before grub_normal_init, and call
31559 grub_timeout_fini and grub_default_fini after grub_main.
31560
31561 * util/console.c (grub_ncurses_checkkey): Return the read
31562 character or -1.
31563
31564 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
31565 timeouts.
31566
31567 * normal/main.c (read_config_file): Push MENU. If this fails,
31568 print an error and wait for a user input.
31569 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
31570 If a menu is empty or an error occurs, pop MENU.
31571 (grub_normal_execute): Pop and free MENU after grub_menu_run
31572 returns.
31573
31574 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
31575
31576 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
31577 include time.h.
31578 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31579 without GRUB_UTIL.
31580 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
31581 time.h.
31582 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31583 without GRUB_UTIL.
31584
31585 * include/grub/normal.h (struct grub_menu_list): New struct.
31586 (grub_menu_list_t): New type.
31587 (struct grub_context): New struct.
31588 (grub_context_t): New type.
31589 (grub_register_command): Got rid of EXPORT_FUNC.
31590 (grub_unregister_command): Likewise.
31591 (grub_context_get): New prototype.
31592 (grub_context_get_current_menu): Likewise.
31593 (grub_context_push_menu): Likewise.
31594 (grub_context_pop_menu): Likewise.
31595 [GRUB_UTIL] (grub_default_init): Likewise.
31596 [GRUB_UTIL] (grub_default_fini): Likewise.
31597 [GRUB_UTIL] (grub_timeout_init): Likewise.
31598 [GRUB_UTIL] (grub_timeout_fini): Likewise.
31599
31600 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
31601 commands/timeout.c and normal/context.c.
31602 (pkgdata_MODULES): Added default.mod and timeout.mod.
31603 (normal_mod_SOURCES): Added normal/context.c.
31604 (default_mod_SOURCES): New variable.
31605 (default_mod_CFLAGS): Likewise.
31606 (timeout_mod_SOURCES): Likewise.
31607 (timeout_mod_CFLAGS): Likewise.
31608 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
31609 conf/i386-pc.rmk.
31610 (pkgdata_MODULES): Added default.mod and timeout.mod.
31611 (normal_mod_SOURCES): Added normal/context.c.
31612 (default_mod_SOURCES): New variable.
31613 (default_mod_CFLAGS): Likewise.
31614 (timeout_mod_SOURCES): Likewise.
31615 (timeout_mod_CFLAGS): Likewise.
31616
31617 * Makefile.in (all-local): Added $(MKFILES).
31618
4ed2e1dd 316192005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
31620
31621 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
31622 (grub_emu_SOURCES): Likewise.
31623 (pkgdata_MODULES): Add `sun.mod'.
31624 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31626 `partmap/sun.c'.
31627 (pkgdata_MODULES): Add `sun.mod'.
31628 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31629 * include/grub/partition.h (grub_sun_partition_map_init): New
31630 prototype.
31631 (grub_sun_partition_map_fini): Likewise.
31632 * partmap/sun.c: New file.
31633 * util/grub-emu.c (main): Initialize and de-initialize the sun
31634 partitionmap support.
31635
4d4e372e 316362005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
31637
31638 This implements an Emacs-like menu entry editor.
f19dbdb7 31639
4d4e372e 31640 * normal/menu_entry.c: New file.
f19dbdb7 31641
4d4e372e 31642 * util/console.c (grub_ncurses_putchar): Translate some Unicode
31643 characters to ASCII.
31644 (saved_char): New variable.
31645 (grub_ncurses_checkkey): Rewritten completely.
31646 (grub_ncurses_getkey): Likewise.
31647 (grub_ncurses_init): Call raw instead of cbreak.
31648
31649 * normal/menu.c (print_entry): Do not put a space.
31650 (init_page): Renamed to ...
31651 (grub_menu_init_page): ... this. All callers changed.
31652 (edit_menu_entry): Removed.
31653 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
31654
31655 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
31656
31657 * kern/misc.c (grub_vprintf): Call grub_refresh.
31658
31659 * normal/menu.c (DISP_LEFT): Renamed to ...
31660 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
31661 * normal/menu.c (DISP_UP): Renamed to ...
31662 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
31663 * normal/menu.c (DISP_RIGHT): Renamed to ...
31664 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
31665 * normal/menu.c (DISP_DOWN): Renamed to ...
31666 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
31667 * normal/menu.c (DISP_HLINE): Renamed to ...
31668 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
31669 * normal/menu.c (DISP_VLINE): Renamed to ...
31670 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
31671 * normal/menu.c (DISP_UL): Renamed to ...
31672 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
31673 * normal/menu.c (DISP_UR): Renamed to ...
31674 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
31675 * normal/menu.c (DISP_LL): Renamed to ...
31676 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
31677 * normal/menu.c (DISP_LR): Renamed to ...
31678 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
31679 * normal/menu.c (TERM_WIDTH): Renamed to ...
31680 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
31681 * normal/menu.c (TERM_HEIGHT): Renamed to ...
31682 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
31683 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
31684 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
31685 * normal/menu.c (TERM_MARGIN): Renamed to ...
31686 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
31687 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
31688 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
31689 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
31690 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
31691 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
31692 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
31693 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
31694 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
31695 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
31696 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
31697 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
31698 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
31699 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
31700 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
31701 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
31702 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
31703 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
31704 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
31705 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
31706 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
31707 All callers changed.
31708
31709 * include/grub/normal.h: New prototype.
31710
31711 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31712 normal/menu_entry.c.
31713 (normal_mod_SOURCES): Likewise.
31714 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31715 (normal_mod_SOURCES): Likewise.
31716
e6b92c8a 317172005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
31718
31719 * include/grub/normal.h (grub_halt_init): New prototype.
31720 (grub_halt_fini): Likewise.
31721 (grub_reboot_init): Likewise.
31722 (grub_reboot_fini): Likewise.
31723
31724 * util/grub-emu.c: Include signal.h.
31725 (main_env): New global variable.
31726 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
31727 catch C-c.
31728 (grub_machine_fini): New function.
31729 (main): Call grub_halt_init and grub_reboot_init before
31730 grub_main, and grub_reboot_fini and grub_halt_fini after it.
31731 Call setjmp with MAIN_ENV to go back afterwards.
31732 Call grub_machine_fini right before return.
31733
31734 * include/grub/util/misc.h: Include setjmp.h.
31735 (main_env): New prototype.
31736
31737 * include/grub/kernel.h (grub_machine_fini): New prototype.
31738 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
31739 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
31740
31741 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
31742 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
31743 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 31744
e6b92c8a 31745 * util/i386/pc/misc.c: New file.
f19dbdb7 31746
e6b92c8a 31747 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31748 util/i386/pc/misc.c, commands/i386/pc/halt.c and
31749 commands/i386/pc/reboot.c.
31750
c642636f 317512005-02-14 Guillem Jover <guillem@hadrons.org>
31752
31753 * include/grub/dl.h (grub_dl_check_header): New prototype.
31754 (grub_arch_dl_check_header): Change return type to grub_err_t,
31755 remove size parameter and export function. Update all callers.
31756 * kern/dl.c (grub_dl_check_header): New function.
31757 (grub_dl_load_core): Use `grub_dl_check_header' instead of
31758 `grub_arch_dl_check_header'. Check ELF type. Check if sections
31759 are inside the core.
31760 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
31761 independent ELF header checks.
31762 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31763 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
31764 `grub_dl_check_header' instead of explicit checks. Check for the
31765 ELF type.
31766 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
31767 `grub_dl_check_header' instead of explicit checks. Remove arch
31768 specific ELF header checks.
31769
e6b92c8a 31770 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
31771 argument SIZE.
31772
5eabe94b 317732005-02-13 Hollis Blanchard <hollis@penguinppc.org>
31774
31775 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
31776 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
31777
1b14a681 317782005-02-12 Hollis Blanchard <hollis@penguinppc.org>
31779
31780 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 31781 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 31782 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 31783 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 31784 * partmap/amiga.c (amiga_partition_map_iterate): Return
31785 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
31786 * partmap/apple.c (apple_partition_map_iterate): Likewise.
31787
aca108aa 317882005-02-01 Guillem Jover <guillem@hadrons.org>
31789
31790 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
31791 help info.
31792
c9f9c556 317932005-01-31 Marco Gerards <metgerards@student.han.nl>
31794
31795 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
31796 Removed prototype.
31797 (grub_rescue_cmd_linux): New prototype.
31798 (grub_rescue_cmd_initrd): Likewise.
31799 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
31800 `bi_rec'.
31801 (grub_linux_release_mem): Release the memory for the initrd.
31802 (grub_load_linux): Renamed from this...
31803 (grub_rescue_cmd_linux): ...To this. Changed all callers.
31804 Changed `entry' not to be static. Loop over memory regions to
31805 find another one when the default fails.
31806 (grub_rescue_cmd_initrd): New function.
31807 (grub_linux_init): Remove function.
31808 (grub_linux_fini): Likewise.
31809 (GRUB_MOD_INIT): Register `initrd'.
31810 (GRUB_MOD_FINI): Unregister `initrd'.
31811 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
31812 Function removed.
31813 (grub_linux_normal_fini): Likewise.
31814 (GRUB_MOD_INIT): Register `initrd'.
31815 (GRUB_MOD_FINI): Unregister `initrd'.
31816
990cf3aa 318172005-01-31 Marco Gerards <metgerards@student.han.nl>
31818
31819 * commands/help.c: New file.
31820 * normal/arg.c (show_help): Renamed to...
31821 (grub_arg_show_help): ... this.
31822 * commands/i386/pc/halt.c: New file.
31823 * commands/i386/pc/reboot.c: Likewise.
31824 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
31825 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
31826 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
31827 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
31828 variables.
31829 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31830 `commands/help.c'.
31831 (pkgdata_MODULES): Add `help.mod'.
31832 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
31833 * grub/i386/pc/init.h (grub_reboot): New prototype.
31834 (grub_halt): Likewise.
31835 * include/grub/normal.h (grub_arg_show_help): New prototype.
31836 (grub_help_init): Likewise.
31837 (grub_help_fini): Likewise.
31838 * util/grub-emu.c (main): Initialize and deinitialize the help
31839 command.
31840
31841 * normal/cmdline.c (grub_cmdline_get): Doc fix.
31842
31843 * normal/command.c (grub_command_init): Fixed the description of
31844 the `set' and `unset' commands.
31845
318462005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 31847
31848 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
31849 function.
31850 * commands/ieee1275/halt.c: New file.
31851 * commands/ieee1275/reboot.c: Likewise.
31852 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
31853 `__attribute__ ((unused))'. Some GCS related fixed.
31854 (grub_suspend_init) [GRUB_UTIL]: Function removed.
31855 (grub_suspend_fini): Likewise.
31856 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
31857 and `halt.mod'.
31858 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
31859 (halt_mod_CFLAGS): New variables.
31860 * include/grub/powerpc/ieee1275/ieee1275.h
31861 (grub_ieee1275_interpret): New prototype.
31862
1ab09cc7 318632005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
31864
31865 * include/grub/misc.h (memmove): New prototype.
31866 (memcpy): Likewise.
31867
8b8cbdb2 318682005-01-22 Hollis Blanchard <hollis@penguinppc.org>
31869
31870 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
31871 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
31872
e3741a27 318732005-01-22 Marco Gerards <metgerards@student.han.nl>
31874
31875 * kern/misc.c (grub_strndup): Function rewritten.
31876
776bd780 318772005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
31878
31879 * normal/menu.c (TERM_WIDTH): Macro redefined.
31880 (TERM_TOP_BORDER_Y): Likewise.
31881 (draw_border): Replaced while-loop by a for-loop. Make the number
31882 of lines consistent with the number of lines displayed in
31883 print_entries. Added a margin below the rectangle.
31884 (print_entry): Make the entry fit in the rectangle.
31885 (print_entries): Display the scroll arrows next to the right
31886 border.
31887
78026bce 318882005-01-21 Marco Gerards <metgerards@student.han.nl>
31889
31890 * fs/minix.c (grub_minix_find_file): Reserve more space for
31891 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
31892 `grub_strncpy' to copy `path' into it.
31893
67bbaf0f 318942005-01-21 Marco Gerards <metgerards@student.han.nl>
31895
31896 Add the loopback device, a device via which files can be accessed
31897 as devices.
f19dbdb7 31898
67bbaf0f 31899 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
31900 (pkgdata_MODULES): Add loopback.mod.
31901 (loopback_mod_SOURCES): New variable.
31902 (loopback_mod_CFLAGS): Likewise.
31903 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31904 `disk/loopback.c'.
31905 (pkgdata_MODULES): Add loopback.mod.
31906 (loopback_mod_SOURCES): New variable.
31907 (loopback_mod_CFLAGS): Likewise.
31908 * disk/loopback.c: new file.
31909 * include/grub/normal.h (grub_loop_init): New prototype.
31910 (grub_loop_fini): New prototype.
31911 * util/grub-emu.c (main): Initialize and de-initialize loopback
31912 support.
31913 * include/grub/disk.h (grub_disk_dev_id): Add
31914 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
31915
6f1c18bd 319162005-01-20 Hollis Blanchard <hollis@penguinppc.org>
31917
31918 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
31919 function.
31920 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
31921 (suspend_mod_SOURCES): New variable.
31922 (suspend_mod_CFLAGS): Likewise.
31923 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
31924 New prototype.
31925 * commands/ieee1275/suspend.c: New file.
31926
b38551da 319272005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
31928
31929 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 31930 ((unused))' to `__attribute__ ((used))'.
b38551da 31931 (GRUB_MOD_FINI): Likewise.
31932 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
31933 * genmk.rb (PModule): Assign space to common symbols when linking
31934 modules.
31935
777aff39 319362005-01-20 Marco Gerards <metgerards@student.han.nl>
31937
31938 * include/grub/mm.h (grub_mm_init_region): Change the type of the
31939 `unsigned' arguments to `grub_size_t'.
31940 (grub_malloc): Likewise.
31941 (grub_realloc): Likewise.
31942 (grub_memalign): Likewise.
31943 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
31944 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31945 * util/misc.c (grub_malloc): Likewise.
31946 (grub_realloc): Likewise.
31947 * kern/mm.c (get_header_from_pointer): Change the casts to
31948 `unsigned' into a cast to `grub_size_t'.
31949
31950 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
31951 point to `currnode' when `currnode' is changed.
31952
31953 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
31954 Schottelius <nico-linux@schottelius.org>.
31955
d0ff18e1 319562005-01-09 Hollis Blanchard <hollis@penguinppc.org>
31957
31958 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
31959 (note_path): Remove variable.
31960 (GRUB_IEEE1275_NOTE_NAME): New macro.
31961 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
31962 (grub_ieee1275_note_hdr): New structure.
31963 (grub_ieee1275_note_desc): Likewise.
31964 (grub_ieee1275_note): Likewise.
31965 (load_note): Remove `dir' argument. All callers updated. Remove
31966 `note_img' and `path'. Do not load a file from `note_path'.
31967 Initialize a struct grub_ieee1275_note and write that to `out'.
31968 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
31969
4ca7004c 319702005-01-05 Marco Gerards <metgerards@student.han.nl>
31971
31972 * util/misc.c (grub_util_read_image): Revert last change. It
31973 called `grub_util_read_at', which seeks from the beginning of the
31974 file.
31975
0b412211 319762005-01-04 Hollis Blanchard <hollis@penguinppc.org>
31977
31978 * TODO: Add note about endianness in grub-mkimage.
31979 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
31980 section.
31981 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
31982 (grub_mkimage_SOURCES): New target.
31983 * include/grub/kernel.h (grub_start_addr): Remove variable.
31984 (grub_end_addr): Likewise.
31985 (grub_total_module_size): Likewise.
31986 (grub_kernel_image_size): Likewise.
31987 (GRUB_MODULE_MAGIC): New constant.
31988 (grub_module_info): New structure.
31989 (grub_arch_modules_addr): New prototype.
31990 (grub_get_end_addr): Remove prototype.
31991 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
31992 * include/grub/powerpc/ieee1275/kernel.h: New file.
31993 * include/grub/util/misc.h (grub_util_get_fp_size): New
31994 prototype.
31995 (grub_util_read_at): Likewise.
31996 (grub_util_write_image_at): Likewise.
31997 * kern/main.c (grub_get_end_addr): Remove function.
31998 (grub_load_modules): Call grub_arch_modules_addr instead of using
31999 grub_end_addr. Look for a grub_module_info struct in memory. Use
32000 the grub_module_info fields instead of calling grub_get_end_addr
32001 as loop conditions. Move grub_add_unused_region code here.
32002 (grub_add_unused_region): Remove function.
32003 * kern/i386/pc/init.c: Include grub/cache.h.
32004 (grub_machine_init): Remove call to grub_get_end_addr. Remove
32005 one call to add_mem_region.
32006 (grub_arch_modules_addr): New function.
32007 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
32008 (grub_total_module_size): Likewise.
32009 Include grub/machine/kernel.h.
32010 (grub_arch_modules_addr): New function.
32011 * util/grub-emu.c (grub_end_addr): Remove variable.
32012 (grub_total_module_size): Likewise.
32013 (grub_arch_modules_addr): New function.
32014 * util/misc.c: Include unistd.h.
32015 (grub_util_get_fp_size): New function.
32016 (grub_util_read_at): Likewise.
32017 (grub_util_write_image_at): Likewise.
32018 (grub_util_read_image): Call grub_util_read_at.
32019 (grub_util_write_image): Call grub_util_write_image_at.
32020 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
32021 additional memory in kernel_img for a struct grub_module_info.
32022 Fill in that grub_module_info.
32023 * util/powerpc/ieee1275/grub-mkimage.c: New file.
32024
458786f8 320252005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32026
32027 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
32028 New function.
32029 * include/grub/powerpc/ieee1275/ieee1275.h
32030 (grub_ieee1275_milliseconds): New prototype.
32031 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
32032 Change to 1000.
32033 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
32034 grub_ieee1275_milliseconds.
32035
ac507d1b 320362005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32037
32038 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
32039 variable.
32040 (find_options): New function.
32041 (cmain): Call find_options.
32042 * include/grub/powerpc/ieee1275/ieee1275.h
32043 (grub_ieee1275_realmode): New extern variable.
32044 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
32045 grub_map if grub_ieee1275_realmode is false.
32046
6b8fd1c4 320472004-12-29 Marco Gerards <metgerards@student.han.nl>
32048
32049 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
32050 lines are inserted and make it work like readline. Reported by
32051 Vincent Pelletier <subdino2004@yahoo.fr>.
32052
8514a1e0 320532004-12-28 Marco Gerards <metgerards@student.han.nl>
32054
32055 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
32056
32057 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
32058 `kern/powerpc/cache.S'.
32059
924b6140 320602004-12-27 Marco Gerards <metgerards@student.han.nl>
32061
32062 * genmk.rb: Handle the `Program' class in the main loop. Written
32063 by Johan Rydberg <jrydberg@gnu.org>.
32064 (Program): New class.
32065 (programs): New variable.
32066 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
32067 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
32068 instead of "grub/kernel.h". Include <grub/machine/init.h>.
32069 (help_arch): Function removed.
32070 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
32071 `powerpc/libgcc.h' and `loader.h'.
32072 (pkgdata_PROGRAMS): New variable.
32073 (sbin_UTILITIES): Variable removed.
32074 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
32075 (grubof_SOURCES): Variable re-defined so it only includes the
32076 core functionality.
32077 (grubof_CFLAGS): Remove `-DGRUBOF'.
32078 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
32079 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
32080 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
32081 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
32082 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
32083 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
32084 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
32085 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
32086 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
32087 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
32088 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32089 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
32090 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
32091 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
32092 (pc_mod_CFLAGS): New variables.
32093 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
32094 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
32095 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
32096 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
32097 Moved from here...
32098 * include/grub/i386/pc/init.h (grub_os_area_addr)
32099 (rub_os_area_size): ... to here.
32100 * include/grub/powerpc/ieee1275/ieee1275.h
32101 (grub_ieee1275_entry_fn): Export symbol.
32102 * include/grub/powerpc/ieee1275/init.h: New file.
32103 * include/grub/powerpc/libgcc.h: Likewise.
32104 * include/grub/cache.h: Likewise.
32105 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
32106 <hollis@penguinppc.org>.
32107 * kern/dl.c: Include <grub/cache.h>.
32108 (grub_dl_flush_cache): New function.
32109 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
32110 for this module.
32111 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
32112 (grub_console_init): Removed prototypes.
32113 (grub_machine_init): Don't initialize the modules anymore.
32114 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
32115 static.
32116 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
32117 Macro undef removed.
32118 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
32119 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
32120 relocation `R_PPC_REL32'. Return an error when the relocation is
32121 unknown.
32122 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
32123 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
32124 * util/misc.c (grub_arch_sync_caches): Likewise.
32125
e4b47e0c 321262004-12-19 Marco Gerards <metgerards@student.han.nl>
32127
32128 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
32129 `symlist.c', add `grubof_symlist.c'.
32130 (symlist.c): Variable removed.
32131 (grubof_HEADERS): Variable added.
32132 (grubof_symlist.c): New target.
32133 (kernel_syms.lst): Use `grubof_HEADERS' instead of
32134 `kernel_img_HEADERS'.
32135 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
32136 * kern/powerpc/dl.c: New file.
32137 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
32138 Function removed.
32139 (grub_arch_dl_relocate_symbols): Likewise.
32140 (grub_register_exported_symbols): Likewise.
32141
4ceb3636 321422004-12-13 Marco Gerards <metgerards@student.han.nl>
32143
32144 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
32145 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
32146 to fail instead. Reported by Vincent Pelletier
32147 <subdino2004@yahoo.fr>.
32148
32149 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
32150 it is not allocated. Reported by Vincent Pelletier
32151 <subdino2004@yahoo.fr>.
32152
32153 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
32154 output so the output looks better.
f19dbdb7 32155
3f1578fe 321562004-12-04 Marco Gerards <metgerards@student.han.nl>
32157
32158 Modulize the partition map support and add support for the amiga
32159 partition map.
f19dbdb7 32160
3f1578fe 32161 * commands/ls.c: Include <grub/partition.h> instead of
32162 <grub/machine/partition.h>.
32163 * kern/disk.c: Likewise.
32164 * kern/rescue.c: Likewise.
32165 * loader/i386/pc/chainloader.c: Likewise.
32166 * normal/cmdline.c: Likewise.
32167 * kern/powerpc/ieee1275/init.c: Likewise.
32168 (grub_machine_init): Call `grub_pc_partition_map_init',
32169 `grub_amiga_partition_map_init' and
32170 `grub_apple_partition_map_init'.
32171 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
32172 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
32173 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
32174 `partition.h' and `pc_partition.h'.
32175 (grub_setup_SOURCES): Remove
32176 `disk/i386/pc/partition.c'. Add `kern/partition.c',
32177 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
32178 (grub_emu_SOURCES): Likewise.
32179 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
32180 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
32181 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
32182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
32183 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
32184 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
32185 (grubof_SOURCES): Likewise.
32186 * disk/i386/pc/partition.c: File removed.
32187 * disk/powerpc/ieee1275/partition.c: Likewise.
32188 * include/grub/powerpc/ieee1275/partition.h: Likewise.
32189 * include/grub/i386/pc/partition.h: Likewise.
32190 * kern/partition.c: New file.
32191 * partmap/amiga.c: Likewise.
32192 * partmap/apple.c: Likewise.
32193 * partmap/pc.c: Likewise.
32194 * include/grub/partition.h: Likewise..
32195 * include/grub/pc_partition.h: Likewise.
32196 * util/grub-emu.c: Include <grub/partition.h> instead of
32197 <grub/machine/partition.h>.
32198 (main): Call `grub_pc_partition_map_init',
32199 `grub_amiga_partition_map_init' and
32200 `grub_apple_partition_map_init' and deinitialize afterwards.
32201 * util/i386/pc/biosdisk.c: Include `#include
32202 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
32203 `<grub/machine/partition.h>'.
32204 * util/i386/pc/grub-setup.c: Likewise.
32205 * util/i386/pc/biosdisk.c: Likewise.
32206 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
32207 partition information in case of a PC partition.
32208 * util/i386/pc/grub-setup.c: Include `#include
32209 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
32210 `<grub/machine/partition.h>'.
32211 (setup): Only access the PC specific partition information in case
32212 of a PC partition.
32213
0ef4ced9 322142004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 32215
0ef4ced9 32216 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
32217 (grub_longjmp): Likewise.
32218 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
32219 20.
32220 * normal/powerpc/setjmp.S: New file.
32221 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32222 `normal/powerpc/setjmp.S'.
32223 (grubof_CFLAGS): Add `-DGRUBOF'.
32224 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
32225 [GRUB_UTIL && !GRUBOF].
f19dbdb7 32226
19950e29 322272004-11-16 Marco Gerards <metgerards@student.han.nl>
32228
32229 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
32230 property named `name'. Correctly handle the error returned by
32231 `grub_ieee1275_finddevice' if a device can not be opened.
32232
a2fea427 322332004-11-02 Hollis Blanchard <hollis@penguinppc.org>
32234
32235 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
32236 `actual' for negativity.
32237 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
32238 kern/fshelp.c.
32239
41ea0ea3 322402004-11-01 Marco Gerards <metgerards@student.han.nl>
32241
32242 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
32243 (PAGE_OFFSET): New macro.
32244 (CRTC_ADDR_PORT): Likewise.
32245 (CRTC_DATA_PORT): Likewise.
32246 (START_ADDR_HIGH_REGISTER): Likewise.
32247 (START_ADDR_LOW_REGISTER): Likewise.
32248 (GRAPHICS_ADDR_PORT): Likewise.
32249 (GRAPHICS_DATA_PORT): Likewise.
32250 (READ_MAP_REGISTER): Likewise.
32251 (INPUT_STATUS1_REGISTER): Likewise.
32252 (INPUT_STATUS1_VERTR_BIT): Likewise.
32253 (page): New variable.
32254 (wait_vretrace): New function.
32255 (set_read_map): Likewise.
32256 (set_start_address): Likewise.
32257 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
32258 the right page.
32259 (check_vga_mem): Take the page into account.
32260 (write_char): Likewise.
32261 (write_cursor): Likewise.
32262 (scroll_up): Likewise. Copy the page to the page that is not
32263 shown and switch between both pages.
32264 (grub_vga_putchar): Fix off by one error.
32265 (grub_vga_cls): Wait for the vertical retrace. Take the page into
32266 account.
32267
ad0bd20b 322682004-11-01 Marco Gerards <metgerards@student.han.nl>
32269
32270 Add support for iso9660 (including rockridge).
f19dbdb7 32271
ad0bd20b 32272 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
32273 (iso9660_mod_SOURCES): New variable.
32274 (iso9660_mod_CFLAGS): Likewise.
32275 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
32276 * include/grub/fs.h (grub_iso9660_init): New prototype.
32277 * util/grub-emu.c (main): Call `grub_iso9660_init'.
32278 * fs/iso9660.c: New file.
32279
32280 * include/grub/misc.h (grub_strncat): New prototype.
32281 * kern/misc.c (grub_strncat): New function.
f19dbdb7 32282
ad0bd20b 32283 * fs/hfs.c (grub_hfs_mount): Translate the error
32284 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
32285 * fs/jfs.c (grub_jfs_mount): Likewise.
32286 * fs/ufs.c (grub_ufs_mount): Likewise.
32287
a5477a59 322882004-10-28 Hollis Blanchard <hollis@penguinppc.org>
32289
32290 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
32291 which initialized BAT registers.
32292 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
32293 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
32294 Move from here...
32295 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
32296 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
32297 ... to here.
32298 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
32299 (grub_mapclaim): Likewise.
32300 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
32301 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
32302 hand.
32303
9304c1f8 323042004-10-19 Hollis Blanchard <hollis@penguinppc.org>
32305
32306 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
32307 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
32308 -ffreestanding and -msoft-float.
32309
86f4ae25 323102004-10-15 Hollis Blanchard <hollis@penguinppc.org>
32311
32312 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
32313 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
32314 set in grub_ieee1275_flags.
32315
38912228 323162004-10-14 Hollis Blanchard <hollis@penguinppc.org>
32317
32318 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
32319 prototype.
32320 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
32321 grub_console_init first.
32322 Change the memory range used for grub_ieee1275_claim and
32323 grub_mm_init_region.
32324 Print an error message if the claim fails.
32325 Include <grub/misc.h>.
32326
d1923dc8 323272004-10-13 Hollis Blanchard <hollis@penguinppc.org>
32328
32329 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
32330 Call grub_children_iterate for device nodes of type `scsi',
32331 `ide', or `ata'.
32332 (grub_ofdisk_open): Remove manual device alias resolution.
32333 Fix memory leak when device cannot be opened.
f19dbdb7 32334 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 32335 (grub_children_iterate): New prototype.
32336 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
32337 New function.
32338 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32339 Return -1 if args.size was -1.
32340
4512e4f3 323412004-10-11 Hollis Blanchard <hollis@penguinppc.org>
32342
32343 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
32344 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
32345 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
32346 Open Firmware's memory for it; claim memory from _start to _end.
32347 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
32348 (_end): New extern.
32349 (_start): Zero BSS from __bss_start to _end.
32350 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
32351 New extern.
32352 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
32353
4d61feb0 323542004-10-11 Hollis Blanchard <hollis@penguinppc.org>
32355
ad0bd20b 32356 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
32357 -1 if args.base was -1.
4d61feb0 32358
026fa2f9 323592004-10-08 Hollis Blanchard <hollis@penguinppc.org>
32360
32361 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
32362 escape sequence instead of a literal ^L. Also call
32363 grub_ofconsole_gotoxy.
32364
9f2220ef 323652004-10-03 Hollis Blanchard <hollis@penguinppc.org>
32366
32367 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
32368 void * arguments to grub_addr_t. All callers updated. Also make
32369 the `result' argument optional.
32370 (grub_ieee1275_release): change void * arguments to grub_addr_t.
32371 All callers updated.
32372
8a572cd7 323732004-09-22 Hollis Blanchard <hollis@penguinppc.org>
32374
32375 * commands/ls.c (grub_ls_list_files): Use the string following the
32376 initial ')', if present, as the filesystem path.
32377 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
32378
32379 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
32380
18aa81f2 323812004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
32382
32383 Make the source code of the menu interface more readable.
f19dbdb7 32384
18aa81f2 32385 * normal/menu.c: Include grub/mm.h.
32386 (TERM_WIDTH): New macro.
32387 (TERM_HEIGHT): Likewise.
32388 (TERM_INFO_HEIGHT): Likewise.
32389 (TERM_MARGIN): Likewise.
32390 (TERM_SCROLL_WIDTH): Likewise.
32391 (TERM_TOP_BORDER_Y): Likewise.
32392 (TERM_LEFT_BORDER_X): Likewise.
32393 (TERM_BORDER_WIDTH): Likewise.
32394 (TERM_MESSAGE_HEIGHT): Likewise.
32395 (TERM_BORDER_HEIGHT): Likewise.
32396 (TERM_NUM_ENTRIES): Likewise.
32397 (TERM_FIRST_ENTRY_Y): Likewise.
32398 (TERM_ENTRY_WIDTH): Likewise.
32399 (TERM_CURSOR_X): Likewise.
32400 (draw_border): Use macros instead of magic numbers.
32401 (print_entry): Likewise.
32402 (print_entries): Likewise.
32403 (run_menu): Likewise. Also, handle the key 'e'.
32404 (run_menu_entry): Ignore empty command lines.
32405 (print_message): Added a new argument EDIT. If EDIT is true,
32406 print a different message.
32407 (init_page): Likewise.
32408 (edit_menu_entry): New function. Not implemented yet.
32409
b47efe30 324102004-09-17 Marco Gerards <metgerards@student.han.nl>
32411
32412 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
32413 can be loaded from normal mode.
f19dbdb7 32414
b47efe30 32415 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
32416 `multiboot.mod'.
32417 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
32418 (multiboot_mod_CFLAGS): New variables.
32419 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 32420 * loader/i386/pc/multiboot_normal.c: Likewise.
32421
b47efe30 32422 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
32423 attribute `unused'.
f19dbdb7 32424
b47efe30 32425 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
32426 `fdiro' to read the mode information from instead of `diro'.
32427
32428 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
32429 looking up a symlink.
32430
32431 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
32432 macro.
32433 * normal/command.c (grub_command_execute): Don't parse the
32434 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
32435 flags of the command.
32436
32437 * normal/menu.c (grub_menu_run): Fix typo.
32438
da75ac71 324392004-09-14 Hollis Blanchard <hollis@penguinppc.org>
32440
32441 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
32442
32443 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
32444 `y + 1' instead of `y - 1'.
32445
32446 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 32447
062b24c2 324482004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
32449
32450 From Hollis Blanchard <hollis@penguinppc.org>:
32451 * kern/misc.c (memmove): New alias for grub_memmove.
32452 (memcmp): New alias for grub_memcmp.
32453 (memset): New alias for grub_memset.
f19dbdb7 32454 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 32455 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 32456 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 32457 (grub_ieee1275_get_property): Likewise.
f19dbdb7 32458
8ddad845 324592004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
32460
32461 Added normal mode command `chainloader' as module chain.mod, which
32462 depends on normal.mod and _chain.mod.
f19dbdb7 32463
8ddad845 32464 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
32465 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
32466 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
32467 Deleted prototype.
32468 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
32469 but arguments parsing moved to ...
32470 (grub_chainloader_cmd): ... here. New function.
32471 * include/grub/i386/pc/chainloader.h: New file.
32472 * loader/i386/pc/chainloader_normal.c: Likewise.
32473
2c1f4ce3 324742004-09-11 Marco Gerards <metgerards@student.han.nl>
32475
32476 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
32477 (grub_mkimage_LDFLAGS): Likewise.
32478 (grub_emu_SOURCES): Likewise.
32479 (kernel_img_HEADERS): Added fshelp.h.
32480 * fs/ext2.c: Include <grub/fshelp.h>.
32481 (FILETYPE_REG): New macro.
32482 (FILETYPE_INO_REG): Likewise.
32483 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
32484 Changed all users.
32485 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
32486 all users.
32487 (grub_fshelp_node): New struct.
32488 (grub_ext2_data): Added member `diropen'. Changed member `inode'
32489 to a pointer.
32490 (grub_ext2_get_file_block): Removed function.
32491 (grub_ext2_read_block): New function.
32492 (grub_ext2_read_file): Replaced parameter `data' by `node'.
32493 This function was written.
32494 (grub_ext2_mount): Read the root inode. Create a diropen struct.
32495 (grub_ext2_find_file): Removed function.
32496 (grub_ext2_read_symlink): New function.
32497 (grub_ext2_iterate_dir): Likewise.
32498 (grub_ext2_open): Rewritten.
32499 (grub_ext2_dir): Rewritten.
32500 * include/grub/fshelp.h: New file.
32501 * fs/fshelp.c: Likewise.
32502
3c52136a 325032004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
32504
32505 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
32506 (print_message): Add a missing newline.
32507 (run_menu): Added timeout support.
32508 (run_menu_entry): New local function.
32509 (grub_menu_run): Added support for booting.
32510
32511 * kern/loader.c (grub_loader_is_loaded): New function.
32512
32513 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
32514 (grub_get_rtc): Exported.
32515
32516 * include/grub/i386/pc/time.h: Include grub/symbol.h.
32517 (grub_get_rtc): Exported.
32518
32519 * include/grub/normal.h (struct grub_command_list): Remove
32520 constant from the member `command'.
32521
32522 * include/grub/loader.h (grub_loader_is_loaded): Declared.
32523
32524 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
32525
32526 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
32527
aa033560 325282004-08-28 Marco Gerards <metgerards@student.han.nl>
32529
32530 Add support for the JFS filesystem.
32531
32532 * fs/jfs.c: New file.
32533 * include/grub/fs.h (grub_jfs_init): New prototype.
32534 (grub_jfs_fini): New prototype.
32535 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
32536 (grub_emu_SOURCES): Likewise.
32537 (pkgdata_MODULES): Add jfs.mod.
32538 (jfs_mod_SOURCES): New variable.
32539 (jfs_mod_CFLAGS): Likewise.
32540 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
32541 (grubof_SOURCES): Likewise.
32542 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
32543
32544 * fs/fat.c (grub_fat_find_dir): Convert the filename little
32545 endian to the host endian.
32546 (grub_fat_utf16_to_utf8): Move function from there...
32547 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 32548 the endianness of the source string anymore.
aa033560 32549 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
32550
94bc45af 325512004-08-24 Marco Gerards <metgerards@student.han.nl>
32552
32553 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
32554 (grub_boot_fini) [GRUB_UTIL]: Likewise.
32555 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
32556 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 32557
94bc45af 32558 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
32559 (grub_hfs_iterate_dir): Make the function static. Add prototypes
32560 for `node_found' and `it_dir'.
32561 (grub_hfs_dir): Add prototype for `dir_hook'.
32562
32563 * fs/minix.c (grub_minix_get_file_block): Add prototype for
32564 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
32565 and `indir32' to silence a gcc warning.
32566
32567 * include/grub/fs.h (grub_hfs_init): New prototype.
32568 (grub_hfs_fini): Likewise.
f19dbdb7 32569
32570
97543f08 325712004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32572
32573 Each disk device has its own id now. This is useful to make use
32574 of multiple disk devices.
f19dbdb7 32575
97543f08 32576 * include/grub/disk.h (grub_disk_dev_id): New enum.
32577 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
32578 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
32579
32580 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
32581 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32582
32583 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
32584 GRUB_DISK_DEVICE_OFDISK_ID as an id.
32585
32586 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
32587 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32588
32589 * include/grub/disk.h (struct grub_disk_dev): Added a new member
32590 "id" which is used by the cache manager.
32591
32592 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
32593 of just "GRUB".
32594
64372eb4 325952004-08-18 Marco Gerards <metgerards@student.han.nl>
32596
32597 * fs/hfs.c: New file.
32598 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
32599 (grub_emu_SOURCES): Likewise.
32600 (pkgdata_MODULES): Add hfs.mod.
32601 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
32602 (grubof_SOURCES): Likewise.
32603 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
32604
32605 * include/grub/misc.h (grub_strncasecmp): Add prototype.
32606 * kern/misc.c (grub_strncasecmp): Add function.
32607
cc61b58f 326082004-08-14 Marco Gerards <metgerards@student.han.nl>
32609
32610 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
32611 with parentheses.
32612
32613 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
32614 (grub_ext2_dir): In case the directory entry type is unknown, read
32615 it from the inode.
32616
0ef123f6 326172004-08-02 Peter Bruin <pjbruin@dds.nl>
32618
32619 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
32620 grub_load_linux instead of grub_rescue_cmd_linux as second
32621 argument of grub_rescue_register_command.
32622
32623 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
32624
a447c5df 326252004-07-27 Marco Gerards <metgerards@student.han.nl>
32626
32627 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
32628 function.
32629 * commands/boot.c: Remove the check for `GRUB_UTIL'.
32630 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32631 `loader/powerpc/ieee1275/linux.c',
32632 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
32633 * include/grub/powerpc/ieee1275/ieee1275.h
32634 (grub_ieee1275_release): New prototype.
32635 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
32636 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
32637 normal, boot, linux and linux_normal.
32638 * loader/powerpc/ieee1275/linux.c: New file.
32639 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32640
5a9e3546 326412004-07-12 Marco Gerards <metgerards@student.han.nl>
32642
32643 * normal/arg.c (grub_arg_parse): Correct error handling after
32644 reallocating the argumentlist (check if `argl' is not null instead
32645 of checking if `args' is not null).
32646 * kern/mm.c (grub_realloc): Return the same pointer when using the
32647 same region, instead of returning the header address.
32648
e15199cb 326492004-07-11 Marco Gerards <metgerards@student.han.nl>
32650
32651 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
32652 one block instead of two when looking for the initial partition.
32653 (grub_partition_probe): Initialize the local variable `p' with 0.
32654 Use base 10 for the grub_strtoul call.
32655 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
32656 need for one local variable.
32657 (grub_strtoul): Don't add the new value to `num', instead of that
32658 just assign it.
32659
020616c2 326602004-07-11 Marco Gerards <metgerards@student.han.nl>
32661
32662 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
32663 (pxeboot_img_SOURCES): New variable.
32664 (pxeboot_img_ASFLAGS): Likewise.
32665 (pxeboot_img_LDFLAGS): Likewise.
32666 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
32667 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
32668 <lode_leroy@hotmail.com>.
32669
6c51eb64 326702004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32671
32672 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
32673 there was no input.
32674
cfb12aff 326752004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32676
32677 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
32678 the history buffer logic.
32679
6eabba74 326802004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32681
32682 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
32683 (FILETYPE_INO_SYMLINK): New macros.
32684 (grub_ext2_find_file): Check if the node is a directory using the
32685 inode stat information instead of using the filetype in the
32686 dirent. Exclude the first character of an absolute symlink.
32687 (grub_ext2_dir): Mask out the filetype part of the mode member of
32688 the inode.
32689
66e19ef8 326902004-05-24 Marco Gerards <metgerards@student.han.nl>
32691
32692 Add support for UFS version 1 and 2. Add support for the minix
32693 filesystem version 1 and 2, both the variants with 14 and 30 long
32694 filenames.
f19dbdb7 32695
66e19ef8 32696 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
32697 fs/minix.c.
32698 (grub_emu_SOURCES): Likewise.
32699 (pkgdata_MODULES): Add ufs.mod and minix.mod.
32700 (ufs_mod_SOURCES): New variable.
32701 (ufs_mod_CFLAGS): Likewise.
32702 (minix_mod_SOURCES): Likewise.
32703 (minix_mod_CFLAGS): Likewise.
32704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
32705 fs/minix.c.
32706 (grubof_SOURCES): Likewise.
32707 * fs/ufs.c: New file.
32708 * fs/minix.c: New file.
32709 * include/grub/fs.h (grub_ufs_init): New prototype.
32710 (grub_ufs_fini): Likewise.
32711 (grub_minix_init): Likewise.
32712 (grub_minix_fini): Likewise.
32713 * util/grub-emu.c (main): Initialize and deinitialize UFS and
32714 minix fs.
32715
cc2e748a 327162004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
32717
32718 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
32719 commands/ls.c, commands/terminal.c, commands/boot.c,
32720 commands/cmp.c and commands/cat.c.
32721 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
32722
32723 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
32724 "env.h"
32725
4b13b216 327262004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32727
32728 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
32729 and grub_, respectively. Because the conversion is trivial and
32730 mechanical, I omit the details here. Please refer to the CVS
32731 if you need more information.
32732
6a142551 327332004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32734
32735 * include/pupa: Renamed to ...
32736 * include/grub: ... this.
32737 * util/i386/pc/pupa-mkimage.c: Renamed to ...
32738 * util/i386/pc/grub-mkimage.c: ... this.
32739 * util/i386/pc/pupa-setup.c: Renamed to ...
32740 * util/i386/pc/grub-setup.c: ... this.
32741 * util/pupa-emu.c: Renamed to ...
32742 * util/grub-emu.c: ... this.
32743
e56cdf21 327442004-03-29 Marco Gerards <metgerards@student.han.nl>
32745
32746 Add support for the newworld apple macintosh (PPC). This has been
32747 tested on the powerbook 2000 only. It only adds support for
32748 generic ieee1275 functions, console and disk support. This should
32749 be easy to port to other architectures with support for Open
32750 Firmware.
f19dbdb7 32751
e56cdf21 32752 * configure.ac: Accept the powerpc as host_cpu. In the case of
32753 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
32754 specific tests are only executed while building for the i386.
32755 Inverse test for crosscompile.
32756 * genmk.rb (Utility): Allow assembler files.
32757 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
32758 * conf/powerpc-ieee1275.rmk: New file.
32759 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
32760 * disk/powerpc/ieee1275/partition.c: Likewise.
32761 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
32762 * include/pupa/powerpc/ieee1275/console.h: Likewise.
32763 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
32764 * include/pupa/powerpc/ieee1275/time.h: Likewise.
32765 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
32766 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
32767 * include/pupa/powerpc/ieee1275/loader.h
32768 * include/pupa/powerpc/setjmp.h: Likewise.
32769 * include/pupa/powerpc/types.h: Likewise.
32770 * kern/powerpc/ieee1275/init.c: Likewise.
32771 * kern/powerpc/ieee1275/openfw.c: Likewise.
32772 * term/powerpc/ieee1275/ofconsole.c: Likewise.
32773
32774 These files were written by Johan Rydberg
32775 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 32776
e56cdf21 32777 * boot/powerpc/ieee1275/cmain.c: New file.
32778 * boot/powerpc/ieee1275/crt0.S: Likewise.
32779 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
32780 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
32781
8c8cc205 327822004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
32783
32784 * Makefile.in: Update copyright.
32785 * genmodsrc.sh: Likewise.
32786 * gensymlist.sh: Likewise.
32787 * term/i386/pc/vga.c: Indent correctly.
32788
32789 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
32790 bugreporting address.
32791 * util/i386/pc/pupa-setup.c (usage): Likewise,
32792 (main): Call pupa_ext2_init and pupa_ext2_fini.
32793
f19dbdb7 32794 * fs/fat.c (log2): Renamed to ...
8c8cc205 32795 (fat_log2): ... this.
32796 All callers changed.
32797 * kern/misc.c (memcpy): Alias to pupa_memmove.
32798 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
32799 lvalue cast.
32800 * util/console.c (pupa_ncurses_fini): Return 0.
32801
32802 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
32803 Move fail label here.
32804 [__GNU__]: Don't warn when using stat.
32805 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
32806 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
32807 long int. Use strtol instead of strtoul.
f19dbdb7 32808
db1771cf 328092004-03-14 Marco Gerards <metgerards@student.han.nl>
32810
32811 * commands/boot.c: New file.
32812 * commands/cat.c: Likewise.
32813 * commands/cmp.c: Likewise.
32814 * commands/ls.c: Likewise.
32815 * commands/terminal.c: Likewise.
32816 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
32817 (pupa_register_command): Changed interface to match the new
32818 argument parser.
32819 (pupa_command_execute): Changed (almost rewritten) so it uses
32820 pupa_split_command. Added support for setting variables using the
32821 syntax `foo=bar'.
32822 (rescue_command): Changed to work with the new argument parser.
32823 (terminal_command): Moved from here to commands/terminal.c.
32824 (set_command): New function.
32825 (unset_command): New function.
32826 (insmod_command): New function.
32827 (rmmod_command): New function.
32828 (lsmod_command): New function.
32829 (pupa_command_init): Don't initialize the command terminal
32830 anymore. Initialize the commands set, unset, insmod, rmmod and
32831 lsmod.
32832 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
32833 (kernel_img_HEADERS): Add arg.h and env.h.
32834 (pupa_mkimage_LDFLAGS): Add kern/env.c.
32835 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
32836 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
32837 normal/arg.c.
32838 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
32839 terminal.mod.
32840 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
32841 (boot_mod_SOURCES): New variable.
32842 (terminal_mod_SOURCES): Likewise.
32843 (ls_mod_SOURCES): Likewise.
32844 (cmp_mod_SOURCES): Likewise.
32845 (cat_mod_SOURCES): Likewise.
32846
32847 * normal/arg.c: New file.
32848 * kern/env.c: Likewise.
32849 * include/pupa/arg.h: Likewise.
32850 * include/pupa/env.h: Likewise.
32851 * font/manager.c (font_command): Changed to match argument parsing
32852 interface changes.
32853 (PUPA_MOD_INIT): Likewise.
32854 * hello/hello.c (pupa_cmd_hello): Likewise.
32855 (PUPA_MOD_INIT): Likewise.
32856 * include/pupa/disk.h: Include <pupa/device.h>.
32857 (pupa_print_partinfo): New prototype.
32858 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
32859 (pupa_dl_get_prefix): Likewise.
32860 * include/pupa/misc.h: Include <pupa/err.h>.
32861 (pupa_isgraph): New prototype.
32862 (pupa_isdigit): Likewise.
32863 (pupa_split_cmdline): Likewise.
32864 * include/pupa/normal.h: Include <pupa/arg.h>.
32865 (pupa_command): Changed the prototype of the member `func' to
32866 match the argument parsing interface. Added member `options'.
32867 (pupa_register_command): Updated to match function.
32868 (pupa_arg_parse): New prototype.
32869 (pupa_hello_init) [PUPA_UTIL]: New prototype.
32870 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
32871 (pupa_ls_init) [PUPA_UTIL]: Likewise.
32872 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
32873 (pupa_cat_init) [PUPA_UTIL]: Likewise.
32874 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
32875 (pupa_boot_init) [PUPA_UTIL]: Likewise.
32876 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
32877 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
32878 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
32879 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
32880 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
32881 * kern/disk.c: Include <pupa/file.h>.
32882 (pupa_print_partinfo): New function.
32883 * kern/dl.c: Include <pupa/env.h>.
32884 (pupa_dl_dir): Variable removed.
32885 (pupa_dl_load): Use the environment variable `prefix' instead of
32886 the variable pupa_dl_dir.
32887 (pupa_dl_set_prefix): Function removed.
32888 (pupa_dl_get_prefix): Likewise.
32889 * kern/i386/pc/init.c: Include <pupa/env.h>.
32890 (pupa_machine_init): Use the environment variable `prefix' instead of
32891 using pupa_dl_set_prefix to set the prefix.
32892 * kern/main.c: Include <pupa/env.h>.
32893 (pupa_set_root_dev): Use the environment variable `prefix' instead of
32894 using pupa_dl_get_prefix to get the prefix.
32895 * kern/misc.c: Include <pupa/env.h>.
32896 (pupa_isdigit): New function.
32897 (pupa_isgraph): Likewise.
32898 (pupa_ftoa): Likewise.
32899 (pupa_vsprintf): Added support for printing values of the type
32900 `double'. Make it possible to format variable output when using
32901 formatting like `%1.2%f'.
32902 (pupa_split_cmdline): New function.
32903 * kern/rescue.c: Include <pupa/env.h>.
32904 (next_word): Removed function.
32905 (pupa_rescue_cmd_prefix): Likewise.
32906 (pupa_rescue_cmd_set): New function.
32907 (pupa_rescue_cmd_unset): New function.
32908 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
32909 split the command line instead of splitting it here. Added
32910 support for setting variables using the syntax `foo=bar'. Don't
32911 initialize the prefix command anymore. Initialized the set and
32912 unset commands.
32913 * normal/cmdline.c: Include <pupa/env.h>.
32914 (pupa_tab_complete): Added prototypes for print_simple_completion,
32915 print_partition_completion, add_completion, iterate_commands,
32916 iterate_dev, iterate_part and iterate_dir. Moved code to print
32917 partition information from here to kern/disk.c.
fe6b695a 32918 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 32919 * normal/main.c: Include <pupa/env.h>.
32920 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
32921 instead of using pupa_dl_get_prefix to get the prefix.
32922 * term/i386/pc/vga.c: Include <pupa/arg.h>.
32923 (check_vga_mem): Cast pointers to `void *' to silence a gcc
32924 warning.
32925 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
32926 (pupa_vga_setcolor): Declare unused variables with `__attribute__
32927 ((unused))' to silence a gcc warning.
32928 (pupa_vga_setcolor): Likewise.
32929 (debug_command): Changed to match argument parsing
32930 interface changes.
32931 * util/pupa-emu.c: Include <pupa/env.h>.
32932 (options): Added 0's for unused fields to silence a gcc warning.
32933 (argp): Likewise.
32934 (main): Use the environment variable `prefix' instead of using
32935 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
32936 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
32937 and terminal.
32938
32939 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
32940 * util/misc.c: Include <malloc.h>.
32941 (pupa_malloc): Rewritten so errors are correctly reported.
32942 (pupa_realloc): Likewise.
32943 (pupa_memalign): Likewise.
32944 (pupa_mm_init_region): Declare unused variables with
32945 `__attribute__ ((unused))' to silence a gcc warning.
32946 * normal/i386/setjmp.S: Remove tab at the end of the file to
32947 silence a gcc warning.
32948 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
32949 variables with `__attribute__ ((unused))' to silence a gcc
32950 warning.
32951 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
32952 local variable i unsigned to silence a gcc warning.
32953
32954 * kern/term.c: Include <pupa/misc.h>.
32955 (pupa_more_lines): New variable.
32956 (pupa_more): Likewise.
32957 (pupa_putcode): When the pager is active pause at the end of every
32958 screen.
32959 (pupa_set_more): New function.
32960 * include/pupa/term.h (pupa_set_more): New prototype.
32961
32962
3b1139cb 329632004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
32964
32965 Now this project is GRUB 2 rather than PUPA. The location of
32966 the CVS repository was moved to GRUB's.
f19dbdb7 32967
3b1139cb 32968 * configure.ac: Use bug-grub as the reporting address.
32969 Use GRUB instead of PUPA.
32970 Change the version number to 1.90.
32971
8367695c 329722004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
32973
32974 * genkernsyms.sh: Updated copyright information.
32975 * genmk.rb: Likewise.
32976 * genmodsrc.sh: Likewise.
32977 * gensymlist.sh: Likewise.
32978 * boot/i386/pc/boot.S: Likewise.
32979 * boot/i386/pc/diskboot.S: Likewise.
32980 * disk/i386/pc/biosdisk.c: Likewise.
32981 * disk/i386/pc/partition.c: Likewise.
32982 * font/manager.c: Likewise.
32983 * fs/ext2.c: Likewise.
32984 * fs/fat.c: Likewise.
32985 * include/pupa/boot.h: Likewise.
32986 * include/pupa/device.h: Likewise.
32987 * include/pupa/disk.h: Likewise.
32988 * include/pupa/dl.h: Likewise.
32989 * include/pupa/elf.h: Likewise.
32990 * include/pupa/err.h: Likewise.
32991 * include/pupa/file.h: Likewise.
32992 * include/pupa/font.h: Likewise.
32993 * include/pupa/fs.h: Likewise.
32994 * include/pupa/kernel.h: Likewise.
32995 * include/pupa/loader.h: Likewise.
32996 * include/pupa/misc.h: Likewise.
32997 * include/pupa/mm.h: Likewise.
32998 * include/pupa/net.h: Likewise.
32999 * include/pupa/normal.h: Likewise.
33000 * include/pupa/rescue.h: Likewise.
33001 * include/pupa/setjmp.h: Likewise.
33002 * include/pupa/symbol.h: Likewise.
33003 * include/pupa/term.h: Likewise.
33004 * include/pupa/types.h: Likewise.
33005 * include/pupa/i386/setjmp.h: Likewise.
33006 * include/pupa/i386/types.h: Likewise.
33007 * include/pupa/i386/pc/biosdisk.h: Likewise.
33008 * include/pupa/i386/pc/boot.h: Likewise.
33009 * include/pupa/i386/pc/console.h: Likewise.
33010 * include/pupa/i386/pc/init.h: Likewise.
33011 * include/pupa/i386/pc/kernel.h: Likewise.
33012 * include/pupa/i386/pc/linux.h: Likewise.
33013 * include/pupa/i386/pc/loader.h: Likewise.
33014 * include/pupa/i386/pc/memory.h: Likewise.
33015 * include/pupa/i386/pc/multiboot.h: Likewise.
33016 * include/pupa/i386/pc/partition.h: Likewise.
33017 * include/pupa/i386/pc/time.h: Likewise.
33018 * include/pupa/i386/pc/vga.h: Likewise.
33019 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
33020 * include/pupa/util/getroot.h: Likewise.
33021 * include/pupa/util/misc.h: Likewise.
33022 * include/pupa/util/resolve.h: Likewise.
33023 * kern/device.c: Likewise.
33024 * kern/disk.c: Likewise.
33025 * kern/dl.c: Likewise.
33026 * kern/err.c: Likewise.
33027 * kern/file.c: Likewise.
33028 * kern/fs.c: Likewise.
33029 * kern/loader.c: Likewise.
33030 * kern/main.c: Likewise.
33031 * kern/misc.c: Likewise.
33032 * kern/mm.c: Likewise.
33033 * kern/rescue.c: Likewise.
33034 * kern/term.c: Likewise.
33035 * kern/i386/dl.c: Likewise.
33036 * kern/i386/pc/init.c: Likewise.
33037 * kern/i386/pc/lzo1x.S: Likewise.
33038 * kern/i386/pc/startup.S: Likewise.
33039 * loader/i386/pc/chainloader.c: Likewise.
33040 * loader/i386/pc/linux.c: Likewise.
33041 * loader/i386/pc/multiboot.c: Likewise.
33042 * normal/cmdline.c: Likewise.
33043 * normal/command.c: Likewise.
33044 * normal/main.c: Likewise.
33045 * normal/menu.c: Likewise.
33046 * normal/i386/setjmp.S: Likewise.
33047 * term/i386/pc/console.c: Likewise.
33048 * term/i386/pc/vga.c: Likewise.
33049 * util/console.c: Likewise.
33050 * util/genmoddep.c: Likewise.
33051 * util/misc.c: Likewise.
33052 * util/pupa-emu.c: Likewise.
33053 * util/resolve.c: Likewise.
33054 * util/unifont2pff.rb: Likewise.
33055 * util/i386/pc/biosdisk.c: Likewise.
33056 * util/i386/pc/getroot.c: Likewise.
33057 * util/i386/pc/pupa-mkimage.c: Likewise.
33058 * util/i386/pc/pupa-setup.c: Likewise.
33059
e6eced71 330602004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
33061
33062 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
33063 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
33064 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
33065 reading and reset it after reading.
33066 (pupa_ext2_close): Return PUPA_ERR_NONE.
33067
33068 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
33069 Correct value.
33070 (struct linux_kernel_header): Add kernel_version and
33071 initrd_addr_max.
33072 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
33073 pupa_file_read succeeds.
33074 (pupa_rescue_cmd_initrd): Implement.
33075
5aded270 330762003-12-03 Marco Gerards <metgerards@student.han.nl>
33077
33078 * fs/ext2.c (pupa_ext2_label): New function.
33079 (pupa_ext2_fs): Added label.
33080 * fs/fat.c (pupa_fat_label): New function.
33081 (pupa_fat_fs): Added label.
33082 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
33083
33084 * kern/misc.c (pupa_strndup): New function.
33085 * include/pupa/misc.h (pupa_strndup): New prototype.
33086
33087 * include/pupa/normal.h: Include <pupa/err.h>.
33088 (pupa_set_history): New prototype.
33089 (pupa_iterate_commands): New prototype.
33090 * normal/cmdline.c: Include <pupa/machine/partition.h>,
33091 <pupa/disk.h>, <pupa/file.h>.
33092 (hist_size): New variable.
33093 (hist_lines): Likewise.
33094 (hist_end): Likewise.
33095 (hist_used): Likewise.
33096 (pupa_set_history): New function.
33097 (pupa_history_get): Likewise.
33098 (pupa_history_add): Likewise.
33099 (pupa_history_replace): Likewise.
33100 (pupa_tab_complete): Likewise.
33101 (pupa_cmdline_run): Added tab completion and history buffer. Tab
33102 completion shows partitionnames while completing partitions, this
33103 feature was suggested by Jeff Bailey.
33104 * normal/command.c (pupa_iterate_commands): New function.
33105 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
33106 (pupa_normal_init): Initialize history buffer.
33107 (PUPA_MOD_INIT): Likewise.
33108 (pupa_normal_fini): Free the history buffer.
33109 (PUPA_MOD_FINI): Likewise.
33110
33111 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
33112 key.
33113
33114 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
33115 * configure.ac [i386]: Check for regparam bug.
33116 (NESTED_FUNC_ATTR) [! i386]: Defined.
33117
1f7315a3 331182003-11-17 Marco Gerards <metgerards@student.han.nl>
33119
33120 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
33121 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
33122 (pupa_emu_SOURCES): New variable.
33123 (pupa_emu_LDFLAGS): Likewise.
33124 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
33125 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
33126 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
33127 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
33128 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
33129 (pupa_jmp_buf): New typedef.
33130 (pupa_setjmp) [PUPA_UTIL]: New macro.
33131 (pupa_longjmp) [PUPA_UTIL]: Likewise.
33132 * include/pupa/term.h (struct pupa_term): New member `refresh'.
33133 (pupa_refresh): New prototype.
33134 * include/pupa/util/getroot.h: New file.
33135 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
33136 it.
33137 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
33138 (pupa_rescue_cmd_cat): Likewise.
33139 (pupa_rescue_cmd_ls): Likewise.
33140 (pupa_rescue_cmd_testload): Likewise.
33141 (pupa_rescue_cmd_lsmod): Likewise.
33142 * normal/cmdline.c (pupa_cmdline_get): Likewise.
33143 * normal/menu.c (run_menu): Likewise.
33144 * kern/term.c (pupa_cls): Likewise.
33145 (pupa_refresh): New function.
33146 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
33147 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
33148 * util/console.c: New file.
f19dbdb7 33149
1f7315a3 33150 * util/i386/pc/getroot.c: New file.
33151 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
33152 (pupa_putchar): New function.
33153 (pupa_refresh): Likewise.
33154 (xgetcwd): Function moved to ...
33155 (strip_extra_slashes): Likewise.
33156 (get_prefix): Likewise.
f19dbdb7 33157 * util/i386/pc/getroot.c: ... here.
1f7315a3 33158 (find_root_device): Function moved and renamed to...
33159 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
33160 Changed all callers.
33161 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
33162 and renamed to...
33163 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
33164 Changed all callers.
33165 * util/misc.c (pupa_memalign): New function.
33166 (pupa_mm_init_region): Likewise.
33167 (pupa_register_exported_symbols): Likewise.
33168 (pupa_putchar): Function removed.
33169 * util/pupa-emu.c: New file.
33170
9a5c1ade 331712003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
33172
33173 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
33174 (_multiboot_mod_SOURCES): New variable.
33175 (_multiboot_mod_CFLAGS): Likewise.
33176 * loader/i386/pc/multiboot.c: New file.
33177 * include/pupa/i386/pc/multiboot.h: Likewise.
33178 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
33179 (pupa_multiboot_real_boot): New function.
33180 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
33181 (pupa_multiboot_real_boot): New prototype.
33182 (pupa_rescue_cmd_multiboot): Likewise
33183 (pupa_rescue_cmd_module): Likewise.
33184
33185 * kern/loader.c (pupa_loader_set): Continue when
33186 pupa_loader_unload_func() fails.
33187 (pupa_loader_unset): New function.
33188 * include/pupa/loader.h (pupa_loader_unset): New prototype.
33189
33190 * kern/misc.c (pupa_stpcpy): New function.
33191 * include/pupa/misc.h (pupa_stpcpy): New prototype.
33192
8e72a9c0 331932003-11-12 Marco Gerards <metgerards@student.han.nl>
33194
33195 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
33196 for available extensions.
33197
33198 * include/pupa/i386/pc/time.h: New file.
33199 * kern/disk.c: Include <pupa/machine/time.h>.
33200 (PUPA_CACHE_TIMEOUT): New macro.
33201 (pupa_last_time): New variable.
33202 (pupa_disk_open): Flush the cache when there was a timeout.
33203 (pupa_disk_close): Reset the timer.
33204 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
33205 pupa_currticks.
33206 * util/misc.c: Include <sys/times.h>
33207 (pupa_get_rtc): New function.
33208
c4adbd32 332092003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33210
33211 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
33212 as blocks.
33213 (pupa_ext2_get_file_block): Use blocks member.
33214
33215 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
33216 first block. Return -1 instead of pupa_errno on error.
33217
bfd30f06 332182003-10-27 Marco Gerards <metgerards@student.han.nl>
33219
33220 * README: In the pupa-mkimage example use _chain instead of chain
33221 and ext2 instead of fat.
33222 * TODO: Replace ext2fs with jfs as an example. Add an item for
33223 adding journal playback for ext2fs.
33224 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
33225 (pkgdata_MODULES): Added ext2.mod.
33226 (ext2_mod_SOURCES): New variable.
33227 (ext2_mod_CFLAGS): Likewise.
33228 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
33229 * include/pupa/misc.h (pupa_strncpy): New prototype.
33230 (pupa_strcat): Likewise.
33231 (pupa_strncmp): Likewise.
33232 * kern/misc.c (pupa_strcat): Enable function.
33233 (pupa_strncpy): New function.
33234 (pupa_strncmp): Likewise.
33235 * fs/ext2.c: New file.
f19dbdb7 33236
bfd30f06 33237 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
33238 when the read failed before retrying.
33239 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
33240 (_FILE_OFFSET_BITS): Likewise.
33241 * configure.ac: Added AC_SYS_LARGEFILE.
33242
98d15063 332432003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
33244
33245 * genmk.rb (PModule#rule): Make sure to get only symbol names
33246 from the output of nm.
59cad637 33247 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 33248
18d9c7cd 332492003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
33250
33251 I forgot to check in these changes for a long time. This adds
33252 incomplete support for VGA console, and this is still very
33253 buggy. Also, a lot of consideration is required for I18N,
33254 UNICODE, and VGA font issues. Therefore, assume that this is
33255 such that "better than nothing".
f19dbdb7 33256
18d9c7cd 33257 * font/manager.c: New file.
33258 * include/pupa/font.h: Likewise.
33259 * include/pupa/i386/pc/vga.h: Likewise.
33260 * term/i386/pc/vga.c: Likewise.
33261 * util/unifont2pff.rb: Likewise.
33262
33263 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
33264 (pkgdata_MODULES): Added vga.mod and font.mod.
33265 (vga_mod_SOURCES): New variables.
33266 (vga_mod_CFLAGS): Likewise.
33267 (font_mod_SOURCES): Likewise.
33268 (font_mod_CFLAGS): Likewise.
33269
33270 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
33271
33272 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 33273 (struct pupa_term): Added init and fini.
18d9c7cd 33274 Changed the argument of putchar to pupa_uint32_t.
33275
33276 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
33277 (pupa_console_real_putchar): New prototype.
33278 (pupa_console_putchar): Removed.
33279 (pupa_console_checkkey): Exported.
33280 (pupa_console_getkey): Likewise.
33281
33282 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
33283 characters.
33284
33285 * kern/term.c (pupa_term_set_current): Rewritten.
33286 (pupa_putchar): Likewise.
33287 (pupa_putcode): New function.
33288
33289 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
33290 (pupa_console_real_putchar): ... this.
33291 (pupa_vga_set_mode): New function.
33292 (pupa_vga_get_font): Likewise.
33293
33294 * normal/command.c: Include pupa/term.h.
33295 (terminal_command): New function.
33296 (pupa_command_init): Register the command "terminal".
33297
33298 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
33299 (DISP_UP): Likewise.
33300 (DISP_RIGHT): Likewise.
33301 (DISP_DOWN): Likewise.
33302 (DISP_HLINE): Likewise.
33303 (DISP_VLINE): Likewise.
33304 (DISP_UL): Likewise.
33305 (DISP_UR): Likewise.
33306 (DISP_LL): Likewise.
33307 (DISP_LR): Likewise.
33308
33309 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 33310
977329f5 333112003-02-08 NIIBE Yutaka <gniibe@m17n.org>
33312
33313 * util/resolve.c (pupa_util_resolve_dependencies): BUG
33314 FIX. Reverse the path_list.
33315
33316 * include/pupa/normal.h: Export pupa_register_command and
33317 pupa_unregister_command.
33318
33319 * hello/hello.c (pupa_cmd_hello): New module.
33320 * conf/i386-pc.rmk: Added hello.mod.
33321
1f5ab428 333222003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
33323
33324 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 33325
1f5ab428 33326 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
33327 (compress_kernel): New variable.
33328 (generate_image): Heavily modified to support compressing a
33329 large part of the core image.
33330
33331 * util/misc.c (pupa_util_read_image): Fix a file descriptor
33332 leak.
33333 (pupa_util_load_image): New function.
33334
33335 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
33336 (pupa_compressed_size): New variable.
33337 (codestart): Enable Gate A20 here.
33338 Decompress the compressed part of the core image.
33339 Rearrange the code to put functions and variables which are
33340 required for initialization in the non-compressed part.
33341 Include lzo1x.S.
33342
33343 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
33344 here.
33345
33346 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
33347
f19dbdb7 33348 * include/pupa/i386/pc/kernel.h
1f5ab428 33349 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
33350 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
33351 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33352 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33353 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
33354
33355 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
33356
33357 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
33358 (Utility#rule): Likewise.
33359
33360 * configure.ac: Check if LZO is available.
33361
ce5bf700 333622003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
33363
33364 * include/pupa/normal.h: New file.
33365 * include/pupa/setjmp.h: Likewise.
33366 * include/pupa/i386/setjmp.h: Likewise.
33367 * normal/cmdline.c: Likewise.
33368 * normal/command.c: Likewise.
33369 * normal/main.c: Likewise.
33370 * normal/menu.c: Likewise.
33371 * normal/i386/setjmp.S: Likewise.
f19dbdb7 33372
ce5bf700 33373 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
33374 (pupa_rescue_cmd_initrd): Likewise.
33375
33376 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
33377 Likewise.
33378
33379 * kern/i386/pc/startup.S (translation_table): New variable.
33380 (translate_keycode): New function.
33381 (pupa_console_getkey): Call translate_keycode.
33382
33383 * kern/rescue.c (attempt_normal_mode): New function.
33384 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
33385 it failed, print a message.
33386
33387 * kern/mm.c (pupa_real_malloc): Print more information when a
33388 free magic is broken.
33389 (pupa_free): If the first free header is not free actually, set
33390 it to P.
33391
33392 * kern/main.c (pupa_load_normal_mode): Just load the module
33393 "normal".
33394 (pupa_main): Don't print the message
33395 "Entering into rescue mode..." here.
33396
33397 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
33398 Declared.
33399 (pupa_rescue_cmd_initrd): Likewise.
33400 (pupa_rescue_cmd_initrd): Likewise.
33401
33402 * include/pupa/symbol.h (FUNCTION): Specify the type.
33403 (VARIABLE): Likewise.
33404
33405 * include/pupa/err.h (pupa_err_t): Added
33406 PUPA_ERR_UNKNOWN_COMMAND.
33407
33408 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
33409 (pupa_dl_get_prefix): Likewise.
33410
33411 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
33412 Added _chain.mod and _linux.mod instead of chain.mod and
33413 linux.mod.
33414 (chain_mod_SOURCES): Renamed to ...
33415 (_chain_mod_SOURCES): ... this.
33416 (chain_mod_CFLAGS): Renamed to ...
33417 (_chain_mod_CFLAGS): ... this.
33418 (linux_mod_SOURCES): Renamed to ...
33419 (_linux_mod_SOURCES): ... this.
33420 (linux_mod_CFLAGS): Renamed to ...
33421 (_linux_mod_CFLAGS): ... this.
33422 (normal_mod_SOURCES): New variable.
33423 (normal_mod_CFLAGS): Likewise.
33424 (normal_mod_ASFLAGS): Likewise.
33425
334262003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
33427
33428 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
33429 possible.
33430
fe6b695a 33431 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 33432 recursively.
33433 (pupa_dl_unref): Unrefer depending modules recursively.
33434 Don't call pupa_dl_unload implicitly, because PUPA can crash if
33435 a module is unloaded before one depending on that module is
33436 unloaded.
33437 (pupa_dl_unload): Unload depending modules explicitly,
33438 if possible.
33439
c04da074 334402003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
33441
33442 * include/pupa/i386/pc/linux.h: New file.
33443 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 33444
c04da074 33445 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
33446 Removed.
33447 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
33448 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
33449 of PUPA_CHAINLOADER_BOOT_SECTOR.
33450
33451 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
33452 (pupa_linux_prot_size): New variable.
33453 (pupa_linux_tmp_addr): Likewise.
33454 (pupa_linux_real_addr): Likewise.
33455 (pupa_linux_boot_zimage): New function.
33456 (pupa_linux_boot_bzimage): Likewise.
33457
33458 * kern/i386/pc/init.c (struct mem_region): New structure.
33459 (MAX_REGIONS): New macro.
33460 (mem_regions): New variable.
33461 (num_regions): Likewise.
33462 (pupa_os_area_addr): Likewise.
33463 (pupa_os_area_size): Likewise.
33464 (pupa_lower_mem): Likewise.
33465 (pupa_upper_mem): Likewise.
33466 (add_mem_region): New function.
33467 (compact_mem_regions): Likewise.
33468 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
33469 the size of the conventional memory and that of so-called upper
33470 memory (before the first memory hole).
33471 Instead of adding each found region to free memory, use
33472 add_mem_region and add them after removing overlaps.
33473 Also, add only 1/4 of the upper memory to free memory. The rest
33474 is used for loading OS images. Maybe this is ad hoc, but this
33475 makes it much easier to relocate OS images when booting.
33476
33477 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
33478 (pupa_enter_rescue_mode): Don't register initrd and module.
33479
33480 * kern/mm.c: Include pupa/dl.h.
33481
33482 * kern/main.c: Include pupa/file.h and pupa/device.h.
33483
33484 * kern/loader.c (pupa_loader_load_module_func): Removed.
33485 (pupa_loader_load_module): Likewise.
33486
33487 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
33488 ``.o''.
33489
33490 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
33491 (pupa_linux_tmp_addr): Likewise.
33492 (pupa_linux_real_addr): Likewise.
33493 (pupa_linux_boot_zimage): Likewise.
33494 (pupa_linux_boot_bzimage): Likewise.
33495
33496 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
33497 (pupa_upper_mem): Likewise.
33498 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
33499 module is too dangerous.
33500
33501 * include/pupa/loader.h (pupa_os_area_addr): Declared.
33502 (pupa_os_area_size): Likewise.
33503 (pupa_loader_set): Remove the first argument. Loader doesn't
33504 manage modules or initrd any longer.
33505 (pupa_loader_load_module): Removed.
33506
33507 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
33508 (linux_mod_SOURCES): New variable.
33509 (linux_mod_CFLAGS): Likewise.
33510
a13f9237 335112003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
33512
33513 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
33514 the length of a blocklist correctly.
33515
33516 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
33517 Use ioctl only if the OS file is a block device.
33518 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
33519 not very useful for normal files.
33520
33521 * kern/main.c (pupa_set_root_dev): New function.
33522 (pupa_load_normal_mode): Likewise.
33523 (pupa_main): Call those above.
33524
33525 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
33526 pupa_uint16_t.
33527
33528 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
33529
a5ffe966 335302003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33531
33532 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
33533 (setup): Configure the installed partition information and the
33534 dl prefix.
33535
33536 * loader/i386/pc/chainloader.c (my_mod): New variable.
33537 (pupa_chainloader_unload): New function.
33538 (pupa_rescue_cmd_chainloader): Refer itself.
33539 (PUPA_MOD_INIT): Save its own module in MY_MOD.
33540
33541 * kern/i386/pc/startup.S (install_partition): Removed.
33542 (version_string): Likewise.
33543 (config_file): Likewise.
33544 (pupa_install_dos_part): New variable.
33545 (pupa_install_bsd_part): Likewise.
33546 (pupa_prefix): Likewise.
33547 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
33548
33549 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
33550 and pupa/misc.h.
33551 (make_install_device): New function.
33552 (pupa_machine_init): Set the dl prefix.
33553
33554 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
33555 (buf): Renamed to ...
33556 (linebuf): ... this.
33557 (pupa_rescue_cmd_prefix): New function.
33558 (pupa_rescue_cmd_insmod): Likewise.
33559 (pupa_rescue_cmd_rmmod): Likewise.
33560 (pupa_rescue_cmd_lsmod): Likewise.
33561 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
33562 rmmod and lsmod.
33563
33564 * kern/mm.c (pupa_memalign): If failed even after invalidating
33565 disk caches, unload unneeded modules and retry.
33566
33567 * kern/misc.c (pupa_memmove): New function.
33568 (pupa_memcpy): Removed.
33569 (pupa_strcpy): New function.
33570 (pupa_itoa): Made static.
33571
33572 * kern/dl.c (pupa_dl_iterate): New function.
33573 (pupa_dl_ref): Likewise.
33574 (pupa_dl_unref): Likewise.
33575 (pupa_dl_unload): Return if succeeded or not.
33576 (pupa_dl_unload_unneeded): New function.
33577 (pupa_dl_unload_all): Likewise.
33578 (pupa_dl_init): Renamed to ...
33579 (pupa_dl_set_prefix): ... this.
33580 (pupa_dl_get_prefix): New function.
33581
33582 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
33583 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
33584 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33585 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33586 (pupa_install_dos_part): Declared.
33587 (pupa_install_bsd_part): Likewise.
33588 (pupa_prefix): Likewise.
33589 (pupa_boot_drive): Likewise.
33590
33591 * include/pupa/types.h: Fix a typo.
33592
33593 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
33594 pupa_memmove.
33595 (pupa_memmove): Declared.
33596 (pupa_strcpy): Likewise.
33597
33598 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
33599 pupa_mod_init takes one argument, its own module.
33600 (pupa_dl_unload_unneeded): Declared.
33601 (pupa_dl_unload_all): Likewise.
33602 (pupa_dl_ref): Likewise.
33603 (pupa_dl_unref): Likewise.
33604 (pupa_dl_iterate): Likewise.
33605 (pupa_dl_init): Renamed to ...
33606 (pupa_dl_set_prefix): ... this.
33607 (pupa_dl_get_prefix): Declared.
33608
33609 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 33610 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 33611 unloaded.
33612 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
33613 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
33614
33615 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
33616 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
33617
012d7999 336182003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33619
33620 * util/i386/pc/pupa-setup.c (setup): Define the internal
33621 function find_first_partition_start at the top level, because GCC
33622 3.0.x cannot compile internal functions in deeper scopes
33623 correctly.
33624 (find_root_device): Use lstat instead of stat.
33625 Don't follow symbolic links.
33626 Fix the path-constructing code.
33627
33628 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
33629 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
33630 by a BLKGETSIZE ioctl first, because block devices don't fill
33631 the member st_mode of the structure stat on Linux.
33632 [__linux__] (linux_find_partition): Use a temporary buffer
33633 REAL_DEV for the working space. Copy it to DEV before returning.
33634 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
33635 buffer cache consistent.
33636 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
33637 strncmp. The previous value was merely wrong.
33638 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
33639
33640 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
33641 FAT size is 12. The previous value was merely wrong.
33642
33643 * kern/main.c (pupa_main): Don't split the starting message from
33644 newlines.
33645
33646 * kern/term.c (pupa_putchar): Put CR after LF instead of before
33647 LF, because BIOS goes crazy about character attributes in this
33648 case.
33649
1cc73a62 336502003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33651
33652 * include/i386/pc/util/biosdisk.h: New file.
33653 * util/i386/pc/biosdisk.c: Likewise.
33654 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 33655
1cc73a62 33656 * Makefile.in (INCLUDE_DISTFILES): Added
33657 include/pupa/i386/pc/util/biosdisk.h.
33658 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
33659 directory util/i386/pc.
33660 (install-local): Added a rule for sbin_UTILITIES.
33661 (uninstall): Likewise.
33662
33663 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
33664
33665 * util/misc.c (xrealloc): New function.
33666 (pupa_malloc): Likewise.
33667 (pupa_free): Likewise.
33668 (pupa_realloc): Likewise.
33669 (pupa_stop): Likewise.
33670 (pupa_putchar): Likewise.
33671
33672 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
33673
33674 * include/pupa/util/misc.h (xrealloc): Declared.
33675
33676 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
33677 macro.
33678 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
33679 (PUPA_BOOT_MACHINE_BPB_END): ... this.
33680
33681 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
33682 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33683
33684 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
33685 way should be implemented.
33686 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33687
33688 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
33689 the size of NAME for safety.
33690 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
33691 0x88.
33692
33693 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
33694 (pupa_setup_SOURCES): Likewise.
33695
33696 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
33697
08b70fe8 336982002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33699
33700 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
33701 bunch of pushl's from pusha, because this destroys the return
33702 value.
33703
62ddcc8f 337042002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33705
33706 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
33707 This means that any missing prototypes could be fatal. Also, you
33708 must take care when writing assembly code. See the comments at
33709 the beginning of startup.S, for more details.
f19dbdb7 33710
62ddcc8f 33711 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
33712 compilation mechanism.
33713 (pupa_chainloader_real_boot): Likewise.
33714 (pupa_biosdisk_rw_int13_extensions): Likewise.
33715 (pupa_biosdisk_rw_standard): Likewise.
33716 (pupa_biosdisk_check_int13_extensions): Likewise.
33717 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
33718 (pupa_biosdisk_get_diskinfo_standard): Likewise.
33719 (pupa_get_memsize): Likewise.
33720 (pupa_get_mmap_entry): Likewise.
33721 (pupa_console_putchar): Likewise.
33722 (pupa_console_setcursor): Likewise.
33723 (pupa_getrtsecs): Use pushl instead of push.
33724
33725 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
33726 memory instead of the stack for a mmap entry, because some
33727 BIOSes may ignore the maximum size and overflow.
33728
33729 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
33730
33731 * genmk.rb (PModule#rule): Compile automatically generated
33732 sources with module-specific CFLAGS as well as other sources.
33733
9962ed99 337342002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33735
33736 * configure.ac: Check ld.
33737 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
33738 respectively, before checking endianness and sizes.
33739
33740 * Makefile.in (LD): New variable.
f19dbdb7 33741
abdfc3c5 337422002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33743
33744 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
33745
6a161fa9 337462002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33747
33748 * Changelog: New file.
33749