]> git.proxmox.com Git - grub2.git/blame - ChangeLog
* tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
[grub2.git] / ChangeLog
CommitLineData
415502c2
CW
12011-01-06 Colin Watson <cjwatson@ubuntu.com>
2
3 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
4 avoid causing test failures by clearing the screen.
5
71b6a2b7
CW
62011-01-06 Colin Watson <cjwatson@ubuntu.com>
7
8 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
9 Fix prefix check to handle the case where dir ends with a slash
10 (most significantly, "/" itself).
11 Reported by: Michael Vogt.
12
b3f8d28a
VS
132011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14
15 Run terminfo_cls on initing terminfo output to clear the screen and
16 move the cursor to (0,0).
17
18 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
19 Call grub_terminfo_output_init.
20 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
21 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
22 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
23
4c3e4f37
VS
242011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
25
26 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
27 only when needed.
28
488f71f1
VS
292011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
30
31 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
32 CTRL.
33
18a38098
VS
342011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
35
36 The E820 type 5 is BADRAM, not EXEC_CODE.
37
38 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
39 (GRUB_E820_BADRAM): New define.
40 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
41 into reserved. Propagate BADRAM.
42 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
43 (GRUB_E820_BADRAM): New define.
44
9eae2084
VS
452011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
46
47 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
48 Ignore the memory post-4G.
49 (grub_relocator_firmware_alloc_region): Additional debug statement.
50
ebc71d28
VS
512011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
52
53 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
54 names.
55 Reported by: David Pravec.
56
446fa400
VS
572011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
58
59 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
60 BIOSes.
61
a0159f37
VS
622011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
63
64 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
65 Prevent overflow.
66 (grub_reed_solomon_recover): Likewise.
67
e5146ca1
VS
682011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
69
70 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
71
722011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
95638499
VS
73
74 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
75 variable.
76
5b1bdf12
CW
772011-01-04 Colin Watson <cjwatson@ubuntu.com>
78
79 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
80 descriptions of extract_legacy_entries_source and
81 extract_legacy_entries_configfile.
82 Reported by: Seung Soo, Ha.
83
99d925aa
CW
842011-01-03 Colin Watson <cjwatson@ubuntu.com>
85
86 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
87 on devices that do not implement function 0.
88
4af0504b
DV
892011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
90
91 * grub-core/fs/hfsplus.c: Make parent unsigned.
92 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
93 overflows.
94 (grub_hfsplus_cmp_extkey): Likewise
95
469ee10a
VS
962011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * util/grub-install.in: Correctly use bootloader_id and not
99 GRUB_DISTRIBUTOR on efibootmgr line.
100
323a8e9c
VS
1012011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
102
103 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
104
1b394975
IC
1052010-12-31 Ian Campbell <ijc@hellion.org.uk>
106
107 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
108 Xen and reorder menu item wording to make it clearer that this entry
109 will launch Xen. Print separate messages when loading Xen and
110 Linux.
111
275bff5f
VS
1122010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
115 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
116 loop in case of incorrect amiga partmap.
117
307806cb
VS
1182010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
119
120 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
121 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
122 Reported by:EHeM.
123
b12b923e
VS
1242010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
125
126 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
127 spurious warning.
128 Reported by: crocket
129
14b48a19
VS
1302010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
133 Preload EFIemu.
134 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
135
693db2df
VS
1362010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
137
138 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
139 is loaded
140 (grub_cmd_xnu_kextdir): Likewise.
141 (grub_cmd_xnu_splash): Likewise.
142
c7638645
VS
1432010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
144
145 Avoid using Reed-Solomon with 0 redundancy.
146
147 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
148 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
149 or 0 redundancy.
150 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
151 (grub_reed_solomon_recover): Likewise.
152
25dd4780
VS
1532010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
154
155 Don't use disk subsystem in freebsd_boot.
156
157 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
158 (freebsd_biosdev): Likewise.
159 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
160 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
161
0b2db943
VS
1622010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
163
164 Handling of files of unknown size is currently limited. They can't be
165 used e.g. for initrd or modules. Moreover gzip handling of not
166 easily seekable files is buggy. Disable unknown file size for now. May
167 be inefficient but works.
168
169 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
170 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
171
5c408d0f
MP
1722010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
173
174 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
175 floppy probe.
176
190a011a
JD
1772010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
178
179 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
180
022d01b8
SL
1812010-12-25 Shea Levy <shlevy>
182
183 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
184
c4855fdc
VS
1852010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
186
187 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
188 Windows Server 2008.
189 Reported by: Devin Giddings.
190
0354b867
VS
1912010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
192
193 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
194 writing an error message because of async power management.
195 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
196 (grub_reboot): Likewise.
197
ab66c69f
JU
1982010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
199
200 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
201 keep unit tests from failing when they shouldn't.
202
1426ef35
CW
2032010-12-21 Colin Watson <cjwatson@ubuntu.com>
204
205 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
206 previous patch increased the size of the RS code by 20 bytes (at
207 least with gcc-4.4), so increase this by 20 bytes to match.
208 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
209
20641b6b
CW
2102010-12-21 Colin Watson <cjwatson@ubuntu.com>
211
212 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
213 scratch area. Make sure to initialise chosen in standalone mode as
214 well as non-standalone.
215 Reported by: Robert Hooker and Andy Whitcroft.
216 Tested by: Andy Whitcroft.
217
d060ad60
CW
2182010-12-21 Colin Watson <cjwatson@ubuntu.com>
219
220 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
221 constructing a new unescaped string and passing it to grub_xputs in
222 one go, rather than passing characters to grub_printf one at a time.
223
b889cfad
CW
2242010-12-21 Colin Watson <cjwatson@ubuntu.com>
225
226 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
227 initialising utf16.
228
4e01b6c8
CW
2292010-12-21 Colin Watson <cjwatson@ubuntu.com>
230
231 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
232 comment. Add an extra layer of quotation, requiring the output of
233 this function to be used in a printf format string.
234 (gettext_printf): New function.
235 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
236 Extract translatable strings from here-documents and use a temporary
237 variable instead, so that xgettext can find them.
238 * util/grub.d/10_kfreebsd.in: Likewise.
239 * util/grub.d/10_linux.in: Likewise.
240 * util/grub.d/20_linux_xen.in: Likewise.
241
242 * po/grub.d.sed: New file.
243 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
244 arguments. Set c-format flags on all strings extracted from
245 util/grub.d/ (xgettext refuses to include these itself for strings
246 it extracted from a shell file, but these really are c-format).
247
5318fe98
VS
2482010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
249
250 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
251 Avoid next pointing to nowhere.
252
6c85b743
VS
2532010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
254
255 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
256 rather than assuming than rootblock is exactly in the middle.
257 (grub_affs_label): Likewise.
258
a2a08a35
VS
2592010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
260
261 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
262 reserved_first_sector to 0.
263 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
264 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
265 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
266
7059d1ec
VS
2672010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
268
269 Fix handling of UTF-16 UDF labels.
270
271 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
272 (read_string): .. here.
273 (grub_udf_label): Use read_string.
274
30aff4cb
BC
2752010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
276
277 * grub-core/normal/menu_entry.c (run): Execute commands from menu
278 editor under argument scope.
279 Reported by: Jordan Uggla
280
5cf86f4b
VS
2812010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
282
283 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
284
32570200
CW
2852010-12-18 Colin Watson <cjwatson@ubuntu.com>
286
287 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
288 line, and other keys scroll an entire page (previous handling was
289 for \r and \n to scroll a page and other keys to scroll two lines).
290
e1dffcf2
VS
2912010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
292
293 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
294 Set ptrdest to correct get_physical_target_address rather than
295 incorrect get_virtual_current_address.
296
b04298cf 2972010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
298
299 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
300 correct cat to grub_uint8_t * rather than grub_uint32_t *.
301
5367ecd3
CW
3022010-12-10 Colin Watson <cjwatson@ubuntu.com>
303
304 * .bzrignore: Ignore grub-core/rs_decoder.S.
305
1fb430f8
CW
3062010-12-10 Colin Watson <cjwatson@ubuntu.com>
307
308 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
309 .mo/.mo.gz opening sequence to ...
310 (grub_mofile_open_lang): ... here.
311 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
312 * util/grub.d/00_header.in (grub_lang): Include country part of
313 locale.
314 Reported by: Mario Limonciello.
315
a94a6671
RM
3162010-12-09 Robert Millan <rmh@gnu.org>
317
318 * NEWS: Document addition of ZFS support.
319
24b7938b
CW
3202010-12-04 Colin Watson <cjwatson@ubuntu.com>
321
322 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
323 rather than `/ 2', as the latter requires -Wa,--divide which would
324 require bumping our minimum binutils version.
325
bddc3ef6
BC
3262010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
327
328 * util/grub-script-check.c (main): Print script line number on
329 error.
330
bf78d5b2
RM
3312010-12-01 Robert Millan <rmh@gnu.org>
332
333 * grub-core/fs/zfs/zfs.c: New file.
334 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
335 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
336 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
337 * grub-core/fs/zfs/zfsinfo.c: Likewise.
338
339 * include/grub/zfs/dmu.h: Likewise.
340 * include/grub/zfs/dmu_objset.h: Likewise.
341 * include/grub/zfs/dnode.h: Likewise.
342 * include/grub/zfs/dsl_dataset.h: Likewise.
343 * include/grub/zfs/dsl_dir.h: Likewise.
344 * include/grub/zfs/sa_impl.h: Likewise.
345 * include/grub/zfs/spa.h: Likewise.
346 * include/grub/zfs/uberblock_impl.h: Likewise.
347 * include/grub/zfs/vdev_impl.h: Likewise.
348 * include/grub/zfs/zap_impl.h: Likewise.
349 * include/grub/zfs/zap_leaf.h: Likewise.
350 * include/grub/zfs/zfs.h: Likewise.
351 * include/grub/zfs/zfs_acl.h: Likewise.
352 * include/grub/zfs/zfs_znode.h: Likewise.
353 * include/grub/zfs/zil.h: Likewise.
354 * include/grub/zfs/zio.h: Likewise.
355 * include/grub/zfs/zio_checksum.h: Likewise.
356
357 * Makefile.util.def: Build ZFS into libgrubmods.
358 * grub-core/Makefile.core.def: Build zfs.mod.
359
3f0f3831
SJ
3602010-11-30 Szymon Janc <szymon@janc.net.pl>
361
362 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
363 variable.
364 * grub-core/commands/wildcard.c (match_files): Likewise.
365
3a4253b2
RM
3662010-11-30 Robert Millan <rmh@gnu.org>
367
368 * grub-core/loader/i386/bsd.c
369 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
370 whether kernel is loaded using grub_loader_is_loaded(), rather
371 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
372 certain error conditions.
373
8c317b27
RM
3742010-11-30 Robert Millan <rmh@gnu.org>
375
c5c9cd3e
RM
376 * grub-core/commands/echo.c: Include `<grub/term.h>'.
377 (grub_cmd_echo): Call grub_refresh() after printing a message.
8c317b27 378
49d3ab46
VS
3792010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
380
381 Avoid using tricks for initialising endian variables.
382
383 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
384 Make const.
385 (GRUB_MOD_INIT): Don't byte-swap.
386 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
387 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
388 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
389 (grub_swap_bytes32_compile_time): Likewise.
390 (grub_cpu_to_le32_compile_time): Likewise.
391 (grub_cpu_to_le16_compile_time): Likewise.
392
f420a804
VS
3932010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
394
395 * util/grub-setup.c (setup): Stop recommending --force. People who
396 understand the dangers of blocklists are able to find this option
397 anyway and the ones who don't shouldn't use it anyway.
398
4e7db17b
RM
3992010-11-26 Robert Millan <rmh@gnu.org>
400
401 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
402 Update all users.
403
9be57a0d
CW
4042010-11-26 Colin Watson <cjwatson@ubuntu.com>
405
406 Fix LVM-on-RAID probing.
407
408 * util/grub-probe.c (probe): Remember which disk was detected as
409 RAID (perhaps an LVM physical volume). Use that disk's raidname
410 rather than that of the top-level disk.
411
2c7859b3 4122010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7e623b0d 413
d7647bb6
BC
414 Fix cmdline argument quotes for setparams command of menuentry
415 definitions.
7e623b0d
BC
416
417 * grub-core/commands/menuentry.c (setparams_prefix): Use single
418 quotes for arguments.
f866fe80 419 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7955bea0 420 grub_strchrsub function instead.
f866fe80 421
7955bea0 422 * include/grub/misc.h (grub_strchrsub): New function.
7e623b0d 423
74f72a64
CW
4242010-11-24 Colin Watson <cjwatson@ubuntu.com>
425
426 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
427 effort by skipping "." and ".." entries up-front.
428 Suggested by: Michael Lazarev.
429
5a407278
CW
4302010-11-24 Colin Watson <cjwatson@ubuntu.com>
431
432 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
433 ldflags to ldadd, to fix link line ordering.
434 (none_decompress): Likewise.
435
3030d8ec
CW
4362010-11-24 Colin Watson <cjwatson@ubuntu.com>
437
438 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
439 platforms.
440 (grub-emu-lite): Remove kern/emu/cache.S.
441
b7fbac12
CW
4422010-11-23 Colin Watson <cjwatson@ubuntu.com>
443
444 * util/deviceiter.c (compare_devices): If the by-id link for a
445 device couldn't be resolved, fall back to sorting by the by-id link
446 rather than segfaulting.
447 Reported and tested by: Daniel Mierswa.
448
5225f328
CW
4492010-11-23 Colin Watson <cjwatson@ubuntu.com>
450
451 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
452 ldflags, to fix link line ordering.
453
038b3ce8
CW
4542010-11-23 Colin Watson <cjwatson@ubuntu.com>
455
456 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
457 linkers are picky about this.
458
bf16e98e
CW
4592010-11-23 Colin Watson <cjwatson@ubuntu.com>
460
461 * grub-core/Makefile.am (command.lst): Adjust sed expression
462 ordering so that extended and priority commands aren't treated as
463 ordinary commands.
464
7242bab6
CW
4652010-11-23 Colin Watson <cjwatson@ubuntu.com>
466
467 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
468 Remove byte-swapping function calls, which are not valid in
469 structure initialisers.
470 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
471 non-const.
472 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
473 grub_gpt_partition_type_bios_boot.
474
14e8b279
CW
4752010-11-22 Colin Watson <cjwatson@ubuntu.com>
476
477 Fix test program build on GNU/kFreeBSD.
478
479 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
480 $(LIBNVPAIR)' library dependencies.
481
e6f63338 4822010-11-22 Colin Watson <cjwatson@ubuntu.com>
03df09c7
CW
483
484 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
485
cf8ffc38
CW
4862010-11-22 Colin Watson <cjwatson@ubuntu.com>
487
488 * util/grub-install.in: Remove excessive quoting that broke
489 installations to RAID devices.
490
7f8b0fd7
VS
4912010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
492
493 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
494 bootloader version instead of 0.
495
dfd240b1
VS
4962010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
497
498 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
499 warning.
500
7b61e609
VS
5012010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
502
503 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
504 retrieve the metadat sector if size isn't known.
505 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
506
9dfe92d0
RM
5072010-11-18 Robert Millan <rmh@gnu.org>
508
509 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
510 with grub_memcmp().
511
41cc919e
VS
5122010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
513
514 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
515 arrow.
516 Reported by: Jordan Uggla.
517
1afcc914
VS
5182010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
519
520 Make better UTF compliant.
521
522 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
523 sequences as incorrect.
524 (grub_is_valid_utf8): Likewise.
525 (grub_utf8_to_ucs4): Likewise.
526 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
527 (grub_ucs4_to_utf8_alloc): Likewise.
528 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
529
f1808884
VS
5302010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
531
532 Make legacy_source behave like source.
533
534 * grub-core/commands/legacycfg.c (legacy_file): Don't call
535 grub_show_menu.
536 (grub_cmd_legacy_source): Call grub_show_menu if needed.
537
24ec575b
CW
5382010-11-16 Colin Watson <cjwatson@debian.org>
539
540 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
541 (-Wunused implies -Wunused-parameter, but not vice versa).
542
72b7c7aa
CW
5432010-11-16 Colin Watson <cjwatson@ubuntu.com>
544
545 * configure.ac: Make error messages less confusing by testing for
546 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
547 accepted, but produces a diagnostic if something else is wrong).
548
e98937aa
VS
5492010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
552 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
553 (now unused).
554 (grub_keyboard_controller_init)
555 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
556 read the initial state since controller isn't inited yet.
557
f6bbabc3
VS
5582010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
559
560 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
561 allocate_regbeg may need to create new chunk header.
562
22e7dbb2
VS
5632010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
564
565 Fix quoting in legacy parser.
566
567 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
568 single quotes.
569 (grub_legacy_parse): Likewise.
570 Reported by: Jordan Uggla.
571 Tested by: Jordan Uggla.
572
03f80960
VS
5732010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
574
575 Don't add -lgcc on i386 and x86_64.
576
577 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
578 * conf/Makefile.common (LDADD_KERNEL): Likewise.
579 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
580
779dc15b
VS
5812010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
582
583 * configure.ac: Add -Wno-trampolines when supported.
584
d20a3b37
MV
5852010-11-14 Modestas Vainius <modax@debian.org>
586
587 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
588 fakeraid.
589
e5360933
GC
5902010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
591
592 Add generic logical block size support for UDF.
593
594 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
595 (GRUB_UDF_BLKSZ): Removed.
596 (struct grub_udf_data): New field "lbshift" to hold the logical block
597 size of the file system in log2 format. All users updated.
598 (sblocklist): Change type to unsigned.
599 (grub_udf_mount): Change type of "sblklist" to unsigned.
600 Move AVDP search before VRS recognition, because the latter requires
601 knowledge of the logical block size, which is detected during the
602 former.
603 Detect and validate logical block size during AVDP search, adding
604 support for block sizes 512, 1024 and 4096.
605 Make VRS recognition independent of block size.
606
cb0229c5
GC
6072010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
608
609 Properly handle deleted files on UDF.
610
611 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
612 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
613 set.
614
406858a8
GC
6152010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
616
617 Support reading files larger than 2 GiB.
618
619 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
620 "offset" to grub_off_t.
621 (grub_udf_read_file): Likewise for parameter "pos".
622
130da6a7
VS
6232010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
624
625 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
626 unavailable.
627 (Simple configuration): Refer to Changes from GRUB Legacy about
628 save_env availability.
629
65e93f6b
VS
6302010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
631
632 * util/grub-install.in: Ignore empty partition table detection
633 instead of trying to include part_ module.
634
1fd08bf1
VS
6352010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
636
637 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
638 LVM on RAID support.
639
de1a024f
VS
6402010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
641
642 Properly define WORDS_BIGENDIAN in wrapped environments.
643
644 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
645 definition.
646 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
647
648 Reported by: Manoel Rebelo Abranches.
649 Tested by: Manoel Rebelo Abranches.
650
bc5dd0b9
VS
6512010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
652
653 * util/grub-mkconfig.in: Fix quoting.
654
58c184be
VS
6552010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
656
657 Support big ext2 files.
658
659 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
660 (grub_ext2_read_block): Support triple indirect blocks.
661 (grub_ext2_read_file): Use 64-bit types and read size_high.
662 (grub_ext2_open): Read size_high.
663 Reported by: Ximin Luo.
664 Tested by: Manoel Rebelo Abranches.
665
5f0c02b3
VS
6662010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
667
668 * util/grub-install.in: Handle filenames containing spaces.
669 Reported by: Jordan Uggla.
670 Tested by: Jordan Uggla.
671
4417aae6
VS
6722010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
673
674 * util/grub-mkconfig.in (grub_script_check): New variable.
675 Use grub_script_check instead of grub-script-check.
676 Reported by: Barry Jackson.
677
7625a68e
VS
6782010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
679
680 * docs/grub.texi (menu): Correct the order.
681 Reported by: D. Hugh Redelmeier.
682
10001ac5
VS
6832010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
684
685 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
686 jump.
687
9c4cf53b
MRA
6882010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
689
10001ac5
VS
690 * include/grub/elfload.h (grub_elf32_size): New parameter.
691 All users updated.
9c4cf53b
MRA
692 Return maximum segments alignment.
693 (grub_elf64_size): Likewise.
694 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
695 Return maximum segments alignment.
696 (grub_elf64_size): Likewise.
697 * grub-core/loader/powerpc/ieee1275/linux.c:
10001ac5
VS
698 (grub_linux_claimmap_iterate): New function. Uses the
699 "available" property in the "memory" node for memory allocation
700 for kernel in the PowerPC loader.
9c4cf53b
MRA
701 (grub_linux_load32): Correctly find linux entry point offset.
702 (grub_linux_load64): Likewise.
703
d2bf06bf
RM
7042010-11-07 Robert Millan <rmh@gnu.org>
705
706 On mips-yeeloong, build with -march=loongson2f when this flag is
707 available (GCC >= 4.4).
708 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
709 `-march=mips3'.
710 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
711 or otherwise add -march=mips3.
712
898c99a2
BC
7132010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
714
87220a68
BC
715 Suppress shell expansion on echo '*' and echo "*" like cases.
716 Reported by: Jordan Uggla.
898c99a2
BC
717
718 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
719 string arguments before shell expansion.
720 * tests/grub_cmd_echo.in: New testcases.
721
4f9b406a
RM
7222010-11-07 Robert Millan <rmh@gnu.org>
723
724 * conf/mips-qemu-mips.rmk: Remove stale file from previous
725 transition.
726
80c6d25e
VS
7272010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
728
729 * grub-core/kern/emu/hostdisk.c
730 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
731
4a1a0153
VS
7322010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
733
734 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
735 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
736 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
737
34706ddc
VS
7382010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
739
740 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
741
6972dea9
VS
7422010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
743
744 * util/grub-install.in: Replace useless recomendation to pass
745 --modules with a recomendation to report a bug.
746
9c693bd6
VS
7472010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
748
749 Properly register serial terminfo.
750 Reported by: Jordan Uggla
751
752 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
753 const.
754 (grub_serial_terminfo_output_template): Likewise.
755 (grub_cmd_serial): Register "serial" with terminfo.
756 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
757 grub_serial_terminfo_output.
758
6c9e4c0c
RM
7592010-11-05 Robert Millan <rmh@gnu.org>
760
761 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
762 needed).
763
b9b3839f
RM
7642010-11-05 Robert Millan <rmh@gnu.org>
765
766 On Yeeloong, pass machine type information to Linux.
767
768 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
769 (LOONGSON_MACHTYPE): New macro, set to
770 "machtype=lemote-yeeloong-2f-8.9inches".
771 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
772 additional argument to Linux.
773
1a3aaff4
RM
7742010-11-04 Robert Millan <rmh@gnu.org>
775
776 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
777 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
778 (its SATA disks are detected as slaveless IDE master drives on
779 kFreeBSD).
780 Reported by Carsten Aulbert.
781
a75f4f62
CW
7822010-11-02 Colin Watson <cjwatson@ubuntu.com>
783
784 * util/bin2h.c (main): Fix spelling error in generated output.
785
33b4b0c6
GS
7862010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
787
788 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
789
2b36fbf4
VS
7902010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
791
792 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
793 vga= option is supplied.
794
74aaf558
VS
7952010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
796
797 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
798 * util/grub.d/10_kfreebsd.in: Likewise.
799 * util/grub.d/10_linux.in: Likewise.
800 * util/grub.d/20_linux_xen.in: Likewise.
801
6428dec3
VS
8022010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
803
804 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
805 argument as an argument to no-argument option.
806
f8729d98
VS
8072010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
808
809 * util/grub.d/10_linux.in: Add missing load_video with explicit
810 GRUB_GFXPAYLOAD_LINUX.
811
89d68fa6
VS
8122010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
813
814 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
815
3a1197cd
VS
8162010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
817
818 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
819 elements with invlid index.
820 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
821 * grub-core/disk/raid.c (insert_array): Automatically reallocate
822 members.
823 * include/grub/raid.h (grub_raid_member): New struct.
824 (grub_raid_array): Transform devices and start_sector into usage of
825 grub_raid_member. All users updated
826 (allocated_devs): New member.
827
71574288
VS
8282010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
829
830 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
831 is modified
832
8d40ec65
BC
8332010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
834
835 NetBSD build fix for getline function conflict from gnulib.
836
837 * Makefile.util.def (libgrubkern.a): New library for grub kernel
838 components that depend on gnulib headers.
839 (libgrubmods.a): Renamed from earlier libgrub.a.
840 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
841
95b9257e
VS
8422010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
843
844 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
845 install rather than creating a broken install.
846
26c53dc6
VS
8472010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
848
849 * util/grub-setup.c (argp): Remove misleading example of installing to
850 a partition.
851
4171b3c5
VS
8522010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
853
854 * util/grub-setup.c (setup): Clarify the error message.
855
18568d18
VS
8562010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
857
858 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
859
4f6a2e21
VS
8602010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
861
862 * grub-core/kern/emu/misc.c
863 (grub_make_system_path_relative_to_its_root)
864 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
865
8662010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
5c81f8b3
VS
867
868 * grub-core/kern/emu/misc.c
869 (grub_make_system_path_relative_to_its_root): Revert r2882.
870
e138c458
VS
8712010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
872
873 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
874 useless field head. All users updated.
875 (free_subchunk): Correct handling of IN_REGION subchunk.
876
0cbcdf0e
CW
8772010-10-22 Colin Watson <cjwatson@ubuntu.com>
878
879 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
880 (Supported kernels): Likewise.
881
b65ea155
GS
8822010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
883
884 Make mktemp invocations portable.
885
886 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
887 exit if mktemp fails.
888 * tests/grub_script_blockarg.in: Likewise.
889 * tests/partmap_test.in: Likewise.
890 * tests/util/grub-shell-tester.in: Likewise.
891 * tests/util/grub-shell.in: Likewise.
892 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
893 * Makefile.am: Likewise, and chain shell commands with `&&'
894 instead of ';'.
895 * util/grub-mkrescue.in: Use the same explicit template as above, and
896 exit if mktemp fails.
897
05f43cdd
BC
8982010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
899
900 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
901 Linux kernel, reported by Dennis Schridde.
902
800e6a9b
SJ
9032010-10-17 Szymon Janc <szymon@janc.net.pl>
904
905 * grub-core/normal/auth.c (grub_auth_check_authentication):
906 Set-but-not-used variable removed.
907
d82df574
VS
9082010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
909
910 * docs/grub.texi (GNU/Linux): Document APM unavailability with
911 32-bit linux protocol.
912
7bced458
VS
9132010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
914
915 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
916 cursor shape for sanity.
917
5b027690
VS
9182010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
919
920 * docs/grub.texi (Installation): Document buggy BIOS install.
921
ba5f65cf
VS
9222010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
923
924 * docs/grub.texi (Installation): Indent.
925
fdf2ec9c
VS
9262010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
927
928 * util/grub-setup.c (setup): New parameter allow_floppy.
929 (arguments): New member allow_floppy.
930 (argp_parser): Handle --allow-floppy.
931 (main): Pass allow_floppy.
932 * util/grub-install.in: New option --allow-floppy passed though to
933 grub-setup.
934
861dfd4c
VS
9352010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
936
937 * util/grub-install.in: Handle partitionless disks.
938
f77a8c24
VS
9392010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * util/grub-setup.c (setup): Don't clean blocklists before readability
942 verfification.
943
27d9ee32
VS
9442010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * docs/grub.texi (Installation): Document embedding zone. Remove
947 obsolete grub-install example.
948
6bdda8f8
SJ
9492010-10-16 Szymon Janc <szymon@janc.net.pl>
950
951 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
952 Set-but-not-used variable ifdef'ed.
953 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
954 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
955 variable removed.
956 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
957 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
958 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
959 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
960 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
961 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
962 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
963 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
964 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
965 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
966 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
967 Likewise.
968
e19b016b
VS
9692010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
970
971 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
972 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
973 enum value.
974
6c8d3002
VS
9752010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
976
977 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
978 synonym to _S5_. Needed for some DSDTs.
979
c32b51c9
VS
9802010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
981
982 Userspace ACPI parser debugging.
983
984 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
985 headers and add relevant defines. Don't include standard headers.
986 (main) [GRUB_DSDT_TEST]: New function.
987 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
988 Don't declare functions.
989
fbfbeb39
VS
9902010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
991
992 Remove dead grub_efi_mm_fini.
993
994 * grub-core/kern/efi/mm.c (allocated_page): Removed.
995 (ALLOCATED_PAGES_SIZE): Likewise.
996 (MAX_ALLOCATED_PAGES): Likewise.
997 (allocated_pages): Likewise.
998 (grub_efi_allocate_pages): Don't record allocated pages.
999 (grub_efi_free_pages): Likewise.
1000 (grub_efi_mm_init): Likewise.
1001 (grub_efi_mm_fini): Removed.
1002
65f7ed7c
VS
10032010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1004
1005 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
1006 (grub_efi_mm_init): Take into account the memory map size increase.
1007
24977b44
VS
10082010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1009
1010 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
1011 (serial_hw_put): Wait based on real time rather than port reads. Don't
1012 roken ports.
1013 * include/grub/serial.h (grub_serial_port): New field broken.
1014
1eb01cd2
RM
10152010-10-16 Robert Millan <rmh@gnu.org>
1016
1017 * grub-core/kern/emu/misc.c
1018 (grub_make_system_path_relative_to_its_root): Fix premature return
1019 when processing non-root ZFS filesystems.
5f8b440b 1020 Reported by Sergio Talens-Oliag.
1eb01cd2 1021
2d5fed60
RM
10222010-10-15 Robert Millan <rmh@gnu.org>
1023
1024 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
1025 guarantee compressed ones are processed first.
1026
d0f4c1ea
VS
10272010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1028
1029 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
1030 grub_efiemu_autocore.
1031
d87c681f
VS
10322010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
1033
1034 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
1035 rather than 0x1b.
1036 (grub_console_getkey): Use correct jae opcode rather than ja.
1037
219b3564
RM
10382010-10-12 Robert Millan <rmh@gnu.org>
1039
1040 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
1041 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
1042 variable. All references updated.
1043
1044 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
1045
20c6bb7e
VS
10462010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 Correctly distinguish mdraid flavours.
1049
1050 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
1051 (insert_array): New argument raid.
1052 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
1053 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
1054 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
1055
74baff84
VS
10562010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
1057
1058 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
1059 handling of special keys.
1060
3ef068df 10612010-10-02 Aleš Nesrsta <starous@volny.cz>
1062
c7980ad9
VS
1063 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
1064 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
3ef068df 1065
a9455194 10662010-10-02 Aleš Nesrsta <starous@volny.cz>
1067
c7980ad9
VS
1068 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
1069 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
1070 users updated.
a9455194 1071 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
c7980ad9 1072 Use right endpoint when querying descriptor.
a9455194 1073
441cfe65
VS
10742010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
1075
1076 Clear out 0x80 color bit on EFI.
1077 Tested by: decoder
1078 Reported by: decoder and meta tech.
1079
1080 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
1081 (grub_console_setcolorstate): Clear out 0x80 bit.
1082 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
1083 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
1084 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
1085
bf26bcc4
VS
10862010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
1087
1088 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
1089 Set to "auto".
1090
6e3c515d
VS
10912010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1092
1093 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
1094 mo_file after freeing.
1095
e6d983ba
VS
10962010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1097
1098 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
1099
74ccb5b5
VS
11002010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1101
1102 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
1103 flags.
1104
17821956
VS
11052010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1106
1107 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
1108 usage.
1109
ee74fa48
VS
11102010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
1111
1112 Put terminfo into core on ieee1275 and yeeloong (needed for console).
1113
1114 * gentpl.py: New groups terminfoinkernel and terminfomodule.
1115 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
1116 and terminfo.h when needed.
1117 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
1118 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
1119 (terminfo): Enable only on terminfokernel.
1120 (extcmd): Likewise.
1121 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
1122 * include/grub/lib/arg.h: Likewise.
1123 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
1124 incorrect usage of ->.
1125
aa438e68
VS
11262010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1127
1128 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
1129 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
1130
57994012
VS
11312010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1132
1133 Fix coreboot compilation.
1134
1135 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1136 Take VBE info into account even if only text is supported.
1137 (fill_vbe_info): Take into account the case when only VGA text
1138 is supported.
1139 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
1140 on coreboot, multiboot and qemu.
1141
2a406611
VS
11422010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1143
1144 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
1145 debug messages.
1146 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
1147
d33613fc
VS
11482010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1149
1150 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
1151 parameters.
1152
44a1b432
VS
11532010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1154
1155 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
1156 if they were BSD-style.
1157
edde54e6
VS
11582010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1159
1160 * grub-core/boot/i386/pc/lnxboot.S: Replace
1161 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
1162 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
1163
b65830fa
VS
11642010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
1165
1166 Write embedding zone using Reed-Solomon.
1167
1168 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
1169 * grub-core/Makefile.am (rs_decoder.S): New target.
1170 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
1171 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
1172 (multiboot): Move to RS part.
1173 (post_reed_solomon): New label.
1174 (grub_boot_drive): Move to non-RS part since it's modified in memory
1175 on boot.
1176 Include rs_decoder.S.
1177 * grub-core/lib/reed_solomon.c: New file.
1178 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
1179 New definition.
1180 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
1181 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
1182 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
1183 * include/grub/partition.h (grub_partition_map): Change prototype of
1184 embed to allow returning additional sectors.
1185 * include/grub/reed_solomon.h: New file.
1186 * util/grub-setup.c (setup): Handle Reed-Solomon.
1187
0b4b227f
CW
11882010-09-28 Colin Watson <cjwatson@ubuntu.com>
1189
1190 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1191 i386 and x86-64 definedness tests.
1192
f772623b
YB
11932010-09-27 Yves Blusseau <blusseau@zetam.org>
1194
1195 Fix generation of kernel_syms.lst
1196
1197 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
1198 ASM_PREFIX
1199
8e57a6ca
RM
12002010-09-26 Robert Millan <rmh@gnu.org>
1201
1202 Support degraded ZFS arrays in "grub-probe -t device" resolution.
1203
1204 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
1205 the pool is an array of devices, iterate through it and return the
1206 first device that passes a stat() test (instead of blindly returning
1207 the first one).
1208
f9130836
RM
12092010-09-26 Robert Millan <rmh@gnu.org>
1210
1211 Build fixes for GNU/kFreeBSD.
1212
1213 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
1214 to programs that require ZFS conversion.
1215 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
1216 kernels that don't have FLOPPY_MAJOR.
1217
96510faf
BC
12182010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
1219
1220 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
1221
449333eb
BC
12222010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
1223
1224 Fix grub-emu build.
1225
1226 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
1227 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
1228 mdraid09 and mdraid1x.
1229
e1fd1939
CW
12302010-09-24 Colin Watson <cjwatson@ubuntu.com>
1231
1232 Re-enable grub-extras.
1233
1234 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
1235 avoid confusing Automake. Run autogen only twice, once for the top
1236 level and once for grub-core. Add Makefile.util.def and
1237 Makefile.core.def from extra modules to the appropriate autogen
1238 invocations. If Makefile.common exists in an extra module, include
1239 it in both Makefile.util.am and grub-core/Makefile.core.am;
1240 similarly, include any Makefile.util.common file in Makefile.util.am
1241 and any Makefile.core.common file in grub-core/Makefile.core.am.
1242 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
1243 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
1244 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
1245 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
1246
1247 * gentpl.py (gvar_add): Turn GVARS into a set.
1248 (global_variable_initializers): Sort global variables on output.
1249 (vars_init): New function.
1250 (first_time): Likewise.
1251 (library): Ensure that non-global variable initialisations are
1252 emitted before the first time we emit code for a library block.
1253 Append to variables rather than setting them. Only emit
1254 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
1255 each conditional path.
1256 (program): installdir() emits an Autogen macro, so must be passed to
1257 var_add rather than gvar_add.
1258 (data): Likewise.
1259 (script): Likewise.
1260 (rules): New function, centralising handling for different target
1261 types. Set up Guile association lists for first_time and vars_init,
1262 and send most output to a diversion so that variable initialisations
1263 can be emitted first.
1264 (module_rules): Use new rules function.
1265 (kernel_rules): Likewise.
1266 (image_rules): Likewise.
1267 (library_rules): Likewise.
1268 (program_rules): Likewise.
1269 (script_rules): Likewise.
1270 (data_rules): Likewise.
1271
1272 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
1273
1274 * .bzrignore: Add contrib and grub-core/contrib. Remove
1275 grub-core/Makefile.gcry.am.
1276
1d12cf29
YB
12772010-09-24 Yves Blusseau <blusseau@zetam.org>
1278
1279 * grub-core/lib/LzFind.c: Add missing include.
1280 * grub-core/lib/LzmaEnc.c: Likewise.
1281 * grub-core/script/lexer.c: Likewise.
1282 * grub-core/script/yylex.l: Likewise.
1283 * util/grub-macho2img.c: Likewise.
1284 * util/grub-menulst2cfg.c: Likewise.
1285 * util/grub-mklayout.c: Likewise.
1286 * util/grub-mkpasswd-pbkdf2.c
1287 * util/grub-mkrelpath.c: Likewise.
1288 * util/resolve.c: Likewise.
1289
dd363028
BC
12902010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
1291
1292 * Makefile.util.def (example_unit_test): Add
1293 grub-core/gnulib/libgnu.a.
1294
f5a109e2
GS
12952010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
1296
1297 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
1298
6d0fa83c
VS
12992010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
1300
1301 Support xz compression on yeeloong.
1302
1303 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
1304 * configure.ac: Check for LZMA.
1305 * grub-core/Makefile.core.def (xz_decompress): New target.
1306 (none_decompress): Likewise.
1307 * grub-core/boot/decompressor/minilib.c: New file.
1308 * grub-core/boot/decompressor/none.c: Likewise.
1309 * grub-core/boot/decompressor/xz.c: Likewise.
1310 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
1311 * grub-core/kern/mips/cache_flush.S: Likewise.
1312 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
1313 * grub-core/kern/mips/startup.S: Move first stage to ...
1314 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
1315 nomacro.
1316 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
1317 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
1318 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
1319 Allocate statically.
1320 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
1321 Allocate statically or use scratch. Don't check CRC32.
1322 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
1323 Allocate statically. Don't check CRC32.
1324 * include/grub/decompressor.h: New file.
1325 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
1326 Removed.
1327 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
1328 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
1329 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
1330 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
1331 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
1332 * util/grub-mkimage.c (grub_compression_t): New type.
1333 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
1334 (image_target_desc): New field default_compression.
1335 (image_targets): Adjust yeeloong targets.
1336 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
1337 (compress_kernel): New parameter comp.
1338 (generate_image): Likewise. Handle new compression case.
1339 (options): New option --compression
1340 (help): Likewise.
1341 (main): Handle new option.
1342
1b655af6
GS
13432010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
1344
1345 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
1346
8f03f0b5
CW
13472010-09-22 Colin Watson <cjwatson@ubuntu.com>
1348
1349 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
1350 typo in __i386__ conditional.
1351
7835dfd3
VS
13522010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1353
1354 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
1355 include.
1356
e255597e
VS
13572010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
1358
6d0fa83c 1359 Implement EFI and ACPI multiboot2 extensions.
e255597e
VS
1360
1361 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
1362 new tags as supported.
1363 (acpiv2_size): New function.
1364 (grub_multiboot_get_mbi_size): Take new tags into account.
1365 (grub_multiboot_make_mbi): Add new tags.
1366 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
6d0fa83c 1367
6cc14051 13682010-09-21 Aleš Nesrsta <starous@volny.cz>
1369
1370 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
1371 Added missing configuration of USB device.
1372
df7769d8
CW
13732010-09-21 Colin Watson <cjwatson@ubuntu.com>
1374
1375 * grub-core/normal/menu_entry.c (run): Make sure we always return
1376 a value.
1377
b031012d
CW
13782010-09-21 Colin Watson <cjwatson@ubuntu.com>
1379
1380 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
1381 NumberOfPages is UINT64 according to the UEFI specification, not
1382 UINTN. Fix printf format.
1383
174de8f3
CW
13842010-09-21 Colin Watson <cjwatson@ubuntu.com>
1385
1386 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
1387 `err' to grub_usb_err_t.
1388 Reported and tested by: KESHAV P.R.
1389
d7dbe923
CW
13902010-09-21 Colin Watson <cjwatson@ubuntu.com>
1391
1392 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
1393 tpart non-const, so that we can assign to it. (Since this is a
1394 typedef, the constness refers to the pointer rather than what it
1395 points to.)
1396
8d5e2af3
CW
13972010-09-21 Colin Watson <cjwatson@ubuntu.com>
1398
1399 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
1400 $(top_srcdir)/grub-core/gnulib as well as
1401 $(top_builddir)/grub-core/gnulib.
1402 Reported by: KESHAV P.R.
1403
5c527783
CW
14042010-09-21 Colin Watson <cjwatson@ubuntu.com>
1405
1406 * util/grub-install.in: Fix the bootloader ID option to be
1407 consistently --bootloader-id, not --bootloader_id.
1408 Reported by: KESHAV P.R.
1409
d309a16e
CW
14102010-09-21 Colin Watson <cjwatson@ubuntu.com>
1411
1412 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
1413 check hash checksum." consistently translatable.
1414
b830cd16
YB
14152010-09-21 Yves Blusseau <blusseau@zetam.org>
1416
1417 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
1418 $(top_builddir).
1419
c4fe27a8
CW
14202010-09-21 Colin Watson <cjwatson@ubuntu.com>
1421
1422 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
1423 (GRUB_MOD_INIT): Register sha1sum command.
1424 (GRUB_MOD_FINI): Unregister sha1sum command.
1425
a4c1d277
YB
14262010-09-21 Yves Blusseau <blusseau@zetam.org>
1427
1428 Keep boot and grub directory names in sync with utils scripts
1429
1430 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
1431 * config.h.in: Add previous macros.
1432 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
1433 * util/grub-install.in: Use $bootdir and $grubdir variables.
1434
4eff79d2
CW
14352010-09-21 Colin Watson <cjwatson@ubuntu.com>
1436
1437 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
1438 convert partition names to disk names if the new `convert' parameter
1439 is set.
1440 (grub_util_biosdisk_get_grub_dev): If opening the disk device
1441 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
1442 disk in its own right. This can happen with Xen disk images.
1443
934d7e44
YB
14442010-09-21 Yves Blusseau <blusseau@zetam.org>
1445
1446 * util/grub-editenv.c: Update strings to avoid warnings when generating
1447 grub.pot file.
1448 * util/grub-setup.c: Likewise.
934d7e44 1449
df3367cc
VS
14502010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1451
1452 * configure.ac: Change version to 1.99~beta0.
1453
77a94e98
VS
14542010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
1457 Add BADRAM.
1458 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
1459 Likewise.
1460 * include/multiboot.h: Resynced with specification.
1461 * include/multiboot2.h: Likewise.
1462
269004c1
CW
14632010-09-21 Colin Watson <cjwatson@ubuntu.com>
1464
1465 Fix po directory handling.
1466
1467 * configure.ac: Create po/Makefile.in rather than po/Makefile.
1468 * grub-core/gnulib/Makefile.am: Import gettext module.
1469 * m4/gnulib-cache.m4: Likewise.
1470 * m4/gnulib-comp.m4: Likewise.
1471 * m4/gettext.m4: New file, from gnulib.
1472 * m4/glibc2.m4: Likewise.
1473 * m4/iconv.m4: Likewise.
1474 * m4/intdiv0.m4: Likewise.
1475 * m4/intl.m4: Likewise.
1476 * m4/intldir.m4: Likewise.
1477 * m4/intlmacosx.m4: Likewise.
1478 * m4/intmax.m4: Likewise.
1479 * m4/inttypes-pri.m4: Likewise.
1480 * m4/lcmessage.m4: Likewise.
1481 * m4/lib-ld.m4: Likewise.
1482 * m4/lib-link.m4: Likewise.
1483 * m4/lib-prefix.m4: Likewise.
1484 * m4/lock.m4: Likewise.
1485 * m4/nls.m4: Likewise.
1486 * m4/po.m4: Likewise.
1487 * m4/printf-posix.m4: Likewise.
1488 * m4/progtest.m4: Likewise.
1489 * m4/threadlib.m4: Likewise.
1490 * m4/uintmax_t.m4: Likewise.
1491 * m4/visibility.m4: Likewise.
1492 * po/Makefile.am: Remove.
1493 * po/Makefile.in.in: New file, from gettext.
1494 ($(DOMAIN).pot-update): Support POTFILES-shell.
1495 * po/Makevars: New file.
1496 * po/POTFILES-shell: Rename to ...
1497 * po/POTFILES-shell.in: ... this. Update.
1498 * po/POTFILES: Rename to ...
1499 * po/POTFILES.in: ... this. Update.
1500 * po/Rules-quot: New file, from gettext.
1501 * po/boldquot.sed: Likewise.
1502 * po/en@boldquot.header: Likewise.
1503 * po/en@quot.header: Likewise.
1504 * po/insert-header.sin: Likewise.
1505 * po/quot.sed: Likewise.
1506 * po/remove-potcdate.sin: Likewise.
1507
3e0fa5d0
VS
15082010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1509
1510 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
1511
ade9bd66
VS
15122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1513
1514 * util/grub.d/20_linux_xen.in: Use submenus.
1515
fc55cc4c
VS
15162010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1517
1518 Support submenus.
1519
1520 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
1521 parameter submenu. All users updated.
1522 * grub-core/normal/main.c (free_menu): Rename to ...
1523 (grub_normal_free_menu): ... this. Made global.
1524 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
1525 if requested.
1526 * grub-core/normal/menu_entry.c (screen): New field submenu.
1527 (make_screen): Set submenu.
1528 (run): Open new context if requested.
1529 * include/grub/menu.h (grub_menu_entry): New field submenu.
1530 * include/grub/normal.h (grub_normal_free_menu): New proto.
1531
600cedf7
VS
15322010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1533
1534 Menu entries extractor.
1535
1536 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
1537 variants.
1538 (GRUB_MOD_INIT): Register new variants.
1539 (GRUB_MOD_FINI): Unregister new variants.
1540 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
1541 into grub_cmd_legacy_source.
1542 (grub_cmd_legacy_source): Implement extractor variants.
1543 (GRUB_MOD_INIT): Register new variants.
1544 (GRUB_MOD_FINI): Unregister new variants.
1545 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
1546 as an extractor.
1547 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
1548 search as an extractor.
1549 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
1550 test as an extractor.
1551 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
1552 as an extractor.
1553 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
1554 (grub_env_new_context): New function.
1555 (grub_env_context_open): Likewise.
1556 (grub_env_extractor_open): Likewise.
1557 (grub_env_extractor_close): Likewise.
1558 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
1559 grub_extractor_level.
1560 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
1561 * include/grub/env.h (grub_env_extractor_open): New proto.
1562 (grub_env_extractor_close): Likewise.
1563 * include/grub/normal.h (grub_extractor_level): New external variable.
1564
7bda3a87
VS
15652010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1566
1567 Make cutmem accept a region specification.
1568 Suggested by: Samuel Thibault
1569
1570 * grub-core/mmap/mmap.c (parsemem): New function.
1571 (grub_cmd_cutmem): Handle new arguments.
1572
2ea57f88
VS
15732010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1574
1575 New command cutmem.
1576
1577 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
1578 (GRUB_MOD_INIT): Register new command.
1579 (GRUB_MOD_FINI): Unregister new command.
1580
74342e31
VS
15812010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1582
1583 Support some annoying BSD and Minix subpartitions.
1584
1585 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
1586 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
1587 Properly handle concatenation.
1588 * grub-core/kern/device.c (grub_device_iterate): Likewise.
1589 * grub-core/normal/completion.c (iterate_partition): Likewise.
1590 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
1591 contain partition. All users updated.
1592 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
1593 struct.
1594 (grub_openbsdlabel_partition_map): Likewise.
1595 (bsdlabel_partition_map_iterate): Rename to ..
1596 (iterate_real): ... this. New arguments sector, freebsd and pmap.
1597 (bsdlabel_partition_map_iterate): New function.
1598 (netopenbsdlabel_partition_map_iterate): Likewise.
1599 (netbsdlabel_partition_map_iterate): Likewise.
1600 (openbsdlabel_partition_map_iterate): Likewise.
1601 (GRUB_MOD_INIT): Register new partmaps.
1602 (GRUB_MOD_FINI): Unregister new partmaps.
1603 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
1604 (grub_partition_msdos_iterate): ... this. All users updated.
1605 Don't support embedding other than in a minix partition.
1606 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
1607 proto.
1608 * include/grub/partition.h (grub_partition): New field msdostype.
1609 * util/grub-install.in: Handle openbsd and netbsd types being in
1610 part_bsd module.
1611
1e8d555b
VS
16122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1613
1614 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
1615
1616 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
1617 * grub-core/Makefile.core.def (mdraid): Renamed to ...
1618 (mdraid09): ... this.
1619 (mdraid1x): New module.
1620 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
1621 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
1622
899d8af4
VS
16232010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1624
1625 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
1626 vsprintf.
1627
40901acd
CW
16282010-09-20 Colin Watson <cjwatson@ubuntu.com>
1629
1630 * grub-core/commands/efi/lsefimmap.c: Correct header.
1631 * NEWS: Update.
1632
dfe3b247
CW
16332010-09-20 Colin Watson <cjwatson@ubuntu.com>
1634
1635 * util/grub-editenv.c (argp_parser): Don't pass translated strings
1636 as printf format strings; the translations might contain '%' which
1637 could cause a crash.
1638 (main): Likewise.
1639 * util/grub-fstest.c (argp_parser): Likewise.
1640 * util/grub-setup.c (argp_parser): Likewise.
1641 (main): Likewise.
1642
3286a4b4
VS
16432010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1644
1645 Use argp in grub-fstest.
1646
1647 * util/grub-fstest.c: Don't include getopt.h.
1648 Include argp.h.
1649 (root): New variable.
1650 (args_count): Likewise.
1651 (nparm): Likewise.
1652 (num_disks): Likewise.
1653 (images): Likewise.
1654 (cmd): Likewise.
1655 (debug_str): Likewise.
1656 (args): Likewise.
1657 (options): Transformed to argp.
1658 (usage): Removed.
1659 (main): Split argument parsing into ...
1660 (argp_parser): ... this. Changed to argp format.
1661 (argp): New variable.
1662 (main): Use argp_parse.
1663
3dccbe4b
TG
16642010-09-20 Tristan Gingold <gingold@free.fr>
16652010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16662010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1667
1668 * grub-core/commands/efi/lsefimmap.c: New file.
1669 * grub-core/Makefile.core.def (lsefimmap): New module.
1670 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
1671
38c259a7
VS
16722010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1673
1674 Pause the execution (10s max) if any errors are displayed so the user
1675 has a chance to see them.
1676
1677 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
1678 (grub_print_error): Increment grub_err_printed_errors.
1679 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
1680 execution if any errors were displayed.
1681 (show_menu): Remove old code for pause.
1682 * grub-core/normal/menu_entry.c (run): Likewise.
1683 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
1684 users updated.
1685 (grub_normal_get_char_counter): Likewise.
1686 * include/grub/err.h (grub_err_printed_errors): New external variable.
1687 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
1688
f218b09c
VS
16892010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 Support multiboot VBE info.
1692
1693 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
1694 Take VBE info into account.
1695 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
1696 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1697 Call fill_vbe_info when appropriate.
1698 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
1699 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
1700 as supported.
1701 (grub_multiboot_get_mbi_size): Take new tags into account.
1702 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
1703 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
1704 Call fill_vbe_tag when appropriate.
1705 (grub_multiboot_make_mbi): Properly align tags.
1706 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
1707 function.
1708 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
1709 proto.
1710 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
1711
a9cc5438
VS
17122010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1713
1714 Suport manual terminal geometry specification.
1715
1716 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
1717 Save state in grub_ofconsole_terminfo_output.
1718 (grub_ofconsole_term): Use grub_terminfo_getwh.
1719 (grub_ofconsole_getwh): Removed.
1720 * grub-core/term/serial.c (grub_serial_getwh): Removed.
1721 (grub_serial_term): Use grub_terminfo_getwh.
1722 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
1723 (options): New struct.
1724 (OPTION_*): New enum.
1725 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
1726 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
1727 width and height.
1728 (grub_terminfo_getwh): New proto.
1729 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
1730
1a8fed20
VS
17312010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1732
1733 Handle legacy "terminal" command.
1734
1735 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
1736 and FLAG_TERMINAL.
1737 (legacy_commands): Add terminal and title.
1738 (grub_legacy_parse): Handle terminal. Simplify title handling.
1739
41e9c57d
VS
17402010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1741
1742 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
1743 parameters overflow.
1744
61c874c5
CW
17452010-09-20 Colin Watson <cjwatson@ubuntu.com>
1746
1747 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
1748 widthspec.h.
1749
1750 * docs/grub.texi (Shell-like scripting): Document `!'.
1751 (Network): Simplify using new i386-pc-pxe format. Mention
1752 grub-mknetdir.
1753
1754 * NEWS: Update.
1755
943682b4
CW
17562010-09-20 Colin Watson <cjwatson@ubuntu.com>
1757
1758 * Makefile.am (SUBDIRS): Restore "."; it's important to force
1759 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
1760 when needed.
1761
6d3d698d
CW
17622010-09-20 Colin Watson <cjwatson@ubuntu.com>
1763
1764 * grub-core/commands/efi/lsefisystab.c: Correct header.
1765 * grub-core/commands/efi/lssal.c: Likewise.
1766 * grub-core/commands/testload.c: Likewise.
1767
c982589f
CW
17682010-09-20 Colin Watson <cjwatson@ubuntu.com>
1769
1770 * util/grub-mkrescue.in: Add explicit root argument to --set to
1771 prevent the UUID being interpreted as an argument to --set (matches
1772 previous change to prepare_grub_to_access_device).
1773
a63c31b6
CW
17742010-09-20 Colin Watson <cjwatson@ubuntu.com>
1775
1776 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
1777 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
1778 the verbosity of later #ifs.
1779 (find_partition_start): Define this function on FreeBSD too.
1780 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
1781 function.
1782 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
1783 on FreeBSD.
1784
6439b8ee
YB
17852010-09-20 Yves Blusseau <blusseau@zetam.org>
1786
1787 * util/grub-editenv.c: Use argp instead of getopt.
1788
c5930ec8
YB
17892010-09-20 Yves Blusseau <blusseau@zetam.org>
1790
1791 * util/grub-setup.c: Use argp instead of getopt.
1792
15c69261
YB
17932010-09-20 Yves Blusseau <blusseau@zetam.org>
1794
1795 Use gnulib-tool to create gnulib source files.
1796
1797 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
1798 grub-core/gnulib directories
1799 * .bzignore: Add **/.deps and autogenerated gnulib files
1800 * configure.ac: Assign auxiliary directory to build-aux, add invocation
1801 of gnulib macros, add grub-core/gnulib/Makefile
1802 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
1803 include m4 directory to aclocal.
1804 * Makefile.util.def: Remove direct compilation of gnulib source files
1805 and use the new grub-core/gnulib/libgnu.a.
1806 * build-aux/config.rpath: move config.rpath from top directory to
1807 build-aux
1808 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
1809 in gnulib headers
1810 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
1811 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
1812 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
1813 header.
1814 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
1815 string.
1816
e511c9f5
YB
18172010-09-20 Yves Blusseau <blusseau@zetam.org>
1818
1819 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
1820 grub-core/genmod.sh and grub-core/gensyminfo.sh
1821
c2dede05
BC
18222010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
1823
1824 Add a test for echo command options.
1825
1826 * tests/grub_cmd_echo.in: New test.
1827 * Makefile.util.def: Rules for new test.
1828
c55f5018
SJ
18292010-09-20 Szymon Janc <szymon@janc.net.pl>
1830
1831 Remove crc.mod and move crc command to hashsum.mod.
1832 Remove lib/crc.c - users updated to use gcrypt implementation.
1833
1834 * grub-core/commands/crc.c: Removed.
1835 * grub-core/Makefile.core.def (crc): Module removed.
1836 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
1837 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
1838 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
1839 * grub-core/lib/crc.c: Removed.
1840 * include/grub/lib/crc.h: Removed.
1841 * Makefile.util.def (crc): Remove lib/crc.c
1842 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
1843 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
1844 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
1845 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
1846 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
1847 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
1848
e0337366
VS
18492010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
1850
1851 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
1852
742f9232
VS
18532010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1854
1855 Split config.h for util and core.
1856
1857 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
1858 (ADDR32): Likewise.
1859 (DATA32): Likewise.
1860 (BSS_START_SYMBOL): Likewise.
1861 (END_SYMBOL): Likewise.
1862 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
1863 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
1864 * config.h.in: New file.
1865 * configure.ac: Use config-util.h as config define file.
1866 Rename MACHINE into GRUB_MACHINE. All users updated.
1867 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
1868 updated.
1869 (NESTED_FUNC_ATTR): Likewise.
1870 Substitue new variables.
1871 (COND_HAVE_ASM_USCORE): New conditional.
1872 * grub-core/Makefile.am (ASM_PREFIX): New variable.
1873 (kernel_syms.lst): Use ASM_PREFIX.
1874 * grub-core/kern/emu/console.c: Include config-util.h.
1875 * grub-core/kern/emu/misc.c: Likewise.
1876 * grub-core/kern/emu/mm.c: Likewise.
1877 * include/grub/emu/misc.h: Likewise.
1878 * include/grub/libgcc.h: Likewise.
1879
39feb0e8
VS
18802010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1881
1882 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
1883 constants usage.
1884 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
1885 Fix GRUB_TERM_KEY_* constants usage.
1886 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
1887
9af6dac3
VS
18882010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1889
1890 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
1891 print pointer.
1892 * grub-core/bus/usb/uhci.c: Remove empty define.
1893 (grub_uhci_check_transfer): Add missing cast.
1894 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
1895 print pointer.
1896 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
1897 PRIuGRUB_SIZE.
1898 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
1899
d6d94820
VS
19002010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1901
1902 * grub-core/Makefile.core.def (legacycfg): Add
1903 lib/i386/pc/vesa_modes_table.c on emu.
1904
3572f2b6
BC
19052010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1906
1907 Reduce number of temporary files generated by build system.
1908
1909 * grub-core/gencmdlist.sh: Removed.
1910 * grub-core/genfslist.sh: Removed.
1911 * grub-core/genhandlerlist.sh: Removed.
1912 * grub-core/genmodsrc.sh: Removed.
1913 * grub-core/genpartmaplist.sh: Removed.
1914 * grub-core/genparttoollist.sh: Removed.
1915 * grub-core/gentermiinallist.sh: Removed.
1916 * grub-core/genvideolist.sh: Removed.
1917
1918 * grub-core/genmod.sh.in: New file.
1919 * grub-core/gensyminfo.sh.in: New file.
1920
1921 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
1922 * conf/Makefile.extra-dist: Update with new files.
1923 * gentpl.py: Remove rules related to unnecessary temporary files.
1924 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
1925 and und-* files.
1926 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
1927 genmod.sh scripts.
1928 * grub-core/bus/usb/uhci.c: Remove empty #define.
1929 * grub-core/genmoddep.awk: Updated with new syminfo format.
1930 * util/bash-completion.d/Makefile.am: Add config.log to
1931 CLEANFILES.
1932
c836b030
YB
19332010-09-19 Yves Blusseau <blusseau@zetam.org>
1934
1935 * Makefile.util.def: Add forgotten $(LIBINTL) library.
1936
2f4e8053
BC
19372010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
1938
1939 * util/grub-mkconfig.in: Check the config script for syntax errors
1940 before saving.
1941
75831c34
CW
19422010-09-19 Colin Watson <cjwatson@ubuntu.com>
19432010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1944
1945 * Makefile.util.def (grub-install): Use util/grub-install.in on all
1946 platforms.
1947 * util/grub-install.in: Add EFI and IEEE1275 support.
1948 * util/i386/efi/grub-install.in: Removed.
1949 * util/ieee1275/grub-install.in: Likewise.
1950
eaf41b25
VS
19512010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
1952
1953 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
1954 (grub_cmd_cmosclean): Likewise.
1955 (GRUB_MOD_INIT): Register command cmosclean.
1956 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
1957 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
1958
1a9130dd
CPE
19592010-09-18 Carles Pina i Estany <carles@pina.cat>
19602010-09-18 Aleš Nesrsta <starous@volny.cz>
19612010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1962
1963 Add keyboard layouts support.
1964
1965 * Makefile.util.def (grub-mklayout): New file.
1966 (grub-kbdcomp): New script.
1967 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
1968 Add keyboard_layouts.h.
1969 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
1970 commands/boot.c on yeeloong.
1971 (keylayouts): New module.
1972 * grub-core/bus/usb/ohci.c
1973 * grub-core/bus/usb/uhci.c
1974 * grub-core/bus/usb/usbhub.c (rescan): New variable.
1975 (grub_usb_add_hub): Poll interrupt pipe for device handling.
1976 (attach_root_port): Likewise.
1977 (poll_nonroot_hub): Likewise.
1978 (grub_usb_poll_devices): Likewise.
1979 (detach_device): Close transfer.
1980 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
1981 function.
1982 (grub_usb_bulk_setup_readwrite): Likewise.
1983 (grub_usb_bulk_finish_readwrite): Likewise.
1984 * grub-core/commands/keylayouts.c: New file.
1985 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
1986 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
1987 aliases.
1988 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
1989 support scancode 2.
1990 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
1991 * include/grub/keyboard_layouts.h: New file.
1992 * util/grub-mklayout.c: New file.
1993 * util/grub-kbdcomp.in: Likewise.
1994
a1d84a5e
VS
19952010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1996
1997 Unify memory types.
1998
1999 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
2000 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
2001 types.
2002 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
2003 (grub_upper_mem): Likewise.
2004 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
2005 * include/grub/memory.h (grub_memory_type_t): New enum.
2006 All users updated.
2007
9696382e
VS
20082010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2009
2010 * grub-core/Makefile.core.def (lsapm): New module.
2011 * grub-core/commands/i386/pc/lsapm.c: New file.
2012 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
2013 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
2014 Likewise.
2015 * include/grub/i386/pc/apm.h: New file.
2016 * include/multiboot.h (multiboot_apm_info): New struct.
2017
20182010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2019
2020 GRUB-legacy configuration file support.
2021
2022 * Makefile.util.def (grub-menulst2cfg): New util.
2023 * docs/man/grub-menulst2cfg.h2m: New file.
2024 * grub-core/Makefile.core.def (legacycfg): New module.
2025 * grub-core/commands/legacycfg.c: New file.
2026 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
2027 (grub_normal_add_menu_entry): ... this.
2028 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
2029 (grub_normal_set_password): ...this.
2030 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
2031 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
2032 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
2033 * grub-core/lib/legacy_parse.c: New file.
2034 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
2035 * include/grub/i386/pc/vesa_modes_table.h: New file.
2036 * include/grub/legacy_parse.h: Likewise.
2037 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
2038 * util/grub-menulst2cfg.c: New file.
2039
bf8d1338
CW
20402010-09-17 Colin Watson <cjwatson@ubuntu.com>
2041
2042 * grub-core/kern/emu/hostdisk.c
2043 (convert_system_partition_to_system_disk): Initialise node.
2044
9c0bad2e
CW
20452010-09-17 Colin Watson <cjwatson@ubuntu.com>
2046
2047 * grub-core/kern/emu/hostdisk.c
2048 (convert_system_partition_to_system_disk): Fix devmapper memory pool
2049 leak.
2050 Reported and based on patch by: Modestas Vainius.
2051
a939d135
CW
20522010-09-17 Colin Watson <cjwatson@ubuntu.com>
2053
2054 Fix DM-RAID probing with recent versions of device-mapper udev
2055 rules.
2056
2057 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
2058 canonicalise device paths under /dev/mapper/.
2059 (convert_system_partition_to_system_disk): Compare the
2060 uncanonicalised path to /dev/mapper/ rather than the canonicalised
2061 path, since device nodes under /dev/mapper/ are often symlinks.
2062
0f7ee3c9
YB
20632010-09-17 Yves Blusseau <blusseau@zetam.org>
2064
2065 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
2066
10854d0d
YB
20672010-09-16 Yves Blusseau <blusseau@zetam.org>
2068
2069 * configure.ac: Avoid some annoying error messages if freetype-config
2070 program is not found.
2071
108538d8
CW
20722010-09-16 Colin Watson <cjwatson@ubuntu.com>
2073
2074 Support RAID on virtio devices, and others.
2075
2076 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
2077 Rename to ...
2078 [__MINGW32__] (grub_find_device): ... this.
2079 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
2080 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
2081 reasonable default if dir is NULL.
2082 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
2083 ...
2084 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
2085 (grub_guess_root_device): Update callers.
2086 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
2087
2088 * util/raid.c (grub_util_getdiskname): Remove.
2089 (grub_util_raid_getmembers): Use grub_find_device rather than
2090 grub_util_getdiskname.
2091
e5bfc130
CW
20922010-09-16 Colin Watson <cjwatson@ubuntu.com>
2093
2094 * docs/grub.texi (serial): Remove obsolete comment about GRUB
2095 needing to be compiled with serial support.
2096 (ls): Indicate that multiple files are accepted.
2097 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
2098 indicate that multiple files are accepted.
2099
be458ae2
CW
21002010-09-16 Colin Watson <cjwatson@ubuntu.com>
2101
2102 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
2103 libgrub_a_init.c, and util/bash-completion.d/grub.
2104
cb731b5e
VS
21052010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2106
2107 * util/grub-setup.c (setup): Fix incorrect container semantics.
2108
35139e8a
VS
21092010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2110
2111 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
2112 misusage.
2113 Reported by: J. Nick Terry
2114
e50fca4a
VS
21152010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2116
2117 Move embedding routines to partmap sources files.
2118
2119 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
2120 [GRUB_UTIL]: New variable.
2121 (gpt_partition_map_iterate): Set part.parent.
2122 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
2123 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
2124 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
2125 New function.
2126 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
2127 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
2128 (grub_partition_map) [GRUB_UTIL]: New field embed.
2129 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
2130 (setup): Use ->embed.
2131
f00478b7
VS
21322010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2133
2134 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
2135 function.
2136 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
2137 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
2138
2b94e3ff
YB
21392010-09-15 Yves Blusseau <blusseau@zetam.org>
2140
2141 Add function to get completions from usage.
2142
2143 * util/bash-completion.d/grub-completion.bash.in: Add function to get
2144 completions from usage. Use LC_ALL=C to get options properly.
2145
2e04a006
VS
21462010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2147
2148 * grub-core/gnulib/basename-lgpl.c: Imported.
2149 * grub-core/gnulib/basename.c: Likewise.
2150 * grub-core/gnulib/dirname-lgpl.c: Likewise.
2151 * grub-core/gnulib/dirname.c: Likewise.
2152 * grub-core/gnulib/dirname.h: Likewise.
2153 * grub-core/gnulib/stripslash.c: Likewise.
2154
5dcdf93a
VS
21552010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
2156
2157 * grub-core/gnulib/error.c: Resynced.
2158 * grub-core/gnulib/getopt.c: Likewise.
2159 * grub-core/gnulib/getopt_int.h: Likewise.
2160 * grub-core/gnulib/regex.h: Likewise.
2161 * grub-core/gnulib/regex_internal.c: Likewise.
2162 * grub-core/gnulib/regex_internal.h: Likewise.
2163
014f47b7
SJ
21642010-09-15 Szymon Janc <szymon@janc.net.pl>
2165
2166 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
2167 CRC calculations and validity checks.
2168 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
2169 calculations.
2170
dd521a4a
SJ
21712010-09-15 Szymon Janc <szymon@janc.net.pl>
2172
2173 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
2174
79c4eeb9
VS
21752010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2176
2177 Fix incorrect echo options handling.
2178 Reported by: Yves Blusseau.
2179
2180 * include/grub/command.h (grub_command_flags_t): New flags
2181 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
2182 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
2183 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
2184
ed80f7d5
VS
21852010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2186
2187 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
2188 users updated.
2189 (GRUB_COMMAND_FLAG_MENU): Likewise.
2190 (GRUB_COMMAND_FLAG_BOTH): Likewise.
2191 (GRUB_COMMAND_FLAG_TITLE): Removed.
2192 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
2193 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
2194 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
2195 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
2196 (grub_command_flags_t): New enum. All users updated.
2197
5fe7620a
SG
21982010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
2199
2200 Fix solaris compilation.
2201
2202 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
2203 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
2204 (grub-emu-list): Likewise.
2205
545b752f
VS
22062010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2207
2208 Remove deprecated root command.
2209
2210 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
2211 updated.
2212
6c1a338c
VS
22132010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * util/i386/pc/grub-setup.c: Merge this ...
2216 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
2217 * util/grub-setup.c: ... into this.
2218 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
2219 New struct.
2220
22212010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2222
2223 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
2224 possible.
2225
d2ea4551
VS
22262010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2227
2228 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
2229 allocate p.
2230
3c3b5040
VS
22312010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2232
2233 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
2234 explicit root argument to set to prevent UUID to be interpreted as
2235 argument to set.
2236
b71c3fae
VS
22372010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2238
2239 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
2240
275433e6
VS
22412010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2242
2243 Don't export grub_gate_a20.
2244
2245 * grub-core/kern/i386/pc/init.c: Remove leftovers.
2246 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
2247 to ...
2248 (grub_gate_a20): ... this. All users updated.
2249 * include/grub/i386/pc/init.h: Removed. All users updated.
2250
a5dbb1f1
VS
22512010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2252
2253 Create euro.pf2 which supports most European languages.
2254
2255 * Makefile.am (grubdata_DATA): Add euro.pf2.
2256 (euro.pf2): New target.
2257 (CLEANFILES): Add euro.pf2.
2258
62a747cb
VS
22592010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
2260
2261 * configure.ac: Disable emu-usb by default to prevent inadvertent
2262 device takeover.
2263
608e43b1
VS
22642010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2265
2266 Disable usbserial on grub-emu since our libusb code isn't good enough
2267 yet.
2268
2269 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
2270 (usbserial_pl2303): Likewise.
2271 (usbserial_ftdi): Likewise.
2272
94564f81
VS
22732010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2274
2275 * include/grub/disk.h (grub_disk): Remove has_partitions.
2276 All users updated.
2277 * disk/loopback.c (grub_loopback): Remove has_partitions.
2278 All users updated.
2279 (options): Remove partitions. All users updated.
2280 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
2281 * util/i386/pc/grub-setup.c (setup): copy partition table only when
2282 actual partition table is found.
2283
3352800b
VS
22842010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2285
2286 Remove readability checks (too many false negatives).
2287
2288 * util/grub-install.in: Remove readability checks.
2289 * util/grub-mkconfig.in: Likewise.
2290 * util/grub.d/10_hurd.in: Likewise.
2291 * util/grub.d/10_kfreebsd.in: Likewise.
2292 * util/grub.d/10_linux.in: Likewise.
2293 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
2294 way.
2295
2419f17a
VS
22962010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 Enable acpi shutdown on all ACPI platforms.
2299
2300 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
2301 on coreboo, multiboot and EFI.
2302 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
2303 (grub_acpi_halt): Likewise.
2304 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
2305 (grub_cmd_halt): Don't call grub_acpi_halt directly.
2306 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
2307 * grub-core/lib/i386/halt.c (grub_halt)
2308 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
2309
0575c7c3
VS
23102010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2311
2312 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
2313 context.
2314
54ac3cd1
VS
23152010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2316
2317 * grub-core/video/efi_gop.c: Fix over-80-chars line.
2318 * grub-core/video/efi_uga.c: Likewise.
2319
b2a30ac5
VS
23202010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2321
2322 Filter devaliases and never open same device twice.
2323
2324 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
2325 (last_ihandle): Likewise.
2326 (ofdisk_hash_ent): New member shortest.
2327 (ofdisk_hash_add): Add canonical path too.
2328 (scan): New function.
2329 (grub_ofdisk_iterate): Iterate over hashed entries.
2330 (compute_dev_path): Don't add :0.
2331 (grub_ofdisk_open): Don't really open the disk.
2332 (grub_ofdisk_close): Avoid closing unrelated disk.
2333 (grub_ofdisk_read): Implement reopen logic.
2334 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
2335 New function.
2336 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
2337 New proto.
2338
fb53b340
VS
23392010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2340
2341 Fix sparc64.
2342
2343 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
2344 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
2345 right address. Add sparc64_ieee1275_ldflags.
2346 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
2347 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
2348 to grub_host_to_target_addr
2349 (load_image): Likewise.
2350
f452b040
VS
23512010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2352
2353 * grub-core/normal/completion.c (complete_file): Handle device
2354 containing slash.
2355 Fix based on patch by Doug Nazar.
2356
9b5b2541
VS
23572010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2358
2359 grub-mknetdir script.
2360
2361 * Makefile.util.def (grub-mknetdir): New module.
2362 * tests/util/grub-shell.in: Support boot=net
2363 * util/grub-mknetdir.in: New file.
2364
9d2be652
VS
23652010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2366
2367 videoinfo on non-vbe.
2368
2369 * grub-core/Makefile.core.def (vbeinfo): Removed.
2370 (vbetest): Removed.
2371 (videoinfo): New module.
2372 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
2373 * grub-core/commands/i386/pc/vbetest.c: Removed.
2374 * grub-core/commands/videoinfo.c: New file.
2375 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
2376 specification.
2377 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
2378 as vbetest.
2379 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
2380 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
2381 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
2382 mode_number. New parameter mode. All users updated.
2383 (grub_video_gop_iterate): New function.
2384 (grub_video_efi_gop): New member iterate.
2385 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
2386 (grub_vbe_set_video_mode): Remove setting useless fields.
2387 (vbe2videoinfo): New function.
2388 (grub_video_vbe_iterate): Likewise.
2389 (grub_video_vbe_setup): Use vbe2videoinfo.
2390 (grub_video_vbe_print_adapter_specific_info): New function.
2391 (grub_video_vbe_adapter): New fields iterate and
2392 print_adapter_specific_info.
2393 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
2394 All users updated.
2395 (grub_video_mode_info): New field mode_number.
2396 (grub_video_adapter): New fields iterate and
2397 print_adapter_specific_info.
2398
179503f5
TG
23992010-09-13 Tristan Gingold <gingold@free.fr>
24002010-09-13 Robert Millan <rmh.grub@aybabtu.com>
24012010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2402
2403 * grub-core/commands/efi/lsefisystab.c: New file.
2404 * grub-core/commands/efi/lssal.c: Likewise.
2405 * grub-core/Makefile.core.def (lsacpi): New module.
2406 (lsefisystab): Likewise.
2407 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
2408 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
2409 (grub_efi_sal_system_table): New struct.
2410 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
2411 (grub_efi_sal_system_table_memory_descriptor): Likewise.
2412 (grub_efi_sal_system_table_platform_features): Likewise.
2413 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
2414 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
2415 (grub_efi_sal_system_table_ap_wakeup): Likewise.
2416 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
2417
cf9827de
VS
24182010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2419
2420 Support explicit user claim that a device is BIOS-visible.
2421
2422 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
2423 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
2424 * grub-core/kern/emu/hostdisk.c
2425 (convert_system_partition_to_system_disk): Support mdX.
2426 (find_system_device): New parameter add. All users updated.
2427 (grub_util_biosdisk_is_present): New function.
2428 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
2429 proto.
2430
53f0eb1f
VS
24312010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 Search hints support.
2434
2435 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
2436 All users updated.
2437
b23ffd70
YB
24382010-09-13 Yves Blusseau <blusseau@zetam.org>
2439
2440 Bash completion script for util commands
2441
2442 * Makefile.am: Add util/bash-completion.d directory
2443 * configure.ac: Likewise.
2444 * util/bash-completion.d/Makefile.am: New file.
2445 * util/bash-completion.d/grub-completion.bash.in: Likewise.
2446
d547dc28
VS
24472010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2448
2449 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
2450 (print_backlog): set backlog_ucs4 and backlog_glyphs.
2451 Reported by: Yves Blusseau.
2452
2fc8ccb9
VS
24532010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2454
2455 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
2456 partition size and offset.
2457
d8a84076
VS
24582010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2459
2460 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
2461
84fb3b3d
VS
24622010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2463
2464 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
2465
768ec2e2
VS
24662010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2467
2468 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
2469 (grub_xvasprintf): Likewise.
2470
4870900f
VS
24712010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2472
2473 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
2474
faca6bec
VS
24752010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
2476
2477 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
2478 args ending with NULL.
2479
24802010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
788f1f3a
VS
2481
2482 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
2483 pointer.
2484
3c70f225
SJ
24852010-09-11 Szymon Janc <szymon@janc.net.pl>
2486
2487 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
2488
4df7996d
VS
24892010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 Shutdown using ACPI.
2492
2493 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
2494 * grub-core/commands/acpihalt.c: New file.
2495 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
2496 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
2497 (grub_acpi_halt): New proto.
2498 (GRUB_ACPI_SLP_EN): New const.
2499 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
2500 (GRUB_ACPI_OPCODE_*): New enum.
2501 (GRUB_ACPI_EXTOPCODE_*): Likewise.
2502
126b4c32
TG
25032010-09-11 Tristan Gingold <gingold@free.fr>
25042010-09-11 Robert Millan <rmh.grub@aybabtu.com>
25052010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2506
2507 * commands/lsacpi.c: New file.
2508 * grub-core/Makefile.core.def (lsacpi): New module.
2509 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
2510 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
2511 (grub_acpi_madt_entry_header): New struct.
2512 (grub_acpi_madt): Likewise.
2513 (grub_acpi_madt_entry_interrupt_override): Likewise.
2514 (grub_acpi_madt_entry_sapic): Likewise.
2515 (grub_acpi_madt_entry_lsapic): Likewise.
2516 (grub_acpi_madt_entry_platform_int_source): Likewise.
2517 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
2518 (PRIuGRUB_UINT32_T): Likewise.
2519 (PRIxGRUB_UINT64_T): Likewise.
2520
1aa4fe88
VS
25212010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 Implement loading palette on ieee1275_fb.
2524
2525 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
2526 (have_setcolors): Likewise.
2527 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
2528 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
2529 (grub_video_ieee1275_set_palette): Implement.
2530
25761e13
VS
25312010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
25322010-09-11 Colin Watson <cjwatson@ubuntu.com>
2533
2534 * util/grub-install.in (grub_partition): New variable.
2535 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
2536 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
2537 Fixes a bug reported by Yves Blusseau.
2538
050abaea
VS
25392010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
2540
2541 Fix emu on mipsel.
2542
2543 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
2544 =grub_cpu_flush_cache on all mips and not only yeeloong.
2545 * configure.ac (COND_mips): New conditional.
2546 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
2547 platforms.
2548 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
2549 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
2550 [GRUB_LINKER_HAVE_INIT]: New function.
2551 (grub_emu_post_init): Likewise.
2552 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
2553 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
2554 * include/grub/cache.h (_mips): Include mips/cache.h.
2555 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
2556 LVM and RAID prototypes.
2557 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
2558 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
2559 function.
2560
5ed7d816
CW
25612010-09-10 Colin Watson <cjwatson@ubuntu.com>
2562
2563 * util/grub-install.in: Don't try to verify core.img until after
2564 running grub-mkimage to create it.
2565
90367e04
RM
25662010-09-10 Robert Millan <rmh@gnu.org>
2567
2568 * util/grub.d/10_hurd.in: Add misc readability checks.
2569 * util/grub.d/10_kfreebsd.in: Likewise.
2570 * util/grub.d/10_linux.in: Likewise.
2571
c452fa66
CW
25722010-09-10 Colin Watson <cjwatson@ubuntu.com>
2573
2574 * util/grub-install.in: ${imgext} won't be defined here until the
2575 install branch is merged. For the meantime, only verify core.img on
2576 i386-pc and sparc64-ieee1275 platforms.
2577
c38fe9f4
RM
25782010-09-10 Robert Millan <rmh@gnu.org>
2579
2580 Solaris support in grub_find_zpool_from_dir(). Thanks
2581 Seth Goldberg for referring to getextmntent() facility.
2582
2583 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
2584 `sys/mkdev.h'.
2585 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
2586 `<sys/mnttab.h>'.
2587 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
2588 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
2589 method for finding zpool name.
2590
905f7773
CW
25912010-09-10 Colin Watson <cjwatson@ubuntu.com>
2592
2593 grub-fstest needs the host and hostfs modules while other utilities
2594 actively require those modules to be absent, so grub-fstest needs
2595 its own initialisation and finalisation code.
2596
2597 * Makefile.am (grub_fstest.pp): New target.
2598 (grub_fstest_init.lst): Likewise.
2599 (grub_fstest_init.c): Likewise.
2600 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
2601
fb90b546
RM
26022010-09-10 Robert Millan <rmh@gnu.org>
2603
2604 * configure.ac: Check for `struct statfs.f_fstypename' and
2605 `struct statfs.f_mntfromname'.
2606
2607 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
2608 kFreeBSD-specific code.
2609
66d4bea5
RM
26102010-09-10 Robert Millan <rmh@gnu.org>
2611
2612 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
2613 on ZFS. Now non-main filesystems are supported as / too.
2614
b6a690ee
CW
26152010-09-09 Colin Watson <cjwatson@ubuntu.com>
2616
2617 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
2618 and grub-core/disk/host.c to ...
2619 (grub-fstest): ... here. Having the host disk implementation
2620 present confuses grub-probe and other utility programs.
2621
2622 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
2623 when writing to a file, not when writing to stdout.
2624
8901b00c 26252010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
2626
2627 * tests/partmap_test.in: New test for partitions.
2628 * Makefile.util.def: Rules for new test.
2629
7bf45fdd
RM
26302010-09-09 Robert Millan <rmh@gnu.org>
2631
2632 * util/grub-probe.c (probe): Fix a pair of unhandled error
2633 conditions.
2634
4dfbc574
RM
26352010-09-09 Robert Millan <rmh@gnu.org>
2636
2637 Basic Btrfs support (detection and UUID).
2638
2639 * grub-core/fs/btrfs.c: New file.
2640 * Makefile.util.def (library): Register btrfs.c.
2641 * grub-core/Makefile.core.def: Likewise.
2642
6b8e78ae
RM
26432010-09-08 Robert Millan <rmh@gnu.org>
2644
2645 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
2646 with (optional) parameters to specify device and relative path.
2647 * util/grub-install.in: Use is_path_readable_by_grub() to
2648 verify readability of a few critical files.
2649 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
2650 verify readability of grub.cfg.new.
2651
27f21a8b
VS
26522010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2653
2654 Split minix.mod into minix.mod and minix2.mod.
2655
2656 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
2657 * grub-core/Makefile.core.def (minix2): New module.
2658 * grub-core/fs/minix.c: Use definitions instead of runtime version
2659 checking.
2660 * grub-core/fs/minix2.c: New file.
2661
c0e53ea5
YB
26622010-09-08 Yves Blusseau <blusseau@zetam.org>
2663
2664 Add new --boot-directory option to replace --root-directory
2665
2666 * util/grub-install.in: Add new --boot-directory option
2667 * util/grub-reboot.in: Likewise.
2668 * util/grub-set-default.in: Likewise.
2669
b9fe6ea2
YB
26702010-09-08 Yves Blusseau <blusseau@zetam.org>
2671
2672 * util/grub-mkconfig.in: Use new variable.
2673
d87aedff
YB
26742010-09-08 Yves Blusseau <blusseau@zetam.org>
2675
2676 * configure.ac: Define some useful variables.
2677
e55e8495
VS
26782010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
2679
2680 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2681 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
2682 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
2683 Use terminfo and don't use cursor-on/cursor-off unless it's known
2684 to work.
2685 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
2686 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
2687
6fa6d675
CW
26882010-09-08 Colin Watson <cjwatson@ubuntu.com>
2689
2690 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
2691 starts with "(,", fill the drive containing the loaded image in
2692 between those two characters, but expect that a full partition
2693 specification including partition map names will follow.
2694
92f2aef0
RM
26952010-09-08 Robert Millan <rmh@gnu.org>
2696
2697 * configure.ac: Remove `--enable-grub-fstest' option.
2698 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
2699
2700 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
2701 `grub-fstest' instead of `grub-probe' for readability verification.
2702 * util/grub-probe.c (probe): Remove readability verification kludge.
2703
99fd620d
RM
27042010-09-08 Robert Millan <rmh@gnu.org>
2705
2706 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
2707 initializing `GRUB_FS'.
2708
058e30ac 27092010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
2710
2711 Not command (!) support to GRUB script.
2712
2713 * tests/grub_script_not.in: New test.
2714 * Makefile.util.def: Rules for new test.
2715
2716 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2717 ! command as a special case.
2718 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
2719
b61d05ed 27202010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2721
058e30ac 2722 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
2723 grub_free.
b61d05ed 2724
4d69c786 27252010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2726
2727 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
2728
aa3119c4 27292010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
2730
2731 * docs/grub.texi (Shell-like scripting): Documentation for break,
2732 continue, shift and return commands.
2733
db0f7e3d
VS
27342010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
2735
2736 Rename CD-ROM to cd on BIOS.
2737
2738 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
2739 "cd".
2740 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
2741
88b87c93
VS
27422010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2743
2744 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
2745 * util/grub-probe.c (main): Likewise.
2746 * util/i386/pc/grub-setup.c (main): Likewise.
2747 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
2748 Reported and debugged by: alexxy
2749
294f324d
VS
27502010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2751
2752 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
2753 diagnostic info.
2754
d7ee3441
JS
27552010-09-05 Jo Shields <directhex@apebox.org>
2756
2757 * util/grub.d/30_os-prober.in: Add missing classes.
2758
d7e06c1f
VS
27592010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2760
2761 * docs/grub.texi (Theme file format): Document new position format.
2762
fc157e53
VS
27632010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2764
2765 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
2766 a table. Use @code instead of @verbatim.
2767
506e9a1c
CB
27682010-09-05 Colin D Bennett <colin@gibibit.com>
2769
2770 Gfxmenu documentation.
2771
2772 * docs/grub.texi (Theme file format): New chapter.
2773
f0aff67c
SJ
27742010-09-05 Szymon Janc <szymon@janc.net.pl>
2775
2776 * grub-core/Makefile.core.def (xzio): New module.
2777 * grub-core/io/xzio.c: New file.
2778 * grub-core/lib/xzembed/xz.h: New file (from xembed).
2779 * grub-core/lib/xzembed/xz_config.h: Likewise.
2780 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
2781 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
2782 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
2783 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
2784 * grub-core/lib/xzembed/xz_private.h: Likewise.
2785 * grub-core/lib/xzembed/xz_stream.h: Likewise.
2786 * include/grub/file.h (grub_file_filter_id): New compression filter
2787 GRUB_FILE_FILTER_XZIO.
2788
82a85062
VS
27892010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2790
2791 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
2792 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
2793 size.
2794
3579415d
VS
27952010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
2798 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
2799
5124ae6d
VS
28002010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 Uncompressed checksum support.
2803
2804 * grub-core/commands/hashsum.c (options): Add option --uncompress.
2805 (check_list): New parameter uncompress.
2806 (grub_cmd_hashsum): Handle --uncompress.
2807
9aadb3d1
VS
28082010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2809
2810 Reintroduce testload.
2811
2812 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
2813 from here ...
2814 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
2815 (GRUB_MOD_INIT): New function.
2816 (GRUB_MOD_FINI): Likewise.
2817 * grub-core/Makefile.core.def (testload): New module.
2818
a17792c3
SJ
28192010-09-05 Szymon Janc <szymon@janc.net.pl>
2820
2821 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
2822 (uint8_t): New type.
2823 (uint16_t): Likewise.
2824 (uint32_t): Likewise.
2825 (uint64_t): Likewise.
2826
b81e40a3
SJ
28272010-09-05 Szymon Janc <szymon@janc.net.pl>
2828
2829 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
2830
fc2ef117
VS
28312010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
2832
2833 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
2834 Made static.
2835 (grub_gzfile_open): Removed. All users updated.
2836 (GRUB_MOD_INIT): New function.
2837 (GRUB_MOD_FINI): Likewise.
2838 * grub-core/kern/file.c (grub_file_filters_all): New variable.
2839 (grub_file_filters_enabled): Likewise.
2840 (grub_file_open): Handle filters.
2841 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
2842 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
2843 * include/grub/file.h (grub_file_filter_id_t): New type.
2844 (grub_file_filter_t): Likewise.
2845 (grub_file_filters_all): New extern variable.
2846 (grub_file_filters_enabled): Likewise.
2847 (grub_file_filter_register): New inline function.
2848 (grub_file_filter_unregister): Likewise.
2849 (grub_file_filter_disable): Likewise.
2850 (grub_file_filter_disable_compression): Likewise.
2851 * include/grub/gzio.h: Removed.
2852
35ee15e0
BC
28532010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2854
2855 Filename expansion support for wildcards in GRUB script.
2856
2857 * tests/grub_script_expansion.in: New test.
2858 * Makefile.util.def: Rule for new test.
2859
2860 * grub-core/commands/wildcard.c: New file, implements filename
2861 expansion support for GRUB script.
2862 * grub-core/Makefile.core.def: Rule update for regexp.mod.
2863 * grub-core/script/argv.c: Cosmetic changes.
2864 * grub-core/script/execute.c (grub_script_arglist_to_argv):
2865 Refactored to perform wildcard expansion on arguments.
2866 * include/grub/script_sh.h (grub_script_wildcard_translator): New
2867 struct.
2868
2869 * tests/util/grub-shell.in: Fix quoting for read input.
2870
5f0c4aca
BC
28712010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2872
2873 Support for updating environment variables with matched substrings
2874 of regexp.
2875
2876 * tests/grub_cmd_regexp.in: New test.
2877 * Makefile.util.def: Rule for new test.
2878
2879 * grub-core/commands/regexp.c: New option -s to update environment
2880 variables with regexp matches.
2881
3759a35f
SJ
28822010-09-04 Szymon Janc <szymon@janc.net.pl>
2883
2884 * include/grub/file.h (grub_file): New member not_easly_seekable.
2885 (grub_file_seekable): New inline function.
2886 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
2887 easily seekable.
2888 (grub_gzio_open): Set not_easly_seekable.
2889 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
2890 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
2891
ed8c6dec
BC
28922010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2893
2894 Support for options to appear multiple times on cmdline.
2895
2896 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
2897 * grub-core/commands/extcmd.c: Support for repeatable option.
2898 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
2899 repeatable option support.
2900
2901 Refactor menuentry into a regular command.
2902
2903 * grub-core/commands/menuentry.c: New file, menuentry command
2904 implementation.
2905 * grub-core/Makefile.core.def: Rule update for normal.mod.
2906 * grub-core/normal/main.c: Moved menuentry creation to
2907 grub-core/commands/menuentry.c.
2908 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
2909 (grub_menu_execute_entry_real): Removed.
2910 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
2911 function.
2912 (grub_script_execute_menuentry): Removed.
2913 * grub-core/script/parser.y (menuentry): Removed.
2914 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
2915 * grub-core/script/yylex.l (menuentry): Removed.
2916 * include/grub/menu.h (grub_menu_init): New prototype.
2917 (grub_menu_fini): New prototype.
2918 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
2919 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
2920 (grub_script_execute_sourcecode): New prototype.
2921
dacd0cf0
BC
29222010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2923
2924 "return" command for GRUB script functions.
2925
2926 * tests/grub_script_return.in: New test.
2927 * Makefile.util.def: Rules for new test.
2928
2929 * grub-core/script/execute.c (grub_script_return): New function.
2930 * grub-core/script/main.c: Register/unregister return commaond.
2931 * include/grub/script_sh.h (grub_script_return): New prototype.
2932
52e72f9d
BC
29332010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2934
2935 "setparams" command to update positional parameters.
2936
2937 * tests/grub_script_setparams.in: New test.
2938 * Makefile.util.def: Rules for new test.
2939
2940 * grub-core/script/argv.c (grub_script_argv_make): New function.
2941 * grub-core/script/execute.c (replace_scope): New function.
2942 (grub_script_setparams): New function.
2943 * grub-core/script/lexer.c: Remove unused variables.
2944 * grub-core/script/main.c: Register/unregister setparams command.
2945 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
2946 (grub_script_setparams): New prototype.
2947
25b60c91
BC
29482010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2949
2950 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
2951 grub_free order.
2952
37e7bf68
BC
29532010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
2954
2955 Support for passing block of commands as an argument to extcmds.
2956
2957 * Makefile.util.def: Rules for new test.
2958 * tests/grub_script_blockarg.in: New test.
2959 * grub-core/tests/test_blockarg.c: New file, block argument
2960 command used in the test.
2961
2962 * include/grub/extcmd.h (grub_extcmd_context): New struct.
2963 (grub_register_extcmd_prio): New function prototype.
2964 (grub_extcmd_dispatcher): New function prototype.
2965 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
2966 type.
2967 * include/grub/script_sh.h (struct grub_script): New members
2968 `children', `next_siblings' and `refcnt' for block arguments and
2969 reference counting.
2970 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
2971 (grub_script_arg): New member `script' for block argument.
2972 (grub_script_argv): New member `script' for block argument.
2973 (grub_parser_param): New member `scripts' for block argument.
2974 (grub_script_mem_free): New extern function prototype.
2975 (grub_script_ref): New function prototype.
2976 (grub_script_unref): New function prototype.
2977
2978 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
2979 extcmd form to support block arguments.
2980 * grub-core/script/argv.c: Block arguments support.
2981 * grub-core/script/execute.c: Likewise.
2982 * grub-core/script/lexer.c: Likewise.
2983 * grub-core/script/main.c: Likewise.
2984 * grub-core/script/script.c: Likewise.
2985 * grub-core/script/parser.y: Likewise. New `block' and `block0'
2986 non-terminals.
2987
2988 * grub-core/commands/acpi.c: Update extcmd implementations with
2989 grub_extcmd_context_t.
2990 * grub-core/commands/cat.c: Likewise.
2991 * grub-core/commands/echo.c: Likewise.
2992 * grub-core/commands/extcmd.c: Likewise.
2993 * grub-core/commands/hashsum.c: Likewise.
2994 * grub-core/commands/hdparm.c: Likewise.
2995 * grub-core/commands/help.c: Likewise.
2996 * grub-core/commands/hexdump.c: Likewise.
2997 * grub-core/commands/i386/cpuid.c: Likewise.
2998 * grub-core/commands/i386/pc/drivemap.c: Likewise.
2999 * grub-core/commands/i386/pc/halt.c: Likewise.
3000 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3001 * grub-core/commands/iorw.c: Likewise.
3002 * grub-core/commands/keystatus.c: Likewise.
3003 * grub-core/commands/loadenv.c: Likewise.
3004 * grub-core/commands/ls.c: Likewise.
3005 * grub-core/commands/lspci.c: Likewise.
3006 * grub-core/commands/memrw.c: Likewise.
3007 * grub-core/commands/probe.c: Likewise.
3008 * grub-core/commands/search_wrap.c: Likewise.
3009 * grub-core/commands/setpci.c: Likewise.
3010 * grub-core/commands/sleep.c: Likewise.
3011 * grub-core/disk/loopback.c: Likewise.
3012 * grub-core/hello/hello.c: Likewise.
3013 * grub-core/loader/i386/bsd.c: Likewise.
3014 * grub-core/loader/xnu.c: Likewise.
3015 * grub-core/term/gfxterm.c: Likewise.
3016 * grub-core/term/serial.c: Likewise.
3017 * grub-core/tests/lib/functional_test.c: Likewise.
3018
888d1500
BC
30192010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3020
3021 Multi-line quoted strings support.
3022
3023 * grub-core/script/lexer.c (append_newline): Removed.
3024 (grub_script_lexer_yywrap): Refactored.
3025 (grub_script_lexer_init): Refactored.
3026 * grub-core/script/yylex.l (yywrap): New function.
3027 (grub_lexer_resplit): New function.
3028 (grub_lexer_unput): New function.
3029 * include/grub/script_sh.h (grub_lexer_param): New members, unput
3030 and resplit.
3031 * tests/grub_script_echo1.in: Added few more testcases.
3032
dda060dd
VS
30332010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
3034
3035 * grub-core/kern/misc.c: Don't add abort alias in utils.
3036 Reported by: echoline.
3037
6556eba9
BC
30382010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
3039
3040 Add missing files into "make dist" tarball for other platforms.
3041
3042 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
3043 * conf/Makefile.common (dist_noinst_DATA): New variable.
3044 * conf/Makefile.extra-dist: Added missing make dist files.
3045 * grub-core/Makefile.core.def: Likewise.
3046
c8e7bf5f
VS
30472010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
3048
3049 Compress grub_prefix.
3050
3051 * grub-core/boot/i386/pc/lnxboot.S: Use
3052 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
3053 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
3054 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
3055 GRUB_MACHINE_PREFIX_END. All users updated.
3056 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
3057 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
3058 + 0x40.
3059 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
3060 * util/grub-mkimage.c (image_target_desc): Change data_end to
3061 prefix_end. All users updated.
3062
a7c00cdb
VS
30632010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
3064
3065 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
3066 value.
3067 (grub_openbsd_boot): Likewise.
3068 (grub_netbsd_boot): Likewise.
3069 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
3070 (grub_xnu_boot): Likewise.
3071
9f915872
VS
30722010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3073
3074 * configure.ac: Clean LIBS variable after tests.
3075
efa1bee7
CW
30762010-09-02 Colin Watson <cjwatson@ubuntu.com>
3077
3078 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
3079
61d720e5
VS
30802010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
3083 echo if libdevmapper will be used.
3084
ef8e0ec8
IT
30852010-09-02 Ian Turner <Ian.Turner@deshaw.com>
3086
3087 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
3088 constant for the same file.
3089
03e261d8
VS
30902010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3091
3092 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
3093
c2a4eba6
CW
30942010-09-02 Colin Watson <cjwatson@ubuntu.com>
3095
3096 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
3097 grub-core/*.pp.
3098
9056cbf3
CW
30992010-09-02 Colin Watson <cjwatson@ubuntu.com>
3100
3101 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
3102 required by the boot protocol.
3103
3104 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
3105 ebp and edi members.
3106 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
3107 state.ebp and state.edi.
3108 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
3109 %ebp and %edi according to grub_relocator32_ebp and
3110 grub_relocator32_edi respectively.
3111 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
3112 and state.edi.
3113
529cc99a
VS
31142010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3115
3116 Add i386-pc-pxe image target.
3117
3118 * util/grub-mkimage.c (image_target_desc): New enum value
3119 IMAGE_I386_PC_PXE.
3120 (image_targets): New target i386-pc-pxe.
3121 (generate_image): Handle i386-pc-pxe image.
3122
9a093920
VS
31232010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
3124
3125 Fix grub_pxe_scan.
3126
3127 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
3128 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
3129 All users updated.
3130 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
3131 (grub_pxe_pxenv): Correct type.
3132
f9cefc4e
CW
31332010-09-01 Colin Watson <cjwatson@ubuntu.com>
3134
3135 * NEWS: Document most of the important changes since 1.98.
3136
4066f57f
CW
31372010-09-01 Colin Watson <cjwatson@ubuntu.com>
3138
3139 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
3140 generated manual page) a little.
3141
da2891f9
CW
31422010-09-01 Colin Watson <cjwatson@ubuntu.com>
3143
3144 * docs/grub.texi: Add myself as an author.
3145
ad717fae
VS
31462010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
3147
3148 * Makefile.util.def (libgrub.a): Add missing sunpc.
3149 Reported by: Seth Goldberg.
3150
eefe8abd
VS
31512010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3152
3153 Interrupt wrapping and code simplifications.
3154
9494ef9a
VS
3155 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
3156 x86_noieee1275 which are functionaly equivalent in this case.
3157 (grub-install): Make source on each platform explicit. Enable on
3158 all noemu.
3159 * gentpl.py (x86_efi_pc): Removed group.
3160 (x86_noefi): Likewise.
3161 (i386_noefi): Likewise.
3162 (x86_noieee1275): Likewise.
3163 (i386_noieee1275): Likewise.
3164 (i386_noefi_noieee1275): Likewise.
3165 (i386_pc_qemu_coreboot): Likewise.
3166 (i386_coreboot_multiboot): Likewise.
3167 (i386_pc_coreboot_multiboot_qemu): Likewise.
3168 (x86_noefi_mips): Likewise.
3169 (noieee1275): Likewise.
3170 (ieee1275_mips): Likewise.
3171 (noemu_noieee1275): Likewise.
3172 (cmos): New group.
3173 (usb): Likewise.
3174 (videoinkernel): Likewise.
3175 (videomodules): Likewise.
eefe8abd 3176 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
9494ef9a
VS
3177 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
3178 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
3179 include/grub/loader.h, include/grub/msdos_partition.h,
3180 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
3181 include/grub/machine/console.h, include/grub/machine/vga.h,
3182 include/grub/machine/vbe.h, include/grub/machine/init.h,
3183 include/grub/machine/kernel.h, include/grub/cpu/time.h,
3184 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
eefe8abd 3185 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
9494ef9a
VS
3186 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
3187 * grub-core/Makefile.core.def (kernel): Explicit the source for
3188 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
3189 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
3190 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
3191 Use videoinkernel tag.
3192 (usb): Enable on all usb.
3193 (usbserial_common): Likewise.
3194 (usbserial_pl2303): Likewise.
3195 (usbserial_ftdi): Likewise.
3196 (uhci): Enable on all x86.
3197 (ohci): Enable on all pci.
3198 (cmostest): Enable on all CMOS.
3199 (acpi): Include commands/acpi.c on all platforms.
3200 (halt): Add relevant lib/*/halt.c.
3201 (hdparm): Enable on all pci.
3202 (lspci): Likewise.
3203 (usbtest): Enable on all usb.
3204 (ata): Enable on all pci.
3205 (ata_pthru): Likewise.
3206 (usbms): Enable on all usb.
3207 (usb_keyboard): Likewise.
3208 (font): Use tag videomodules.
3209 (bufio): Likewise.
3210 (datetime): Use tag cmos. Enable on all noemu.
3211 (mmap): Use tags common and x86.
3212 (gfxterm): Use tag videomodules.
3213 (bitmap): Likewise.
3214 (bitmap_scale): Likewise.
3215 (video_fb): Likewise.
3216 (video): Likewise.
3217 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
3218 adjust padding accordingly. All users updated.
3219 (grub_ohci_transaction): Fix bad format specification.
3220 (GRUB_MOD_INIT): Add asserts for struct size.
3221 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
3222 (grub_alloc_td): Likewise.
3223 (grub_free_queue): Likewise.
3224 (grub_uhci_transfer): Likewise.
3225 (grub_uhci_transaction): Fix bad format specification.
3226 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
3227 (grub_usb_bulk_readwrite): Likewise.
3228 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
3229 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
3230 Made static.
3231 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
3232 Made static.
3233 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
3234 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
3235 Transformed into C.
3236 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
3237 Moved from here ...
3238 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
3239 ... here. Transformed into C. Made static.
3240 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
3241 Moved from here ...
3242 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
3243 ... here. Transformed into C. Made static.
3244 * grub-core/kern/i386/pc/startup.S
3245 (grub_biosdisk_check_int13_extensions): Moved from here ...
3246 * grub-core/disk/i386/pc/biosdisk.c
3247 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
3248 Made static.
3249 * grub-core/kern/i386/pc/startup.S
3250 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
3251 * grub-core/disk/i386/pc/biosdisk.c
3252 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
3253 Transformed into C. Made static.
3254 * grub-core/kern/i386/pc/startup.S
3255 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
3256 * grub-core/disk/i386/pc/biosdisk.c
3257 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
3258 Transformed into C. Made static.
3259 * grub-core/kern/i386/pc/startup.S
3260 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
3261 * grub-core/disk/i386/pc/biosdisk.c
3262 (grub_biosdisk_get_diskinfo_standard): ... here.
3263 Transformed into C. Made static.
3264 * grub-core/kern/i386/pc/startup.S
3265 (grub_biosdisk_get_num_floppies): Moved from here ...
3266 * grub-core/disk/i386/pc/biosdisk.c
3267 (grub_biosdisk_get_num_floppies): ... here.
3268 Transformed into C. Made static.
3269 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
3270 New function.
3271 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
3272 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
3273 Transformed into C. Made static.
3274 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
3275 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
3276 Transformed into C. Made static.
3277 * grub-core/kern/i386/ieee1275/init.c: Removed.
3278 * grub-core/kern/i386/misc.S: Likewise.
3279 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
3280 Splitted from here ...
3281 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
3282 Transformed into C. Made static. All users updated.
3283 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
3284 Transformed into C. Made static. All users updated.
3285 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
3286 Moved from here...
3287 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
3288 Transformed into C. Made static. All users updated.
3289 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
3290 Moved from here...
3291 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
3292 Transformed into C. Made static. All users updated.
3293 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
3294 Removed (replaced by C version).
3295 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
3296 Moved from here...
3297 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
3298 Transformed into C. Made static.
3299 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
3300 Moved from here...
3301 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
3302 ... here. Transformed into C.
3303 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
3304 Moved from here...
3305 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
3306 ... here. Transformed into C.
3307 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
3308 Moved from here...
3309 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
3310 ... here. Transformed into C. Made static.
3311 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
3312 Moved from here...
3313 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
3314 ... here. Transformed into C.
21ed554b
VS
3315 * grub-core/kern/i386/pc/startup.S
3316 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
3317 * grub-core/video/i386/pc/vbe.c
3318 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
9494ef9a
VS
3319 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
3320 Moved from here...
3321 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
3322 ... here. Transformed into C.
3323 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
3324 Moved from here...
3325 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
3326 ... here. Transformed into C.
3327 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
3328 Moved from here...
3329 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
3330 ... here. Transformed into C.
3331 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
3332 Moved from here...
3333 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
3334 ... here. Transformed into C.
3335 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
3336 Moved from here...
3337 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
3338 ... here. Transformed into C. Made static.
3339 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
3340 Moved from here...
3341 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
3342 ... here. Transformed into C. Made static.
3343 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
3344 Moved from here...
3345 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
3346 ... here. Transformed into C. Made static.
3347 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
3348 pxe_rm_entry as third argument.
3349 (grub_bios_interrupt): New function.
3350 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
3351 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
3352 of calling grub_stop.
3353 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
3354 * grub-core/lib/efi/halt.c (grub_halt): ...here.
3355 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
3356 * grub-core/lib/emu/halt.c (grub_halt): ... here.
3357 * grub-core/lib/i386/halt.c: Moved from here ...
3358 * grub-core/lib/i386/halt.c: ... here.
3359 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
3360 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
3361 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
3362 grub_stop_floppy.
3363 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
3364 * include/grub/i386/coreboot/init.h: Removed.
3365 * include/grub/i386/multiboot/init.h: Likewise.
3366 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
3367 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
3368 * include/grub/i386/pc/int.h: New file.
3369 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
3370 (grub_pxe_scan): Removed.
3371 (grub_pxe_call): Update prototype.
3372 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
3373 prototypes.
3374 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
3375 * include/grub/i386/qemu/init.h: Removed.
3376 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
3377 noreturn.
3378 (grub_halt): Likewise.
3379 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
3380 (grub_reboot): Likewise.
3381 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
3382 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
21ed554b
VS
3383 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
3384
215dd471
RM
33852010-08-30 Robert Millan <rmh@gnu.org>
3386
3387 * NEWS: Document addition of ZFS support in `grub-install' and
3388 `grub-mkconfig'.
3389
ebd65b82
BC
33902010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
3391
3392 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
3393 dprintf output.
3394
11721d19
VS
33952010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3396
3397 Remove leftover embedding of font objects.
3398
3399 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3400 * util/grub-install.in (font): Removed.
3401 * util/grub-mkimage.c (generate_image): Remove font support. All users
3402 updated.
3403
37837d4e
VS
34042010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3405
3406 Remove leftover embedding of font objects.
3407
3408 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
3409 * util/grub-install.in (font): Removed.
3410 * util/grub-mkimage.c (generate_image): Remove font support. All users
3411 updated.
3412
b4c1aae0
VS
34132010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3414
3415 * docs/grub.texi (Network): Fix reference to pxe_blksize.
e176a764 3416 Reported by: Ian Turner
b4c1aae0 3417
8920a08d
VS
34182010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
3421 timeout to avoid indefinite boot stalling.
3422
f21db033
VS
34232010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3424
3425 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
3426 (grub_env_write_color_highlight): Likewise.
3427
9a9de209
VS
34282010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3429
3430 * grub-core/normal/term.c (print_more): Return to normal and not
3431 to standard state after printing "---MORE---".
3432
3dca01d7
VS
34332010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
3434
3435 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
3436 Mask out the bit 0x80 since it has other meaning that specifiing color.
3437
0b986c40
VS
34382010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3439
3440 New relocator. Allows for more kernel support and more straightforward
3441 loader writing.
3442
3443 * Makefile.am (BOOTTARGET): New variable.
3444 (QEMU32): Likewise.
3445 (linux.init.x86_64): New target.
3446 (linux.init.i386): Likewise.
3447 (multiboot.elf): Likewise.
3448 (kfreebsd.elf): Likewise.
3449 (kfreebsd.aout): Likewise.
3450 (pc-chainloader.elf): Likewise.
3451 (pc-chainloader.bin): Likewise.
3452 (ntldr.elf): Likewise.
3453 (ntldr.bin): Likewise.
3454 (multiboot2.elf): Likewise.
3455 (kfreebsd.init.x86_64): Likewise.
3456 (kfreebsd.init.i386): Likewise.
3457 (knetbsd.init.i386): Likewise.
3458 (kopenbsd.init.i386): Likewise.
3459 (knetbsd.init.x86_64): Likewise.
3460 (kopenbsd.init.x86_64): Likewise.
3461 (linux-initramfs.i386): Likewise.
3462 (linux-initramfs.x86_64): Likewise.
3463 (kfreebsd-mfsroot.i386.img): Likewise.
3464 (knetbsd.image.i386): Likewise.
3465 (kopenbsd.image.i386): Likewise.
3466 (kopenbsd.image.x86_64): Likewise.
3467 (knetbsd.miniroot-image.i386.img): Likewise.
3468 (kfreebsd-mfsroot.x86_64.img): Likewise.
3469 (knetbsd.image.x86_64): Likewise.
3470 (knetbsd.miniroot-image.x86_64.img): Likewise.
3471 (kfreebsd-mfsroot.i386.gz): Likewise.
3472 (bootcheck-kfreebsd-i386): Likewise.
3473 (kfreebsd-mfsroot.x86_64.gz): Likewise.
3474 (bootcheck-kfreebsd-x86_64): Likewise.
3475 (knetbsd.miniroot-image.i386.gz): Likewise.
3476 (bootcheck-knetbsd-i386): Likewise.
3477 (bootcheck-kopenbsd-i386): Likewise.
3478 (bootcheck-kopenbsd-x86_64): Likewise.
3479 (knetbsd.miniroot-image.x86_64.gz): Likewise.
3480 (bootcheck-knetbsd-x86_64): Likewise.
3481 (bootcheck-linux-i386): Likewise.
3482 (bootcheck-linux-x86_64): Likewise.
3483 (bootcheck-linux16-i386): Likewise.
3484 (bootcheck-linux16-x86_64): Likewise.
3485 (bootcheck-multiboot): Likewise.
3486 (bootcheck-multiboot2): Likewise.
3487 (bootcheck-kfreebsd-aout): Likewise.
3488 (bootcheck-pc-chainloader): Likewise.
3489 (bootcheck-ntldr): Likewise.
3490 (CLEANFILES): Add new targets.
3491 (BOOTCHECKS): New variable.
3492 (.PHONY): Add bootchecks.
3493 (SUCCESSFUL_BOOT_STRING): New variable.
3494 (BOOTCHECK_TIMEOUT): Likewise.
3495 (bootcheck): New target
3496 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
3497 * configure.ac: Correct efiemu excuse.
3498 * docs/grub.texi (Supported kernels): New chapter.
3499 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
3500 include/grub/mm_private.h. Simplify inclusion of
3501 include/grub/boot.h, include/grub/loader.h
3502 and include/grub/msdos_partition.h
3503 (KERNEL_HEADER_FILES) [i386_coreboot]:
3504 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
3505 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
3506 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
3507 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
3508 include/grub/machine/loader.h.
3509 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
3510 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
3511 extra_dist.
3512 (pci.mod): Enable on i386-multiboot.
3513 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
3514 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
3515 i386-qemu.
3516 (relocator.mod): Rewritten.
3517 (aout.mod): Enable on all x86.
3518 (bsd.mod): Likewise.
3519 (ntldr.mod): New module.
3520 (linux.mod): Use loader/i386/linux.c on all x86.
3521 (xnu.mod): Enable on all x86.
3522 (vga_text.mod): disable on EFI and QEMU.
3523 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
3524 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
3525 * grub-core/efiemu/loadcore.c: Likewise.
3526 * grub-core/efiemu/main.c: Likewise.
3527 (grub_efiemu_exit_boot_services): Removed.
3528 (grub_efiemu_finish_boot_services): Likewise.
3529 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
3530 function.
3531 * grub-core/efiemu/i386/nocfgtables.c: New file.
3532 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
3533 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
3534 (grub_efi_finish_boot_services): Moved from here ...
3535 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
3536 Fille finish memory map and related data.
3537 (finish_mmap_buf): New variable.
3538 (grub_efi_uintn_t finish_mmap_size): Likewise.
3539 (grub_efi_uintn_t finish_key): Likewise.
3540 (grub_efi_uintn_t finish_desc_size): Likewise.
3541 (grub_efi_uint32_t finish_desc_version): Likewise.
3542 (grub_efi_is_finished): Likewise.
3543 (grub_efi_get_memory_map): Use saved memory map if EFI is already
3544 finished.
3545 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
3546 (grub_elf64_phdr_iterate): Likewise.
3547 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
3548 (grub_os_area_size): Likewise.
3549 (grub_machine_init): Don't reserve os area.
3550 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
3551 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3552 * grub-core/kern/i386/loader.S: Removed.
3553 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
3554 (grub_os_area_size): Likewise.
3555 (grub_machine_init): Don't reserve os area.
3556 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
3557 Don't call grub_dl_unload_all.
3558 Don't include loader.S.
3559 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
3560 Declare the memory after _end as available.
3561 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
1935c077 3562 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
0b986c40 3563 (GRUB_MM_ALLOC_MAGIC): Moved from here...
1935c077
VS
3564 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
3565 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
3566 * include/grub/mm_private.h (grub_mm_header): ... here.
3567 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
3568 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
0b986c40
VS
3569 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
3570 (grub_mm_region): ..here. Removed addr. Added pre_size.
3571 All users updated.
3572 * grub-core/kern/mm.c (base): Renamed to ...
3573 (grub_mm_base): ... this. Made global.
3574 (grub_real_malloc): Alloc from end of region.
3575 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
3576 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
3577 * grub-core/kern/powerpc/cache_flush.S: ... here.
3578 * grub-core/lib/efi/relocator.c: New file.
3579 * grub-core/lib/i386/relocator.c: Rewritten.
3580 * grub-core/lib/i386/relocator16.S: New file.
3581 * grub-core/lib/i386/relocator32.S: Likewise.
3582 * grub-core/lib/i386/relocator64.S: Likewise.
3583 * grub-core/lib/i386/relocator_asm.S: Rewritten.
3584 * grub-core/lib/i386/relocator_common.S: New file.
3585 * grub-core/lib/ieee1275/relocator.c: Likewise.
3586 * grub-core/lib/mips/relocator.c: Rewritten.
3587 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
3588 stylistic adjustments.
3589 * grub-core/lib/powerpc/relocator.c: New file.
3590 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
3591 * grub-core/lib/relocator.c: Rewritten.
3592 * grub-core/lib/x86_64/relocator_asm.S: New file.
3593 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
3594 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
3595 (bsd_tag): New struct.
3596 (tags): New variable.
3597 (tags_last): Likewise.
3598 (netbsd_module): New struct.
3599 (netbsd_mods): New variable.
3600 (netbsd_mods_last): Likewise.
3601 (openbsd_opts): New parameter "serial".
3602 (OPENBSD_SERIAL_ARG): New definition.
3603 (netbsd_opts): New parameter "serial".
3604 (NETBSD_SERIAL_ARG): New definition.
3605 (grub_freebsd_add_meta): Reorganised into ...
3606 (grub_bsd_add_meta): ...this. All users updated.
3607 (grub_freebsd_add_mmap): Reorganised into ...
3608 (generate_e820_mmap): ...this...
3609 (grub_bsd_add_mmap): ...and this. All users updated.
3610 (grub_freebsd_list_modules): Use tags.
3611 (grub_netbsd_add_meta_module): New function.
3612 (grub_netbsd_list_modules): Likewise.
3613 (grub_freebsd_boot): Use relocator and finish EFI.
3614 (grub_openbsd_boot): Likewise.
3615 (grub_netbsd_setup_video): New function.
3616 (grub_netbsd_add_modules): Likewise.
3617 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
3618 and finish EFI.
3619 (grub_bsd_unload): Unload tags.
3620 (grub_bsd_load_aout): Use relocator.
3621 (grub_bsd_elf32_size_hook): New function.
3622 (grub_bsd_elf32_hook): Use relocator.
3623 (grub_bsd_elf64_size_hook): New function.
3624 (grub_bsd_elf64_hook): Use relocator.
3625 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
3626 (grub_bsd_load): Zero-out openbsd_ramdisk.
3627 (grub_bsd_load): Use relocator.
3628 (grub_cmd_openbsd): Support serial.
3629 (grub_cmd_netbsd): Support modules.
3630 (grub_cmd_freebsd_module): Use relocator.
3631 (grub_netbsd_module_load): New function.
3632 (grub_cmd_netbsd_module): Likewise.
3633 (grub_cmd_openbsd_ramdisk): Likewise.
3634 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
3635 kopenbsd_ramdisk.
3636 (GRUB_MOD_FINI): Unregister new commands.
3637 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
3638 (grub_freebsd_load_elfmodule_obj): Use relocator.
3639 (grub_freebsd_load_elfmodule): Likewise.
3640 (grub_freebsd_load_elf_meta): Likewise.
3641 (grub_netbsd_load_elf_meta): New function.
3642 (grub_openbsd_find_ramdisk): Likewise.
3643 * grub-core/loader/i386/bsd_helper.S: Removed.
3644 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
3645 * grub-core/loader/i386/bsd_trampoline.S: Removed.
3646 * grub-core/loader/i386/efi/linux.c: Likewise.
3647 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
3648 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
3649 (DEFAULT_VIDEO_MODE): Likewise.
3650 (real_mode_target): New variable.
3651 (prot_mode_target): Likewise.
3652 (initrd_mem_target): Likewise.
3653 (relocator): Likewise.
3654 (efi_mmap_buf): Likewise.
3655 (efi_mmap_size): Likewise.
3656 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
3657 (free_pages): Use relocator.
3658 (allocate_pages): Account for efi_mmap and use relocator. Return error.
3659 (grub_linux_setup_video): Return error.
3660 (grub_linux_trampoline_start): Removed.
3661 (grub_linux_trampoline_end): Likewise.
3662 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
3663 andd video parameters depending on firmware.
3664 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
3665 [GRUB_MACHINE_EFI]: Pass EFI parameters.
3666 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
3667 (grub_cmd_initrd): Use relocator.
3668 * grub-core/loader/i386/linux_trampoline.S: Removed.
3669 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
3670 (elf_sec_entsize): Likewise.
3671 (elf_sec_shstrndx): Likewise.
3672 (elf_sections): Likewise.
3673 (grub_multiboot_load): Use relocator.
3674 (grub_multiboot_get_mbi_size): Account for sections.
3675 (grub_multiboot_make_mbi): Use relocator and support sections.
3676 (grub_multiboot_add_elfsyms): New function.
3677 (grub_multiboot_free_mbi): Free sections.
3678 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
3679 (grub_linux_real_target): Likewise.
3680 (grub_linux_real_chunk): Likewise.
3681 (grub_linux16_prot_size): Likewise.
3682 (grub_linux16_boot): Use relocator.
3683 (grub_linux_unload): Unload relocator.
3684 (grub_cmd_linux): Use relocator.
3685 (grub_cmd_initrd): Likewise.
3686 * grub-core/loader/i386/pc/ntldr.c: New file.
3687 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
3688 Don't try to guess CPU frequency.
3689 (grub_xnu_set_video): Stretch bitmap.
3690 (grub_xnu_boot): Use relocator.
3691 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
3692 (grub_linux_unload): Free relocator.
3693 (grub_linux_load32): Use relocator.
3694 (grub_linux_load64): Likewise.
3695 (grub_cmd_initrd): Likewise.
3696 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
3697 (grub_multiboot_unload): Unload relocator.
3698 (grub_cmd_multiboot): Use relocator.
3699 (grub_cmd_module): Likewise.
3700 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
3701 Use relocator and support sections.
3702 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
3703 (elf_sec_entsize): Likewise.
3704 (elf_sec_shstrndx): Likewise.
3705 (elf_sections): Likewise.
3706 (grub_multiboot_load): Use relocator.
3707 (grub_multiboot_get_mbi_size): Account for sections.
3708 (grub_multiboot_make_mbi): Use relocator and support sections.
3709 (grub_multiboot_add_elfsyms): New function.
3710 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
3711 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
3712 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
3713 Prototype changed. All users updated.
3714 (grub_xnu_align_heap): Simplified.
3715 (grub_xnu_writetree_toheap): Likewise.
3716 (grub_xnu_unload): Unload relocator.
3717 (grub_cmd_xnu_kernel): Use relocator.
3718 (grub_cmd_xnu_kernel64): Likewise.
3719 (grub_xnu_register_memory): Simplified.
3720 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
1935c077
VS
3721 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
3722 EFI is finished.
3723 (grub_console_checkkey): Likewise.
3724 (grub_console_getkey): Likewise.
3725 (grub_console_getwh): Likewise.
3726 (grub_console_getxy): Likewise.
3727 (grub_console_gotoxy): Likewise.
3728 (grub_console_cls): Likewise.
3729 (grub_console_setcolorstate): Likewise.
3730 (grub_console_setcursor): Likewise.
3731 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
3732 * grub-core/tests/boot/kbsd.init-i386.S: New file.
3733 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
3734 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
3735 * grub-core/tests/boot/kernel-8086.S: Likewise.
3736 * grub-core/tests/boot/kernel-i386.S: Likewise.
3737 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
3738 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
3739 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
3740 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
3741 * grub-core/tests/boot/knetbsd.cfg: Likewise.
3742 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
3743 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
3744 * grub-core/tests/boot/linux.cfg: Likewise.
3745 * grub-core/tests/boot/linux.init-i386.S: Likewise.
3746 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
3747 * grub-core/tests/boot/linux16.cfg: Likewise.
3748 * grub-core/tests/boot/multiboot.cfg: Likewise.
3749 * grub-core/tests/boot/multiboot2.cfg: Likewise.
3750 * grub-core/tests/boot/ntldr.cfg: Likewise.
3751 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
3752 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
3753 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
3754 New definition.
3755 * include/grub/dl.h (grub_dl_unload_all): Removed.
3756 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
3757 (grub_efi_finish_boot_services): Change prototype.
3758 (grub_efi_is_finished): New variable.
3759 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
3760 Changed prototype.
3761 (grub_efiemu_finish_boot_services): Removed.
3762 (grub_machine_efiemu_init_tables): New prototype.
3763 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
3764 (grub_elf64_phdr_iterate): Likewise.
3765 * include/grub/i386/bsd.h: Include relocator.h.
3766 (freebsd_tag_header): New struct.
3767 (grub_openbsd_bios_mmap): Removed.
3768 (grub_unix_real_boot): Removed.
3769 (grub_freebsd_load_elfmodule32): Changed prototype.
3770 (grub_freebsd_load_elfmodule_obj64): Likewise.
3771 (grub_freebsd_load_elf_meta32): Likewise.
3772 (grub_freebsd_load_elf_meta64): Likewise.
3773 (grub_freebsd_add_meta): Removed.
3774 (grub_netbsd_load_elf_meta32): New prototype.
3775 (grub_netbsd_load_elf_meta64): Likewise.
3776 (grub_bsd_add_meta): Likewise.
3777 (grub_openbsd_ramdisk_descriptor): New struct.
3778 (grub_openbsd_find_ramdisk32): New prototype.
3779 (grub_openbsd_find_ramdisk64): Likewise.
3780 * include/grub/i386/coreboot/loader.h: Removed.
3781 * include/grub/i386/efi/loader.h: Likewise.
3782 * include/grub/i386/ieee1275/loader.h: Likewise.
3783 * include/grub/i386/linux.h (linux_kernel_header): Change void *
3784 to grub_uint32_t.
3785 * include/grub/i386/loader.h: Removed.
3786 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
3787 value.
3788 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
3789 (grub_phys_addr_t): New type.
3790 (grub_vtop): New inline function.
3791 (grub_map_memory): Likewise.
3792 (grub_unmap_memory): Likewise.
3793 * include/grub/i386/multiboot/loader.h: Removed.
3794 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
3795 (NETBSD_BTINFO_CONSOLE): New definition.
3796 (NETBSD_BTINFO_SYMTAB): Likewise.
3797 (NETBSD_BTINFO_MODULES): Likewise.
3798 (NETBSD_BTINFO_FRAMEBUF): Likewise.
3799 (grub_netbsd_bootinfo): New struct.
3800 (grub_netbsd_btinfo_common): Use explicit bitsize.
3801 (grub_netbsd_btinfo_mmap_entry): Removed.
3802 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
3803 (grub_netbsd_btinfo_bootdisk): New struct.
3804 (grub_netbsd_btinfo_symtab): Likewise.
3805 (grub_netbsd_btinfo_serial): Likewise.
3806 (grub_netbsd_btinfo_modules): Likewise.
3807 (grub_netbsd_btinfo_framebuf): Likewise.
3808 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
3809 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
3810 Likewise.
3811 (grub_openbsd_bootargs): Use explicit bitsize.
3812 (grub_openbsd_bootarg_console): New struct.
3813 (GRUB_OPENBSD_COM_MAJOR): New definition.
3814 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
3815 * include/grub/i386/pc/efiemu.h: Removed.
3816 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
3817 * include/grub/i386/qemu/loader.h: Removed.
3818 * include/grub/i386/relocator.h: Rewritten.
3819 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
3820 * include/grub/mips/memory.h: New file.
3821 * include/grub/mips/multiboot.h: Rewritten.
3822 * include/grub/mips/relocator.h: Rewritten.
3823 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
3824 (grub_vtop): New function.
3825 (grub_map_memory): Likewise.
3826 (grub_unmap_memory): Likewise.
3827 * include/grub/misc.h (ALIGN_DOWN): New definition.
3828 * include/grub/mm.h (grub_mm_check_real): New proto.
3829 (GRUB_MM_CHECK): New definition.
3830 * include/grub/mm_private.h: New file.
3831 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
3832 (grub_multiboot_get_mbi_size): Removed.
3833 (grub_multiboot_make_mbi): Change prottype.
3834 (grub_multiboot_set_accepts_video): New proto.
3835 (grub_multiboot_add_elfsyms): Likewise.
3836 (grub_multiboot_payload_eip): New variable.
3837 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
3838 New prototype.
3839 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
3840 New definition.
3841 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
3842 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
3843 * include/grub/powerpc/ieee1275/loader.h: Removed.
3844 * include/grub/powerpc/memory.h: New file.
3845 * include/grub/powerpc/relocator.h: Likewise.
3846 * include/grub/relocator.h: Likewise.
3847 * include/grub/relocator_private.h: Likewise.
3848 * include/grub/sparc64/ieee1275/loader.h: Removed.
3849 * include/grub/x86_64/memory.h: New file.
3850 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
3851 (grub_xnu_heap_malloc): Likewise.
3852 (grub_xnu_heap_real_start): Removed.
3853 (grub_xnu_heap_start): Likewise.
3854 (grub_xnu_relocator): New variable.
3855 (grub_xnu_heap_target_start): Likewise.
3856 * tests/util/grub-shell.in: Support non-pc.
3857 * util/grub-mkimage.c (image_targets): Fix multiboot target.
0b986c40 3858
5303b85d
VS
38592010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3860
3861 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
3862 on malloc error.
3863 (grub_bidi_logical_to_visual): Check that malloc succeded.
3864 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
3865 puts.
3866 (grub_xputs_normal): Likewise.
3867
d768d159
VS
38682010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3869
3870 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
3871 extra_dist.
3872
38732010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3874
3875 * grub-core/efiemu/runtime/efiemu.sh: Removed.
3876
5bf84df4
VS
38772010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3878
3879 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
3880
3626810e
VS
38812010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
3882
3883 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
3884 dprintf.
3885
a7363f53
BC
38862010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
3887
3888 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
3889
902f75f6
VS
38902010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 * grub-core/normal/term.c (print_more): Fix a memory leak.
3893 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
3894 (grub_xputs_normal): Likewise.
3895
3c707967
VS
38962010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3897
3898 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
3899 the begining of the string
3900
2053cc07
VS
39012010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3902
3903 * grub-core/script/script.c (grub_script_parse): Free parsed on
3904 failure.
3905
46422ebf
VS
39062010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3907
3908 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
3909 on failure.
3910
9e0fa3f6
VS
39112010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
3914 return.
3915
3393cf16
VS
39162010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3917
3918 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
3919 (scroll_up): Fix a memory leak.
3920
b17540cb
VS
39212010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
3922
3923 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
3924 errors.
3925
67140446
VS
39262010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
3927
3928 Handle USB pendrives exposed as floppies.
3929
3930 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
3931 floppy.
3932 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
3933 Check for partitions on all devices.
3934
e35e46fc
VS
39352010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
3936
3937 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
3938 (readkey): Likewise.
3939
d24c6190
BC
39402010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3941
3942 Multiple variable names support to "export" command.
3943
3944 * normal/context.c (grub_cmd_export): "export" command supports
3945 multiple variable names.
3946
04ddcc6a
ST
39472010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
3948
3949 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
3950 --target=drive output to Mach device name.
3951
0c8b61d8
BC
39522010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
3953
3954 New Automake based build system for GRUB.
3955
3956 * ABOUT-NLS: New file.
3957 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
3958 in Makefile.util.def file.
3959 * Makefile.util.def: New file. Autogen build definitions file for
3960 GRUB host utils.
3961 * conf/Makefile.common: New file. Common variables for GRUB host
3962 utils and target modules.
3963 * conf/Makefile.extra-dist: New file. Extra files for make dist.
3964 * docs/Makefile.am: New file. Automake file for docs.
3965 * gentpl.py: New file. Python script to generate Autogen
3966 template.
3967 * grub-core/Makefile.am: New file. GRUB target modules' rules
3968 that doesn't fit in Makefile.core.def file.
3969 * grub-core/Makefile.core.def: New file. Autogen build
3970 definitions file for GRUB target modules.
3971 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
3972 specific setjmp.S file.
3973 * po/Makefile.am: New file.
3974
3975 * .bzrignore: New ignores.
3976 * INSTALL: New requirements, without Ruby.
3977 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
3978 * autogen.sh: Updated to invoke autogen as necessary.
3979 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
3980 and defines for Automake conditionals.
3981 * geninit.sh: Refactoring.
3982
3983 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
3984 necessary.
3985 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
3986 New prototype.
3987
3988 * include/grub/test.h: Fix functional test modules' naming.
3989 * grub-core/tests/example_functional_test.c: Fix test module name.
3990
3991 * util/misc.c: Hosted versions' of grub functions for libgrub.a
3992 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
3993 * util/grub-editenv.c: Likewise.
3994 * util/grub-fstest.c: Likewise.
3995 * util/grub-mkdevicemap.c: Likewise.
3996 * util/grub-mkfont.c: Likewise.
3997 * util/grub-mkimage.c: Likewise.
3998 * util/grub-mkpasswd-pbkdf2.c: Likewise.
3999 * util/grub-probe.c: Likewise.
4000 * util/grub-script-check.c: Likewise.
4001 * util/i386/pc/grub-setup.c: Likewise.
4002 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4003
4004 * tests/util/grub-shell.in: Fix override directory path.
4005 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
4006 * util/import_gcry.py: Create Makefile.gcry.def file instead.
4007
4008 * util/lvm.c: Update #includes.
4009 * util/raid.c: Likewise.
4010 * util/resolve.c: Likewise.
4011 * grub-core/bus/emu/pci.c: Likewise.
4012 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
4013 * grub-core/lib/posix_wrap/string.h: Likewise.
4014 * grub-core/kern/emu/main.c: Likewise.
4015
4016 * grub-core/gensymlist.sh: New file. Script for generating kernel
4017 symbols file.
4018 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
4019
4020 * grub-core/gentrigtables.c: Fix unused variable warnings.
4021
4022 * Makefile.in: Removed.
4023 * conf/any-emu.rmk: Removed.
4024 * conf/common.rmk: Removed.
4025 * conf/i386-coreboot.rmk: Removed.
4026 * conf/i386-efi.rmk: Removed.
4027 * conf/i386-ieee1275.rmk: Removed.
4028 * conf/i386-multiboot.rmk: Removed.
4029 * conf/i386-pc.rmk: Removed.
4030 * conf/i386-qemu.rmk: Removed.
4031 * conf/i386.rmk: Removed.
4032 * conf/mips-yeeloong.rmk: Removed.
4033 * conf/mips.rmk: Removed.
4034 * conf/powerpc-ieee1275.rmk: Removed.
4035 * conf/sparc64-ieee1275.rmk: Removed.
4036 * conf/tests.rmk: Removed.
4037 * conf/x86-efi.rmk: Removed.
4038 * conf/x86_64-efi.rmk: Removed.
4039 * gendistlist.sh: Removed.
4040 * geninitheader.sh: Removed.
4041 * genkernsyms.sh.in: Removed.
4042 * genmk.rb: Removed.
4043 * gensymlist.sh.in: Removed.
4044 * mkinstalldirs: Removed.
4045 * boot: Moved ...
4046 * grub-core/boot: ... to here.
4047 * bus: Moved ...
4048 * grub-core/bus: ... to here.
4049 * commands: Moved ...
4050 * grub-core/commands: ... to here.
4051 * disk: Moved ...
4052 * grub-core/disk: ... to here.
4053 * efiemu: Moved ...
4054 * grub-core/efiemu: ... to here.
4055 * font: Moved ...
4056 * grub-core/font: ... to here.
4057 * fs: Moved ...
4058 * grub-core/fs: ... to here.
4059 * gencmdlist.sh: Moved ...
4060 * grub-core/gencmdlist.sh: ... to here.
4061 * genemuinit.sh: Moved ...
4062 * grub-core/genemuinit.sh: ... to here.
4063 * genemuinitheader.sh: Moved ...
4064 * grub-core/genemuinitheader.sh: ... to here.
4065 * genfslist.sh: Moved ...
4066 * grub-core/genfslist.sh: ... to here.
4067 * genhandlerlist.sh: Moved ...
4068 * grub-core/genhandlerlist.sh: ... to here.
4069 * genmoddep.awk: Moved ...
4070 * grub-core/genmoddep.awk: ... to here.
4071 * genmodsrc.sh: Moved ...
4072 * grub-core/genmodsrc.sh: ... to here.
4073 * genpartmaplist.sh: Moved ...
4074 * grub-core/genpartmaplist.sh: ... to here.
4075 * genparttoollist.sh: Moved ...
4076 * grub-core/genparttoollist.sh: ... to here.
4077 * genterminallist.sh: Moved ...
4078 * grub-core/genterminallist.sh: ... to here.
4079 * gentrigtables.c: Moved ...
4080 * grub-core/gentrigtables.c: ... to here.
4081 * genvideolist.sh: Moved ...
4082 * grub-core/genvideolist.sh: ... to here.
4083 * gettext: Moved ...
4084 * grub-core/gettext: ... to here.
4085 * gfxmenu: Moved ...
4086 * grub-core/gfxmenu: ... to here.
4087 * gnulib: Moved ...
4088 * grub-core/gnulib: ... to here.
4089 * hello: Moved ...
4090 * grub-core/hello: ... to here.
4091 * hook: Moved ...
4092 * grub-core/hook: ... to here.
4093 * io: Moved ...
4094 * grub-core/io: ... to here.
4095 * kern: Moved ...
4096 * grub-core/kern: ... to here.
4097 * lib: Moved ...
4098 * grub-core/lib: ... to here.
4099 * loader: Moved ...
4100 * grub-core/loader: ... to here.
4101 * mmap: Moved ...
4102 * grub-core/mmap: ... to here.
4103 * normal: Moved ...
4104 * grub-core/normal: ... to here.
4105 * partmap: Moved ...
4106 * grub-core/partmap: ... to here.
4107 * parttool: Moved ...
4108 * grub-core/parttool: ... to here.
4109 * script: Moved ...
4110 * grub-core/script: ... to here.
4111 * term: Moved ...
4112 * grub-core/term: ... to here
4113 * tests/example_functional_test.c: Moved ...
4114 * grub-core/tests/example_functional_test.c: ... to here.
4115 * tests/lib/functional_test.c: Moved ...
4116 * grub-core/tests/lib/functional_test.c: ... to here.
4117 * tests/lib/test.c: Moved ...
4118 * grub-core/tests/lib/test.c: ... to here.
4119 * video: Moved ...
4120 * grub-core/video: ... to here.
4121
645586e6
BC
41222010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
4123
4124 Replace --enable-grub-emu-modules with grub-emu-lite.
4125
4126 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
4127 cache.S.
4128
4129 * include/grub/emu/misc.h (grub_emu_init): New prototype.
4130 * kern/emu/full.c: New file. For grub-emu specific initialization.
4131 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
4132 * kern/emu/main.c: Call initialization function grub_emu_init.
4133
4134 * Makefile.in: Include grub-emu-lite in install.
4135 * commands/parttool.c: Use grub_no_autoload to differentiate
4136 between grub-emu and grub-emu-lite.
4137 * include/grub/misc.h: New variable grub_no_autoload.
4138
4139 * conf/any-emu.rmk: New rules for grub-emu-lite.
4140 * configure.ac: Remove --enable-grub-emu-modules.
4141 * genmk.rb: Cleanup unnecessary rules.
4142 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
4143
4144 * normal/main.c: Don't load list files on grub-emu-lite.
4145 * util/misc.c (grub_arch_sync_caches): Removed.
4146
f86a4030
CW
41472010-08-23 Colin Watson <cjwatson@ubuntu.com>
4148
4149 * kern/mips/startup.S (grub_prefix): Update comment to refer to
4150 grub-mkimage rather than grub-mkelfimage.
4151 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
4152
06776944
VS
41532010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
4154
4155 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
4156 a key after CapsLock or NumLock. It's just a qemu bug.
4157
df262419
VS
41582010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4159
4160 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
4161 needed by libusb wrapper.
4162
b40ea81b
ST
41632010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
4164
4165 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
4166
dee50575
VS
41672010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
4168
4169 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
4170 --nounzip is passed.
4171
fb1d7b79
VS
41722010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
4173
4174 USB hotunplugging and USB serial support.
4175
4176 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
4177 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
4178 (grub_uhci_transfer): Respect timeout and set *actual.
4179 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
4180 non-standard length.
4181 (grub_usb_device_attach): Autoload modules.
4182 (GRUB_MOD_INIT): Set grub_term_poll_usb.
4183 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
4184 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
4185 users updated.
4186 (grub_usb_add_hub): Fill nports and children.
4187 (attach_root_port): Receive hub instead of controller.
4188 All users updated. Fill hub->devices.
4189 (grub_usb_root_hub): Allocate hub->devices.
4190 (detach_device): New function.
4191 (poll_nonroot_hub): Fill children and detach devices.
4192 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
4193 actual arguments. All users updated.
4194 (grub_usb_bulk_read_extended): New function.
4195 * bus/usb/serial/common.c: New file.
4196 * bus/usb/serial/ftdi.c: Likewise.
4197 * bus/usb/serial/pl2303.c: Likewise.
4198 * commands/terminal.c (handle_command): Support wildcard.
4199 * commands/usbtest.c: Output "Unknown" instead of empty string.
4200 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
4201 (usbserial_common_mod_SOURCES): New variable.
4202 (usbserial_common_mod_CFLAGS): Likewise.
4203 (usbserial_common_mod_LDFLAGS): Likewise.
4204 (pkglib_MODULES): Add usbserial_pl2303.mod.
4205 (usbserial_pl2303_mod_SOURCES): New variable.
4206 (usbserial_pl2303_mod_CFLAGS): Likewise.
4207 (usbserial_pl2303_mod_LDFLAGS): Likewise.
4208 (pkglib_MODULES): Add usbserial_ftdi.mod.
4209 (usbserial_ftdi_mod_SOURCES): New variable.
4210 (usbserial_ftdi_mod_CFLAGS): Likewise.
4211 (usbserial_ftdi_mod_LDFLAGS): Likewise.
4212 (pkglib_MODULES): Add serial.mod.
4213 (serial_mod_SOURCES): New variable.
4214 (serial_mod_CFLAGS): Likewise.
4215 (serial_mod_LDFLAGS): Likewise.
4216 * conf/i386-pc.rmk: Likewise.
4217 * conf/mips-yeeloong.rmk: Likewise.
4218 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
4219 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
4220 * disk/usbms.c (first_available_slot): New variable.
4221 (grub_usbms_attach): Don't reuse free slots due to potential cache
4222 problems.
4223 * include/grub/serial.h: Moved to ..
4224 * include/grub/ns8250.h: ...this.
4225 * include/grub/serial.h: New file.
4226 * include/grub/term.h (grub_term_poll_usb): New variable.
4227 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
4228 readkey. All users updated.
4229 (grub_terminfo_output_state): Pass term to put.
4230 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
4231 (grub_usb_controller_dev): Add timeout and actual arguments to
4232 transfer. All users updated.
4233 (grub_usb_interface): New field detach_data.
4234 (grub_usb_device): New fields children and nports.
4235 (grub_usb_ep_type_t): New type.
4236 (grub_usb_get_ep_type): New function.
4237 (grub_usb_bulk_read_extended): Likewise.
4238 * include/grub/usbdesc.h (grub_usb_desc): New type.
4239 * include/grub/usbserial.h: New file.
4240 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
4241 * kern/term.c (grub_term_poll_usb): New variable.
4242 (grub_getkey): Call grub_term_poll_usb if set.
4243 (grub_checkkey): Likewise.
4244 (grub_getkeystatus): Likewise.
4245 * term/serial.c: Moved controller-specific parts to ...
4246 * term/ns8250.c: ... here.
4247 * term/serial.c: Mostly rewritten.
4248 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
4249 according to spec.
4250
21a313de
RM
42512010-08-20 Robert Millan <rmh@gnu.org>
4252
4253 Make kFreeBSD code more generic to support ext2fs as root, ufs as
4254 a separate module and maybe other interesting combinations.
4255
4256 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
4257 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
4258 (kfreebsd_entry): Add generic filesystem module load routine.
4259 Map GRUB `ext2' to kFreeBSD `ext2fs'.
4260
63c734a6
CW
42612010-08-20 Colin Watson <cjwatson@ubuntu.com>
4262
4263 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
4264 "numcenter" (I misunderstood the purpose of this entry).
4265 * docs/grub.texi (sendkey): Likewise.
4266
c4d16542
CW
42672010-08-20 Colin Watson <cjwatson@ubuntu.com>
4268
4269 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
4270 status flag options; simply omitting the option is equivalent and
4271 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
4272 (keysym_table): Rename "num5numlock" to "numlock".
4273 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
4274 can uniformly say that only the last of multiple `sendkey'
4275 invocations has any effect.
4276 * docs/grub.texi (sendkey): New section.
4277
93541d66
CW
42782010-08-19 Colin Watson <cjwatson@ubuntu.com>
4279
4280 * commands/i386/pc/sendkey.c (options): Fix three typos.
4281
b4ece5e1
VS
42822010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
4283
4284 Implement sendkey support.
4285
4286 * commands/i386/pc/sendkey.c: New file.
4287 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
4288 (sendkey_mod_SOURCES): New variable.
4289 (sendkey_mod_CFLAGS): Likewise.
4290 (sendkey_mod_LDFLAGS): Likewise.
4291
51f1f5af
CW
42922010-08-18 Colin Watson <cjwatson@ubuntu.com>
4293
4294 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
4295 fix warnings from Autoconf.
4296
9da94e05
CW
42972010-08-18 Colin Watson <cjwatson@ubuntu.com>
4298
4299 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
4300 to avoid false positives with some assemblers that output things
4301 like "someprefix_func" as part of their output.
4302
729a0f2e
RM
43032010-08-15 Robert Millan <rmh@gnu.org>
4304
4305 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
4306 errors.
4307 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
4308 grub_get_libzfs_handle() errors.
4309
f3710e08
RM
43102010-08-14 Robert Millan <rmh@gnu.org>
4311
4312 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
4313 filesystem is not ZFS.
4314
7a3c13de
BC
43152010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4316
4317 Fix for misspelled color names defaulting to black/black (bug
4318 reported by Doug Nazar)
4319
4320 * include/grub/normal.h (grub_parse_color_name_pair): Add return
4321 status to prototype.
4322 * normal/color.c (grub_parse_color_name_pair): Return failure
4323 status.
4324 (grub_env_write_color_normal): Ignore bad color names.
4325 (grub_env_write_color_highlight): Likewise.
4326 * normal/main.c (GRUB_MOD_INIT): Set default color names.
4327
ab8ba50d
BC
43282010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4329
4330 "shift" command support to GRUB script.
4331
4332 * include/grub/script_sh.h (grub_script_shift): New prototype.
4333 * script/execute.c (grub_script_shift): New function.
4334 * script/main.c (grub_script_init): Register shift command.
4335 (grub_script_fini): Unregister shift command.
4336 * util/grub-script-check.c (grub_script_cmd_shift): New function.
4337
4338 * tests/grub_script_shift.in: New testcase.
4339 * conf/tests.rmk: Rules for new testcase.
4340
4d61999e
BC
43412010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4342
4343 "continue" command support to GRUB script.
4344
4345 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
4346 (grub_script_break): Continue support.
4347 * script/main.c (grub_script_init): Register continue command.
4348 (grub_script_fini): Unregister continue command.
4349
4350 * tests/grub_script_continue.in: New testcase.
4351 * conf/tests.rmk: Rules for new testcase.
4352
4df51e00
BC
43532010-08-12 BVK Chaitanya <bvk@dbook>
4354
4355 "break" command support to GRUB script.
4356
4357 * conf/common.rmk: Rule updates to grub-script-check.
4358 * include/grub/misc.h (grub_min): New function.
4359 * include/grub/script_sh.h (grub_script_init): New prototype.
4360 (grub_script_fini): New prototype.
4361 (grub_script_break): New prototype.
4362 * script/main.c (grub_script_init): New function.
4363 (grub_script_fini): New function.
4364 * script/execute.c (grub_script_break): New function.
4365 * normal/main.c: Calls to grub_script_{init,fini}.
4366 * util/grub-script-check.c (grub_script_break): New function.
4367
4368 * tests/grub_script_break.in: New testcase.
4369 * conf/tests.rmk: Rules for new test case.
4370
f12c8420
BC
43712010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4372
4373 Function parameters support to GRUB script.
4374
4375 * script/yylex.l (VARIABLE): Regular expression update.
4376 * script/function.c (grub_script_function_call): Moved ...
4377 * script/execute.c (grub_script_function_call): ... to here.
4378 (grub_script_execute_arglist_to_argv): Removed.
4379 (grub_script_arglist_to_argv): New function.
4380 * script/argv.c: New file.
4381 (grub_script_argv_free): New function.
4382 (grub_script_argv_next): Likewise.
4383 (grub_script_argv_append): Likewise.
4384 (grub_script_argv_split_append): Likewise.
4385 * include/grub/script_sh.h (grub_script_argv): New struct.
4386 (grub_script_argv_free): New function.
4387 (grub_script_argv_next): Likewise.
4388 (grub_script_argv_append): Likewise.
4389 (grub_script_argv_split_append): Likewise.
4390
4391 * conf/common.rmk (normal.mod): New source script/argv.c.
4392
4393 * tests/grub_script_echo1.in: More tests.
4394 * tests/grub_script_vars1.in: Likewise.
4395 * tests/grub_script_functions.in: New test case.
4396 * conf/tests.rmk: Rules for new testcase.
4397
8022b748
BC
43982010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
4399
4400 Remove grub_script_cmdblock struct.
4401
4402 * include/grub/script_sh.h: Remove grub_script_cmdblock.
4403 * script/parser.y: Likewise.
4404 * script/execute.c: Rename cmdblock suffix to cmdlist.
4405 * script/script.c: Likewise.
4406 * util/grub-script-check.c: Likewise.
4407
79a6ba61
YB
44082010-08-11 Yves Blusseau <blusseau@zetam.org>
4409
4410 * .bzrignore: add grub-macho2img
4411
d04b9414
VS
44122010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4413
4414 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
4415
f947ab49
VS
44162010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
4417
4418 Remove the dump of sm712 initialisation sequence.
4419
4420 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
4421 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
4422 (GRUB_VGA_IO_MISC_WRITE): Likewise.
4423 (GRUB_VGA_CR_*): Added many registers.
4424 (GRUB_VGA_SR_*): Likewise.
4425 (GRUB_VGA_GR_*): Likewise.
4426 (grub_vga_write_arx): New function.
4427 (grub_video_hw_config): New struct.
4428 (grub_vga_set_geometry): New function.
4429 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
4430 GRUB_PCI_CLASS_SUBCLASS_VGA.
4431 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
4432 * video/sm712.c (grub_sm712_write_reg): New function
4433 (grub_sm712_read_reg): Likewise.
4434 (grub_sm712_sr_write): Likewise.
4435 (grub_sm712_gr_write): Likewise.
4436 (grub_sm712_cr_write): Likewise.
4437 (grub_sm712_write_arx): Likewise.
4438 (grub_sm712_cr_shadow_write): Likewise.
4439 (grub_sm712_write_dda_lookup): Likewise.
4440 (grub_video_sm712_setup): Initialise the video rather then
4441 blindly replay the dump.
4442 (main) [TEST]: Add a routine to be able to compile as standalone for
4443 tests.
4444 * video/sm712_init.c (sm712_init): Removed.
4445 (sm712_sr_seq1): New array.
4446 (sm712_sr_seq2): Likewise.
4447
f0206638
VS
44482010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4449
4450 * include/grub/vga.h: Add missing grub/pci.h include.
4451
2764da3b
YB
44522010-08-10 Yves Blusseau <blusseau@zetam.org>
4453
4454 * util/grub-macho2img.c (main): fix typo
4455
cf0c775e
VS
44562010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
4457
4458 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
4459 (grub_vga_gr_read): Likewise.
4460 (grub_vga_cr_write): Likewise.
4461 (grub_vga_cr_read): Likewise.
4462 (grub_vga_sr_write): Likewise.
4463 (grub_vga_sr_read): Likewise.
4464 (grub_vga_palette_read): Likewise.
4465 (grub_vga_palette_write): Likewise.
4466 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
4467 (grub_sm712_sr_read): New function.
4468 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
4469 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
4470
07f360e9
RM
44712010-08-09 Robert Millan <rmh@gnu.org>
4472
4473 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
4474 out unused variables on non-ZFS build.
4475
346c2072
RM
44762010-08-08 Robert Millan <rmh@gnu.org>
4477
4478 Fix path generation for sub-filesystems in ZFS.
4479
4480 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
4481 missing slash.
4482
71175420
RM
44832010-08-08 Robert Millan <rmh@gnu.org>
4484
4485 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
4486
0d8286f3
RM
44872010-08-08 Robert Millan <rmh@gnu.org>
4488
4489 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
4490 exist, issue a proper error message (rely on `ls' for translated
4491 strings).
4492
55dd2924
RM
44932010-08-08 Robert Millan <rmh@gnu.org>
4494
4495 Fix grub-probe invocation.
4496
4497 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
4498
d3dd9e80
RM
44992010-08-04 Robert Millan <rmh@gnu.org>
4500
4501 * configure.ac: Remove checks for getfsstat() and getmntany().
4502 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
4503 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
4504 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
4505 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
4506 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
4507 function.
4508 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
4509 via find_mount_point_from_dir() and getfsstat() / getmntany().
4510
0de22aa9
RM
45112010-08-04 Robert Millan <rmh@gnu.org>
4512
4513 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4514 (grub_find_zpool_from_mount_point): Merge into ...
4515 (grub_find_zpool_from_dir): ... this.
4516 * kern/emu/misc.c: Likewise.
4517
4518 * kern/emu/misc.c
4519 (grub_make_system_path_relative_to_its_root): Replace
4520 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
4521 with grub_find_zpool_from_dir().
4522 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
4523
62858144
RM
45242010-08-04 Robert Millan <rmh@gnu.org>
4525
4526 Support OpenSolaris in ZFS device resolution.
4527
4528 * configure.ac: Check for getmntany().
4529 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
4530 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
4531 support.
4532
9dd6fd50
RM
45332010-08-03 Robert Millan <rmh@gnu.org>
4534
4535 Fix grub-emu build.
4536
4537 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
4538 * include/grub/emu/misc.h: ... here.
4539
4540 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
4541 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
4542
4543 * util/misc.c: Remove `<grub/util/libzfs.h>'.
4544 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
4545 (grub_get_libzfs_handle): Move to ...
4546 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
4547 (grub_get_libzfs_handle): ... here.
4548
c9f7ff97
BC
45492010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
4550
4551 * script/execute.c (grub_script_execute_cmdline): Check for NULL
4552 as command name case.
4553
a870a783
CW
45542010-08-02 Colin Watson <cjwatson@ubuntu.com>
4555
4556 * disk/raid.c (insert_array): Select unique numbers for named arrays
4557 as well, for use as keys in the disk cache.
4558
c7db243b
RM
45592010-08-01 Robert Millan <rmh@gnu.org>
4560
4561 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
4562 kFreeBSD device name, except on ZFS where the filesystem label is
4563 used.
4564 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
4565 `/boot/zfs/zpool.cache'.
4566 Set mountfrom kernel variable using ${kfreebsd_device}.
4567
f7abdefb
RM
45682010-08-01 Robert Millan <rmh@gnu.org>
4569
4570 Make it even harder to use uninitialized `libzfs_handle' (and
4571 make the interface a bit simpler).
4572
4573 * include/grub/util/misc.h (grub_util_init_libzfs)
4574 (libzfs_handle): Remove.
4575 (grub_get_libzfs_handle): New prototype.
4576
4577 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
4578 attribute.
4579 (grub_util_init_libzfs): Remove.
4580 (grub_get_libzfs_handle): New function.
4581
4582 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
4583 grub_get_libzfs_handle() to obtain a libzfs handle instead of
4584 accessing `libzfs_handle' directly.
4585
c882acc0
RM
45862010-08-01 Robert Millan <rmh@gnu.org>
4587
4588 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4589 (grub_find_zpool_from_mount_point): New function prototypes.
4590
4591 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4592 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4593
4594 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4595 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4596 `static' attribute.
4597
4598 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4599 finding zpool from mount point into ...
4600 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4601
4602 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4603 requested path is part of a ZFS pool, use
4604 grub_find_zpool_from_mount_point() to detect its filesystem name,
4605 and generate a path with `/fsname@path' syntax.
4606
8bfe31d8
CW
46072010-08-01 Colin Watson <cjwatson@ubuntu.com>
4608
4609 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
4610 (void) rather than () so that this is a proper prototype.
4611
553df63d
VS
46122010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4613
4614 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
4615
8687cf07
VS
46162010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
4617
4618 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
4619 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
4620
ea9be8ea
CW
46212010-08-01 Colin Watson <cjwatson@ubuntu.com>
4622
4623 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
4624
6eea041a
CW
46252010-08-01 Colin Watson <cjwatson@ubuntu.com>
4626
4627 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
4628
2cfb45df
CW
46292010-08-01 Colin Watson <cjwatson@ubuntu.com>
4630
4631 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
4632 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
4633 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
4634 disable gfxpayload.
4635 (Shell-like scripting): Add real content.
4636 (Serial terminal): Suggest `terminal_input serial; terminal_output
4637 serial' rather than putting the two commands on separate lines,
4638 since console input will be inoperative after the first command.
4639 (menuentry): Document --class, --users, and --hotkey options.
4640 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
4641 Vladimir Serbinenko).
4642
7decd202
VS
46432010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
46442010-08-01 Colin Watson <cjwatson@ubuntu.com>
4645
4646 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
4647
c882acc0
RM
46482010-08-01 Robert Millan <rmh@gnu.org>
4649
4650 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
4651 (grub_find_zpool_from_mount_point): New function prototypes.
4652
4653 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
4654 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
4655
4656 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
4657 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
4658 `static' attribute.
4659
4660 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
4661 finding zpool from mount point into ...
4662 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
4663
4664 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
4665 requested path is part of a ZFS pool, use
4666 grub_find_zpool_from_mount_point() to detect its filesystem name,
4667 and generate a path with `/fsname@path' syntax.
4668
deb0caa3
RM
46692010-08-01 Robert Millan <rmh@gnu.org>
4670
4671 Prevent accidental use of uninitialized libzfs_handle.
4672
4673 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
4674 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
4675 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
4676
ce04ef47
CW
46772010-08-01 Colin Watson <cjwatson@ubuntu.com>
4678
4679 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
4680 util/grub.d/10_linux.in). Fixes Debian bug #591093.
4681
ebf53056
RM
46822010-08-01 Robert Millan <rmh@gnu.org>
4683
4684 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
8687cf07 4685
3710bb6b
RM
46862010-07-31 Robert Millan <rmh@gnu.org>
4687
4688 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
4689
8072efeb
RM
46902010-07-31 Robert Millan <rmh@gnu.org>
4691
4692 * kern/emu/misc.c: Add missing license header.
4693
3169f4c7
RM
46942010-07-31 Robert Millan <rmh@gnu.org>
4695
4696 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
4697
4698 * include/grub/util/libnvpair.h: Include `<config.h>'.
4699 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
4700 declaring libnvpair prototypes ourselves.
4701 * include/grub/util/libzfs.h: Include `<config.h>'.
4702 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
4703 declaring libzfs prototypes ourselves.
4704
4705 (libzfs_handle): Moved to ...
4706 * include/grub/util/misc.h (libzfs_handle): ... here.
4707 Include `<grub/util/libzfs.h>'.
4708
c9a00aee
RM
47092010-07-30 Robert Millan <rmh@gnu.org>
4710
4711 * include/grub/emu/misc.h: Add missing license header.
4712
a184f9c8
RM
47132010-07-30 Robert Millan <rmh@gnu.org>
4714
4715 Enable `grub-probe -t device' resolution on ZFS.
4716
4717 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
4718 * include/grub/util/libnvpair.h: New file.
4719 * include/grub/util/libzfs.h: New file.
4720
4721 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
4722 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
4723 `<grub/util/libnvpair.h>'.
4724 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
4725
4726 (find_mount_point_from_dir): New static function.
4727 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
4728 function.
4729 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
4730 find_root_device_from_libzfs() before ressorting to find_root_device().
4731
4732 * include/grub/util/misc.h (grub_util_init_libzfs): New function
4733 prototype.
4734 * util/misc.c: Include `<grub/util/libzfs.h>'.
4735 (grub_util_init_libzfs): New function.
4736 [HAVE_LIBZFS] (libzfs_handle): New global variable.
4737 [HAVE_LIBZFS] (fini_libzfs): New static function.
4738 (grub_util_init_libzfs): New function.
4739 * util/grub-probe.c (main): Call grub_util_init_libzfs().
4740
f7790cdd
RM
47412010-07-30 Robert Millan <rmh@gnu.org>
4742
4743 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
4744 (xmalloc, xrealloc, xstrdup, xasprintf): Add
4745 `warn_unused_result' attribute.
4746 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
4747 (grub_xasprintf, grub_xvasprintf): Likewise.
4748 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
4749
0806b63c
RM
47502010-07-29 Robert Millan <rmh@gnu.org>
4751
4752 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
4753 (probe): Handle `PRINT_FS_LABEL'.
4754 (main): Handle `-t fs_label'.
4755
9f841f5c
RM
47562010-07-29 Robert Millan <rmh@gnu.org>
4757
4758 * configure.ac: Remove grub-mkisofs checks.
4759
46371121
VS
47602010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
4761
4762 * util/ieee1275/grub-install.in: Don't use empty grub_device.
4763 Reported by: Lennart Sorensen.
4764
47652010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
4768 prior to terminal_input/terminal_output separation. It's been over 1.5
4769 years and those versions weren't widely deployed.
4770
a9600892
CW
47712010-07-22 Colin Watson <cjwatson@ubuntu.com>
4772
4773 * disk/raid.c (insert_array): Don't count named arrays when looking
4774 for unused array numbers.
697e053c 4775 Reported and tested by: Michael Guntsche.
a9600892 4776
c03507df
CW
47772010-07-20 Colin Watson <cjwatson@ubuntu.com>
4778
4779 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
4780 implementation of this so that grub-emu links again, with a note
4781 that this should support hotplugging in the future.
4782
b26f1c11
CW
47832010-07-20 Colin Watson <cjwatson@ubuntu.com>
4784
4785 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
4786
efc9d7f1
CW
47872010-07-20 Colin Watson <cjwatson@ubuntu.com>
4788
4789 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
4790 handle on failure.
4791 (grub_loopback_close): Remove empty function.
4792 (grub_loopback_dev): Remove close method.
4793
dd8ff5c9
CW
47942010-07-20 Colin Watson <cjwatson@ubuntu.com>
4795
4796 Disable EFI cursor when the EFI console becomes inactive.
4797
4798 * term/efi/console.c (grub_efi_console_init): New function.
4799 (grub_efi_console_fini): New function.
4800 (grub_console_term_output): Register init and fini methods.
4801
5e3bec67
VS
48022010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4803
4804 * tests/util/grub-shell-tester.in: Remove bashism and declare as
4805 sh script.
4806
afaec079
VS
48072010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4808
4809 * disk/loopback.c (grub_loopback): Replace filename with file.
4810 (delete_loopback): Handle new semantics.
4811 (grub_cmd_loopback): Likewise.
4812 (grub_loopback_iterate): Likewise.
4813 (grub_loopback_close): Likewise.
4814
a6a11f3c
VS
48152010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4816
4817 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
4818 with -p "".
4819 Reported by: Tito Keitel.
4820
64a638b0
VS
48212010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4822
4823 * docs/grub.texi (Naming convention): Document new naming convention.
4824
ab8ba957
VS
48252010-07-20 Vadim Solomin <vadic052@gmail.com>
48262010-07-20 Colin Watson <cjwatson@ubuntu.com>
4827
4828 Generate device.map in something closer to the old ordering.
4829
4830 * util/deviceiter.c (struct device): New declaration.
4831 (compare_file_names): Rename to ...
4832 (compare_devices): ... this. Sort by kernel name in preference to
4833 the stable by-id name, but keep the latter as a fallback comparison.
4834 Update header comment.
4835 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
4836 of `struct device' rather than of plain file names.
4837
a29d6a4b
TF
48382010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
4839
4840 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
4841 on i386.
4842
39d824e8
VS
48432010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
4844
4845 * commands/acpi.c (setup_common_tables): Use sizeof instead of
4846 hardcoding size.
4847 (setv1table): Likewise.
4848
f058276b
FZ
48492010-07-20 Colin Watson <cjwatson@ubuntu.com>
4850
4851 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
4852 removing the homehost if present.
4853 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
4854 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
4855 removing the homehost if present.
4856 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
4857 if possible.
4858 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
4859
4860 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
4861 parameter. Set its pointer target to 0.
4862 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
4863 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
4864 `data_offset' value from the superblock for 1.x metadata.
4865 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
4866 data on the device.
4867 (insert_array): Record the start sector of data on the device.
4868 (grub_raid_register): Pass start_sector parameters to
4869 grub_raid_list->detect and insert_array.
4870 * include/grub/raid.h (struct grub_raid_array): Add start_sector
4871 member.
4872 (struct grub_raid): Add start_sector parameter to `detect'.
4873
4874 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
4875 __attribute__ ((packed)), leaving a comment.
4876 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
4877 (grub_mdraid_detect_09): ... here and ...
4878 (grub_mdraid_detect_1x): ... here.
4879
48802010-07-20 Peter Henn <peter.henn@web.de>
4881
4882 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
4883 chunk size and disk size, which are already given as sector counts
4884 as distinct from the 0.90 units. Fetch the correct device number
4885 from the role table instead of using the table index.
4886
48872010-07-20 Felix Zielcke <fzielcke@z-51.de>
4888
4889 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
4890 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
4891 (WriteMostly1): New macro.
4892 Set array->name to NULL for metadata format 0.90. Add support for
4893 metadata 1.x. Fix some comments.
4894 * disk/raid.c (): Add support for name based RAID arrays. Fix a
4895 few comments.
4896 * util/getroot.c (grub_util_get_grub_dev): Add support for
4897 /dev/md/name style devices.
4898
4b761da9
CW
48992010-07-20 Colin Watson <cjwatson@ubuntu.com>
4900
4901 * .bzrignore: Ignore 20_linux_xen.
4902
5771289a
CW
49032010-07-17 Colin Watson <cjwatson@ubuntu.com>
4904
4905 * util/import_unicode.py: Remove unnecessary imports.
4906
5dab68df
AN
49072010-07-17 Aleš Nesrsta <starous@volny.cz>
4908
4909 Hotplugging and USB hub support.
4910
4911 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
4912 (grub_ohci): Likewise.
4913 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
4914 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
4915 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
4916 (GRUB_OHCI_CTRL_EDS): Likewise.
4917 (GRUB_OHCI_BULK_EDS): Likewise.
4918 (GRUB_OHCI_TDS): Likewise.
4919 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
4920 (grub_ohci_ed_phys2virt): New function.
4921 (grub_ohci_virt_to_phys): Likewise.
4922 (grub_ohci_td_phys2virt): Likewise.
4923 (grub_ohci_td_virt2phys): Likewise.
4924 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
4925 attachment.
4926 (grub_ohci_find_ed): New function.
4927 (grub_ohci_alloc_td): Likewise.
4928 (grub_ohci_free_td): Likewise.
4929 (grub_ohci_free_tds): Likewise.
4930 (grub_ohci_transfer): Use previously allocated memory.
4931 (grub_ohci_portstatus): Reset status changed bit.
4932 (grub_ohci_detect_dev): Supply status changed.
4933 (grub_ohci_fini_hw): Free memory.
4934 (grub_ohci_restore_hw): Reallocate memory.
4935 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
4936 Reset status change.
4937 (grub_uhci_detect_dev): Supply status_change.
4938 * bus/usb/usb.c (attach_hooks): New var.
4939 (grub_usb_device_attach): New function.
4940 (grub_usb_register_attach_hook_class): Likewise.
4941 (grub_usb_unregister_attach_hook_class): Likewise.
4942 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
4943 (grub_usb_add_hub): Reset connection changed bit.
4944 (attach_root_port): New function.
4945 (grub_usb_root_hub): Likewise.
4946 (poll_nonroot_hub): Likewise.
4947 (grub_usb_poll_devices): Likewise.
4948 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
4949 * disk/usbms.c (grub_usbms_open): Use device hooks.
4950 (grub_usbms_iterate) :Poll devices.
4951 (grub_usbms_finddevs): Split into ...
4952 (grub_usbms_attach): ... this ...
4953 (grub_usbms_attach): ... and this.
4954 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
4955 in detect_dev.
4956 (grub_usb_interface): New fields attached and detach_hook.
4957 (grub_usb_attach_hook_class): New type.
4958 (grub_usb_attach_desc): New struct.
4959 (grub_usb_register_attach_hook_class): New function.
4960 (grub_usb_unregister_attach_hook_class): Likewise.
4961 (grub_usb_poll_devices): Likewise.
4962 (grub_usb_device_attach): Likewise.
4963 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
4964 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
4965
3222efaf
VS
49662010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
4967
4968 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
4969 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
4970 delta determination style. Works with most NetBSD partitions too.
4971
139b714a
VS
49722010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
4973
4974 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
4975 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
4976
986aad56
VS
49772010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
4978
4979 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
4980
99be513c
AB
49812010-07-14 Anton Blanchard <anton@samba.org>
4982
4983 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
4984 ET_DYN files.
4985
18075f62
GS
49862010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4987
4988 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
4989
8d9a5b15
GS
49902010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
4991
4992 * kern/partition.c (grub_partition_check_containment): New function to
4993 check that a partition is physically contained in a parent. Since
4994 offsets are relative (and non-negative), this reduces to checking that
4995 the partition ends before its parent.
4996 (grub_partition_map_probe): Discard out-of-range sub-partitions.
4997 (grub_partition_iterate): Likewise.
4998 * include/grub/partition.h (grub_partition_map): Slightly more detailed
4999 comments.
5000 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
5001 partitions that start before their parent, and add debug printfs.
5002
19563c25
CW
50032010-07-13 Colin Watson <cjwatson@ubuntu.com>
5004
5005 * Makefile.in (.SUFFIX): Spell correctly, as ...
5006 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
5007 bare module name without `.mod', e.g. `test') tried to invoke a
5008 Modula-2 compiler.
5009
1a1f1e67
CW
50102010-07-13 Colin Watson <cjwatson@ubuntu.com>
5011
5012 * README: Point to the Info manual.
5013
811b0dca
JS
50142010-07-13 Jiro SEKIBA <jir@unicus.jp>
5015
5016 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
5017 2nd superblock position from partition size.
5018
e4f4eafc
CW
50192010-07-10 Colin Watson <cjwatson@ubuntu.com>
5020
5021 * Makefile.in (MAINTAINER_CLEANFILES): Remove
5022 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
5023 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
5024 outputs.
5025
4274c30f
VS
50262010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5027
5028 Restructure SCSI .id handling.
5029 Reported and tested by: Aleš Nesrsta.
5030
5031 * disk/ata.c (grub_atapi_close): Removed. All users updated.
5032 (grub_atapi_dev): Changed .name to "ata". New field .id.
5033 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
5034 (grub_usbms_dev): New field .id.
5035 * disk/scsi.c (grub_scsi_iterate): Generate name.
5036 (grub_scsi_open): Parse name.
5037 * include/grub/scsi.h (grub_make_scsi_id): New function.
5038 (grub_scsi_dev): Change iterate and open to number instead of naming
5039 busses. All users updated.
5040 (grub_scsi): Remove name. Add .bus.
5041
5bc24388
VS
50422010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5043
5044 * commands/help.c (grub_cmd_help): Fix a typo.
5045
249975ba
VS
50462010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5047
5048 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
5049 Reported and tested by: Colin Watson.
5050
3eaac1a1
VS
50512010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
5052
5053 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
5054 in this context.
5055
becce1b1
VS
50562010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
5057
5058 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
5059
f7bf0918
CW
50602010-07-07 Colin Watson <cjwatson@ubuntu.com>
5061
5062 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
5063 indentation.
5064
0b0f9620
CW
50652010-07-06 Colin Watson <cjwatson@ubuntu.com>
5066
5067 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
5068 and disk/raid6_recover.c.
5069 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
5070 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
5071
1e545469
CW
50722010-07-06 Colin Watson <cjwatson@ubuntu.com>
5073
5074 * term/gfxterm.c (repaint_schedulded): Rename to ...
5075 (repaint_scheduled): ... this. Update all callers.
5076 (repaint_was_schedulded): Rename to ...
5077 (repaint_was_scheduled): ... this. Update all callers.
5078
5357687a
CW
50792010-07-06 Colin Watson <cjwatson@ubuntu.com>
5080
5081 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
5082 which we expect to be handled by upper layers.
5083
29d7e783
BC
50842010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
5085
5086 * bus/usb/usbhub.c: #include time.h header.
5087
37582066
CW
50882010-07-06 Colin Watson <cjwatson@ubuntu.com>
5089
5090 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
5091 entry_name also for entries without stat blocks (e.g. ".."); fixes
5092 corruption of the first entry in a directory.
5093
c8c06953
CW
50942010-07-06 Colin Watson <cjwatson@ubuntu.com>
5095
5096 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
5097 after setting gfxterm as the active terminal. GRUB_BACKGROUND
5098 doesn't work otherwise.
5099
e75056f1
CW
51002010-07-05 Colin Watson <cjwatson@ubuntu.com>
5101
5102 * docs/grub.texi (Features): Update list of supported file systems.
5103 (GNU/Linux): Update for GRUB 2.
5104 (Serial terminal): Remove mention of --disable-serial, which was a
5105 GRUB Legacy configure option. Update instructions to use
5106 `terminal_input' and `terminal_output' rather than `terminal'.
5107 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
5108 configuration' and `Installing GRUB using grub-install'.
5109 (Menu entry editor): Update for GRUB 2.
5110 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
5111 Document new -a, -u, and -v options.
5112 (initrd): New section.
5113 (initrd16): New section.
5114 (linux): New section.
5115 (linux16): New section.
5116 (search): The `var' argument to `--set' is optional.
5117 (GRUB only offers a rescue shell): Go into a little more detail on
5118 drive ordering.
5119
5cf69151
CW
51202010-07-05 Colin Watson <cjwatson@ubuntu.com>
5121
5122 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
5123
e3f90044
CW
51242010-07-05 Colin Watson <cjwatson@ubuntu.com>
5125
5126 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
5127 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
5128
38d8f4f3
CW
51292010-07-05 Colin Watson <cjwatson@ubuntu.com>
5130
5131 * util/i386/pc/grub-setup.c (setup): Rename prefix to
5132 install_prefix, in line with install_dos_part and install_bsd_part.
5133 Add new prefix variable, which is copied to install_prefix after
5134 comparing core.img in memory with the one read from disk in the
5135 no-embedding case, and use that rather than overwriting
5136 install_prefix immediately when installing to a partition.
5137 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
5138 Bicakci.
5139
57ebd41e
GS
51402010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
5141
5142 * configure.ac: Avoid == in test command, it's not portable.
5143 * util/grub.d/30_os-prober.in: Likewise.
5144
cb7f64b2
CW
51452010-07-04 Colin Watson <cjwatson@ubuntu.com>
5146
5147 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
5148
6b654bb0
GS
51492010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
5150
5151 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
5152 multiple (top-level) partmaps.
5153
72a2026d
VS
51542010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5155
5156 * util/i386/efi/grub-install.in: Don't use empty grub_device.
fcda2a1f 5157 Reported by: Tino Keitel.
72a2026d 5158
df3eb88f
VS
51592010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5160
5161 Bidi and diacritics support.
5162
5163 * Makefile.in (widthspec.bin): New target.
5164 (widthspec.h): Likewise.
5165 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
5166 * autogen.sh: Generate unidata.c.
5167 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
5168 * commands/ls.c (grub_ls_list_devices): Likewise.
5169 (grub_ls_list_files): Likewise.
5170 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
5171 (grub_mini_cmd_lsmod): Likewise.
5172 * commands/read.c: Likewise.
5173 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
5174 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
5175 * lib/arg.c (grub_arg_show_help): Likewise.
5176 * lib/crypto.c (grub_password_get): Likewise.
5177 * normal/auth.c (grub_username_get): Likewise.
5178 * normal/misc.c (grub_normal_print_device_info): Likewise.
5179 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
5180 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
5181 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
5182 (normal/charset.c_DEPENDENCIES): New variable.
5183 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
5184 (pkglib_MODULES): Remove charset.mod.
5185 (charset_mod_SOURCES): Removed.
5186 (charset_mod_CFLAGS): Likewise.
5187 (charset_mod_LDFLAGS): Likewise.
5188 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
5189 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
5190 and term/tparm.c.
5191 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5192 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
5193 (kernel_img_HEADERS): Add terminfo.h.
5194 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
5195 Fill ->font. Reverse ascii bitmaps.
5196 (grub_font_get_xheight): New function.
5197 * font/font.c (grub_font_get_string_width): Moved from here ...
5198 * gfxmenu/font.c (grub_font_get_string_width): ... here.
5199 * font/font.c (grub_font_draw_string): Moved from here ...
5200 * gfxmenu/font.c (grub_font_draw_string): ... here.
5201 * font/font.c (grub_font_dup_glyph): New function.
5202 (grub_font_blit_glyph): Likewise.
5203 (grub_font_blit_glyph_mirror): Likewise.
5204 (blit_comb): Likewise.
5205 (grub_font_construct_dry_run): Likewise.
5206 (grub_font_get_constructed_device_width): Likewise.
5207 (grub_font_construct_glyph): Likewise.
5208 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
5209 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
5210 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
5211 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
5212 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
5213 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
5214 (grub_font_get_xheight): New proto.
5215 (grub_font_get_constructed_device_width): Likewise.
5216 (grub_font_construct_glyph): Likewise.
5217 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
5218 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
5219 * include/grub/font.h (grub_font_draw_string): Moved from here ...
5220 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
5221 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
5222 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
5223 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
5224 (grub_console_getcharwidth): Likewise.
5225 * include/grub/misc.h (grub_xputs): New proto.
5226 (grub_puts): Inlined.
5227 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
5228 (grub_normal_get_line_counter): Removed.
5229 (grub_install_newline_hook): Likewise.
5230 (grub_normal_get_char_counter): New proto.
5231 (grub_normal_reset_more): Likewise.
5232 (grub_xputs_normal): Likewise.
5233 * include/grub/powerpc/ieee1275/console.h: Removed.
5234 * include/grub/sparc64/ieee1275/console.h: Likewise.
5235 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
5236 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
5237 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
5238 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
5239 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
5240 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
5241 (grub_term_input): Pass reference to self. All users updated.
5242 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
5243 Pass reference to self. New fields normal_color, highlight_color and
5244 data. All users updated.
5245 (grub_putchar): Removed.
5246 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
5247 (grub_unicode_estimate_width): New function.
5248 (grub_term_getcharwidth): Add defaults.
5249 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
5250 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
5251 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
5252 (grub_cls): Remove EXPORT_FUNC.
5253 (grub_setcolorstate): Inline.
5254 (grub_newline_hook): Removed.
5255 * include/grub/terminfo.h: Rewritten. All users updated.
5256 * include/grub/unicode.h: New file.
5257 * include/grub/video.h (grub_video_signed_rect): New type.
5258 * kern/emu/console.c (grub_console_highlight_color): Removed.
5259 (grub_console_normal_color): Likewise.
5260 (grub_console_standard_color): Made static.
5261 (grub_ncurses_putchar): Remove mapping.
5262 (grub_ncurses_getcharwidth): Removed.
5263 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5264 (grub_ncurses_setcolor): Removed.
5265 (grub_ncurses_getcolor): Likewise.
5266 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
5267 (grub_console_putchar): ... this.
5268 (grub_console_putchar): Handle argument difference.
5269 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
5270 console_init_early and console_init_lately.
5271 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
5272 * kern/misc.c (grub_puts): Removed.
5273 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
5274 (grub_vsnprintf_real): Remove str = NULL support.
5275 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
5276 * normal/charset.c (grub_utf8_to_ucs4): ... here.
5277 * kern/term.c (grub_putcode): Renamed to ...
5278 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
5279 (grub_putchar): Removed.
5280 (grub_xputs_dumb): New function.
5281 (grub_xputs): New variable.
5282 * lib/charset.c: Move from here ...
5283 * normal/charset.c: ... to here.
5284 (grub_ucs4_to_utf8): New function.
5285 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
5286 (join_types): New variable.
5287 (unpack_join): New function.
5288 (bidi_types): New variable.
5289 (unpack_bidi): New function.
5290 (get_bidi_type): Likewise.
5291 (get_join_type): Likewise.
5292 (is_mirrored): Likewise.
5293 (grub_unicode_get_comb_type): Likewise.
5294 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
5295 (is_type_after): Likewise.
5296 (grub_unicode_aglomerate_comb): Likewise.
5297 (bidi_line_wrap): Likewise.
5298 (grub_bidi_line_logical_to_visual): Likewise.
5299 (grub_bidi_logical_to_visual): Likewise.
5300 (grub_unicode_mirror_code): Likewise.
5301 (grub_unicode_shape_code): Likewise.
5302 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
5303 Don't use grub_putchar.
5304 * normal/main.c (grub_normal_init_page): Use grub_putcode.
5305 (grub_normal_reader_init): Likewise.
5306 (grub_xputs_saved): New variable.
5307 (GRUB_MOD_INIT): Set grub_xputs.
5308 (GRUB_MOD_FINI): Restore grub_xputs.
5309 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
5310 (menu_init): Avoid printing gfxmenu error.
5311 (show_menu): Use grub_normal_get_char_counter.
5312 * normal/menu_entry.c (update_screen): Fix out-of-array.
5313 (complete): Avoid NULL dereferencing.
5314 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
5315 * normal/menu_text.c (print_spaces): Removed.
5316 (grub_print_ucs4): Likewise.
5317 (grub_print_message_indented): Use grub_print_ucs4.
5318 (print_message): Use grub_putcode.
5319 (print_entry): Hanlde diacritics.
5320 * normal/term.c (term_state): New type.
5321 (grub_more_lines): Removed.
5322 (term_states): New variable.
5323 (grub_normal_line_counter): Renamed to ..
5324 (grub_normal_char_counter): ...this. All users updated.
5325 (grub_normal_get_line_counter): Renamed to ...
5326 (grub_normal_get_char_counter): ... this.
5327 (grub_normal_reset_more): New function.
5328 (process_newline): Removed.
5329 (print_more): New function.
5330 (grub_install_newline_hook): Removed.
5331 (map_code): New function.
5332 (grub_puts_terminal): Use grub_print_ucs4.
5333 (putglyph): New function.
5334 (putcode_real): Likewise.
5335 (grub_putcode): Use putcode_real.
5336 (get_maxwidth): New function.
5337 (get_startwidth): Likewise.
5338 (print_ucs4_terminal): Likewise.
5339 (find_term_state): Likewise.
5340 (put_glyphs_terminal): Likewise.
5341 (print_backlog): Likewise.
5342 (print_ucs4_real): Likewise.
5343 (grub_print_ucs4): Likewise.
5344 (grub_xputs_normal): Likewise.
5345 * term/efi/console.c (grub_console_putchar): Output diacritics.
5346 (grub_console_getcharwidth): Removed.
5347 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5348 * term/gfxterm.c (clear_char): Free chars.
5349 (scroll_up): Avoid leaking memory.
5350 (grub_gfxterm_putchar): Support diacritics.
5351 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
5352 * term/i386/pc/console.c (grub_console_term_output): Declare as
5353 GRUB_TERM_CODE_TYPE_VGA.
5354 * term/i386/pc/vga.c (grub_vga_term): Declare as
5355 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
5356 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
5357 GRUB_TERM_CODE_TYPE_VGA.
5358 * term/i386/vga_common.c (map_char): Removed.
5359 (grub_console_putchar): Likewise.
5360 (grub_console_getcharwidth): Likewise.
5361 * term/ieee1275/ofconsole.c: Simplify using terminfo.
5362 (colors): Reordered to match terminfo.
5363 (grub_ofconsole_normal_color): Removed.
5364 (grub_ofconsole_writeesc): Likewise.
5365 (grub_ofconsole_highlight_color): Likewise.
5366 (grub_ofconsole_getcharwidth): Likewise.
5367 (grub_ofconsole_setcolorstate): Likewise.
5368 (grub_ofconsole_setcolor): Likewise.
5369 (grub_ofconsole_getcolor): Likewise.
5370 (grub_ofconsole_readkey): Renamed to ...
5371 (readkey): ... this. Remove escape sequence handling. Return -1 on no
5372 key.
5373 (grub_ofconsole_checkkey): Removed.
5374 (grub_ofconsole_getkey): Likewise.
5375 (grub_ofconsole_getxy): Likewise.
5376 (grub_ofconsole_gotoxy): Likewise.
5377 (grub_ofconsole_cls): Likewise.
5378 (grub_ofconsole_refresh): Likewise.
5379 (grub_ofconsole_terminfo_input): New struct.
5380 (grub_ofconsole_terminfo_output): Likewise.
5381 (grub_ofconsole_term_input): Use terminfo.
5382 (grub_ofconsole_term_output): Likewise.
5383 (grub_console_init): Split into ...
5384 (grub_console_init_early): ...this and ...
5385 (grub_console_init_lately): ...this. Use terminfo.
5386 (grub_ofconsole_putchar): Renamed to ...
5387 (put): ... this. Remove mapping.
5388 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
5389 * term/serial.c: Simplify using terminfo.
5390 (xpos): Removed.
5391 (ypos): Likewise.
5392 (keep_track): Likewise.
5393 (registered): Likewise.
5394 (input_buf): Likewise.
5395 (npending): Likewise.
5396 (serial_translate_key_sequence): Likewise.
5397 (fill_input_buf): Likewise.
5398 (grub_serial_checkkey): Likewise.
5399 (grub_serial_getkey): Likewise.
5400 (grub_serial_getxy): Likewise.
5401 (grub_serial_gotoxy): Likewise.
5402 (grub_serial_putchar): Likewise.
5403 (grub_serial_cls): Likewise.
5404 (grub_serial_setcolorstate): Likewise.
5405 (grub_serial_setcursor): Likewise.
5406 (serial_hw_init): Use serial_hw_fetch.
5407 (grub_serial_terminfo_input): New variable.
5408 (grub_serial_terminfo_output): Likewise.
5409 (grub_serial_term_input): Use terminfo.
5410 (grub_serial_term_output): Likewise.
5411 * term/terminfo.c (putstr): Use put.
5412 (grub_terminfo_all_free): New function
5413 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
5414 (grub_terminfo_output_register): New function.
5415 (grub_terminfo_output_unregister): Likewise.
5416 (grub_terminfo_getxy): Likewise.
5417 (grub_terminfo_readkey): Likewise.
5418 (grub_terminfo_checkkey): Likewise.
5419 (grub_terminfo_getkey): Likewise.
5420 (grub_terminfo_input_init): Likewise.
5421 (print_terminfo): Likewise.
5422 (grub_cmd_terminfo): Handle encoding.
5423 (grub_terminfo_gotoxy): Track position.
5424 (grub_terminfo_cls): Likewise.
5425 (grub_terminfo_putchar): Likewise.
5426 (grub_terminfo_setcolorstate): Handle colors
5427 (grub_terminfo_cursor_on): This ...
5428 (grub_terminfo_cursor_off): ... and this merged into ...
5429 (grub_terminfo_setcursor): ... this.
5430 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
5431 * unicode/ArabicShaping.txt: New file (imported from Unicode).
5432 * unicode/BidiMirroring.txt: Likewise.
5433 * unicode/UnicodeData.txt: Likewise.
5434 * unicode/COPYING: Likewise.
5435 * util/grub-editenv.c (grub_putchar): Removed.
5436 (grub_xputs_real): New function.
5437 (grub_xputs): New variable.
5438 * util/grub-fstest.c (grub_putchar): Removed.
5439 (grub_xputs_real): New function.
5440 (grub_xputs): New variable.
5441 * util/grub-mkdevicemap.c (grub_putchar): Removed.
5442 (grub_xputs_real): New function.
5443 (grub_xputs): New variable.
5444 * util/grub-probe.c (grub_putchar): Removed.
5445 (grub_xputs_real): New function.
5446 (grub_xputs): New variable.
5447 * util/grub-script-check.c (grub_putchar): Removed.
5448 (grub_xputs_real): New function.
5449 (grub_xputs): New variable.
5450 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
5451 (grub_xputs_real): New function.
5452 (grub_xputs): New variable.
5453 * util/import_unicode.py: New file.
5454 * util/grub-mkfont.c (ft_errmsgs): New array.
5455 (grub_glyph_info): Make bitmap a pointer.
5456 (file_formats): New type WIDTH_SPEC.
5457 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
5458 (options): Add width-spec.
5459 (help): Likewise.
5460 (add_char): Renamed to ...
5461 (add_glyph): ... this.
5462 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
5463 (glyph_replace): New type.
5464 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
5465 (add_char): New function.
5466 (add_subst): Likewise.
5467 (process_cursive): Likewise.
5468 (add_font): Handle GSUB.
5469 (write_font_width_spec): New function.
5470 (main): Sort glyphs.
5471 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
5472 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
5473 * kern/term.c (grub_cls): Moved from here...
5474 * normal/term.c (grub_cls): ... here.
5475
50f0bcda
CW
54762010-07-02 Colin Watson <cjwatson@ubuntu.com>
5477
5478 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
5479 suitable for using within the format argument of printf when
5480 converting grub_size_t.
5481 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
5482 "x" to convert grub_size_t arguments.
5483
40372103
VS
54842010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5485
5486 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
5487 too long captions.
5488 (list_get_minimal_size): Take selection box into account.
5489
942a10c7
VS
54902010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5491
5492 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
5493 NULL font.
5494
2bdb2892
CW
54952010-07-02 Colin Watson <cjwatson@ubuntu.com>
5496
5497 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
5498 devices when iterating over /dev/disk/by-id; they will be handled
5499 later if appropriate, which they aren't always (e.g. LVM).
5500
e03ed6c1
CW
55012010-07-02 Colin Watson <cjwatson@ubuntu.com>
5502
5503 * include/grub/misc.h (grub_reboot): Declare as noreturn.
5504 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
5505 fails.
5506 (grub_halt): Likewise.
5507 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
5508 reset-all fails.
5509 (grub_halt): Don't return, even if all of shut-down, power-off, and
5510 poweroff fail.
5511
47695765
CW
55122010-07-02 Colin Watson <cjwatson@ubuntu.com>
5513
5514 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
5515 arguments, not three.
5516
507736c8
CW
55172010-07-02 Colin Watson <cjwatson@ubuntu.com>
5518
5519 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
5520 * util/grub.d/10_linux.in: Use it to check for LVM, so that
5521 LVM-on-RAID is handled correctly.
5522
e3c8cd37
CW
55232010-07-02 Colin Watson <cjwatson@ubuntu.com>
5524
5525 * docs/grub.texi (Changes from GRUB Legacy): New section.
5526 (Future): Fix typo.
5527
8d4a2fec
CW
55282010-07-02 Colin Watson <cjwatson@ubuntu.com>
5529
5530 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
5531 grub.d/README accidentally ends up executable for one reason or
5532 another. Ignore it.
5533
1c4827be
VS
55342010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5535
5536 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
5537 (gpt_partition_map_iterate): Support non-512B sectors.
5538
d9a0c941
VS
55392010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5540
5541 * kern/efi/init.c (grub_efi_init): Disable watchdog.
5542 Tested by: Seth Goldberg.
5543
48f27e87
VS
55442010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
5545
5546 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
5547 Properly align mbi.
5548 Reported by: Seth Goldberg.
5549
b0c4f956
VS
55502010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5551
5552 * util/grub-mkrescue.in: Avoid module duplication.
5553
105a2e8c
SF
55542010-07-01 Sean Finney <seanius@seanius.net>
5555
5556 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
5557
5944958c
SF
55582010-07-01 Sean Finney <seanius@seanius.net>
5559
5560 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
5561
55622010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5563
5564 * disk/lvm.c (grub_lvm_checkvalue): New function.
5565 (grub_lvm_check_flag): Likewise.
5566
b79889ba
RM
55672010-07-01 Robert Millan <rmh@gnu.org>
5568
5569 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
5570 Support 'p' as partition separator on kernel of FreeBSD (used
5571 with GPT labels).
5572 (grub_util_biosdisk_get_grub_dev): Likewise.
5573
ec1d04f1
VS
55742010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
5575
5576 Yeeloong firmware port.
5577
5578 * boot/mips/yeeloong/fwstart.S: New file.
5579 * bus/cs5536.c (gpiodump): New const.
5580 (set_io_space): New function.
5581 (set_iod): Likewise.
5582 (set_p2d): Likewise.
5583 (grub_cs5536_init_geode): Likewise.
5584 * commands/mips/yeeloong/lsspd.c: New file.
5585 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
5586 (serial_mod_SOURCES): New variable.
5587 (serial_mod_CFLAGS): Likewise.
5588 (serial_mod_LDFLAGS): Likewise.
5589 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
5590 term/terminfo.c and term/tparm.c.
5591 (pkglib_IMAGES): Add fwstart.img.
5592 (fwstart_img_SOURCES): New variable.
5593 (fwstart_img_CFLAGS): Likewise.
5594 (fwstart_img_ASFLAGS): Likewise.
5595 (fwstart_img_LDFLAGS): Likewise.
5596 (fwstart_img_FORMAT): Likewise.
5597 (pkglib_MODULES): Add lsspd.mod.
5598 (lsspd_mod_SOURCES): New variable.
5599 (lsspd_mod_CFLAGS): Likewise.
5600 (lsspd_mod_LDFLAGS): Likewise.
5601 (pkglib_MODULES): Add halt.mod.
5602 (halt_mod_SOURCES): New variable.
5603 (halt_mod_CFLAGS): Likewise.
5604 (halt_mod_LDFLAGS): Likewise.
5605 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
5606 (serial_mod_SOURCES): Removed.
5607 (serial_mod_CFLAGS): Likewise.
5608 (serial_mod_LDFLAGS): Likewise.
5609 * disk/ata.c (check_device): New function.
5610 (grub_ata_device_initialize): Use check_device.
5611 (grub_ata_iterate): Recheck devices.
5612 (grub_ata_open): Likewise.
5613 (grub_atapi_iterate): Likewise.
5614 (grub_atapi_open): Likewise.
5615 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
5616 (GRUB_ATA_CH1_PORT1): Likewise.
5617 (GRUB_ATA_CH0_PORT2): Likewise.
5618 (GRUB_ATA_CH1_PORT2): Likewise.
5619 * include/grub/mips/loongson.h: New file.
5620 * include/grub/mips/yeeloong/ec.h: Likewise.
5621 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
5622 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
5623 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
5624 * include/grub/misc.h (grub_halt): Declare as noreturn.
5625 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
5626 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
5627 (UART_ENABLE_FIFO_TRIGGER1): New definition.
5628 (UART_ENABLE_DTRRTS): Likewise.
5629 (UART_ENABLE_MODEM): Removed.
5630 (UART_ENABLE_OUT2): New const.
5631 * include/grub/term.h (grub_term_register_input_active): New function.
5632 (grub_term_register_output_active): Likewise.
5633 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
5634 argument.
5635 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
5636 (init_pci): New function.
5637 (grub_machine_init): Execute platform init when firmware. Init serial.
5638 (grub_halt): Implement.
5639 (grub_exit): Likewise.
5640 (grub_reboot): Likewise.
5641 * term/serial.c (serial_hw_init): Update macros.
5642 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
5643 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
5644 (image_targets): New target mipsel-yeeloong-flash.
5645 (generate_image): Support IMAGE_YEELOONG_FLASH.
5646 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
5647 (grub_video_sm712_setup): Init card.
5648 (grub_video_sm712_set_palette): Removed.
5649 * video/sm712_init.c: New file.
5650
ff4a70d2
CW
56512010-06-30 Colin Watson <cjwatson@ubuntu.com>
5652
5653 * Makefile.in (install-local): Temporarily prepend $(builddir) to
5654 PATH when running help2man and then run it on the unadorned
5655 executable names, rather than passing $(builddir)/* paths to
5656 help2man. This avoids the build directory ending up in generated
5657 manual pages.
5658
1246efeb
CW
56592010-06-29 Colin Watson <cjwatson@ubuntu.com>
5660
5661 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
5662 to avoid accidents when debugging with 'sh -x'.
5663 * util/grub-mkrescue.in: Likewise.
5664 * util/grub.d/00_header.in: Likewise.
5665 * util/grub.d/10_hurd.in: Likewise.
5666 * util/grub.d/10_kfreebsd.in: Likewise.
5667 * util/grub.d/10_linux.in: Likewise.
5668 * util/grub.d/10_netbsd.in: Likewise.
5669 * util/grub.d/10_windows.in: Likewise.
5670 * util/grub.d/20_linux_xen.in: Likewise.
5671 * util/grub.d/30_os-prober.in: Likewise.
5672 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5673
1ba9b889
CW
56742010-06-29 Colin Watson <cjwatson@ubuntu.com>
5675
5676 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
5677 last character in the buffer.
5678 Reported by: Vladimir Serbinenko.
5679
dccaf99d
RM
56802010-06-29 Robert Millan <rmh@gnu.org>
5681
5682 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
5683 (Command-line and menu entry commands): Document `badram' command.
5684
d500ed12
RM
56852010-06-28 Robert Millan <rmh@gnu.org>
5686
5687 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
5688 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
5689 command using ${GRUB_BADRAM} as parameter.
5690
20bc84a6
CW
56912010-06-28 Colin Watson <cjwatson@ubuntu.com>
5692
5693 * docs/grub.texi (Device map): New section.
5694 (Themes): New section (stub).
5695 * Makefile.in (docs/grub.info): The info documentation now builds
5696 without errors. Make sure it stays that way.
5697
4045dee1
VS
56982010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5699
5700 Use normal parser for menu entries.
5701 Reported by: Thomas Frauendorfer
5702
5703 * include/grub/parser.h (grub_parser_execute): Don't export.
5704 * normal/menu.c (grub_menu_execute_entry_real): New function.
5705 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
5706
bca58c7b
CW
57072010-06-28 Colin Watson <cjwatson@ubuntu.com>
5708
5709 * docs/grub.texi (Embedded configuration): New section (replacing
5710 old "Preset Menu" stub).
5711 (Images): New section.
5712 (configfile): Note that any menu entries defined in `file' are shown
5713 immediately.
5714
dec53e63
JT
57152010-06-28 Josh Triplett <josh@joshtriplett.org>
5716
5717 * mmap/i386/pc/mmap_helper.S: Set CF on return.
5718
c06e40f7
CW
57192010-06-28 Colin Watson <cjwatson@ubuntu.com>
5720
5721 * util/grub-install.in: Add --debug-image= option.
5722
cb88052b
CW
57232010-06-28 Colin Watson <cjwatson@ubuntu.com>
5724
5725 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
5726 possible on Linux.
5727
5728 * util/deviceiter.c (check_device): Rename to ...
5729 (check_device_readable_unique): ... this. Update all callers.
5730 Maintain and check a list of which devices (by canonicalized name)
5731 have already been seen.
5732 (clear_seen_devices): New function.
5733 (compare_file_names) [__linux__]: New function.
5734 (grub_util_iterate_devices): Clear the list of seen devices on exit
5735 and (just in case) on entry.
5736 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
5737 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
5738 seen-devices list, superseded by general code in check_device.
5739
bbe34652
CW
57402010-06-28 Colin Watson <cjwatson@ubuntu.com>
5741
5742 * commands/cat.c (options): New variable.
5743 (grub_cmd_cat): Parse options. If the --dos option is given, print
5744 DOS-style "\r\n" line endings as simple newlines (Debian bug
5745 #586358).
5746 (GRUB_MOD_INIT): Use extcmd.
5747 (GRUB_MOD_FINI): Likewise.
5748 * docs/grub.texi (cat): Document --dos.
5749
412e09f3
VS
57502010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
5751
5752 XEN with Linux grub-mkconfig support.
5753
5754 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
5755 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
5756 GRUB_CMDLINE_XEN_DEFAULT.
5757 * util/grub.d/20_linux_xen.in: New file.
5758
53f3ef38 57592010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
994b0c27
VS
5760
5761 Initialise VGA video on qemu ourselves.
5762
5763 * boot/i386/qemu/boot.S: Don't call 0xc000.
5764 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
5765 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
5766 (kernel_img_HEADERS): Add pci.h.
5767 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
5768 * configure.ac: Force unifont on qemu and yeeloong.
5769 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
5770 (grub_vga_palette_write): Use correct register.
5771 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
5772 Call grub_qemu_init_cirrus.
5773 * kern/i386/qemu/init.c: New file.
5774 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
5775
5776 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
5777
c75be4fb
PR
57782010-06-26 Pavel Roskin <proski@gnu.org>
5779
5780 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
5781 13.
5782
d8034603
CW
57832010-06-26 Colin Watson <cjwatson@ubuntu.com>
5784
5785 * docs/grub.texi (Simple configuration): Explain that
5786 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
5787 set to `true' to disable their respective recovery entries, not
5788 merely set.
5789
3fa06487
CW
57902010-06-26 Colin Watson <cjwatson@ubuntu.com>
5791
5792 Make the `source' command slightly faster.
5793
5794 * normal/main.c (grub_normal_execute): Don't re-read list files when
5795 nested.
5796
e9b29642
CW
57972010-06-23 Colin Watson <cjwatson@ubuntu.com>
5798
5799 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
5800 field position and mask size to red fields from mode_info, not
5801 green.
5802 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
5803 Remove redundant tag->common.framebuffer_type assignment.
5804 Reported by: Seth Goldberg.
5805
e726542f
CW
58062010-06-23 Colin Watson <cjwatson@ubuntu.com>
5807
5808 Sync up other versions of the Linux loader with Robert Millan's
5809 change of 2010-01-09, "Make loader output a bit more user-friendly".
5810
5811 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
5812 grub_dprintf().
5813 (grub_cmd_linux): Likewise.
5814 (grub_cmd_initrd): Likewise.
5815 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
5816 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
5817
d6e98a17
CW
58182010-06-21 Colin Watson <cjwatson@ubuntu.com>
5819
5820 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
5821 larger than MEMORY_MAP_SIZE.
5822
14d3f08e
BC
58232010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
5824
5825 Fix parallel build.
5826
5827 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
5828 dependency.
5829 * script/parser.y: #include grub_script.tab.h header.
5830
4f9613a3
VS
58312010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5832
5833 Support >3GiB and <16MiB RAM in i386-qemu.
5834
5835 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
5836 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
5837 (grub_lower_mem): Removed.
5838 (grub_upper_mem): Likewise.
5839 (mem_size): Made static.
5840 (above_4g): New variable.
5841 (grub_machine_mmap_init): Detect small mem_size and above_4g.
5842 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
5843 support.
5844
05e51879
VS
58452010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5846
5847 Cirrus 5446 and Bochs video cards support.
5848
5849 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
5850 video_bochs.mod
5851 (video_cirrus_mod_SOURCES): New variable.
5852 (video_cirrus_mod_CFLAGS): Likewise.
5853 (video_cirrus_mod_LDFLAGS): Likewise.
5854 (video_bochs_mod_SOURCES): Likewise.
5855 (video_bochs_mod_CFLAGS): Likewise.
5856 (video_bochs_mod_LDFLAGS): Likewise.
5857 * include/grub/vga.h: New file.
5858 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
5859 (grub_video_fb_set_page_t): New type.
5860 (grub_video_fb_setup): New prototype.
5861 (grub_video_fb_swap_buffers): Likewise.
5862 (grub_video_fb_get_info_and_fini): Likewise.
5863 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
5864 (CRTC_DATA_PORT): Likewise.
5865 (CRTC_CURSOR): Likewise.
5866 (CRTC_CURSOR_ADDR_HIGH): Likewise.
5867 (CRTC_CURSOR_ADDR_LOW): Likewise.
5868 (CRTC_CURSOR_DISABLE): Likewise.
5869 (update_cursor): Use grub_vga_cr_write.
5870 (grub_vga_text_setcursor): Likewise.
5871 * video/bochs.c: New file.
5872 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
5873 (palette): Likewise.
5874 (palette_size): Likewise.
5875 (framebuffer): New variable.
5876 (grub_video_fb_init): Use 'framebuffer'.
5877 (grub_video_fb_fini): Likewise.
5878 (grub_video_fb_get_info): Likewise.
5879 (grub_video_fb_get_palette): Likewise.
5880 (grub_video_fb_set_palette): Likewise.
5881 (grub_video_fb_set_viewport): Likewise.
5882 (grub_video_fb_get_viewport): Likewise.
5883 (grub_video_fb_map_color): Likewise.
5884 (grub_video_fb_map_rgb): Likewise.
5885 (grub_video_fb_map_rgba): Likewise.
5886 (grub_video_fb_unmap_color): Likewise.
5887 (grub_video_fb_unmap_color_int): Likewise.
5888 (grub_video_fb_fill_rect): Likewise.
5889 (grub_video_fb_blit_bitmap): Likewise.
5890 (grub_video_fb_blit_render_target): Likewise.
5891 (grub_video_fb_scroll): Likewise.
5892 (grub_video_fb_create_render_target): Likewise.
5893 (grub_video_fb_doublebuf_blit_init): Likewise.
5894 (grub_video_fb_set_active_render_target): Handle doublebuffering.
5895 (doublebuf_pageflipping_update_screen): New function.
5896 (doublebuf_pageflipping_init): Likewise.
5897 (grub_video_fb_setup): Likewise.
5898 (grub_video_fb_swap_buffers): Likewise.
5899 (grub_video_fb_get_info_and_fini): Likewise.
5900 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
5901 All users updated.
5902 (doublebuf_pageflipping_commit): Restructured into ...
5903 (doublebuf_pageflipping_set_page): ... this.
5904 (doublebuf_pageflipping_update_screen): Removed.
5905 (doublebuf_pageflipping_init): Likewise.
5906 (double_buffering_init): Likewise.
5907 (grub_video_vbe_setup): Use grub_video_fb_setup.
5908 (grub_video_vbe_swap_buffers): Removed.
5909 (grub_video_vbe_set_active_render_target): Likewise.
5910 (grub_video_vbe_get_active_render_target): Likewise.
5911 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
5912 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
5913 grub_video_fb_set_active_render_target and
5914 grub_video_fb_get_active_render_target.
5915 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
5916 (SEQUENCER_DATA_PORT): Likewise.
5917 (MAP_MASK_REGISTER): Likewise.
5918 (CRTC_ADDR_PORT): Likewise.
5919 (CRTC_DATA_PORT): Likewise.
5920 (START_ADDR_HIGH_REGISTER): Likewise.
5921 (START_ADDR_LOW_REGISTER): Likewise.
5922 (GRAPHICS_ADDR_PORT): Likewise.
5923 (GRAPHICS_DATA_PORT): Likewise.
5924 (READ_MAP_REGISTER): Likewise.
5925 (INPUT_STATUS1_REGISTER): Likewise.
5926 (INPUT_STATUS1_VERTR_BIT): Likewise.
5927 (get_map_mask): Use grub_vga_sr_read.
5928 (set_map_mask): Use grub_vga_sr_write.
5929 (set_read_map): Use grub_vga_gr_write.
5930 (set_start_address): Use grub_vga_cr_write.
5931 * video/sm712.c (framebuffer): Remove leftover fields.
5932
4321c64a
CW
59332010-06-20 Colin Watson <cjwatson@ubuntu.com>
5934
5935 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
5936 setting GRUB_VIDEO_BACKEND. Make it available as a user override
5937 instead. Replace the gfxterm backend check with a check that
5938 ${GRUB_PREFIX}/video.lst is non-empty.
5939 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
5940 again.
5941 (load_video): New generated function. Call it before loading
5942 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
5943 * util/grub.d/10_linux.in (linux_entry): Call load_video.
5944 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
5945 * docs/grub.texi (Simple configuration): Document
5946 GRUB_VIDEO_BACKEND.
5947
59482010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
5949
5950 Use video functions in linux and xnu loaders.
5951
5952 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
5953 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
5954 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
5955 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
5956 loader/i386/pc/linux.c.
5957 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
5958 (find_line_len): Removed.
5959 (find_framebuf): Likewise.
5960 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
5961 * loader/i386/efi/xnu.c: Removed.
5962 * loader/i386/pc/xnu.c: Moved from here...
5963 * loader/i386/xnu.c: ...here.
5964
5965 Enable priorities in video drivers.
5966
5967 * include/grub/video.h (grub_video_adapter_prio_t): New type.
5968 (grub_video_adapter): New field prio.
5969 (grub_video_register): Respect prio when inserting.
5970 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
5971 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
5972 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
5973 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
5974 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
5975 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
5976 * video/sm712.c (grub_video_sm712_adapter): Likewise.
5977
5978 Fix SDL driver ID.
5979
5980 * include/grub/video.h (grub_video_driver_id_t): New value
5981 GRUB_VIDEO_DRIVER_SDL.
5982 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
5983
7d24e434
CW
59842010-06-17 Colin Watson <cjwatson@ubuntu.com>
5985
5986 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
5987 argument to printf.
5988 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
5989
c88a83f6
CW
59902010-06-17 Colin Watson <cjwatson@ubuntu.com>
5991
5992 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
5993 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
5994
094dfb69
CW
59952010-06-17 Colin Watson <cjwatson@ubuntu.com>
5996
5997 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
5998 directly, and recommend grub-install instead.
5999 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6000
2164da6b
CW
60012010-06-17 Colin Watson <cjwatson@ubuntu.com>
6002
6003 Fix i386-pc prefix handling with nested partitions (Debian bug
6004 #585068). Note that the case where the core image is booted using
6005 multiboot and relocated from its original location still requires
6006 more work.
6007
6008 * kern/i386/pc/init.c (make_install_device): If the prefix starts
6009 with "(,", fill the boot drive in between those two characters, but
6010 expect that a full partition specification including partition map
6011 names will follow.
6012 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
6013 specified, write a prefix without the drive name but including a
6014 full partition specification.
6015
044e2e60
CW
60162010-06-16 Colin Watson <cjwatson@ubuntu.com>
6017
6018 * util/grub-mkconfig.in: Ignore non-option arguments, for
6019 compatibility with older versions (before 2010-06-12) which did the
6020 same. In particular, this makes it easier to ship an update-grub
6021 wrapper which is compatible with that used with GRUB Legacy (Debian
6022 bug #586056).
6023
5591324f
GS
60242010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6025
6026 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
6027 for manual page generation.
6028
662e24d5
GS
60292010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
6030
6031 * po/POTFILES: Remove leftover commands/handler.c.
6032
8d70754e
CW
60332010-06-14 Colin Watson <cjwatson@ubuntu.com>
6034
6035 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
6036 left this script non-functional.
6037
41160e2e
CW
60382010-06-14 Colin Watson <cjwatson@ubuntu.com>
6039
6040 * docs/man/grub-emu.h2m: New file.
6041
b5309cc1
CW
60422010-06-13 Colin Watson <cjwatson@ubuntu.com>
6043
6044 * docs/grub.texi (Commands): Document reduced command set in rescue
6045 mode.
6046 (cpuid): New section.
6047
fcb2d090
GS
60482010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
6049
6050 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
6051 new partition naming style.
6052 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
6053
96e5c556
BC
60542010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
6055
6056 Add "-o grub.iso" like cmdline options support.
6057
6058 * util/grub-install.in: Improve cmdline option parsing.
6059 * util/grub-mkconfig.in: Likewise.
6060 * util/grub-mkrescue.in: Likewise.
6061 * util/grub-reboot.in: Likewise.
6062 * util/grub-set-default.in: Likewise.
6063 * util/i386/efi/grub-install.in: Likewise.
6064 * util/ieee1275/grub-install.in: Likewise.
6065 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6066
c16be99b
CW
60672010-06-12 Colin Watson <cjwatson@ubuntu.com>
6068
6069 * .bzrignore: Ignore 41_custom.
6070
ce08a9fb
TS
60712010-06-12 Thomas Schmitt <scdbackup@gmx.net>
6072
6073 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
6074
7beac90c
CW
60752010-06-12 Colin Watson <cjwatson@ubuntu.com>
6076
6077 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
6078 prototype declarations.
6079
6080 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
6081 generating fs, partmap, and video lists.
6082 * include/grub/fs.h (grub_fs_register): Omit prototype if
6083 GRUB_LST_GENERATOR is defined.
6084 * include/grub/partition.h (grub_partition_map_register): Likewise.
6085 * include/grub/video.h (grub_video_register): Likewise.
6086
1c8f0f8d
JM
60872010-06-12 Javier Martín <lordhabbit@gmail.com>
6088
6089 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
6090
a6085973
TS
60912010-06-12 Thomas Schmitt <scdbackup@gmx.net>
6092
6093 * util/grub-mkrescue.in: Support --xorriso argument.
6094
25c56d29
VS
60952010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
6098 Suggested by: Thomas Schmitt.
6099
e03e4b24
VS
61002010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6101
6102 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
6103 Suggested by: Thomas Schmitt.
6104
57711df6
VS
61052010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
6106
6107 custom.cfg support.
6108
6109 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
6110 * util/grub.d/41_custom.in: New file.
6111
ee62c427
CW
61122010-06-12 Colin Watson <cjwatson@ubuntu.com>
6113
6114 * util/grub-mkrescue.in (make_image): Remove sh module, which has
6115 been merged back into normal.
6116
283af07a
CW
61172010-06-11 Colin Watson <cjwatson@ubuntu.com>
6118
6119 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
6120 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
6121
56a0d956
CW
61222010-06-11 Colin Watson <cjwatson@ubuntu.com>
6123
6124 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
6125 when generating manual pages.
6126 * docs/man/grub-bin2h.h2m: New file.
6127 * docs/man/grub-editenv.h2m: New file.
6128 * docs/man/grub-fstest.h2m: New file.
6129 * docs/man/grub-install.h2m: New file.
6130 * docs/man/grub-macho2img.h2m: New file.
6131 * docs/man/grub-mkconfig.h2m: New file.
6132 * docs/man/grub-mkdevicemap.h2m: New file.
6133 * docs/man/grub-mkfont.h2m: New file.
6134 * docs/man/grub-mkimage.h2m: New file.
6135 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
6136 * docs/man/grub-mkrelpath.h2m: New file.
6137 * docs/man/grub-mkrescue.h2m: New file.
6138 * docs/man/grub-ofpathname.h2m: New file.
6139 * docs/man/grub-pe2elf.h2m: New file.
6140 * docs/man/grub-probe.h2m: New file.
6141 * docs/man/grub-reboot.h2m: New file.
6142 * docs/man/grub-script-check.h2m: New file.
6143 * docs/man/grub-set-default.h2m: New file.
6144 * docs/man/grub-setup.h2m: New file.
6145
3a37e322
VS
61462010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
6147
6148 Use FOR_* macros instead of *_iterate whenever possible.
6149
6150 * commands/handler.c: Removed.
6151 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
6152 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
6153 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6154 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
6155 (grub_probe_SOURCES): Remove kern/parser.c.
6156 (util/grub-script-check.c_DEPENDENCIES): Removed.
6157 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
6158 and grub_script_check_init.c.
6159 (grub_script_check_init.lst): Removed.
6160 (grub_script_check_init.h): Likewise.
6161 (grub_script_check_init.c): Likewise.
6162 (pkglib_MODULES): Remove handler.mod and sh.mod.
6163 (handler_mod_SOURCES): Removed.
6164 (handler_mod_CFLAGS): Likewise.
6165 (handler_mod_LDFLAGS): Likewise.
6166 (normal_mod_SOURCES): Remove normal/handler.c.
6167 Add script/main.c, script/script.c, script/execute.c,
6168 script/function.c, script/lexer.c, grub_script.tab.c
6169 and grub_script.yy.c.
6170 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6171 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6172 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
6173 (grub_setup_SOURCES): Remove kern/parser.c.
6174 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6175 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
6176 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
6177 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6178 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6179 (grub_setup_SOURCES): Remove kern/parser.c.
6180 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
6181 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
6182 * include/grub/command.h (grub_command_iterate): Removed.
6183 (FOR_COMMANDS): New macro.
6184 * include/grub/dl.h (grub_dl): New member next.
6185 (grub_dl_iterate): Removed.
6186 (grub_dl_head): New variable declaration.
6187 (FOR_DL_MODULES): New macro.
6188 * include/grub/fs.h: Include list.h.
6189 (grub_fs): Make next first element.
6190 (grub_fs_list): New variable declaration.
6191 (grub_fs_register): Make inline.
6192 (grub_fs_unregister): Likewise.
6193 (grub_fs_iterate): Removed.
6194 (FOR_FILESYSTEMS): New macro.
6195 * include/grub/handler.h: Removed.
6196 * include/grub/list.h (grub_list_hook_t): Removed.
6197 (grub_list_test_t): Likewise.
6198 (grub_list_pop): Likewise.
6199 (grub_list_iterate): Likewise.
6200 (grub_list_insert): Likewise.
6201 (FOR_LIST_ELEMENTS): New macro.
6202 * include/grub/parser.h (grub_parser_class): Removed.
6203 (grub_parser_register): Likewise.
6204 (grub_parser_unregister): Likewise.
6205 (grub_parser_get_current): Likewise.
6206 (grub_parser_set_current): Likewise.
6207 (grub_register_rescue_parser): Likewise.
6208 (grub_rescue_parse_line): New function.
6209 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
6210 * include/grub/script_sh.h (grub_script_function_list): New variable
6211 declaration.
6212 (FOR_SCRIPT_FUNCTIONS): New macro.
6213 (grub_script_function_iterate): Removed.
6214 (grub_normal_parse_line): New prototype.
6215 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
6216 (FOR_DISABLED_TERM_INPUTS): Likewise.
6217 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
6218 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
6219 * include/grub/video.h (grub_video_adapter): Move 'next' to first
6220 element.
6221 (grub_video_register): Inline.
6222 (grub_video_unregister): Likewise.
6223 (grub_video_adapter_list): New variable declaration.
6224 (grub_video_iterate): Removed.
6225 (FOR_VIDEO_ADAPTERS): New macro.
6226 * kern/dl.c (grub_dl_list): Removed. All users updated.
6227 (grub_dl_iterate): Removed.
6228 * kern/fs.c (grub_fs_list): Make global.
6229 (grub_fs_register): Removed.
6230 (grub_fs_unregister): Likewise.
6231 (grub_fs_iterate): Likewise.
6232 * kern/handler.c: Removed.
6233 * kern/list.c (grub_list_pop): Removed.
6234 (grub_list_iterate): Likewise.
6235 (grub_list_insert): Likewise.
6236 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
6237 (grub_prio_list_insert): Don't use grub_list_insert.
6238 * kern/main.c (grub_register_rescue_parser): Don't call
6239 grub_register_rescue_parser.
6240 * kern/parser.c (grub_parser_class): Removed.
6241 (grub_parser_execute): Use grub_rescue_parse_line.
6242 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
6243 (grub_rescue_parser): Removed.
6244 (grub_register_rescue_parser): Likewise.
6245 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
6246 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
6247 (grub_auth_check_authentication): Likewise.
6248 * normal/completion.c (iterate_command): Removed.
6249 (grub_normal_do_completion): Use FOR_COMMANDS.
6250 * normal/handler.c: Removed.
6251 * normal/main.c (read_config_file): Remove parser changing.
6252 (grub_normal_execute): Don't call read_handler_list.
6253 (grub_normal_read_line_real): Statically allocate prompt.
6254 (grub_cmdline_run): Use grub_normal_parse_line.
6255 (GRUB_MOD_FINI): Don't call free_handler_list.
6256 * normal/menu_entry.c (run): Likewise.
6257 * script/function.c (grub_script_function_list): Make global.
6258 (grub_script_function_iterate): Removed.
6259 * script/main.c (grub_normal_parse_line): Make global.
6260 (grub_sh_parser): Removed.
6261 (GRUB_MOD_INIT): Likewise.
6262 (GRUB_MOD_FINI): Likewise.
6263 * tests/lib/functional_test.c (grub_functional_test): Use
6264 FOR_LIST_ELEMENTS.
6265 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
6266 (grub_test_run): Use FOR_LIST_ELEMENTS.
6267 * tests/lib/unit_test.c (main): Likewise.
6268 * util/deviceiter.c (grub_util_iterate_devices): Don't use
6269 grub_list_pop.
6270 * util/grub-fstest.c (grub_term_input_class): Removed.
6271 (grub_term_output_class): Likewise.
6272 * util/grub-probe.c: Likewise.
6273 * util/i386/pc/grub-setup.c: Likewise.
6274 * util/sparc64/ieee1275/grub-setup.c: Likewise.
6275 * util/grub-script-check.c (main): Don't call grub_init_all and
6276 grub_fini_all.
6277 * video/video.c (grub_video_adapter_list): Make global.
6278 (grub_video_register): Removed.
6279 (grub_video_unregister): Likewise.
6280 (grub_video_iterate): Likewise.
6281
6289c3a7
VS
62822010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
6283
6284 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
6285 reported by Henrique Ferreiro.
6286
91460247
RM
62872010-06-09 Robert Millan <rmh@gnu.org>
6288
6289 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
6290 ones, when both are available.
6291
0ea7c4f9
GS
62922010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6293
6294 Make --version uniform and avoid hard-coded program name.
6295
6296 * util/grub-mkimage.c (main): Use `program_name' instead of
6297 hard-coded string.
6298 * util/i386/pc/grub-setup.c (main): Likewise.
6299 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
6300 * util/grub-install.in: Save the basename of $0 in $self, and use the
6301 latter in informational messages. Use the same format for --version
6302 as the binary programs.
6303 * util/grub-mkconfig.in: Likewise.
6304 * util/grub-mkrescue.in: Likewise.
6305 * util/grub-reboot.in: Likewise.
6306 * util/grub-set-default.in: Likewise.
6307 * util/i386/efi/grub-install.in: Likewise.
6308 * util/ieee1275/grub-install.in: Likewise.
6309 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6310
e8a6f3b6
GS
63112010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6312
6313 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
6314 embedding area. Use <= instead of == when checking for non-emptiness.
6315
f4d095d7
GS
63162010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
6317
6318 * configure.ac: Add `.' to the directories searched for unifont.
6319
50e532ca
CW
63202010-06-08 Colin Watson <cjwatson@ubuntu.com>
6321
6322 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
6323 grub_script.yy.h.
6324
d39f3dec
CW
63252010-06-08 Colin Watson <cjwatson@ubuntu.com>
6326
6327 * docs/grub.texi (History): Expand to cover GRUB 2.
6328 (Serial terminal): Refer to `terminal_input' and `terminal_output'
6329 commands, not `terminal'.
6330 (serial): Likewise.
6331 (terminal_input): New section.
6332 (terminal_output): New section.
6333 (uppermem): New section (stub).
6334 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
6335
6ef0ddb4
CW
63362010-06-08 Colin Watson <cjwatson@ubuntu.com>
6337
6338 * docs/grub.texi (Security): Menu entries are unrestricted by
6339 default, not restricted to superusers as I had previously thought.
6340 Reword to account for this.
6341
e0f4c438
CW
63422010-06-07 Colin Watson <cjwatson@ubuntu.com>
6343
6344 * kern/emu/misc.c (device_mapper_null_log): New function.
6345 (grub_device_mapper_supported): New function.
6346 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
6347 prototype.
6348 * kern/emu/hostdisk.c (find_partition_start): Check whether
6349 device-mapper is supported before trying to use it.
6350 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
6351
da908200
CW
63522010-06-07 Colin Watson <cjwatson@ubuntu.com>
6353
6354 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
6355 (File name syntax): Likewise.
6356 (help): --all is no longer supported in GRUB 2. Be more precise
6357 about pattern matching.
6358
fb55c3ac
CW
63592010-06-07 Colin Watson <cjwatson@ubuntu.com>
6360
6361 * normal/completion.c (grub_normal_do_completion): When completing
6362 arguments to "set" and the current word contains an equals sign,
6363 skip to after the equals sign before starting completion.
6364
258c2573
CW
63652010-06-07 Colin Watson <cjwatson@ubuntu.com>
6366
6367 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
6368
ee75515e
CW
63692010-06-07 Colin Watson <cjwatson@ubuntu.com>
6370
6371 * docs/grub.texi (Network): New section.
6372 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
6373 `(nd)' as in GRUB Legacy.
6374 (pxe_unload): New section.
6375
a6a700aa
CW
63762010-06-07 Colin Watson <cjwatson@ubuntu.com>
6377
6378 * docs/grub.texi (Troubleshooting): `echo' is not usually available
6379 in the rescue shell, so recommend using `set' instead. Thanks,
6380 Jordan Uggla.
6381
4003dd38
CW
63822010-06-07 Colin Watson <cjwatson@ubuntu.com>
6383
6384 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
6385 (password): New section.
6386 (password_pbkdf2): New section.
6387 (search): New section.
6388 (Security): New section.
6389 (Troubleshooting): New section, currently very incomplete.
6390 (Invoking grub-mkpasswd-pbkdf2): New section.
6391 (Internals): New section, currently very incomplete.
6392
e1cbcc40
CW
63932010-06-07 Colin Watson <cjwatson@ubuntu.com>
6394
6395 * util/grub.d/00_header.in: Add some more quoting (of
6396 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
6397 work again.
6398 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
6399
db8fa1ad
CW
64002010-06-07 Colin Watson <cjwatson@ubuntu.com>
6401
6402 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
6403 to `count', fixing variable shadowing that broke the -c option.
6404
64052010-06-05 Colin Watson <cjwatson@ubuntu.com>
71c38098
CW
6406
6407 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
6408 in case they contain spaces.
6409
f28a9212
CW
64102010-06-04 Colin Watson <cjwatson@ubuntu.com>
6411
6412 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
6413 "part_" to partmap module names, in line with grub-install.
6414 Reported by: Jindřich Makovička (Debian bug #584426).
6415
9cdfe32f
CW
64162010-06-04 Colin Watson <cjwatson@ubuntu.com>
6417
6418 * util/grub-mkimage.c: Make target-related error messages slightly
6419 more helpful; -O talks about "format". Explicitly point to the use
6420 of -O if no target is specified.
6421 Reported by: Didier Raboud (Debian bug #584415).
6422
795b593a
CW
64232010-06-03 Colin Watson <cjwatson@ubuntu.com>
6424
6425 * INSTALL: Document several build requirements for optional features
6426 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
6427
9d9b5833
GS
64282010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
6429
6430 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
6431 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
6432 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
6433
0819fec8
CW
64342010-06-02 Colin Watson <cjwatson@ubuntu.com>
6435
6436 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
6437 Thanks to Jordan Uggla for spotting this.
6438
49396b4f
VS
64392010-06-02 Aleš Nesrsta <starous@volny.cz>
6440
6441 Finally make USB usable.
6442
6443 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
6444 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
6445 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
6446 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
6447 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
6448 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
6449 (GRUB_OHCI_FSMPS): Likewise.
6450 (GRUB_OHCI_PERIODIC_START): Likewise.
6451 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
6452 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
6453 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
6454 (GRUB_OHCI_SET_PORT_RESET): Likewise.
6455 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
6456 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
6457 (grub_ohci_transaction): Likewise.
6458 (grub_ohci_transfer): Improve condition detection algorithms.
6459 Handle toggle property. Program the transactions correctly.
6460 Improve error handling. Various important fixups.
6461 (grub_ohci_portstatus): Put register writes in right order.
6462 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
6463 (grub_uhci_transfer): Don't show "failed" message on success.
6464 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
6465 array.
6466 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
6467 determine its size.
6468 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
6469 before initialization is completed. Use IN direction for empty
6470 transfers. Use last_trans and compute toggle.
6471 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
6472 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
6473 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
6474 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
6475 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
6476 (grub_usb_device): Increase toggle to 256.
6477 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
6478 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
6479 GRUB_USBMS_SUBCLASS_SFF8070.
6480 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
6481 (grub_scsi_inquiry): New member page and alloc_length.
6482 (grub_scsi_request_sense): New structure.
6483 (grub_scsi_request_sense_data): Likewise.
6484 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
6485 control.
6486 * disk/scsi.c (grub_scsi_request_sense): New function.
6487 (grub_scsi_test_unit_ready): Likewise.
6488 (grub_scsi_inquiry): Fill new fields.
6489 (grub_scsi_read_capacity): Likewise.
6490 (grub_scsi_read10): Add request sense at the end.
6491 (grub_scsi_read12): Likewise.
6492 (grub_scsi_write10): Likewise.
6493 (grub_scsi_write12): Likewise.
6494 (grub_scsi_open): Add Test Unit Ready.
6495 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
6496 Support additional subclasses. Con't clear halt yet. Activate the
6497 proper config. Calculate LUNs correctly.
6498 (grub_usbms_transfer): Various important fixups.
6499
65002010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6501
6502 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
6503 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
6504 (grub_ohci_fini_hw): New function.
6505 (grub_ohci_restore_hw): Likewise.
6506 (GRUB_MOD_INIT(ohci)): Register preboot hook.
6507 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
6508 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
6509
65102010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6511
6512 Dedicated DMA allocations.
6513
6514 * bus/pci.c (grub_memalign_dma32): New function
6515 (grub_dma_free): Likewise.
6516 (grub_dma_get_virt): Likewise.
6517 (grub_dma_get_phys): Likewise.
6518 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
6519 (grub_ohci_pci_iter): Use dma32_alloc.
6520 (grub_ohci_transfer): Likewise.
6521 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
6522 (grub_usb_bulk_readwrite): Likewise.
6523 * include/grub/pci.h: Add declarations.
6524
65252010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
6526
6527 CS5536 support.
6528
6529 * bus/cs5536.c: New file.
6530 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
6531 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
6532 (cs5536_mod_SOURCES): New variable.
6533 (cs5536_mod_CFLAGS): Likewise.
6534 (cs5536_mod_LDFLAGS): Likewise.
6535 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
6536 machine/pci.h.
6537 (kernel_img_SOURCES): Add bus/cs5536.c.
6538 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
6539 usb_keyboard.mod.
6540 (usb_mod_SOURCES): New variable.
6541 (usb_mod_CFLAGS): New variable.
6542 (usb_mod_LDFLAGS): New variable.
6543 (usbtest_mod_SOURCES): New variable.
6544 (usbtest_mod_CFLAGS): New variable.
6545 (usbtest_mod_LDFLAGS): New variable.
6546 (ohci_mod_SOURCES): New variable.
6547 (ohci_mod_CFLAGS): New variable.
6548 (ohci_mod_LDFLAGS): New variable.
6549 (usbms_mod_SOURCES): New variable.
6550 (usbms_mod_CFLAGS): New variable.
6551 (usbms_mod_LDFLAGS): New variable.
6552 (usb_keyboard_mod_SOURCES): New variable.
6553 (usb_keyboard_mod_CFLAGS): New variable.
6554 (usb_keyboard_mod_LDFLAGS): New variable.
6555 * include/grub/smbus.h: New file.
6556 * include/grub/cs5536.h: New file.
6557
0b35b2a9
CW
65582010-06-02 Colin Watson <cjwatson@ubuntu.com>
6559
6560 * util/grub.d/00_header.in: Add safety check to make sure that
6561 ${locale_dir} exists before trying to probe it.
6562
ca0afd5b
CW
65632010-06-02 Colin Watson <cjwatson@ubuntu.com>
6564
6565 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
6566 per the GNU Coding Standards; this is now too obscure to be worth
6567 documenting.
6568 (QNX): Likewise.
6569 (chainloader): Remove cross-reference to `SCO UnixWare'.
6570
1c41aa78
CW
65712010-06-02 Colin Watson <cjwatson@ubuntu.com>
6572
6573 * docs/grub.texi (Chain-loading): New section.
6574 (DOS/Windows): New section, borrowed from GRUB Legacy with details
6575 adjusted for GRUB 2.
6576 (SCO UnixWare): Likewise.
6577 (QNX): Likewise.
6578 (chainloader): Add reference to `Block list syntax'.
6579 (drivemap): New section.
6580 (parttool): New section.
6581
bb8ea0f5
CW
65822010-06-02 Colin Watson <cjwatson@ubuntu.com>
6583
6584 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
6585 the grub shell'.
6586 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
6587 (Installing GRUB using grub-install): Remove reference to the grub
6588 shell; mention `grub-mkimage' and `grub-setup' instead.
6589 (Invoking grub-install): Likewise.
6590 (Interface): Add reference to `Menu entry editor'.
6591 (serial): Remove `--device' option.
6592
288dd6ed
CW
65932010-06-02 Colin Watson <cjwatson@ubuntu.com>
6594
6595 * docs/grub.texi (Configuration): New section, documenting
6596 configuration file generation using grub-mkconfig. I've left a slot
6597 for documenting the full shell scripting format but have not yet
6598 started on writing that up.
6599 (Invoking grub-mkconfig): New section.
6600
34c9f0e9
CW
66012010-06-02 Colin Watson <cjwatson@ubuntu.com>
6602
6603 * docs/grub.texi (direntry): Remove grub-terminfo reference.
6604 (GNU GRUB manual): Likewise.
6605 (General commands): Update description of `terminfo' for GRUB 2.
6606
9121567e
CW
66072010-06-02 Colin Watson <cjwatson@ubuntu.com>
6608
6609 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
6610 (GRUB_MOD_INIT): Fix capitalisation.
6611 * docs/grub.texi (Command-line and menu entry commands): Document
6612 gettext and gptsync commands.
6613
ab631611
CW
66142010-06-02 Colin Watson <cjwatson@ubuntu.com>
6615
6616 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
6617 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
6618
bde4a9ac
CW
66192010-06-01 Colin Watson <cjwatson@ubuntu.com>
6620
6621 Add btrfs probing support, currently only in the single-device case.
6622
6623 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
6624 function.
6625 (grub_guess_root_device): Call find_root_device_from_mountinfo
6626 before looking in /dev.
6627
b1d17e10
VS
66282010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6629
6630 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
6631 GRUB_DISK_SIZE_UNKNOWN.
6632 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
6633
dfbfe004
JS
66342010-05-31 Jiro SEKIBA <jir@unicus.jp>
6635
6636 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
6637 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
6638 corrupted or not synced properly.
6639
c2ffc8e9
VS
66402010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6641
6642 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
6643 Reported by: Seth Goldberg.
6644
56293166
VS
66452010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6646
6647 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
6648 addition of dest.
6649 Reported by: Seth Goldberg.
6650
7620e7de
VS
66512010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6652
6653 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
6654 Reported by: Seth Goldberg.
6655
c837af3f
VS
66562010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
6657
6658 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
6659 64-bit address as signed on MIPS.
6660
c7c75cf4
CW
66612010-05-28 Colin Watson <cjwatson@ubuntu.com>
6662
6663 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
6664 to the empty string.
6665
fa4b8490
BC
66662010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
6667
6668 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
6669
6670 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
6671 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
6672 * kern/misc.c (__enable_execute_stack): Disable on
6673 GRUB_MACHINE_EMU.
6674
a33075b9
CW
66752010-05-28 Colin Watson <cjwatson@ubuntu.com>
6676
6677 Make grub-probe work with symbolic links under /dev/mapper as well
6678 as with real block devices. The Linux world seems to be (at best)
6679 in transition here, and GRUB shouldn't get caught in the middle.
6680
6681 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
6682 /dev/mapper.
6683
d8708134
CW
66842010-05-27 Colin Watson <cjwatson@ubuntu.com>
6685
6686 * util/grub-script-check.c (main): Ensure defined behaviour on empty
6687 input files (in which case exit zero).
6688
db2102a0
CW
66892010-05-27 Colin Watson <cjwatson@ubuntu.com>
6690
6691 * kern/emu/misc.c (canonicalize_file_name): realpath can still
6692 return NULL for various reasons even if it has a maximum-length
6693 buffer: for example, there might be a symlink loop, or the path
6694 might exceed PATH_MAX. If this happens, return NULL.
6695
5fdba519
RM
66962010-05-27 Robert Millan <rmh@gnu.org>
6697
6698 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
6699 partmap module to handle cross-partmap setups.
6700 Reported by Orestes Mas. Gràcies!
6701
d1d368e4
CW
67022010-05-27 Colin Watson <cjwatson@ubuntu.com>
6703
6704 * util/grub-mkrescue.in: Initialise override_dir rather than
6705 assuming that it's unset or empty in the environment.
6706
95ac3c73
GS
67072010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
6708
6709 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
6710 variable index into p_index to suppress a warning with -Wshadow.
6711
7d8c0213
BC
67122010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
6713
6714 * INSTALL: Added flex >= 2.5.35 requirement.
6715
db4d5813
VS
67162010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6717
6718 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
6719
f24f4300
VS
67202010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6721
6722 cmostest support.
6723
6724 * commands/i386/cmostest.c: New file.
6725 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
6726 (cmostest_mod_SOURCES): New variable.
6727 (cmostest_mod_CFLAGS): Likewise.
6728 (cmostest_mod_LDFLAGS): Likewise.
6729 * conf/i386-pc.rmk: Likewise.
6730 * docs/grub.texi (Vendor power-on keys): New section.
6731 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
6732 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
6733 and GRUB_BUTTON_CMOS_ADDRESS.
6734 * util/grub.d/00_header.in: Handle powering-on by separate button.
6735
ad603f61
VS
67362010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6737
6738 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
6739 Removed drawing_scrollbar argument. All users updated
6740 Fixes #29792.
6741 Reported by Jo Shields
6742
3ecb080a
VS
67432010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6744
6745 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
6746 buffer since gfxterm handles double repaint.
6747
5f2316c1
VS
67482010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
6749
6750 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
6751 * term/gfxterm.c (real_scroll): Likewise.
6752
9a25f885
VS
67532010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6754
6755 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
6756 before calling BIOS.
6757
39fbb79a
VS
67582010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * include/grub/i18n.h: Always enable grub_gettext.
6761
228cfa97
VS
67622010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
6765 partition naming style.
6766
21717c8f
CW
67672010-05-21 Colin Watson <cjwatson@ubuntu.com>
6768
6769 * util/grub-mkconfig.in: Fix handling of -o so that it works when
6770 not the first option.
6771
c0f48e65
CW
67722010-05-20 Colin Watson <cjwatson@ubuntu.com>
6773
6774 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
6775
96779aec
CW
67762010-05-20 Colin Watson <cjwatson@ubuntu.com>
6777
6778 * util/misc.c: Move inclusion of <limits.h> to ...
6779 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
6780
fa9d256e
GS
67812010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
6782
6783 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
6784 Fix merge error in NetBSD code.
6785 (find_partition_start) [__NetBSD__]: Likewise.
6786
123b7a85
BC
67872010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
6788
6789 Fix grub-mkrescue usage unit testing.
6790
6791 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
6792
74276c0d
CF
67932010-05-18 Christian Franke <franke@computer.org>
6794
6795 * util/grub.d/10_windows.in: Use path names instead of
6796 drive letters to prevent warning from Cygwin 1.7.
6797 Add drivemap command to menuentry if needed.
6798
c4f7b523
ST
67992010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
6800
6801 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
6802 gnumach and gnumach.gz.
6803
95b97950
VS
68042010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6805
6806 * include/grub/i18n.h (gettext): Inline instead of using #define.
6807 (grub_gettext): Likewise.
6808 (_): Likewise.
6809
01b8d2d7
VS
68102010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6811
6812 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
6813 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
6814 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
6815 (main): Add a slash after pkglibdirroot.
6816
654e1d1e
VS
68172010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6818
6819 * util/grub-install.in: Add missing "in" keyword.
6820
26966aeb
VS
68212010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6822
6823 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
6824 Reported by: Seth Goldberg.
6825
75006747
VS
68262010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
6827
6828 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
6829
74cbf5bd
CW
68302010-05-18 Colin Watson <cjwatson@ubuntu.com>
6831
6832 * configure.ac: Check for Linux device-mapper support.
6833
6834 * util/hostdisk.c (device_is_mapped): New function.
6835 (find_partition_start): New function, partly broken out from
6836 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
6837 device-mapper support added.
6838 (linux_find_partition): Use find_partition_start.
6839 (convert_system_partition_to_system_disk): Add `st' argument.
6840 Support Linux /dev/mapper/* devices if device-mapper support is
6841 available; only DM-RAID devices are understood at present.
6842 (find_system_device): Add `st' argument. Pass it to
6843 convert_system_partition_to_system_disk.
6844 (grub_util_biosdisk_get_grub_dev): Pass stat result to
6845 find_system_device and convert_system_partition_to_system_disk. Use
6846 find_partition_start.
6847
6848 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
6849 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
6850 * util/deviceiter.c [__linux__]: Define MINOR.
6851 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
6852 * util/mkdevicemap.c (grub_putchar): New function.
6853 (grub_getkey): New function.
6854 (grub_refresh): New function.
6855 (main): Set debug=all if -v -v is used.
6856
355b51e9
CW
68572010-05-18 Colin Watson <cjwatson@ubuntu.com>
6858
6859 Fix build with non-GNU libcs.
6860
6861 * util/misc.c (canonicalize_file_name): Move to ...
6862 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
6863 grub_make_system_path_relative_to_its_root.
6864
7fb5c25f
CW
68652010-05-18 Colin Watson <cjwatson@ubuntu.com>
6866
6867 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
6868 we handle finding grub-mkimage. Default to finding grub-mkimage in
6869 ${bindir} with program_transform_name applied, and provide a
6870 --grub-mkimage option to override this.
6871
1d3293d6
VS
68722010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6873
6874 Remove grub-mkisofs.
6875
6876 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
6877 (grub_mkisofs_SOURCES): Removed.
6878 (grub_mkisofs_CFLAGS): Removed.
6879 * util/mkisofs/defaults.h: Removed.
6880 * util/mkisofs/eltorito.c: Likewise.
6881 * util/mkisofs/exclude.h: Likewise.
6882 * util/mkisofs/hash.c: Likewise.
6883 * util/mkisofs/include/: Likewise.
6884 * util/mkisofs/include/fctldefs.h: Likewise.
6885 * util/mkisofs/include/mconfig.h: Likewise.
6886 * util/mkisofs/include/prototyp.h: Likewise.
6887 * util/mkisofs/include/statdefs.h: Likewise.
6888 * util/mkisofs/iso9660.h: Likewise.
6889 * util/mkisofs/joliet.c: Likewise.
6890 * util/mkisofs/match.c: Likewise.
6891 * util/mkisofs/match.h: Likewise.
6892 * util/mkisofs/mkisofs.c: Likewise.
6893 * util/mkisofs/mkisofs.h: Likewise.
6894 * util/mkisofs/msdos_partition.h: Likewise.
6895 * util/mkisofs/multi.c: Likewise.
6896 * util/mkisofs/name.c: Likewise.
6897 * util/mkisofs/rock.c: Likewise.
6898 * util/mkisofs/tree.c: Likewise.
6899 * util/mkisofs/write.c: Likewise.
6900
5dde9afe
VS
69012010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
6902
6903 Unify grub-mkimage accross platforms.
6904
6905 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
6906 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
6907 (grub_mkelfimage_SOURCES): Removed.
6908 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
6909 (util/grub-mkimage.c_DEPENDENCIES): .. this.
6910 (bin_UTILITIES): Add grub-mkimage.
6911 (grub_mkimage_SOURCES): New variable.
6912 (kernel_img_HEADERS): Remove machine/kernel.h.
6913 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
6914 (pkglib_PROGRAMS): Add kernel.img.
6915 (kernel_img_HEADERS): Add machine/kernel.h.
6916 (kernel_img_FORMAT): Removed.
6917 (bin_UTILITIES): Remove grub-mkimage.
6918 (grub_mkimage_SOURCES): Removed.
6919 (grub_mkimage_CFLAGS): Likewise.
6920 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6921 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
6922 (pkglib_PROGRAMS): Add kernel.img.
6923 (bin_UTILITIES): Remove grub-mkimage.
6924 (grub_mkimage_SOURCES): Removed.
6925 (grub_mkimage_CFLAGS): Likewise.
6926 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6927 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
6928 (pkglib_PROGRAMS): Add kernel.img.
6929 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
6930 (pkglib_PROGRAMS): Add kernel.img.
6931 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
6932 (grub_mkimage_SOURCES): Removed.
6933 (grub_mkimage_CFLAGS): Likewise.
6934 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6935 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
6936 (pkglib_PROGRAMS): Add kernel.img.
6937 (bin_UTILITIES): Remove grub-mkimage.
6938 (grub_mkimage_SOURCES): Removed.
6939 (grub_mkimage_CFLAGS): Likewise.
6940 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6941 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
6942 (grub_mkimage_SOURCES): Removed.
6943 (grub_mkimage_CFLAGS): Likewise.
6944 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
6945 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
6946 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
6947 (grub_pe32_optional_header): ... this.
6948 (grub_pe64_optional_header): ... and this. All users updated.
6949 (GRUB_PE32_PE32_MAGIC): Split into ..
6950 (GRUB_PE32_PE32_MAGIC): .. this.
6951 (GRUB_PE32_PE64_MAGIC): .. and this.
6952 (GRUB_PE32_SIGNATURE_SIZE): New definition.
6953 * include/grub/elf.h (PT_GNU_STACK): New definition.
6954 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
6955 * include/grub/i386/efi/kernel.h: Likewise.
6956 * include/grub/i386/kernel.h: Likewise.
6957 * include/grub/i386/pc/kernel.h: Likewise.
6958 * include/grub/i386/qemu/boot.h: Likewise.
6959 * include/grub/mips/kernel.h: Likewise.
6960 * include/grub/mips/qemu-mips/kernel.h: Likewise.
6961 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
6962 * include/grub/powerpc/kernel.h: Likewise.
6963 * include/grub/sparc64/ieee1275/boot.h: Likewise.
6964 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
6965 * include/grub/sparc64/kernel.h: Likewise.
6966 * include/grub/x86_64/efi/kernel.h: Likewise.
6967 * include/grub/x86_64/kernel.h: Likewise.
6968 * include/grub/offsets.h: New file.
6969 * include/grub/kernel.h (grub_module_info): Split into ...
6970 (grub_module_info32): ... this.
6971 (grub_module_info64): ... and this.
6972 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
6973 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
6974 (grub_boot_blocklist): Moved from here ...
6975 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
6976 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
6977 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
6978 * include/grub/types.h (grub_target_to_host16): Removed.
6979 (grub_target_to_host32): Likewise.
6980 (grub_target_to_host64): Likewise.
6981 (grub_host_to_target16): Likewise.
6982 (grub_host_to_target32): Likewise.
6983 (grub_host_to_target64): Likewise.
6984 (grub_host_to_target_addr): Likewise.
6985
6986 Support grub-mkrescue for efi, coreboot and qemu.
6987
6988 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
6989 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
6990 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
6991 * util/grub-mkrawimage.c: Moved from here ...
6992 * util/grub-mkimage.c: ... here. All users updated.
6993 (ALIGN_ADDR): Use image_target.
6994 (TARGET_NO_FIELD): New const.
6995 (image_target_desc): New type.
6996 (image_targets): New array.
6997 (grub_target_to_host64): Use image_target.
6998 (grub_target_to_host32): Likewise.
6999 (grub_target_to_host16): Likewise.
7000 (grub_host_to_target64): Likewise.
7001 (grub_host_to_target32): Likewise.
7002 (grub_host_to_target16): Likewise.
7003 (grub_host_to_target_addr): Likewise.
7004 (generate_image): Handle multiimage.
7005 (main): Require -O parameter. All users updated.
7006 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
7007 util/efi/grub-mkimage.c
7008 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
7009 New option --rom-directory.
7010 Use xorriso.
7011 * util/i386/efi/grub-mkimage.c: Removed.
7012 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
7013 (grub_target_to_host32): Likewise.
7014 (grub_target_to_host64): Likewise.
7015 (grub_host_to_target16): Likewise.
7016 (grub_host_to_target32): Likewise.
7017 (grub_host_to_target64): Likewise.
7018 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
7019 (grub_target_to_host32): Likewise.
7020 (grub_target_to_host64): Likewise.
7021 (grub_host_to_target16): Likewise.
7022 (grub_host_to_target32): Likewise.
7023 (grub_host_to_target64): Likewise.
7024
f4fc97d0
BC
70252010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
7026
7027 Source tree is reorganized for emu build.
7028
7029 * include/grub/util/console.h: Move from here...
7030 * include/grub/emu/console.h: ...to here.
7031 * include/grub/util/getroot.h: Move from here...
7032 * include/grub/emu/getroot.h: ...to here.
7033 * include/grub/util/hostdisk.h: Move from here...
7034 * include/grub/emu/hostdisk.h: ...to here.
7035 * util/console.c: Move from here...
7036 * kern/emu/console.c: ...to here.
7037 * util/getroot.c: Move from here...
7038 * kern/emu/getroot.c: ...to here.
7039 * util/grub-emu.c: Move from here...
7040 * kern/emu/main.c: ...to here.
7041 * util/hostdisk.c: Move from here...
7042 * kern/emu/hostdisk.c: ...to here.
7043 * util/hostfs.c: Move from here...
7044 * kern/emu/hostfs.c: ...to here.
7045 * util/mm.c: Move from here...
7046 * kern/emu/mm.c: ...to here.
7047 * util/pci.c: Move from here...
7048 * bus/emu/pci.c: ...to here.
7049 * util/sdl.c: Move from here...
7050 * video/emu/sdl.c: ...to here.
7051 * util/time.c: Move from here...
7052 * kern/emu/time.c: ...to here.
7053 * util/usb.c: Move from here...
7054 * bus/usb/emu/usb.c: ...to here.
7055
7056 * include/grub/emu/misc.h: New header for grub-emu functions.
7057 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
7058
7059 * conf/any-emu.rmk: Rule updates for above renames.
7060 * conf/common.rmk: Likewise.
7061 * conf/i386-pc.rmk: Likewise.
7062 * conf/i386-qemu.rmk: Likewise.
7063 * conf/mips.rmk: Likewise.
7064 * conf/sparc64-ieee1275.rmk: Likewise.
7065 * conf/x86-efi.rmk: Likewise.
7066
7067 * disk/lvm.h: #include updates for above renames.
7068 * util/grub-mkrelpath.c: Likewise.
7069 * util/grub-probe.c: Likewise.
7070 * util/i386/pc/grub-setup.c: Likewise.
7071 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7072 * kern/emu/console.c: Likewise.
7073 * kern/emu/getroot.c: Likewise.
7074 * kern/emu/hostdisk.c: Likewise.
7075 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
7076
7077 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
7078 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
7079 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
7080 * util/misc.c: Remove grub-emu functions.
7081
cced9145
VS
70822010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
7083
7084 Fix gfxmenu crash.
7085 Reported by: Thorsten Grützmacher.
7086
7087 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
7088 timeout hook.
7089 (circprog_set_property): Register and unregister timeout hook.
7090 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
7091 (label_destroy): Free template. and unregister hook.
7092 (label_set_state): New function.
7093 (label_set_property): Handle templates and hooks.
7094 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
7095 timeout hook.
7096 (progress_bar_set_property): Register and unregister timeout hook.
7097 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
7098 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
7099 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
7100 (update_timeout_visit): Removed.
7101 (update_timeouts): New function.
7102 (redraw_timeouts): Likewise.
7103 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
7104 (grub_gfxmenu_clear_timeout): Likewise.
7105 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
7106 (grub_gfxmenu_timeout_notify): Likewise.
7107 (grub_gfxmenu_timeout_notifications): New external variable.
7108 (grub_gfxmenu_timeout_register): New function.
7109 (grub_gfxmenu_timeout_unregister): Likewise.
7110
c6e5caab
VS
71112010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
7112
7113 Transform (broken) vga terminal into (working) vga video driver.
7114
7115 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
7116 video/i386/pc/vga.c.
7117 * include/grub/video.h (grub_video_driver_id):
7118 Add GRUB_VIDEO_DRIVER_VGA.
7119 * term/i386/pc/vga.c: Renamed to ...
7120 * video/i386/pc/vga.c: ...this
7121 (DEBUG_VGA): Removed.
7122 (CHAR_WIDTH): Likewise.
7123 (CHAR_HEIGHT): Likewise.
7124 (TEXT_WIDTH): Likewise.
7125 (TEXT_HEIGHT): Likewise.
7126 (DEFAULT_FG_COLOR): Likewise.
7127 (DEFAULT_BG_COLOR): Likewise.
7128 (colored_char): Likewise.
7129 (xpos): Likewise.
7130 (ypos): Likewise.
7131 (cursor_state): Likewise.
7132 (fg_color): Likewise.
7133 (bg_color): Likewise.
7134 (text_buf): Likewise.
7135 (page): Likewise.
7136 (font): Likewise.
7137 (framebuffer): New variable.
7138 (set_read_map): Disabled.
7139 (setup): New variable.
7140 (is_target): Likewise.
7141 (grub_vga_mod_init): Likewise.
7142 (grub_vga_mod_fini): Likewise.
7143 (check_vga_mem): Likewise.
7144 (write_char): Likewise.
7145 (write_cursor): Likewise.
7146 (scroll_up): Likewise.
7147 (grub_vga_putchar): Likewise.
7148 (grub_vga_getcharwidth): Likewise.
7149 (grub_vga_getwh): Likewise.
7150 (grub_vga_getxy): Likewise.
7151 (grub_vga_gotoxy): Likewise.
7152 (grub_vga_cls): Likewise.
7153 (grub_vga_setcolorstate): Likewise.
7154 (grub_vga_setcursor): Likewise.
7155 (grub_video_vga_init): New function.
7156 (grub_video_vga_setup): Likewise.
7157 (grub_video_vga_fini): Likewise.
7158 (update_target): Likewise.
7159 (grub_video_vga_blit_bitmap): Likewise.
7160 (grub_video_vga_blit_render_target): Likewise.
7161 (grub_video_vga_set_active_render_target): Likewise.
7162 (grub_video_vga_get_active_render_target): Likewise.
7163 (grub_video_vga_swap_buffers): Likewise.
7164 (grub_video_vga_set_palette): Likewise.
7165 (grub_video_vga_get_info_and_fini): Likewise.
7166 (grub_vga_term): Removed.
7167 (grub_video_vga_adapter): New variable.
7168 (GRUB_MOD_INIT): Register a video driver instead of terminal.
7169 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
7170
2bf61a98
VS
71712010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7172
7173 * video/readers/jpeg.c: Indented.
7174
09ddcd11
VS
71752010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7176
7177 Various jpeg cleanups.
7178
7179 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
7180 (grub_jpeg_decode_quan_table): Use sizeof.
7181 (grub_jpeg_decode_du): Use ARRAY_SIZE.
7182
e5507505
PH
71832010-05-05 Peter Hurley <No e-mail available> (tiny change)
7184
7185 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
7186 tables. Ignore non-last ac bit.
7187 (grub_jpeg_decode_quan_table): Likewise.
7188
7e720a9b
VS
71892010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7190
7191 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
7192 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
7193 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
7194 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
7195 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
7196 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
7197
a7fc080b
VS
71982010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7199
7200 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
7201 error.
7202
2bf6012d
VS
72032010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
7204
7205 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
7206
265d68cd
VS
72072010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7208
7209 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
7210 condition.
7211
72122010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
7dd5a111
VS
7213
7214 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
7215 part.
7216
265d68cd 72172010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
9b058d52
VS
7218
7219 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
7220 pointers.
7221
265d68cd 72222010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
25893831
VS
7223
7224 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
7225
d1b61374
CF
72262010-05-01 Christian Franke <franke@computer.org>
7227
7228 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
7229 Remove broken Cygwin path conversion.
7230 * util/misc.c: [__CYGWIN__] Add include and define.
7231 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
7232 for Cygwin 1.7.
7233 (make_system_path_relative_to_its_root): Simplify loop, replace early
7234 return by break.
7235 [__CYGWIN__] Add conversion to win32 path.
7236 Include "/" case in trailing slash removal.
7237
3558c6e9
VS
72382010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7239
7240 * kern/main.c (grub_load_config): Fix copy-pasted comment.
7241 Reported by: Seth Goldberg
7242
f5f3ff93
VS
72432010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7244
7245 * commands/help.c (grub_cmd_help): Fix a typo.
7246 Reported by: Seth Goldberg
7247
d8b5cd40
VS
72482010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7249
7250 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
7251 name and add N_.
7252 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
7253 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
7254 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
7255 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
7256 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
7257 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
7258 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
7259 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
7260 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
7261 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
7262 * normal/context.c (GRUB_MOD_INIT): Likewise.
7263 * normal/main.c (GRUB_MOD_INIT): Likewise.
7264 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
7265 * term/serial.c (GRUB_MOD_INIT): Likewise.
7266 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
7267
88c14915
VS
72682010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
7271 extra == 0.
7272
165134bc
VS
72732010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7274
7275 * commands/iorw.c: New file.
7276 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
7277 (iorw_mod_SOURCES): New variable.
7278 (iorw_mod_CFLAGS): Likewise.
7279 (iorw_mod_LDFLAGS): Likewise.
7280
c5ac9b32
VS
72812010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7282
7283 Hotkey support
7284
7285 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
7286 * normal/main.c (hotkey_aliases): New variable.
7287 (grub_normal_add_menu_entry): Parse "--hotkey".
7288 * normal/menu_text.c (run_menu): Handle hotkeys.
7289
ce60689c
VS
72902010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7291
7292 * kern/i386/coreboot/init.c (grub_machine_init): Call
7293 grub_machine_mmap_init on qemu.
7294
0359d006
VS
72952010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7296
7297 * boot/i386/qemu/boot.S: Add a missing .code16.
7298
7819a456
VS
72992010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7300
7301 Use LBIO on coreboot.
7302
7303 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
7304 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
7305 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
7306 New declaration.
7307 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
7308 grub_machine_mmap_init on coreboot.
7309 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
7310 GRUB_LINUXBIOS_MEMBER_LINK.
7311 (grub_machine_mmap_iterate): Fix declaration.
7312 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
7313
7210dca9
VS
73142010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7315
7316 Split coreboot and multiboot ports.
7317
7318 * conf/i386-multiboot.rmk: New file.
7319 * configure.ac: Add multiboot port.
7320 * include/grub/i386/multiboot/boot.h: New file.
7321 * include/grub/i386/multiboot/console.h: Likewise.
7322 * include/grub/i386/multiboot/init.h: Likewise.
7323 * include/grub/i386/multiboot/kernel.h: Likewise.
7324 * include/grub/i386/multiboot/loader.h: Likewise.
7325 * include/grub/i386/multiboot/memory.h: Likewise.
7326 * include/grub/i386/multiboot/serial.h: Likewise.
7327 * include/grub/i386/multiboot/time.h: Likewise.
7328 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
7329 * loader/multiboot.c: Likewise.
7330 * loader/multiboot_mbi2.c: Likewise.
7331 * util/grub-mkrescue.in: Generate multiboot rescue.
7332
6f8aaf68
VS
73332010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7334
3080f7a7
VS
7335 * kern/parser.c (grub_parser_execute): Cope with read-only config.
7336
73372010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
7338
7339 Merge handling of input and output terminals. Fix a hang.
6f8aaf68
VS
7340
7341 * commands/terminal.c (abstract_terminal): New struct.
7342 (handle_command): New function. Based on grub_cmd_terminal_input.
7343 (grub_cmd_terminal_input): Use handle_command.
7344 (grub_cmd_terminal_output): Use handle_command.
7345
a8ebb841
BC
73462010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
7347
7348 Fix comment handling.
7349
7350 * tests/grub_script_comments.in: New testcase.
7351 * conf/tests.rmk: Rules for new testcase.
7352 * script/yylex.l: Updated flex rules.
7353
bb06ba08
ST
73542010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
7355
7356 * docs/grub.texi (play): Document that zero pitches produce rests.
c76a1838
ST
7357 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
7358 if argc is 1.
bb06ba08 7359
cc9d2425
VS
73602010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
7363 autogen issues.
7364
460d8402
CF
73652010-04-26 Christian Franke <franke@computer.org>
7366
7367 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
7368 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
7369 (grub_get_prefix): Remove function.
7370 * util/grub-emu.c (main): Replace grub_get_prefix () call by
7371 make_system_path_relative_to_its_root ().
7372 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
7373
553c01f9
CF
73742010-04-24 Christian Franke <franke@computer.org>
7375
7376 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
7377 (kernel_img_LDFLAGS): Remove -static-libgcc.
7378
2aec1692
CF
73792010-04-24 Christian Franke <franke@computer.org>
7380
7381 * configure.ac: Do not CHECK_BSS_START_SYMBOL
7382 and CHECK_END_SYMBOL if grub-emu is built.
7383 Unset TARGET_OBJ2ELF if grub-emu is built
7384 without module support.
7385
f67dc308
JS
73862010-04-24 Jiro SEKIBA <jir@unicus.jp>
7387
7388 Nilfs2 support.
7389
7390 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
7391 (grub_fstest_SOURCES): Likewise.
7392 (pkglib_MODULES): Add nilfs2.mod.
7393 (nilfs2_mod_SOURCES): New variable.
7394 (nilfs2_mod_CFLAGS): Likewise.
7395 (nilfs2_mod_LDFLAGS): Likewise.
7396 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7397 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
7398 * fs/nilfs2.c: New file.
7399
4ba8d354
VS
74002010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
7401
7402 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
7403 is not supported.
7404
0d2c20c6
GS
74052010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
7406
7407 Add grub-mkconfig support for NetBSD.
7408
7409 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
7410 * util/grub-mkconfig.in: export new NetBSD specific variables.
7411 * po/POTFILES-shell: added 10_netbsd.in.
7412 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
7413
bc4a2d83
BC
74142010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
7415
7416 Fix emu build with grub-emu-pci and grub-emu-modules.
7417
7418 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
7419 functions.
7420 * include/grub/libpciaccess.h: New file.
7421 * conf/any-emu.rmk: Update kernel headers for emu build.
7422
f48c87aa
VS
74232010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7424
7425 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
7426
18959385
VS
74272010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
7430
0037de3f
VS
74312010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7432
7433 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
7434 Retrieve chosen/bootpath if bootpath isn't hardcoded.
7435 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
7436 util/ieee1275/ofpath.c.
7437 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
7438 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
7439 * include/grub/sparc64/ieee1275/boot.h
7440 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
7441 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
7442 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
7443 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
7444 const char *.
7445 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
7446 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
7447 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
7448 install.
7449
38e55e90
GS
74502010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
7451
7452 * util/grub-mkconfig.in: Corrected two == equality tests.
7453 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
7454 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
7455 expect a number appended to it.
7456 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
7457 expects a number appended to it.
7458
a9e6ff28
VS
74592010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7460
7461 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
7462
0b830b8f
VS
74632010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
7464
7465 * util/hostdisk.c (make_device_name): Change to new partition naming.
7466
0973daeb
VS
74672010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
7468
7469 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
7470
460d8402 74712010-04-17 Christian Franke <franke@computer.org>
ebfe7eb4
CF
7472
7473 * Makefile.in: Add missing localedir setting.
7474
0b456309
CW
74752010-04-14 Colin Watson <cjwatson@ubuntu.com>
7476
7477 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
7478 mistake in r2156. Noticed by Anthony Fok.
7479
7480 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
7481 @localedir@.
7482 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
7483
08f46d62
BC
74842010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
7485
7486 Fix a spurious, uninitialized variable warning.
7487
7488 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
7489 Initialize variable, shdr.
7490 (grub_freebsd_load_elfmodule): Likewise.
7491 (grub_freebsd_load_elf_meta): Likewise.
7492
8c4a72d4
BC
74932010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
7494
7495 Fix for escaped dollar in double quoted strings.
7496
7497 * script/yylex.l: Updated flex rules.
7498 * conf/tests.rmk: Rule for new testcase.
7499 * tests/grub_script_dollar.in: New testcase.
7500
ce44826e
CPE
75012010-04-13 Carles Pina i Estany <carles@pina.cat>
75022010-04-13 Colin Watson <cjwatson@ubuntu.com>
7503
7504 Enclose all translated strings in grub.cfg in single quotes, and
7505 escape them appropriately (Ubuntu bug #552921).
7506
7507 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
7508 * util/grub.d/10_hurd.in: Use it.
7509 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
7510 * util/grub.d/10_linux.in (linux_entry): Likewise.
7511
4b0cd8f8
VS
75122010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7513
7514 Fix cygwin compilation.
7515
7516 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
7517 * include/grub/misc.h (__register_frame_info)
7518 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
7519 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7520 * kern/misc.c (__register_frame_info)
7521 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
7522 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
7523
01fcf061
VS
75242010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7525
7526 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
7527
5d04b11e
VS
75282010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
7529
7530 Unify libgcc processing.
7531
7532 * Makefile.in (kernel_img_LDFLAGS): New variable.
7533 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
7534 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
7535 overwriting.
7536 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
7537 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
7538 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
7539 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
7540 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
7541 overwriting. Remove -lgcc and -static-libgcc
7542 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
7543 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7544 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
7545 (kernel_img_LDFLAGS): Append instead of overwriting.
7546 Remove -lgcc and -static-libgcc
7547 * conf/sparc64-ieee1275.rmk: Likewise.
7548 * include/grub/powerpc/libgcc.h: Move to ...
7549 * include/grub/libgcc.h: .. this.
7550 * include/grub/libgcc.h: Don't export most of the function on x86.
7551 (__bswapsi2): New export.
7552 (__bswapdi2): Likewise.
7553 * include/grub/mips/libgcc.h: Removed.
7554 * include/grub/sparc64/libgcc.h: Likewise.
7555
b7f3ac29
VS
75562010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7557
7558 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
7559 disk_info_msg (conflicts with gettexting into languages with cases).
7560
2c7031b1
GS
75612010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
7562
7563 Add grub-probe support for NetBSD.
7564
7565 * util/getroot.c (find_root_device): Convert block device to
7566 character device on NetBSD.
7567 * util/probe.c (probe): Require character device on NetBSD.
7568 * util/hostdisk.c: NetBSD specific headers.
7569 (configure_device_driver): new function to tune device driver
7570 parameters (currently only for NetBSD floppy driver).
7571 (grub_util_biosdisk_open): NetBSD specific code (get disk size
7572 via disklabel ioctl).
7573 (open_device): call configure_device_driver on NetBSD.
7574 (convert_system_partition_to_system_disk): NetBSD specific code.
7575 (device_is_wholedisk): Likewise.
7576 (grub_util_biosdisk_get_grub_dev): Likewise.
7577 (make_device_name): Fixed a typo in bsd_part_str.
7578 * configure.ac: check for opendisk() and getrawpartition() on
7579 NetBSD and set LIBUTIL.
7580 * Makefile.in: add LIBUTIL to LIBS.
7581
f516290c
BC
75822010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7583
7584 Documentation fix.
7585
7586 * util/grub-script-check.c: Better help message.
7587
d8dcc0df
BC
75882010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
7589
7590 Fix FreeBSD build.
7591
7592 * configure.ac: Flex version check.
7593 * conf/common.rmk: Add -Wno-error to sh.mod.
7594 * script/yylex.l: Remove all #pragma.
7595
6734334a
VS
75962010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7597
7598 * include/grub/util/misc.h (canonicalise_file_name): Add missing
7599 prototype.
7600 Reported by: Seth Goldberg.
7601
daea6abd
VS
76022010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7603
7604 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
7605 Rename "module" to "module2".
7606 Reported by: Seth Goldberg.
7607
f2fd9d2b
VS
76082010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7609
7610 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
7611 EXPORT_FUNC.
7612 Reported by: Seth Goldberg.
7613
be124579
VS
76142010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7615
7616 * lib/posix_wrap/locale.h: Add missing file.
7617 Reported by: Seth Goldberg.
7618
ef5da797
VS
76192010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
7620
7621 grub-emu module load support.
7622
7623 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
7624 NO_DYNAMIC_MODULES switched to this.
7625 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
7626 (CFLAGS): Likewise.
7627 * conf/any-emu.rmk: Generate symlist.
7628 (kernel_img_HEADERS): Add util/datetime.h.
7629 (kernel_img_HEADERS) [sdl]: Add sdl.h.
7630 (kernel_img_HEADERS) [libusb]: Add libusb.h.
7631 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
7632 kern/$(target_cpu)/cache.S.
7633 * configure.ac (grub-emu-modules): New option.
7634 * genmk.rb: Handle multiple source lists.
7635 * include/grub/sdl.h: New file.
7636 * include/grub/libusb.h: Likewise.
7637 * util/grub-emu.c (main): Hanle (host) root.
7638 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
7639 GRUB_ERR_UNKNOWN_DEVICE.
7640 * util/misc.c: Move mm functions to ...
7641 * util/mm.c: ... here. All users updated.
7642
47822096
VS
76432010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7644
7645 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
7646 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
7647 missing files.
7648 (maintainer-clean): Remove libgcrypt-grub.
7649
5d7e7445
VS
76502010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7651
7652 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
7653
25f4e252
EC
76542010-04-09 EFI Coder <eficoder@hotmail.com>
7655
7656 * normal/menu_text.c (print_message): Clean up the message and show
7657 the Fn information when on EFI
7658 * term/efi/console.c (grub_console_checkkey): Add F4 support.
7659
027de555
VS
76602010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7661
7662 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
7663 All users updated.
7664 * normal/crypto.c (read_crypto_list): Likewise.
7665 * normal/dyncmd.c (read_command_list): Likewise.
7666 * normal/term.c (read_terminal_list): Likewise.
7667 * normal/main.c (read_lists): Use explicit prefix.
7668 (read_lists_hook): Use read_lists.
7669 (grub_normal_execute): Likewise.
7670
47779711
VS
76712010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7672
7673 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
7674 Reported by: Thomas Schmitt.
7675 Add -no-emul-boot to grub-mkisofs parameters.
7676
1118c32e
VS
76772010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7678
7679 * font/font.c: Indented.
7680
7d652447
BC
76812010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7682
7683 Elif support to GRUB script (by Deepak Vankadaru).
7684
7685 * tests/grub_script_if.in: New testcase.
7686 * conf/tests.rmk: Rule for new testcase.
7687 * script/parser.y: Grammar rules for elif.
7688
34bb22df
BC
76892010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
7690
7691 While and until loops support to GRUB script.
7692
7693 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
7694 (grub_script_create_cmdwhile): New function prototype.
7695 (grub_script_execute_cmdwhile): New function prototype.
7696 * script/execute.c (grub_script_execute_cmdwhile): New function.
7697 * script/parser.y (command): New commands.
7698 (whilecmd): New grammar rule.
7699 (untilcmd): New grammar rule.
7700 * script/script.c (grub_script_create_cmdwhile): New function.
7701 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
7702 function.
7703
7704 * tests/grub_script_while1.in: New testcase.
7705 * conf/tests.rmk: Rule for new testcase.
7706
e215d8e0
VS
77072010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7708
7709 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
7710 as *.jpg.
7711
d7c43ba1
MV
77122010-04-09 Mario Vazquez <mariovazq@gmail.com>
7713
7714 GRUB_BACKGROUND support.
7715
7716 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
7717 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
7718
d64795c0
VS
77192010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 Load fonts and modules for gfxmenu in grub-mkconfig.
d7c43ba1 7722 Idea by: Mario Vazquez
d64795c0
VS
7723
7724 * util/grub.d/00_header.in: Load pf2 and image modules.
7725
f267f83a
VS
77262010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7727
7728 grub-mkconfig multiple terminal support.
7729
7730 * util/grub-mkconfig.in: Handle multiple terminals correctly.
7731 * util/grub.d/00_header.in: Likewise.
7732
b7841ceb
VS
77332010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
7734
7735 * Makefile.in: Specify files explicitly instead of using $< and $@ since
7736 we use cd $(srcdir).
7737
df60998c
CW
77382010-04-08 Colin Watson <cjwatson@ubuntu.com>
7739
7740 * util/grub.d/10_linux.in: Only use the first word of
7741 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
7742 spaces in GRUB_DISTRIBUTOR.
7743 * util/grub.d/10_kfreebsd.in: Likewise.
7744 * util/grub.d/10_hurd.in: Likewise.
7745
fa09c82e
BC
77462010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
7747
14e18ae3 7748 Fix unit testing framework for Qemu 0.12.
fa09c82e
BC
7749
7750 * tests/util/grub-shell.in: Remove -serial stdio option.
7751
daf892b3
BC
77522010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7753
7754 POSIX header file wrappers.
7755
7756 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
7757 equivalents.
7758 * lib/posix_wrap/ctype.h: Likewise.
7759 * lib/posix_wrap/errno.h: Likewise.
7760 * lib/posix_wrap/langinfo.h: Likewise.
7761 * lib/posix_wrap/limits.h: Likewise.
7762 * lib/posix_wrap/localcharset.h: Likewise.
7763 * lib/posix_wrap/stdint.h: Likewise.
7764 * lib/posix_wrap/stdio.h: Likewise.
7765 * lib/posix_wrap/stdlib.h: Likewise.
7766 * lib/posix_wrap/string.h: Likewise.
7767 * lib/posix_wrap/sys/types.h: Likewise.
7768 * lib/posix_wrap/unistd.h: Likewise.
7769 * lib/posix_wrap/wchar.h: Likewise.
7770 * lib/posix_wrap/wctype.h: Likewise.
7771 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
7772 (grub_script.yy.h): Likewise.
7773 * script/yylex.l: Remove POSIX emulation #defines.
7774 * Makefile.in (POSIX_CFLAGS): New variable.
7775 (GNULIB_UTIL_CFLAGS): Likewise.
7776
7777 Regexp support.
7778
7779 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
7780 (regexp_mod_SOURCES): New variable.
7781 (regexp_mod_CFLAGS): Likewise.
7782 (regexp_mod_LDFLAGS): Likewise.
7783 * commands/regexp.c: New file.
7784 * gnulib/regcomp.c: New file. Imported from gnulib.
7785 * gnulib/regex.c: Likewise.
7786 * gnulib/regex_internal.c: Likewise.
7787 * gnulib/regex_internal.h: Likewise.
7788 * gnulib/regexec.c: Likewise.
7789 * gnulib/regex.h: Likewise.
7790
974ac4f7
VS
77912010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7792
7793 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
7794 unsupported video mode types.
7795
2622c3ff
VS
77962010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7797
7798 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
7799
064cb524
VS
78002010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7801
7802 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
7803 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
7804
a8c3b552
VS
78052010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
7806
7807 Remove unused grub_vga_get_font.
7808
7809 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
7810 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
7811
187bbe3d
GS
78122010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7813
7814 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
7815 * include/grub/misc.h: Likewise.
7816
b9396631
GS
78172010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7818
7819 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
7820 for which failure is fatal.
7821
50479feb
GS
78222010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7823
7824 * util/grub-install.in: Use mkdir -p to create grub directory.
7825 * util/i386/efi/grub-install.in: Likewise.
7826 * util/ieee1275/grub-install.in: Likewise.
7827
b1654fdf
GS
78282010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7829
7830 * Makefile.in (LEX): new variable.
7831
bd5a6415
GS
78322010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
7833
7834 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
7835 `=' and added double quotes on operands of this equality test.
7836
3db3a82b
VS
78372010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7838
7839 * Makefile.in (uninstall): Remove a leftover debug echo.
7840 Reported by: Grégoire Sutre
7841
38023412
VS
78422010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
7843
7844 MIPS multiboot2 support.
7845
7846 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
7847 (multiboot2_mod_SOURCES): New variable.
7848 (multiboot2_mod_CFLAGS): Likewise.
7849 (multiboot2_mod_LDFLAGS): Likewise.
7850 (multiboot2_mod_ASFLAGS): Likewise.
7851 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
7852 definition.
7853 (MULTIBOOT_ENTRY_REGISTER): Likewise.
7854 (MULTIBOOT_MBI_REGISTER): Likewise.
7855 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
7856 (MULTIBOOT_ELF32_MACHINE): Likewise.
7857 (MULTIBOOT_ELF64_MACHINE): Likewise.
7858 * include/grub/mips/multiboot.h: New file.
7859 * include/grub/video.h (grub_video_driver_id): New type
7860 GRUB_VIDEO_DRIVER_SM712.
7861 (grub_video_get_info_and_fini): Export.
7862 (grub_video_get_palette): Likewise.
7863 (grub_video_get_driver_id): Likewise.
7864 * include/multiboot2.h: Resynced with spec.
7865 * loader/i386/multiboot.c: Moved from here ...
7866 * loader/multiboot.c: ... here. All users updated.
7867 (grub_multiboot_boot): Use platform-specific macros.
7868 * loader/i386/multiboot_elfxx.c: Moved from here ...
7869 * loader/multiboot_elfxx.c: ... here. All users updated.
7870 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
7871 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
7872 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
7873
47674667
VS
78742010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
7875
7876 Import gnulib argp module.
7877
7878 * gnulib/argp-ba.c: New file.
7879 * gnulib/argp-eexst.c: Likewise.
7880 * gnulib/argp-fmtstream.c: Likewise.
7881 * gnulib/argp-fmtstream.h: Likewise.
7882 * gnulib/argp-fs-xinl.c: Likewise.
7883 * gnulib/argp-help.c: Likewise.
7884 * gnulib/argp-namefrob.h: Likewise.
7885 * gnulib/argp-parse.c: Likewise.
7886 * gnulib/argp-pin.c: Likewise.
7887 * gnulib/argp-pv.c: Likewise.
7888 * gnulib/argp-pvh.c: Likewise.
7889 * gnulib/argp-version-etc.c: Likewise.
7890 * gnulib/argp-version-etc.h: Likewise.
7891 * gnulib/argp-xinl.c: Likewise.
7892 * gnulib/argp.h: Likewise.
7893
495442ed
VS
78942010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7895
7896 * kern/device.c (grub_device_iterate): Clear errors after failed
7897 opening device.
7898
f9fd65df
VS
78992010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
7902 returned by firmware.
7903
af09641e
VS
79042010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
7905
7906 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
7907 compilation on coreboot and qemu
7908
016883a5
VS
79092010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7910
7911 * include/multiboot2.h: Resync with spec.
7912
f97e1f7d
VS
79132010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
7914
7915 Multiboot2 tag support
7916
7917 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
7918 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
7919 Remove loader/multiboot_loader.c.
7920 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
7921 (grub_multiboot2_real_boot): Likewise.
7922 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
7923 (grub_get_multiboot_mmap_count): New proto.
7924 (grub_fill_multiboot_mmap): Likewise.
7925 (grub_multiboot_set_video_mode): Likewise.
7926 (grub_multiboot_set_console): Likewise.
7927 (grub_multiboot_load): Likewise.
7928 (grub_multiboot_load_elf): Likewise.
7929 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
7930 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
7931 * include/multiboot.h: Resynced with specification.
7932 * include/multiboot2.h: Resynced with specification.
7933 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
7934 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
7935 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
7936 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
7937 users updated.
7938 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
7939 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
7940 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
7941 Removed.
7942 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
7943 Moved from here...
7944 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
7945 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
7946 Moved from here...
7947 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
7948 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
7949 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
7950 All users updated.
7951 * loader/i386/multiboot_mbi2.c: New file.
7952
3506b90b
VS
79532010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7954
7955 Resync with gnulib.
7956
7957 * Makefile.in (GNULIB_CFLAGS): New variable.
7958 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
7959 (grub_script_check_CFLAGS): New variable.
7960 * gnulib/alloca.h: Resync with gnulib.
7961 * gnulib/error.c: Likewise.
7962 * gnulib/error.h: Likewise.
7963 * gnulib/fnmatch.c: Likewise.
7964 * gnulib/fnmatch_loop.c: Likewise.
7965 * gnulib/getdelim.c: Likewise.
7966 * gnulib/getline.c: Likewise.
7967 * gnulib/getopt.c: Likewise.
7968 * gnulib/getopt1.c: Likewise.
7969 * gnulib/getopt_int.h: Likewise.
7970 * gnulib/gettext.h: Likewise.
7971 * gnulib/progname.c: Likewise.
7972 * gnulib/progname.h: Likewise.
7973
394a3120
GS
79742010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
7975
7976 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
7977 which is the case with --disabled-nls.
7978
7979 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
7980 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
7981 * util/misc.c: Likewise.
7982 * util/mkisofs/mkisofs.c: Likewise.
7983 * util/mkisofs/mkisofs.h: Likewise.
7984
969d1c78
VS
79852010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
7986
7987 Simplify Apple CC support.
7988
7989 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
7990 Add 0 byte at the end not to have a symbol with empty target.
7991 * mmap/i386/pc/mmap_helper.S: Likewise.
7992 * genmk.rb: Ignore errors 2030 and 2050.
7993 * kern/i386/pc/startup.S: Use LOCAL when possible.
7994
8d2977bb
BC
79952010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
7996
7997 Testcase and the fix for final semicolon on cmdline.
7998
7999 * tests/grub_script_final_semicolon.in: New testcase.
8000 * conf/tests.rmk: Rules for the new testcase.
8001 * script/parser.y: Grammar fix.
8002
a7bd6915
BC
80032010-03-26 BVK Chaitanya <bvk@localhost>
8004
8005 Blank lines testcase for GRUB script.
8006
8007 * tests/grub_script_blanklines.in: New testcase.
8008 * conf/tests.rmk: Rules for the new testcase.
8009
e4ff6628
VS
80102010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8011
8012 Don't use __FILE__.
8013
8014 * genmk.rb: Add -DGRUB_FILE to all C targets.
8015 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
8016 * include/grub/list.h: Likewise.
8017 * include/grub/misc.h: Likewise.
8018 * include/grub/mm.h: Likewise.
8019 * include/grub/test.h: Likewise.
8020 * kern/mm.c: Likewise.
8021 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
8022
6a5cf6b6
VS
80232010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8024
8025 Sunpc partitions support.
8026
8027 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
8028 (grub_fstest_SOURCES): Likewise.
8029 (pkglib_MODULES): Add part_sunpc.mod.
8030 (part_sunpc_mod_SOURCES): New variable.
8031 (part_sunpc_mod_CFLAGS): Likewise.
8032 (part_sunpc_mod_LDFLAGS): Likewise.
8033 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
8034 * partmap/sunpc.c: New file.
8035
746d9045
BC
80362010-03-26 BVK Chaitanya <bvk@localhost>
8037
8038 For loop support to GRUB script.
8039
8040 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
8041 (grub_script_create_cmdfor): New function prototype.
8042 (grub_script_execute_cmdfor): New function prototype.
8043 * script/execute.c (grub_script_execute_cmdfor): New function.
8044 * script/parser.y (command): New for command.
8045 (forcmd): New grammar rule.
8046 * script/script.c (grub_script_create_cmdfor): New function.
8047 * util/grub-script-check.c (grub_script_execute_cmdfor): New
8048 function.
8049 * tests/grub_script_for1.in: New testcase.
8050 * conf/tests.rmk: Rules for new testcase.
8051
18486b18
VS
80522010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
8053
8054 Nested partitions
8055
8056 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
8057 'partition' is NULL, grub_partition_get_start already does that.
8058 * commands/loadenv.c (check_blocklists): Likewise.
8059 (write_blocklists): Likewise.
8060 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
8061 (grub_fstest_SOURCES): Likewise.
8062 (pkglib_MODULES): Add part_bsd.mod.
8063 (part_bsd_mod_SOURCES): New variable.
8064 (part_bsd_mod_CFLAGS): Likewise.
8065 (part_bsd_mod_LDFLAGS): Likewise.
8066 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
8067 (grub_emu_SOURCES): Likewise.
8068 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
8069 * include/grub/bsdlabel.h: New file.
8070 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
8071 'get_name'.
8072 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
8073 (grub_partition_map_list): New variable.
8074 (grub_partition_map_register): Inline.
8075 (grub_partition_map_unregister): Likewise.
8076 (FOR_PARTITION_MAPS): New macro.
8077 (grub_partition_map_iterate): Removed.
8078 (grub_partition_get_start): Handle nested partitions.
8079 * include/grub/msdos_partition.h: Remove bsd-related entries.
8080 (grub_pc_partition): Remove.
8081 * kern/disk.c (grub_disk_close): Free partition data.
8082 (grub_disk_adjust_range): Handle nested partitions.
8083 * kern/partition.c (grub_partition_map_probe): New function.
8084 (grub_partition_probe): Parse name to number, handle subpartitions.
8085 (get_partmap): New function.
8086 (grub_partition_iterate): Handle subpartitions.
8087 (grub_partition_get_name): Likewise.
8088 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
8089 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
8090 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
8091 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
8092 Set 'number'.
8093 (acorn_partition_map_probe): Remove.
8094 (acorn_partition_map_get_name): Likewise.
8095 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
8096 Set 'number'.
8097 Set 'index' to 0 since there can be only one partition entry per sector.
8098 (amiga_partition_map_probe): Remove.
8099 (amiga_partition_map_get_name): Likewise.
8100 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
8101 Set 'number'.
8102 Set 'offset' and 'index' to real positions of partitions.
8103 (apple_partition_map_probe): Remove.
8104 (apple_partition_map_get_name): Likewise.
8105 * partmap/bsdlabel.c: New file.
8106 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
8107 Set 'number'.
8108 Allocate 'data' so it can be correctly freed.
8109 Set 'index' to offset inside sector.
8110 (gpt_partition_map_probe): Remove.
8111 (gpt_partition_map_get_name): Likewise.
8112 * partmap/msdos.c (grub_partition_parse): Remove.
8113 (pc_partition_map_iterate): Don't force raw access.
8114 Set 'number'.
8115 Make 'ext_offset' a local variable.
8116 (pc_partition_map_probe): Remove.
8117 (pc_partition_map_get_name): Remove.
8118 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
8119 Set 'number'.
8120 (sun_partition_map_probe): Remove.
8121 (sun_partition_map_get_name): Likewise.
8122 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
8123 (grub_pcpart_type): Likewise.
8124 * util/hostdisk.c (open_device): Handle new numbering scheme.
8125 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
8126 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
8127 * util/grub-probe.c (probe_partmap): Handle nested paritions.
8128 * util/grub-install.in: Insert all subpartition modules.
8129 * util/ieee1275/grub-install.in: Likewise.
8130
a3940f88
AG
81312010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
8132
8133 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
8134 grammar.
8135
21b99926 81362010-03-24 Colin Watson <cjwatson@ubuntu.com>
8137
8138 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
8139
bed1d352
CW
81402010-03-21 Colin Watson <cjwatson@ubuntu.com>
8141
8142 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
8143 match where 'make install' puts them.
8144 * util/i386/efi/grub-install.in: Likewise.
8145
c9f58427
CW
81462010-03-19 Colin Watson <cjwatson@ubuntu.com>
8147
8148 * .bzrignore: Add gentrigtables, grub-script-check,
8149 grub_script_check_init.c, grub_script_check_init.h, and
8150 trigtables.c.
8151
f84afb27
VS
81522010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
8153
8154 * kern/parser.c: Indented.
8155
ed0e3d30
VS
81562010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
8157
8158 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
8159
0ea81d98
VS
81602010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
8161
8162 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
8163 alpha_mask_size == 0 case.
8164
0cdc2a09
BC
81652010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
8166
8167 GRUB shell lexer and parser improvements.
8168
8169 * conf/any-emu.rmk: Build rule updates.
8170 * conf/common.rmk: Likewise.
8171 * conf/i386-coreboot.rmk: Likewise.
8172 * conf/i386-efi.rmk: Likewise.
8173 * conf/i386-ieee1275.rmk: Likewise.
8174 * conf/i386-pc.rmk: Likewise.
8175 * conf/powerpc-ieee1275.rmk: Likewise.
8176 * conf/x86_64-efi.rmk: Likewise.
8177
8178 * configure.ac: Configure check for flex.
8179
8180 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
8181 types.
8182 (grub_lexer_param): Struct member updates.
8183 (grub_parser_param): Likewise.
8184 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
8185 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
8186 (grub_script_lexer_init): Prototype update.
8187 (grub_script_lexer_record_start): Likewise.
8188 (grub_script_lexer_record_stop): Likewise.
8189 (grub_script_lexer_yywrap): New function prototype.
8190 (grub_script_lexer_fini): Likewise.
8191 (grub_script_execute_argument_to_string): Removed by...
8192 (grub_script_execute_argument_to_argv): ...better version.
8193
8194 * script/execute.c (ROUND_UPTO): New macro.
8195 (grub_script_execute_cmdline): Out of memory fixes.
8196 (grub_script_execute_menuentry): Likewise.
8197 (grub_script_execute_argument_to_string): Removed. Update all
8198 users by...
8199 (grub_script_execute_argument_to_argv): ...better version.
8200 * script/function.c (grub_script_function_create): Use
8201 grub_script_execute_argument_to_argv instead of
8202 grub_script_execute_argument_to_string.
8203
8204 * script/lexer.c (check_varstate): Removed.
8205 (check_textstate): Removed.
8206 (grub_script_lexer_record_start): Likewise.
8207 (grub_script_lexer_record_stop): Likewise.
8208 (recordchar): Replaced with...
8209 (grub_script_lexer_record): ...new function.
8210 (nextchar): Removed.
8211 (grub_script_lexer_init): Rewritten.
8212 (grub_script_yylex): Rewritten.
8213 (append_newline): New function.
8214 (grub_script_lexer_yywrap): New function.
8215 (grub_script_lexer_fini): New function.
8216 (grub_script_yyerror): Sets error flag.
8217
8218 * script/yylex.l: New file.
8219 (grub_lexer_yyfree): Wrapper for flex yyffre.
8220 (grub_lexer_yyalloc): Likewise.
8221 (grub_lexer_yyrealloc): Likewise.
8222 * script/parser.y: Refactored.
8223
8224 * script/script.c (grub_script_arg_add): Out of memory fixes.
8225 (grub_script_add_arglist): Likewise.
8226 (grub_script_create_cmdline): Likewise.
8227 (grub_script_create_cmdmenu): Likewise.
8228 (grub_script_add_cmd): Likewise.
8229 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
8230 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
8231 unnecessary code.
8232
8233 * tests/grub_script_echo1.in: New testcase.
8234 * tests/grub_script_vars1.in: New testcase.
8235 * tests/grub_script_echo_keywords.in: New testcase.
8236
1d63a066
VS
82372010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8238
8239 Remove some redundancy in build system.
8240
8241 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
8242 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
8243 (TARGET_LDFLAGS): Add -nostdlib.
8244 (TARGET_IMG_LDFLAGS): Likewise.
8245 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
8246 anything since mmap isn't available.
8247 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
8248 Add util/time.c.
8249 (pkglib_MODULES): Remove reboot.mod.
8250 (reboot_mod_SOURCES): Removed.
8251 (reboot_mod_CFLAGS): Likewise.
8252 (reboot_mod_LDFLAGS): Likewise.
8253 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
8254 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
8255 (DEFSYMFILES): Add kernel_syms.lst.
8256 (kernel_img_HEADERS): Add common headers.
8257 (symlist.c): New target.
8258 (kernel_syms.lst): Likewise.
8259 (pkglib_MODULES): Add memdisk.mod.
8260 (memdisk_mod_SOURCES): New variable.
8261 (memdisk_mod_CFLAGS): Likewise.
8262 (memdisk_mod_LDFLAGS): Likewise.
8263 (pkglib_MODULES): Add reboot.mod.
8264 (reboot_mod_SOURCES): New variable.
8265 (reboot_mod_CFLAGS): Likewise.
8266 (reboot_mod_LDFLAGS): Likewise.
8267 (pkglib_MODULES): Add date.mod.
8268 (date_mod_SOURCES): New variable.
8269 (date_mod_CFLAGS): Likewise.
8270 (date_mod_LDFLAGS): Likewise.
8271 (pkglib_MODULES): Add datehook.mod.
8272 (datehook_mod_SOURCES): New variable.
8273 (datehook_mod_CFLAGS): Likewise.
8274 (datehook_mod_LDFLAGS): Likewise.
8275 (pkglib_MODULES): Add lsmmap.mod.
8276 (lsmmap_mod_SOURCES): New variable.
8277 (lsmmap_mod_CFLAGS): Likewise.
8278 (lsmmap_mod_LDFLAGS): Likewise.
8279 (pkglib_MODULES): Add boot.mod.
8280 (boot_mod_SOURCES): New variable.
8281 (boot_mod_CFLAGS): Likewise.
8282 (boot_mod_LDFLAGS): Likewise.
8283 * conf/i386-coreboot.rmk: Removed redundant parts.
8284 * conf/i386-ieee1275.rmk: Likewise.
8285 * conf/i386-pc.rmk: Likewise.
8286 * conf/mips-yeeloong.rmk: Likewise.
8287 * conf/mips.rmk: Likewise.
8288 * conf/powerpc-ieee1275.rmk: Likewise.
8289 * conf/sparc64-ieee1275.rmk: Likewise.
8290 * conf/x86_64-efi.rmk: Likewise.
8291 * conf/i386-coreboot.rmk: Moved qemu parts ..
8292 * conf/i386-qemu.rmk: ... here
8293 * conf/i386-efi.rmk: Moved common parts to...
8294 * conf/x86-efi.rmk: ... here.
8295 * conf/i386.rmk: Added modules common to all x86 variants.
8296 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
8297 * disk/memdisk.c: Remove grub/machine/kernel.h.
8298 * gensymlist.sh.in: Include symbol.h.
8299 * hook/datehook.c: Correct module name.
8300 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
8301 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
8302 * include/grub/i386/efi/serial.h: New file.
8303 * include/grub/x86_64/efi/serial.h: Likewise.
8304 * util/time.c: Likewise.
8305 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
8306
463ac55f
CK
83072010-03-14 Colin King <colin.king@ubuntu.com>
83082010-03-14 Colin Watson <cjwatson@ubuntu.com>
8309
8310 Shrink the pre-partition-table part of boot.img by eight bytes.
8311
8312 * boot/i386/pc/boot.S (ERR): New macro.
8313 (chs_mode): Use ERR.
8314 (geometry_error): Likewise.
8315 (hd_probe_error): Remove. This is only used once, so we wrwite
8316 it inline instead.
8317 (read_error): Instead of printing read_error_string, just set up
8318 %si and fall through to ...
8319 (error_message): ... this new function, also used by ERR.
8320
08e46ede
CW
83212010-03-14 Colin Watson <cjwatson@ubuntu.com>
8322
8323 Speed up consecutive hostdisk operations on the same device.
8324
8325 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
8326 (grub_util_biosdisk_open): Initialise disk->data.
8327 (struct linux_partition_cache): New structure.
8328 (linux_find_partition): Cache partition start positions; these are
8329 expensive to compute on every read and write.
8330 (open_device): Cache open file descriptor in disk->data, so that we
8331 don't have to reopen it and flush the buffer cache for consecutive
8332 operations on the same device.
8333 (grub_util_biosdisk_close): New function.
8334 (grub_util_biosdisk_dev): Set `close' member.
8335
8336 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
8337 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
8338 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
8339 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
8340 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
8341
4a6d2d06
VS
83422010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8343
8344 Compile parts of grub-emu as modules.
8345
8346 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
8347 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
8348 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
8349 (all-local): Add $(GRUB_EMU).
8350 (install-local): Install $(GRUB_EMU).
8351 (uninstall): Uninstall $(GRUB_EMU).
8352 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
8353 * kern/dl.c: Likewise.
8354 * commands/sleep.c: Not include machine/time.h.
8355 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
8356 (COMMON_CFLAGS): Likewise.
8357 (sbin_UTILITIES): Remove grub-emu.
8358 (grub_emu_SOURCES): Removed.
8359 (kernel_img_RELOCATABLE): New variable.
8360 (pkglib_PROGRAMS): Add kernel.img.
8361 (kernel_img_SOURCES): New variable
8362 (kernel_img_CFLAGS): Likewise.
8363 (kernel_img_LDFLAGS): Likewise.
8364 (TARGET_NO_STRIP): Likewise.
8365 (TARGET_NO_DYNAMIC_MODULES): Likewise.
8366 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
8367 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
8368 (grub-emu): New target.
8369 (GRUB_EMU): New variable.
8370 * configure.ac: Whitelist -emu as possible x86_64 architecture.
8371 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
8372 * loader/xnu.c: Likewise.
8373 * include/grub/pci.h: Likewise.
8374 * genemuinit.sh: New file.
8375 * genemuinitheader.sh: Likewise.
8376 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
8377 Support TARGET_NO_DYNAMIC_MODULES.
8378 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
8379 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
8380 * disk/loopback.c: Likewise.
8381 * font/font_cmd.c: Likewise.
8382 * partmap/acorn.c: Likewise.
8383 * partmap/amiga.c: Likewise.
8384 * partmap/apple.c: Likewise.
8385 * partmap/gpt.c: Likewise.
8386 * partmap/msdos.c: Likewise.
8387 * partmap/sun.c: Likewise.
8388 * parttool/msdospart.c: Likewise.
8389 * term/gfxterm.c: Likewise.
8390 * video/bitmap.c: Likewise.
8391 * video/readers/jpeg.c: Likewise.
8392 * video/readers/png.c: Likewise.
8393 * video/readers/tga.c: Likewise.
8394 * video/video.c: Likewise.
8395 * util/grub-emu.c (read_command_list): Removed.
8396 (main): Don't call util_init_nls.
8397 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
8398 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
8399
91fdd2ed
VS
84002010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
8403 date.mod, datehook.mod.
8404 (datetime_mod_SOURCES): New variable.
8405 (datetime_mod_CFLAGS): Likewise.
8406 (datetime_mod_LDFLAGS): Likewise.
8407 (date_mod_SOURCES): Likewise.
8408 (date_mod_CFLAGS): Likewise.
8409 (date_mod_LDFLAGS): Likewise.
8410 (datehook_mod_SOURCES): Likewise.
8411 (datehook_mod_CFLAGS): Likewise.
8412 (datehook_mod_LDFLAGS): Likewise.
8413 * conf/sparc64-ieee1275.rmk: Likewise.
8414 * lib/ieee1275/datetime.c: New file.
8415
873ccae6
VS
84162010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8417
8418 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
8419 (ieee1275_fb_mod_SOURCES): New variable.
8420 (ieee1275_fb_mod_CFLAGS): Likewise.
8421 (ieee1275_fb_mod_LDFLAGS): Likewise.
8422 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
8423 New proto.
8424 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
8425 (HEAP_MAX_ADDR): Likewise.
8426 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
8427 type.
8428 Correct stop condition.
8429 (grub_ieee1275_devices_iterate): New function.
8430 * video/ieee1275.c: New file.
8431
601c97c0
VS
84322010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
8433
8434 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
8435
8436 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
8437 as scratch.
8438 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
8439 SCRATCH_PAD_DISKBOOT as scratch.
8440 (bootit): Pass Openfirmware pointer in %o4.
8441 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
8442 of 0x200000.
8443 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
8444 with util/grub-mkrawimage.c.
8445 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
8446 * include/grub/aout.h (AOUT_MID_SUN): New definition.
8447 (grub_aout_get_type) [GRUB_UTIL]: Removed.
8448 (grub_aout_load) [GRUB_UTIL]: Likewise.
8449 * include/grub/kernel.h (grub_modules_get_end): New proto.
8450 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
8451 (SCRATCH_PAD_BOOT): New definition.
8452 (SCRATCH_PAD_DISKBOOT): Likewise.
8453 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
8454 * include/grub/sparc64/ieee1275/ieee1275.h
8455 (grub_ieee1275_original_stack): New variable
8456 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
8457 New definition
8458 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
8459 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
8460 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
8461 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
8462 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
8463 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
8464 (grub_platform_image_format_t): New type.
8465 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
8466 * kern/main.c (grub_modules_get_end)
8467 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
8468 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
8469 (codestart): Switch stacks.
8470 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
8471 variable.
8472 (grub_heap_init): Use grub_modules_get_end.
8473 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
8474 stack.
8475 * util/grub-mkrawimage.c (generate_image): Support sparc64.
8476 (main): Likewise.
8477 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
8478
d68b491e
TG
84792010-03-14 Thorsten Glaser <tg@mirbsd.org>
8480
8481 * util/grub-mkrescue.in: Base ISO UUID on UTC.
8482
4e02ed50
MK
84832010-03-08 Matt Kraai <kraai@ftbfs.org>
8484
8485 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
8486 bug #559005).
8487
1f15fc1e
VS
84882010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
8489
8490 * genmoddep.awk: Output all missing symbols and not only first.
8491
fce5d8ff
VS
84922010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8493
8494 * NEWS: Put the date of 1.98 release.
8495
d1e8a02f
VS
84962010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8497
8498 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
8499 ft2build.h.
8500
696fd607
VS
85012010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8502
8503 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
8504 completition in the middle of string.
8505
33e2e6f3
VS
85062010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8507
8508 * util/grub-mkrescue.in: Use mktemp with explicit template.
8509
b1f6d291
VS
85102010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8511
8512 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
8513
2ac227c7
VS
85142010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
8515
8516 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
8517 right pointer.
8518
8f9a632b
VS
85192010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8520
8521 Fix FreeBSD compilation.
8522
8523 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
8524 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
8525
60b03859
VS
85262010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
8527
8528 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
8529
48a5a769
VS
85302010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8531
8532 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
8533
3ab4bd77
VS
85342010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8535
8536 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
8537
d116e0d8
RM
85382010-03-04 Robert Millan <rmh.grub@aybabtu.com>
8539
8540 Support relative image path in theme file.
8541
8542 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
8543 (image_set_property): Handle theme_dir and relative path.
8544
c7ef54aa
VS
85452010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8546
8547 * configure.ac: Alias amd64 to x86_64.
8548
fcee14ed
VS
85492010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8550
8551 * NEWS: mention multiboot on EFI.
8552
d0780363
VS
85532010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8554
8555 * kern/main.c (grub_load_modules): Handle errors from init functions of
8556 embeded modules.
8557
41168ea4
VS
85582010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8559
8560 * normal/autofs.c (autoload_fs_module): Handle errors.
8561
b54d93ac
VS
85622010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8563
8564 Disable linux.mod on qemu-mips since it's not functional and leads
8565 to compilation failure.
8566
8567 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
8568 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
8569 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
8570 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
8571 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
8572 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
8573 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
8574 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
8575 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
8576 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
8577 Reported by: BVK Chaitanya
8578
fc8345da
JU
85792010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
8580
8581 * INSTALL: Add gettext as a dependency and add qemu to a new section
8582 "Prerequisites for make-check".
8583
4760f979
CF
85842010-03-04 Christian Franke <franke@computer.org>
8585
8586 * util/grub-pe2elf.c: Add missing include "progname.h".
8587
f209b5b2
VS
85882010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8589
8590 * normal/crypto.c (read_crypto_list): Fix a typo.
8591 Reported by: Seth Goldberg.
8592
b4b7be98
VS
85932010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8594
8595 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
f209b5b2 8596 Reported by: Seth Goldberg.
b4b7be98 8597
c0ee0385
VS
85982010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8599
8600 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
8601 ascii.bitmaps.
8602
a8efbf64
VS
86032010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8604
8605 * genmk.rb: Remove terminal*.lst in make clean.
f209b5b2 8606 Reported by: Seth Goldberg.
a8efbf64 8607
08dcd913
VS
86082010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
8609
8610 * util/i386/efi/grub-install.in: Copy gettext files.
8611
c4d0b332
VS
86122010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8613
8614 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
8615
c6f2fe52
VS
86162010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8617
8618 Wait for user entry basing on presence of output rather than on errors.
8619
8620 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
8621 (grub_install_newline_hook): Likewise.
8622 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
8623 * normal/menu.c (show_menu): Check line_counter to determine presence
8624 of output.
8625 * normal/term.c (grub_normal_line_counter): New variable.
8626 (grub_normal_get_line_counter): New function.
8627 (grub_install_newline_hook): Likewise.
8628
5382b1e4
VS
86292010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8630
8631 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
8632
5519963b
VS
86332010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
8634
8635 * configure.ac: Update version to 1.98.
8636
72b28631
VS
86372010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
8638
8639 * util/grub.d/10_linux.in (linux_entry): Don't default to
8640 gfxpayload=keep if Linux doesn't support video handover.
8641
c140a180
VS
86422010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
8643
8644 Don't compile video modules on yeeloong since video subsystem is part
8645 of kernel.
8646
8647 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
8648 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
8649 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
8650 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
8651 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
8652 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
8653 * include/grub/bitmap_scale.h: Likewise.
8654 * include/grub/bufio.h: Likewise.
8655 * include/grub/font.h: Likewise.
8656 * include/grub/gfxterm.h: Likewise.
8657 * include/grub/video.h: Likewise.
8658 * include/grub/vbe.h: Don't include video_fb.h.
8659 * video/i386/pc/vbe.c: Include video_fb.h.
8660 * commands/i386/pc/vbetest.c: Include video.h.
8661
a0ca21c2
CW
86622010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
8663
8664 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
8665 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
8666 default entry if GRUB_SAVEDEFAULT=true. This allows using
8667 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
8668 saving a new default on every boot.
8669
4a8a763c
VS
86702010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8671
8672 * normal/crypto.c (read_crypto_list): Fix a memory leak.
8673 * normal/term.c (read_terminal_list): Likewise.
8674 * normal/main.c (grub_normal_init_page): Likewise.
8675 (grub_normal_read_line_real): Likewise.
8676
607ffde2
VS
86772010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
8678
8679 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
8680 memory leak.
8681 Reported by: Seth Goldberg.
8682
2b8fa975
CW
86832010-02-24 Joey Korkames <joey+lists@kidfixit.com>
8684
8685 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
8686 duplicate declaration of `start'.
8687
618307dd
VS
86882010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8689
8690 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
8691 filename.
8692 Reported by: Georgy Buranov
8693
7dd05b96 86942010-02-20 Carles Pina i Estany <carles@pina.cat>
8695
8696 * util/grub-mkrawimage.c (usage): Change string formatting to
8697 improve gettext.
8698
d1484a42
MRA
86992010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
8700
8701 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
8702 backspace keys.
8703
42b1d186
VS
87042010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
8705
8706 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
8707 Reported by: Michael Suchanek.
8708
87092010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
0a39de87
ST
8710
8711 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
8712 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
8713
d9f31a41
VS
87142010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
8715
8716 Remove any reference to non-free fonts.
8717
8718 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
8719 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
8720 uses non-free components.
8721 * font/font.c (grub_font_get_name): Remove example name.
8722 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
8723 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8724 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
8725 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
8726
2793c71e
GB
87272010-02-16 Georgy Buranov <gburanov@gmail.com>
8728
8729 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
8730
402e3779
VS
87312010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8732
8733 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
8734 Double divisor.
8735 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
8736 features.
8737 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
8738
0dd1e0dd
VS
87392010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
8740
8741 * gensymlist.sh.in: Use TARGET_CC instead of CC.
8742
6fa7cfce
ST
87432010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8744
8745 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
8746 * docs/grub.texi (Command-line and menu entry commands): Document play
8747 command.
8748
37c8483b
ST
87492010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8750
8751 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
8752 parse arguments as inline tempo and notes. Move code for playing notes
8753 to...
8754 (play): ... new function.
8755
14da0fb7
ST
87562010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
8757
8758 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
8759 grub_uint16_t instead of short.
8760 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
8761 disk from little endian to cpu endianness.
8762
04459e70
ST
87632010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
8764
8765 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
8766 GRUB_TICKS_PER_SECOND instead of 120.
8767
a0876943
VS
87682010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8769
8770 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
8771 escape sequence after \e.
8772
e29f95dc
VS
87732010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8774
8775 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
8776 non-ASCII characters.
8777
d27859b2
VS
87782010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8779
8780 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
8781 set root in single quotes to prevent \, from being unescaped.
8782
bc028f2f
VS
87832010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8784
8785 Prevent unknown commands from stopping menuentry execution.
8786
8787 * script/execute.c (grub_script_execute_cmdline): Print error after
8788 unknown command.
8789
095f5f82
VS
87902010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
8791
8792 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
8793 Reported by: Pavel Pisa.
8794
8c717950
VS
87952010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8796
8797 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
8798
904935c3
VS
87992010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8800
8801 Merge grub_ieee1275_map_physical into grub_map and rename to
8802 grub_ieee1275_map
8803
8804 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
8805 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
8806 Remove.
8807 * kern/ieee1275/openfw.c (grub_map): Rename to ...
8808 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
8809 necessary.
8810 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
8811
5b59a4e3
VS
88122010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8813
8814 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
8815 opening and not after.
8816
69e137e8
VS
88172010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8818
8819 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
8820 constants.
8821
2c0fcc36
VS
88222010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8823
8824 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
8825 (alloc_phys): Use ALIGN_UP instead of align_addr.
8826
8c6052ce
VS
88272010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8828
8829 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
8830
17cec782
VS
88312010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8832
8833 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
8834
e0128bbd
VS
88352010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8836
8837 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
8838 verbose dprintf.
8839
ca62070b
VS
88402010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8841
8842 Fix over-4GiB seek on sparc64.
8843
8844 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
8845 Replace pos_i and pos_lo with pos. All users updated.
8846 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8847 New constant.
8848 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
8849 Likewise.
8850 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
8851 and pos_lo.
8852
bdca2607
VS
88532010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8854
8855 * util/grub-mkrawimage.c (main): Call set_program_name.
8856
da278c4d
VS
88572010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8858
8859 Properly align 64-bit targets.
8860
8861 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
8862 (generate_image): Use ALIGN_ADDR.
8863
b274d734
VS
88642010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8865
8866 Properly create cross-endian images.
8867
8868 * include/grub/types.h (grub_host_to_target_addr): New macro
8869 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
8870
82da2062
VS
88712010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
8872
8873 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
8874
7cae4377
VS
88752010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8876
8877 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
8878
8879 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
8880 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
8881 (grub_linux_boot): Divide by 64K when on VESA.
8882
65a533e7
VS
88832010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8884
8885 Support GRUB_GFXPAYLOAD_LINUX.
8886
8887 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
8888 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
8889
dd01d397
VS
88902010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
8891
8892 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
8893 to show messages instead of discarding them.
8894 Process errors after executing command and not before. Keep old method
8895 too as precaution.
8896
660960d6
VS
88972010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
8898
8899 * configure.ac: Check for ft2build.h.
8900
62509f04
VS
89012010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8902
8903 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
8904
473df63d
VS
89052010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8906
8907 * genkernsyms.sh.in: Use TARGET_CC.
8908
c98d2a13
CW
89092010-02-07 Colin Watson <cjwatson@ubuntu.com>
8910
8911 * NEWS: Update.
8912
6e14234c
VS
89132010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8914
8915 * include/grub/multiboot2.h: Remove leftover file.
e28e32ae
VS
8916 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
8917 * include/grub/partition.h [GRUB_UTIL]: Likewise.
6e14234c 8918
b255e9cf
YB
89192010-02-07 Yves Blusseau <blusseau@zetam.org>
8920
6e14234c 8921 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
b255e9cf 8922
98e6959d
VS
89232010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8924
8925 Fix warnings in grub-emu when compiling with maximum warning options.
8926
8927 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
8928 (grub_arch_modules_addr): Return 0 and not NULL.
8929 * util/misc.c (ENABLE_RELOCATABLE): New definition.
74e4934e 8930 (xstrdup): Use newstr instead of dup.
f88d801b
VS
8931 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
8932 of disk to dsk to avoid shadowing.
74e4934e
VS
8933 (find_free_slot): Fix prototype.
8934 * util/getroot.c (grub_util_is_dmraid): Make static.
8935 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
8936 Add missing prototype.
8937 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
98e6959d 8938
74e31b5c
VS
89392010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8940
8941 * loader/i386/linux.c (grub_linux_setup_video): Handle error
8942 appropriately.
8943
6b2ad14b
VS
89442010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8945
8946 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
8947 code out.
8948
8f891adc
VS
89492010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
8952 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
8953 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
8954 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
8955 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
8956 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
8957
74b45184
VS
89582010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8959
8960 * include/grub/err.h (grub_err_printf): Don't export.
8961
a4bced77
VS
89622010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8963
8964 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
8965
007d0695
VS
89662010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
8967
8968 * include/grub/i18n.h (grub_gettext_dummy): Removed.
8969 * kern/misc.c (grub_gettext_dummy): Make static.
8970
b6c0d9c2
VS
89712010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8972
8973 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
8974 by non-valid ones.
8975 * kern/term.c (grub_putchar): Likewise.
8976
f51a90d0
VS
89772010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8978
8979 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
8980 buggy hook call and memory leak.
8981
6846cec5
VS
89822010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8983
8984 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
8985
468d69fe
VS
89862010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8987
8988 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
8989
51906b8c
VS
89902010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8991
8992 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
8993 modevar.
8994 Return grub_errno on allocation error.
8995
09706ce5
VS
89962010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
8997
8998 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
8999
911df80c
YB
90002010-02-06 Yves Blusseau <blusseau@zetam.org>
9001
9002 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
9003 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
9004
3746a6bc
VS
90052010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9006
9007 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
9008 non-pxe disk.
9009 (grub_pxefs_open): Likewise.
9010
09706ce5
VS
90112010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9012
9013 * util/grub.d/10_hurd.in: Add --class information to menuentries.
9014 * util/grub.d/10_kfreebsd.in: Likewise.
9015 * util/grub.d/10_linux.in: Likewise.
9016
7cc192d9
VS
90172010-02-06 Colin D Bennett <colin@gibibit.com>
9018
9019 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
9020 (gfxmenu_mod_SOURCES): New variable.
9021 (gfxmenu_mod_CFLAGS): Likewise.
9022 (gfxmenu_mod_LDFLAGS): Likewise.
9023 * include/grub/term.h (grub_term_set_current_output): Declare
9024 argument as const.
9025 * docs/gfxmenu-theme-example.txt: New file.
9026 * gfxmenu/gfxmenu.c: Likewise.
9027 * gfxmenu/gui_box.c: Likewise.
9028 * gfxmenu/gui_canvas.c: Likewise.
9029 * gfxmenu/gui_circular_progress.c: Likewise.
9030 * gfxmenu/gui_image.c: Likewise.
9031 * gfxmenu/gui_label.c: Likewise.
9032 * gfxmenu/gui_list.c: Likewise.
9033 * gfxmenu/gui_progress_bar.c: Likewise.
9034 * gfxmenu/gui_string_util.c: Likewise.
9035 * gfxmenu/gui_util.c: Likewise.
9036 * gfxmenu/icon_manager.c: Likewise.
9037 * gfxmenu/model.c: Likewise.
9038 * gfxmenu/named_colors.c: Likewise.
9039 * gfxmenu/theme_loader.c: Likewise.
9040 * gfxmenu/view.c: Likewise.
9041 * gfxmenu/widget-box.c: Likewise.
9042 * include/grub/gfxmenu_model.h: Likewise.
9043 * include/grub/gfxmenu_view.h: Likewise.
9044 * include/grub/gfxwidgets.h: Likewise.
9045 * include/grub/gui.h: Likewise.
9046 * include/grub/gui_string_util.h: Likewise.
9047 * include/grub/icon_manager.h: Likewise.
9048
90492010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9050
9051 Agglomerate scrolling in gfxterm.
9052
9053 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
9054 (grub_virtual_screen_setup): Initialise 'total_screen'.
9055 (write_char): Split to ...
9056 (paint_char): ... this ...
9057 (write_char): ... and this.
9058 (paint_char): Handle delayed scrolling.
9059 (draw_cursor): Likewise.
9060 (scroll_up): Split to ...
9061 (real_scroll): ... this ...
9062 (scroll_up): ... and this.
9063 (real_scroll): Handle multi-line scroll and draw below-the-bottom
9064 characters.
9065 (grub_gfxterm_refresh): Call real_scroll.
9066
90672010-02-06 Colin D Bennett <colin@gibibit.com>
9068
9069 * include/grub/misc.h (grub_iscntrl): New inline function.
9070 (grub_isalnum): Likewise.
9071 (grub_strtol): Likewise.
9072
90732010-02-06 Colin D Bennett <colin@gibibit.com>
9074
9075 * normal/menu_text.c (get_entry_number): Move from here ...
9076 * normal/menu.c (get_entry_number): ... moved here.
9077 * include/grub/menu.h (grub_menu_get_default_entry_index):
9078 New prototype.
9079 * normal/menu.c (grub_menu_get_default_entry_index): New function.
9080 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
9081 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
9082 (grub_menu_viewer_should_return): Likewise.
9083 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
9084 * normal/menu_text.c (run_menu): Enable menu switching.
9085 * normal/menu_viewer.c (should_return): New variable.
9086 (menu_viewer_changed): Likewise.
9087 (grub_menu_viewer_show_menu): Handle menu viewer changes.
9088 (grub_menu_viewer_should_return): New function.
9089 (menuviewer_write_hook): Likewise.
9090 (grub_menu_viewer_init): Likewise.
9091
90922010-02-06 Colin D Bennet <colin@gibibit.com>
90932010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9094
9095 Support for gfxterm in a window.
9096
9097 * include/grub/gfxterm.h: New file.
9098 * include/grub/video.h (struct grub_video_rect): New declaration.
9099 (grub_video_rect_t): Likewise.
9100 * term/gfxterm.c (struct grub_gfxterm_window): New type.
9101 (refcount): New variable.
9102 (render_target): Likewise.
9103 (window): Likewise.
9104 (repaint_callback): Likewise.
9105 (grub_virtual_screen_setup): Use 'render_target'.
9106 (init_window): New function.
9107 (grub_gfxterm_init_window): Likewise.
9108 (grub_gfxterm_init): Check reference counter.
9109 Use init_window.
9110 (destroy_window): New function.
9111 (grub_gfxterm_destroy_window): Likewise.
9112 (grub_gfxterm_fini): Check reference counter.
9113 Use destroy_window.
9114 (redraw_screen_rect): Restore viewport.
9115 Use 'render_target' and 'window'.
9116 Call 'repaint_callback'.
9117 (write_char): Use 'render_target'.
9118 (draw_cursor): Likewise.
9119 (scroll_up): Restore viewport.
9120 Use 'render_target' and 'window'.
9121 Call 'repaint_callback'.
9122 (grub_gfxterm_cls): Likewise.
9123 (grub_gfxterm_refresh): Use 'window'.
9124 (grub_gfxterm_set_repaint_callback): New function.
9125 (grub_gfxterm_background_image_cmd): Use 'window'.
9126 (grub_gfxterm_get_term): New function.
9127 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
9128
91292010-02-06 Colin D Bennett <colin@gibibit.com>
9130
9131 Bitmap scaling support.
9132
9133 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
9134 (bitmap_scale_mod_SOURCES): New variable.
9135 (bitmap_scale_mod_CFLAGS): Likewise.
9136 (bitmap_scale_mod_LDFLAGS): Likewise.
9137 * include/grub/bitmap_scale.h: New file.
9138 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
9139 (background_image_cmd_options): New variable.
9140 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
9141 (cmd): Rename and change type to ...
9142 (background_image_cmd_handle): ... this. All users updated.
9143 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
9144 * video/bitmap_scale.c: New file.
9145
91462010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9147
9148 SDL support.
9149
9150 * Makefile.in (LIBSDL): New variable.
9151 (enable_grub_emu_sdl): Likewise.
9152 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
9153 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
9154 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
9155 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
9156 * util/sdl.c: New file.
9157
91582010-02-06 Colin D Bennett <colin@gibibit.com>
91592010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9160
9161 Double buffering support.
9162
9163 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
9164 * include/grub/video.h: Update comment.
9165 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
9166 New type.
9167 (grub_video_fb_doublebuf_blit_init): New prototype.
9168 * term/gfxterm.c (scroll_up): Support double buffering.
9169 (grub_gfxterm_refresh): Likewise.
9170 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
9171 (grub_video_fb_doublebuf_blit_init): Likewise.
9172 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
9173 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
9174 'displayed_page', 'render_page' and 'update_screen'.
9175 (grub_video_vbe_fini): Free offscreen buffer.
9176 (doublebuf_pageflipping_commit): New function.
9177 (doublebuf_pageflipping_update_screen): Likewise.
9178 (doublebuf_pageflipping_init): Likewise.
9179 (double_buffering_init): Likewise.
9180 (grub_video_vbe_setup): Enable doublebuffering.
9181 (grub_video_vbe_swap_buffers): Implement.
9182 (grub_video_vbe_set_active_render_target): Handle double buffering.
9183 (grub_video_vbe_get_active_render_target): Likewise.
9184 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
9185 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
9186 (grub_video_vbe_enable_double_buffering): Likewise.
9187 (grub_video_vbe_swap_buffers): Use update_screen.
9188 (grub_video_set_mode): Use double buffering.
9189
91902010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9191
9192 * maintainance/gentrigtables.py: Remove.
9193 * lib/trig.c: Likewise.
9194
9195 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
9196
9197 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
9198 `trigtables.c'.
9199 (trigtables.c): New rule.
9200 (gentrigtables): Likewise.
9201 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
9202
92032010-02-06 Robert Millan <rmh.grub@aybabtu.com>
9204
9205 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
9206 integer constants.
9207
92082010-02-06 Colin D Bennet <colin@gibibit.com>
9209
9210 Trigonometry support.
9211
9212 * include/grub/trig.h: New file.
9213 * lib/trig.c: Likewise.
9214 * maintainance/gentrigtables.py: Likewise.
9215 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
9216 (trig_mod_SOURCES): New variable.
9217 (trig_mod_CFLAGS): Likewise.
9218 (trig_mod_LDFLAGS): Likewise.
9219
5562834e
VS
92202010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9221
9222 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
9223 disk devices.
9224
4f8528fc
VS
92252010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9226
9227 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
9228 error.
9229
2b4068e9
VS
92302010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9231
9232 * util/hostdisk.c (open_device): Don't use partition device when reading
9233 before the partition.
9234 (grub_util_biosdisk_read): Don't read from partition and before the
9235 partition in single operation.
9236 (grub_util_biosdisk_write): Don't write to partition and before the
9237 partition in single operation.
9238
399f6e4d
TL
92392010-02-03 Torsten Landschoff <torsten@debian.org>
9240
9241 * kern/disk.c (grub_disk_read): Fix offset computation when reading
9242 last sectors.
9243
996649b0
VS
92442010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
9245
9246 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
9247 CDROM reads.
9248 (grub_biosdisk_write): Refuse to write to CDROM.
9249
3b205d4d
VS
92502010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9251
9252 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
9253
61e89d9d
VS
92542010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
9255
9256 * font/font.c (find_glyph): Check that bmp_idx is available before
9257 using it.
9258 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
9259 with (font == NULL).
9260
bf7fcba2
CS
92612010-01-28 Christian Schmitt <chris@ilovelinux.de>
9262
9263 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
9264
f45d2663
BC
92652010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
9266
9267 * include/grub/script_sh.h (sourcecode): Add const qualifier.
9268 * util/grub-script-check.c (getline): Fix empty lines case.
9269
ec1444e6
RM
92702010-01-28 Robert Millan <rmh.grub@aybabtu.com>
9271
9272 * Makefile.in (check): Exit with fail status when one of the tests
9273 fails.
9274 * tests/example_functional_test.c (example_test): Fix reversed assert.
9275 * tests/example_unit_test.c (example_test): Likewise.
9276
2e1cb9bb
CW
92772010-01-28 Colin Watson <cjwatson@ubuntu.com>
9278
9279 * util/grub.d/10_linux.in: This script does not use any of the
9280 contents of gettext.sh, only the external command `gettext', so stop
9281 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
9282 the same prefix as GRUB.)
9283 * util/grub.d/10_kfreebsd.in: Likewise.
9284
63533ab0
VS
92852010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9286
9287 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
9288 of the line.
9289
989e1f93
VS
92902010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9291
9292 * kern/disk.c (grub_disk_read): Fix offset computation when reading
9293 last sectors.
9294
e709ebe2
VS
92952010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
9296
9297 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
9298 having a 4KiB and not 32KiB buffer size.
9299
27dea7ed
RM
93002010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9301
9302 * util/hostfs.c: Include `<errno.h>'.
9303 (grub_hostfs_read): Handle errors from fseeko() and fread().
9304
67667b9c
RM
93052010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9306
9307 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
9308 loop when using read hooks on files whose size isn't sector-aligned.
9309
c294d9d8
RM
93102010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9311
9312 Remove unused parameter.
9313
9314 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
9315 (grub_iso9660_open): Remove initialization of `data->length'.
9316
af75a9f1
RM
93172010-01-27 Robert Millan <rmh.grub@aybabtu.com>
9318
9319 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
9320 memleak conditions.
9321
254e2ce5 93222010-01-27 Carles Pina i Estany <carles@pina.cat>
9323
9324 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
9325 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
9326
b510928c 93272010-01-26 Carles Pina i Estany <carles@pina.cat>
9328
9329 * util/bin2h.c (usage): Fix warning (space after backslash).
9330
aa2f9dd2 93312010-01-26 Carles Pina i Estany <carles@pina.cat>
de0b7a4e 9332
9333 * font/font.c: Include `grub/fontformat.h.
9334 Remove font file format constants.
9335 (grub_font_load): Use the new macros.
9336 * include/grub/fontformat.h: New file.
9337 * util/grub-mkfont.c: Include `grub/fontformat.c'.
9338 (write_font_pf2): Use the new macros.
9339
94e7e712
RM
93402010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9341
9342 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
9343 does.
9344
3973a59a
RM
93452010-01-26 Robert Millan <rmh.grub@aybabtu.com>
9346
9347 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
9348
9349 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
9350 (_start): Macroify `0x7F'.
9351
9352 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
9353 (make_install_device): Use "(pxe)" as fallback prefix when booting
9354 via PXE.
9355
42e0cba3
GS
93562010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
9357
9358 * configure.ac: Reset LIBS after check for libgcc symbols.
9359
847effd8
CW
93602010-01-25 Colin Watson <cjwatson@ubuntu.com>
9361
9362 * util/hostdisk.c (open_device): Add trailing newline to debug
9363 message.
9364
ea4a7e35
GS
93652010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
9366
9367 * configure.ac: Check for `limits.h'.
9368 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
9369
67951a53
RM
93702010-01-24 Robert Millan <rmh.grub@aybabtu.com>
9371
9372 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
9373 capitalize error strings.
9374
c273d4ce
ST
93752010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
9376
9377 * util/grub.d/10_hurd.in: Add a recovery mode.
9378
69be5b74
VS
93792010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
9380
9381 * configure.ac: Check for libgcc symbols with -nostdlib.
9382
fc9e5810
BC
93832010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
9384
9385 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
9386
4b358c0a
VS
93872010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9388
9389 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
9390 stack since heap may be unavailable at that point.
9391 (grub_ofconsole_gotoxy): Likewise.
9392
454fcd1c
VS
93932010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9394
9395 * configure.ac: Check for _restgpr_14_x.
9396 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
9397 and _savegpr_* prototypes.
9398
566863ca
RM
93992010-01-22 Robert Millan <rmh.grub@aybabtu.com>
9400
9401 Use generic grub_reboot() for i386-efi.
9402
9403 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
9404 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
9405 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
9406
bf86e59a
VS
94072010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
9408
9409 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
9410 presence of "prefix" variable as it breaks when normal.mod is
9411 embedded.
9412
d645e0f8
VS
94132010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9414
9415 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
9416 stack since heap is unavailable at that point.
9417
f9ab2e25
VS
94182010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9419
9420 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
9421 (grub_freebsd_bootinfo): Rewritten.
9422 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
9423
01fc7054
VS
94242010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
9425
9426 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
9427
caab4fd6
RM
94282010-01-21 Robert Millan <rmh.grub@aybabtu.com>
9429
9430 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
9431 domain now.
9432
67eb1427
FZ
94332010-01-20 Felix Zielcke <fzielcke@z-51.de>
9434
9435 * util/misc.c (make_system_path_relative_to_its_root): Change the work
9436 around for handling "/" to the correct fix. Fix a memory leak. Use
9437 xstrdup instead of strdup.
9438
a9ed4ff3
VS
94392010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9440
9441 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
9442
94432010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
bed35bda
VS
9444
9445 Optimise glyph lookup by Basic Multilingual Plane lookup array.
9446
9447 * font/font.c (struct grub_font): New member 'bmp_idx'.
9448 (font_init): Initialise 'bmp_idx'.
9449 (load_font_index): Fill 'bmp_idx'.
9450 (find_glyph): Make inline. Use bmp_idx for BMP characters.
9451
48209f4f
VS
94522010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9453
9454 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
9455 unnecessary calls.
9456
9f0a4bb7
VS
94572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9458
9459 Move context handling out of the kernel.
9460
9461 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
9462 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
9463 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
9464 * conf/i386-efi.rmk: Likewise.
9465 * conf/i386-ieee1275.rmk: Likewise.
9466 * conf/i386-pc.rmk: Likewise.
9467 * conf/powerpc-ieee1275.rmk: Likewise.
9468 * conf/sparc64-ieee1275.rmk: Likewise.
9469 * conf/x86_64-efi.rmk: Likewise.
9470 * include/grub/env.h: Include grub/menu.h.
9471 (grub_env_var_type): Removed.
9472 (grub_env_var): Replaced field 'type' with 'global'.
9473 (grub_env_find): New prototype.
9474 (grub_env_context_open): Remove EXPORT_FUNC.
9475 (grub_env_context_close): Likewise.
9476 (grub_env_export): Likewise.
9477 (grub_env_set_data_slot): Removed.
9478 (grub_env_get_data_slot): Likewise.
9479 (grub_env_unset_data_slot): Likewise.
9480 (grub_env_unset_menu): New prototype.
9481 (grub_env_set_menu): Likewise.
9482 (grub_env_get_menu): Likewise.
9483 * include/grub/env_private.h: New file.
9484 * include/grub/normal.h (grub_context_init): New prototype.
9485 (grub_context_fini): Likewise.
9486 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
9487 * normal/context.c (grub_cmd_export): ... to here.
9488 * kern/env.c: Include env_private.h.
9489 (HASHSZ): Moved to include/grub/env_private.h.
9490 (grub_env_context): Likewise.
9491 (grub_env_sorted_var): Likewise.
9492 (current_context): Renamed from this ...
9493 (grub_current_context): ...to this. 'static' removed. All users updated.
9494 (grub_env_find): Removed 'static'.
9495 (grub_env_context_open): Moved to normal/context.c.
9496 (grub_env_context_close): Likewise.
9497 (grub_env_export): Likewise.
9498 (mangle_data_slot_name): Removed.
9499 (grub_env_set_data_slot): Likewise.
9500 (grub_env_get_data_slot): Likewise.
9501 (grub_env_unset_data_slot): Likewise.
9502 * kern/main.c (grub_set_root_dev): Don't export root.
9503 It will be done later.
9504 (grub_main): Don't export prefix.
9505 It will be done later.
9506 * normal/context.c: New file.
9507 * normal/main.c (free_menu): Use grub_env_unset_menu.
9508 (grub_normal_add_menu_entry): Use grub_env_get_menu.
9509 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
9510 (GRUB_MOD_INIT(normal)): Call grub_context_init.
9511 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
9512
8dd35b8c
VS
95132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9514
9515 setpci support.
9516
9517 * commands/setpci.c: New file.
9518 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
9519 (setpci_mod_SOURCES): New variable.
9520 (setpci_mod_CFLAGS): Likewise.
9521 (setpci_mod_LDFLAGS): Likewise.
9522
449193d5
VS
95232010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9524
9525 Byte-addressable PCI configuration space.
9526
9527 * bus/pci.c (grub_pci_make_address): Use byte address instead of
9528 dword address.
9529 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
9530 GRUB_PCI_REG_CACHELINE.
9531 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
9532 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
9533 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
9534 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
9535 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
9536 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
9537 grub_pci_make_address.
9538 (lock_rom_area): Likewise.
9539 * commands/lspci.c (grub_lspci_iter): Use macroses
9540 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
9541 of grub_pci_make_address.
9542 * disk/ata.c (grub_ata_pciinit): Likewise.
9543 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
9544 (GRUB_PCI_REG_VENDOR): Likewise.
9545 (GRUB_PCI_REG_DEVICE): Likewise.
9546 (GRUB_PCI_REG_COMMAND): Likewise.
9547 (GRUB_PCI_REG_STATUS): Likewise.
9548 (GRUB_PCI_REG_REVISION): Likewise.
9549 (GRUB_PCI_REG_CLASS): Likewise.
9550 (GRUB_PCI_REG_CACHELINE): Likewise.
9551 (GRUB_PCI_REG_LAT_TIMER): Likewise.
9552 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
9553 (GRUB_PCI_REG_BIST): Likewise.
9554 (GRUB_PCI_REG_ADDRESSES): Likewise.
9555 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9556 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9557 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9558 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9559 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9560 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
9561 (GRUB_PCI_REG_CIS_POINTER): Likewise.
9562 (GRUB_PCI_REG_SUBVENDOR): Likewise.
9563 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
9564 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
9565 (GRUB_PCI_REG_CAP_POINTER): Likewise.
9566 (GRUB_PCI_REG_IRQ_LINE): Likewise.
9567 (GRUB_PCI_REG_IRQ_PIN): Likewise.
9568 (GRUB_PCI_REG_MIN_GNT): Likewise.
9569 (GRUB_PCI_REG_MAX_LAT): Likewise.
9570 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
9571 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
9572 * video/efi_uga.c (find_framebuf): Likewise.
fdb1b2ea 9573 * video/sm712.c (grub_video_sm712_setup): Likewise.
449193d5
VS
9574 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
9575 space.
9576
96d73208
RM
95772010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9578
9579 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
9580 can be reliably determined to be supported.
9581
d4484482
RM
95822010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9583
9584 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
9585 that VESA is supported.
9586 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
9587 supported.
9588
00308ecf
VS
95892010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9590
9591 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
9592
f66924a4
RM
95932010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9594
9595 * util/misc.c (make_system_path_relative_to_its_root): Work around
9596 special-casing of "/", as previous incarnation of this routine did.
9597
cbca0ada
VS
95982010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9599
9600 Fix any-emu compilation.
9601
9602 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
9603 * grub_bin2h_SOURCES: New variable.
9604
34a66d99
RM
96052010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9606
9607 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
9608
94fabf58
RM
96092010-01-20 Robert Millan <rmh.grub@aybabtu.com>
9610
9611 * util/grub.d/00_header.in: Fix handling of locale_dir.
9612
02cf98ca
VS
96132010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9614
9615 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
9616 as possible unifont location (Gentoo).
9617 Reported by: Alexander Brüning
9618
327dbcd7
VS
96192010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9620
9621 Don't try to generate lists for kernel.img.
9622
9623 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
9624 (pkglib_MODULES): Remove kernel.img.
9625 (kernel_img_EXPORTS): Removed.
9626 (kernel_img_RELOCATABLE): New variable.
9627 * conf/x86_64-efi.rmk: Likewise.
9628 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
9629
ca467290
VS
96302010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9631
9632 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
9633 grub_xasprintf or grub_snprintf.
9634 (grub_vsprintf): Likewise.
9635 (grub_snprintf): New proto.
9636 (grub_vsnprintf): Likewise.
9637 (grub_xasprintf): Likewise.
9638 (grub_xvasprintf): Likewise.
9639 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
9640 (grub_sprintf): Removed.
9641 (grub_vsnprintf): New function.
9642 (grub_snprintf): Likewise.
9643 (grub_xvasprintf): Likewise.
9644 (grub_xasprintf): Likewise.
9645 (grub_vsprintf): Renamed to ...
9646 (grub_vsnprintf_real): ...this. New argument max_len.
9647
aca655fd
BC
96482010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
9649
9650 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
9651 fix grub-script-check warning.
9652
7ee92c32
VS
96532010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9654
9655 * include/grub/font.h (grub_font_load): Fix prototype.
9656
f80927ca
VS
96572010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9658
9659 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
9660
119c50ea
VS
96612010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9662
9663 * include/grub/x86_64/at_keyboard.h: New file.
9664
47d5f3c1
VS
96652010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 * loader/mips/linux.c: Include missing grub/i18n.h.
9668
55ff5266
RM
96692009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9670
9671 * normal/menu.c (notify_execution_failure): Clarify error message.
9672
c893cc87
RM
96732009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9674
9675 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
9676 return value (and revert all return statements). Update users.
9677
917dd370
CW
96782010-01-20 Dan Merillat <debian@dan.merillat.org>
9679
9680 * kern/device.c (grub_device_iterate): Allocate new part_ent
9681 structure based on sizeof (*p) rather than sizeof (p->next), to
9682 account for structure padding.
9683
9684 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
9685 disk is NULL, which might happen for LVM physical volumes with no
9686 LVM signature.
9687
d4a4ee57
RM
96882009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9689
9690 * loader/mips/linux.c (grub_cmd_initrd)
9691 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
9692
96932009-12-20 Robert Millan <rmh.grub@aybabtu.com>
9694
9695 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
9696 (grub_video_video_init, grub_video_bitmap_init)
9697 (grub_font_manager_init, grub_term_gfxterm_init)
9698 (grub_at_keyboard_init): New extern declarations.
9699 (grub_machine_init): Initialize gfxterm and at_keyboard.
9700
9701 * kern/main.c (grub_main): Revert grub_printf delay kludge.
9702
9703 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
9704 `gfxterm.mod' into core image.
9705
9706 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9707 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9708 (kernel_img_FORMAT): Copy to ...
9709
9710 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9711 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9712 (kernel_img_FORMAT): ... here, and ...
9713
9714 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
9715 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
9716 (kernel_img_FORMAT): ... here.
9717
9718 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
9719 and input (at_keyboard) terminals in kernel.
9720 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
9721
9722 (pkglib_MODULES): Remove `pci.mod'.
9723 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
9724 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
9725 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
9726 (at_keyboard_mod_LDFLAGS): Remove variables.
9727
97282010-01-11 Felix Zielcke <fzielcke@z-51.de>
9729
9730 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
9731
97322009-12-10 Robert Millan <rmh.grub@aybabtu.com>
9733
9734 * include/grub/mips/libgcc.h: Only export symbols for functions
9735 that libgcc provides.
9736
97372009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
9738
9739 MIPS support.
9740
9741 * bus/bonito.c: New file.
9742 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
9743 GRUB_PCI_NUM_DEVICES.
9744 * term/i386/pc/serial.c: Move to ...
9745 * term/serial.c: ... here. All users updated.
9746 * util/i386/pc/grub-mkimage.c: Move to ...
9747 * util/grub-mkrawimage.c: ... here. All users updated.
9748 * term/i386/pc/at_keyboard.c: Move to ...
9749 * term/at_keyboard.c: ... here. All users updated.
9750 * conf/mips-qemu-mips.rmk: New file.
9751 * conf/mips-yeeloong.rmk: Likewise.
9752 * conf/mips.rmk: Likewise.
9753 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
9754 mipsel-qemu-mips.
9755 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
9756 to port addresses.
9757 (grub_ata_pciinit): Support CS5536.
9758 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
9759 * font/font_cmd.c (loadfont_command): Open file before passing it to
9760 grub_font_load.
9761 (pseudo_file_read): New function.
9762 (pseudo_file_close): Likewise.
9763 (pseudo_fs): New structure.
9764 (load_font_module): New function.
9765 (GRUB_MOD_INIT(font_manager)): Load embedded font.
9766 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
9767 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
9768 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
9769 * include/grub/i386/at_keyboard.h: Split into ...
9770 * include/grub/at_keyboard.h: ... this ...
9771 * include/grub/i386/at_keyboard.h: ... and this.
9772 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
9773 New prototype.
9774 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
9775 updated.
9776 (grub_elf64_size): Likewise.
9777 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
9778 filename.
9779 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
9780 * include/grub/i386/coreboot/serial.h: Rewritten.
9781 * include/grub/i386/ieee1275/serial.h: Include
9782 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
9783 * include/grub/i386/pc/serial.h: Moved from here ...
9784 * include/grub/serial.h: ... to here. All users updated.
9785 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
9786 (GRUB_PCI_NUM_BUS): Likewise.
9787 (GRUB_PCI_NUM_DEVICES): Likewise.
9788 (grub_pci_device_map_range): Add missing volatile keyword.
9789 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
9790 * include/grub/mips/at_keyboard.h: New file.
9791 * include/grub/mips/cache.h: Likewise.
9792 * include/grub/mips/io.h: Likewise.
9793 * include/grub/mips/kernel.h: Likewise.
9794 * include/grub/mips/libgcc.h: Likewise.
9795 * include/grub/mips/pci.h: Likewise.
9796 * include/grub/mips/qemu-mips/boot.h: Likewise.
9797 * include/grub/mips/qemu-mips/kernel.h: Likewise.
9798 * include/grub/mips/qemu-mips/loader.h: Likewise.
9799 * include/grub/mips/qemu-mips/memory.h: Likewise.
9800 * include/grub/mips/qemu-mips/serial.h: Likewise.
9801 * include/grub/mips/qemu-mips/time.h: Likewise.
9802 * include/grub/mips/relocator.h: Likewise.
9803 * include/grub/mips/time.h: Likewise.
9804 * include/grub/mips/types.h: Likewise.
9805 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
9806 * include/grub/mips/yeeloong/boot.h: Likewise.
9807 * include/grub/mips/yeeloong/kernel.h: Likewise.
9808 * include/grub/mips/yeeloong/loader.h: Likewise.
9809 * include/grub/mips/yeeloong/memory.h: Likewise.
9810 * include/grub/mips/yeeloong/pci.h: Likewise.
9811 * include/grub/mips/yeeloong/serial.h: Likewise.
9812 * include/grub/mips/yeeloong/time.h: Likewise.
9813 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
9814 * kern/elf.c (grub_elf32_size): New parameter. All users
9815 updated.
9816 (grub_elf64_size): Likewise.
9817 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
9818 Load modules before saying "Welcome to GRUB!".
9819 Call grub_refresh after saying "Welcome to GRUB!".
9820 * kern/mips/cache.S: New file.
9821 * kern/mips/cache_flush.S: Likewise.
9822 * kern/mips/dl.c: Likewise.
9823 * kern/mips/init.c: Likewise.
9824 * kern/mips/qemu-mips/init.c: Likewise.
9825 * kern/mips/startup.S: Likewise.
9826 * kern/mips/yeeloong/init.c: Likewise.
9827 * kern/term.c (grub_putcode): Handle NULL terminal.
9828 (grub_getcharwidth): Likewise.
9829 (grub_getkey): Likewise.
9830 (grub_checkkey): Likewise.
9831 (grub_getkeystatus): Likewise.
9832 (grub_getxy): Likewise.
9833 (grub_getwh): Likewise.
9834 (grub_gotoxy): Likewise.
9835 (grub_cls): Likewise.
9836 (grub_setcolorstate): Likewise.
9837 (grub_setcolor): Likewise.
9838 (grub_getcolor): Likewise.
9839 (grub_refresh): Likewise.
9840 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
9841 (write_jump): Add hatch nop.
9842 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
9843 * lib/mips/setjmp.S: New file.
9844 * loader/mips/linux.c: Likewise.
9845 * term/i386/pc/at_keyboard.c: Move from here ...
9846 * term/at_keyboard.c: ... to here.
9847 * term/i386/pc/serial.c: Moved from here ...
9848 * term/serial.c: ... to here. All users updated.
9849 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
9850 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
9851 (serial_translate_key_sequence): Avoid deadlock.
9852 (grub_serial_getkey): Handle backspace.
9853 (grub_serial_putchar): Fix newline handling.
9854 * util/i386/pc/grub-mkimage.c: Move from here ...
9855 * util/grub-mkrawimage.c: ... to here. All users updated.
9856 (generate_image): New parameters 'font_path' and 'format'.
9857 Support embedding font.
9858 Use grub_host_to_target* instead of grub_cpu_to_le*.
9859 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
9860 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
9861 (options): New option "--font".
9862 (usage): Likewise.
9863 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
9864 (main): Handle "--font".
9865 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
9866 (grub_virtual_screen_setup): Set bg_color_display.
9867 (redraw_screen_rect): Use bg_color_display instead of incorrect
9868 bg_color.
9869 (grub_gfxterm_cls): Likewise.
9870 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
9871 Support embedding config file.
9872 (add_segments): Likewise.
9873 (options): New option "--config".
9874 (main): Handle "--config".
9875 * video/sm712.c: New file.
9876
25c2b5b3
RM
98772010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9878
9879 Fix parallel builds.
9880
9881 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
9882 font.c depend on ascii.h).
9883
98842010-01-12 Carles Pina i Estany <carles@pina.cat>
9885
9886 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
9887
98882010-01-11 Carles Pina i Estany <carles@pina.cat>
9889
9890 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
9891 By default: disabled.
9892 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
9893 parameter.
9894
98952010-01-10 Carles Pina i Estany <carles@pina.cat>
9896
9897 * font/font.c: Update copyright years.
9898 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
9899
99002010-01-10 Carles Pina i Estany <carles@pina.cat>
9901
9902 * font/font.c: Include `ascii.h'.
9903 (ASCII_BITMAP_SIZE): New macro.
9904 (ascii_font_glyph): Define.
9905 (ascii_glyph_lookup): New function.
9906 (grub_font_get_string_width): Change comment. If glyph not found, use
9907 ascii_glyph_lookup.
9908 (grub_font_get_glyph_with_fallback): If glyph not available returns
9909 ascii_glyph_lookup.
9910 * util/grub-mkfont.c (file_formats): New enum.
9911 (options): Add `ascii-bitmaps' new option.
9912 (usage): Add `asii-bitmaps' new option.
9913 (write_font_ascii_bitmap): New function.
9914 (write_font): Rename to ...
9915 (write_font_p2): ... this. Remove print_glyphs call.
9916 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
9917 used. Call print_glyphs.
9918 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
9919
99202010-01-14 Robert Millan <rmh.grub@aybabtu.com>
9921
9922 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
9923 (grub_bin2h_SOURCES): New variable.
9924 * util/bin2h.c: New file.
9925
915fc1b8
VS
99262010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
9927
9928 * include/multiboot.h: Resynced with spec.
9929 * include/multiboot2.h: Likewise.
9930 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
9931 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
9932
9444b678
RM
99332010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9934
9935 * include/grub/term.h (grub_term_register_input,
9936 grub_term_register_output): Check return of terminal init()
9937 routines, and abort if errors are raised.
9938
9939 * commands/terminal.c: Update copyright year.
9940
cba98e8d
RM
99412010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9942
9943 * commands/terminal.c (grub_cmd_terminal_input)
9944 (grub_cmd_terminal_output): Check return of terminal init()
9945 routines, and abort if errors are raised.
9946
6f7db5d6
VS
99472010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9948
9949 * include/grub/i386/bsd.h: Fix include pathes.
9950
262bff8d
VS
99512010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
9952
9953 Add missing *BSD copyright headers.
9954
9955 * include/grub/aout.h: Add BSD licence.
9956 * include/grub/i386/bsd.h: Parts under different licences moved to ...
9957 * include/grub/i386/freebsd_linker.h: ... here,
9958 * include/grub/i386/freebsd_reboot.h: ... here,
9959 * include/grub/i386/netbsd_bootinfo.h: ... here,
9960 * include/grub/i386/netbsd_reboot.h: ... here,
9961 * include/grub/i386/openbsd_bootarg.h: ... here,
9962 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
9963 licence to each file.
9964
b2cab848
RM
99652010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9966
9967 * acinclude.m4: Remove `nop' assembly instruction; it's not
9968 implemented by all architectures.
9969
2cb6be4b
RM
99702010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9971
9972 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
9973 ELILO. This is no longer necessary.
9974
a2eaee15
BC
99752010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
9976
9977 Added new tool, grub-scrit-check to verify grub.cfg syntax.
9978
9979 * util/grub-script-check.c: grub-script-check tool.
9980 * conf/common.rmk: Make rules for grub-script-check.
9981
88d17012
RM
99822010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9983
9984 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
9985 spotting it back in 2008. Shame on me for forgetting he did.
9986
9987 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
9988
8040619d
RM
99892010-01-18 Robert Millan <rmh.grub@aybabtu.com>
9990
9991 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
9992 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
9993 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
9994 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
9995 (GRUB_VIDEO_TYPE_EFI): Rename to ...
9996 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
9997
a0c2a0f6
RM
99982010-01-17 Robert Millan <rmh.grub@aybabtu.com>
9999
10000 * include/grub/test.h: Add license header.
10001 * tests/example_functional_test.c: Likewise.
10002 * tests/example_unit_test.c: Likewise.
10003 * tests/lib/functional_test.c: Likewise.
10004 * tests/lib/test.c: Likewise.
10005 * tests/lib/unit_test.c: Likewise.
10006
b0b13907
VS
100072010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
10008
10009 Use flag-based instead of hook-based video mode selection and "auto"
10010 keyword.
10011
10012 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
10013 (grub_video_set_mode): Changed prototype. All users updated.
10014 (grub_video_check_mode_flag): New inline function.
10015 * video/video.c (parse_modespec): New function.
10016 (grub_video_set_mode): Parse flags and keywords.
10017
ea379330 100182010-01-17 Carles Pina i Estany <carles@pina.cat>
10019
10020 * util/misc.c (grub_util_info): Fix the order of the parameters in a
10021 fprintf call.
10022
e15c215e
FZ
100232010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
10024
10025 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
10026
409ae1c9 100272010-01-16 Carles Pina i Estany <carles@pina.cat>
10028
10029 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
10030 string.
10031 * util/grub-emu.c (usage): Likewise.
10032 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
10033 * util/i386/efi/grub-mkimage.c (usage): Likewise.
10034 * util/i386/pc/grub-mkimage.c (usage): Likewise.
10035 * util/i386/pc/grub-setup.c (usage): Likewise.
10036
70a14d3d 100372010-01-16 Carles Pina i Estany <carles@pina.cat>
10038
10039 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
10040 the message.
10041 (grub_util_info): Likewise.
10042 (grub_util_error): Likewise.
10043 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
10044 and/or new lines in `grub_util_warna', `grub_util_info',
10045 `grub_util_error' calls.
10046 * util/getroot.c: Likewise.
10047 * util/grub-editenv.c: Likewise.
10048 * util/grub-emu.c: Likewise.
10049 * util/grub-fstest.c: Likewise.
10050 * util/grub-mkdevicemap.c: Likewise.
10051 * util/grub-mkfont.c: Likewise.
10052 * util/grub-mkpasswd-pbkdf2.c: Likewise.
10053 * util/grub-mkrelpath.c: Likewise.
10054 * util/grub-pe2elf.c: Likewise.
10055 * util/grub-probe.c: Likewise.
10056 * util/hostdisk.c: Likewise.
10057 * util/i386/efi/grub-mkimage.c: Likewise.
10058 * util/i386/pc/grub-mkimage.c: Likewise.
10059 * util/i386/pc/grub-setup.c: Likewise.
10060 * util/ieee1275/ofpath.c: Likewise.
10061 * util/mkisofs/eltorito.c: Likewise.
10062 * util/mkisofs/rock.c: Likewise.
10063 * util/mkisofs/write.c: Likewise.
10064 * util/raid.c: Likewise.
10065 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
10066 * util/sparc64/ieee1275/grub-setup.c: Likewise.
10067
a0b766fc
VS
100682010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 Enable multiboot on non-pc.
10071
10072 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
10073 multiboot.mod and multiboot2.mod to ...
10074 * conf/i386.rmk (pkglib_MODULES): ... here.
10075 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
10076 Moved to ...
10077 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
10078 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
10079 Moved to ...
10080 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
10081 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
10082 Moved to ...
10083 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
10084 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
10085 Moved to ...
10086 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
10087 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
10088 relocator.mod.
10089 (ata_mod_SOURCES): Removed.
10090 (ata_mod_CFLAGS): Likewise.
10091 (ata_mod_LDFLAGS): Likewise.
10092 (relocator_mod_SOURCES): Removed.
10093 (relocator_mod_CFLAGS): Likewise.
10094 (relocator_mod_ASFLAGS): Likewise.
10095 (relocator_mod_LDFLAGS): Likewise.
10096 Include i386.mk.
10097 * include/grub/x86_64/multiboot.h: New file.
10098 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
10099 Terminate EFI.
10100
884ade56
VS
101012010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10102
10103 Video multiboot support.
10104
10105 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
10106 New prototype.
10107 * include/multiboot.h: Resynced with multiboot specification.
10108 * include/multiboot2.h: Likewise.
10109 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
10110 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
10111 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
10112 (HAS_VGA_TEXT): Likewise.
10113 (accepts_video): New variable.
10114 (grub_multiboot_set_accepts_video): New function.
10115 (grub_multiboot_get_mbi_size): Account for video structures.
10116 (set_video_mode): New function.
10117 (retrieve_video_parameters): Likewise.
10118 (grub_multiboot_make_mbi): Fill video fields.
10119
0d90e8a6
VS
101202010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
10121
10122 Video driver ids.
10123
10124 * include/grub/video.h (grub_video_driver_id): New type.
10125 (grub_video_adapter): New member 'id'. All users updated.
10126 (grub_video_get_driver_id): New proto.
10127 * video/video.c (grub_video_get_driver_id): New function.
10128
5c71db1b 101292010-01-14 Carles Pina i Estany <carles@pina.cat>
10130
10131 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
10132 `var=val'.
10133
cca15b52 101342010-01-14 Carles Pina i Estany <carles@pina.cat>
10135
10136 * normal/cmdline.c (print_completion): Gettextizze.
10137
c586fbb2 101382001-01-14 Carles Pina i Estany <carles@pina.cat>
10139
10140 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
10141
ba2f6848 101422010-01-14 Carles Pina i Estany <carles@pina.cat>
10143
10144 * gettext/gettext.c (grub_gettext_translate): Push and pop
10145 grub_errno.
10146 (grub_gettext_delete_list): Change comment style.
10147 * kern/err.c (grub_error): Gettextizze.
10148 (grub_fatal): Gettextizze.
10149
0a46429a
RM
101502010-01-14 Robert Millan <rmh.grub@aybabtu.com>
10151
10152 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
10153 (grub_linux16_real_boot): ... this.
10154 * kern/i386/loader.S: Likewise.
10155 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
10156 (grub_linux16_boot): New function. Switches to text mode and calls
10157 grub_linux16_real_boot().
10158
10159 * loader/i386/bsd.c: Include `<grub/video.h>'.
10160 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
10161 text mode before calling grub_unix_real_boot().
10162
10163 * loader/i386/multiboot.c: Include `<grub/video.h>'.
10164 (grub_multiboot_boot): Switch to text mode before calling
10165 grub_relocator32_boot().
10166
10167 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
10168 (grub_chainloader_boot): Switch to text mode before calling
10169 grub_chainloader_real_boot().
10170
d6f93a66
RM
101712010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
101722010-01-05 Colin Watson <cjwatson@ubuntu.com>
10173
10174 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
10175 non-empty value.
10176
101772010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
101782010-01-05 Colin Watson <cjwatson@ubuntu.com>
10179
10180 * util/grub.d/00_header.in: Define a "savedefault" function for use
10181 in menu entries.
10182 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
10183
101842010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
101852010-01-05 Colin Watson <cjwatson@ubuntu.com>
10186
10187 * util/grub-mkconfig_lib.in (save_default_entry): Only set
10188 saved_entry if boot_once is unset.
10189 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
10190 previous saved entry (i.e. grub-reboot).
10191
101922009-12-08 Colin Watson <cjwatson@ubuntu.com>
10193
10194 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
10195
101962009-12-08 Colin Watson <cjwatson@ubuntu.com>
10197
10198 * util/grub.d/00_header.in: Use `set var=val' rather than plain
10199 `var=val'.
10200 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
10201
102022009-12-08 Colin Watson <cjwatson@ubuntu.com>
10203
10204 * util/grub-reboot.in: Fix --version output.
10205 * util/grub-set-default.in: Likewise.
10206
102072009-12-08 Colin Watson <cjwatson@ubuntu.com>
10208
10209 * util/grub.d/00_header.in: Silently ignore zero-sized environment
10210 blocks.
10211
102122009-12-08 Colin Watson <cjwatson@ubuntu.com>
10213
10214 * util/grub.d/00_header.in: Quote the value assigned to `default',
10215 in case it contains spaces.
10216
102172009-12-08 Colin Watson <cjwatson@ubuntu.com>
10218
10219 * util/grub.d/30_os-prober.in: Fix merge error that moved a
10220 `save_default_entry' call from the macosx case to the linux case.
10221
102222009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
102232009-10-25 Colin Watson <cjwatson@ubuntu.com>
10224
10225 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
10226 in `chosen' environment variable.
10227 * normal/menu_text.c (get_entry_number): Check if the variable
10228 matches the title of a menu entry.
10229 (run_menu): Pass menu to get_entry_number.
10230
10231 * util/grub-reboot.in: New file.
10232 * util/grub-set-default.in: New file.
10233 * conf/common.rmk (grub-reboot): New utility.
10234 (grub-set-default): New utility.
10235
10236 * util/grub-mkconfig_lib.in (save_default_entry): New function.
10237 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
10238 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
10239 move it to `saved_entry' for the next boot. Load environment on
10240 initialisation.
10241 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
10242 * util/grub.d/10_hurd.in: Likewise.
10243 * util/grub.d/10_linux.in (linux_entry): Likewise.
10244 * util/grub.d/10_windows.in: Likewise.
10245 * util/grub.d/30_os-prober.in: Likewise.
10246
10247 * util/grub-install.in: Create environment block.
10248 * util/i386/efi/grub-install.in: Likewise.
10249 * util/ieee1275/grub-install.in: Likewise.
10250 * util/sparc64/ieee1275/grub-install.in: Likewise.
10251
0934d184
BC
102522010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
10253
10254 Unit testing framework for GRUB.
10255
10256 * Makefile.in: Test framework build rules for 'make check'.
10257 * conf/tests.rmk: Build rules for individual tests and framework.
10258
10259 * include/grub/test.h: Header file for whitebox tests.
10260 * tests/lib/functional_test.c: Framework support for whitebox
10261 functional tests.
10262 * tests/lib/test.c: Common whitebox testing code for unit and
10263 functional tests.
10264 * tests/lib/unit_test.c: Framework support for whitebox unit
10265 tests.
10266
10267 * tests/util/grub-shell-tester.in: Support utility for grub-script
10268 tests.
10269 * tests/util/grub-shell.in: Utility to execute grub-script
10270 commands in a Qemu instance.
10271
10272 * tests/example_functional_test.c: Example whitebox functional
10273 test.
10274 * tests/example_grub_script_test.in: Example grub-script test.
10275 * tests/example_scripted_test.in: Example scripted test.
10276 * tests/example_unit_test.c: Example whitebox unit test.
10277
9c4ffeeb
VS
102782010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
10279
10280 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
10281 Add loader/i386/multiboot_mbi.c.
10282 (multiboot2_mod_SOURCES): Likewise.
10283 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
10284 (multiboot2_mod_SOURCES): Likewise.
10285 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
10286 (grub_multiboot_make_mbi): Likewise.
10287 (grub_multiboot_free_mbi): Likewise.
10288 (grub_multiboot_init_mbi): Likewise.
10289 (grub_multiboot_add_module): Likewise.
10290 (grub_multiboot_set_bootdev): Likewise.
10291 * loader/i386/multiboot.c (mbi): Removed.
10292 (mbi_dest): Likewise.
10293 (alloc_mbi): New variable.
10294 (grub_multiboot_payload_size): Removed. All users updated.
10295 (grub_multiboot_pure_size): New variable.
10296 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
10297 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
10298 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
10299 (grub_fill_multiboot_mmap): Likewise.
10300 (grub_multiboot_get_bootdev): Likewise.
10301 (grub_multiboot): Use multiboot_mbi functions.
10302 * loader/i386/multiboot_mbi.c: New file.
10303
17383dfe
VS
103042010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10305
10306 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
10307 it would result in module crash.
10308
c1f28820
VS
103092010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
10310
10311 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
10312 (grub_ofconsole_getwh): Split to ...
10313 (grub_ofconsole_getwh): ... this.
10314 (grub_ofconsole_dimensions): ...and this.
10315 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
10316
58655a16
RM
103172010-01-13 Robert Millan <rmh.grub@aybabtu.com>
10318
10319 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
10320
10891398
VS
103212010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10322
10323 * loader/i386/pc/multiboot2.c: Removed stalled file.
10324
0b8a223c
VS
103252010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
10326
10327 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
10328 Reported by: Grégoire Sutre
10329
92ab12b0
RM
103302010-01-11 Robert Millan <rmh.grub@aybabtu.com>
10331
10332 * util/misc.c (canonicalize_file_name): New function.
10333 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
10334 instead of realpath().
10335
a788afb6
CW
103362010-01-11 Colin Watson <cjwatson@ubuntu.com>
10337
10338 * util/grub-install.in (usage): Clarify meaning of --root-directory,
10339 and make it clearer that it's optional. Based on confusion
10340 witnessed on IRC.
10341
ffa8e3d2
VS
103422010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10343
10344 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
10345 in premature implicit newline.
10346
e9060a9d
VS
103472010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
10348
10349 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
10350 which resulted in garbled command line at the end of screen.
10351
f0d0c0b7
RM
103522010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10353
10354 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
10355 initialization with similar approach as with other Linux loaders.
10356
0e60bae7
RM
103572010-01-10 Robert Millan <rmh.grub@aybabtu.com>
10358
10359 Fix i386-ieee1275 build.
10360
10361 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
10362 and grub_term_height() for video_{width,height} initialization.
10363
103642010-01-10 Robert Millan <rmh.grub@aybabtu.com>
cdec4d31
RM
10365
10366 Fix grub-emu build.
10367
10368 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
10369
cdb3f378
RM
103702010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
103712010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10372
10373 Support for multiple terminals.
10374
10375 * Makefile.in (pkglib_DATA): terminal.lst.
10376 (terminal.lst): New target.
10377 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
10378 (GRUB_MOD_INIT(handler)): Likewise.
10379 (GRUB_MOD_FINI(handler)): Likewise.
10380 * commands/help.c (grub_cmd_help): Handle multiple terminals.
10381 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
10382 * commands/sleep.c (do_print): Use grub_term_restore_pos.
10383 (grub_cmd_sleep): Use grub_term_save_pos.
10384 * commands/terminal.c: New file.
10385 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
10386 commands/terminal.c and lib/charset.c.
10387 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
10388 (pkglib_MODULES): Add terminal.mod.
10389 (terminal_mod_SOURCES): New variable.
10390 (terminal_mod_CFLAGS): Likewise.
10391 (terminal_mod_LDFLAGS): Likewise.
10392 * genhandlerlist.sh: Don't handle terminals.
10393 * genmk.rb: Generate terminal-*.lst.
10394 * genterminallist.sh: New file.
10395 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
10396 (grub_is_valid_utf8): Likewise.
10397 (grub_utf8_to_ucs4_alloc): Likewise.
10398 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
10399 (grub_menu_register_viewer): Changed argument.
10400 (grub_menu_try_text): New proto.
10401 (grub_gfxmenu_try_hook): New declaration.
10402 * include/grub/normal.h (grub_normal_exit_level): New declaration.
10403 (grub_menu_init_page): Additional argument term.
10404 (grub_normal_init_page): Likewise.
10405 (grub_cmdline_get): Arguments simplified.
10406 (grub_utf8_to_ucs4_alloc): Removed.
10407 (grub_print_ucs4): Additional argument term.
10408 (grub_getstringwidth): Likewise.
10409 (grub_print_message_indented): Likewise.
10410 (grub_menu_text_register_instances): New proto.
10411 (grub_show_menu): Likewise.
10412 (read_terminal_list): Likewise.
10413 (grub_set_more): Likewise.
10414 * include/grub/parser.h: Include handler.h.
10415 * include/grub/reader.h: Rewritten.
10416 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
10417 (GRUB_TERM_WIDTH): Changed to function.
10418 (GRUB_TERM_HEIGHT): Likewise.
10419 (GRUB_TERM_BORDER_WIDTH): Likewise.
10420 (GRUB_TERM_BORDER_HEIGHT): Likewise.
10421 (GRUB_TERM_NUM_ENTRIES): Likewise.
10422 (GRUB_TERM_ENTRY_WIDTH): Likewise.
10423 (GRUB_TERM_CURSOR_X): Likewise.
10424 (grub_term_input_class): Likewise.
10425 (grub_term_output_class): Likewise.
10426 (grub_term_outputs_disabled): New declaration.
10427 (grub_term_inputs_disabled): Likewise.
10428 (grub_term_outputs): Likewise.
10429 (grub_term_inputs): Likewise.
10430 (grub_term_register_input): Rewritten.
10431 (grub_term_register_output): Likewise.
10432 (grub_term_unregister_input): Likewise.
10433 (grub_term_unregister_output): Likewise.
10434 (FOR_ACTIVE_TERM_INPUTS): New macro.
10435 (FOR_DISABLED_TERM_INPUTS): Likewise.
10436 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
10437 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
10438 * include/grub/terminfo.h: Add oterm argument to all protypes.
10439 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
10440 Use grub_rescue_run.
10441 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
10442 All users updated.
10443 * kern/reader.c: Removed. All users updated.
10444 * kern/rescue_reader.c (grub_rescue_init): Removed.
10445 (grub_rescue_reader): Likewise.
10446 (grub_register_rescue_reader): Likewise.
10447 (grub_rescue_run): New function based on kern/reader.c.
10448 * kern/term.c: Adapted for multiterm.
10449 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
10450 (grub_is_valid_utf8): Likewise.
10451 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
10452 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
10453 right terminal.
10454 * loader/i386/linux.c (grub_linux_boot): Likewise.
10455 * normal/auth.c (grub_username_get): New function.
10456 (grub_auth_check_authentication): Use grub_username_get.
10457 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
10458 * normal/color.c: Adapt for multiterm.
10459 * normal/main.c (read_config_file): Don't use grub_reader_loop.
10460 (grub_normal_init_page): Additional argument term.
10461 (read_lists): Call read_terminal_lists.
10462 (grub_enter_normal_mode): Call grub_cmdline_run.
10463 Handle grub_normal_exit_level.
10464 (grub_cmd_normal): Make reentrant.
10465 (grub_cmd_normal_exit): New function.
10466 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
10467 * normal/menu.c: Adapt for multiterm.
10468 * normal/menu_entry.c: Likewise.
10469 * normal/menu_text.c: Likewise.
10470 * normal/menu_viewer.c: Removed. All users updated.
10471 * normal/term.c: New file.
10472 * util/console.c: Change order of includes to workaround a bug in
10473 ncurses headers.
10474 * term/terminfo.c: New argument oterm on all exported functions.
10475 All users updated.
10476 * util/grub-editenv.c (grub_term_input_class): Removed.
10477 (grub_term_output_class): Likewise.
10478
1a064917
RM
104792010-01-09 Robert Millan <rmh.grub@aybabtu.com>
10480
10481 Make loader output a bit more user-friendly.
10482
10483 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
10484 is being loaded. Likewise for the Hurd.
10485
10486 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
10487 that kernel of FreeBSD ${version} is being loaded.
10488
10489 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
10490 grub_dprintf().
10491 (grub_cmd_initrd): Likewise.
10492 * util/grub.d/10_linux.in (linux_entry): Print message indicating
10493 that Linux ${version} is being loaded. Likewise for initrd.
10494
5ce0a83a 104952010-01-09 Carles Pina i Estany <carles@pina.cat>
10496
10497 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
10498
809bbfeb 104992010-01-08 Carles Pina i Estany <carles@pina.cat>
10500
10501 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
10502 (GRUB_MOD_INIT): Gettextizze.
10503 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
10504 (GRUB_MOD_INIT): Gettextizze.
10505 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
10506 (grub_cmd_linux): Capitalise Linux.
10507 (GRUB_MOD_INIT): Gettextizze.
10508 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
10509 (grub_cmd_linux): Capitalise Linux.
10510 (GRUB_MOD_INIT): Gettextizze.
10511 * loader/i386/linux.c: Include `<grub/i18n.h>'.
10512 (grub_cmd_linux): Capitalise Linux.
10513 (GRUB_MOD_INIT): Gettextizze.
10514 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
10515 (GRUB_MOD_INIT): Gettextizze.
10516 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
10517 (grub_cmd_linux): Capitalise Linux.
10518 (GRUB_MOD_INIT): Gettextizze.
10519 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
10520 (grub_cpu_xnu_init): Gettextizze.
10521 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
10522 (GRUB_MOD_INIT): Gettextizze.
10523 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
10524 (GRUB_MOD_INIT): Gettextizze.
10525 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
10526 (grub_linux_load64): Capitalise Linux.
10527 (GRUB_MOD_INIT): Gettextizze.
10528 * loader/xnu.c: Include `<grub/i18n.h>'.
10529 (GRUB_MOD_INIT): Gettextizze.
10530 * po/POTFILES: Add `loader/efi/appleloader.c',
10531 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
10532 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
10533 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
10534 `loader/i386/xnu.c', `loader/multiboot_loader.c',
10535 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
10536 and `loader/xnu.c'.
10537
b394b2ca
RM
105382010-01-08 Robert Millan <rmh.grub@aybabtu.com>
10539
10540 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
10541
105422010-01-08 Robert Millan <rmh.grub@aybabtu.com>
cd943b75
RM
10543
10544 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
10545 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
10546 * util/mkisofs/mkisofs.c (main): Readjust --version output.
10547
bc8b32b3
RM
105482010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10549
10550 Reset Multiboot 2 support. New loader implements the draft in
10551 /branches/multiboot2 and shares as much code as possible with the
10552 production Multiboot 1 implementation.
10553
10554 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
10555 * loader/multiboot2.c: Likewise.
10556 * loader/i386/multiboot_helper.S: Likewise.
10557 * include/multiboot2.h: Replace with latest version from the draft
10558 in /branches/multiboot2.
10559
10560 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
10561 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
10562 and `loader/multiboot2.c'.
10563 (pkglib_MODULES): Add `multiboot2.mod'.
10564 (multiboot2_mod_SOURCES): New variable.
10565 (multiboot2_mod_LDFLAGS): Likewise.
10566 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
10567
10568 * conf/i386-pc.rmk: Likewise.
10569
10570 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
10571 (multiboot_mod_SOURCES): Remove variable.
10572 (multiboot_mod_LDFLAGS): Likewise.
10573 (multiboot_mod_CFLAGS): Likewise.
10574
10575 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
10576 `<multiboot2.h>' instead of `<multiboot.h>'.
10577 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
10578 (MULTIBOOT_HEADER_MAGIC): New macros.
10579
10580 * loader/multiboot_loader.c (module_version_status): Remove variable.
10581 (find_multi_boot2_header): Remove function.
10582 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
10583 logic. Always check for the Multiboot version we're compiling for.
10584 (grub_cmd_module_loader): Likewise.
10585 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
10586 command instead of `multiboot'.
10587
5d2c52b8
RM
105882010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10589
10590 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
10591 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
10592 all users.
10593
53108d92
RM
105942010-01-07 Robert Millan <rmh.grub@aybabtu.com>
105952010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10596
10597 Fix breakage introduced with previous commit.
10598
10599 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
10600 commands.
10601 * normal/handler.c (read_handler_list): Revert part of previous commit
10602 affecting this file.
10603 * normal/main.c (read_lists): Move read_handler_list() call back to ...
10604 (grub_normal_execute): ... here.
10605
e2e936b2
RM
106062010-01-07 Robert Millan <rmh.grub@aybabtu.com>
10607
10608 Merge prefix-redefinition-fix branch.
10609
10610 * normal/autofs.c (read_fs_list): Make function capable of being
10611 run multiple times, gracefuly replacing the previous data
10612 structures.
10613 * normal/dyncmd.c (read_command_list): Likewise.
10614 * normal/handler.c (read_handler_list): Likewise.
10615 * normal/main.c (read_lists): New function. Calls all the
10616 list reading functions.
10617 (grub_normal_execute): Use read_lists() instead of calling all
10618 list reading functions explicitly. Register read_lists() as a
10619 variable hook attached to ${prefix}.
10620
607a3701
VS
106212010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
10622
10623 Merge crypto branch.
10624
10625 * Makefile.in (pkglib_DATA): Add crypto.lst.
10626 (crypto.lst): New target.
10627 * commands/hashsum.c: New file.
10628 * commands/password.c (check_password): Use grub_crypto_memcmp.
10629 * commands/password_pbkdf2.c: New file.
10630 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
10631 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
10632 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
10633 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
10634 -I$(srcdir)/lib/libgcrypt_wrap.
10635 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
10636 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
10637 password_pbkdf2.mod.
10638 (crypto_mod_SOURCES): New variable.
10639 (crypto_mod_CFLAGS): Likewise.
10640 (crypto_mod_LDFLAGS): Likewise.
10641 (hashsum_mod_SOURCES): New variable.
10642 (hashsum_mod_CFLAGS): Likewise.
10643 (hashsum_mod_LDFLAGS): Likewise.
10644 (pbkdf2_mod_SOURCES): New variable.
10645 (pbkdf2_mod_CFLAGS): Likewise.
10646 (pbkdf2_mod_LDFLAGS): Likewise.
10647 (password_pbkdf2_mod_SOURCES): New variable.
10648 (password_pbkdf2_mod_CFLAGS): Likewise.
10649 (password_pbkdf2_mod_LDFLAGS): Likewise.
10650 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
10651 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
10652 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
10653 Include conf/gcry.rmk.
10654 * include/grub/auth.h: Rewritten.
10655 * include/grub/crypto.h: New file.
10656 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
10657 * include/grub/normal.h (read_crypto_list): New prototype.
10658 * lib/crypto.c: New file.
10659 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
10660 * lib/pbkdf2.c: Likewise.
10661 * normal/auth.c (grub_auth_strcmp): Removed.
10662 (grub_iswordseparator): Likewise.
10663 (grub_auth_strword): Likewise.
10664 (is_authenticated): Use grub_strword.
10665 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
10666 and grub_strword. Pass entered password to authentication callback.
10667 * normal/crypto.c: New file.
10668 * normal/main.c: Call read_crypto_list.
10669 * util/grub-mkpasswd-pbkdf2.c: New file.
10670 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
10671
42841caa
VS
106722010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
10673
10674 Fix descent and ascent calculation.
10675
10676 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
10677 (options): New option "asce".
10678 (usage): Likewise.
10679 (add_char): Ignore invalid glyphs for descent calculation.
10680 Calculate ascent from actual content.
10681 (print_glyphs): Use 'asce'.
10682 (write_font): Likewise. Allow ascent override.
10683 (main): Handle "asce" option.
10684
e7730de7 106852010-01-06 Carles Pina i Estany <carles@pina.cat>
10686
10687 * kern/err.c: Include `<grub/i18n.h>'.
10688 (grub_print_error): Add full stop. Gettextizze.
10689 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
10690 (grub_bsd_load_elf): Capitalise ELF.
10691 (grub_cmd_freebsd_loadenv): Add `s' in error string.
10692 (grub_cmd_freebsd_module): Likewise.
10693 (grub_cmd_freebsd_module_elf): Likewise.
10694 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
10695
40e3a41f 106962010-01-06 Carles Pina i Estany <carles@pina.cat>
10697
10698 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
10699 * commands/search_file.c (HELP_MESSAGE): New macro.
10700 * commands/search_label.c (HELP_MESSAGE): Likewise.
10701 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
10702 * po/POTFILES: Add `commands/search_file.c',
10703 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
10704 `commands/search.c'.
10705
83507e68
RM
107062010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10707
10708 * config.rpath: Update from Gnulib.
10709
465c787b
YB
107102010-01-05 Yves Blusseau <blusseau@zetam.org>
10711
10712 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
10713
6581dd3a
YB
107142010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
10715
10716 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
10717
3bff18c5
CW
107182010-01-05 Colin Watson <cjwatson@ubuntu.com>
10719
10720 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
10721 arguments to fread so that we get a return value in bytes, rather
10722 than something that will normally be rounded down to 0.
10723 Adjust error handling to avoid producing garbage when size_t is not
10724 the same size as long long.
10725
a1368118
CW
107262010-01-05 Colin Watson <cjwatson@ubuntu.com>
10727
10728 * util/mkisofs/write.c (padblock_write): Check return value of
10729 fread.
10730
7c302978
RM
107312010-01-05 Robert Millan <rmh.grub@aybabtu.com>
10732
10733 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
10734 floppy images now.
10735
10736 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
10737
e33ace06
RM
107382010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10739
10740 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
10741 instead of manual alignment.
10742 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
10743 verbose). Avoid attempts to read past end of the device
10744 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
10745 but GRUB_DISK_CACHE_SIZE may exceed that).
10746
4b856776
RM
107472010-01-04 Robert Millan <rmh.grub@aybabtu.com>
10748
10749 * commands/crc.c (grub_cmd_crc): Abort on read errors.
10750 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
10751 it to upper layer.
10752
52c2d97f
VS
107532010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10754
10755 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
10756 New constant.
10757 (grub_efi_piwg_device_path): New structure
10758 (grub_efi_piwg_device_path_t): New type.
10759 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
10760 (devpath_1): Transform to a structure. All users updated.
10761 (devpath_2): Likewise.
10762 (devpath_3): Likewise.
10763 (devpath_4): Likewise.
10764 (devpath_5): Likewise.
10765
98ff6a54
VS
107662010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
10767
10768 * loader/efi/appleloader.c: Restored. Update all users.
10769
3a73dcb6
RM
107702010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10771
10772 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
10773
10774 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
10775 (struct boot_blocklist): Move from here ...
10776 * include/grub/i386/pc/boot.h [ASM_FILE]
10777 (struct grub_boot_blocklist): ... to here. Update all users.
10778 (setup): Only initialize `start' member of `first_block'
10779 structure. Add assert() calls to verify the other members.
10780
10781 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
10782 (generate_image): Fix broken blocklist length initialization.
10783 Add assert() call to verify blocklist `segment' field.
10784
ab0eeb0c
RM
107852010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10786
10787 * loader/efi/appleloader.c: Remove. Update all users.
10788
58bc8bd5
RM
107892010-01-03 Robert Millan <rmh.grub@aybabtu.com>
10790
10791 * boot/i386/pc/boot.S: Update copyright year.
10792 * boot/i386/pc/cdboot.S: Likewise.
10793 * boot/i386/pc/diskboot.S: Likewise.
10794 * boot/i386/pc/lnxboot.S: Likewise.
10795 * boot/i386/pc/pxeboot.S: Likewise.
10796 * bus/pci.c: Likewise.
10797 * commands/cmp.c: Likewise.
10798 * commands/help.c: Likewise.
10799 * commands/hexdump.c: Likewise.
10800 * commands/i386/pc/halt.c: Likewise.
10801 * commands/i386/pc/play.c: Likewise.
10802 * commands/i386/pc/vbeinfo.c: Likewise.
10803 * commands/ls.c: Likewise.
10804 * commands/test.c: Likewise.
10805 * disk/dmraid_nvidia.c: Likewise.
10806 * disk/i386/pc/biosdisk.c: Likewise.
10807 * disk/ieee1275/nand.c: Likewise.
10808 * disk/ieee1275/ofdisk.c: Likewise.
10809 * disk/lvm.c: Likewise.
10810 * disk/raid.c: Likewise.
10811 * disk/raid6_recover.c: Likewise.
10812 * disk/scsi.c: Likewise.
10813 * fs/affs.c: Likewise.
10814 * fs/cpio.c: Likewise.
10815 * fs/ext2.c: Likewise.
10816 * fs/hfs.c: Likewise.
10817 * fs/iso9660.c: Likewise.
10818 * fs/ntfs.c: Likewise.
10819 * fs/sfs.c: Likewise.
10820 * fs/udf.c: Likewise.
10821 * fs/ufs.c: Likewise.
10822 * fs/xfs.c: Likewise.
10823 * gencmdlist.sh: Likewise.
10824 * genmk.rb: Likewise.
10825 * include/grub/disk.h: Likewise.
10826 * include/grub/efi/api.h: Likewise.
10827 * include/grub/efi/efi.h: Likewise.
10828 * include/grub/efi/pe32.h: Likewise.
10829 * include/grub/elf.h: Likewise.
10830 * include/grub/fs.h: Likewise.
10831 * include/grub/i386/at_keyboard.h: Likewise.
10832 * include/grub/i386/pc/memory.h: Likewise.
10833 * include/grub/i386/pc/vbe.h: Likewise.
10834 * include/grub/i386/pci.h: Likewise.
10835 * include/grub/i386/tsc.h: Likewise.
10836 * include/grub/ieee1275/ieee1275.h: Likewise.
10837 * include/grub/ntfs.h: Likewise.
10838 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
10839 * include/grub/sparc64/libgcc.h: Likewise.
10840 * include/grub/symbol.h: Likewise.
10841 * include/grub/types.h: Likewise.
10842 * include/multiboot2.h: Likewise.
10843 * io/gzio.c: Likewise.
10844 * kern/device.c: Likewise.
10845 * kern/disk.c: Likewise.
10846 * kern/efi/efi.c: Likewise.
10847 * kern/efi/mm.c: Likewise.
10848 * kern/elf.c: Likewise.
10849 * kern/file.c: Likewise.
10850 * kern/i386/dl.c: Likewise.
10851 * kern/i386/pc/init.c: Likewise.
10852 * kern/i386/pc/startup.S: Likewise.
10853 * kern/ieee1275/ieee1275.c: Likewise.
10854 * kern/ieee1275/init.c: Likewise.
10855 * kern/main.c: Likewise.
10856 * kern/mm.c: Likewise.
10857 * kern/powerpc/dl.c: Likewise.
10858 * kern/sparc64/dl.c: Likewise.
10859 * kern/x86_64/dl.c: Likewise.
10860 * lib/hexdump.c: Likewise.
10861 * loader/efi/appleloader.c: Likewise.
10862 * loader/i386/ieee1275/linux.c: Likewise.
10863 * loader/i386/pc/chainloader.c: Likewise.
10864 * loader/i386/pc/linux.c: Likewise.
10865 * loader/i386/pc/multiboot2.c: Likewise.
10866 * loader/ieee1275/multiboot2.c: Likewise.
10867 * loader/multiboot2.c: Likewise.
10868 * loader/multiboot_loader.c: Likewise.
10869 * loader/powerpc/ieee1275/linux.c: Likewise.
10870 * normal/completion.c: Likewise.
10871 * normal/menu_entry.c: Likewise.
10872 * partmap/apple.c: Likewise.
10873 * util/grub.d/10_hurd.in: Likewise.
10874 * util/hostfs.c: Likewise.
10875 * video/readers/png.c: Likewise.
10876
e2d70b5c
CW
108772010-01-03 Colin Watson <cjwatson@ubuntu.com>
10878
10879 * include/grub/misc.h (GNUC_PREREQ): New macro.
10880 (ATTRIBUTE_ERROR): New macro.
10881 * include/grub/list.h (grub_bad_type_cast_real): Use
10882 ATTRIBUTE_ERROR.
10883
a173283f 108842010-01-03 Carles Pina i Estany <carles@pina.cat>
10885
10886 * normal/menu_text.c (print_message): Change messages.
10887
7fa7ff74 108882010-01-03 Carles Pina i Estany <carles@pina.cat>
10889
10890 * normal/menu_entry.c (store_completion): Gettextizze.
10891
136d24f6 108922010-01-03 Carles Pina i Estany <carles@pina.cat>
10893
10894 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
10895
f936862e 108962010-01-03 Carles Pina i Estany <carles@pina.cat>
10897
10898 * po/POTFILES: Sort correctly.
10899
29c44ad1 109002010-01-03 Carles Pina i Estany <carles@pina.cat>
10901
10902 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
10903 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
10904 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
10905 full stop.
10906 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
10907 summary. Gettextizze the strings.
10908 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
10909 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
10910 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
10911 full stop.
10912 (GRUB_MOD_INIT): Remove command name from summary.
10913 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
10914 summary.
10915 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
10916 * term/i386/pc/serial.c (options): Add full stops.
10917 (GRUB_MOD_INIT): Remove command name from the summary.
10918
77a79592 109192010-01-03 Carles Pina i Estany <carles@pina.cat>
10920
10921 * commands/acpi.c: Gettextizze help strings and/or options. Include
10922 `grub/i18n.h' if needed.
10923 * commands/blocklist.c: Likewise.
10924 * commands/boot.c: Likewise.
10925 * commands/cat.c: Likewise.
10926 * commands/cmp.c: Likewise.
10927 * commands/configfile.c: Likewise.
10928 * commands/crc.c: Likewise.
10929 * commands/date.c: Likewise.
10930 * commands/echo.c: Likewise.
10931 * commands/efi/fixvideo.c: Likewise.
10932 * commands/efi/loadbios.c: Likewise.
10933 * commands/gptsync.c: Likewise.
10934 * commands/halt.c: Likewise.
10935 * commands/handler.c: Likewise.
10936 * commands/hdparm.c: Likewise.
10937 * commands/hexdump.c: Likewise.
10938 * commands/i386/cpuid.c: Likewise.
10939 * commands/i386/pc/drivemap.c: Likewise.
10940 * commands/i386/pc/halt.c: Likewise.
10941 * commands/i386/pc/pxecmd.c: Likewise.
10942 * commands/i386/pc/vbeinfo.c: Likewise.
10943 * commands/i386/pc/vbetest.c: Likewise.
10944 * commands/ieee1275/suspend.c: Likewise.
10945 * commands/keystatus.c: Likewise.
10946 * commands/loadenv.c: Likewise.
10947 * commands/ls.c: Likewise.
10948 * commands/lsmmap.c: Likewise.
10949 * commands/lspci.c: Likewise.
10950 * commands/memrw.c: Likewise.
10951 * commands/minicmd.c: Likewise.
10952 * commands/parttool.c: Likewise.
10953 * commands/password.c: Likewise.
10954 * commands/probe.c: Likewise.
10955 * commands/read.c: Likewise.
10956 * commands/reboot.c: Likewise.
10957 * commands/search.c: Likewise.
10958 * commands/sleep.c: Likewise.
10959 * commands/test.c: Likewise.
10960 * commands/true.c: Likewise.
10961 * commands/usbtest.c: Likewise.
10962 * commands/videotest.c: Likewise.
10963 * commands/xnu_uuid.c: Likewise.
10964 * disk/loopback.c: Likewise.
10965 * hello/hello.c: Likewise.
10966 * loader/i386/bsd.c: Likewise.
10967 * term/i386/pc/serial.c: Likewise.
10968 * po/POTFILES: Add new files.
10969
da8d5c53
CW
109702010-01-02 Colin Watson <cjwatson@ubuntu.com>
10971
10972 * term/i386/pc/at_keyboard.c
10973 (keyboard_controller_wait_untill_ready): Rename to ...
10974 (keyboard_controller_wait_until_ready): ... this. Update all users.
10975
33937904 109762010-01-01 Carles Pina i Estany <carles@pina.cat>
10977
10978 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
10979 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
10980 string using string width.
10981 * normal/menu_text.c (grub_print_message_indented): Use
10982 grub_print_spaces and not print_spaces.
10983 (print_timeout): Likewise.
10984 (print_spaces): Move to...
10985 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
10986
3fd3b8d8
RM
109872010-01-01 Robert Millan <rmh.grub@aybabtu.com>
10988
10989 Import from Gnulib.
10990
10991 * gnulib/getdelim.c: New file.
10992 * gnulib/getline.c: Likewise.
10993
33433555
VS
109942009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
10995
10996 * include/grub/list.h (grub_assert_fail): Removed.
10997 (grub_bad_type_cast_real): New function.
10998 (grub_bad_type_cast): New macro.
10999 (GRUB_AS_LIST): Use grub_bad_type_cast.
11000 (GRUB_AS_LIST_P): Likewise.
e44721e8 11001 (GRUB_AS_NAMED_LIST): Likewise.
33433555 11002 (GRUB_AS_NAMED_LIST_P): Likewise.
e44721e8 11003 (GRUB_AS_PRIO_LIST): Likewise.
33433555 11004 (GRUB_AS_PRIO_LIST_P): Likewise.
e44721e8 11005 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
33433555 11006
f5a51306
VS
110072009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
11008
11009 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
11010 Fix syntax error.
11011
90d1e879
RM
110122009-12-29 Robert Millan <rmh.grub@aybabtu.com>
11013
11014 * configure.ac: Check for TARGET_CFLAGS initialization before we
11015 initialize it ourselves (sigh).
11016 Move a few modifications to TARGET_CFLAGS to be unconditional
11017 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
11018 eh_frame)
11019
11020 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
11021 * term/i386/pc/at_keyboard.c
11022 (keyboard_controller_wait_untill_ready): Likewise.
11023 (keyboard_controller_led): Rename `led_status' paramter to avoid
11024 name conflict.
11025
465b5a81 110262009-12-28 Carles Pina i Estany <carles@pina.cat>
11027
11028 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
11029 quotes.
11030
c181849b
VS
110312009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11032
11033 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
11034
9c8739a4
VS
110352009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11036
11037 * normal/menu_text.c (grub_print_message_indented): Prevent
11038 past-the-end-of-array dereference.
11039
3e74249c
VS
110402009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
11041
11042 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
11043 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
11044
64fd18ed 110452009-12-27 Carles Pina i Estany <carles@pina.cat>
11046
11047 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
11048 * normal/main.c (grub_normal_read_line): Remove a space from the
11049 default prompt.
11050
714af9b9 110512009-12-27 Carles Pina i Estany <carles@pina.cat>
11052
11053 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
11054 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11055 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
11056 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
11057 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11058 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11059 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11060
82f3e412 110612009-12-26 Carles Pina i Estany <carles@pina.cat>
c541b01a 11062
11063 * video/readers/jpeg.c (cmd): Declare.
11064 (grub_cmd_jpegtest): Use `grub_command_t' type.
11065 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11066 Assign to `cmd'.
11067 (GRUB_MOD_FINI): Use `cmd' to unregister.
11068 * video/readers/png.c (cmd): Declare.
11069 (grub_cmd_pngtest): Use `grub_command_t' type.
11070 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11071 Assign to `cmd'.
11072 (GRUB_MOD_FINI): Use `cmd' to unregister.
11073 * video/readers/tga.c (cmd): Declare.
11074 (grub_cmd_tgatest): Use `grub_command_t' type.
11075 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
11076 Assign to `cmd'.
11077 (GRUB_MOD_FINI): Use `cmd' to unregister.
11078
82f3e412 110792009-12-26 Carles Pina i Estany <carles@pina.cat>
864ba2bb 11080
11081 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
11082 stops.
11083 * kern/corecmd.c (grub_register_core_commands): Likewise.
11084 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
11085 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
11086 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
11087 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11088 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
11089 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
11090 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
11091 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
11092 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11093 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
11094 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11095 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11096 * normal/handler.c (insert_handler): Likewise.
11097 * normal/main.c (GRUB_MOD_INIT): Likewise.
11098 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
11099
fdcdbb66 111002009-12-26 Carles Pina i Estany <carles@pina.cat>
11101
11102 * commands/help.c (grub_cmd_help): Print the command name before the
11103 summary.
11104 (GRUB_MOD_INIT): Remove command name from the summary.
11105 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
82f3e412 11106 string as summary.
fdcdbb66 11107 * lib/arg.c (find_long): Print the command name before the summary.
11108 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
11109 summary.
11110 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
11111 * commands/cat.c (GRUB_MOD_INIT): Likewise.
11112 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
11113 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
11114 * commands/crc.c (GRUB_MOD_INIT): Likewise.
11115 * commands/date.c (GRUB_MOD_INIT): Likewise.
11116 * commands/echo.c (GRUB_MOD_INIT): Likewise.
11117 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
11118 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11119 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11120 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
11121 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
11122 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
11123 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
11124 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11125 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
11126 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
11127 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
11128 * commands/ls.c (GRUB_MOD_INIT): Likewise.
11129 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11130 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11131 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11132 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
11133 * commands/password.c (GRUB_MOD_INIT): Likewise.
11134 * commands/probe.c (GRUB_MOD_INIT): Likewise.
11135 * commands/read.c (GRUB_MOD_INIT): Likewise.
11136 * commands/search.c (GRUB_MOD_INIT): Likewise.
11137 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
11138 * commands/test.c (GRUB_MOD_INIT): Likewise.
11139 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
11140 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
11141 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
11142 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
11143 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
11144 * lib/arg.c (GRUB_MOD_INIT): Likewise.
11145 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
11146 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
11147 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
11148 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
11149 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
11150 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
11151 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
11152 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
11153
9c288be2
VS
111542009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11155
11156 Use search command for preliminar UUID search.
11157
11158 * commands/search.c: Split into ...
11159 * commands/search_wrap.c: ...this
11160 * commands/search.c: ...and this.
11161 * commands/search_file.c: New file.
11162 * commands/search_label.c: New file.
11163 * commands/search_uuid.c: New file.
11164 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
11165 Add commands/search_wrap.c, commands/search_file.c,
11166 commands/search_label.c and commands/search_uuid.c.
11167 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
11168 (search_mod_SOURCES): Set to commands/search_wrap.c.
11169 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
11170 search_label.mod.
11171 (search_fs_file_mod_SOURCES): New variable.
11172 (search_fs_file_mod_CFLAGS): Likewise.
11173 (search_fs_file_mod_LDFLAGS): Likewise.
11174 (search_label_mod_SOURCES): Likewise.
11175 (search_label_mod_CFLAGS): Likewise.
11176 (search_label_mod_LDFLAGS): Likewise.
11177 (search_fs_uuid_mod_SOURCES): New variable.
11178 (search_fs_uuid_mod_CFLAGS): Likewise.
11179 (search_fs_uuid_mod_LDFLAGS): Likewise.
11180 (fs_file_mod_SOURCES): Removed.
11181 (fs_file_mod_CFLAGS): Likewise.
11182 (fs_file_mod_LDFLAGS): Likewise.
11183 (fs_uuid_mod_SOURCES): Removed.
11184 (fs_uuid_mod_CFLAGS): Likewise.
11185 (fs_uuid_mod_LDFLAGS): Likewise.
11186 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
11187 Set to util/grub-install.in.
11188 * disk/fs_file.c: Removed.
11189 * disk/fs_uuid.c: Likewise.
11190 * include/grub/search.h: New file.
11191 * util/grub-install.in: Handle sparc64.
11192 Create and use load.cfg.
11193 * util/sparc64/ieee1275/grub-install.in: Removed.
11194
db943399
VS
111952009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11196
11197 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
11198 Ignore return status if CF is cleared.
11199 (grub_biosdisk_get_diskinfo_standard): Likewise.
11200
3fdae612
RM
112012009-12-25 Robert Millan <rmh.grub@aybabtu.com>
11202
11203 * term/i386/pc/at_keyboard.c
11204 (keyboard_controller_wait_untill_ready): New function.
11205 (grub_keyboard_controller_write, grub_keyboard_controller_read)
11206 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
11207 for keyboard polling, rather than duplicate the same loop. This
11208 saves a few bytes in code size.
11209
7ebaa2b4
VS
112102009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
11211
11212 Support for (pxe[:server[:gateway]]) syntax and
11213 use environment variable for PXE.
11214
11215 * commands/i386/pc/pxecmd.c (options): Removed.
11216 (print_ip): Removed.
11217 (grub_cmd_pxe): Removed
11218 (grub_cmd_pxe_unload): New function.
11219 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
11220 (grub_pxe_your_ip): Made static.
11221 (grub_pxe_default_server_ip): Likewise.
11222 (grub_pxe_default_gateway_ip): Likewise.
11223 (grub_pxe_blksize): Likewise.
11224 (parse_ip): New function.
11225 (grub_pxe_open): Support server and gateway specification.
11226 (grub_pxe_close): Free disk->data.
11227 (grub_pxefs_open): Use disk->data.
11228 (grub_pxefs_read): Likewise.
11229 (grub_env_write_readonly): New function.
11230 (set_mac_env): Likewise.
11231 (set_env_limn_ro): Likewise.
11232 (parse_dhcp_vendor): Likewise.
11233 (grub_pxe_detect): Set the environment variables.
11234 (set_ip_env): New function.
11235 (write_ip_env): Likewise.
11236 (grub_env_write_pxe_default_server): Likewise.
11237 (grub_env_write_pxe_default_gateway): Likewise.
11238 (grub_env_write_pxe_blocksize): Likewise.
11239 (GRUB_MOD_INIT(pxe)): Set environment variables.
11240 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
11241 (grub_pxe_mac_addr_t): ... this. All users updated.
11242 (grub_pxe_your_ip): Removed.
11243 (grub_pxe_server_ip): Likewise.
11244 (grub_pxe_gateway_ip): Likewise.
11245 (grub_pxe_blksize): Likewise.
11246
ec5f98ab 112472009-12-25 Carles Pina i Estany <carles@pina.cat>
11248
11249 * commands/help.c: Include `<grub/i18n.h>'.
11250 (grub_cmd_help): Gettextizze.
11251 (GRUB_MOD_INIT): Likewise.
11252 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
11253 (GRUB_MOD_INIT): Gettextizze.
11254 * commands/search.c: Include `<grub/i18n.h>'.
11255 (options): Gettextizze.
11256 (GRUB_MOD_INIT): Gettextizze.
11257 * lib/arg.c: Include `<grub/i18n.h>'.
11258 (help_options): Gettextizze.
11259 (find_long): Likewise.
11260 (grub_arg_show_help): Likewise.
11261 * normal/dyncmd.c: Include `<grub/i18n.h>'.
11262 (read_command_list): Gettextizze.
11263 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
7ebaa2b4 11264 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
ec5f98ab 11265
22815526
RM
112662009-12-25 Robert Millan <rmh.grub@aybabtu.com>
11267
11268 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
11269 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
11270 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
11271 (led_status): New variable.
11272 (keyboard_controller_led): New function.
11273 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
11274 update led status for caps lock, num lock and scroll lock.
11275
0ad46fd7
FZ
112762009-12-25 Felix Zielcke <fzielcke@z-51.de>
11277
11278 * util/hostdisk.c (open_device): Fix a comment.
11279
d0e158c2
RM
112802009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11281
11282 * util/grub-install.in (host_os): New variable.
11283 * util/i386/efi/grub-install.in (host_os): Likewise.
11284
401c0ad6
RM
112852009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11286
11287 * util/mkisofs/write.c (padblock_write): Abort when given an
11288 excedingly large embed image, instead of silently truncating it.
11289
d14d3370
RM
112902009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11291
11292 * include/multiboot.h: Indentation fixes.
11293
eeed10b4
RM
112942009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11295
11296 * include/multiboot.h (struct multiboot_aout_symbol_table)
11297 (struct multiboot_elf_section_header_table): New structure
11298 declarations (stolen from GRUB Legacy).
11299 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
11300 table information.
11301
11302 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
11303 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
11304 type aliases.
11305
681c70ab
RM
113062009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11307
11308 * include/multiboot.h: Make comments src2texi-friendly.
11309
e4d47d8d
RM
113102009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11311
11312 For consistency with [multiboot]/docs/boot.S.
11313
11314 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
11315 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
11316 (MULTIBOOT_MAGIC2): Rename from this ...
11317 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
11318
a0b70bda
RM
113192009-12-24 Robert Millan <rmh.grub@aybabtu.com>
11320
11321 * include/multiboot.h: Remove `<grub/types.h>'.
11322 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
11323 types. Update all users.
11324
61ba42be 113252009-12-25 Carles Pina i Estany <carles@pina.cat>
11326
11327 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
11328 `couldn't' and `can not' by `cannot'.
11329 * commands/i386/pc/drivemap.c: Likewise.
11330 * disk/ata.c: Likewise.
11331 * disk/ieee1275/nand.c: Likewise.
11332 * fs/affs.c: Likewise.
11333 * fs/fat.c: Likewise.
11334 * fs/hfs.c: Likewise.
11335 * fs/hfsplus.c: Likewise.
11336 * fs/iso9660.c: Likewise.
11337 * fs/jfs.c: Likewise.
11338 * fs/minix.c: Likewise.
11339 * fs/reiserfs.c: Likewise.
11340 * fs/sfs.c: Likewise.
11341 * fs/udf.c: Likewise.
11342 * fs/ufs.c: Likewise.
11343 * fs/xfs.c: Likewise.
11344 * loader/powerpc/ieee1275/linux.c: Likewise.
11345 * loader/sparc64/ieee1275/linux.c: Likewise.
11346 * util/grub-probe.c: Likewise.
11347 * util/misc.c: Likewise.
11348
7fd0baee 113492009-12-24 Carles Pina i Estany <carles@pina.cat>
11350
11351 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
11352 grub_errno calls.
11353 * commands/acpi.c: Likewise.
11354 * commands/blocklist.c: Likewise.
11355 * commands/efi/loadbios.c: Likewise.
11356 * commands/i386/pc/drivemap.c: Likewise.
11357 * commands/loadenv.c: Likewise.
11358 * commands/memrw.c: Likewise.
11359 * commands/password.c: Likewise.
11360 * commands/videotest.c: Likewise.
11361 * disk/ata.c: Likewise.
11362 * disk/ata_pthru.c: Likewise.
11363 * disk/dmraid_nvidia.c: Likewise.
11364 * disk/ieee1275/nand.c: Likewise.
11365 * disk/ieee1275/ofdisk.c: Likewise.
11366 * disk/loopback.c: Likewise.
11367 * disk/lvm.c: Likewise.
11368 * disk/mdraid_linux.c: Likewise.
11369 * disk/raid.c: Likewise.
11370 * disk/raid6_recover.c: Likewise.
11371 * disk/scsi.c: Likewise.
11372 * efiemu/main.c: Likewise.
11373 * efiemu/mm.c: Likewise.
11374 * efiemu/pnvram.c: Likewise.
11375 * efiemu/symbols.c: Likewise.
11376 * font/font.c: Likewise.
11377 * fs/cpio.c: Likewise.
11378 * fs/hfsplus.c: Likewise.
11379 * fs/iso9660.c: Likewise.
11380 * fs/jfs.c: Likewise.
11381 * fs/minix.c: Likewise.
11382 * fs/ntfs.c: Likewise.
11383 * fs/ntfscomp.c: Likewise.
11384 * fs/reiserfs.c: Likewise.
11385 * fs/ufs.c: Likewise.
11386 * fs/xfs.c: Likewise.
11387 * gettext/gettext.c: Likewise.
11388 * include/grub/auth.h: Likewise.
11389 * kern/elf.c: Likewise.
11390 * kern/file.c: Likewise.
11391 * kern/ieee1275/init.c: Likewise.
11392 * kern/ieee1275/mmap.c: Likewise.
11393 * kern/ieee1275/openfw.c: Likewise.
11394 * kern/powerpc/dl.c: Likewise.
11395 * kern/sparc64/dl.c: Likewise.
11396 * lib/arg.c: Likewise.
11397 * loader/i386/bsd.c: Likewise.
11398 * loader/i386/bsdXX.c: Likewise.
11399 * loader/i386/efi/linux.c: Likewise.
11400 * loader/i386/efi/xnu.c: Likewise.
11401 * loader/i386/ieee1275/linux.c: Likewise.
11402 * loader/i386/linux.c: Likewise.
11403 * loader/i386/multiboot.c: Likewise.
11404 * loader/i386/pc/linux.c: Likewise.
11405 * loader/i386/pc/multiboot2.c: Likewise.
11406 * loader/i386/xnu.c: Likewise.
11407 * loader/ieee1275/multiboot2.c: Likewise.
11408 * loader/macho.c: Likewise.
11409 * loader/machoXX.c: Likewise.
11410 * loader/multiboot2.c: Likewise.
11411 * loader/multiboot_loader.c: Likewise.
11412 * loader/powerpc/ieee1275/linux.c: Likewise.
11413 * loader/sparc64/ieee1275/linux.c: Likewise.
11414 * loader/xnu.c: Likewise.
11415 * loader/xnu_resume.c: Likewise.
11416 * mmap/i386/pc/mmap.c: Likewise.
11417 * normal/menu_viewer.c: Likewise.
11418 * partmap/acorn.c: Likewise.
11419 * partmap/amiga.c: Likewise.
11420 * partmap/apple.c: Likewise.
11421 * script/lexer.c: Likewise.
11422 * term/gfxterm.c: Likewise.
11423 * term/i386/pc/serial.c: Likewise.
11424 * term/i386/pc/vga.c: Likewise.
11425 * term/ieee1275/ofconsole.c: Likewise.
11426 * term/terminfo.c: Likewise.
11427 * video/bitmap.c: Likewise.
11428 * video/efi_gop.c: Likewise.
11429 * video/efi_uga.c: Likewise.
11430 * video/fb/video_fb.c: Likewise.
11431 * video/i386/pc/vbe.c: Likewise.
11432 * video/readers/tga.c: Likewise.
11433 * video/video.c: Likewise.
11434
0ad46fd7 114352009-12-23 Felix Zielcke <fzielcke@z-51.de>
a2c1332b
FZ
11436
11437 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
11438 * commands/lspci.c: Likewise.
11439 * commands/probe.c: Likewise.
11440 * commands/xnu_uuid.c: Likewise.
11441 * conf/i386-coreboot.rmk: Likewise.
11442 * conf/i386-efi.rmk: Likewise.
11443 * conf/i386-ieee1275.rmk: Likewise.
11444 * conf/i386-pc.rmk: Likewise.
11445 * conf/powerpc-ieee1275.rmk: Likewise.
11446 * conf/sparc64-ieee1275.rmk: Likewise.
11447 * conf/x86_64-efi.rmk: Likewise.
11448 * fs/i386/pc/pxe.c: Likewise.
11449 * gettext/gettext.c: Likewise.
11450 * include/grub/efi/graphics_output.h: Likewise.
11451 * include/grub/i386/pc/memory.h: Likewise.
11452 * kern/env.c: Likewise.
11453 * kern/i386/qemu/startup.S: Likewise.
11454 * lib/i386/pc/biosnum.c: Likewise.
11455 * lib/i386/relocator.c: Likewise.
11456 * lib/i386/relocator_asm.S: Likewise.
11457 * lib/relocator.c: Likewise.
11458 * loader/i386/bsd.c: Likewise.
11459 * loader/i386/multiboot.c: Likewise.
11460 * loader/i386/pc/chainloader.c: Likewise.
11461 * loader/i386/xnu.c: Likewise.
11462 * loader/xnu.c: Likewise.
11463 * normal/main.c: Likewise.
11464 * normal/menu_text.c: Likewise.
11465 * util/getroot.c: Likewise.
11466 * util/grub-mkconfig_lib.in: Likewise.
11467 * util/grub.d/00_header.in: Likewise.
11468 * util/i386/pc/grub-mkimage.c: Likewise.
11469 * util/mkisofs/eltorito.c: Likewise.
11470 * util/mkisofs/exclude.h: Likewise.
11471 * util/mkisofs/hash.c: Likewise.
11472 * util/mkisofs/iso9660.h: Likewise.
11473 * util/mkisofs/joliet.c: Likewise.
11474 * util/mkisofs/mkisofs.c: Likewise.
11475 * util/mkisofs/mkisofs.h: Likewise.
11476 * util/mkisofs/multi.c: Likewise.
11477 * util/mkisofs/name.c: Likewise.
11478 * util/mkisofs/rock.c: Likewise.
11479 * util/mkisofs/tree.c: Likewise.
11480 * util/mkisofs/write.c: Likewise.
11481 * video/efi_gop.c: Likewise.
11482
009ec743
VS
114832009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
11484
11485 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
11486 size counting.
11487
0ad46fd7 114882009-12-22 Felix Zielcke <fzielcke@z-51.de>
990f3548
FZ
11489
11490 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
11491 * genmk.rb (class SCRIPT): Modify the target file instead of source.
11492
d3d30ea0
VS
114932009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
11496 (GRUB_MOD_INIT(memrw)): Update help line.
11497
a34f5c70
VS
114982009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
11501 Use grub_extcmd_t. All users updated.
11502 (options): New variable.
11503 (grub_cmd_read): Restructure for readability. Support "-v" option.
11504 (grub_cmd_write): Restructure for readability.
11505
0ad46fd7 115062009-12-22 Felix Zielcke <fzielcke@z-51.de>
67618ea6
FZ
11507
11508 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
11509
0ad46fd7 115102009-12-22 Felix Zielcke <fzielcke@z-51.de>
10a88797
FZ
11511
11512 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
11513 with the actual contents of the correspondending make variable.
11514 * util/grub-mkrescue.in (pkglib_DATA): New variable.
11515 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
11516 specifying `*.lst' and `efiemu??.o'
11517
0ad46fd7 115182009-12-22 Felix Zielcke <fzielcke@z-51.de>
7e70dfff
FZ
11519
11520 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
11521 after function name.
11522 Noticed by Rene Engelhard <rene@debian.org>.
11523
dc77a799
VS
115242009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11525
11526 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
11527 (options): New variable.
11528 (iospace): Likewise.
11529 (grub_lspci_iter): List IO spaces if "-i" was given.
11530 (grub_cmd_lspci): Parse options.
11531 (GRUB_MOD_INIT(lspci)): Use extcmd.
11532 (GRUB_MOD_FINI(lspci)): Likewise.
11533
0ad46fd7 115342009-12-22 Felix Zielcke <fzielcke@z-51.de>
82000aa2
FZ
11535
11536 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
11537 `function' keyword.
11538 Patch by Tony Mancill <tmancill@debian.org>.
11539
b5d5993b
VS
115402009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
11541
11542 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
11543 (grub_uhci_portstatus): Likewise.
11544 (grub_uhci_portstatus): Add necessary delay.
11d18281 11545 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
b5d5993b 11546
941903f2 115472009-12-21 Carles Pina i Estany <carles@pina.cat>
b5d5993b 11548
941903f2 11549 * commands/acpi.c (options): Fix capitalizations and/or full stops.
11550 (GRUB_MOD_INIT): Likewise.
11551 * commands/boot.c (GRUB_MOD_INIT): Likewise.
cb04503e 11552 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
11553 * commands/echo.c (options): Fix capitalizations and/or full stops.
941903f2 11554 * commands/efi/loadbios.c (enable_rom_area): Likewise.
11555 (enable_rom_area): Likewise.
11556 (GRUB_MOD_INIT): Likewise.
11557 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
11558 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
11559 * commands/handler.c (GRUB_MOD_INIT): Likewise.
11560 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
11561 * commands/hexdump.c (options): Likewise.
11562 * commands/i386/cpuid.c (options): Likewise.
11563 (GRUB_MOD_INIT): Likewise.
11564 * commands/i386/pc/drivemap.c (options): Likewise.
11565 (GRUB_MOD_INIT): Likewise.
11566 * commands/i386/pc/halt (options): Likewise.
11567 (GRUB_MOD_INIT): Likewise.
11568 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
11569 * commands/i386/pc/pxecmd.c (options): Likewise.
11570 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
11571 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
11572 * commands/keystatus.c (options): Likewise.
11573 (GRUB_MOD_INIT): Likewise.
11574 * commands/loadenv.c (options): Likewise.
11575 * commands/ls.c (options): Likewise.
11576 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
11577 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
11578 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
11579 * commands/parttool.c (helpmsg): Likewise.
11580 * commands/probe.c (options): Likewise.
11581 * commands/read.c (GRUB_MOD_INIT): Likewise.
11582 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
11583 * commands/search.c (options): Likewise.
11584 * commands/sleep.c (options): Likewise.
11585 * commands/test.c (GRUB_MOD_INIT): Likewise.
11586 * commands/true.c (GRUB_MOD_INIT): Likewise.
11587 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
11588 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
11589 * lib/arg.c (help_options): Likewise.
e9bbb4e7 11590 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
11591 `$(XGETTEXT)'.
98a50553 11592 * po/POTFILES: Add `commands/loadenv.c'.
941903f2 11593
0ad46fd7 115942009-12-21 Felix Zielcke <fzielcke@z-51.de>
4dd13225 11595
ef3c2c3a 11596 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
4dd13225
FZ
11597 instead of specifying them explicit.
11598
7922f68b
RM
115992009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11600
11601 * NEWS: Add grub-probe support for GNU/Hurd.
11602
537ce47f
RM
116032009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11604
11605 * NEWS: gettext was added after 1.97.
11606
9b214e3a
RM
116072009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11608
11609 * util/mkisofs/msdos_partition.h: New file (based on
11610 include/grub/msdos_partition.h).
11611 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
11612 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
11613 (ld_options, main): Recognize --protective-msdos-label.
11614 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
11615 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
11616 (padblock_write): If `use_protective_msdos_label' is set, patch a
11617 protective DOS-style label in the output image.
11618
11619 * util/grub-mkrescue.in: Use --protective-msdos-label.
11620
e9309813
RM
116212009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11622
11623 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
11624 boot.
11625
0ae56929
RM
116262009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11627
11628 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
11629 variables.
11630 (ld_options, main): Recognize `--embedded-boot'.
11631 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
11632 declarations.
11633 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
11634 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
11635 (padblock_write): Likewise. Rewrite to support embedded boot image.
11636
11637 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
11638 for BIOS-based disk boot instead of only ElTorito.
11639
b15937b1
RM
116402009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11641
11642 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
11643 build (not needed for bootstrap).
11644
52cc3ce0
RM
116452009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11646
11647 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
11648 from i386-pc build (not needed for bootstrap).
11649 Rewrite a pair of strings.
11650
36f5ff04
RM
116512009-12-21 Robert Millan <rmh.grub@aybabtu.com>
11652
11653 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
11654
973c6c85 116552009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
b07e53f0
VS
11656
11657 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
11658
05d21547
AB
116592009-12-21 Andreas Born <futur.andy@googlemail.com>
11660
11661 * kern/env.c (grub_env_context_open): Mark exported variable for
11662 reexport.
11663
0175d51f
AB
116642009-12-21 Andreas Born <futur.andy@googlemail.com>
11665
11666 * kern/env.c (grub_env_export): Create nonexistent variables before
11667 exporting.
11668
7f39d92f 116692009-12-20 Carles Pina i Estany <carles@pina.cat>
0175d51f 11670
7f39d92f 11671 * include/grub/auth.h: Include `<grub/i18n.h>'.
11672 (GRUB_GET_PASSWORD): Gettextizze string.
11673 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
11674 menu_text.c.
11675 (grub_utf8_to_ucs4_alloc): Fix indentation.
11676 (grub_print_ucs4): Likewise.
11677 (grub_getstringwidth): Likewise.
11678 (print_message_indented): New declaration.
11679 * normal/auth.c: Include `<grub/i18n.h>'.
11680 (grub_auth_check_authentication): Gettexttize string.
11681 * normal/cmdline.c: Include `<grub/i18n.h>'.
11682 (grub_cmdline_get): Gettextizze.
11683 * normal/color.c: Include `<grub/i18n.h>'.
11684 (grub_parse_color_name_pair): Gettexttize strings.
11685 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
11686 string (use `print_message_indented').
11687 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
11688 `include/grub/normal.h'.
11689 (print_message_indented): Renamed to ...
11690 (grub_print_message_indented): ... this. Remove `static' qualifer (now
11691 used in normal/main.c).
11692 (print_message): Use `grub_print_message_indented' instead of
11693 `print_message_indented'.
11694 (print_timeout): Likewise.
11695 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
11696 (grub_normal_print_device_info): Gettexttize strings.
11697 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
11698
3041d898
VS
116992009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11700
11701 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
11702 of arguments. Return number of tokens and not arguments. All users
11703 updated.
11704
de15bf8e
VS
117052009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
11706
11707 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
11708 non-MSDOS paritions.
11709
e0a6ca52
VS
117102009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
11711
11712 * include/grub/types.h (UNUSED): Removed since it conflicts with
11713 NetBSD headers. All users changed to direct __attribute__ ((unused)).
11714 Reported by Grégoire Sutre.
11715
b99518d1 117162009-12-19 Carles Pina i Estany <carles@pina.cat>
11717
11718 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
11719 (grub_print_ucs4_alloc): Likewise.
11720 (grub_getstringwidth): Likewise.
11721 * normal/main.c (grub_normal_init_page): Gettextize version string.
11722 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
11723 (getstringwidth): Renamed to ...
11724 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
11725 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
11726 (grub_print_ucs4): Remove `static' qualifer (now used in
11727 normal/main.c).
11728 * po/POTFILES: Add normal/main.c.
11729
bfd5e52b 117302009-12-19 Carles Pina i Estany <carles@pina.cat>
11731
11732 * normal/menu_text.c (STANDARD_MARGIN): New macro.
11733 (print_message_indented): Add `margin_left' and `margin_right'
11734 parameters.
11735 (print_message): Update `print_message_indented' calls. Adds '\n' to the
11736 strings.
11737 (print_timeout): Use `print_message_indented' to print the message.
11738 Deletes `second_stage' parameter.
11739 (run_menu): Update `print_timeout' calls.
11740
5a1ad2b9
VS
117412009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11742
11743 Fix console palette on OpenFirmware.
11744
11745 * term/ieee1275/ofconsole.c (MAX): Removed.
11746 (colors): Redone based on VGA palette.
11747 (grub_ofconsole_setcolor): Discard brightness bit since only 8
11748 colors are supported.
11749 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
11750
b045f00a
VS
117512009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11752
11753 Fix potential EfiEmu double prepare.
11754
11755 * efiemu/main.c (prepared): New variable
11756 (grub_efiemu_unload): Set prepare to '0'.
11757 (grub_efiemu_prepare): Return if already prepared. Set prepared.
11758
11759 set_virtual_address_map support.
11760
11761 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
11762 prototype.
11763 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
11764 prototype.
11765 (grub_efiemu_crc32): Likewise.
11766 (grub_efiemu_crc64): Likewise.
11767 (grub_efiemu_set_virtual_address_map): Likewise.
11768 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
11769 New definition.
11770 (grub_autoefi_set_virtual_address_map): Likewise.
11771 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
11772 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
11773 Restructure flow to accomodate it.
11774 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
11775 (grub_efiemu_crc): Recompute CRC32.
11776 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
11777 (efiemu_ptv_relocated): ... this. Made global. All users updated.
11778 * efiemu/symbols.c (relocated_handle): New variable.
11779 (grub_efiemu_free_syms): Free relocated_handle.
11780 (grub_efiemu_alloc_syms): Allocate relocated_handle.
11781 (grub_efiemu_write_sym_markers): New function.
11782 (grub_efiemu_set_virtual_address_map): Likewise.
11783
11784 Newer XNU parameters.
11785
11786 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
11787 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
11788 (grub_xnu_fill_devicetree): New prototype.
11789 (grub_xnu_heap_real_start): New variable.
11790 * loader/xnu.c (get_name_ptr): New function.
11791 (grub_xnu_load_driver): Fill namelen and name.
11792
11793 64-bit xnu support.
11794
11795 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
11796 and 'loader/macho64.c'.
11797 * conf/i386-pc.rmk: Likewise.
11798 * conf/x86_64-efi.rmk: Likewise.
11799 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
11800 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
11801 * include/grub/macho.h (grub_macho_segment64): New structure.
11802 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
11803 (grub_macho_size32): ... to this.
11804 (grub_macho32_get_entry_point): Renamed from ...
11805 (grub_macho_get_entry_point32): ... to this.
11806 (grub_macho_contains_macho64): New prototype.
11807 (grub_macho_size64): Likewise.
11808 (grub_macho_get_entry_point64): Likewise.
11809 (grub_macho32_load): Renamed from ...
11810 (grub_macho_load32): ... to this.
11811 (grub_macho32_filesize): Renamed from ...
11812 (grub_macho_filesize32): ... to this.
11813 (grub_macho32_readfile): Renamed from ...
11814 (grub_macho_readfile32): ... to this.
11815 (grub_macho_filesize64): New prototype.
11816 (grub_macho_readfile64): Likewise.
11817 (grub_macho_parse32): Likewise.
11818 (grub_macho_parse64): Likewise.
11819 * loader/macho.c: Split into ...
11820 * loader/machoXX.c: ... and this. Replace 32 with XX.
11821 * loader/macho32.c: New file.
11822 * loader/macho64.c: Likewise.
11823 * loader/xnu.c (grub_xnu_is_64bit): New variable.
11824 (grub_cmd_xnu_kernel): Make 32-bit only.
11825 (grub_cmd_xnu_kernel64): New function.
11826 (grub_xnu_load_driver): Support Mach-O 64.
11827 (grub_cmd_xnu_mkext): Likewise.
11828 * util/grub.d/30_os-prober.in (osx_entry): New function.
11829 Generate entries for 64-bit boot too.
11830
11831 Eliminate ad-hoc tree format in XNU and EfiEmu.
11832
11833 * efiemu/main.c (grub_efiemu_prepare): Update comment.
11834 * efiemu/pnvram.c: Rewritten to use environment variables.
11835 All users updated.
11836
11837 Inline utf16_to_utf8.
11838
11839 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
11840 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
11841 All users updated.
11842 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
11843
11844 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
11845 * commands/usbtest.c (grub_usb_get_string): ... move here.
11846 (usb_print_str): Fix error handling.
11847 * include/grub/usb.h (grub_usb_get_string): Remove.
11848
11849 UTF-8 to UTF-16 transformation.
11850
11851 * conf/common.rmk (pkglib_MODULES): Add charset.mod
11852 (charset_mod_SOURCES): New variable.
11853 (charset_mod_CFLAGS): Likewise.
11854 (charset_mod_LDFLAGS): Likewise.
11855 * include/grub/utf.h: New file.
11856 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
11857
11858 Support for device properties.
11859
11860 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
11861 (grub_xnu_devprop_device_header): Likewise.
11862 (grub_xnu_devprop_device_descriptor): Likewise.
11863 (grub_xnu_devprop_add_device): New prototype.
11864 (grub_xnu_devprop_remove_device): Likewise.
11865 (grub_xnu_devprop_remove_property): Likewise.
11866 (grub_xnu_devprop_add_property_utf8): Likewise.
11867 (grub_xnu_devprop_add_property_utf16): Likewise.
11868 (grub_cpu_xnu_init): Likewise.
11869 (grub_cpu_xnu_fini): Likewise.
11870 (grub_cpu_xnu_unload): Likewise.
11871 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
11872 (property_descriptor): Likewise.
11873 (devices): New variable.
11874 (grub_xnu_devprop_remove_property): New function.
11875 (grub_xnu_devprop_add_device): Likewise.
11876 (grub_xnu_devprop_remove_device): Likewise.
11877 (grub_xnu_devprop_add_property): Likewise.
11878 (grub_xnu_devprop_add_property_utf8): Likewise.
11879 (grub_xnu_devprop_add_property_utf16): Likewise.
11880 (hextoval): Likewise.
11881 (grub_cpu_xnu_fill_devprop): Likewise.
11882 (grub_cmd_devprop_load): Likewise.
11883 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
11884 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
11885 (cmd_devprop_load): New variable.
11886 (grub_cpu_xnu_init): New function.
11887 (grub_cpu_xnu_fini): Likewise.
11888 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
11889 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
11890 (grub_cmd_xnu_devtree): Likewise.
11891 (hextoval): New function.
11892 (unescape): Likewise.
11893 (grub_xnu_fill_devicetree): Likewise.
11894
11895 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
11896 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
11897
0945f181
VS
118982009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
11899
11900 Workaround for broken ATI VBE.
11901
11902 * video/i386/pc/vbe.c (last_set_mode): New variable.
11903 (grub_vbe_set_video_mode): Set 'last_set_mode'.
11904 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
11905 (grub_video_vbe_setup): Don't check for reserved flag.
11906
0ad46fd7 119072009-12-17 Felix Zielcke <fzielcke@z-51.de>
0297aafb
FZ
11908
11909 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
11910 the `find' command.
11911
c179ebe4
VS
119122009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
11913
11914 UUID support for HFS.
11915
11916 * fs/hfs.c (grub_hfs_uuid): New function.
11917 (grub_hfs_fs): New value .uuid.
11918 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
11919
0ad46fd7 119202009-12-14 Felix Zielcke <fzielcke@z-51.de>
574cce0c
FZ
11921
11922 Fix a segfault with parsing unknown long options.
11923
11924 * util/grub-mkrelpath.c (options): Zero terminate it.
11925
c4a3e41a
CPE
119262009-12-13 Carles Pina i Estany <carles@pina.cat>
11927
11928 * include/grub/misc.h (grub_puts): New declaration.
11929 (grub_puts_): Likewise.
a22008a6 11930 * kern/misc.c (grub_puts): New definition.
c4a3e41a
CPE
11931 (grub_puts_): Likewise.
11932
2e8a7602
RM
119332009-12-13 Robert Millan <rmh.grub@aybabtu.com>
11934
11935 * util/grub-probe.c (probe): Improve error message.
11936
b50b77b9
RM
119372009-12-13 Robert Millan <rmh.grub@aybabtu.com>
11938
11939 * loader/i386/multiboot_elfxx.c
11940 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
11941 initialization.
11942
119432009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
11944
11945 Relocator framework
11946
11947 * loader/i386/xnu_helper.S: Removed. All users updated.
11948 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
11949 (relocator_mod_SOURCES): New variable.
11950 (relocator_mod_CFLAGS): Likewise.
11951 (relocator_mod_LDFLAGS): Likewise.
11952 (relocator_mod_ASFLAGS): Likewise.
11953 * conf/x86_64.rmk: Likewise.
11954 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
11955 (grub_multiboot_payload_entry_offset): Likewise.
11956 (grub_multiboot_forward_relocator): Likewise.
11957 (grub_multiboot_forward_relocator_end): Likewise.
11958 (grub_multiboot_backward_relocator): Likewise.
11959 (grub_multiboot_backward_relocator_end): Likewise.
11960 (grub_multiboot_payload_eip): New variable.
11961 (grub_multiboot_payload_orig): Likewise.
11962 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
11963 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
11964 * include/grub/i386/memory.h
11965 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
11966 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
11967 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
11968 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
11969 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
11970 * include/grub/i386/relocator.h: New file.
11971 * include/grub/x86_64/relocator.h: Likewise.
11972 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
11973 (XNU_RELOCATOR): New macro.
11974 (grub_xnu_launcher_start): Remove.
11975 (grub_xnu_launcher_end): Likewise.
11976 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
11977 (grub_xnu_heap_real_start): Remove.
11978 (grub_xnu_heap_start): Change to void *. All users updated.
11979 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
11980 * lib/i386/relocator.c: New file.
11981 * lib/i386/relocator_asm.S: Likewise.
11982 * lib/i386/relocator_backward.S: Likewise.
11983 * lib/mips/relocator.c: Likewise.
11984 * lib/mips/relocator_asm.S: Likewise.
11985 * lib/relocator.c: Likewise.
11986 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
11987 (entry): Removed.
11988 (playground): Likewise.
11989 (grub_multiboot_payload_orig): New variable.
11990 (grub_multiboot_payload_dest): Likewise.
11991 (grub_multiboot_payload_size): Likewise.
11992 (grub_multiboot_payload_eip): Likewise.
11993 (grub_multiboot_payload_esp): Likewise.
11994 (grub_multiboot_boot): Use grub_relocator32_boot.
11995 (grub_multiboot_unload): Free relocators.
11996 (grub_multiboot): Setup stack. Use relocators.
11997 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
11998 (grub_multiboot_load_elfXX): Use relocators.
11999 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
12000 (grub_multiboot_payload_size): Likewise.
12001 (grub_multiboot_payload_dest): Likewise.
12002 (grub_multiboot_payload_entry_offset): Likewise.
12003 (grub_multiboot_forward_relocator): Likewise.
12004 (grub_multiboot_backward_relocator): Likewise.
12005 (grub_multiboot_real_boot): Likewise.
12006 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
12007 (grub_xnu_entry_point): Likewise.
12008 (grub_xnu_arg1): Likewise.
12009 (grub_xnu_stack): Likewise.
12010 (grub_xnu_launch): Removed.
12011 (grub_xnu_boot_resume): New function.
12012 (grub_xnu_boot): Use relocators.
12013 * loader/i386/xnu_helper.S: Removed.
12014 * loader/xnu.c (grub_xnu_heap_start): New variable.
12015 (grub_xnu_heap_size): Likewise.
12016 (grub_xnu_heap_malloc): Use relocators.
12017 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
12018
29eb90c6
VS
120192009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12020
12021 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
12022 anything.
12023
31027430
CPE
120242009-12-13 Carles Pina i Estany <carles@pina.cat>
12025
12026 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
12027 GRUB_ERR_NONE before calling grub_env_set.
12028
dc0c71d9
RM
120292009-12-12 Robert Millan <rmh@aybabtu.com>
12030
12031 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
12032 * genmk.rb (video): New variable.
12033 (CLEANFILES, VIDEOFILES): Add #{video}.
12034 (#{video}): New target rule.
12035 * genvideolist.sh: New file.
12036 * Makefile.in (pkglib_DATA): Add video.lst.
12037 (video.lst): New target rule.
12038 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
12039 `video.lst'.
12040 * util/grub.d/30_os-prober.in: Replace `vbe' with
12041 ${GRUB_VIDEO_BACKEND}.
12042
2a4bfcf0
RM
120432009-12-11 Robert Millan <rmh.grub@aybabtu.com>
12044
12045 * THANKS: Add David Miller.
12046
2a3aa4d5
RM
120472009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
12048
12049 libpciaccess support.
12050
12051 * Makefile.in (LIBPCIACCESS): New variable.
12052 (enable_grub_emu_pci): Likewise.
12053 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
12054 util/pci.c and commands/lspci.c.
12055 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
12056 * configure.ac (grub-emu-pci): New option.
12057 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
12058 (grub_pci_device_unmap_range): Likewise.
12059 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
12060 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
12061 (grub_pci_address_t) [!GRUB_UTIL]: New type.
12062 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
12063 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
12064 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
12065 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
12066 * include/grub/pciutils.h: New file.
12067 * util/pci.c: Likewise.
12068
0ad46fd7 120692009-12-11 Felix Zielcke <fzielcke@z-51.de>
8d0502d9
FZ
12070
12071 * util/misc.c: Don't include <errno.h> twice.
12072
0ad46fd7 120732009-12-10 Felix Zielcke <fzielcke@z-51.de>
0d56ed64
FZ
12074
12075 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
12076 name in an error message.
12077 (grub_biosdisk_rw): Likewise.
12078
2e59983c
VS
120792009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12080
12081 Eliminate NTFS 4Gib barrier.
12082
12083 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
12084 (read_run_data): Likewise.
12085 (grub_ntfs_read_run_list): Likewise.
12086 (grub_ntfs_read_block): Likewise.
12087 (grub_ntfs_iterate_dir): Likewise.
12088 (read_mft): Likewise.
12089 (read_data): Likewise.
12090 Use COM_LOG_LEN.
12091 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
12092 to avoid 64-bit division
12093 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
12094 (grub_ntfs_rlst): Use grub_disk_addr_t.
12095
71ee178a
VS
120962009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12097
12098 Eliminate grub-fstest 4Gib barrier.
12099
12100 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
12101 (read_file): Fix error reporting.
12102
2520d4b8
VS
121032009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12104
12105 Eliminate hexdump 4Gib barrier.
12106
12107 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
12108 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
12109
e1f27065
VS
121102009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
12111
12112 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
12113 Fixes amarsh bug.
12114
1a0f7f45
RM
121152009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
12116
12117 Remove miscellaneous files in distclean target.
12118
12119 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
12120
c631d9fb
CW
121212009-12-09 Colin Watson <cjwatson@ubuntu.com>
12122
12123 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
12124 if they're already set. This resolves the conflict between my
12125 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
12126 fixing the --grub-probe option again.
12127 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
12128 change on 2009-10-06, so that we now once again source
12129 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
12130
7c7b6106
RM
121312009-12-08 Robert Millan <rmh.grub@aybabtu.com>
12132
12133 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
12134 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
12135 `util/devicemap.c'.
12136
e3069ec1
CPE
121372009-12-08 Carles Pina i Estany <carles@pina.cat>
12138
12139 * include/grub/misc.h (grub_printf_): New declaration.
12140 * kern/misc.c (grub_printf_): New definition.
12141 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
12142 instead of `grub_printf' and `_'.
12143 * normal/menu_entry.c (store_completion): Likewise.
12144 (run): Likewise.
12145 (grub_menu_entry_run): Likewise.
12146 * normal/menu_text.c (grub_wait_after_message): Likewise.
12147 (notify_booting): Likewise.
12148 (notify_fallback): Likewise.
12149 (notify_execution_failure): Likewise.
12150
d6ceebf1
CW
121512009-12-07 Colin Watson <cjwatson@ubuntu.com>
12152
12153 * configure.ac: Check for vasprintf.
12154 * util/misc.c (asprintf): Move allocation from here ...
12155 (vasprintf): ... to here. New function.
12156 (xasprintf): New function.
12157 * include/grub/util/misc.h (vasprintf, xasprintf): Add
12158 prototypes.
12159 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
12160 * util/grub-mkfont.c (write_font): Likewise.
12161 * util/grub-probe.c (probe): Likewise.
12162 * util/hostdisk.c (make_device_name): Likewise.
12163
de6daa8b
DM
121642009-12-06 David S. Miller <davem@sunset.davemloft.net>
12165
12166 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
12167 anything even prefixed with 'cdrom' as a cdrom.
12168
0ad46fd7 121692009-12-06 Felix Zielcke <fzielcke@z-51.de>
df91e679
FZ
12170
12171 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
12172 mount points.
12173
98d3dc02
CPE
121742009-12-05 Carles Pina i Estany <carles@pina.cat>
12175
12176 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
12177 grub_gettext_msg_list.
12178 (grub_gettext_gettranslation_from_position): Return const char *
12179 and not char *.
a2c1332b 12180 (grub_gettext_translate): Add the translated strings into a list,
98d3dc02
CPE
12181 returns from the list if existing there.
12182 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
12183 (grub_gettext_delete_list): Delete the list.
12184 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
12185 lang environment variable is changed.
12186 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
12187
b283f108
VS
121882009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
12189
12190 Rename kernel.mod to kernel.img.
12191
12192 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
12193 (kernel_mod_EXPORTS): Rename to ...
12194 (kernel_img_EXPORTS): ... this.
12195 (kernel_mod_SOURCES): Rename to ...
12196 (kernel_img_SOURCES): ... this.
12197 (kernel_mod_HEADERS): Rename to ...
12198 (kernel_img_HEADERS): ... this. All users updated.
12199 (kernel_mod_CFLAGS): Rename to ...
12200 (kernel_img_CFLAGS): ... this.
12201 (kernel_mod_ASFLAGS): Rename to ...
12202 (kernel_img_ASFLAGS): ... this.
12203 (kernel_mod_LDFLAGS): Rename to ...
12204 (kernel_img_LDFLAGS): ... this.
12205 * conf/x86_64-efi.rmk: Likewise.
12206 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
12207 (read_kernel_image): ... this. All users updated.
12208 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
12209
69055f8a
CPE
122102009-12-05 Carles Pina i Estany <carles@pina.cat>
12211
12212 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
12213 (print_spaces): New function.
12214 (grub_print_ucs4): New function.
12215 (getstringwidth): New function.
12216 (print_message_indented): New function.
12217 (print_message): Gettexttize strings using print_message_indented.
12218 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
12219 width.
12220 (get_entry_number): Gettextize and uses dynamic terminal width.
a2c1332b 12221 (notify_booting, notify_fallback, notify_execution_failure):
69055f8a
CPE
12222 Gettextize.
12223 * normal/menu_entry.c (store_completion): Cleanup the gettextized
12224 string.
12225 (run): Likewise.
12226 (grub_menu_entry_run): Likewise.
12227 * PO/POTFILES: Add normal/menu_entry.c.
12228
f616f51c
VS
122292009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
12230
12231 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
12232
57bbe3be
CPE
122332009-12-05 Carles Pina i Estany <carles@pina.cat>
12234
12235 * util/grub-install.in: Install gettext .mo files.
12236 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
12237
013d67a1
CPE
122382009-12-05 Carles Pina i Estany <carles@pina.cat>
12239
12240 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
12241 grub_dprintf.
12242
fb954db0
RM
122432009-12-05 Robert Millan <rmh.grub@aybabtu.com>
12244
12245 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
12246 non-firmware-dependant one in realmode.S takes precedence.
12247
6b8474f8
RM
122482009-12-04 Robert Millan <rmh.grub@aybabtu.com>
12249
12250 * commands/halt.c: Replace misc arch-specific headers with
12251 `<grub/misc.h>'.
12252 * commands/reboot.c: Likewise.
12253 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
12254 `<grub/misc.h>'.
12255 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
12256 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
12257 (kernel_img_SOURCES): ... to here.
12258
12259 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
12260 * include/grub/i386/pc/init.h: Likewise.
12261 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
12262 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
12263
12264 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
12265
12266 * include/grub/i386/halt.h: Remove.
12267 * include/grub/i386/reboot.h: Likewise.
12268
12269 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
12270
4b2e6ca2
DM
122712009-12-03 David S. Miller <davem@sunset.davemloft.net>
12272
12273 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
12274 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
12275 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
12276 "progname.h"
12277 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12278 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12279 (usage): Add missing comma in printf.
12280
5239348f
RM
122812009-12-02 Robert Millan <rmh.grub@aybabtu.com>
12282
12283 Use the same reboot approach on i386 coreboot and qemu as we do on
12284 BIOS.
12285
12286 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
12287 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
12288 * kern/i386/reboot.c: Remove.
12289 * include/grub/i386/reboot.h (grub_reboot): Export function.
12290 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
12291 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
12292 0xf000:0xfff0 instead of 0xffff:0x0000.
12293 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
12294 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
12295
ef34cbd4
RM
122962009-11-30 Robert Millan <rmh.grub@aybabtu.com>
12297
12298 Fix $srcdir != $objdir build.
12299
12300 * Makefile.in (po/%.po): Rewrite as ...
12301 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
12302
dc9837ea
ST
123032009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
12304
12305 Fix GNU/Hurd grub-install crash.
12306 * util/grub-probe.c (probe): Try to access `path' only when it is not
12307 NULL.
12308
2f857f98
VS
123092009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12310
12311 Correct module naming.
12312
12313 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
12314 (GRUB_MOD_INIT(efi_uga)): ... to this
12315 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
12316 (GRUB_MOD_FINI(efi_uga)): ... to this
12317 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
12318 (GRUB_MOD_INIT(efi_gop)): ... to this
12319 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
12320 (GRUB_MOD_FINI(efi_gop)): ... to this
12321
c5448046
RM
123222009-11-28 Robert Millan <rmh.grub@aybabtu.com>
12323
12324 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
12325 translatable.
12326 (usage): Translate `arg' strings using gettext().
12327 Thanks to Jordi Mallach for the suggestion.
12328
c85184ad
VS
123292009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12330
12331 GOP support. Based on patch from Bean
12332 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12333
12334 * video/efi_gop.c: New file.
12335 * include/grub/efi/graphics_output.h: Likewise.
12336 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
12337 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12338 variables.
12339 * conf/x86_64-efi.rmk: Likewise.
12340
8a4c48d8
VS
123412009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
12342
12343 Rename efi_fb to efi_uga.
12344
12345 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12346 'efi_uga.mod'.
12347 (efi_fb_mod_SOURCES): Rename this ...
12348 (efi_uga_mod_SOURCES): ... to this.
12349 (efi_fb_mod_CFLAGS): Rename this ...
12350 (efi_uga_mod_CFLAGS): ... to this.
12351 (efi_fb_mod_LDFLAGS): Rename this ...
12352 (efi_uga_mod_LDFLAGS): ... to this.
12353 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
12354 'efi_uga.mod'.
12355 (efi_fb_mod_SOURCES): Rename this ...
12356 (efi_uga_mod_SOURCES): ... to this.
12357 (efi_fb_mod_CFLAGS): Rename this ...
12358 (efi_uga_mod_CFLAGS): ... to this.
12359 (efi_fb_mod_LDFLAGS): Rename this ...
12360 (efi_uga_mod_LDFLAGS): ... to this.
12361 * video/efi_fb.c: Move this ...
12362 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
12363
fb6c1a7b
RM
123642009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12365
12366 * po/README: New file. Explain our PO file workflow.
12367
3bc7896c
RM
123682009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12369
12370 * po/ChangeLog: Remove. Move relevant entries back to ...
12371 * ChangeLog: ... here.
12372 * po/ca.po: Remove (now handled by TLP).
12373 * po/id.po: Likewise.
12374 * po/zh_CN.po: Likewise.
12375 * Makefile.in (LINGUAS): Initialize in a way that supports
12376 empty set.
12377
9ed4841d
RM
123782009-11-27 Robert Millan <rmh.grub@aybabtu.com>
12379
12380 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
12381 reliing on po/LINGUAS.
12382 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
12383 (po/%.po): ... this.
12384
0ad46fd7 123852009-11-26 Felix Zielcke <fzielcke@z-51.de>
242668a2
FZ
12386
12387 * util/i386/efi/grub-mkimage.c: Include "progname.h".
12388 (main): Use `program_name' instead of nonexistent `progname'.
12389
e30dd392
FZ
123902009-11-26 Felix Zielcke <fzielcke@z-51.de>
12391
12392 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12393 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
12394
7656de4f
RM
123952009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12396
12397 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
12398 commit.
12399 * conf/i386-efi.rmk: Likewise.
12400 * conf/i386-ieee1275.rmk: Likewise.
12401 * conf/powerpc-ieee1275.rmk: Likewise.
12402 * conf/sparc64-ieee1275.rmk: Likewise.
12403 * conf/x86_64-efi.rmk: Likewise.
12404
db77c4d4
FZ
124052009-11-26 Felix Zielcke <fzielcke@z-51.de>
12406
12407 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
12408
a755bb04
FZ
124092009-11-26 Felix Zielcke <fzielcke@z-51.de>
12410
12411 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
12412
8a4c07fd
RM
124132009-11-26 Robert Millan <rmh.grub@aybabtu.com>
12414
12415 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
12416 (grub_mkdevicemap_SOURCES): New variable.
12417 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
12418 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
12419 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
12420 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
12421 (grub_mkdevicemap_SOURCES): Remove.
12422 * conf/i386-efi.rmk: Likewise.
12423 * conf/i386-ieee1275.rmk: Likewise.
12424 * conf/i386-pc.rmk: Likewise.
12425 * conf/powerpc-ieee1275.rmk: Likewise.
12426 * conf/sparc64-ieee1275.rmk: Likewise.
12427 * conf/x86_64-efi.rmk: Likewise.
12428 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
12429 (usage): Fix strings to use `program_name'.
12430 (main): Initialize gettext.
12431 * util/grub-editenv.c: Likewise.
12432 * util/grub-emu.c: Likewise.
12433 * util/grub-fstest.c: Likewise.
12434 * util/grub-mkdevicemap.c: Likewise.
12435 * util/grub-mkfont.c: Likewise.
12436 * util/grub-mkrelpath.c: Likewise.
12437 * util/grub-pe2elf.c: Likewise.
12438 * util/grub-probe.c: Likewise.
12439 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
12440 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
12441 * util/sparc64/ieee1275/grub-setup.c: Likewise.
12442
12443 * util/misc.c: Include `"progname.h"'.
12444 (progname): Remove variable.
12445 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
12446
6f61ed55
FZ
124472009-11-25 Felix Zielcke <fzielcke@z-51.de>
12448
12449 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
12450 printf and print a newline after the menuentry header line.
12451 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
12452
f022876b
FZ
124532009-11-25 Felix Zielcke <fzielcke@z-51.de>
12454
12455 autoconf >= 2.60 support $(localedir).
12456
12457 * INSTALL: Note that autoconf 2.60 is required.
12458 * configure.ac (AC_PREREQ): Bump to 2.60.
12459 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
12460 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
12461
6717926e
YB
124622009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
12463
12464 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
12465 aclocal is run.
12466
08806a54
RM
124672009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12468
12469 * normal/main.c (grub_normal_read_line): Fix off-by-one
12470 buffer overflow.
12471
13b33fba
RM
124722009-11-25 Robert Millan <rmh.grub@aybabtu.com>
12473
12474 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
12475 "parser.grub" in grub_command_execute() call.
12476
4a8572e9
CPE
124772009-11-24 Carles Pina i Estany <carles@pina.cat>
12478
12479 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
12480 * conf/i386-efi.rmk: Likewise.
12481 * conf/i386-ieee1275.rmk: Likewise.
12482 * conf/i386-pc.rmk: Likewise.
12483 * conf/powerpc-ieee1275.rmk: Likewise.
12484 * conf/sparc64-ieee1275.rmk: Likewise.
12485 * conf/x86_64-efi.rmk: Likewise.
12486 * gettext/gettex.c: Include <grub/i18n.h>.
12487 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
12488 here ...
12489 * include/grub/i18n.h: ... to here
12490 * include/grub/i18n.h: ... to here.
12491 * kern/misc.c: Include <grub/i18n.h>
a2c1332b 12492 (grub_gettext_dummy): Move above user.
4a8572e9 12493
bee48093
FZ
124942009-11-24 Felix Zielcke <fzielcke@z-51.de>
12495
12496 * util/Makefile.in (install-local): Convert a `for' into a normal
12497 shell expansion.
12498
a031e91c
RM
124992009-11-24 Robert Millan <rmh.grub@aybabtu.com>
12500
12501 * autogen.sh: Add automake call.
12502 * config.guess: Remove.
12503 * config.sub: Likewise.
12504 * install-sh: Likewise.
12505
26bec39d
FZ
125062009-11-24 Felix Zielcke <fzielcke@z-51.de>
12507
12508 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
12509
8e2532fd
FZ
125102009-11-24 Felix Zielcke <fzielcke@z-51.de>
12511
12512 * util/Makefile.in (install-local): Convert a make `$(foreach)'
12513 function to a normal shell `for'.
12514
fefa1b7d
FZ
125152009-11-24 Felix Zielcke <fzielcke@z-51.de>
12516
12517 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12518
4501250b
FZ
125192009-11-24 Felix Zielcke <fzielcke@z-51.de>
12520
12521 * util/grub-mkrelpath.c: New file.
12522 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
12523 (grub_mkrelpath_SOURCES): New variable.
12524 * include/grub/util/misc.h: New function prototype.
12525 * util/misc.c (make_system_path_relative_to_its_root): New function.
12526
12527 * util/grub-mkconfig_lib.in (bindir): New variable.
12528 (grub_mkrelpath): Likewise.
12529 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
12530
12531 * util/probe.c (probe): Make the file path relative to its root.
12532 Change a info message to use the GRUB path. Enable again the
12533 check if we can read the file with GRUB facilities.
12534
12535 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
12536 to its root.
12537
11d9778b
FZ
125382009-11-24 Felix Zielcke <fzielcke@z-51.de>
12539
12540 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
12541 platform.
12542
4465287d
FZ
125432009-11-24 Felix Zielcke <fzielcke@z-51.de>
12544
12545 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
12546 strncmp().
12547
62b47f22
FZ
125482009-11-24 Felix Zielcke <fzielcke@z-51.de>
12549
12550 * util/getroot.c (grub_util_is_dmraid): New function.
12551 (grub_util_get_dev_abstraction): Treat dmraid and multipath
12552 devices as normal ones, not as LVM.
12553
1eafb9b9 125542009-11-23 Carles Pina i Estany <carles@pina.cat>
c3ea6bd4
CPE
12555
12556 * conf/common.rmk: Add grub-gettext_lib target and updates
12557 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
12558 LDFLAGS.
12559 * gettext/gettext.c: New file. (Reads mo files).
12560 * include/grub/file.h (grub_file_pread): New prototype.
12561 * include/grub/i18n.h (_): New prototype.
12562 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
12563 prototypes.
12564 * kern/misc.c (grub_gettext_dummy): New function.
12565 * normal/menu_text.c: Include <grub/i18n.h>.
12566 * normal/menu_text.c (print_timeout): Gettexttize string.
12567 * normal/menu_text.c (print_message): Gettexttize string.
3bc7896c
RM
12568 * po/POTFILES: Add `normal/menu_text.c'.
12569 * po/ca.po: Add new translations.
c3ea6bd4
CPE
12570 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
12571 gettext module and defines locale_dir and lang in grub.cfg.
12572 * NEWS: Add gettext support.
12573
0fdb2568
RM
125742009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12575
12576 * util/hostdisk.c: Include `<grub/i18n.h>'.
12577 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
12578 (make_device_name): Rewrite using asprintf.
12579 (convert_system_partition_to_system_disk): Replace 0 with NULL.
12580 (find_system_device): If a device is not found, generate one just
12581 by reusing the OS path name.
12582 (read_device_map): Make it permissible for device.map not to exist.
12583
f515aa62
RM
125842009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12585
12586 * script/sh/execute.c: Move from here ...
12587 * script/execute.c: ... to here. Update all users.
12588 * script/sh/function.c: Move from here ...
12589 * script/function.c: ... to here. Update all users.
12590 * script/sh/lexer.c: Move from here ...
12591 * script/lexer.c: ... to here. Update all users.
12592 * script/sh/main.c: Move from here ...
12593 * script/main.c: ... to here. Update all users.
12594 * script/sh/parser.y: Move from here ...
12595 * script/parser.y: ... to here. Update all users.
12596 * script/sh/script.c: Move from here ...
12597 * script/script.c: ... to here. Update all users.
12598
f84b481b
RM
125992009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12600
12601 * configure.ac: Detect all `emu' platforms. Define
12602 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
12603 --enable-grub-emu logic. Disable include/grub/machine
12604 symlink on `emu' platforms.
12605
12606 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
12607 * gensymlist.sh.in: Likewise.
12608
12609 * include/grub/i386/coreboot/machine.h: Remove file.
12610 * include/grub/i386/efi/machine.h: Likewise.
12611 * include/grub/i386/ieee1275/machine.h: Likewise.
12612 * include/grub/i386/pc/machine.h: Likewise.
12613 * include/grub/i386/qemu/machine.h: Likewise.
12614 * include/grub/powerpc/ieee1275/machine.h: Likewise.
12615 * include/grub/sparc64/ieee1275/machine.h: Likewise.
12616 * include/grub/x86_64/efi/machine.h: Likewise.
12617
12618 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
12619 * commands/halt.c: Likewise.
12620 * commands/reboot.c: Likewise.
12621 * include/grub/autoefi.h: Likewise.
12622 * include/grub/i386/at_keyboard.h: Likewise.
12623 * include/grub/i386/kernel.h: Likewise.
12624 * include/grub/i386/loader.h: Likewise.
12625 * include/grub/i386/pc/memory.h: Likewise.
12626 * kern/dl.c: Likewise.
12627 * kern/i386/coreboot/init.c: Likewise.
12628 * loader/i386/bsd.c: Likewise.
12629 * loader/i386/linux.c: Likewise.
12630 * loader/multiboot_loader.c: Likewise.
12631 * term/i386/pc/serial.c: Likewise.
12632 * term/usb_keyboard.c: Likewise.
12633
12634 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
12635 `<grub/machine/machine.h>'
12636 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
12637 * util/misc.c: Remove `<grub/machine/machine.h>' and
12638 `<grub/machine/time.h>'.
12639
12640 * Makefile.in (enable_grub_emu): Remove variable.
12641 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
12642
12643 * conf/any-emu.rmk: New file.
12644 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
12645 (grub_emu_init.c): Move from here ...
12646 * conf/any-emu.rmk: ... to here.
12647
12648 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
12649 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
12650 * conf/any-emu.rmk: ... to here.
12651
4efeab03
RM
126522009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12653
12654 * include/grub/parser.h (grub_parser_register): Document need
12655 of `name' parameter.
12656 * normal/main.c (grub_normal_read_line): Simplify prompt string.
12657 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
12658 "sh" to "grub".
12659
ea1dd8bf
RM
126602009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12661
12662 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
12663 `$(XGETTEXT)'.
12664 * include/grub/i18n.h (N_): New macro.
12665 * util/mkisofs/mkisofs.h: Likewise.
12666 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
12667 around N_().
12668 (usage): Use gettext() to translate help strings when printing them.
12669
0c140626
RM
126702009-11-23 Robert Millan <rmh.grub@aybabtu.com>
12671
12672 Based on patch from Bean
12673 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
12674
12675 * video/efi_fb.c: New file.
12676 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
12677 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
12678 variables.
12679 * conf/x86_64-efi.rmk: Likewise.
12680
87d58298
RM
126812009-11-22 Robert Millan <rmh.grub@aybabtu.com>
12682
12683 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
12684 * util/i386/pc/grub-setup.c: Likewise.
12685
994cc3a3
ST
126862009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
12687
12688 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
12689 <hurd/fs.h>
12690 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
12691 file_get_storage_info to implement grub_guess_root_device.
12692
26a61d6a
FZ
126932009-11-21 Felix Zielcke <fzielcke@z-51.de>
12694
12695 * Makefile.in (target): Use make's builtin $(shell) function
12696 instead of calling directly $(SHELL) to create the locale directories,
12697 inside the $(foreach) function.
12698
74ff1dd5
FZ
126992009-11-21 Felix Zielcke <fzielcke@z-51.de>
12700
12701 * util/grub-mkrescue.in: Print an error and usage if output option
12702 has not been given.
12703
0b787d0e
FZ
127042009-11-21 Felix Zielcke <fzielcke@z-51.de>
12705
12706 Patch from Loïc Minier <loic.minier@ubuntu.com>.
12707 * util/grub.d/30_os-prober.in: Cope with Linux entries where
12708 root and /boot are on different devices.
12709
1164b270
RM
127102009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12711
12712 Fix build for srcdir != objdir.
12713
12714 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
12715 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
12716 $(srcdir).
12717 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
12718 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
12719 reference for input.
12720
13774a2f
RM
127212009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12722
12723 * util/grub-mkrescue.in: Use source directory direcly (without copiing
12724 or hardlinking it). Remove -J option, Joliet is not compatible with
12725 multiple source directories.
12726
efda854e
RM
127272009-11-21 Carles Pina i Estany <carles@pina.cat>
127282009-11-21 Robert Millan <rmh.grub@aybabtu.com>
12729
12730 * util/grub-mkrescue.in: Recognize `--override-directory' option.
12731 (process_input_dir): New function. Process an arbitrary input
12732 directory.
12733 Misc adjustments to support both "override mode" and system-wide mode.
12734
6c09890c
FZ
127352009-11-20 Felix Zielcke <fzielcke@z-51.de>
12736
12737 * configure.ac (UNIFONT_BDF): Rename to ...
12738 (FONT_SOURCE): ... this. Update all users.
12739
a797824f
FZ
127402009-11-20 Felix Zielcke <fzielcke@z-51.de>
12741
12742 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
12743 to the list of unifont files to look for.
12744
cd4f42b0
RM
127452009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12746
12747 Patch from Joe Auricchio <jauricchio@gmail.com>
12748 * commands/minicmd.c (grub_mini_cmd_clear): New function.
12749 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
12750 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
12751
393c783d
FZ
127522009-11-19 Felix Zielcke <fzielcke@z-51.de>
12753
12754 * Makefile.in (install-local): Add a missing backslash.
12755
b2f1e327
FZ
127562009-11-19 Felix Zielcke <fzielcke@z-51.de>
12757
12758 * include/grub/x86_64/io.h: New file.
12759
f577f7a0
RM
127602009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12761
12762 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
12763 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
12764 Include `"progname.h"'.
12765 (main): Initialize gettext.
12766 * util/i386/pc/grub-setup.c: Gettexttize.
12767 * util/i386/pc/grub-mkimage.c: Likewise.
12768
12769 * Makefile.in (po/*.po): Redefine as ...
12770 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
12771
3bc7896c
RM
12772 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
12773
c37943b6
RM
127742009-11-19 Robert Millan <rmh.grub@aybabtu.com>
12775
12776 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
12777 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
12778 (program_name): Remove.
12779 (main): Initialize gettext support.
6323f705
RM
12780 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
12781 Include `<libintl.h>'.
12782 (_): New macro.
c37943b6
RM
12783
12784 * util/mkisofs/eltorito.c: Gettexttize.
12785 * util/mkisofs/joliet.c: Likewise.
12786 * util/mkisofs/mkisofs.c: Likewise.
c37943b6
RM
12787 * util/mkisofs/multi.c: Likewise.
12788 * util/mkisofs/rock.c: Likewise.
12789 * util/mkisofs/tree.c: Likewise.
12790 * util/mkisofs/write.c: Likewise.
12791
3bc7896c
RM
12792 * po/POTFILES: Update with new files.
12793
5ce77c6e
RM
127942009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12795
12796 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
12797 * util/mkisofs/iso9660.h: Likewise.
12798 * util/mkisofs/joliet.c: Likewise.
12799 * util/mkisofs/mkisofs.c: Likewise.
12800 * util/mkisofs/mkisofs.h: Likewise.
12801 * util/mkisofs/rock.c: Likewise.
12802 * util/mkisofs/tree.c: Likewise.
12803 * util/mkisofs/write.c: Likewise.
12804
12805 * util/mkisofs/eltorito.c (rcsid): Remove.
12806 * util/mkisofs/hash.c: Likewise.
12807 * util/mkisofs/joliet.c: Likewise.
12808 * util/mkisofs/name.c: Likewise.
12809 * util/mkisofs/rock.c: Likewise.
12810 * util/mkisofs/tree.c: Likewise.
12811 * util/mkisofs/write.c: Likewise.
12812
1dabbc77
RM
128132009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12814
12815 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
12816 instead of static allocation.
12817 * util/mkisofs/match.h: Likewise.
12818
633877cb
RM
128192009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12820
3bc7896c
RM
12821 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
12822 and `util/grub.d/10_linux.in'.
633877cb
RM
12823 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
12824 translatable Shell files.
12825
af1c0c85
RM
128262009-11-18 Robert Millan <rmh.grub@aybabtu.com>
12827
12828 * Makefile.in ($(srcdir)/aclocal.m4): New target.
12829
769ae37b
RM
128302009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12831
12832 * INSTALL: Document Automake is needed for bootstrap.
3bc7896c 12833 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
769ae37b
RM
12834 * util/grub.d/10_kfreebsd.in (bindir): New variable.
12835 Add gettext initialization.
12836 (kfreebsd_entry): Make menuentry output translatable.
12837
128382009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12839
12840 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
12841 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
12842 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
12843 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
12844 (LINGUAS): Auto-generate using `po/LINGUAS'.
3bc7896c 12845 * po/LINGUAS: New file.
769ae37b
RM
12846
128472009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12848
12849 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
12850 other things).
12851 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
12852 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
12853 bindtextdomain() calls for gettext initialization.
12854
128552009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12856
12857 * gnulib/progname.c: New file (imported from Gnulib).
12858 * gnulib/progname.h: Likewise.
12859 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
12860 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
12861 (usage): Replace `progname' with `program_name'.
12862 (main): Use set_program_name() for program name initialization.
12863
128642009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12865
12866 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
12867 from here ...
12868 * Makefile.in (CPPFLAGS): ... to here.
12869
128702009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12871
12872 * aclocal.m4: Move from here ...
12873 * acinclude.m4: ... to here.
12874 * autogen.sh: Add call to `aclocal'.
12875 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
12876
128772009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12878
12879 * Makefile.in (CLEANFILES): Add `po/*.mo'.
12880 (LINGUAS): New variable.
12881 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
12882 (install-local): Install MO files.
12883 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
12884 * include/grub/i18n.h: New file.
3bc7896c
RM
12885 * po/POTFILES: New file.
12886 * po/ca.po: New file.
769ae37b
RM
12887 * util/grub.d/10_linux.in (bindir): New variable.
12888 Add gettext initialization.
12889 (linux_entry): Make menuentry output translatable.
12890 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
12891 (usage): Make --help output translatable.
12892 (main): Initialize gettext.
12893
02c0a6ad
RM
128942009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12895
12896 * import_gcry.py: New file (written by Vladimir with minor
12897 adjustments).
12898 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
12899 ciphers.
12900 * INSTALL: Document that Python is required for bootstrap.
12901
129022009-11-17 Robert Millan <rmh.grub@aybabtu.com>
12903
12904 Import ciphers from libgcrypt 1.4.4.
12905
12906 * lib/libgcrypt/cipher/ChangeLog
12907 * lib/libgcrypt/cipher/ac.c
12908 * lib/libgcrypt/cipher/arcfour.c
12909 * lib/libgcrypt/cipher/bithelp.h
12910 * lib/libgcrypt/cipher/blowfish.c
12911 * lib/libgcrypt/cipher/camellia-glue.c
12912 * lib/libgcrypt/cipher/camellia.c
12913 * lib/libgcrypt/cipher/camellia.h
12914 * lib/libgcrypt/cipher/cast5.c
12915 * lib/libgcrypt/cipher/cipher.c
12916 * lib/libgcrypt/cipher/crc.c
12917 * lib/libgcrypt/cipher/des.c
12918 * lib/libgcrypt/cipher/dsa.c
12919 * lib/libgcrypt/cipher/ecc.c
12920 * lib/libgcrypt/cipher/elgamal.c
12921 * lib/libgcrypt/cipher/hash-common.c
12922 * lib/libgcrypt/cipher/hash-common.h
12923 * lib/libgcrypt/cipher/hmac-tests.c
12924 * lib/libgcrypt/cipher/md.c
12925 * lib/libgcrypt/cipher/md4.c
12926 * lib/libgcrypt/cipher/md5.c
12927 * lib/libgcrypt/cipher/primegen.c
12928 * lib/libgcrypt/cipher/pubkey.c
12929 * lib/libgcrypt/cipher/rfc2268.c
12930 * lib/libgcrypt/cipher/rijndael-tables.h
12931 * lib/libgcrypt/cipher/rijndael.c
12932 * lib/libgcrypt/cipher/rmd.h
12933 * lib/libgcrypt/cipher/rmd160.c
12934 * lib/libgcrypt/cipher/rsa.c
12935 * lib/libgcrypt/cipher/seed.c
12936 * lib/libgcrypt/cipher/serpent.c
12937 * lib/libgcrypt/cipher/sha1.c
12938 * lib/libgcrypt/cipher/sha256.c
12939 * lib/libgcrypt/cipher/sha512.c
12940 * lib/libgcrypt/cipher/tiger.c
12941 * lib/libgcrypt/cipher/twofish.c
12942 * lib/libgcrypt/cipher/whirlpool.c
12943
af2f93ac
RM
129442009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12945
12946 Fix build for systems without error().
12947
12948 * gnulib/error.c: New file (imported from Gnulib).
12949 * gnulib/error.h: Likewise.
12950 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
12951 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
12952 (this variable is now used by error()).
12953
73fb3dd5
FZ
129542009-11-16 Felix Zielcke <fzielcke@z-51.de>
12955
814f5e96
FZ
12956 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
12957 instead of relying that char is signed.
73fb3dd5 12958
a691ca33
VS
129592009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
12960
12961 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
12962 blocksize different from specified.
12963 (grub_pxefs_read): Likewise.
12964
2af8f0f4
FZ
129652009-11-16 Felix Zielcke <fzielcke@z-51.de>
12966
12967 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
12968
12969 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
12970 (grub_ata_readwrite): Likewise. Update 2 format strings.
12971 (grub_atapi_read): Likewise.
12972
12973 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
12974 * conf/i386.rmk (pkglib_MODULES): ... to here ...
12975 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
12976 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
12977 (ata_mod_LDFLAGS): Move from here ...
12978 * conf/i386.rmk: ... to here ...
12979 * conf/x86_64-efi.rmk: ... and here.
12980 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
12981 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
12982
83bdecaf
RM
129832009-11-16 Robert Millan <rmh.grub@aybabtu.com>
12984
12985 Relicense multiboot.h, with RMS' blessing.
12986
12987 * include/multiboot.h: Change to X11 license.
12988
fd6fd3d7
RM
129892009-11-15 Robert Millan <rmh.grub@aybabtu.com>
12990
12991 Support --version in grub-mkisofs.
12992
12993 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
12994 (OPTION_VERSION): New macro.
12995 (ld_options): Recognize --version.
12996 (usage): Move `program_name' from here ...
12997 (program_name): ... to here. Add `static' qualifier.
12998 (main): Recognize `OPTION_VERSION'.
12999
16a88c49
FZ
130002009-11-15 Felix Zielcke <fzielcke@z-51.de>
13001
13002 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
13003 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
13004
a4158476
RM
130052009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13006
13007 Fix help2man generation for mkisofs.
13008
13009 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
13010 (usage): Send output to stdout (rather than stderr).
13011
fc2208b0
RM
130122009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13013
13014 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
13015 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
13016 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
13017 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
13018 (bin_SCRIPTS): Add `grub-mkfloppy'.
13019 (grub_mkfloppy_SOURCES): New variable.
13020
13021 * util/grub-mkrescue.in: New file.
13022 * util/i386/pc/grub-mkfloppy.in: New file.
13023
13024 * util/i386/coreboot/grub-mkrescue.in: Remove.
13025 * util/i386/pc/grub-mkrescue.in: Remove.
13026
8d0edf4a
RM
130272009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13028
13029 * include/grub/multiboot.h (struct grub_multiboot_header): Move
13030 from here ...
13031 * include/multiboot.h (struct multiboot_header): ... to here. Update
13032 all users.
13033 * include/grub/multiboot.h (struct grub_multiboot_info): Move
13034 from here ...
13035 * include/multiboot.h (struct multiboot_info): ... to here. Update
13036 all users.
13037 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
13038 from here ...
13039 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
13040 Update all users.
13041 * include/grub/multiboot.h (struct grub_mod_list): Move
13042 from here ...
13043 * include/multiboot.h (struct multiboot_mod_list): ... to here.
13044 Update all users.
13045
a73f5969
RM
130462009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13047
13048 * include/multiboot2.h (multiboot_word): Rename from this ...
13049 (multiboot2_word): ... to this. Update all users.
13050 (multiboot_header): Rename from this ...
13051 (multiboot2_header): ... to this. Update all users.
13052 (multiboot_tag_header): Rename from this ...
13053 (multiboot2_tag_header): ... to this. Update all users.
13054 (multiboot_tag_start): Rename from this ...
13055 (multiboot2_tag_start): ... to this. Update all users.
13056 (multiboot_tag_name): Rename from this ...
13057 (multiboot2_tag_name): ... to this. Update all users.
13058 (multiboot_tag_module): Rename from this ...
13059 (multiboot2_tag_module): ... to this. Update all users.
13060 (multiboot_tag_memory): Rename from this ...
13061 (multiboot2_tag_memory): ... to this. Update all users.
13062 (multiboot_tag_unused): Rename from this ...
13063 (multiboot2_tag_unused): ... to this. Update all users.
13064 (multiboot_tag_end): Rename from this ...
13065 (multiboot2_tag_end): ... to this. Update all users.
13066
1c8927f0
RM
130672009-11-13 Robert Millan <rmh.grub@aybabtu.com>
13068
13069 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
13070 this platform we should support Multiboot1 first.
13071
13072 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
13073 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
13074 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
13075
6e1e0d89
RM
130762009-11-12 Robert Millan <rmh.grub@aybabtu.com>
13077
13078 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
13079 of write calls (converting them to fwrite() if they aren't already).
13080 (get_torito_desc): Likewise.
13081 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
13082
7f2b34d8
RM
130832009-11-12 Robert Millan <rmh.grub@aybabtu.com>
13084
13085 * util/i386/pc/grub-install.in: Move from here ...
13086 * util/grub-install.in: ... to here. Update all users.
13087
c0ef3311
CW
130882009-11-11 Colin Watson <cjwatson@ubuntu.com>
13089
13090 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
13091
e1f240ff
RM
130922009-11-11 Robert Millan <rmh.grub@aybabtu.com>
13093
13094 Support for El Torito without floppy emulation.
13095
13096 * util/mkisofs/eltorito.c: Include `<errno.h>'.
13097 (init_boot_catalog): Improve error handling.
13098 (get_torito_desc): Don't use floppy emulation unless requested by
13099 user. Patch boot information table when requested via
13100 `-boot-info-table'.
13101 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
13102 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
13103 (use_boot_info_table): New variables.
13104 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
13105 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
13106 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
13107 `--eltorito-emul-floppy'.
13108 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
13109 and `OPTION_ELTORITO_EMUL_FLOPPY'.
13110 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
13111 (use_boot_info_table, get_731): New prototypes.
13112 * util/mkisofs/write.c (get_731): New function.
13113
af7d4de5
FZ
131142009-11-11 Felix Zielcke <fzielcke@z-51.de>
13115
13116 Fix the generation of the man page.
13117
13118 * util/pc/i386/grub-install.in: Source
13119 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
13120
2c55dbc0
RM
131212009-11-11 Robert Millan <rmh.grub@aybabtu.com>
13122
13123 Large file support for grub-mkisofs.
13124
13125 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
13126 * util/mkisofs/mkisofs.c (next_extent, last_extent)
13127 (session_start): Upgrade type to `uint64_t'. Update all users.
13128 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
13129 (struct directory_entry): Upgrade type of `starting_block' and
13130 `size' to `uint64_t'. Update all users.
13131 (struct deferred): Remove unused structure.
13132 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
13133 Update all users.
13134 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
13135 file is larger than `UINT32_MAX'.
13136 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
13137 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
13138 return value.
13139 (struct deferred_write): Upgrade type of `extent' and `size' to
13140 `uint64_t'. Update all users.
13141 (last_extent_written): Upgrade type to `uint64_t'. Update all
13142 users.
13143 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
13144 Update all users. Upgrade type of `remain' to `int64_t' and
13145 `use' to `size_t'. Use error() to handle fread() errors.
13146 (write_files): Rely on write_one_file() rather than calling
13147 xfwrite() directly.
13148
6a9cead5
FZ
131492009-11-09 Felix Zielcke <fzielcke@z-51.de>
13150
13151 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
13152
4825d790
RM
131532009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13154
13155 * util/mkisofs/fnmatch.c: Remove.
13156 * util/mkisofs/getopt1.c: Likewise.
13157 * util/mkisofs/getopt.c: Likewise.
13158 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
13159 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
13160 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
13161 `gnulib/getopt1.c' and `gnulib/getopt.c'.
13162 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
13163
13164 * configure.ac: Detect `mingw32msvc' host_os.
13165 Check for lstat(), getuid() and getgid().
13166
13167 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
13168 instances of `u_char' with `uint8_t'.
13169
13170 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
13171 [!HAVE_GETUID] (getuid): New function (stub).
13172 [!HAVE_GETGID] (getgid): Likewise.
13173 [!HAVE_LSTAT] (lstat): Likewise.
13174 [!S_IROTH] (S_IROTH): New macro (dummy).
13175 [!S_IRGRP] (S_IRGRP): Likewise.
13176
84b860d8
RM
131772009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13178
13179 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
13180 conditional expression).
13181
66e9b712
RM
131822009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13183
13184 Import from Gnulib.
13185
13186 * gnulib/fnmatch.c: New file.
13187 * gnulib/fnmatch.h: Likewise.
13188 * gnulib/fnmatch_loop.c: Likewise.
13189 * gnulib/getopt.c: Likewise.
13190 * gnulib/getopt.h: Likewise.
13191 * gnulib/getopt1.c: Likewise.
13192 * gnulib/getopt_int.h: Likewise.
13193 * gnulib/gettext.h: Likewise.
13194
34f4a5b0
RM
131952009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13196
13197 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
13198 * normal/handler.c (read_handler_list): Likewise.
13199
ac451143
RM
132002009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13201
13202 Misc cleanup.
13203
13204 * kern/command.c (grub_register_command_prio): Use
13205 grub_zalloc() instead of explicitly zeroing data.
13206 * kern/list.c: Include `<grub/mm.h>'.
13207 (grub_named_list_find): Replace `0' with `NULL'.
13208 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
13209 (fs_module_list): Change type to `grub_named_list_t'. Update all
13210 users.
13211 * normal/dyncmd.c (read_command_list): Add space between function
13212 call and parenthesis.
13213 * normal/handler.c (read_handler_list): Likewise.
13214
4089b167
RM
132152009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13216
13217 * normal/auth.c (punishment_delay): Moved from here ...
13218 (grub_auth_strcmp): ... to here (inside function).
13219
325f5037
RM
132202009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13221
13222 * include/grub/list.h (struct grub_named_list): Remove `const'
13223 qualifier from `name'.
13224 (struct grub_prio_list): Likewise.
13225
7aea29a3
RM
132262009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13227
13228 * normal/auth.c: Include `<grub/time.h>'.
13229 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
13230
3fd6f044
RM
132312009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13232
13233 * normal/auth.c (punishment_delay): New variable.
13234 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
13235 (grub_auth_check_authentication): Punish failed login attempts with
13236 an incremental (2^N) delay.
13237
a4cd68e4
RM
132382009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13239
13240 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
13241 path with $(srcdir).
13242
7ad12f43
VS
132432009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13244
13245 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
13246
c1129f03
RM
132472009-11-09 Robert Millan <rmh.grub@aybabtu.com>
13248
13249 * util/i386/coreboot/grub-mkrescue.in: New file.
13250 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
13251 variables.
13252
13253 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
13254 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
13255 * configure.ac: Add header and function checks to satisfy grub-mkisofs
13256 requirements.
13257 * util/mkisofs/defaults.h: New file.
13258 * util/mkisofs/eltorito.c: Likewise.
13259 * util/mkisofs/exclude.h: Likewise.
13260 * util/mkisofs/fnmatch.c: Likewise.
13261 * util/mkisofs/getopt.c: Likewise.
13262 * util/mkisofs/getopt1.c: Likewise.
13263 * util/mkisofs/hash.c: Likewise.
13264 * util/mkisofs/include/fctldefs.h: Likewise.
13265 * util/mkisofs/include/mconfig.h: Likewise.
13266 * util/mkisofs/include/prototyp.h: Likewise.
13267 * util/mkisofs/include/statdefs.h: Likewise.
13268 * util/mkisofs/iso9660.h: Likewise.
13269 * util/mkisofs/joliet.c: Likewise.
13270 * util/mkisofs/match.c: Likewise.
13271 * util/mkisofs/match.h: Likewise.
13272 * util/mkisofs/mkisofs.c: Likewise.
13273 * util/mkisofs/mkisofs.h: Likewise.
13274 * util/mkisofs/multi.c: Likewise.
13275 * util/mkisofs/name.c: Likewise.
13276 * util/mkisofs/rock.c: Likewise.
13277 * util/mkisofs/tree.c: Likewise.
13278 * util/mkisofs/write.c: Likewise.
13279
ec8bb77d
VS
132802009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
13281
13282 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
13283 being insecure.
13284
3716b12c
RM
132852009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13286
13287 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
13288 `grub-mkimage' (and use $0 when possible).
13289
b97b7b91
RM
132902009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13291
13292 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
13293 error message for excessively large memory map.
13294
04114812
RM
132952009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13296
13297 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
13298 executable bit.
13299
e4eb2373
RM
133002009-11-08 Robert Millan <rmh.grub@aybabtu.com>
13301
13302 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
13303 message for coreboot users.
13304
c926e1d5 133052009-11-07 Robert Millan <rmh.grub@aybabtu.com>
13306
13307 Fix build with GNU gold.
13308
13309 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
13310 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
13311 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
13312 link addresses.
13313 * aclocal.m4: Likewise.
13314
86e5b1db 133152009-11-04 Felix Zielcke <fzielcke@z-51.de>
13316
13317 * configure.ac (AC_PREREQ): Bump to 2.59d.
13318 * INSTALL: Make it more clear when Autoconf and Ruby are
13319 needed and when to run `./autogen.sh'.
13320
246cd78f 133212009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
13322
13323 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
13324 OSes.
13325
4f9dfb37 133262009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13327
13328 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
13329
b82bd5e1 133302009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13331
13332 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
13333 giving it to GNU Mach.
13334
ff1a9bca 133352009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13336
13337 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
13338 GNU partition number to get internal GRUB partition number.
13339
61697d9c 133402009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
13341
13342 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
13343 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
13344
a50569e1 133452009-11-01 Robert Millan <rmh.grub@aybabtu.com>
13346
13347 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
13348 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
13349 case.
13350
5b153867 133512009-11-01 Felix Zielcke <fzielcke@z-51.de>
13352
13353 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
13354
d9e2cd70 133552009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13356
13357 Fix build problem.
13358
13359 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
13360 `-isystem=$(srcdir)/include'.
13361
805111a4 133622009-10-30 Robert Millan <rmh.grub@aybabtu.com>
13363
13364 * util/i386/pc/grub-install.in: Remove hint that device.map should be
13365 checked (grub-install doesn't currently rely on it).
13366
fa6e945f 133672009-10-29 Robert Millan <rmh.grub@aybabtu.com>
13368
13369 Revert SVN r2660.
13370
13371 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
13372 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13373 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
13374 * conf/i386-ieee1275.rmk: Likewise.
13375 * conf/i386-pc.rmk: Likewise.
13376 * conf/powerpc-ieee1275.rmk: Likewise.
13377 * conf/sparc64-ieee1275.rmk: Likewise.
13378 * conf/x86_64-efi.rmk: Likewise.
13379
cee15086 133802009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13381
13382 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
13383
95b9239e 133842009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13385
13386 * include/grub/misc.h: Stop checking for APPLE_CC.
13387
2ed19dfd 133882009-10-28 Robert Millan <rmh.grub@aybabtu.com>
13389
13390 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
13391 doesn't cause an infinite call loop.
13392
fdcdde19 133932009-10-28 Felix Zielcke <fzielcke@z-51.de>
13394
13395 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
13396 strings.
13397
cefabfe1 133982009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13399
13400 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
13401 variable.
13402 * Makefile.in: Likewise.
13403
ed96ab6d 134042009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13405
13406 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
13407
0579b753 134082009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13409
13410 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
13411
478df409 134122009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13413
13414 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
13415
083d1679 134162009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13417
13418 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
13419 from here ...
13420 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
13421
5947ae32 134222009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13423
13424 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
13425 in $(MAKEINFO) invocation. This makes it clear in output that
13426 errors are being ignored.
13427
94180ff6 134282009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13429
13430 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
13431 from here ...
13432 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
13433 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
13434 * conf/i386-ieee1275.rmk: Likewise.
13435 * conf/i386-pc.rmk: Likewise.
13436 * conf/powerpc-ieee1275.rmk: Likewise.
13437 * conf/sparc64-ieee1275.rmk: Likewise.
13438 * conf/x86_64-efi.rmk: Likewise.
13439
9031b03a 134402009-10-26 Colin Watson <cjwatson@ubuntu.com>
13441
13442 * util/grub-editenv.c (main): If only a command is given, use
13443 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
13444 (usage): FILENAME is now optional and has a default.
13445
e4f6809b 134462009-10-26 Colin Watson <cjwatson@ubuntu.com>
13447
13448 Improve grub-mkconfig performance when there are several menu
13449 entries on a single filesystem.
13450
13451 * util/grub.d/10_linux.in (linux_entry): Cache the output of
13452 prepare_grub_to_access_device.
13453 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13454 * util/grub.d/30_os-prober.in: Likewise.
13455
67937d4d 134562009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13457
13458 * util/grub.d/10_freebsd.in: Remove.
13459 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
13460 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
13461
ee3756cc 134622009-10-26 Robert Millan <rmh.grub@aybabtu.com>
13463
5c35048e 13464 * docs/grub.cfg: Fix example usage of *BSD loaders.
ee3756cc 13465
4dea1c6f 134662009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13467
13468 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
13469 grub_util_error() call.
13470
042484d7 134712009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13472
13473 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
13474 `reserved_first_sector' member.
13475 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
13476 `reserved_first_sector' to 1.
13477 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
13478 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
13479 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
13480 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
13481 filesystems which begin at first sector.
13482 (options): New option --skip-fs-probe.
13483 (main): Handle --skip-fs-probe and pass it to setup().
13484
d64448a7 134852009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13486
13487 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
13488 (memset): Fix function prototype.
13489
508d42ec 134902009-10-25 Robert Millan <rmh.grub@aybabtu.com>
134912009-10-25 Vasily Averin <vvs@parallels.com>
13492
13493 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
13494 `dirent.direntlen == 0'.
13495
b240e30c 134962009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13497
13498 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
13499 `cpio'.
13500 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
13501
346e7fbe 135022009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13503
13504 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
13505 `__trampoline_setup' and `__ucmpdi2'.
13506 * include/grub/powerpc/libgcc.h: Only export symbols for functions
13507 that libgcc provides.
13508
cdb308b0 135092009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13510
13511 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
13512 * include/grub/sparc64/libgcc.h (memset): Likewise.
13513 * include/grub/misc.h (memset, memcmp): New function prototypes.
13514
fb26abc2 135152009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13516
13517 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
13518 `cpio'.
13519 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
13520
f6693890 135212009-10-25 Robert Millan <rmh.grub@aybabtu.com>
13522
13523 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
13524 * docs/grub.cfg: Compensate for recent change in multiboot
13525 loader (since 2009-08-14 it won't pass filename to payload).
13526 * util/grub.d/10_hurd.in: Likewise.
13527
0933cdc0 135282009-10-21 Felix Zielcke <fzielcke@z-51.de>
13529
13530 * config.guess: Update to latest version from config git
13531 repository.
13532 * config.sub: Likewise.
13533
3b2fe8c2 135342009-10-20 Robert Millan <rmh.grub@aybabtu.com>
13535
13536 Fix build on sparc64.
13537
13538 * configure.ac: Perform checks for libgcc symbols before
13539 adding `-nostdlib' to LDFLAGS.
13540
46695a62 135412009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13542
13543 Let user specify OpenBSD root device.
13544
13545 * loader/i386/bsd.c (openbsd_root): New variable.
13546 (openbsd_opts): New option 'root'.
13547 (OPENBSD_ROOT_ARG): New macro.
13548 (grub_openbsd_boot): Use 'openbsd_root'.
13549 (grub_cmd_openbsd): Fill 'openbsd_root'.
13550
d2b6b7fc 135512009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13552
13553 * NEWS: Misc adjustments.
13554
421bd7ac 135552009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
13556
13557 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
13558
f1d29d87 135592009-10-16 Robert Millan <rmh.grub@aybabtu.com>
13560
13561 * configure.ac: Bump version to 1.97.
13562
6f3cd880 135632009-10-16 Colin Watson <cjwatson@ubuntu.com>
13564
13565 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
13566 -mno-3dnow on x86 architectures. Some toolchains enable these
13567 features by default, but they rely on registers that aren't enabled
13568 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
13569
035f7122 135702009-10-15 Robert Millan <rmh.grub@aybabtu.com>
13571
13572 Make entry text a bit more readable.
13573
13574 * util/grub.d/10_linux.in: Add `with' before `Linux'.
13575
44998e58 135762009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13577
13578 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
13579
cd2851b3 135802009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13581
13582 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
13583 operations.
13584
c6f3b249 135852009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13586
13587 * configure.ac: Add missing dollar.
13588
6b5886ba 135892009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
13590
13591 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
13592
13593 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
13594 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
13595 exports.
13596 * include/grub/sparc64/libgcc.h: Likewise. Use
13597 preprocessor conditionals.
13598
e9d66f6d 135992009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13600
13601 * conf/common.rmk (grub-dumpbios): Remove rule.
13602 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
13603 * util/grub-dumpbios.in: Remove file.
13604
9155bc17 136052009-10-14 Robert Millan <rmh.grub@aybabtu.com>
13606
13607 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
13608 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
13609
13610 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
13611 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
13612 users.
13613
13614 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
13615 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
13616 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
13617 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
13618 users.
13619
bf7f7a18 136202009-10-12 Robert Millan <rmh.grub@aybabtu.com>
13621
13622 * term/tparm.c: Switch to GPLv3.
13623
86564c26 136242009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13625
13626 * include/grub/i386/cpuid.h: Add header protection.
13627
5c936493 136282009-10-09 Robert Millan <rmh.grub@aybabtu.com>
13629
13630 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
13631
13632 * include/grub/i386/cpuid.h: New file.
13633 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
13634 (has_longmode): Rename to ...
13635 (grub_cpuid_has_longmode): ... this. Update all users. Remove
13636 `static' attribute.
13637 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
13638 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
13639 on a CPU that doesn't implement AMD64 instruction set.
13640
186e7cf2 136412009-10-06 Colin Watson <cjwatson@ubuntu.com>
13642
13643 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
13644 that version.texi is rebuilt on version number changes.
13645
83b65c4a 136462009-10-06 Colin Watson <cjwatson@ubuntu.com>
13647
13648 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
13649 Fixes bug #27602.
13650
d244281c 136512009-10-06 Colin Watson <cjwatson@ubuntu.com>
13652
13653 * util/i386/pc/grub-install.in: Source
13654 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
13655 that the --grub-probe option will work.
13656 * util/sparc64/ieee1275/grub-install.in: Likewise.
13657
da25306d 136582009-10-05 Robert Millan <rmh.grub@aybabtu.com>
13659
13660 * configure.ac: Bump version to 1.97~beta4.
13661
e8ee83c0 136622009-10-03 Robert Millan <rmh.grub@aybabtu.com>
13663
13664 Resync grub-mkdevicemap in x86_64-efi.
13665
13666 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
13667 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
13668 `util/devicemap.c'.
13669
50dcabcf 136702009-10-01 Colin Watson <cjwatson@ubuntu.com>
13671
13672 * util/grub-editenv.c (create_envblk_file): Write new block with a
13673 .new suffix and then rename it into place, to ensure atomic
13674 creation.
13675
0e51c3a7 136762009-09-28 Robert Millan <rmh.grub@aybabtu.com>
13677
13678 Do not automatically install headers.
13679
13680 * Makefile.in (include_DATA): Remove. Update all users.
13681
31299a95 136822009-09-26 Robert Millan <rmh.grub@aybabtu.com>
13683
13684 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
13685 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
13686
13687 * util/osdetect.lua: Remove.
13688 * script/lua/lauxlib.c: Likewise.
13689 * script/lua/ldebug.c: Likewise.
13690 * script/lua/grub_main.c: Likewise.
13691 * script/lua/lauxlib.h: Likewise.
13692 * script/lua/ldebug.h: Likewise.
13693 * script/lua/ltablib.c: Likewise.
13694 * script/lua/liolib.c: Likewise.
13695 * script/lua/lstrlib.c: Likewise.
13696 * script/lua/lualib.h: Likewise.
13697 * script/lua/ldo.c: Likewise.
13698 * script/lua/ldump.c: Likewise.
13699 * script/lua/ldo.h: Likewise.
13700 * script/lua/loslib.c: Likewise.
13701 * script/lua/lundump.c: Likewise.
13702 * script/lua/grub_lib.c: Likewise.
13703 * script/lua/ldblib.c: Likewise.
13704 * script/lua/lundump.h: Likewise.
13705 * script/lua/lmem.c: Likewise.
13706 * script/lua/grub_lib.h: Likewise.
13707 * script/lua/lmathlib.c: Likewise.
13708 * script/lua/lstate.c: Likewise.
13709 * script/lua/ltm.c: Likewise.
13710 * script/lua/lvm.c: Likewise.
13711 * script/lua/lmem.h: Likewise.
13712 * script/lua/lstate.h: Likewise.
13713 * script/lua/ltm.h: Likewise.
13714 * script/lua/ltable.c: Likewise.
13715 * script/lua/lvm.h: Likewise.
13716 * script/lua/llex.c: Likewise.
13717 * script/lua/lgc.c: Likewise.
13718 * script/lua/grub_lua.h: Likewise.
13719 * script/lua/loadlib.c: Likewise.
13720 * script/lua/lfunc.c: Likewise.
13721 * script/lua/lopcodes.c: Likewise.
13722 * script/lua/lparser.c: Likewise.
13723 * script/lua/ltable.h: Likewise.
13724 * script/lua/llex.h: Likewise.
13725 * script/lua/lgc.h: Likewise.
13726 * script/lua/lfunc.h: Likewise.
13727 * script/lua/lbaselib.c: Likewise.
13728 * script/lua/lopcodes.h: Likewise.
13729 * script/lua/lparser.h: Likewise.
13730 * script/lua/lzio.c: Likewise.
13731 * script/lua/linit.c: Likewise.
13732 * script/lua/lobject.c: Likewise.
13733 * script/lua/llimits.h: Likewise.
13734 * script/lua/lstring.c: Likewise.
13735 * script/lua/lzio.h: Likewise.
13736 * script/lua/lapi.c: Likewise.
13737 * script/lua/lcode.c: Likewise.
13738 * script/lua/lua.h: Likewise.
13739 * script/lua/lobject.h: Likewise.
13740 * script/lua/lstring.h: Likewise.
13741 * script/lua/lapi.h: Likewise.
13742 * script/lua/lcode.h: Likewise.
13743 * script/lua/luaconf.h: Likewise.
13744
cb8a2c38 137452009-09-26 Colin Watson <cjwatson@ubuntu.com>
13746
13747 * docs/grub.texi (Command-line and menu entry commands): Document
13748 date and echo commands.
13749
6b9b6276 137502009-09-24 Pavel Roskin <proski@gnu.org>
13751
13752 * include/grub/kernel.h (struct grub_module_header): Remove
13753 `grub_module_header_types'. Make `type' unsigned. Make `size'
13754 32-bit on all platforms.
13755 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
13756 8-bit field. Use grub_host_to_target32() for `size'.
13757 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
13758 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
13759 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
13760
4e5a02a7 137612009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13762
13763 Fix "lost keypress" bug in at_keyboard.
13764
13765 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
13766 Checks for readyness of input buffer (without flushing it).
13767 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
13768 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
13769
c6dcedf6 137702009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13771
13772 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
13773 size check within GRUB_MACHINE_PCBIOS section.
13774
74c958b1 137752009-09-24 Robert Millan <rmh.grub@aybabtu.com>
13776
13777 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
13778 return value.
13779 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
13780 KEYBOARD_ISREADY check.
13781 (grub_at_keyboard_checkkey): Rename to ...
13782 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
13783 Remove gratuitous cast.
13784
ff420223 137852009-09-23 Colin Watson <cjwatson@ubuntu.com>
13786
13787 * configure.ac: Call AC_PROG_MKDIR_P.
13788 * Makefile.in (docs/stamp-vti): Create docs directory. Create
13789 version.texi in $(builddir) rather than $(srcdir).
13790 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
13791 to makeinfo's @include search path.
13792
d96875df 137932009-09-23 Felix Zielcke <fzielcke@z-51.de>
13794
13795 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
13796
9b3f8365 137972009-09-23 Felix Zielcke <fzielcke@z-51.de>
13798
13799 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
13800 for `*.dpkg-new'.
13801
c44c90db 138022009-09-21 Colin Watson <cjwatson@ubuntu.com>
13803
13804 Build info documentation. Some code borrowed from Automake.
13805
13806 * configure.ac: Check for makeinfo.
13807 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
13808 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
13809 docs/version.texi.
13810 (MOSTLYCLEANFILES): Add vti.tmp.
13811 (docs/version.texi, docs/stamp-vti): Update automatically.
13812 (docs/grub.info): Build info documentation. Use --force and ignore
13813 errors for now.
13814 (all-local): Add $(INFOS).
13815 (install-local): Install info files.
13816 (uninstall): Uninstall info files.
13817 * docs/version.texi: Remove from revision control. This file is
13818 automatically generated on build now.
13819 * gendistlist.sh: Add `*.info'.
13820
e0b37bb5 138212009-09-21 Felix Zielcke <fzielcke@z-51.de>
13822
13823 * kern/term.c: Fix indentation.
13824
5a78865b 138252009-09-21 Felix Zielcke <fzielcke@z-51.de>
13826
13827 * util/hostdisk.c: Fix a comment.
13828
dace7e8a 138292009-09-20 Robert Millan <rmh.grub@aybabtu.com>
13830
13831 Fix regression introduced in r2539.
13832
13833 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
13834 to 0xA1.
13835
a83d079b 138362009-09-19 Colin Watson <cjwatson@ubuntu.com>
13837
13838 * util/grub.d/30_os-prober.in: Don't throw away stderr from
4cbbccec 13839 os-prober. Under normal operation, it does not print anything to
13840 stderr; if it does, we need to debug it, and throwing away stderr
13841 makes that excessively difficult.
a83d079b 13842
be94a509 138432009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
13844
13845 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
13846
63f745e8 138472009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13848
13849 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
13850 AC_LANG_PROGRAM from autoconf.
13851 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
13852 prototypes (fixes warning).
13853
13854 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
13855 `--disable-werror' was used.
13856
bbb2a70f 138572009-09-16 Robert Millan <rmh.grub@aybabtu.com>
13858
13859 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
13860 uninitialized `lastaddr'.
13861
77c24f1d 138622009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
13863
0f0b8c87 13864 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
77c24f1d 13865
07197f23 138662009-09-14 Colin Watson <cjwatson@ubuntu.com>
13867
13868 * commands/test.c (get_fileinfo): Return immediately if
13869 grub_fs_probe fails.
13870
dabf1798 138712009-09-14 José Martínez <xosemp@gmail.com>
13872
13873 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
13874
d52109a7 138752009-09-14 Colin Watson <cjwatson@ubuntu.com>
13876
13877 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
13878 output.
13879
56532179 138802009-09-13 Robert Millan <rmh.grub@aybabtu.com>
13881
13882 * configure.ac: Remove --enable-grub-pe2elf. Only build
13883 grub-pe2elf when needed by the build system itself.
13884 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
13885
8ef070f5 138862009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13887
13888 * configure.ac: Bump version to 1.97~beta3.
13889 * docs/version.texi: Likewise.
13890
61229557 138912009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13892
13893 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
13894 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
13895 from here ...
13896 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
13897 (grub_linux_setup_video): ... to here (with some adjustments).
13898
5c9f8d84 138992009-09-12 Robert Millan <rmh.grub@aybabtu.com>
13900
13901 Fix memory corruption issue (spotted by Colin Watson).
13902
13903 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
13904 causing returned size to be stored in an incorrect memory location.
13905 Fix use of uninitialized value when storing the returned size.
13906
e8f5d6e9 139072009-09-12 Yves Blusseau <blusseau@zetam.org>
13908
13909 Change clean rules to properly remove files
13910
13911 * genmk.rb: add new clean rules
13912 * Makefile.in (clean): add the new targets
13913 (mostlyclean): likewise
13914
cda2a409 139152009-09-11 Colin Watson <cjwatson@ubuntu.com>
13916
13917 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
13918 to grub_uint64_t.
13919 * fs/ntfs.c (init_file): Understand 64-bit sizes for
13920 non-resident files.
13921
86695375 139222009-09-11 Colin Watson <cjwatson@ubuntu.com>
13923
13924 * configure.ac: Don't look for help2man when cross-compiling. Fixes
13925 part of bug #27349.
13926
8aa1541a 139272009-09-10 Felix Zielcke <fzielcke@z-51.de>
13928
13929 * util/grub-mkconfig.in: Make the created config mode 400 and
13930 print a warning if it fails.
13931
48d9bb0a 139322009-09-10 Robert Millan <rmh.grub@aybabtu.com>
13933
13934 * util/grub.d/40_custom.in: Ask user to type custom entries below
13935 comment, rather than below 'exec tail' line.
13936
3b0521be 139372009-09-10 Colin Watson <cjwatson@ubuntu.com>
13938
13939 * util/grub.d/40_custom.in: Make sure that the explanatory text is
13940 visible in grub.cfg.
13941
50051d55 139422009-09-10 Colin Watson <cjwatson@ubuntu.com>
13943
13944 * util/grub.d/40_custom.in: Make it a little clearer how to use this
13945 file.
13946
c0d34387 139472009-09-10 Felix Zielcke <fzielcke@z-51.de>
13948
13949 * docs/grub.cfg: Add an example menu entry for memtest86+.
13950
80a608f3 139512009-09-09 Felix Zielcke <fzielcke@z-51.de>
13952
a2094832 13953 * config.guess: Update to latest version from config git.
80a608f3 13954 * config.sub: Likewise.
13955
99423078 139562009-09-08 Colin Watson <cjwatson@ubuntu.com>
13957
13958 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
13959 unknown-command case. Fixes bug #27320.
13960
44454e4c 139612009-09-08 Felix Zielcke <fzielcke@z-51.de>
13962
13963 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
13964 `help' if the command exists.
13965
e30d87ad 139662009-09-06 Robert Millan <rmh.grub@aybabtu.com>
13967
13968 * INSTALL: Require GCC 4.1.3 or later.
13969
9a86f1ec 139702009-09-06 Yves Blusseau <blusseau@zetam.org>
13971
13972 * Makefile.in (RMKFILES): add i386-qemu.rmk
13973 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
13974 $(srcdir)/stamp-h.in
13975
7f26d466 139762009-09-05 Robert Millan <rmh.grub@aybabtu.com>
13977
13978 * util/grub-probe.c (probe): Comment out buggy codepath, which
13979 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
13980 should be re-enabled after 1.97.
13981
3a613259 139822009-09-05 Felix Zielcke <fzielcke@z-51.de>
13983
13984 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
13985 find searches for.
13986
197f76c7 139872009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
13988
13989 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
13990 unnecessary calls to grub_error.
13991
70ba68ce 139922009-09-04 Colin Watson <cjwatson@ubuntu.com>
13993
13994 * NEWS: Mention `keystatus' and Unicode fonts.
13995
4ff0d7a4 139962009-09-04 Robert Millan <rmh.grub@aybabtu.com>
13997
13998 * configure.ac: Bump version to 1.97~beta2.
13999 * docs/version.texi: Likewise.
14000
77c55a87 140012009-09-03 Colin Watson <cjwatson@ubuntu.com>
14002
14003 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
14004 containing unwind information in some cases where it previously did
14005 not. Use -fno-dwarf2-cfi-asm if available to restore the old
14006 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
14007 discussion.
14008
f79572cd 140092009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
14010
14011 Embedding loadenv module into grub-emu
14012
14013 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
14014 commands/loadenv.c
14015 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
14016 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
14017 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
14018 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
14019 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
14020 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
14021
93a81088 140222009-09-03 Magnus Granberg <zorry@ume.nu>
14023
14024 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
14025 include -fPIE in the default specs.
14026 * configure.ac: Check if pie_possible is yes and add -fno-PIE
14027 to TARGET_CFLAGS.
14028
160034b2 140292009-09-03 Felix Zielcke <fzielcke@z-51.de>
14030
14031 * INSTALL: Note that GNU Bison 2.3 or later is required.
14032
087c07c4 140332009-09-03 Colin Watson <cjwatson@ubuntu.com>
14034
14035 * kern/i386/pc/startup.S: Fix typo.
14036
cbf978c0 140372009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
14038
14039 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
14040 according to GCS.
14041
140422009-09-02 Colin Watson <cjwatson@ubuntu.com>
f0910644 14043
14044 * docs/grub.texi (Naming convention): Describe one-based partition
14045 numbering.
14046 (Device syntax): Likewise.
14047 (File name syntax): Likewise.
14048 (Block list syntax): Likewise.
14049 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
14050 menu.lst.
14051 (File name syntax): Likewise.
14052 (Command-line and menu entry commands): Document acpi, blocklist,
14053 crc, export, insmod, keystatus, ls, set, and unset commands.
14054
f3e8cdfd 140552009-09-02 Colin Watson <cjwatson@ubuntu.com>
14056
14057 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
14058 to avoid implying that only one of --shift, --ctrl, or --alt may be
14059 used.
14060
c0bc232b 140612009-09-02 Colin Watson <cjwatson@ubuntu.com>
14062
14063 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
14064 rather than comparing against S_IFREG, which will almost never work.
14065
aa0f752d 140662009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
14067
14068 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
14069 (write_blocklists): Likewise.
14070
ecb3166a 140712009-09-01 Colin Watson <cjwatson@ubuntu.com>
14072
14073 * script/lua/grub_lua.h (fputs): Supply a format string as the first
14074 argument to grub_printf.
14075
c403a125 140762009-09-01 Felix Zielcke <fzielcke@z-51.de>
31aba781 14077
14078 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
c403a125 14079 non GNU test.
31aba781 14080
b5e7312c 140812009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
14082
14083 * kern/file.c (grub_file_read): Spelling fix
14084
fe00f472 140852009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
14086
14087 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
14088 loading of headers in some cases.
14089
cc55302e 140902009-08-30 Robert Millan <rmh.grub@aybabtu.com>
14091
14092 * configure.ac: Bump version to 1.97~beta1.
14093 * docs/version.texi: Likewise.
14094
5c90cdd2 140952009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
64bf71d0 14096
14097 * include/grub/i386/xnu.h: Add license header.
14098 include grub/err.h explicitly.
14099
c90edae4 141002009-08-29 Robert Millan <rmh.grub@aybabtu.com>
14101
14102 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
14103 to `ufs' in the vfs.root.mountfrom kernel parameter.
14104
d8888b5c 141052009-08-29 Robert Millan <rmh.grub@aybabtu.com>
14106
14107 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
14108
14109 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
14110 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
14111
14112 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
14113 `ARRAY_SIZE' macro.
14114
6f07b921 141152009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14116
14117 * kern/file.c (grub_file_read): Check offset.
14118 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
14119 * fs/jfs.c (grub_jfs_read_file): Likewise.
14120 * fs/ntfs.c (grub_ntfs_read): Likewise.
14121 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
14122 * fs/minix.c (grub_minix_read_file): Correct offset check.
14123 * fs/ufs.c (grub_ufs_read_file): Likewise.
14124
b4f34077 141252009-08-28 Colin Watson <cjwatson@ubuntu.com>
14126
14127 * term/i386/pc/console.c (bios_data_area): Cast
14128 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
14129
e7c69859 141302009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 1-bit optimised blitters.
14133
14134 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
14135 prototype.
14136 (grub_video_fbblit_replace_24bit_1bit): Likewise.
14137 (grub_video_fbblit_replace_16bit_1bit): Likewise.
14138 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14139 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14140 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
14141 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
14142 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
14143 function.
14144 (grub_video_fbblit_replace_24bit_1bit): Likewise.
14145 (grub_video_fbblit_replace_16bit_1bit): Likewise.
14146 (grub_video_fbblit_replace_8bit_1bit): Likewise.
14147 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
14148 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
14149 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
14150 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
14151 when possible.
14152 * video/video.c (grub_video_get_blit_format): Return
14153 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
14154
a57da43f 141552009-08-28 Colin Watson <cjwatson@ubuntu.com>
14156
14157 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
14158 the first argument to grub_printf.
14159
4cbe67e5 141602009-08-28 Colin Watson <cjwatson@ubuntu.com>
141612009-08-28 Robert Millan <rmh.grub@aybabtu.com>
14162
14163 Add `getkeystatus' terminal method. Add a new `keystatus' command
14164 to query it.
14165
14166 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
14167 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
14168 modifier key bitmasks.
14169 (struct grub_term_input): Add `getkeystatus' member.
14170 (grub_getkeystatus): Add prototype.
14171 * kern/term.c (grub_getkeystatus): New function.
14172
14173 * include/grub/i386/pc/memory.h
14174 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
14175 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
14176 Data Area layout.
14177 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
14178 (grub_console_term_input): Set `getkeystatus' member.
14179 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
14180 constants.
14181 (grub_usb_keyboard_getreport): Likewise.
14182 (grub_usb_keyboard_checkkey): Likewise.
14183 (grub_usb_keyboard_getkeystatus): New function.
14184 (grub_usb_keyboard_term): Set `getkeystatus' member.
14185
14186 * commands/keystatus.c: New file.
14187 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
14188 (keystatus_mod_SOURCES): New variable.
14189 (keystatus_mod_CFLAGS): Likewise.
14190 (keystatus_mod_LDFLAGS): Likewise.
14191 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
14192 commands/keystatus.c.
14193 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14194 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14195 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14196 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14197 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14198 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
4cbe67e5 14199
6e2a9085 142002009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
14201
14202 Split befs.mod and afs.mod into *_be.mod and *.mod
14203
14204 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
14205 (grub_fstest_SOURCES): Likewise.
14206 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
14207 (afs_be_mod_SOURCES): New variable.
14208 (afs_be_mod_CFLAGS): Likewise.
14209 (afs_be_mod_LDFLAGS): Likewise.
14210 (befs_be_mod_SOURCES): Likewise.
14211 (befs_be_mod_CFLAGS): Likewise.
14212 (befs_be_mod_LDFLAGS): Likewise.
14213 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
14214 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14215 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14216 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
14217 (grub_emu_SOURCES): Likewise.
14218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14219 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14220 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14221 * fs/afs_be.c: New file.
14222 * fs/befs_be.c: New file.
14223 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
14224 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
14225 (U16): Replaced with ...
14226 (grub_afs_to_cpu16): ...this. All users updated.
14227 (U32): Replaced with ...
14228 (grub_afs_to_cpu32): ...this. All users updated.
14229 (U64): Replaced with ...
14230 (grub_afs_to_cpu64): ...this. All users updated.
14231 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
14232 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
ad8ea1f4 14233 (grub_afs_validate_sblock): Check only one endianness.
6e2a9085 14234 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
14235 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
14236 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
14237 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
14238 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
14239 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
14240 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
14241 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
14242
32a71655 142432009-08-26 Bean <bean123ch@gmail.com>
14244
14245 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
14246 64-bit number.
14247 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
14248 (grub_xfs_inode_block): Change return type to grub_uint64_t.
14249 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
14250
552bf6c5 142512009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14252
14253 NetBSD memory map support.
14254
14255 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
14256 (grub_netbsd_btinfo_mmap_header): New structure.
14257 (grub_netbsd_btinfo_mmap_entry): Likewise.
14258 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
14259
1ae2078c 142602009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14261
14262 Enable bsd.mod on coreboot.
14263
14264 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
14265 (bsd_mod_SOURCES): New variable.
14266 (bsd_mod_CFLAGS): Likewise.
14267 (bsd_mod_LDFLAGS): Likewise.
14268 (bsd_mod_ASFLAGS): Likewise.
14269 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
14270 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
14271
beefc598 142722009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14273
14274 Cleanup NetBSD root support.
14275
14276 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
14277 grub_bsd_get_device.
14278 Fix typo.
14279
3b76e68b 142802009-08-25 Felix Zielcke <fzielcke@z-51.de>
14281
14282 * util/grub.d/00_header.in: Move check for the video backend of
14283 gfxterm from here ...
14284 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
14285 a suitable video backend.
14286
aea664ea 142872009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14288
14289 Fix breakage in grub-setup.
14290
14291 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
14292 "msdos_partition_map".
14293
ff747d50 142942009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14295
14296 Fix breakage in normal/auth.c.
14297
14298 * normal/auth.c (grub_iswordseparator): New function.
14299
e7e1f93f 143002009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
14301
14302 Authentication support.
14303
14304 * commands/password.c: New file.
14305 * conf/common.rmk (pkglib_MODULES): Add password.mod.
14306 (password_mod_SOURCES): New variable.
14307 (password_mod_CFLAGS): Likewise.
14308 (password_mod_LDFLAGS): Likewise.
14309 (normal_mod_SOURCES): Add normal/auth.c.
14310 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
14311 normal/auth.c.
14312 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
14313 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14314 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14316 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14317 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
14318 * include/grub/auth.h: New file.
14319 * include/grub/err.h (grub_err_t): New enum value
14320 GRUB_ERR_ACCESS_DENIED.
14321 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
14322 'users'.
14323 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
14324 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
14325 users updated.
14326 * normal/auth.c: New file.
14327 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
14328 (grub_cmdline_run): Don't allow to go to command line without
14329 authentication.
14330 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
14331 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
14332 menuentry without superuser rights.
14333 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
14334 user isn't a superuser.
14335
70f1161d 143362009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14337
14338 Save space by inlining misc.c functions.
14339
14340 * kern/misc.c (grub_iswordseparator): Made static.
14341 * kern/misc.c (grub_strcat): Moved from here ...
14342 * include/grub/misc.h (grub_strcat): ... here. Inlined.
14343 * kern/misc.c (grub_strncat): Moved from here ...
14344 * include/grub/misc.h (grub_strncat): ... here. Inlined.
14345 * kern/misc.c (grub_strcasecmp): Moved from here ...
14346 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
14347 * kern/misc.c (grub_strncasecmp): Moved from here ...
14348 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
14349 * kern/misc.c (grub_isalpha): Moved from here ...
14350 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
14351 * kern/misc.c (grub_isdigit): Moved from here ...
14352 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
14353 * kern/misc.c (grub_isgraph): Moved from here ...
14354 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
14355 * kern/misc.c (grub_tolower): Moved from here ...
14356 * include/grub/misc.h (grub_tolower): ... here. Inlined.
14357
48e40bff 143582009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14359
14360 * script/sh/function.c (grub_script_function_find): Cut error message
14361 not to flood terminal.
14362 * script/sh/lexer.c (grub_script_yylex): Remove command line length
14363 limit.
14364 * script/sh/script.c (grub_script_arg_add): Duplicate string.
14365
c385bfc3 143662009-08-24 Colin Watson <cjwatson@ubuntu.com>
14367
14368 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
14369 `report' grub_uint8_t *.
14370 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
14371 Use a 50-millisecond timeout rather than just repeating
14372 grub_usb_keyboard_getreport 50 times.
14373 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
14374
2d21e3e8 143752009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14376
14377 Rename *_partition_map to part_*
14378
14379 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
14380 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
14381 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
14382 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
14383 All users updated.
14384 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
14385 All users updated.
14386 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
14387 * util/grub-probe.c (probe_partmap): Don't transform partition name
14388 to get module name.
14389
dd103c4e 143902009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14391
14392 Fix OpenBSD and NetBSD support.
14393
14394 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
14395 memory address conflict.
14396 (OPENBSD_MMAP_ACPI): New definition.
14397 (OPENBSD_MMAP_NVS): Likewise.
14398 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
14399 and OPENBSD_MMAP_NVS.
14400 Add memory map terminator
14401 Explicit cast when calling grub_unix_real_boot.
ad8ea1f4 14402 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
dd103c4e 14403
16c84d74 144042009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14405
14406 Let user specify NetBSD root device.
14407
14408 * loader/i386/bsd.c (netbsd_root): New variable.
14409 (netbsd_opts): New option 'root'.
14410 (NETBSD_ROOT_ARG): New macro.
14411 (grub_netbsd_boot): Use 'netbsd_root'.
14412 (grub_bsd_unload): Free 'netbsd_root'.
14413 (grub_cmd_netbsd): Fill 'netbsd_root'.
14414
adb29902 144152009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14416
14417 Support for 64-bit NetBSD.
14418
14419 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
14420 point when booting non-FreeBSD.
14421
f5ae9f74 144222009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
14423
14424 Support --no-smp and --no-acpi for NetBSD.
14425
14426 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
14427 (NETBSD_AB_NOACPI): Likewise.
14428 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
14429 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
14430
de74f136 144312009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14432
14433 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
14434 errors.
14435 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
14436 errors. Call grub_error when needed.
14437
e9a925da 144382009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14439
14440 * commands/search.c (search_fs): Try searching without autoload first.
14441 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
14442 filesystem module explicitly for faster booting.
14443
5174302b 144442009-08-23 Colin Watson <cjwatson@ubuntu.com>
14445
14446 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
14447
c8c80635 144482009-08-23 Colin Watson <cjwatson@ubuntu.com>
14449
14450 * util/grub.d/30_os-prober.in: Disable os-prober if
14451 `GRUB_DISABLE_OS_PROBER' was set to true.
14452
71acf5e5 144532009-08-23 Robert Millan <rmh.grub@aybabtu.com>
14454
14455 * partmap/pc.c: Rename to ...
14456 * partmap/msdos.c: ... this. Update all users.
14457 (grub_pc_partition_map): Rename to ...
14458 (grub_msdos_partition_map): ... this. Update all users.
14459
14460 * parttool/pcpart.c: Rename to ...
14461 * parttool/msdospart.c: ... this. Update all users.
14462
14463 * include/grub/pc_partition.h: Rename to ...
14464 * include/grub/msdos_partition.h: ... this. Update all users.
14465 (grub_pc_partition_bsd_entry): Rename to ...
14466 (grub_msdos_partition_bsd_entry): ... this. Update all users.
14467 (grub_pc_partition_disk_label): Rename to ...
14468 (grub_msdos_partition_disk_label): ... this. Update all users.
14469 (grub_pc_partition_entry): Rename to ...
14470 (grub_msdos_partition_entry): ... this. Update all users.
14471 (grub_pc_partition_mbr): Rename to ...
14472 (grub_msdos_partition_mbr): ... this. Update all users.
14473 (grub_pc_partition): Rename to ...
14474 (grub_msdos_partition): ... this. Update all users.
14475 (grub_pc_partition_is_empty): Rename to ...
14476 (grub_msdos_partition_is_empty): ... this. Update all users.
14477 (grub_pc_partition_is_extended): Rename to ...
14478 (grub_msdos_partition_is_extended): ... this. Update all users.
14479 (grub_pc_partition_is_bsd): Rename to ...
14480 (grub_msdos_partition_is_bsd): ... this. Update all users.
14481
14482 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
14483 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
14484 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
14485 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
14486 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
14487 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
14488 (gpt_mod_LDFLAGS): Rename to ...
14489 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
14490 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
14491 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
14492 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
14493 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
14494 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
14495 (part_gpt_mod_LDFLAGS): ... this.
14496 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
14497 `pcpart.mod' to `msdospart.mod'.
14498 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
14499 to ...
14500 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
14501 (msdospart_mod_LDFLAGS): ... this.
14502
c11fded5 145032009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
14504
14505 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
14506 (openbsd_opts): Likewise.
14507 (netbsd_opts): Likewise.
14508 (freebsd_flags): Added 0 terminator.
14509 (openbsd_flags): Likewise.
14510 (netbsd_flags): Likewise.
14511 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
14512 (grub_cmd_freebsd): Transformed into extended command.
14513 (grub_cmd_openbsd): Likewise.
14514 (grub_cmd_netbsd): Likewise.
14515 (cmd_freebsd): Changed type to grub_extcmd_t.
14516 (cmd_openbsd): Likewise.
14517 (cmd_netbsd): Likewise.
14518 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
14519 grub_cmd_openbsd as extended commands.
14520 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
14521 cmd_netbsd and cmd_openbsd
14522
11d1c769 145232009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
14524
14525 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
14526
7a9094e5 145272009-08-21 Pavel Roskin <proski@gnu.org>
14528
5496c37e 14529 * Makefile.in (install-local): When checking if a file is in the
14530 build directory, use "test -e" to detect symlinks.
14531
7a9094e5 14532 * Makefile.in (install-local): Remove all files in
14533 $(DESTDIR)$(pkglibdir) before installing new files there.
14534
e53cea11 145352009-08-18 Felix Zielcke <fzielcke@z-51.de>
14536
14537 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
14538 grub-mkelfimage.
14539
9aced544 145402009-08-18 Felix Zielcke <fzielcke@z-51.de>
14541
14542 * util/grub-mkconfig.in: Don't use gfxterm by default if not
14543 explicitly specified by the user.
14544
b7da6bab 145452009-08-18 Pavel Roskin <proski@gnu.org>
14546
14547 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
14548 grub_uint8_t pointer for data.
14549 * include/grub/fbutil.h (struct grub_video_fbblit_info):
14550 Likewise.
14551 * video/fb/fbutil.c: Remove unnecessary casts.
14552
19f1b335 145532009-08-17 Michal Suchanek <hramrach@centrum.cz>
14554
14555 VBE cleanup.
14556
14557 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
14558 (grub_vbe_set_video_mode): Save active mode info
14559 only after setting the mode.
14560 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
14561 second argument.
14562
2f467aa9 145632009-08-17 Michal Suchanek <hramrach@centrum.cz>
14564
14565 Rename variables for clarity.
14566
14567 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
14568 (active_vbe_mode_info): ... this. All users updated.
14569 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
14570 All users updated.
14571 (initial_mode): Rename to ...
14572 (initial_vbe_mode): ... this. All users updated.
14573 (mode_in_use): Rename to ..
14574 (vbe_mode_in_use): ... this. All users updated.
14575 (mode_list): Rename to ..
14576 (vbe_mode_list): ... this. All users updated.
14577 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
14578 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
14579 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
14580 'mode_list_size' to 'vbe_mode_list_size'.
14581 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
14582 'best_mode_info' to 'best_vbe_mode_info' and
14583 'best_mode' to 'best_vbe_mode'
14584
6025fcd7 145852009-08-17 Michal Suchanek <hramrach@centrum.cz>
14586
14587 Remove duplicate grub_video_fb_get_video_ptr.
14588
14589 * include/grub/fbutil.h (get_data_ptr): Rename to ...
14590 (grub_video_fb_get_video_ptr): ... this.
14591 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
14592 * video/fb/fbutil.c: Add comment about addressing.
14593 (get_data_ptr): Rename to ...
14594 (grub_video_fb_get_video_ptr): ... this. All users updated.
14595 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
14596
cc8c6faf 145972009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14598
14599 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
14600 grub_dprintf() that was just added.
14601
08aa61f0 146022009-08-17 Robert Millan <rmh.grub@aybabtu.com>
14603
14604 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
14605 (DEFAULT_VIDEO_MODE): Remove macros.
14606 (grub_linux_boot): Remove assumption that Linux has FB support,
14607 and use "text" as default video mode.
14608
7cef4f75 146092009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
14610
14611 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
14612 grub_dprintf.
14613 * fs/fat.c (grub_fat_read_data): Likewise.
14614
e1f39873 146152009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14616
14617 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
14618 payload.
14619 (grub_module): Likewise.
14620
c166d79e 146212009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14622
14623 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
14624 mbi->cmdline but free playground.
14625
c60cee8e 146262009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14627
14628 Handle group offset on UFS1.
14629
14630 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
14631 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
14632
c0d8b5d4 146332009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14634
14635 Split ufs.mod into ufs1.mod and ufs2.mod.
14636
14637 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
14638 (grub_fstest_SOURCES): Likewise.
14639 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
14640 (ufs_mod_SOURCES): Remove.
14641 (ufs_mod_CFLAGS): Likewise.
14642 (ufs_mod_LDFLAGS): Likewise.
14643 (ufs1_mod_SOURCES): New variable.
14644 (ufs1_mod_CFLAGS): Likewise.
14645 (ufs1_mod_LDFLAGS): Likewise.
25fbd77a 14646 (ufs2_mod_SOURCES): New variable.
14647 (ufs2_mod_CFLAGS): Likewise.
14648 (ufs2_mod_LDFLAGS): Likewise.
c0d8b5d4 14649 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
14650 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14651 Likewise.
14652 (grub_emu_SOURCES): Likewise.
14653 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14654 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
14655 (grub_setup_SOURCES): Likewise.
14656 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
14657 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
14658 (grub_setup_SOURCES): Likewise.
14659 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
14660 Likewise.
14661 * fs/ufs2.c: New file.
14662 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
14663
d3539132 146642009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
14665
14666 Framebuffer split.
14667
14668 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
14669 subsystem at the end.
14670 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
14671 (video_fb_mod_SOURCES): New variable.
14672 (video_fb_mod_CFLAGS): Likewise.
14673 (video_fb_mod_LDFLAGS): Likewise.
14674 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
14675 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
14676 * video/i386/pc/vbeblit.c: Moved from here ...
14677 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
14678 * video/i386/pc/vbefill.c: Moved from here ...
14679 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
14680 * video/i386/pc/vbeutil.c: Moved from here ...
14681 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
14682 * include/grub/i386/pc/vbeblit.h: Moved from here ...
14683 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
14684 * include/grub/i386/pc/vbefill.h: Moved from here ...
14685 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
14686 * include/grub/i386/pc/vbeutil.h: Moved from here ...
14687 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
14688 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
14689 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
14690 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
14691 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
14692 (grub_video_adapter): Added 'get_info_and_fini'.
14693 (grub_video_get_info_and_fini): New prototype.
14694 (grub_video_set_mode): make modestring const char *.
14695 * loader/i386/linux.c (grub_linux_setup_video): Use
14696 grub_video_get_info_and_fini.
14697 (grub_linux_boot): Move modesetting just before booting.
14698 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
14699 grub_video_get_info_and_fini.
14700 * video/i386/pc/vbe.c: Moved framebuffer part ...
14701 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
14702 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
14703 grub_video_fbstd_colors and grub_video_fb_set_palette.
14704 (grub_video_vbe_init): Clear 'framebuffer' variable and use
14705 grub_video_fb_init.
14706 (grub_video_vbe_fini): Use grub_video_fb_fini.
14707 (grub_video_vbe_setup): Use framebuffer.render_target instead of
14708 render_target and use grub_video_fb_set_active_render_target and
14709 grub_video_fb_set_palette.
14710 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
14711 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
14712 (grub_video_vbe_adapter): Use framebuffer.
14713 * video/video.c (grub_video_get_info_and_fini): New function.
14714 (grub_video_set_mode): Make modestring const char *.
14715 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
14716 values are already initialised.
14717
d404ee56 147182009-08-14 Pavel Roskin <proski@gnu.org>
14719
14720 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
14721 ABS and APPLE_CC.
14722 * boot/i386/pc/diskboot.S: Likewise.
14723 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
14724 sectors allow compilation on MacOSX.
14725 * conf/i386-pc.rmk: Enable unconditional compilation of
14726 lnxboot.img.
14727
9a10df16 147282009-08-13 Colin Watson <cjwatson@ubuntu.com>
14729
14730 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
14731 * util/grub.d/00_header.in: Enter interruptible sleep if
14732 GRUB_HIDDEN_TIMEOUT is set.
14733
be3c9ca7 147342009-08-13 Yves Blusseau <blusseau@zetam.org>
14735
14736 * include/grub/symbol.h: Add the LOCAL macro.
14737 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
14738 starting with "L_".
14739
1f9e557e 147402009-08-13 Pavel Roskin <proski@gnu.org>
14741
9ca62843 14742 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
14743 any modern compilers we support.
14744
1f9e557e 14745 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
14746 Use local labels starting with "L_" so that Apple assembler
14747 knows they are local.
14748
81623db6 147492009-08-10 Robert Millan <rmh.grub@aybabtu.com>
14750
14751 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
14752 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
14753 (bsd_kernel_types): ... this enum.
14754
14755 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
14756 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
14757 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
14758
14759 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
14760 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
14761 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
14762 messages.
14763
f5d35e7a 147642009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14765
14766 * util/grub-dumpdevtree: Moved from here ...
14767 * util/i386/efi/grub-dumpdevtree: ... to here.
14768 (hexify): New function. Converts a string to its hex version.
14769 Generate hex versions of "efi" and "device-properties" by calling
14770 hexify() on the ASCII strings rather than by hardcoding numbers.
14771
d1e1d527 147722009-08-08 Robert Millan <rmh.grub@aybabtu.com>
14773
14774 * fs/jfs.c: Update copyright year.
14775
1ebbe064 147762009-08-08 Felix Zielcke <fzielcke@z-51.de>
14777
14778 * util/grub.d/00_header.in: Fix a comment.
14779 * util/grub.d/10_linux.in: Likewise.
14780 * util/grub.d/10_windows.in: Likewise.
14781 * util/grub.d/10_hurd.in: Likewise.
14782
a78c8d24 147832009-08-08 Felix Zielcke <fzielcke@z-51.de>
14784
14785 * util/grub-mkconfig.in: Allow the user to specify the used font
14786 with GRUB_FONT.
14787
29a6b9e8 147882009-08-08 Pavel Roskin <proski@gnu.org>
14789
b5f16cc4 14790 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
14791 available, xfs.mod needs it now.
14792
2f5cb827 14793 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
14794 the "g" modifier in sed when the intention is to strip something
14795 once. This fixes comparison of kernels with multiple dashes.
14796
29a6b9e8 14797 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
14798 on it. Add missing space before closing bracket. Fix
14799 misleading formatting.
14800
892a3d98 148012009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14802
14803 * docs/grub.texi: Major overhaul. Remove all sections that are
14804 specific to GRUB Legacy, or mostly composed of Legacy-specific
14805 information.
14806
ed94253f 148072009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14808
14809 * docs/version.texi: New file. Provides version information for
14810 grub.texi.
14811
126d6628 148122009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14813
14814 * docs/grub.texi: Update CVS information to SVN.
14815 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
14816
998b5aa9 148172009-08-07 Felix Zielcke <fzielcke@z-51.de>
14818
14819 * util/grub-mkconfig.in: Remove a wrong `fi'.
14820
818e094a 148212009-08-07 Felix Zielcke <fzielcke@z-51.de>
14822
14823 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
14824 (grub_jfs_uuid): New function.
14825 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
14826
b969c52f 148272009-08-07 Felix Zielcke <fzielcke@z-51.de>
14828
14829 * util/grub-mkconfig_lib.in (font_path): Move the functionality
14830 of it to ...
14831 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
14832 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
14833
7a4894cc 148342009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14835
14836 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
14837 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
14838 Update all users.
14839
14840 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
14841 not just "vmlinu[zx]".
14842 Moved from here ...
14843 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
14844 all users.
14845
14846 * util/grub.d/10_linux.in (find_latest): Moved from here ...
14847 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
14848 all users.
14849
4e2171f8 148502009-08-07 Robert Millan <rmh.grub@aybabtu.com>
14851
14852 * util/grub.d/10_freebsd.in: Use an absolute device path for
14853 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
14854
6dcfcb32 148552009-08-06 Felix Zielcke <fzielcke@z-51.de>
14856
14857 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
14858 handling of multiple abstraction modules.
14859
f56a8756 148602009-08-04 Robert Millan <rmh.grub@aybabtu.com>
14861
14862 Fix a bug resulting in black screen when loading Linux using a
14863 packed video mode.
14864
14865 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
14866 function.
14867
14868 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
14869 (grub_vbe_bios_getset_dac_palette_width): New function.
14870 (grub_vbe_bios_get_dac_palette_width)
14871 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
14872 grub_vbe_bios_getset_dac_palette_width()).
14873
14874 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
14875 check for return status.
14876 (grub_vbe_get_video_mode_info): When getting information for a packed
14877 mode (<= 8 bpp), obtain DAC palette width using
14878 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
14879 {red,green,blue}_mark_size.
14880
222671b2 148812009-08-04 Felix Zielcke <fzielcke@z-51.de>
14882
ecb1a6d9 14883 * commands/search.c (options): Fix help output to match actual code.
222671b2 14884
f84114f5 148852009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
14886
14887 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
14888 of homegrown code.
14889
bd288a20 148902009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
e768b770 14891
14892 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
14893 on XFS or ReiserFS.
14894
8aab5e25 148952009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
14896
14897 Support Apple partition map with sector size different from 512 bytes.
14898
14899 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
14900 (apple_partition_map_iterate): Respect 'aheader.blocksize'
14901 and 'apart.partmap_size'.
14902
6ad6258a 149032009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
149042009-08-01 Robert Millan <rmh.grub@aybabtu.com>
14905
14906 Fix cpuid command.
14907
14908 * commands/i386/cpuid.c (options): New variable.
14909 (grub_cmd_cpuid): Return real error.
14910 (GRUB_MOD_INIT(cpuid)): Declare options.
14911
67459bc6 149122009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
14913
14914 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
14915 valid.
14916
fbc6ab54 149172009-07-31 Bean <bean123ch@gmail.com>
14918
14919 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
14920 log2_inode.
14921 (grub_fshelp_node): Move inode field to the end.
14922 (grub_xfs_data): Remove inode field.
14923 (grub_xfs_inode_block): Calculate inode size using sblock.
14924 (grub_xfs_inode_offset): Likewise.
14925 (grub_xfs_read_inode): Calculate inode size using sblock.
14926 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
14927 (grub_xfs_iterate_dir): Calculate inode size using sblock.
14928 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
14929 to match inode size.
14930 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
14931 not accessible when data is null.
14932 (grub_xfs_open): Likewise.
14933
f45d6cfc 149342009-07-31 Bean <bean123ch@gmail.com>
14935
14936 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
14937 Don't change pv->disk if it's already set.
14938
14939 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
14940 (grub_raid_register): ... here.
14941 (grub_raid_rescan): Removed.
14942
14943 * include/grub/raid.h (grub_raid_rescan): Removed.
14944
14945 * util/grub-fstest.c: Remove include file <grub/raid.h>.
14946 (fstest): Replace grub_raid_rescan with module fini function followed
14947 by init function.
14948
14949 * util/grub-probe.c: Add include file <grub/raid.h>.
14950 (probe_raid_level): New function.
14951 (probe): Detect abstraction by walking the disk device, support two
14952 level of abstraction (LVM on RAID) when detecting partition map.
14953
24443b5a 149542009-07-31 Pavel Roskin <proski@gnu.org>
14955
14956 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
14957 to grub_zalloc(), it was erroneous.
14958 Reported by Bean <bean123ch@gmail.com>
14959
a275d9e7 149602009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
14961
14962 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
ad8ea1f4 14963 embedding zone, not only the first one.
a275d9e7 14964
56c5a47f 149652009-07-29 Joe Auricchio <jauricchio@gmail.com>
14966
14967 * term/gfxterm.c (clear_char): New function.
14968 (grub_virtual_screen_setup): Use clear_char.
14969 (scroll_up): Likewise.
14970 (grub_virtual_screen_cls): Likewise.
14971
67bb323a 149722009-07-29 Felix Zielcke <fzielcke@z-51.de>
14973
14974 * util/deviceiter.c (get_acceleraid_disk_name): New static
14975 function.
14976 (grub_util_iterate_devices): Handle Accelraid devices.
14977 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
14978
388a7c75 149792009-07-28 Robert Millan <rmh.grub@aybabtu.com>
14980
14981 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
14982 separator for the suggested gfxpayload string (';' collides with the
14983 parser and needs escaping).
14984
3bb7abcf 149852009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
14986
14987 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
14988 Clear direction flag before jumping to OS.
14989 (grub_multiboot2_real_boot): Likewise.
14990
2ddd36d7 149912009-07-28 Felix Zielcke <fzielcke@z-51.de>
14992
14993 * util/i386/pc/grub-install: Fix parsing of --disk-module
14994 option.
14995
c521b62b 149962009-07-28 Felix Zielcke <fzielcke@z-51.de>
14997
14998 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
14999 when embedding.
15000
880e0a0c 150012009-07-26 Felix Zielcke <fzielcke@z-51.de>
15002
15003 * util/grub-mkconfig.in (package_version): New variable.
15004 Use it do display the version.
15005
2366e356 150062009-07-25 Felix Zielcke <fzielcke@z-51.de>
15007
15008 * kern/file.c (grub_file_open): Revert to previous check with
15009 grub_errno.
15010
7ad8c80e 150112009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15012
15013 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
15014 from help line. It's out of sync with code.
15015
72b9658b 150162009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
15017
15018 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
15019 entries on failed boot.
15020
77435277 150212009-07-25 Felix Zielcke <fzielcke@z-51.de>
15022
15023 * kern/file.c (grub_file_open): Fix an error check.
15024
fcaa8b21 150252009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
15026
35d16c74 15027 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
15028 partition map couldn't be identified.
fcaa8b21 15029
48904cd1 150302009-07-23 Pavel Roskin <proski@gnu.org>
15031
ef3c317f 15032 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
15033 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
15034 case of little endian words becomes just an optimization.
15035 Respect const modifier.
ad8ea1f4 15036 (md5_final): Use code that doesn't depend on endianness.
ef3c317f 15037
48904cd1 15038 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
15039 to avoid loss of upper bits if align is unsigned and shorter
15040 than addr.
15041
260c9a89 150422009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
15043
15044 UUID support for UFS
15045
15046 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
15047 (grub_ufs_uuid): New function.
15048 (grub_ufs_fs): add .uuid
15049
f76ce889 150502009-07-21 Pavel Roskin <proski@gnu.org>
15051
15052 * kern/dl.c (grub_dl_check_header): Make static.
15053
6a6cbcaf 150542009-07-21 Felix Zielcke <fzielcke@z-51.de>
15055
15056 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
15057 add drivemap for Vista. It breaks Windows 7.
15058
cffcddb2 150592009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
15062 128 bytes
15063
1ef44b80 150642009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15065
15066 Add BFS support
15067
15068 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
15069 (grub_fstest_SOURCES): Likewise.
15070 (pkglib_MODULES): Add befs.mod.
15071 (befs_mod_SOURCES): New variable.
15072 (befs_mod_CFLAGS): Likewise.
15073 (befs_mod_LDFLAGS): Likewise.
15074 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
15075 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15076 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15077 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15078 (grub_setup_SOURCES): Likewise.
15079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15080 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15081 (grub_setup_SOURCES): Likewise.
15082 * fs/befs.c: New file.
15083 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
15084 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
15085 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
15086 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
15087 (B_KEY_INDEX_ALIGN): New declaration.
15088 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
15089 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
15090 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
15091 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
15092 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
15093 (grub_afs_mount) [MODE_BFS]: Likewise.
15094 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
15095 (grub_afs_fs): Use GRUB_AFS_FSNAME
15096 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
15097 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
15098 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
15099 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
15100
4f253044 151012009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
15102
15103 * util/getroot.c (find_root_device): Add support for MacOSX.
15104 * util/hostdisk.c: Likewise.
15105
57a55913 151062009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15107
15108 * font/font.c (find_glyph): Check whether a font is present to avoid
15109 segmentation fault.
75421ca9 15110
151112009-07-20 Joe Auricchio <jauricchio@gmail.com>
04c7c429 15112
15113 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
15114
e98cd0c2 151152009-07-20 Pavel Roskin <proski@gnu.org>
15116
15117 * configure.ac: Trim excessively wordy excuses.
15118
1d2d169a 151192009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15120
15121 Add symlink, mtime and label support to AtheFS.
15122
15123 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
15124 (grub_afs_iterate_dir): Handle symlinks.
15125 (grub_afs_open): Use grub_afs_read_symlink.
15126 (grub_afs_dir): Likewise.
15127 Pass mtime.
15128 (grub_afs_label): New function.
15129 (grub_afs_fs): Add grub_afs_label.
15130 (grub_afs_read_symlink): New function.
15131
186f3189 151322009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
15133
15134 Fix AtheFS support.
15135
15136 * fs/afs.c: Fix comments style.
15137 (grub_afs_blockrun): Declare as packed.
15138 (grub_afs_datastream): Likewise.
15139 (grub_afs_bnode): Likewise.
15140 (grub_afs_btree): Likewise.
15141 (grub_afs_sblock): Likewise.
15142 Declare `name' as char.
15143 (grub_afs_inode): Declare as packed.
15144 Change void *vnode to grub_uint32_t unused.
15145 (grub_afs_iterate_dir): Check that key_size is positive.
15146 (grub_afs_mount): Don't read superblock twice.
75421ca9 15147 (grub_afs_dir): Don't free node in case of error,
186f3189 15148 grub_fshelp_find_file already handles this.
15149 (grub_afs_open): Likewise.
15150
5680109e 151512009-07-19 Pavel Roskin <proski@gnu.org>
15152
15153 * Makefile.in: Remove LIBLZO and enable_lzo.
15154 * conf/i386-pc.rmk: Remove lzo support.
15155 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
15156 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
15157 support.
15158 * kern/i386/pc/lzo1x.S: Remove.
15159 * kern/i386/pc/startup.S: Remove lzo support.
15160 * util/i386/pc/grub-mkimage.c: Likewise.
15161
ac70fa32 151622009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
15163
15164 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
15165 * fs/xfs.c (grub_xfs_dir): Likewise.
15166 * fs/afs.c (grub_afs_dir): Likewise.
15167 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
15168 (grub_iso9660_open): Likewise.
15169 * fs/jfs.c (grub_jfs_open): Likewise.
15170 * fs/ext2.c (grub_ext2_dir): Likewise.
15171 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
15172 * script/sh/lexer.c (grub_script_yylex): Likewise.
75421ca9 15173
eab58da2 151742009-07-16 Pavel Roskin <proski@gnu.org>
15175
d2838156 15176 * configure.ac: Never add "-c" to CFLAGS.
15177
55c70904 15178 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
15179
43e6200c 15180 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
15181 grub_cv_cc_efiemu should be used.
15182
ce7a733d 15183 * configure.ac: Typo fixes.
15184
eab58da2 15185 * kern/mm.c (grub_zalloc): New function.
15186 (grub_debug_zalloc): Likewise.
15187 * include/grub/mm.h: Declare grub_zalloc() and
15188 grub_debug_zalloc().
15189 * util/misc.c (grub_zalloc): New function.
15190 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
15191 instead of grub_malloc(), remove unneeded initializations.
15192 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
15193 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
15194 * commands/parttool.c (grub_cmd_parttool): Likewise.
15195 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
15196 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
15197 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
15198 * disk/usbms.c (grub_usbms_finddevs): Likewise.
15199 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
15200 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
15201 (grub_cmd_efiemu_pnvram): Likewise.
15202 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
15203 * fs/iso9660.c (grub_iso9660_mount): Likewise.
15204 (grub_iso9660_iterate_dir): Likewise.
15205 * fs/jfs.c (grub_jfs_opendir): Likewise.
15206 * fs/ntfs.c (list_file): Likewise.
15207 (grub_ntfs_mount): Likewise.
15208 * kern/disk.c (grub_disk_open): Likewise.
15209 * kern/dl.c (grub_dl_load_core): Likewise.
15210 * kern/elf.c (grub_elf_file): Likewise.
15211 * kern/env.c (grub_env_context_open): Likewise.
15212 (grub_env_set): Likewise.
15213 (grub_env_set_data_slot): Likewise.
15214 * kern/file.c (grub_file_open): Likewise.
15215 * kern/fs.c (grub_fs_blocklist_open): Likewise.
15216 * loader/i386/multiboot.c (grub_module): Likewise.
15217 * loader/xnu.c (grub_xnu_create_key): Likewise.
15218 (grub_xnu_create_value): Likewise.
15219 * normal/main.c (grub_normal_add_menu_entry): Likewise.
15220 (read_config_file): Likewise.
15221 * normal/menu_entry.c (make_screen): Likewise.
15222 * partmap/sun.c (sun_partition_map_iterate): Likewise.
15223 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
15224 * script/sh/script.c (grub_script_parse): Likewise.
15225 * video/bitmap.c (grub_video_bitmap_create): Likewise.
15226 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
15227 * video/readers/png.c (grub_png_output_byte): Likewise.
15228 (grub_video_reader_png): Likewise.
15229
830afef7 152302009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
5ce5507f 15231
15232 Enable all targets that can be built by default
15233
830afef7 15234 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
5ce5507f 15235 grub-mkfont and grub-fstest if they can be built
15236
ee293aee 152372009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15238
15239 Fix hang and segmentation fault in grub-emu-usb
15240
15241 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
15242 * util/usb.c (grub_libusb_devices): likewise
15243 (grub_libusb_init): rename to ...
15244 (GRUB_MOD_INIT (libusb)):...this
15245 (grub_libusb_fini): rename to ..
15246 (GRUB_MOD_FINI (libusb)):...this
15247 * disk/usbms.c (grub_usbms_transfer): fix retry logic
15248 * include/grub/disk.h (grub_raid_init): removed, it's useless
15249 (grub_raid_fini): likewise
15250 (grub_lvm_init): likewise
15251 (grub_lvm_fini): likewise
15252 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
15253 by grub_init_all
15254
94414221 152552009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15256
15257 Fix libusb
15258
15259 * Makefile.in (LIBUSB): new macro
15260 * genmk.rb (Utility/print_tail): new method
15261 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
15262 (top level): call util.print_tail at the end.
15263
59ade63d 152642009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15265
15266 Make FreeBSD accept zpool.cache
15267
15268 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
15269 type is /boot/zfs/zpool.cache
15270
a58da8c7 152712009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
15272
15273 Fix 64-bit efiemu
15274
15275 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
15276 correct wrong typedef
15277 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
15278
20591577 152792009-07-15 Pavel Roskin <proski@gnu.org>
15280
560ca572 15281 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
15282 * kern/disk.c (struct grub_disk_cache): Likewise.
15283
e8e8e4fd 15284 * commands/probe.c (options): Typo fix.
15285
fde24e10 15286 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
15287 Increase to 0x5a to accommodate FAT32. Adjust other offsets
15288 accordingly.
15289 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
15290
379c54c1 15291 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
15292 the end of "Error" to make the message more readable.
15293
7bd8f5bf 15294 * boot/i386/pc/boot.S (kernel_segment): Remove.
15295 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
15296 for destination.
15297
40b132c5 15298 * boot/i386/pc/boot.S (boot_version): Remove.
15299 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
15300 Remove.
15301
20591577 15302 * include/grub/i386/pc/boot.h: Sort all offsets.
15303 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
15304 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
15305 * boot/i386/pc/boot.S: Assert location of every offset listed in
15306 include/grub/i386/pc/boot.h.
15307
2df32b2c 153082009-07-13 Pavel Roskin <proski@gnu.org>
15309
44b5d879 15310 * include/grub/i386/coreboot/machine.h: Rename
15311 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
15312 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
15313 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
15314
17dc3751 15315 * kern/dl.c: Force native word size to suppress warnings when
15316 compiling grub-emu.
15317
2df32b2c 15318 * kern/device.c (grub_device_iterate): Change struct part_ent to
15319 hold the name, not a pointer to it. Use one grub_malloc() per
15320 partition, not two. Free partition_name if grub_malloc() fails.
15321 Set ents to NULL only before grub_partition_iterate() is called.
15322
75c59f59 153232009-07-11 Bean <bean123ch@gmail.com>
15324
15325 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
15326 childname.
15327
0ae1bf88 153282009-07-10 Bean <bean123ch@gmail.com>
153292009-07-10 Robert Millan <rmh.grub@aybabtu.com>
15330
15331 * kern/ieee1275/openfw.c (grub_children_iterate)
15332 (grub_devalias_iterate): Fix size evaluation for property or path
15333 strings, which was broken since r2132.
15334
8279cade 153352009-07-07 Pavel Roskin <proski@gnu.org>
15336
7d8a52d3 15337 * commands/search.c (search_file): Merge into ...
15338 (search_fs): ... this. Accept search type as argument.
15339 (grub_cmd_search): Pass search type to search_fs().
15340
25f9a05a 15341 * include/grub/util/console.h: New file.
15342 * util/console.c: Use it instead of grub/machine/console.h.
15343 * util/grub-emu.c: Likewise.
15344
8279cade 15345 * lib/arg.c (find_long_option): Remove.
15346 (find_long): Add `len' argument, make `s' const char *.
15347 (grub_arg_parse): Parse long options in place, not in a
15348 temporary buffer.
15349
4a11b60f 153502009-07-06 Pavel Roskin <proski@gnu.org>
15351
99f68041 15352 * commands/search.c (search_fs): Fix potential NULL pointer
15353 dereference.
15354
4a11b60f 15355 * commands/search.c (search_fs): Replace QUID macro with quid_fn
15356 function pointer.
15357
e110f4de 153582009-07-06 Daniel Mierswa <impulze@impulze.org>
15359
15360 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
15361 comparison.
15362
46eeb6a2 153632009-07-05 Pavel Roskin <proski@gnu.org>
15364
bab74958 15365 * include/grub/i386/linux.h (struct linux_kernel_params):
15366 Restore padding3, it's still needed.
15367
46eeb6a2 15368 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
15369 FreeBSD.
15370 * util/osdetect.lua: Likewise.
15371
b4a1dc79 153722009-07-05 Bean <bean123ch@gmail.com>
15373
15374 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
15375
15376 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
15377 (grub_lua_getenv): Likewise.
15378 (grub_lua_setenv): Likewise.
15379 (save_errno): New function.
15380 (push_result): Likewise.
15381 (grub_lua_enum_device): Likewise.
15382 (grub_lua_enum_file): Likewise.
15383 (grub_lua_file_open): Likewise.
15384 (grub_lua_file_close): Likewise.
15385 (grub_lua_file_seek): Likewise.
15386 (grub_lua_file_read): Likewise.
15387 (grub_lua_file_getline): Likewise.
15388 (grub_lua_file_getsize): Likewise.
15389 (grub_lua_file_getpos): Likewise.
15390 (grub_lua_file_eof): Likewise.
15391 (grub_lua_file_exist): Likewise.
15392 (grub_lua_add_menu): Likewise.
15393
15394 * script/lua/grub_lua.h (isupper): New inline function.
15395 (islower): Likewise.
15396 (ispunct): Likewise.
15397 (isxdigit): Likewise.
15398 (strcspn): Change to normal function.
15399 (strpbkr): New function declaration.
15400 (memchr): Likewise.
15401
15402 * script/lua/grub_main.c (scan_str): New function.
15403 (strcspn): Likewise.
15404 (strpbrk): Likewise.
15405 (memchr): Likewise.
15406
15407 * script/lua/linit.c (lualibs): Enable the string library.
15408
15409 * util/osdetect.lua: New file.
15410
2da92295 154112009-07-04 Robert Millan <rmh.grub@aybabtu.com>
15412
15413 * include/grub/i386/linux.h (struct linux_kernel_params): Add
15414 `capabilities' member.
15415
b2582ec9 154162009-07-02 Pavel Roskin <proski@gnu.org>
15417
15418 * genparttoollist.sh: Add missing newline at the end.
15419
32622956 154202009-07-01 Pavel Roskin <proski@gnu.org>
15421
87a7339e 15422 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
15423
d23af54e 15424 * util/hostdisk.c (open_device): Remove `const' from
15425 `sysctl_size', as sysctlbyname() can change it (in this case it
15426 doesn't actually happen).
15427
c94b18a9 15428 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
15429 using signed long int constants.
15430
c6cd3ef0 15431 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
15432 constant to avoid a warning on FreeBSD.
15433
0df63420 15434 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
15435 where it's needed.
15436
999577f1 15437 * Makefile.in: Install include/grub/machine symlink.
15438
6f41557f 15439 * Makefile.in: When installing symlinks, use "cp -fR", which
15440 works on FreeBSD and MacOSX.
15441 From Yves Blusseau <cl7m42e02@sneakemail.com>
15442
c8d22988 15443 * kern/dl.c (grub_dl_resolve_symbol): Make static.
15444 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
15445
1b96e952 15446 * util/misc.c: Move grub_reboot() and grub_halt() ...
15447 * util/grub-emu.c: ... here. Make main_env static.
15448 * include/grub/util/misc.h: Remove main_env.
15449
2ef0084d 15450 * kern/mm.c: Use correct format to print size_t.
15451
32622956 15452 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
15453 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
15454 * kern/powerpc/dl.c: Likewise.
15455 * kern/sparc64/dl.c: Likewise.
15456 * kern/x86_64/dl.c: Likewise.
15457
3f7f0cd0 154582009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15459
15460 Fix grub-emu build on sparc64-ieee1275.
15461
75421ca9 15462 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
3f7f0cd0 15463 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
15464
211d06b5 154652009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15466
15467 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
15468 (grub_reboot, grub_halt): New functions.
15469
15470 * util/i386/pc/misc.c: Delete. Update all users.
15471 * util/sparc64/ieee1275/misc.c: Likewise.
15472 * util/powerpc/ieee1275/misc.c: Likewise.
15473
aaf53e3c 154742009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15475
15476 * conf/i386.rmk (setjmp_mod_SOURCES)
15477 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
15478 * conf/common.rmk (setjmp_mod_SOURCES)
15479 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
15480 to use $(target_cpu).
15481 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
15482 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
15483 * conf/powerpc-ieee1275.rmk: Likewise.
15484 * conf/sparc64-ieee1275.rmk: Likewise.
15485
15486 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
15487 $(target_cpu) for kern/$(target_cpu)/dl.c.
15488 * conf/i386-efi.rmk: Likewise.
15489 * conf/i386-ieee1275.rmk: Likewise.
15490 * conf/x86_64-efi.rmk: Likewise.
15491 * conf/i386-coreboot.rmk: Likewise.
15492 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
15493 $(target_cpu) for kern/$(target_cpu)/dl.c and for
15494 kern/$(target_cpu)/cache.S.
15495 * conf/sparc64-ieee1275.rmk: Likewise.
15496
a337130b 154972009-07-01 Robert Millan <rmh.grub@aybabtu.com>
15498
15499 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
15500 type to `grub_uint8_t', and adjust `padding9' accordingly.
15501
c6fe4d53 155022009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15503
b09db61d 15504 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
15505
c6fe4d53 15506 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
15507 assembly in final jump, using register constraints.
15508
b09db61d 15509 (grub_linux_boot): For text mode, initialize `have_vga' using
15510 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
15511
15512 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
15513 right before the final jump.
15514
15515 Set `video_mode' to 0x3.
15516
15517 Document initialization of `video_page', `video_mode' and
15518 `video_ega_bx'.
15519
28333ad0 155202009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15521
15522 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
15523 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
75421ca9 15524 and set GRUB_LINUX_FLAG_QUIET appropriately.
28333ad0 15525
02164e1b 155262009-06-29 Robert Millan <rmh.grub@aybabtu.com>
15527
15528 Fix build on Debian / sparc.
15529
15530 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
15531
18b6c557 155322009-06-28 Pavel Roskin <proski@gnu.org>
15533
85f2aab6 15534 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
15535 fix a warning.
15536
18b6c557 15537 * util/grub.d/10_linux.in: Match SUSE style initrd names.
15538
ad760f81 155392009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15540
15541 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
15542 `err'.
15543
87a4623b 155442009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15545
15546 Revert r2338.
15547
15548 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
15549 file can't be opened. grub_file_open() is already supposed to set
75421ca9 15550 grub_errno / grub_errmsg appropriately.
87a4623b 15551 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15552
8231fb77 155532009-06-27 Pavel Roskin <proski@gnu.org>
155542009-06-27 Robert Millan <rmh.grub@aybabtu.com>
15555
15556 * include/grub/dl.h: Include grub/elf.h.
15557 (struct grub_dl): Add symtab field.
15558 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
15559 GRUB_MODULES_MACHINE_READONLY.
15560 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
15561 of the header for read-only modules.
15562 (grub_dl_unload): Free mod->symtab for read-only modules.
15563 * kern/i386/dl.c: Use mod->symtab.
15564 * kern/powerpc/dl.c: Likewise.
15565 * kern/sparc64/dl.c: Likewise.
15566 * kern/x86_64/dl.c: Likewise.
15567
15568 * conf/i386-qemu.rmk: New file.
15569 * kern/i386/qemu/startup.S: Likewise.
15570 * kern/i386/qemu/mmap.c: Likewise.
15571 * boot/i386/qemu/boot.S: Likewise.
15572 * include/grub/i386/qemu/time.h: Likewise.
15573 * include/grub/i386/qemu/serial.h: Likewise.
15574 * include/grub/i386/qemu/kernel.h: Likewise.
15575 * include/grub/i386/qemu/console.h: Likewise.
15576 * include/grub/i386/qemu/boot.h: Likewise.
15577 * include/grub/i386/qemu/init.h: Likewise.
15578 * include/grub/i386/qemu/machine.h: Likewise.
15579 * include/grub/i386/qemu/loader.h: Likewise.
15580 * include/grub/i386/qemu/memory.h: Likewise.
15581
15582 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
15583 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
15584 [qemu] (pkglib_IMAGES): Add `boot.img'.
15585 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
15586 [qemu] (boot_img_FORMAT): New variables.
15587 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
15588 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
15589 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
15590 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
15591 [qemu] (kernel_img_FORMAT): New variables.
15592
15593 * configure.ac: Recognise `i386-qemu'.
15594
15595 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
15596 (for no compression).
15597 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
15598 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
15599 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
15600 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
15601 ifdefs).
15602
97fe384e 156032009-06-27 Pavel Roskin <proski@gnu.org>
15604
15605 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
15606 read.
15607 * efiemu/prepare32.c: Likewise.
15608 * efiemu/prepare64.c: Likewise.
15609
c402ab17 156102009-06-26 Pavel Roskin <proski@gnu.org>
15611
15612 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
15613 * include/grub/elf.h: Define symbols without "32" or "64" based
15614 on GRUB_TARGET_WORDSIZE.
15615 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
15616 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
15617 ELF definitions.
15618 * efiemu/loadcore64.c: Likewise.
15619 * loader/i386/bsd32.c: Likewise.
15620 * loader/i386/bsd64.c: Likewise.
15621 * kern/dl.c: Remove own ELF definitions.
15622 * util/i386/efi/grub-mkimage.c: Likewise.
15623
9bbdfd4d 156242009-06-23 Robert Millan <rmh.grub@aybabtu.com>
15625
15626 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
15627 segment 0x0 unconditionally, because the reference generated by
15628 GAS is an absolute address.
15629
a42ce6e9 156302009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15631
15632 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
15633 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
15634
c952cf92 156352009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15636
15637 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
15638 indexes. Check for -f explicitly.
cc3752ad 15639 (search_file): Improve error message.
15640 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
c952cf92 15641
132a0a59 156422009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15643
15644 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
15645 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
15646
387a140c 156472009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15648
15649 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
15650 * conf/i386-ieee1275.rmk: Likewise.
15651 * conf/i386-coreboot.rmk: Likewise.
15652
15653 * kern/i386/pc/startup.S (grub_stop): Remove function.
15654 * kern/i386/ieee1275/startup.S: Likewise.
15655 * kern/i386/coreboot/startup.S: Likewise.
15656 * kern/i386/misc.S (grub_stop): New function.
15657
41da9665 156582009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15659
15660 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
15661 * kern/i386/realmode.S (real_to_prot): ... to here.
15662
bf337234 156632009-06-22 Robert Millan <rmh.grub@aybabtu.com>
15664
15665 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
15666 with `kernel.img'.
15667 (kernel_elf_SOURCES): Rename to ...
15668 (kernel_img_SOURCES): ... this.
15669 (kernel_elf_HEADERS): Rename to ...
15670 (kernel_img_HEADERS): ... this. Update all users.
15671 (kernel_elf_ASFLAGS): Rename to ...
15672 (kernel_img_ASFLAGS): ... this.
15673 (kernel_elf_CFLAGS): Rename to ...
15674 (kernel_img_CFLAGS): ... this.
15675 (kernel_elf_LDFLAGS): Rename to ...
15676 (kernel_img_LDFLAGS): ... this.
15677 * conf/i386-coreboot.rmk: Likewise.
15678 * conf/powerpc-ieee1275.rmk: Likewise.
15679
15680 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
15681 with "kernel.img".
15682
f52196ff 156832009-06-21 Pavel Roskin <proski@gnu.org>
15684
c3cee413 15685 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
15686 to match nested functions.
15687 * loader/sparc64/ieee1275/linux.c: Likewise.
15688
f52196ff 15689 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
15690
58750afc 156912009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15692
15693 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
15694 all i386 platforms.
15695
15355c7d 156962009-06-21 Robert Millan <rmh.grub@aybabtu.com>
15697
15698 Fix asm file handling on ELF, and remove workarounds.
15699
15700 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
75421ca9 15701 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
15355c7d 15702 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
15703 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
15704
3f3ec72b 157052009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
15706
15707 Load BSD ELF modules
15708
15709 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
15710 and loader/i386/bsd64.c
15711 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
15712 (FREEBSD_MODTYPE_ELF_MODULE): New definition
15713 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
15714 (grub_freebsd_load_elfmodule32): New declaration
15715 (grub_freebsd_load_elfmoduleobj64): Likewise
15716 (grub_freebsd_load_elf_meta32): Likewise
15717 (grub_freebsd_load_elf_meta64): Likewise
15718 (grub_freebsd_add_meta): Likewise
15719 (grub_freebsd_add_meta_module): Likewise
15720 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
15721 (grub_freebsd_add_meta_module): Likewise and move module-specific
15722 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
15723 (grub_cmd_freebsd): Add elf-kernel specific parts
15724 based on grub_freebsd_add_meta_module
15725 (grub_cmd_freebsd_module): Add type parsing moved from
15726 grub_freebsd_add_meta_module
15727 (grub_cmd_freebsd_module_elf): New function
15728 (cmd_freebsd_module_elf): New variable
15729 (GRUB_MOD_INIT): Register freebsd_module_elf
15730 * loader/i386/bsd32.c: New file
15731 * loader/i386/bsd64.c: Likewise
15732 * loader/i386/bsdXX.c: Likewise
15733 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
15734 (grub_elf64_load): Likewise
15735 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
15736 All users updated
15737 (grub_elf64_load_hook_t): Likewise
15738
0db15301 157392009-06-21 Colin Watson <cjwatson@ubuntu.com>
15740
15741 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
15742 variable.
15743 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
15744 don't write a menu entry for recovery mode.
15745
546796c1 157462009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15747
15748 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
15749 after it's no longer needed.
15750
cd7310d5 157512009-06-20 Robert Millan <rmh.grub@aybabtu.com>
15752
15753 * include/grub/i386/loader.h (grub_linux_prot_size)
15754 (grub_linux_tmp_addr, grub_linux_real_addr)
15755 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
15756 GRUB_MACHINE_PCBIOS.
15757 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
15758 common grub_util_info() call to ...
15759 (generate_image): ... here.
15760 Fix use of uninitialized memory, comparison of signed with
15761 unsigned integers and memory leak.
15762 Remove bogus module address message.
15763
ab32d3b5 157642009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
15765
15766 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
15767 grub_raid_register
15768 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
15769
024ef597 157702009-06-19 Pavel Roskin <proski@gnu.org>
15771
15772 * configure.ac: Remove stray AC_MSG_CHECKING.
15773
3ac72b51 157742009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
15775
15776 * disk/scsi.c (grub_scsi_open): use continue instead of big if
dd74360c 15777
e14cd814 157782009-06-18 Pavel Roskin <proski@gnu.org>
15779
15780 * conf/common.rmk: Add fs_file.mod.
15781 * disk/fs_file.c: New file.
15782 * include/grub/disk.h (enum grub_disk_dev_id): Add
15783 GRUB_DISK_DEVICE_FILE_ID.
15784
26586d98 157852009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15786
15787 Fix build with Apple's toolchain. Part 2
15788
15789 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
15790 a fake start
15791
26de2bcd 157922009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15793
15794 Fix build with Apple's toolchain. Part 1
15795
15796 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
15797 for long calls
15798 * configure.ac: remove a leftover AC_MSG_RESULT
dd74360c 15799 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
26de2bcd 15800 Apple's toolchain
15801
09b3490b 158022009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
15803
15804 Fix warnings
15805
15806 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
15807 (decomp_block): initialize ch
15808 use grub_memcpy instead of memcpy
15809
c22a006a 158102009-06-17 Pavel Roskin <proski@gnu.org>
15811
d3638678 15812 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
15813 version, use declarations needed to use vga_text as the startup
15814 console.
15815
c22a006a 15816 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
15817 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
15818 the kernel.
15819 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
15820 and grub_at_keyboard_fini(), it's done on module load and
15821 unload.
15822
05b129e0 158232009-06-17 Felix Zielcke <fzielcke@z-51.de>
15824
15825 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
15826 file can't be found.
15827 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
15828
cf24ed9e 158292009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15830
15831 Fix newline handling
15832
15833 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
dd74360c 15834 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
cf24ed9e 15835 (grub_script_yylex): don't segfault on unterminated script
15836 newline terminates command and variable
15837
74aa8e4b 158382009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
15839
15840 avoid double grub_adjust_range call. Bug reported by David Simner
15841
15842 * kern/disk.c (grub_disk_write): change to raw disk access before
15843 calling disk_read
15844
1bd265f3 158452009-06-17 Colin Watson <cjwatson@ubuntu.com>
15846
15847 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
15848 spaces, for the benefit of help2man.
15849 * util/i386/efi/grub-mkimage.c (usage): Likewise.
15850
a2d08c06 158512009-06-16 Pavel Roskin <proski@gnu.org>
15852
15853 * kern/i386/halt.c: Include grub/machine/init.h.
15854 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
15855
b97bcb19 158562009-06-16 Felix Zielcke <fzielcke@z-51.de>
15857
15858 * util/grub.d/30_os-prober.in: Use ${root} in the generated
15859 drivemap menuentry.
15860
0644f96c 158612009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
15862
15863 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
15864 `echo' command.
15865
3ef17a2e 158662009-06-16 Pavel Roskin <proski@gnu.org>
15867
15868 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
15869 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
15870 save %dx, we only need %dl and we never change it.
15871 * boot/i386/pc/cdboot.S: Don't set the root drive.
15872 * boot/i386/pc/pxeboot.S: Likewise.
15873 * include/grub/i386/pc/boot.h: Remove
15874 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
15875 GRUB_BOOT_MACHINE_DRIVE_CHECK.
15876 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
15877 * kern/i386/pc/init.c (make_install_device): Remove references
15878 to grub_root_drive.
15879 * kern/i386/pc/startup.S: Likewise.
15880 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
15881
693fe637 158822009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15883
15884 xnu_uuid command
15885
15886 * commands/xnu_uuid.c: new file
15887 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
15888 (xnu_uuid_mod_SOURCES): new variable
15889 (xnu_uuid_mod_CFLAGS): likewise
15890 (xnu_uuid_mod_LDFLAGS): likewise
15891 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15892 * conf/i386-ieee1275.rmk: likewise
15893 * conf/i386-pc.rmk: likewise
15894 * conf/powerpc-ieee1275.rmk: likewise
15895 * conf/sparc64-ieee1275.rmk: likewise
15896 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
15897
c9da87d0 158982009-06-16 Pavel Roskin <proski@gnu.org>
15899
15900 * configure.ac: Avoid '==' in test command, it's not portable.
15901
9c6f4596 159022009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
15903
15904 Probe command
15905
15906 * commands/probe.c: new file
15907 * conf/common.rmk (pkglib_MODULES): add probe.mod
15908 (probe_mod_SOURCES): new variable
15909 (probe_mod_CFLAGS): likewise
15910 (probe_mod_LDFLAGS): likewise
15911 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
15912 * conf/i386-ieee1275.rmk: likewise
15913 * conf/i386-pc.rmk: likewise
15914 * conf/powerpc-ieee1275.rmk: likewise
15915 * conf/sparc64-ieee1275.rmk: likewise
15916
70b7f9fd 159172009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
15918
15919 Fix handling of string like \"hello\" and "a
15920 b"
15921
15922 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
15923 (grub_script_yylex): fix parsing of quoting, escaping and newline
15924
71c79a6b 159252009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
15926
dd74360c 15927 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
71c79a6b 15928 handling
dd74360c 15929
0644f96c 159302009-06-13 Jun Inoue <jun.lambda@gmail.com>
880fc3c4 15931
15932 * util/grub-mkconfig.in: Fix parsing of --output option.
15933
e40893c3 159342009-06-12 Pavel Roskin <proski@gnu.org>
15935
15936 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
15937 genmk.rb don't need to be generated or installed.
15938
3a1acfe2 159392009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
15940
15941 * commands/i386/pc/drivemap_int13h.S: add more comments
15942
3a4575d4 159432009-06-11 Pavel Roskin <proski@gnu.org>
15944
0658e928 15945 * Makefile.in (uninstall): Uninstall manuals.
15946
ca0388f0 15947 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
15948 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
15949 and update-grub_lib in two places.
15950 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
15951
e3b27c39 15952 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
15953 a compiler warning.
15954
3a4575d4 15955 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
15956 `entry_lo' to fix variable shadowing.
15957
af1f4f55 159582009-06-11 Christian Franke <franke@computer.org>
15959
15960 * kern/misc.c (__enable_execute_stack): Add missing return type
15961 to prevent gcc warning.
15962
5225e649 159632009-06-11 Felix Zielcke <fzielcke@z-51.de>
15964
15965 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
15966
7d83bd47 159672009-06-11 Pavel Roskin <proski@gnu.org>
15968
c1cb63ba 15969 * Makefile.in: Don't rely on any scripts being executable.
15970 Always use $(SHELL) to run shell scripts.
15971
7d83bd47 15972 * configure.ac: Always define ___main if using -nostdlib. This
15973 fixes tests on Cygwin.
15974
948f48e7 159752009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
15976
15977 UDF fix
15978
7d83bd47 15979 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
948f48e7 15980 is in bytes and not in blocks
7d83bd47 15981
8ada9bc1 159822009-06-11 Pavel Roskin <proski@gnu.org>
15983
15984 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
15985 warning.
15986
25ad2323 159872009-06-11 Felix Zielcke <fzielcke@z-51.de>
15988
15989 * util/grub.d/30_os-prober.in: Fix a comment. Source
15990 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
15991 to set the root device. Place drivemap command in the generated
15992 chain entry.
15993
e65acb0c 159942009-06-11 Pavel Roskin <proski@gnu.org>
15995
15996 * configure.ac: Remove host_m32. Issues with 64-bit utilities
15997 have long been resolved.
15998
f285fe2d 159992009-06-11 Colin Watson <cjwatson@ubuntu.com>
16000
bd47b0b5 16001 * util/grub.d/10_linux.in: Capitalise "Linux".
16002
f285fe2d 16003 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
16004
a0c62e4e 160052009-06-11 Pavel Roskin <proski@gnu.org>
16006
b6783cb2 16007 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
16008 fix a gcc warning and ensure that the function won't ever exit.
16009
dde032e8 16010 * kern/i386/ieee1275/init.c: Add missing prototype for
16011 grub_stop_floppy().
16012
22cd079d 16013 * loader/ieee1275/multiboot2.c [__i386__]: Include
16014 grub/cpu/multiboot.h.
16015
a0c62e4e 16016 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
16017 casts to short - they are not portable and cause warnings. Fix
16018 use of uninitialized values in input_buf. Use ARRAY_SIZE.
16019
63963d17 160202009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
16021
16022 Drivemap fixes
16023
16024 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
16025 new function
16026 (grub_get_root_biosnumber_saved): new variable
16027 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
16028 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
775dbc4d 16029 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
63963d17 16030 %dx after the call if necessary
16031 * conf/common.rmk (pkglib_MODULES): remove boot.mod
16032 (boot_mod_SOURCES): remove
16033 (boot_mod_CFLAGS): remove
16034 (boot_mod_LDFLAGS): remove
16035 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
16036 (boot_mod_SOURCES): new variable
16037 (boot_mod_CFLAGS): likewise
16038 (boot_mod_LDFLAGS): likewise
16039 * conf/i386-efi.rmk: likewise
16040 * conf/i386-ieee1275.rmk: likewise
16041 * conf/i386-pc.rmk: likewise
16042 * conf/powerpc-ieee1275.rmk: likewise
16043 * conf/sparc64-ieee1275.rmk: likewise
16044 * conf/x86_64-efi.rmk: likewise
16045 * include/grub/i386/pc/biosnum.h: new file
16046 * lib/i386/pc/biosnum.c: likewise
16047 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
16048 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
16049 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
775dbc4d 16050
33abf7ae 160512009-06-10 Pavel Roskin <proski@gnu.org>
16052
5ac35b35 16053 * io/gzio.c (test_header): Don't reuse one buffer for all data.
16054 Use separate variables. Read only the file size at the end, but
16055 not the checksum that we don't use.
16056
5c5215d5 16057 * kern/file.c (grub_file_read): Use void pointer for the buffer.
16058 Adjust all callers.
16059
27d5fef7 16060 * kern/ieee1275/openfw.c: Remove libc includes.
16061 * kern/ieee1275/cmain.c: Likewise.
16062 * include/grub/ieee1275/ieee1275.h: Likewise.
16063
33abf7ae 16064 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
16065 compiler warnings.
16066
19d50c2b 160672009-06-10 Felix Zielcke <fzielcke@z-51.de>
16068
16069 * Makefile.in: Remove all trailing whitespace.
16070 * conf/i386-pc.rmk: Likewise.
16071 * conf/powerpc-ieee1275.rmk: Likewise.
16072 * conf/sparc64-ieee1275.rmk: Likewise.
16073 * docs/grub.texi: Likewise.
16074 * docs/texinfo.tex: Likewise.
16075 * disk/fs_uuid.c: Likewise.
16076 * disk/lvm.c: Likewise.
16077 * disk/scsi.c: Likewise.
16078 * disk/ata.c: Likewise.
16079 * disk/ieee1275/ofdisk.c: Likewise.
16080 * disk/i386/pc/biosdisk.c: Likewise.
16081 * disk/host.c: Likewise.
16082 * disk/raid.c: Likewise.
16083 * disk/efi/efidisk.c: Likewise.
16084 * disk/usbms.c: Likewise.
16085 * disk/memdisk.c: Likewise.
16086 * disk/loopback.c: Likewise.
16087 * kern/powerpc/dl.c: Likewise.
16088 * kern/device.c: Likewise.
16089 * kern/dl.c: Likewise.
16090 * kern/sparc64/dl.c: Likewise.
16091 * kern/ieee1275/ieee1275.c: Likewise.
16092 * kern/term.c: Likewise.
16093 * kern/fs.c: Likewise.
16094 * kern/i386/dl.c: Likewise.
16095 * kern/i386/pc/startup.S: Likewise.
16096 * kern/i386/pc/init.c: Likewise.
16097 * kern/i386/pc/mmap.c: Likewise.
16098 * kern/i386/pc/lzo1x.S: Likewise.
16099 * kern/i386/ieee1275/init.c: Likewise.
16100 * kern/i386/realmode.S: Likewise.
16101 * kern/i386/tsc.c: Likewise.
16102 * kern/partition.c: Likewise.
16103 * kern/corecmd.c: Likewise.
16104 * kern/file.c: Likewise.
16105 * kern/efi/efi.c: Likewise.
16106 * kern/efi/init.c: Likewise.
16107 * kern/efi/mm.c: Likewise.
16108 * kern/main.c: Likewise.
16109 * kern/err.c: Likewise.
16110 * kern/env.c: Likewise.
16111 * kern/disk.c: Likewise.
16112 * kern/generic/millisleep.c: Likewise.
16113 * kern/generic/rtc_get_time_ms.c: Likewise.
16114 * kern/misc.c: Likewise.
16115 * kern/parser.c: Likewise.
16116 * genmk.rb: Likewise.
16117 * configure.ac: Likewise.
16118 * boot/i386/pc/diskboot.S: Likewise.
16119 * boot/i386/pc/pxeboot.S: Likewise.
16120 * boot/i386/pc/boot.S: Likewise.
16121 * boot/i386/pc/lnxboot.S: Likewise.
16122 * boot/i386/pc/cdboot.S: Likewise.
16123 * parttool/pcpart.c: Likewise.
16124 * video/readers/tga.c: Likewise.
16125 * video/video.c: Likewise.
16126 * video/bitmap.c: Likewise.
16127 * lib/envblk.c: Likewise.
16128 * lib/i386/setjmp.S: Likewise.
16129 * fs/xfs.c: Likewise.
16130 * fs/afs.c: Likewise.
16131 * fs/fat.c: Likewise.
16132 * fs/ntfs.c: Likewise.
16133 * fs/udf.c: Likewise.
16134 * fs/affs.c: Likewise.
16135 * fs/iso9660.c: Likewise.
16136 * fs/hfs.c: Likewise.
16137 * fs/fshelp.c: Likewise.
16138 * fs/ext2.c: Likewise.
16139 * fs/jfs.c: Likewise.
16140 * fs/reiserfs.c: Likewise.
16141 * fs/hfsplus.c: Likewise.
16142 * fs/minix.c: Likewise.
16143 * fs/cpio.c: Likewise.
16144 * fs/sfs.c: Likewise.
16145 * fs/ufs.c: Likewise.
16146 * efiemu/prepare.c: Likewise.
16147 * efiemu/loadcore_common.c: Likewise.
16148 * efiemu/runtime/efiemu.sh: Likewise.
16149 * efiemu/runtime/efiemu.S: Likewise.
16150 * efiemu/runtime/efiemu.c: Likewise.
16151 * efiemu/pnvram.c: Likewise.
16152 * efiemu/main.c: Likewise.
16153 * efiemu/i386/pc/cfgtables.c: Likewise.
16154 * efiemu/i386/loadcore64.c: Likewise.
16155 * efiemu/i386/loadcore32.c: Likewise.
16156 * efiemu/loadcore.c: Likewise.
16157 * efiemu/symbols.c: Likewise.
16158 * efiemu/mm.c: Likewise.
16159 * include/grub/autoefi.h: Likewise.
16160 * include/grub/datetime.h: Likewise.
16161 * include/grub/term.h: Likewise.
16162 * include/grub/hfs.h: Likewise.
16163 * include/grub/lvm.h: Likewise.
16164 * include/grub/i386/tsc.h: Likewise.
16165 * include/grub/i386/linux.h: Likewise.
16166 * include/grub/i386/xnu.h: Likewise.
16167 * include/grub/i386/efiemu.h: Likewise.
16168 * include/grub/i386/pc/biosdisk.h: Likewise.
16169 * include/grub/i386/pc/memory.h: Likewise.
16170 * include/grub/i386/pc/vbe.h: Likewise.
16171 * include/grub/parttool.h: Likewise.
16172 * include/grub/video.h: Likewise.
16173 * include/grub/memory.h: Likewise.
16174 * include/grub/fs.h: Likewise.
16175 * include/grub/partition.h: Likewise.
16176 * include/grub/xnu.h: Likewise.
16177 * include/grub/efi/api.h: Likewise.
16178 * include/grub/efi/pe32.h: Likewise.
16179 * include/grub/efi/memory.h: Likewise.
16180 * include/grub/multiboot.h: Likewise.
16181 * include/grub/usbdesc.h: Likewise.
16182 * include/grub/multiboot2.h: Likewise.
16183 * include/grub/acpi.h: Likewise.
16184 * include/grub/efiemu/efiemu.h: Likewise.
16185 * include/grub/disk.h: Likewise.
16186 * include/grub/ieee1275/ieee1275.h: Likewise.
16187 * include/grub/net.h: Likewise.
16188 * include/grub/machoload.h: Likewise.
16189 * include/grub/macho.h: Likewise.
16190 * include/multiboot.h: Likewise.
16191 * genmoddep.awk: Likewise.
16192 * normal/main.c: Likewise.
16193 * normal/menu_entry.c: Likewise.
16194 * normal/menu_viewer.c: Likewise.
16195 * normal/completion.c: Likewise.
16196 * normal/cmdline.c: Likewise.
16197 * normal/misc.c: Likewise.
16198 * normal/datetime.c: Likewise.
16199 * bus/usb/usbtrans.c: Likewise.
16200 * bus/usb/ohci.c: Likewise.
16201 * bus/usb/uhci.c: Likewise.
16202 * bus/usb/usb.c: Likewise.
16203 * mmap/efi/mmap.c: Likewise.
16204 * mmap/i386/pc/mmap_helper.S: Likewise.
16205 * mmap/i386/pc/mmap.c: Likewise.
16206 * mmap/i386/mmap.c: Likewise.
16207 * mmap/i386/uppermem.c: Likewise.
16208 * mmap/mmap.c: Likewise.
16209 * commands/acpi.c: Likewise.
16210 * commands/echo.c: Likewise.
16211 * commands/blocklist.c: Likewise.
16212 * commands/loadenv.c: Likewise.
16213 * commands/usbtest.c: Likewise.
16214 * commands/boot.c: Likewise.
16215 * commands/parttool.c: Likewise.
16216 * commands/search.c: Likewise.
16217 * commands/cat.c: Likewise.
16218 * commands/i386/pc/play.c: Likewise.
16219 * commands/i386/pc/drivemap.c: Likewise.
16220 * commands/i386/pc/vbeinfo.c: Likewise.
16221 * commands/i386/pc/acpi.c: Likewise.
16222 * commands/i386/pc/vbetest.c: Likewise.
16223 * commands/ls.c: Likewise.
16224 * commands/cmp.c: Likewise.
16225 * commands/test.c: Likewise.
16226 * commands/efi/acpi.c: Likewise.
16227 * commands/gptsync.c: Likewise.
16228 * commands/help.c: Likewise.
16229 * partmap/amiga.c: Likewise.
16230 * partmap/apple.c: Likewise.
16231 * partmap/acorn.c: Likewise.
16232 * partmap/pc.c: Likewise.
16233 * partmap/sun.c: Likewise.
16234 * partmap/gpt.c: Likewise.
16235 * script/sh/lexer.c: Likewise.
16236 * script/sh/function.c: Likewise.
16237 * font/font.c: Likewise.
16238 * font/font_cmd.c: Likewise.
16239 * loader/powerpc/ieee1275/linux.c: Likewise.
16240 * loader/efi/chainloader.c: Likewise.
16241 * loader/multiboot_loader.c: Likewise.
16242 * loader/macho.c: Likewise.
16243 * loader/i386/multiboot.c: Likewise.
16244 * loader/i386/linux.c: Likewise.
16245 * loader/i386/pc/linux.c: Likewise.
16246 * loader/i386/pc/multiboot2.c: Likewise.
16247 * loader/i386/pc/chainloader.c: Likewise.
16248 * loader/i386/pc/xnu.c: Likewise.
16249 * loader/i386/bsd_trampoline.S: Likewise.
16250 * loader/i386/efi/linux.c: Likewise.
16251 * loader/i386/multiboot_elfxx.c: Likewise.
16252 * loader/i386/bsd_helper.S: Likewise.
16253 * loader/i386/bsd.c: Likewise.
16254 * loader/i386/linux_trampoline.S: Likewise.
16255 * loader/i386/xnu_helper.S: Likewise.
16256 * loader/i386/xnu.c: Likewise.
16257 * loader/i386/bsd_pagetable.c: Likewise.
16258 * loader/i386/multiboot_helper.S: Likewise.
16259 * loader/xnu.c: Likewise.
16260 * loader/xnu_resume.c: Likewise.
16261 * io/gzio.c: Likewise.
16262 * term/efi/console.c: Likewise.
16263 * term/terminfo.c: Likewise.
16264 * term/ieee1275/ofconsole.c: Likewise.
16265 * term/i386/pc/serial.c: Likewise.
16266 * term/i386/pc/vesafb.c: Likewise.
16267 * term/i386/pc/vga.c: Likewise.
16268 * term/usb_keyboard.c: Likewise.
16269 * term/gfxterm.c: Likewise.
16270 * aclocal.m4: Likewise.
16271 * util/lvm.c: Likewise.
16272 * util/grub.d/30_os-prober.in: Likewise.
16273 * util/grub.d/10_hurd.in: Likewise.
16274 * util/console.c: Likewise.
16275 * util/grub-macho2img.c: Likewise.
16276 * util/grub-probe.c: Likewise.
16277 * util/hostfs.c: Likewise.
16278 * util/i386/pc/grub-mkimage.c: Likewise.
16279 * util/i386/pc/grub-setup.c: Likewise.
16280 * util/i386/efi/grub-mkimage.c: Likewise.
16281 * util/grub-mkconfig.in: Likewise.
16282 * util/raid.c: Likewise.
16283 * util/resolve.c: Likewise.
16284 * util/grub-mkdevicemap.c: Likewise.
16285 * util/grub-emu.c: Likewise.
16286 * util/getroot.c: Likewise.
16287 * util/hostdisk.c: Likewise.
16288 * util/usb.c: Likewise.
16289 * util/grub-editenv.c: Likewise.
16290 * util/misc.c: Likewise.
16291
d2d49665 162922009-06-10 Felix Zielcke <fzielcke@z-51.de>
16293
16294 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
16295 `genparttoollist.sh'.
16296 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
16297 Add `*.sh' to the list find searches for and change `mdate.sh'
16298 to `mdate-sh'.
16299
fe052e37 163002009-06-10 Pavel Roskin <proski@gnu.org>
16301
2763ac18 16302 * include/grub/multiboot2.h: Provide compatibility defines for
16303 multiboot2.h.
16304 * include/multiboot2.h: Include stdint.h only if needed, using
16305 angle brackets.
16306 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
16307 grub/multiboot2.h.
16308 * loader/ieee1275/multiboot2.c: Likewise.
16309 * loader/multiboot2.c: Likewise.
16310 * loader/multiboot_loader.c: Likewise.
16311
437e6adc 16312 * configure.ac: Use -nostdlib when probing for the target. It
16313 should not be required to have libc for the target.
16314
06a6836c 16315 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
16316 they fail without libc headers for the target.
16317 * include/grub/powerpc/libgcc.h: Use weak attribute for all
16318 exports.
16319 * include/grub/sparc64/libgcc.h: Likewise. Don't use
16320 preprocessor conditionals.
16321
fe052e37 16322 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
16323 build system doesn't need to be aware of the tar.c internals.
16324
afd22553 163252009-06-09 Michel Hermier <michel.hermier@gmail.com>
87b8f28c 16326
afd22553 16327 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
8ec4a6d0 16328
6b787c4f 163292009-06-09 Robert Millan <rmh.grub@aybabtu.com>
16330
16331 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
16332 disk limit to 26 for IDE, Virtio, Xen and SCSI.
16333
163342009-06-09 Felix Zielcke <fzielcke@z-51.de>
16335
16336 * util/i386/pc/grub-install.in: Change the error message if UUIDs
473d1e45 16337 aren't available if ata.mod gets used.
6b787c4f 16338
473d1e45 163392009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
e23721e8 16340
473d1e45 16341 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
e23721e8 16342 initialising controller.
473d1e45 16343 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
e23721e8 16344
255a27d4 163452009-06-08 Felix Zielcke <fzielcke@z-51.de>
16346
16347 * util/i386/pc/grub-install.in: Add a parameter --disk-module
16348 to choose between ata and biosdisk module on i386-pc.
16349
473d1e45 163502009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
69da8877 16351
d55842d8 16352 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
16353 Subclass and Programming Interface fields in terms of the 3 byte
16354 Class Code register.
16355 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
16356
fa5db0b1 16357 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
16358 interface is OHCI. Add grub_dprintf for symmetry with
16359 bus/usb/uhci.c.
16360 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
16361 interface is UHCI. Add interf variable for programming
16362 interface. Print interface with class/subclass.
16363
c0947beb 16364 * bus/usb/ohci.c: Set interf with correct field.
16365
69da8877 16366 * bus/usb/uhci.c: Remove unneeded doubled lines.
16367 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
16368 Remove whitespace inside comment.
16369
9e172e30 163702009-06-08 Robert Millan <rmh.grub@aybabtu.com>
16371
16372 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
16373 as fallback an equivalent option without depth.
16374
de65ee2b 163752009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 Not fail if unable to retrieve C/H/S on LBA disks
16378
473d1e45 16379 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
de65ee2b 16380 if unable to retrieve C/H/S on LBA disks
16381
b57ea2c9 163822009-06-08 Pavel Roskin <proski@gnu.org>
16383
16384 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
16385 about aliasing.
16386
af361263 163872009-06-08 Felix Zielcke <fzielcke@z-51.de>
16388
16389 * Makefile.in (uninstall): Remove all $lib_DATA files.
16390
4c9ec6b3 163912009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
16392
16393 Bugfix: install on partitionless device
16394
16395 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
16396 is a whole disk
16397
e76fc924 163982009-06-08 Felix Zielcke <fzielcke@z-51.de>
16399
16400 * Makefile.in (uninstall): Remove all $include_DATA files.
16401
ba5a0d05 164022009-06-08 Felix Zielcke <fzielcke@z-51.de>
16403
16404 * commands/true.c: New file. Implement the true and false commands.
16405 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
16406 (true_mod_SOURCES): New variable.
16407 (true_mod_CFLAGS): Likewise.
16408 (true_mod_LDFLAGS): Likewise.
16409
c8048e32 164102009-06-05 Colin D Bennett <colin@gibibit.com>
16411
16412 Optimized font character lookup using binary search instead of linear
16413 search. Fonts now are required to have the character index ordered by
16414 code point.
16415
16416 * font/font.c (load_font_index): Verify that fonts have ordered
16417 character indices.
16418 (find_glyph): Use binary search instead of linear search to find a
16419 character in a font.
16420
408305be 164212009-06-05 Michael Scherer <misc@mandriva.org>
16422
16423 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
16424 uses case sensitive btree.
16425 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
16426 only for case insensitive filesystems.
16427
8ee1e0d9 164282009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
16429
16430 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
16431 * conf/common.rmk (search_mod_CFLAGS): likewise
16432
a9966eb1 164332009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16434
473d1e45 16435 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
a9966eb1 16436 compensate a compiler bug
16437
9e7100fb 164382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16439
473d1e45 16440 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
9e7100fb 16441 instead of '\b'
473d1e45 16442
ede21d71 164432009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16444
16445 Definitions for creating asm symbols with Apple's CC
16446
16447 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
16448 [APPLE_CC] (VARIABLE): likewise
16449
9dbf7653 164502009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16451
16452 Disable lnxboot.img when compiled
16453 with Apple's CC
16454
16455 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
16456 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
16457 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
16458 [! APPLE_CC] (CODE_LENG): skip
16459 [! APPLE_CC] (setup_sects): likewise
16460 [! APPLE_CC]: skip filling
473d1e45 16461
e93cdc3d 164622009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16463
16464 Address in trampolines based on 32-bit registers when compiled
16465 with Apple's CC
16466
473d1e45 16467 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
e93cdc3d 16468 for addresses
16469 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
16470
6c688477 164712009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16472
16473 Avoid aliases when compiling with Apple's CC for PCBIOS machine
16474
16475 * kern/misc.c [APPLE_CC] (memcpy): new function
16476 [APPLE_CC] (memmove): likewise
16477 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
473d1e45 16478 (memcpy): define alias conditionally on !APPLE_CC
6c688477 16479 (memset): likewise
16480 (abort): likewise
16481 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
16482 APPLE_CC are defined
16483 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
16484 (grub_assert_fail): make prototype conditional
16485
e37ffc5c 164862009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16487
16488 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
16489
473d1e45 16490 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
16491 grub-macho2img
e37ffc5c 16492 (CLEANFILES): add grub-macho2img
16493 (grub_macho2img_SOURCES): new variable
16494 * kern/i386/pc/startup.S (bss_start): new variable
16495 (bss_end): likewise
16496 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
16497 * util/grub-macho2img.c: new file
16498
cf00df31 164992009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16500
16501 Use objconv when compiling with Apple's CC
16502
16503 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
16504 (efiemu64.o): likewise
16505 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
16506 when compiling with Apple's CC
16507 (efiemu64_s.o): likewise
16508 * configure.ac: check for objconv when compiling with Apple's CC
16509 * genmk.rb: use objconv for modules when compiled with Apple's CC
473d1e45 16510
d119a20c 165112009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16512
16513 Define segment as well as section when compiling with
16514 Apple's CC
16515
16516 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
16517 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
16518 (efiemu_convert_pointer): likewise
16519 (efiemu_set_virtual_address_map): likewise
16520 (efiemu_convert_pointer): likewise
16521 (efiemu_getcrc32): likewise
16522 (init_crc32_table): likewise
16523 (reflect): likewise
16524 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
16525 (GRUB_MOD_DEP): likewise
473d1e45 16526
c8600122 165272009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16528
16529 Allow a compilation without -mcmodel=large
16530
16531 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
16532 when compiled without -mcmodel=large
473d1e45 16533 (filter_memory_map): remove memory post 4 GiB when compiled
c8600122 16534 without -mcmodel=large
473d1e45 16535 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
c8600122 16536 TARGET_CFLAGS when -mcmodel=large isn't supported
473d1e45 16537
e8df1d4e 165382009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16539
16540 Remove nested functions in efiemu core
16541
16542 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
473d1e45 16543
cc6c3ac1 165442009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16545
16546 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
16547
16548 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
16549 temporary storage
473d1e45 16550 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
16551 using Apple's CC
cc6c3ac1 16552 (grub_cpu_is_tsc_supported): likewise
16553 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
473d1e45 16554
3e325901 165552009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16556
16557 Absolute addressing through constant with Apple's cc
16558
16559 * kern/i386/pc/startup.S: Define necessary constants
16560 and address through it when using ABS with Apple's CC
16561 * boot/i386/pc/diskboot.S: likewise
16562 * boot/i386/pc/boot.S: likewise
16563 * boot/i386/pc/lnxboot.S: likewise
16564 * boot/i386/pc/cdboot.S: likewise
16565 * mmap/i386/pc/mmap_helper.S: likewise
16566 * commands/i386/pc/drivemap_int13h.S: likewise
16567
2b167a72 165682009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16569
16570 Check if compiler is apple cc
16571
16572 * Makefile.in (ASFLAGS): new variable
16573 (TARGET_ASFLAGS): likewise
16574 (TARGET_MODULE_FORMAT): likewise
16575 (TARGET_APPLE_CC): likewise
16576 (OBJCONV): likewise
16577 (TARGET_IMG_CFLAGS): likewise
16578 (TARGET_CPPFLAGS): add includedir
16579 * configure.ac: call grub_apple_cc and grub_apple_target_cc
16580 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
16581 Check for linker script only if compiler isn't Apple's CC
16582 (TARGET_MODULE_FORMAT): set
16583 (TARGET_APPLE_CC): likewise
16584 (TARGET_ASFLAGS): likewise
16585 (ASFLAGS): likewise
16586 Check for objcopy only if compiler isn't Apple's CC
16587 Check for BSS symbol only if compiler isn't Apple's CC
16588 * genmk.rb: adapt nm options if we use Apple's utils
16589 * aclocal.m4 (grub_apple_cc): new test
16590 (grub_apple_target_cc): likewise
473d1e45 16591
fb14123e 165922009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16593
16594 Simplify sed expressions and improve awk
16595
16596 * Makefile.in (install-local): simplify sed expression
16597 * gencmdlist.sh: likewise
16598 * genmoddep.awk: avoid adding module as a dependency of itself
16599
5b889789 166002009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16601
16602 Add missing start symbols
16603
16604 * boot/i386/pc/boot.S: add start
fb14123e 16605 * boot/i386/pc/pxeboot.S: likewise
473d1e45 16606
fd2bf2e3 166072009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16608
16609 Fix wrong assumptions with grub-mkimage on EFI
473d1e45 16610
16611 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
fd2bf2e3 16612 (relocate_addresses): consider both r_addend and value at offset
16613 (make_mods_section): zerofill modinfo and header
16614 (convert_elf): write prefix here
473d1e45 16615
5389763d 166162009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16617
16618 Use .asciz instead of .string
16619
16620 * i386/pc/diskboot.S: use .asciz instead of .string
16621 * i386/pc/boot.S: likewise
16622 * include/grub/dl.h (GRUB_MOD_DEP): likewise
16623 (GRUB_MOD_NAME): likewise
473d1e45 16624
3eb5ed4e 166252009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16626
16627 gfxpayload support
16628
16629 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
16630 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
16631 (grub_video_setup): remove
16632 (grub_video_set_mode): new prototype
16633 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
16634 (vid_mode): remove
16635 (linux_vesafb_res): compile only on PCBIOS
16636 (grub_linux_boot): support gfxpayload
16637 * loader/i386/pc/xnu.c (video_hook): new function
16638 (grub_xnu_set_video): support gfxpayload
16639 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
16640 (DEFAULT_VIDEO_HEIGHT): likewise
16641 (DEFAULT_VIDEO_FLAGS): likewise
16642 (DEFAULT_VIDEO_MODE): new definition
16643 (video_hook): new function
16644 (grub_gfxterm_init): use grub_video_set_mode
473d1e45 16645 * util/grub.d/30_os-prober.in: remove explicit modesetting before
3eb5ed4e 16646 loading xnu
16647 * video/video.c (grub_video_setup): removed
473d1e45 16648 (grub_video_set_mode): new function based on grub_gfxterm_init and
3eb5ed4e 16649 grub_video_setup
16650
4b0e1143 166512009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16652
16653 Avoid calling biosdisk in drivemap
16654
16655 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
16656 (revparse_biosdisk): likewise
16657 (list_mappings): derive name from id directly
16658 (grub_cmd_drivemap): use tryparse_diskstring
473d1e45 16659
fda6cb98 166602009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
16661
16662 Script fixes
16663
16664 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
16665 (grub_lexer_param): add tokenonhold
16666 (grub_script_create_cmdline): remove cmdline. All callers updated
16667 (grub_script_function_create): make functionname
16668 grub_script_arg. All callers updated
16669 (grub_script_execute_argument_to_string): new prototype
16670 * kern/parser.c (state_transitions): reorder
16671 (grub_parser_cmdline_state): fix a bug and make more compact
473d1e45 16672 * script/sh/execute.c (grub_script_execute_argument_to_string):
fda6cb98 16673 make global
16674 (grub_script_execute_cmdline): use new format
16675 * script/sh/function.c (grub_script_function_create): make functionname
16676 grub_script_arg. All callers updated
473d1e45 16677 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
fda6cb98 16678 (grub_script_yylex): remove
16679 (grub_script_yylex2): renamed to ...
16680 (grub_script_yylex): ...renamed
16681 parse the expressions like a${b}c
16682 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
16683 (GRUB_PARSER_TOKEN_VAR): remove
16684 (GRUB_PARSER_TOKEN_NAME): likewise
16685 ("if"): declare as typeless
16686 ("while"): likewise
16687 ("function"): likewise
16688 ("else"): likewise
16689 ("then"): likewise
16690 ("fi"): likewise
16691 (text): remove
16692 (argument): likewise
16693 (script): accept empty scripts and make exit on error
16694 (arguments): use GRUB_PARSER_TOKEN_ARG
16695 (function): likewise
16696 (command): move error handling to script
16697 (menuentry): move grub_script_lexer_ref before
473d1e45 16698 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
fda6cb98 16699 argument. All callers updated
16700
f4448a07 167012009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16702
16703 Prevent GRUB from probing floppies during boot.
16704
16705 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
16706 * commands/search.c (options): Add --no-floppy.
16707 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
16708 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
16709 --no-floppy when searching for UUIDs.
16710
2bf5885a 167112009-06-04 Robert Millan <rmh.grub@aybabtu.com>
16712
16713 Simplify the code duplication in commands/search.c.
16714
16715 * commands/search.c (search_label, search_fs_uuid): Merge into ...
16716 (search_fs): ... this. Update all users.
16717
f6fd460a 167182009-06-03 Felix Zielcke <fzielcke@z-51.de>
16719
16720 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
16721
cbb3c83e 167222009-05-28 Pavel Roskin <proski@gnu.org>
16723
57788cfd 16724 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
16725 Remove the original symlink explicitly.
16726
cbb3c83e 16727 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
16728 just one slash. That's how grub_fshelp_find_file() does it.
16729
cd0d5e30 167302009-05-26 Pavel Roskin <proski@gnu.org>
16731
f0f8bbe2 16732 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
16733 to `str'.
16734
cd0d5e30 16735 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
16736 possibly unused.
16737
8c2cab51 167382009-05-25 Christian Franke <franke@computer.org>
16739
16740 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
16741 register.
16742 (grub_atapi_identify): Add wait after drive select.
16743 (grub_ata_identify): Do more strict status register check before
16744 calling grub_atapi_identify (). Suppress error message if status
16745 register is 0x00 after command failure. Add status register
16746 check after PIO read to avoid bogus identify due to stuck DRQ.
16747 Thanks to Pavel Roskin for testing.
16748 (grub_device_initialize): Remove unsafe status register check.
16749 Thanks to 'phcoder' for problem report and patch.
16750 Prevent sign extension in debug message.
16751
230c0ad6 167522009-05-23 Colin D Bennett <colin@gibibit.com>
16753
16754 Cleaned up `include/grub/normal.h'. Grouped prototypes by
16755 definition file, and functions defined in `normal/menu.c' have had
16756 their prototypes moved to `include/grub/menu.h' for consistency.
16757
16758 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
16759 from normal.h.
16760 (grub_menu_get_entry): Likewise.
16761 (grub_menu_get_timeout): Likewise.
16762 (grub_menu_set_timeout): Likewise.
16763 (grub_menu_execute_entry): Likewise.
16764 (grub_menu_execute_with_fallback): Likewise.
16765 (grub_menu_entry_run): Likewise.
16766
16767 * include/grub/normal.h: Re-ordered and grouped function
16768 prototypes by file that the function is defined in.
16769 (grub_menu_execute_callback): Removed; moved to menu.h.
16770 (grub_menu_get_entry): Likewise.
16771 (grub_menu_get_timeout): Likewise.
16772 (grub_menu_set_timeout): Likewise.
16773 (grub_menu_execute_entry): Likewise.
16774 (grub_menu_execute_with_fallback): Likewise.
16775 (grub_menu_entry_run): Likewise.
16776 (grub_menu_addentry): Renamed from this ...
16777 (grub_normal_add_menu_entry): ... to this.
16778
16779 * normal/main.c (grub_menu_addentry): Renamed from this ...
16780 (grub_normal_add_menu_entry): ... to this.
16781
16782 * script/sh/execute.c (grub_script_execute_menuentry): Update
16783 reference to renamed grub_menu_addentry function.
16784
861f03a5 167852009-05-23 Felix Zielcke <fzielcke@z-51.de>
16786
16787 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
16788
96b1619a 167892009-05-22 Pavel Roskin <proski@gnu.org>
16790
bf6a5fb2 16791 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
16792 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
16793 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
16794 compiling for the i386 targets, but not for the utilities.
16795
96b1619a 16796 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
16797 to grub_uint8_t.
16798 (grub_root_drive): Likewise.
16799 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
16800 remove alignment.
16801 (grub_root_drive): Change size to byte.
16802 (grub_start_addr): Remove.
16803 (grub_end_addr): Likewise.
16804 (grub_apm_bios_info): Likewise.
16805
b729776b 168062009-05-21 Felix Zielcke <fzielcke@z-51.de>
16807
16808 * normal/i386: Remove.
16809 * normal/powerpc: Likewise.
16810 * normal/sparc64: Likewise.
16811 * normal/x86_64: Likewise.
16812
0a15ce80 168132009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
16814
16815 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
473d1e45 16816 * loader/i386/linux_trampoline.S: Fix indentation
0a15ce80 16817 * loader/i386/xnu_helper.S: Likewise
d6da58e6 16818
33db9015 168192009-05-18 Colin D Bennett <colin@gibibit.com>
16820
d6da58e6 16821 Display error messages when parsing a Lua statement fails.
16822 Previously, executing a syntactically invalid statement like
16823 ")foo" or "bar;" would silently fail.
33db9015 16824
16825 * script/lua/grub_main.c (handle_lua_error): New function.
d6da58e6 16826 (grub_lua_parse_line): Improved reporting of Lua parser and
16827 execution errors.
33db9015 16828
46422c89 168292009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16830
16831 Remove -Werror which causes build to fail on some systems
16832
16833 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
16834 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
16835 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
18f547ad 16836
22f53a96 168372009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
16838
16839 trampoline for linux on 64-bit platform
16840
18f547ad 16841 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
16842 loader/i386/efi/linux_trampoline.S
16843 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
473d1e45 16844 declaration
d6da58e6 16845 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
16846 here
22f53a96 16847 * loader/i386/linux_trampoline.S: moved here
d6da58e6 16848 * loader/i386/efi/linux.c (allocate_pages): reserve space for
16849 trampoline
22f53a96 16850 (jumpvector): removed
16851 (grub_linux_trampoline_start): new declaration
16852 (grub_linux_trampoline_end): likewise
16853 (grub_linux_boot): use trampoline when on 64-bit platform
16854 * loader/i386/linux.c: likewise
16855
cb5a0f40 168562009-05-16 Pavel Roskin <proski@gnu.org>
16857
16858 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
16859 const to avoid a warning.
16860 (grub_lua_setenv): Likewise.
16861 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
16862 lmsg to fix a warning.
16863
334f2c28 168642009-05-16 Felix Zielcke <fzielcke@z-51.de>
16865
16866 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
7dd10fce 16867 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16868 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
16869 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16870 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16871 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
16872 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
16873 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
334f2c28 16874
59e5d3ec 168752009-05-16 Felix Zielcke <fzielcke@z-51.de>
16876
16877 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
16878
9d87a1ba 168792009-05-16 Bean <bean123ch@gmail.com>
16880
16881 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
16882 (lua_mod_SOURCES): New variable.
16883 (lua_mod_CFLAGS): Likewise.
16884 (lua_mod_LDFLAGS): Likewise.
16885
16886 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
16887 (setjmp_mod_SOURCES): New variable.
16888 (setjmp_mod_CFLAGS): Likewise.
16889 (setjmp_LDFLAGS): Likewise.
16890
16891 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
16892 (setjmp_mod_SOURCES): New variable.
16893 (setjmp_mod_CFLAGS): Likewise.
16894 (setjmp_LDFLAGS): Likewise.
16895
16896 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16897 (setjmp_mod_SOURCES): New variable.
16898 (setjmp_mod_CFLAGS): Likewise.
16899 (setjmp_LDFLAGS): Likewise.
16900
16901 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
16902 (setjmp_mod_SOURCES): New variable.
16903 (setjmp_mod_CFLAGS): Likewise.
16904 (setjmp_LDFLAGS): Likewise.
16905
16906 * normal/i386/setjmp.S: Moved from here ...
16907 * lib/i386/setjmp.S: ... Moved here
16908 * normal/x86_64/setjmp.S: Moved from here ...
16909 * lib/x86_64/setjmp.S: ... Moved here
16910 * normal/powerpc/setjmp.S: Moved from here ...
16911 * lib/powerpc/setjmp.S: ... Moved here
16912 * normal/sparc64/setjmp.S: Moved from here ...
16913 * lib/sparc64/setjmp.S: ... Moved here
16914
16915 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
16916 returns_twice in mingw.
16917
16918 * script/lua/grub_lib.c: New file.
16919 * script/lua/grub_lib.h: Likewise.
16920 * script/lua/grub_lua.h: Likewise.
16921 * script/lua/grub_main.c: Likewise.
16922 * script/lua/lapi.c: Likewise.
16923 * script/lua/lapi.h: Likewise.
16924 * script/lua/lauxlib.c: Likewise.
16925 * script/lua/lauxlib.h: Likewise.
16926 * script/lua/lbaselib.c: Likewise.
16927 * script/lua/lcode.c: Likewise.
16928 * script/lua/lcode.h: Likewise.
16929 * script/lua/ldblib.c: Likewise.
16930 * script/lua/ldebug.c: Likewise.
16931 * script/lua/ldebug.h: Likewise.
16932 * script/lua/ldo.c: Likewise.
16933 * script/lua/ldo.h: Likewise.
16934 * script/lua/ldump.c: Likewise.
16935 * script/lua/lfunc.c: Likewise.
16936 * script/lua/lfunc.h: Likewise.
16937 * script/lua/lgc.c: Likewise.
16938 * script/lua/lgc.h: Likewise.
16939 * script/lua/linit.c: Likewise.
16940 * script/lua/liolib.c: Likewise.
16941 * script/lua/llex.c: Likewise.
16942 * script/lua/llex.h: Likewise.
16943 * script/lua/llimits.h: Likewise.
16944 * script/lua/lmathlib.c: Likewise.
16945 * script/lua/lmem.c: Likewise.
16946 * script/lua/lmem.h: Likewise.
16947 * script/lua/loadlib.c: Likewise.
16948 * script/lua/lobject.c: Likewise.
16949 * script/lua/lobject.h: Likewise.
16950 * script/lua/lopcodes.c: Likewise.
16951 * script/lua/lopcodes.h: Likewise.
16952 * script/lua/loslib.c: Likewise.
16953 * script/lua/lparser.c: Likewise.
16954 * script/lua/lparser.h: Likewise.
16955 * script/lua/lstate.c: Likewise.
16956 * script/lua/lstate.h: Likewise.
16957 * script/lua/lstring.c: Likewise.
16958 * script/lua/lstring.h: Likewise.
16959 * script/lua/lstrlib.c: Likewise.
16960 * script/lua/ltable.c: Likewise.
16961 * script/lua/ltable.h: Likewise.
16962 * script/lua/ltablib.c: Likewise.
16963 * script/lua/ltm.c: Likewise.
16964 * script/lua/ltm.h: Likewise.
16965 * script/lua/lua.h: Likewise.
16966 * script/lua/luaconf.h: Likewise.
16967 * script/lua/lualib.h: Likewise.
16968 * script/lua/lundump.c: Likewise.
16969 * script/lua/lundump.h: Likewise.
16970 * script/lua/lvm.c: Likewise.
16971 * script/lua/lvm.h: Likewise.
16972 * script/lua/lzio.c: Likewise.
16973 * script/lua/lzio.h: Likewise.
16974
5e898c9d 169752009-05-16 Bean <bean123ch@gmail.com>
16976
16977 * include/grub/kernel.h (grub_module_header_types): Add type
16978 OBJ_TYPE_CONFIG.
16979
16980 * kern/main.c (grub_load_config): New function.
16981 (grub_main): Call grub_load_config to read boot config.
16982
16983 * grub-mkimage (generate_image): New parameter config_path.
16984 (options): New option --config.
16985 (main): Parse --config option, and pass it to generate_image.
16986
cf353a47 169872009-05-14 Christian Franke <franke@computer.org>
16988
16989 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
16990 This fixes build on Cygwin.
16991
3834887f 169922009-05-14 Pavel Roskin <proski@gnu.org>
16993
16994 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
16995 jump. This saves two bytes, so the typical case of 2 swapped
16996 drives would fit 32 bytes.
16997
8090fc01 169982009-05-13 Pavel Roskin <proski@gnu.org>
16999
ac963883 17000 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
17001 grub_uint32_t to avoid a warning.
17002
8090fc01 17003 * loader/i386/linux.c (allocate_pages): When assigning
17004 real_mode_mem, cast through grub_size_t to fix a warning. The
17005 code already makes sure that the value would fit a pointer.
17006 (grub_linux_setup_video): Cast render_target->data to
17007 grub_size_t to fix a warning.
17008
18f547ad 170092009-05-13 Javier Martín <lordhabbit@gmail.com>
4246b8a9 17010
17011 * commands/i386/pc/drivemap.c: New file - implement drivemap
17012 command.
17013 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
17014 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
17015
6f6a8b28 170162009-05-13 Pavel Roskin <proski@gnu.org>
17017
17018 * util/i386/pc/grub-setup.c (setup): Remove unused variable
17019 embedding_area_exists.
17020
15fbf4c4 170212009-05-13 Robert Millan <rmh.grub@aybabtu.com>
17022
17023 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
17024 it easier to understand / work with.
59978c8a 17025 Improve warning messages for cases where there's no embedding area,
17026 or when it is too small (or core.img too large).
15fbf4c4 17027
238e871f 170282009-05-13 Pavel Roskin <proski@gnu.org>
17029
0ab3a9a4 17030 * loader/i386/pc/multiboot2.c: Add necessary includes for
17031 grub_multiboot2_real_boot().
17032
a2c8c5f8 17033 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
17034 PX record is always little-endian. We only need the lower 2
17035 bytes of the mode.
17036
faec96af 17037 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
17038 facilitate code reuse.
17039 (grub_cpio_mount): Use "struct head", not a char buffer. This
17040 fixes a warning reported by gcc 4.4.
17041
238e871f 17042 * kernel/disk.c (grub_disk_read): Use void pointer for the
17043 buffer.
17044 (grub_disk_write): Use const void pointer for the buffer.
17045 Adjust all callers. Remove unnecessary casts.
17046
901d2f0c 170472009-05-10 Robert Millan <rmh.grub@aybabtu.com>
17048
17049 * util/i386/pc/grub-install.in: Update copyright year.
17050
18f547ad 170512009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
2eac4c16 17052
17053 gptsync
17054
17055 * commands/gptsync.c: new file
17056 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
17057 (gptsync_mod_SOURCES): new variable
17058 (gptsync_mod_CFLAGS): likewise
17059 (gptsync_mod_LDFLAGS): likewise
18f547ad 17060 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
2eac4c16 17061 new definition
17062 (GRUB_PC_PARTITION_TYPE_HFS): likewise
17063 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
17064 * conf/i386-ieee1275.rmk: likewise
17065 * conf/i386-pc.rmk: likewise
17066 * conf/powerpc-ieee1275.rmk: likewise
17067
b4ba690a 170682009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
17069
17070 Fixed grub-emu
17071
17072 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
17073 (grub_dl_ref): likewise
17074
317e1a44 170752009-05-08 Robert Millan <rmh.grub@aybabtu.com>
17076
17077 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
17078 split in two functions (one for msdos and one for gpt).
17079
041b8094 170802009-05-08 Pavel Roskin <proski@gnu.org>
17081
752473c2 17082 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
17083 not modified.
17084
041b8094 17085 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
17086 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
17087 Initialize them with -1. Add sanity check for bad1. Eliminate
17088 nerr variable.
17089
172800ce 170902009-05-08 David S. Miller <davem@davemloft.net>
17091
17092 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
17093
29aa5e81 170942009-05-06 Robert Millan <rmh.grub@aybabtu.com>
17095
17096 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
473d1e45 17097 existence.
29aa5e81 17098
96613b62 170992009-05-05 Felix Zielcke <fzielcke@z-51.de>
17100
17101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
1905c57b 17102 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
96613b62 17103
eef73c8a 171042009-05-05 David S. Miller <davem@davemloft.net>
17105
17106 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
17107
119494b5 171082009-05-05 Pavel Roskin <proski@gnu.org>
17109
17110 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
17111 of grub_dl_ref() and grub_dl_unref().
17112 * commands/parttool.c: Remove preprocessor conditionals around
17113 grub_dl_ref() and grub_dl_unref().
17114 * fs/affs.c: Likewise.
17115 * fs/afs.c: Likewise.
17116 * fs/cpio.c: Likewise.
17117 * fs/ext2.c: Likewise.
17118 * fs/fat.c: Likewise.
17119 * fs/hfs.c: Likewise.
17120 * fs/hfsplus.c: Likewise.
17121 * fs/iso9660.c: Likewise.
17122 * fs/jfs.c: Likewise.
17123 * fs/minix.c: Likewise.
17124 * fs/ntfs.c: Likewise.
17125 * fs/reiserfs.c: Likewise.
17126 * fs/sfs.c: Likewise.
17127 * fs/udf.c: Likewise.
17128 * fs/ufs.c: Likewise.
17129 * fs/xfs.c: Likewise.
17130 * include/grub/dl.h: Likewise.
17131 * loader/xnu.c: Likewise.
17132
de5fd76e 171332009-05-04 Pavel Roskin <proski@gnu.org>
17134
17135 * commands/acpi.c: Remove unused variable my_mod.
17136 * partmap/amiga.c: Likewise.
17137 * partmap/apple.c: Likewise.
17138 * partmap/gpt.c: Likewise.
17139 * partmap/pc.c: Likewise.
17140 * partmap/sun.c: Likewise.
17141 * term/gfxterm.c: Likewise.
17142 * term/i386/pc/vesafb.c: Likewise.
17143 * term/i386/pc/vga.c: Likewise.
17144
983598ad 171452009-05-04 David S. Miller <davem@davemloft.net>
17146
17147 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
17148 pointer args to grub_ieee1275_get_property().
17149
8aadec43 17150 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
17151
9554b15e 17152 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
17153 devices, and do not traverse down under controller nodes.
17154
67e23c90 17155 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
17156 (grub_ofdisk_open): Use it to un-escape "," characters.
17157 * kern/disk.c (find_part_sep): New.
17158 (grub_disk_open): Use it to find the first non-escaped ','
17159 character in the disk name.
17160 * util/ieee1275/devicemap.c (escape_of_path): New.
17161 (grub_util_emit_devicemap_entry): Use it.
17162 * util/sparc64/ieee1275/grub-install.in: Update script to
17163 strip partition specifiers properly by not triggering on
17164 '\' escaped ',' characters.
17165
74bfdd2f 171662009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17167
17168 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
17169 to 0x300.
17170 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
17171 resolutions.
17172 (linux_vesafb_modes): Add a lot of additional modes to the list (based
17173 on documentation from Wikipedia).
17174
4241d2b1 171752009-05-04 Pavel Roskin <proski@gnu.org>
17176
17177 * disk/ata.c: Spelling fixes.
17178 * disk/raid.c: Likewise.
17179 * disk/usbms.c: Likewise.
17180 * disk/dmraid_nvidia.c: Likewise.
17181 * kern/ieee1275/openfw.c: Likewise.
17182 * kern/ieee1275/init.c: Likewise.
17183 * kern/ieee1275/cmain.c: Likewise.
17184 * boot/i386/pc/cdboot.S: Likewise.
17185 * video/readers/png.c: Likewise.
17186 * video/i386/pc/vbe.c: Likewise.
17187 * fs/udf.c: Likewise.
17188 * fs/hfs.c: Likewise.
17189 * fs/reiserfs.c: Likewise.
17190 * efiemu/runtime/efiemu.c: Likewise.
17191 * efiemu/main.c: Likewise.
17192 * efiemu/mm.c: Likewise.
17193 * include/grub/elf.h: Likewise.
17194 * include/grub/xnu.h: Likewise.
17195 * include/grub/usbdesc.h: Likewise.
17196 * include/grub/usb.h: Likewise.
17197 * include/grub/script_sh.h: Likewise.
17198 * include/grub/lib/LzmaEnc.h: Likewise.
17199 * include/grub/efiemu/efiemu.h: Likewise.
17200 * include/grub/command.h: Likewise.
17201 * normal/menu.c: Likewise.
17202 * normal/main.c: Likewise.
17203 * normal/datetime.c: Likewise.
17204 * bus/usb/uhci.c: Likewise.
17205 * mmap/i386/uppermem.c: Likewise.
17206 * mmap/mmap.c: Likewise.
17207 * commands/acpi.c: Likewise.
17208 * commands/test.c: Likewise.
17209 * partmap/apple.c: Likewise.
17210 * font/font.c: Likewise.
17211 * loader/sparc64/ieee1275/linux.c: Likewise.
17212 * loader/macho.c: Likewise.
17213 * loader/i386/bsd_trampoline.S: Likewise.
17214 * loader/i386/bsd.c: Likewise.
17215 * loader/xnu.c: Likewise.
17216 * term/i386/pc/vesafb.c: Likewise.
17217 * term/usb_keyboard.c: Likewise.
17218 * util/resolve.c: Likewise.
17219 * util/getroot.c: Likewise.
17220
0cfc0083 172212009-05-04 Felix Zielcke <fzielcke@z-51.de>
17222
17223 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
17224
7c1d00cd 172252009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17226
17227 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
17228 build error.
17229
b01f0548 172302009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17231
17232 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
17233 parameter only available on BIOS.
17234
ecc3eb22 172352009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17236
17237 Removed wrong semicolon in declaration
17238
17239 * grub/misc.h (grub_dprintf): remove semicolon
17240
112972a9 172412009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17242
17243 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
17244 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
17245 is done by grub_cmd_linux() now).
17246 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
17247 restore video to text mode.
17248 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
17249 indicates lack of "vga=" parameter. "vga=0" is mapped to
17250 `GRUB_LINUX_VID_MODE_NORMAL'.
17251
afd5c115 172522009-05-04 Felix Zielcke <fzielcke@z-51.de>
17253
17254 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
17255 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
17256 and `normal/script.c'. Add `kern/rescue_reader.c',
18f547ad 17257 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
afd5c115 17258 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
17259 `grub_script.tab.c'.
17260
17261 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17262 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
17263 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17264 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
17265 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
17266
faa517ce 17267 * Makefile.in: Remove duplicated 2008 in Copyright line.
17268
ae0c0bdc 172692009-05-04 Robert Millan <rmh.grub@aybabtu.com>
17270
473d1e45 17271 * util/misc.c (grub_util_warn): New function. Emits a warning
ae0c0bdc 17272 unconditionally.
17273 * include/grub/util/misc.h (grub_util_warn): New declaration.
17274
17275 * util/i386/pc/grub-install.in: Understand --force and pass it down
17276 to grub-setup.
17277
17278 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
17279 down to setup().
17280 (setup): Improve error messages and add warnings when requested to
17281 install in odd layouts. Refuse to install using blocklists unless
17282 --force was set.
17283
18f547ad 172842009-05-04 martin f. krafft <madduck@madduck.net>
c149b500 17285
17286 * disk/raid.c (grub_raid_scan_device): Improve debug message.
17287
6d260daa 172882009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17289
17290 Updated copyright year
17291
17292 * fs/hfsplus.c: updated copyright year
18f547ad 17293
69f853f8 172942009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
17295
17296 HFS+ UUID
17297
18f547ad 17298 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
69f853f8 17299 in the space previously used by unused3
17300 (grub_hfsplus_uuid): new function
17301 (grub_hfsplus_fs): added uuid field
17302
4c402e73 173032009-05-03 Pavel Roskin <proski@gnu.org>
17304
17305 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
17306 suppress warnings. It's no longer needed.
17307 * disk/host.c: Likewise.
17308 * disk/ata_pthru.c: Likewise.
17309 * disk/loopback.c: Likewise.
17310 * hook/datehook.c: Likewise.
17311 * parttool/pcpart.c: Likewise.
17312 * fs/i386/pc/pxe.c: Likewise.
17313 * fs/ntfscomp.c: Likewise.
17314 * efiemu/main.c: Likewise.
17315 * mmap/mmap.c: Likewise.
17316 * commands/crc.c: Likewise.
17317 * commands/hexdump.c: Likewise.
17318 * commands/hdparm.c: Likewise.
17319 * commands/acpi.c: Likewise.
17320 * commands/echo.c: Likewise.
17321 * commands/minicmd.c: Likewise.
17322 * commands/blocklist.c: Likewise.
17323 * commands/memrw.c: Likewise.
17324 * commands/loadenv.c: Likewise.
17325 * commands/usbtest.c: Likewise.
17326 * commands/lsmmap.c: Likewise.
17327 * commands/boot.c: Likewise.
17328 * commands/parttool.c: Likewise.
17329 * commands/configfile.c: Likewise.
17330 * commands/search.c: Likewise.
17331 * commands/ieee1275/suspend.c: Likewise.
17332 * commands/cat.c: Likewise.
17333 * commands/i386/pc/pxecmd.c: Likewise.
17334 * commands/i386/pc/play.c: Likewise.
17335 * commands/i386/pc/halt.c: Likewise.
17336 * commands/i386/pc/vbeinfo.c: Likewise.
17337 * commands/i386/pc/vbetest.c: Likewise.
17338 * commands/lspci.c: Likewise.
17339 * commands/date.c: Likewise.
17340 * commands/handler.c: Likewise.
17341 * commands/ls.c: Likewise.
17342 * commands/test.c: Likewise.
17343 * commands/cmp.c: Likewise.
17344 * commands/efi/loadbios.c: Likewise.
17345 * commands/efi/fixvideo.c: Likewise.
17346 * commands/halt.c: Likewise.
17347 * commands/help.c: Likewise.
17348 * commands/reboot.c: Likewise.
17349 * hello/hello.c: Likewise.
17350 * script/sh/main.c: Likewise.
17351 * loader/xnu.c: Likewise.
17352 * term/terminfo.c: Likewise.
17353 * term/i386/pc/serial.c: Likewise.
17354 * term/usb_keyboard.c: Likewise.
17355
515b5079 173562009-05-03 David S. Miller <davem@davemloft.net>
17357
17358 * normal/menu.c: Include grub/parser.h
17359
dfc31a22 173602009-05-03 Pavel Roskin <proski@gnu.org>
17361
2fee74f1 17362 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
17363 not char*.
17364 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
17365 Suggested by Javier Martín <lordhabbit@gmail.com>
17366
dfc31a22 17367 * util/i386/pc/grub-mkrescue.in: Allow for the case when
17368 efiemu??.o doesn't exist.
17369 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
17370 copying.
17371
18f547ad 173722009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
cef17233 17373
17374 FreeBSD 64-bit support
17375
18f547ad 17376 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
cef17233 17377 and loader/i386/bsd_trampoline.S
17378 (bsd_mod_ASFLAGS): new variable
17379 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
17380 (FREEBSD_MODTYPE_KERNEL64): likewise
17381 (grub_bsd64_trampoline_start): likewise
17382 (grub_bsd64_trampoline_end): likewise
17383 (grub_bsd64_trampoline_selfjump): likewise
17384 (grub_bsd64_trampoline_gdt): likewise
17385 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
17386 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
17387 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
17388 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18f547ad 17389 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
cef17233 17390 of "attrib" member
17391 * loader/i386/bsd_pagetable.c: new file
17392 * loader/i386/bsd_trampoline.S: likewise
17393 * loader/i386/bsd.c (ALIGN_QWORD): new macro
17394 (ALIGN_VAR): likewise
17395 (entry_hi): new variable
17396 (kern_end_mdofs): likewise
17397 (is_64bit): likewise
17398 (grub_freebsd_add_meta): use ALIGN_VAR
17399 (grub_e820_mmap): new declaration
17400 (grub_freebsd_add_mmap): new function
17401 (grub_freebsd_add_meta_module): support 64 bit kernels
17402 (grub_freebsd_list_modules): use ALIGN_VAR
17403 (gdt_descriptor): new declaration
17404 (grub_freebsd_boot): support 64 bit kernels
17405 (grub_bsd_elf64_hook): new function
17406 (grub_bsd_load_elf): support elf64
17407
038c5720 174082009-05-03 Bean <bean123ch@gmail.com>
17409
17410 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
17411 after we get the result of if statement.
17412
fc45fb58 174132009-05-03 Bean <bean123ch@gmail.com>
17414
17415 * Makefile.in (enable_efiemu): New variable.
17416
17417 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
17418 set.
17419 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
17420 path.
17421 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
17422 path, add -mno-red-zone option.
17423 (efiemu64_s.o): Likewise.
17424 (efiemu64.o): Use macro $^ for source file.
17425
17426 * configure.ac (--enable-efiemu): New option.
17427
bbee0f2b 174282009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
17429
17430 xnu support
17431
17432 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
17433 (pkglib_MODULES): add xnu.mod
17434 (xnu_mod_SOURCES): new variable
17435 (xnu_mod_CFLAGS): likewise
17436 (xnu_mod_LDFLAGS): likewise
17437 (xnu_mod_ASFLAGS): likewise
17438 * conf/i386-pc.rmk: likewise
17439 * conf/x86_64-efi.rmk: likewise
7dd4a573 17440 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
bbee0f2b 17441 new declaration
17442 * include/grub/i386/macho.h: new file
17443 * include/grub/i386/xnu.h: likewise
17444 * include/grub/macho.h: likewise
17445 * include/grub/machoload.h: likewise
17446 * include/grub/x86_64/macho.h: likewise
17447 * include/grub/x86_64/xnu.h: likewise
17448 * include/grub/xnu.h: likewise
17449 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
17450 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
17451 * loader/i386/efi/xnu.c: new file
17452 * loader/i386/pc/xnu.c: likewise
17453 * loader/i386/xnu.c: likewise
17454 * loader/i386/xnu_helper.S: likewise
17455 * loader/macho.c: likewise
17456 * loader/xnu.c: likewise
17457 * loader/xnu_resume.c: likewise
17458 * util/grub-dumpdevtree: likewise
17459 * include/grub/i386/pit.h: include grub/err.h
17460 (grub_pit_wait): export
17461 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
7dd4a573 17462
5caf964d 174632009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17464
17465 Efiemu
7dd4a573 17466
5caf964d 17467 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
7dd4a573 17468 _linux_efi, linux_efi.
17469 new files in grub-emu
5caf964d 17470 new targets efiemu32.o and efiemu64.o
17471 * loader/linux_normal_efiemu.c: likewise
17472 * loader/i386/efi/linux.c: added preliminary efiemu support
7dd4a573 17473 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
5caf964d 17474 files to copy
17475 * include/grub/autoefi.h: new file
7dd4a573 17476 * include/grub/i386/efiemu.h: likewise
5caf964d 17477 * include/grub/i386/pc/efiemu.h: likewise
17478 * include/grub/efi/api.h: add LL suffix when necessary
17479 new definitions relating to tables
17480 * include/grub/efiemu/efiemu.h: new file
17481 * include/grub/efiemu/runtime.h: likewise
17482 * efiemu/prepare.c: likewise
17483 * efiemu/loadcore_common.c: likewise
17484 * efiemu/loadcore64.c: likewise
17485 * efiemu/runtime/efiemu.sh: likewise
17486 * efiemu/runtime/efiemu.S: likewise
17487 * efiemu/runtime/efiemu.c: likewise
17488 * efiemu/runtime/config.h: likewise
17489 * efiemu/prepare32.c: likewise
17490 * efiemu/main.c: likewise
17491 * efiemu/modules/pnvram.c: likewise
17492 * efiemu/modules/i386: likewise
17493 * efiemu/modules/i386/pc: likewise
17494 * efiemu/modules/acpi.c: likewise
17495 * efiemu/i386/pc/cfgtables.c: likewise
17496 * efiemu/i386/loadcore64.c: likewise
17497 * efiemu/i386/loadcore32.c: likewise
17498 * efiemu/prepare64.c: likewise
17499 * efiemu/loadcore.c: likewise
17500 * efiemu/symbols.c: likewise
17501 * efiemu/mm.c: likewise
17502 * efiemu/loadcore32.c: likewise
7dd4a573 17503
175042009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
f8efe3ad 17505
17506 ACPI spoofing
17507
17508 * commands/acpi.c: new file
17509 * commands/i386/pc/acpi.c: likewise
17510 * commands/efi/acpi.c: likewise
17511 * include/grub/acpi.h: likewise
17512 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
17513 (acpi_mod_SOURCES): new variable
17514 (acpi_mod_CFLAGS): likewise
17515 (acpi_mod_LDFLAGS): likewise
17516 * conf/i386-efi.rmk: likewise
17517 * conf/x86_64-efi.rmk: likewise
17518
7dd4a573 175192009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
28a85665 17520
17521 Missing part from mmap patch
17522
17523 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
17524 (grub_mmap_unregister)
17525 (grub_mmap_free_and_unregister): use grub_mmap_register
17526
7dd4a573 175272009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
09d842b9 17528
17529 Mmap services
17530
17531 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
17532 * loader/i386/linux.c (find_mmap_size): likewise
17533 (allocate_pages): likewise
17534 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
17535 (grub_fill_multiboot_mmap): likewise
17536 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
17537 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
17538 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
17539 (OPENBSD_MMAP_RESERVED): likewise
17540 * include/grub/i386/pc/memory.h: include grub/memory.h
17541 (grub_lower_mem): removed
17542 (grub_upper_mem): likewise
17543 (GRUB_MACHINE_MEMORY_ACPI): new definition
17544 (GRUB_MACHINE_MEMORY_NVS): likewise
17545 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
17546 (GRUB_MACHINE_MEMORY_HOLE): likewise
17547 (grub_machine_mmap_register): likewise
17548 (grub_machine_mmap_unregister): likewise
17549 (grub_machine_get_upper): likewise
17550 (grub_machine_get_lower): likewise
17551 (grub_machine_get_post64): likewise
17552 * include/grub/i386/efi/memory.h: new file
17553 * include/grub/x86_64/efi/memory.h: likewise
17554 * include/grub/efi/memory.h: likewise
17555 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
17556 (mmap_mod_SOURCES): new variable
17557 (mmap_mod_LDFLAGS): likewise
17558 (mmap_mod_ASFLAGS): likewise
17559 * conf/i386-coreboot.rmk: likewise
17560 * conf/i386-ieee1275.rmk: likewise
17561 * conf/i386-efi.rmk: likewise
17562 * conf/x86_64-efi.rmk: likewise
17563 * include/grub/types.h (UINT_TO_PTR): new macro
17564 (PTR_TO_UINT32): likewise
17565 (PTR_TO_UINT64): likewise
17566 * include/grub/memory.h: new file
17567 * mmap/i386/pc/mmap.c: likewise
17568 * mmap/i386/pc/mmap_helper.S: likewise
17569 * mmap/i386/uppermem.c: likewise
17570 * mmap/mmap.c: likewise
17571 * mmap/efi/mmap.c: likewise
7dd4a573 17572 * kern/i386/coreboot/init.c (grub_machine_init): don't use
09d842b9 17573 grub_upper_mem
17574 * kern/i386/pc/init.c (grub_lower_mem): removed variable
17575 (grub_upper_mem): likewise
17576 (grub_machine_init): don't use grub_upper_mem,
17577 make grub_lower_mem local
17578 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
17579 grub_mmap_iterate and grub_mmap_get_upper
17580 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
17581
d558e6b5 175822009-05-02 Bean <bean123ch@gmail.com>
17583
17584 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
17585 script/sh/parser.y.
17586 (pkglib_MODULES): Add normal.mod and sh.mod.
17587 (normal_SOURCES): New variable.
17588 (normal_mod_CFLAGS): Likewise.
17589 (normal_mod_LDFLAGS): Likewise.
17590 (sh_mod_SOURCES): Likewise.
17591 (sh_mod_CFLAGS): Likewise.
17592 (sh_mod_LDFLAGS): Likewise.
17593
17594 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
17595 script/sh/lexer.c_DEPENDENCIES.
17596 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
17597 kern/rescue_reader.c and kern/rescue_parser.c.
17598 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
17599 (grub_emu_SOURCES): Change source files.
17600 (pkglib_MODULES): Remove normal.mod.
17601 (normal_SOURCES): Removed.
17602 (normal_mod_CFLAGS): Likewise.
17603 (normal_mod_LDFLAGS): Likewise.
17604 * conf/i386-coreboot.rmk: Likewise.
17605 * conf/i386-efi.rmk: Likewise.
17606 * conf/i386-ieee1276.rmk: Likewise.
17607 * conf/powerpc-ieee1275.rmk: Likewise.
17608 * conf/sparc64-ieee1275.rmk: Likewise.
17609 * conf/x86_64-efi.rmk: Likewise.
17610
17611 * include/grub/command.h (grub_command_execute): New inline function.
17612
17613 * include/grub/menu.h (grub_menu_entry): Removed commands field.
17614
17615 * include/grub/normal.h: Remove <grub/setjmp.h>.
17616 (grub_fs_module_list): Moved to normal/autofs.c.
17617 (grub_exit_env): Removed.
17618 (grub_command_execute): Likewise.
17619 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
17620 parameter script.
17621 (read_command_list): New function declaration.
17622 (read_fs_list): Likewise.
17623
17624 * include/parser.h: Include <grub/reader.h>.
17625 (grub_parser_split_cmdline): Change type of getline parameter.
17626 (grub_parser): New structure.
17627 (grub_parser_class): New variable.
17628 (grub_parser_execute): New function declaration.
17629 (grub_register_rescue_parser): Likewise.
17630 (grub_parser_register): New inline function.
17631 (grub_parser_unregister): Likewise.
17632 (grub_parser_get_current): Likewise.
17633 (grub_parser_set_current): Likewise.
17634
17635 * include/grub/reader.h: New file.
17636 * kern/reader.c: Likewise.
17637 * kern/rescue_parser.c: Likewise.
17638 * kern/rescue_reader.c: Likewise.
17639 * normal/autofs.c: Likewise.
17640 * normal/dyncmd.c: Likewise.
17641
17642 * include/grub/rescue.h: Removed.
17643 * normal/command.h: Likewise.
17644
17645 * include/grub/script.h: Moved to ...
17646 * include/grub/script_sh.h: ... Moved here.
17647 * normal/execute.c: Moved to ...
17648 * script/sh/execute.c: ... Moved here.
17649 * normal/function.c: Moved to ...
17650 * script/sh/function.c: ... Moved here.
17651 * normal/lexer.c: Moved to ...
17652 * script/sh/lexer.c: ... Moved here.
17653 * normal/parser.y: Moved to ...
17654 * script/sh/parser.y: ... Moved here.
17655 * normal/script.c: Moved to ...
17656 * script/sh/script.c: ... Moved here.
17657
17658 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
17659 <grub/reader.h>.
17660 (grub_exit_env): Removed.
17661 (fs_module_list): Moved to normal/autofs.c.
17662 (grub_file_getline): Don't handle comment here.
17663 (free_menu): Skip removed field entry->commands.
17664 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
17665 script parameter.
17666 (read_config_file): Removed nested parameter, change getline function.
17667 (grub_enter_normal_mode): Removed.
17668 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
17669 (read_command_list): Likewise.
17670 (autoload_fs_module): Moved to normal/autofs.c.
17671 (read_fs_list): Likewise.
17672 (reader_nested): New variable.
17673 (grub_normal_execute): Run parser.sh to switch to sh parser.
17674 (grub_cmd_rescue): Removed.
17675 (cmd_normal): Removed.
17676 (grub_cmd_normal): Unregister itself at the beginning. Don't register
17677 rescue command.
17678 (grub_cmdline_run): New function.
17679 (grub_normal_reader_init): Likewise.
17680 (grub_normal_read_line): Likewise.
17681 (grub_env_write_pager): Likewise.
17682 (cmdline): New variable.
17683 (grub_normal_reader): Likewise.
17684 (GRUB_MOD_INIT): Register normal reader and set as current, register
17685 pager hook, register normal command with grub_register_command_prio,
17686 so that it won't show up in command.lst.
17687 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
17688 grub_fs_autoload_hook.
17689
17690 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
17691 (grub_menu_execute_entry): Replace grub_script_execute with
17692 grub_parser_execute, change parameter to grub_command_execute.
17693
17694 * normal/menu_text.c: Remove <grub/script.h>.
17695
17696 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
17697 and <grub/parser.h>.
17698 (run): Change editor_getline to use new parser interface. Change
17699 parameter to grub_command_execute.
17700
17701 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
17702 <grub/reader.h> and <grub/parser.h>.
17703 (grub_load_normal_mode): Execute normal command.
17704 (grub_main): Call grub_register_core_commands,
17705 grub_register_rescue_parser and grub_register_rescue_reader, use
17706 grub_reader_loop to enter input loop.
17707
7dd4a573 17708 * kern/parser.c (grub_parser_split_cmdline): Change type of
17709 getline parameter.
d558e6b5 17710 (grub_parser_class): New variable.
17711 (grub_parser_execute): New function.
17712
17713 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
17714 * loader/multiboot2.c: Likewise.
17715 * loader/sparc64/ieee1275/linux.c: Likewise.
17716
17717 * util/grub-emu.c (read_command_list): New dummy function.
17718
18db813d 177192009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17720
17721 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
17722 count to 16 for CCISS and IDA.
17723
6c67de15 177242009-05-02 Robert Millan <rmh.grub@aybabtu.com>
17725
17726 * normal/menu_text.c (grub_wait_after_message): Print a newline
17727 after waiting for user input.
17728
17729 * loader/i386/linux.c: Include `<grub/normal.h>'.
17730 (grub_cmd_linux): Improve the error message about `ask' mode, by
17731 waiting for user input so it's not missed (we can do this, since
17732 user requested interaction).
17733
d9dc87b0 177342009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
17735
17736 Added missing lst to grub-mkrescue
17737
17738 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
17739 and ${input_dir}/parttool.lst
17740
ac8a2baa 177412009-04-30 David S. Miller <davem@davemloft.net>
17742
ad22a610 17743 * util/hostdisk.c (device_is_wholedisk): New function.
17744 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
17745 zero only if device_is_wholedisk() returns true.
17746
6966215d 17747 * util/hostdisk.c (convert_system_partition_to_system_disk):
17748 Handle virtual disk devices named /dev/vdiskX as found on sparc
17749 and powerpc.
17750
ac8a2baa 17751 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
17752 lettered partition specifier is found, convert to numbered.
17753
979b4fb4 177542009-04-29 David S. Miller <davem@davemloft.net>
17755
e2bf39b2 17756 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
17757 * include/grub/sparc64/ieee1275/memory.h: Likewise.
17758
3c64e104 17759 * normal/command.c: Add missing newline at end of file.
17760
979b4fb4 17761 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
17762 warnings.
17763 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
17764 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
17765 grub_ofdisk_read): Likewise, and deal similarly with the fact that
17766 ihandles have a 32-bit type but need to be stored in a "void *".
17767
136d9f82 177682009-04-28 Pavel Roskin <proski@gnu.org>
17769
9459c306 17770 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
17771 not disk. Adjust all dependencies.
2e08a26a 17772 (grub_fs_uuid_close): Use grub_device_close(), not
9459c306 17773 grub_disk_close().
17774
136d9f82 17775 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
17776 parent's partition, don't copy it by reference, as it gets freed
17777 on close.
17778
7dd4a573 177792009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
75a807cf 17780
17781 Preboot hooks support
17782
17783 * commands/boot.c (struct grub_preboot_t): new declaration
17784 (preboots_head): new variable
17785 (preboots_tail): likewise
17786 (grub_loader_register_preboot_hook): new function
17787 (grub_loader_unregister_preboot_hook): likewise
17788 (grub_loader_set): launch preboot hooks
17789 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
17790 (grub_loader_register_preboot_hook): new declaration
17791 (grub_loader_unregister_preboot_hook): likewise
17792
5af922b5 177932009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
17794
17795 Warning fix
17796
7dd4a573 17797 * disk/scsi.c (grub_scsi_open): added missing cast when
5af922b5 17798 calling grub_dprintf
17799
a5562c30 178002009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
17801
17802 Bug and warning fixes
17803
7dd4a573 17804 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
a5562c30 17805 declaration
17806 * commands/test.c (test_parse): fixed bug with file tests and corrected
17807 declaration of find_file
17808
4006f85c 178092009-04-26 Pavel Roskin <proski@gnu.org>
17810
17811 * Makefile.in: Don't install empty manual pages if help2man is
17812 missing. Use help2man option for output, not shell redirection.
17813
5c77c3de 178142009-04-26 David S. Miller <davem@davemloft.net>
17815
17816 * util/grub-mkdevicemap.c (make_device_map): Add missing
17817 NESTED_FUNC_ATTR to process_device().
17818
033b10a8 178192009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17820
17821 Test command
17822
17823 * commands/test.c: rewritten to use bash-like test
17824
e4343593 178252009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
17826
17827 Parttool autoloading and improvements
17828
7dd4a573 17829 * Makefile.in (pkglib_DATA): add parttool.lst
e4343593 17830 (parttool.lst): new target
17831 * genmk.rb: generate parttool-*
17832 (CLEANFILES): add #{parttool}
17833 (PARTTOOLFILES): new variable
17834 * genparttoollist.sh: new file
7dd4a573 17835 * parttool/pcpart.c (grub_pcpart_boot): more feedback
e4343593 17836 (grub_pcpart_type): likewise
17837 * commands/parttool.c (helpmsg): new variable
17838 (grub_cmd_parttool): output help if not enough arguments are supplied
17839 autoload modules
17840 (GRUB_MOD_INIT(parttool)): use helpmsg
17841
0d312500 178422009-04-24 David S. Miller <davem@davemloft.net>
17843
7dd4a573 17844 Avoiding opening same device multiple times in device iterator.
0d312500 17845
17846 * kern/device.c: (grub_device_iterate): Define struct part_ent,
7dd4a573 17847 and use it to build a list of partitions in iterate_disk() and
0d312500 17848 iterate_partition().
17849
ac20caff 17850 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
17851 on disk->data.
17852
0dcf7495 17853 * disk/ieee1275/nand.c (grub_nand_iterate): Return
17854 grub_devalias_iterate() result instead of unconditional 0.
17855 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
17856 Also, capture hook return value, either directly or via
17857 grub_children_iterate(), and propagate to caller.
17858 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
17859 grub_children_iterate): Return value is now 'int' instead of
17860 'grub_err_t'.
17861 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
17862 like a proper iterator, stopping when hooks return non-zero.
17863 (grub_devalias_iterate): Likewise.
17864
c8c08833 178652009-04-23 David S. Miller <davem@davemloft.net>
17866
17867 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
17868
f01005a8 178692009-04-22 David S. Miller <davem@davemloft.net>
17870
17871 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
17872 is larger than address_cells, use that value for address_cells too.
17873
4e8269da 17874 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
17875 IEEE1275_MAX_PATH_LEN): Define.
17876 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
17877 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
17878 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
17879 'devtype'. Explicitly NULL terminate devalias expansion.
17880
a1447506 17881 * util/sparc64/ieee1275/misc.c: New file.
17882 * util/sparc64/ieee1275/grub-setup.c: New file.
17883 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
17884 * util/sparc64/ieee1275/grub-mkimage.c: New file.
17885 * util/sparc64/ieee1275/grub-install.in: New file.
17886 * util/ieee1275/ofpath.c: New file.
17887 * util/ieee1275/devicemap.c: New file.
17888 * util/devicemap.c: New file.
17889 * util/deviceiter.c: New file.
17890 * kern/sparc64/ieee1275/init.c: New file.
17891 * include/grub/util/ofpath.h: New file.
17892 * include/grub/util/deviceiter.h: New file.
17893 * util/grub-mkdevicemap.c: Include deviceiter.h.
17894 Implement using grub_util_emit_devicemap_entry and
17895 grub_util_iterate_devices.
17896 * conf/i386-corebook.rmk: Build util/deviceiter.c and
17897 util/devicemap.c into grub-mkdevicemap
17898 * conf/i386-efi.rmk: Likewise.
17899 * conf/i386-ieee1275.rmk: Likewise.
17900 * conf/i386-pc.rmk: Likewise.
17901 * conf/powerpc-ieee1275.rmk: Likewise.
17902 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
17903 images and installation utilities. Build kernel as image
17904 instead of as elf binary. Use common rules as much as possible.
17905
7dd4a573 179062009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
0aefc632 17907
17908 Correct GPT definition
17909
7dd4a573 17910 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
0aefc632 17911 of "attrib" member
17912
c6c5219f 179132009-04-19 Felix Zielcke <fzielcke@z-51.de>
17914
17915 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
17916
0552ff9f 179172009-04-19 David S. Miller <davem@davemloft.net>
17918
17919 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
17920 (grub_rescue_cmd_linux): Rename to...
17921 (grub_cmd_linux): and fix prototype.
17922 (grub_rescue_cmd_initrd): Rename to...
17923 (grub_cmd_initrd): and fix prototype.
17924 (cmd_linux, cmd_initrd): New.
17925 (GRUB_MOD_INIT(linux)): Use grub_register_command().
17926 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
17927
d1a282fc 179282009-04-17 Pavel Roskin <proski@gnu.org>
17929
07c5039f 17930 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
17931 format.
17932 (grub_ohci_transfer): Likewise.
17933
b012002d 17934 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
17935
1bc09c35 17936 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
17937 return without a value. Fix inconsistent indentation.
17938
e0ff9126 17939 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
17940 match struct grub_fs.
17941
d1a282fc 17942 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
17943 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
17944 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17945 * commands/lspci.c (grub_lspci_iter): Likewise.
17946
a96df3f2 179472009-04-16 Bean <bean123ch@gmail.com>
17948
17949 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
17950 value.
17951
41bb0fe9 179522009-04-15 Pavel Roskin <proski@gnu.org>
17953
17954 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
17955 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
17956 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
17957 definitions.
17958
596c6970 179592009-04-15 Felix Zielcke <fzielcke@z-51.de>
17960
17961 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
7dd4a573 17962 that no multiple data or metadata areas are supported and `Unknown
596c6970 17963 metadata header'.
17964
7dd4a573 179652009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
0d5d5653 17966
17967 Move loader out of the kernel
17968
17969 * kern/loader.c: moved to ...
17970 * commands/boot.c: ... moved here
17971 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
17972 * commands/boot.c (grub_cmd_boot): moved here. All users updated
17973 * include/grub/kernel.h (grub_machine_fini): export
17974 * include/grub/loader.h (grub_loader_is_loaded): update declaration
17975 (grub_loader_set): likewise
17976 (grub_loader_unset): likewise
17977 (grub_loader_boot): likewise
17978 * conf/common.rmk: new module boot.mod
17979 (pkglib_MODULES): add boot.mod
17980 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
17981 (grub_emu_SOURCES): likewise
17982 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
17983 (grub_emu_SOURCES): likewise
17984 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
17985 (grub_emu_SOURCES): likewise
17986 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
17987 (grub_emu_SOURCES): likewise
17988 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
17989 (grub_emu_SOURCES): likewise
7dd4a573 17990 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
17991 (grub_emu_SOURCES): likewise
0d5d5653 17992 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
7dd4a573 17993 (grub_emu_SOURCES): likewise
0d5d5653 17994
7dd4a573 179952009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
5999d619 17996
17997 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
7dd4a573 17998
5999d619 17999 * kern/misc.c (grub_itoa): Removed function
18000 (grub_ltoa): likewise
18001 (grub_vsprintf): use grub_lltoa
18002
7dd4a573 180032009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
13c00781 18004
18005 Restore grub-emu
18006
18007 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
18008 * conf/i386-coreboot.rmk: likewise
18009 * conf/i386-ieee1275.rmk: likewise
18010 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 18011
20318222 180122009-04-15 Felix Zielcke <fzielcke@z-51.de>
18013
18014 * INSTALL: Add that `./autogen.sh' needs to be run before
18015 `./configure.'.
18016
d05f0df3 180172009-04-14 Bean <bean123ch@gmail.com>
18018
18019 * Makefile.in (pkglib_DATA): Add handler.lst.
18020 (handler.lst): New rule.
18021
18022 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
18023 * conf/i386-coreboot.rmk: Likewise.
18024 * conf/i386-ieee1275.rmk: Likewise.
18025 * conf/i386-efi.rmk: Likewise.
18026 * conf/x86_64-efi.rmk: Likewise.
18027 * conf/powerpc-ieee1275.rmk: Likewise.
18028 * conf/sparc64-ieee1275.rmk: Likewise.
18029
18030 * genhandlerlist.sh: New file.
18031
18032 * genmk.rb: Add rules to generate handler.lst.
18033
18034 * include/grub/normal.h (grub_file_getline): New function definition.
18035 (read_handler_list): Likewise.
18036 (free_handler_list): Likewise.
18037
18038 * include/grub/term.h (grub_term_register_input): Add name parameter
18039 for auto generation of handler.lst.
18040 (grub_term_register_output): Likewise.
18041
18042 * normal/handler.c: New file.
18043
18044 * normal/main.c (get_line): Renamed to grub_file_getline.
18045 (read_config_file): Use the newly renamed grub_file_getline.
18046 (read_command_list): Likewise.
18047 (read_fs_list): Likewise.
18048 (grub_normal_execute): Call read_handler_list to parse handler.lst.
18049 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
18050
18051 * term/efi/console.c (grub_console_init): Add name parameter for auto
18052 generation of handler.lst.
18053 * term/gfxterm.c: Likewise.
18054 * term/i386/pc/at_keyboard.c: Likewise.
18055 * term/i386/pc/console.c: Likewise.
18056 * term/i386/pc/serial.c: Likewise.
18057 * term/i386/pc/vesafb.c: Likewise.
18058 * term/i386/pc/vga.c: Likewise.
18059 * term/i386/pc/vga_text.c: Likewise.
18060 * term/ieee1275/ofconsole.c: Likewise.
18061 * term/usb_keyboard.c: Likewise.
18062
33c846be 180632009-04-14 Bean <bean123ch@gmail.com>
18064
18065 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
18066 properly with null character.
18067
4484e01e 180682009-04-14 Felix Zielcke <fzielcke@z-51.de>
18069
18070 * configure: Remove.
18071 * config.h.in: Likewise.
f93d668e 18072 * stamp-h.in: Likewise.
4484e01e 18073 * DISTLIST: Likewise.
18074 * conf/common.mk: Likewise.
18075 * conf/i386-coreboot.mk: Likewise.
18076 * conf/i386-efi.mk: Likewise.
18077 * conf/i386-ieee1275.mk: Likewise.
18078 * conf/i386.mk: Likewise.
18079 * conf/i386-pc.mk: Likewise.
18080 * conf/powerpc-ieee1275.mk: Likewise.
18081 * conf/sparc64-ieee1275.mk: Likewise.
18082 * conf/x86_64-efi.mk: Likewise.
18083
18084 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
18085 develop on GRUB.
18086
7dd4a573 180872009-04-14 John Stanley <jpsinthemix@verizon.net>
5c5bf96a 18088 David S. Miller <davem@davemloft.net>
18089
18090 * util/hostdisk.c (make_device_name): Fix buffer length
18091 calculations.
18092
e25b5a8c 180932009-04-14 Felix Zielcke <fzielcke@z-51.de>
18094
18095 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
18096 <sys/param.h> and <sys/sysctl.h>.
18097 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
18098 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
18099 opening the device and reset them afterwards.
18100
1f1f580c 181012009-04-13 Pavel Roskin <proski@gnu.org>
18102
18103 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
18104 Reported by John Stanley <jpsinthemix@verizon.net>
18105
7ebc2d6b 181062009-04-13 Robert Millan <rmh@aybabtu.com>
18107
18108 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
7dd4a573 18109 that name for menuentries when appropriate.
7ebc2d6b 18110
d8ba3667 181112009-04-13 Felix Zielcke <fzielcke@z-51.de>
18112
18113 * util/grub.d/10_freebsd.in: Add a missing `fi'.
18114
cba416eb 181152009-04-13 Robert Millan <rmh@aybabtu.com>
18116
18117 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
18118 to Linux, simply abort telling the user it's no longer supported.
18119
a547a745 181202009-04-13 Felix Zielcke <fzielcke@z-51.de>
18121
18122 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
7dd4a573 18123 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
a547a745 18124 `freebsd_loadenv' only when devices.hints exist.
18125
232a769c 181262009-04-13 Pavel Roskin <proski@gnu.org>
18127
18128 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
18129
c3012039 181302009-04-13 Felix Zielcke <fzielcke@z-51.de>
18131
18132 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
18133 partition number.
18134 (grub_drive): Likewise.
18135
234022fe 181362009-04-13 David S. Miller <davem@davemloft.net>
18137
18138 * kern/sparc64/ieee1275/ieee1275.c: New file.
18139 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
18140 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
18141 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
18142 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
18143 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
18144 grub_ieee1275_alloc_physmem): Declare new exported functions.
18145
d8e1836c 18146 * include/grub/sparc64/ieee1275/loader.h: New file.
18147 * include/grub/sparc64/ieee1275/memory.h: Likewise.
18148 * include/grub/sparc64/kernel.h: Likewise.
18149 * loader/sparc64/ieee1275/linux.c: Likewise.
18150
96bd81ec 18151 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
18152 (grub_fstest_SOURCES): Likewise.
18153
6a4737e5 18154 * util/hostdisk.c (make_device_name): Do not make any assumptions
18155 about the length of drive names.
18156
1d7a72fd 18157 * kern/dl.c (grub_dl_load_file): Close file immediately when
18158 we are done using it.
18159
56bc2471 181602009-04-12 David S. Miller <davem@davemloft.net>
18161
18162 * kern/misc.c (grub_ltoa): Fix cast when handling negative
18163 values. Noticed by Pavel Roskin.
18164
df38d0bb 18165 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
18166 target compiler.
7dd4a573 18167
e382e93a 18168 * genmk.rb: Add more flexible image type specification, also
18169 pass --strip-unneeded to objcopy.
18170 * conf/i386-pc.rmk: Use *_FORMAT.
18171 * conf/i386-pc.mk: Rebuilt.
18172
f5dbbca9 18173 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
18174 (OFDISK_HASH_SZ): Define.
18175 (ofdisk_hash): New hash table.
18176 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
18177 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
18178 instead of device phandle which is not unique.
18179
91c88b12 18180 * kern/sparc64/ieee1275/init.c: Delete, replace with...
18181 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
18182 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
18183 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
18184 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
18185 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
18186 GRUB_KERNEL_MACHINE_DATA_END): Define.
18187 (grub_kernel_image_size, grub_total_module_size): Declare.
18188
5b5d4aa5 181892009-04-12 Pavel Roskin <proski@gnu.org>
18190
7dd4a573 18191 * configure.ac: Change the logic when we check for target tools.
18192 Do it when the target is specified and it's different from the
18193 specified value of the host.
5b5d4aa5 18194
c91e1793 181952009-04-11 Felix Zielcke <fzielcke@z-51.de>
18196
18197 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
18198 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
18199 GNU/kFreeBSD. Check if a device is a character device. Use
18200 DIOCGMEDIASIZE to get the size.
18201 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
18202 support for GNU/kFreeBSD.
18203 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
18204 is a character device instead of a block device. Add support for
18205 FreeBSD device names.
18206
18207 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
18208 is a character device instead of a block device.
18209
18210 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
18211 is a character device instead of a block device.
18212
b1ac8644 182132009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
18214
18215 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
18216 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
18217 FreeBSD. Check if a device is a character device. Use
18218 DIOCGMEDIASIZE to get the size.
18219 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
18220 support for FreeBSD.
18221 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
18222 is a character device instead of a block device. Add support for
18223 FreeBSD device names.
18224
18225 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
18226 a character device instead of a block device.
18227 (grub_util_check_char_device): New function.
18228
18229 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
18230 a character device instead of a block device.
18231
18232 * include/grub/util/getroot.h (grub_util_check_char_device): New
18233 prototype.
18234
a3f7515a 182352009-04-11 David S. Miller <davem@davemloft.net>
18236
18237 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
18238 static libgcc.
18239 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
18240 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
18241 function, if present.
18242 (__bswapdi2): Likewise.
18243
0d44993d 18244 * include/grub/sparc64/ieee1275/boot.h: New file.
18245 * boot/sparc64/ieee1275/boot.S: Likewise.
18246 * boot/sparc64/ieee1275/diskboot.S: Likewise.
18247
ed3d2bc2 18248 * kern/misc.c (grub_ltoa): New function.
18249 (grub_vsprintf): Use it to format 'long' integers.
18250
d3bfb59c 182512009-04-10 David S. Miller <davem@davemloft.net>
18252
18253 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
18254 slots are of type grub_ieee1275_cell_t.
18255 (grub_nand_read): Likewise.
18256 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
18257 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
18258 macros are used to compare values in arg/ret block of the call.
18259 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
18260 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
18261 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
18262 grub_ieee1275_instance_to_path, grub_ieee1275_write,
18263 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
18264 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
18265 grub_ieee1275_close, grub_ieee1275_set_property,
18266 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
18267 grub_ieee1275_cell_t.
18268 * kern/ieee1275/openfw.c (grub_map): Likewise.
18269 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
18270 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
18271
450e2238 18272 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
18273 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
18274 (grub_devalias_iterate): Likewise.
18275
7dd4a573 182762009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6df8cc76 18277
18278 UFS improvements
18279
18280 * fs/ufs.c (INODE_NBLOCKS): new definition
18281 (struct grub_ufs_dirent): added fields for non-BSD dirents
18282 (grub_ufs_get_file_block): fixed double indirect handling
18283 (grub_ufs_lookup_symlink): use more robust way to determine whether
18284 symlink is inline
18285 (grub_ufs_find_file): support for non-BSD dirents
18286 (grub_ufs_dir): support for non-BSD dirents
18287
e7e6862a 182882009-04-10 Bean <bean123ch@gnail.com>
18289
18290 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
18291 attribute, otherwise the size would be wrong for i386 platform.
18292
18293 * include/grub/pci.h (grub_pci_read_word): New inline function.
18294 (grub_pci_read_byte): Likewise.
18295 (grub_pci_write): Likewise.
18296 (grub_pci_write_word): Likewise.
18297 (grub_pci_write_byte): Likewise.
18298
18299 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
18300
18301 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
18302 (find_framebuf): Scan pci to locate the frame buffer address.
18303
18304 * commands/efi/fixvideo.c: New file.
18305
18306 * commands/efi/loadbios.c: Likewise.
18307
18308 * commands/memrw.c: Likewise.
18309
18310 * util/grub-dumpbios.in: Likewise.
18311
18312 * conf/common.rmk (grub-dumpbios): New utility.
18313 (pkglib_MODULES): New module memrw.mod.
18314 (memrw_mod_SOURCE): New macro.
18315 (memrw_mod_CFLAGS): Likewise.
18316 (memrw_mod_LDFLAGS): Likewise.
18317
7dd4a573 18318 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 18319 fixvideo.mod.
18320 (loadbios_mod_SOURCE): New macro.
18321 (loadbios_mod_CFLAGS): Likewise.
18322 (loadbios_mod_LDFLAGS): Likewise.
18323 (fixvideo_mod_SOURCE): Likewise.
18324 (fixvideo_mod_CFLAGS): Likewise.
18325 (fixvideo_mod_LDFLAGS): Likewise.
18326
7dd4a573 18327 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
e7e6862a 18328 fixvideo.mod.
18329 (loadbios_mod_SOURCE): New macro.
18330 (loadbios_mod_CFLAGS): Likewise.
18331 (loadbios_mod_LDFLAGS): Likewise.
18332 (fixvideo_mod_SOURCE): Likewise.
18333 (fixvideo_mod_CFLAGS): Likewise.
18334 (fixvideo_mod_LDFLAGS): Likewise.
18335
af63ada2 183362009-04-08 Felix Zielcke <fzielcke@z-51.de>
18337
18338 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
18339
c2cdde70 183402009-04-07 David S. Miller <davem@davemloft.net>
18341
18342 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
18343 support for R_SPARC_OLO10 relocations. Fix compile warning for
18344 R_SPARC_WDISP30 case.
ea3f72cf 18345 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
c2cdde70 18346
761319cf 183472009-04-06 Pavel Roskin <proski@gnu.org>
18348
1007d1f5 18349 * include/grub/misc.h (ARRAY_SIZE): New macro.
18350 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
18351 New macro.
18352 * loader/i386/linux.c (allocate_pages): Use free_pages().
18353 (grub_linux_unload): Don't use free_pages().
18354 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
18355 wrong index. Treat all other modes as text modes.
18356 (grub_cmd_linux): Initialize vid_mode unconditionally to
18357 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
18358
761319cf 18359 * commands/help.c (print_command_help): Use cmd->prio, not
18360 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
18361
ea761d40 183622009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
7dd4a573 18363
ea761d40 18364 Parttool
18365
18366 * parttool/pcpart.c: new file
18367 * commands/parttool.c: likewise
18368 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
18369 (parttool_mod_SOURCES): new variable
18370 (parttool_mod_CFLAGS): likewise
18371 (parttool_mod_LDFLAGS): likewise
18372 (pcpart_mod_SOURCES): likewise
18373 (pcpart_mod_CFLAGS): likewise
18374 (pcpart_mod_LDFLAGS): likewise
7dd4a573 18375 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
ea761d40 18376 and parttool/pcpart.c
18377 * conf/i386-efi.rmk: likewise
18378 * conf/i386-ieee1275.rmk: likewise
18379 * conf/i386-pc.rmk: likewise
18380 * conf/powerpc-ieee1275.rmk: likewise
18381 * conf/sparc64-ieee1275.rmk: likewise
18382 * conf/x86_64-ieee1275.rmk: likewise
18383
05aaebfb 183842009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18385
18386 Support for mtime and further expandability of dir command
18387
18388 * include/grub/lib/datetime.h: moved to ...
7dd4a573 18389 * include/grub/datetime.h: ... moved here and added
05aaebfb 18390 declaration of grub_unixtime2datetime. All users updated
7dd4a573 18391 * include/grub/fs.h: new syntax for dir and mtime functions in
18392 struct grub_fs
05aaebfb 18393 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
18394 and GRUB_FSHELP_FLAGS_MASK
18395 * commands/ls.c (grub_ls_list_files): Write mtime in long format
18396 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
18397 (grub_ext2_mtime): new function
18398 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
18399 (grub_hfsplus_mtime): new function
18400 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
18401 (GRUB_UFS_ATTR_FILE): likewise
18402 (GRUB_UFS_ATTR_LNK): likewise
18403 (struct grub_ufs_sblock): new fields mtime
18404 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
18405 all users updated
18406 (grub_ufs_dir): mtime support
18407 (grub_ufs_mtime): new function
18408 * fs/affs.c (grub_affs_dir): use new dir syntax
18409 * fs/afs.c (grub_afs_dir): likewise
18410 * fs/cpio.c (grub_cpio_dir): likewise
18411 * fs/fat.c (grub_fat_find_dir): likewise
18412 * fs/hfs.c (grub_hfs_dir): likewise
18413 * fs/iso9660.c (grub_iso9660_dir): likewise
18414 * fs/jfs.c (grub_jfs_dir): likewise
18415 * fs/minix.c (grub_minix_dir): likewise
18416 * fs/ntfs.c (grub_ntfs_dir): likewise
18417 * fs/reiserfs.c (grub_reiserfs_dir): likewise
18418 * fs/sfs.c (grub_sfs_dir): likewise
18419 * fs/xfs.c (grub_xfs_dir): likewise
18420 * util/hostfs.c (grub_hostfs_dir): likewise
18421 * lib/datetime.c: moved to ...
18422 * normal/datetime.c: ... moved here
18423 (grub_unixtime2datetime): new function
18424 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
7dd4a573 18425 * normal/completion.c (iterate_dir): use new dir syntax
18426 * normal/misc.c (grub_normal_print_device_info): tell the
05aaebfb 18427 last modification time of a volume
7dd4a573 18428 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
05aaebfb 18429 * conf/common.rmk: added lib/datetime.c to ls.mod
7dd4a573 18430 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
05aaebfb 18431 (normal_mod_SOURCES): likewise
18432 (datetime_mod_SOURCES): Removed lib/datetime.c
18433 * conf/i386-efi.rmk: likewise
7dd4a573 18434 * conf/i386-ieee1275.rmk: likewise
05aaebfb 18435 * conf/i386-pc.rmk: likewise
18436 * conf/powerpc-ieee1275.rmk: likewise
7dd4a573 18437 * conf/sparc64-ieee1275.rmk: likewise
18438 * conf/x86_64-efi.rmk: likewise
05aaebfb 18439
8a7e1a14 184402009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
18441
18442 Trim trailing spaces in FAT label and support mtools-like labels
7dd4a573 18443
18444 * fs/fat.c (grub_fat_iterate_dir): New function based
8a7e1a14 18445 on grub_fat_find_dir
18446 (grub_fat_find_dir): use grub_fat_iterate_dir
18447 (grub_fat_label): likewise
18448
04186a9c 184492009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
18450
7dd4a573 18451 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
04186a9c 18452 and command.h
18453 remove extraneous kernel_elf_HEADERS
18454
da4c0bb6 184552009-04-04 Bean <bean123ch@gnail.com>
18456
18457 * include/grub/util/misc.h: Add dummy function fsync for mingw.
18458
18459 * util/misc.c: Likewise.
18460
54ad9555 184612009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
18462
18463 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
18464 instead of grub_printf.
18465
7a6bf9f2 184662009-04-03 Robert Millan <rmh@aybabtu.com>
18467
18468 * loader/i386/linux.c (grub_linux_setup_video): Fill
18469 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
18470 values from `mode info' structure instead of hardcoded
18471 values.
18472
3fcc2083 184732009-04-01 Pavel Roskin <proski@gnu.org>
18474
18475 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
18476 unused now.
18477 * genmk.rb: Likewise.
18478 * configure.ac: Likewise.
18479
5ec9740b 184802009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
18481
18482 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
18483 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
18484
5270cec8 184852009-04-01 David S. Miller <davem@davemloft.net>
18486
18487 * normal/sparc64/setjmp.S: Fix setjmp implementation.
7dd4a573 18488 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
5270cec8 18489 (grub_setjmp): Mark with 'returns_twice' attribute.
18490 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
18491 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
18492 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
18493
9c3dd854 184942009-04-01 Robert Millan <rmh@aybabtu.com>
18495
18496 Reapply fix from 2008-07-28 which was accidentally reverted; also
18497 perform the same fix to a similar check in same function.
18498
18499 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
18500 with the same number are found, just use issue a warning with
18501 grub_dprintf(), as this error has been reported to be non-fatal.
18502
0d818b7e 185032009-03-31 Pavel Roskin <proski@gnu.org>
18504
18505 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
18506 for cross-compilation.
18507
95646d92 185082009-03-30 Robert Millan <rmh@aybabtu.com>
18509
18510 Fix i386-ieee1275 build.
18511
18512 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
18513 Remove declaration.
18514
6a003ed1 185152009-03-30 Pavel Roskin <proski@gnu.org>
18516
18517 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
18518 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
18519 zero-terminated, rely only on the strlen value. Fix comparison
18520 of strings differing in length.
18521
92f33540 185222009-03-30 Robert Millan <rmh@aybabtu.com>
18523
18524 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
18525 checking for abi version. Improve error messages on BIOS to notify
18526 user about `linux16' command.
18527
a8c48fd5 185282009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
18529
f968172e 18530 Leak fixes
a8c48fd5 18531
f968172e 18532 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
18533 in case of collision
18534 * disk/scsi.c (grub_scsi_open): free scsi in case of error
a8c48fd5 18535
9c323f09 185362009-03-29 Robert Millan <rmh@aybabtu.com>
18537
18538 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
18539 set `vid_mode' accordingly.
18540 (grub_linux_boot): Process `vid_mode' and set video mode.
18541
ae68f423 185422009-03-29 Robert Millan <rmh@aybabtu.com>
18543
18544 * util/grub.d/10_linux.in (linux_entry): New function.
18545 Factorize generation of Linux boot entries.
18546
5709cfc4 185472009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
18548
18549 Make the format of Environment Block plain text. The boot loader
18550 part is not tested well yet.
7dd4a573 18551
5709cfc4 18552 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
18553 (buffer): Removed.
18554 (envblk): Likewise.
18555 (usage): Remove "info" and "clear". Add "unset". Update the
18556 description of "set", as this does not delete variables any
18557 longer.
18558 (create_envblk_file): Complete rewrite.
18559 (open_envblk_file): Likewise.
18560 (cmd_info): Removed.
18561 (cmd_list): Likewise.
18562 (cmd_set): Likewise.
18563 (cmd_clear): Likewise.
18564 (list_variables): New function.
18565 (write_envblk): Likewise.
18566 (set_variables): Likewise.
18567 (unset_variables): Likewise.
18568 (main): Complete rewrite.
18569
18570 * commands/loadenv.c (buffer): Removed.
18571 (envblk): Likewise.
18572 (open_envblk_file): New function.
18573 (read_envblk_file): Complete rewrite.
18574 (grub_cmd_load_env): Likewise.
18575 (grub_cmd_list_env): Likewise.
18576 (struct blocklist): New struct.
18577 (free_blocklists): New function.
18578 (check_blocklists): Likewise.
18579 (write_blocklists): Likewise.
18580 (grub_cmd_save_env): Complete rewrite.
18581
18582 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
18583 a plain text signature.
18584 (GRUB_ENVBLK_MAXLEN): Removed.
18585 (struct grub_envblk): Complete rewrite.
18586 (grub_envblk_find): Removed.
18587 (grub_envblk_insert): Likewise.
18588 (grub_envblk_open): New prototype.
18589 (grub_envblk_set): Likewise.
18590 (grub_envblk_delete): Put const to VALUE.
18591 (grub_envblk_iterate): Put const to NAME and VALUE.
18592 (grub_envblk_close): New prototype.
18593 (grub_envblk_buffer): New inline function.
18594 (grub_envblk_size): Likewise.
18595
18596 * lib/envblk.c: Include grub/mm.h.
18597 (grub_env_find): Removed.
18598 (grub_envblk_open): New function.
18599 (grub_envblk_close): Likewise.
18600 (escaped_value_len): Likewise.
18601 (find_next_line): Likewise.
18602 (grub_envblk_insert): Removed.
18603 (grub_envblk_set): New function.
18604 (grub_envblk_delete): Complete rewrite.
18605 (grub_envblk_iterate): Likewise.
18606
a9368fd3 186072009-03-28 Robert Millan <rmh@aybabtu.com>
18608
18609 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
18610 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
18611 variables. Use 16-bit loader.
18612 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
18613 loader.
18614 * kern/i386/loader.S (grub_linux_boot): Rename to ...
18615 (grub_linux16_boot): ... this. Update all users.
18616 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
18617 (grub_linux_boot): ... this. Update all users.
18618
18619 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
18620 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
18621 commands to `linux16' and `initrd16'.
18622 (GRUB_MOD_FINI(linux)): Rename to ...
18623 (GRUB_MOD_FINI(linux16)): ... this.
18624
e4dd5a7e 186252009-03-24 Pavel Roskin <proski@gnu.org>
18626
18627 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
18628 not just for compilation.
18629
c04d6e05 186302009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
18631
18632 Move multiboot helper out of kernel
18633
18634 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
18635 `loader/i386/multiboot_helper.S'.
18636 * conf/i386-coreboot.rmk: Likewise
18637 * conf/i386-ieee1275.rmk: Likewise
18638
18639 * kern/i386/loader.S: Move multiboot helpers from here...
18640 * loader/i386/multiboot_helper.S: ...moved here
18641 * include/grub/i386/loader.h: Move declarations of multiboot
18642 helpers from here...
18643 * include/grub/i386/multiboot.h: ...moved here
18644 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
18645
42a5b3fc 186462009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18647
18648 * kern/env.c (grub_env_context_open): Added an argument to specify
18649 whether a new context inherits exported variables from current
18650 one. This is useful when making a sandbox to interpret a config
18651 file.
18652 All callers updated.
18653
18654 * include/grub/env.h (grub_env_context_open): Updated the prototype.
18655
b28bbc4e 186562009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18657
18658 * kern/env.c (grub_env_context_close): Fix memory leaks.
18659
f04f02e4 186602009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
18661
18662 * normal/main.c (grub_normal_execute): Added an argument
18663 BATCH to specify if an interactive interface should be provided
18664 after reading a config file.
18665 All callers updated.
18666 (read_command_list): Prevent being executed twice.
18667 (read_fs_list): Likewise.
18668
42a5b3fc 18669 * include/grub/normal.h (grub_normal_execute): Updated the
18670 prototype.
f04f02e4 18671
41473ac2 186722009-03-22 Pavel Roskin <proski@gno.org>
18673
fbc00b0c 18674 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
18675 _start.
18676 * kern/i386/pc/startup.S: Likewise.
18677 * kern/i386/efi/startup.S: Likewise.
18678 * kern/i386/ieee1275/startup.S: Likewise.
18679 * kern/i386/coreboot/startup.S: Likewise.
18680 * kern/x86_64/efi/startup.S: Likewise.
18681
41473ac2 18682 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
18683 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
18684 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
18685
2274cc8f 186862009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
18687
18688 Bugfixes in multiboot for bugs uncovered by solaris kernel.
18689
18690 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
18691 limit detection.
18692 Use vaddr of correct segment for entry_point.
18693
b1b797cb 186942009-03-21 Bean <bean123ch@gmail.com>
18695
18696 * commands/blocklist.c: Add include file <grub/command.h>, remove
18697 <grub/normal.h> and <grub/arg.h>.
18698 (grub_cmd_blocklist): Use the new command interface.
18699 (GRUB_MOD_INIT): Likewise.
18700 (GRUB_MOD_FINI): Likewise.
18701 * commands/boot.c: Likewise.
18702 * commands/cat.c: Likewise.
18703 * commands/cmp.c: Likewise.
18704 * commands/configfile.c: Likewise.
18705 * commands/crc.c: Likewise.
18706 * commands/echo.c: Likewise.
18707 * commands/halt.c: Likewise.
18708 * commands/handler.c: Likewise.
18709 * commands/hdparm.c: Likewise.
18710 * commands/help.c: Likewise.
18711 * commands/hexdump.c: Likewise.
18712 * commands/loadenv.c: Likewise.
18713 * commands/ls.c: Likewise.
18714 * commands/lsmmap.c: Likewise.
18715 * commands/lspci.c: Likewise.
18716 * commands/loadenv.c: Likewise.
18717 * commands/read.c: Likewise.
18718 * commands/reboot.c: Likewise.
18719 * commands/search.c: Likewise.
18720 * commands/sleep.c: Likewise.
18721 * commands/test.c: Likewise.
18722 * commands/usbtest.c: Likewise.
18723 * commands/videotest.c: Likewise.
18724 * commands/i386/cpuid.c: Likewise.
18725 * commands/i386/pc/halt.c: Likewise.
18726 * commands/i386/pc/play.c: Likewise.
18727 * commands/i386/pc/pxecmd.c: Likewise.
18728 * commands/i386/pc/vbeinfo.c: Likewise.
18729 * commands/i386/pc/vbetest.c: Likewise.
18730 * commands/ieee1275/suspend.c: Likewise.
18731 * disk/loopback.c: Likewise.
18732 * font/font_cmd.c: Likewise.
18733 * hello/hello.c: Likewise.
18734 * loader/efi/appleloader.c: Likewise.
18735 * loader/efi/chainloader.c: Likewise.
18736 * loader/i386/bsd.c: Likewise.
18737 * loader/i386/efi/linux.c: Likewise.
18738 * loader/i386/ieee1275/linux.c: Likewise.
18739 * loader/i386/linux.c: Likewise.
18740 * loader/i386/pc/chainloader.c: Likewise.
18741 * loader/i386/pc/linux.c: Likewise.
18742 * loader/powerpc/ieee1275/linux.c: Likewise.
18743 * loader/multiboot_loader.c: Likewise.
18744 * term/gfxterm.c: Likewise.
18745 * term/i386/pc/serial.c: Likewise.
18746 * term/terminfo.c: Likewise.
18747
18748 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
18749 * term/i386/pc/vga.c: Likewise.
18750 * video/readers/jpeg.c: Likewise.
18751 * video/readers/png.c: Likewise.
18752 * video/readers/tga.c: Likewise.
18753
18754 * util/grub-fstest (cmd_loopback): Removed.
18755 (cmd_blocklist): Likewise.
18756 (cmd_ls): Likewise.
18757 (grub_register_command): Likewise.
18758 (grub_unregister_command): Likewise.
18759 (execute_command): Use grub_command_find to locate command and execute
18760 it.
18761
18762 * include/grub/efi/chainloader.h: Removed.
18763 * loader/efi/chainloader_normal.c: Likewise.
18764 * loader/i386/bsd_normal.c: Likewise.
18765 * loader/i386/pc/chainloader_normal.c: Likewise.
18766 * loader/i386/pc/multiboot_normal.c: Likewise.
18767 * loader/linux_normal.c: Likewise.
18768 * loader/multiboot_loader_normal.c: Likewise.
18769 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
18770
18771 * gencmdlist.sh: Scan new registration command grub_register_extcmd
18772 and grub_register_command_p1.
18773
18774 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
18775 kern/command.c, lib/arg.c and commands/extcmd.c.
18776 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
18777 (minicmd_mod_SOURCES): New variable.
18778 (minicmd_mod_CFLAGS): Likewise.
18779 (minicmd_mod_LDFLAGS): Likewise.
18780 (extcmd_mod_SOURCES): Likewise.
18781 (extcmd_mod_CFLAGS): Likewise.
18782 (extcmd_mod_LDFLAGS): Likewise.
18783 (boot_mod_SOURCES): Removed.
18784 (boot_mod_CFLAGS): Likewise.
18785 (boot_mod_LDFLAGS): Likewise.
18786
18787 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
18788 kern/corecmd.c.
18789 (kernel_img_HEADERS): Add command.h.
18790 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
18791 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
18792 and lib/arg.c.
18793 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
18794 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
18795 remove the corresponding normal mode command.
18796 (normal_mod_SOURCES): Remove normal/arg.c.
18797 * conf/i386-coreboot.rmk: Likewise.
18798 * conf/i386-efi.rmk: Likewise.
18799 * conf/i386-ieee1275.rmk: Likewise.
18800 * conf/powerpc-ieee1275.rmk: Likewise.
18801 * conf/x86_64-efi.rmk: Likewise.
18802
18803 * include/grub/arg.h: Move from here ...
18804 * include/grub/lib/arg.h: ... to here.
18805
18806 * normal/arg.c: Move from here ...
18807 * lib/arg.c: ... to here.
18808
18809 * commands/extcmd.c: New file.
18810 * commands/minicmd.c: Likewise.
18811 * include/grub/command.h: Likewise.
18812 * include/grub/extcmd.h: Likewise.
18813 * kern/command.c: Likewise.
18814 * kern/corecmd.c: Likewise.
18815
18816 * kern/list.c (grub_list_iterate): Return int instead of void.
18817 (grub_list_insert): New function.
18818 (grub_prio_list_insert): Likewise.
18819
18820 * kern/rescue.c (grub_rescue_command): Removed.
18821 (grub_rescue_command_list): Likewise.
18822 (grub_rescue_register_command): Likewise.
18823 (grub_rescue_unregister_command): Likewise.
18824 (grub_rescue_cmd_boot): Move to minicmd.c
18825 (grub_rescue_cmd_help): Likewise.
18826 (grub_rescue_cmd_info): Likewise.
18827 (grub_rescue_cmd_boot): Likewise.
18828 (grub_rescue_cmd_testload): Likewise.
18829 (grub_rescue_cmd_dump): Likewise.
18830 (grub_rescue_cmd_rmmod): Likewise.
18831 (grub_rescue_cmd_lsmod): Likewise.
18832 (grub_rescue_cmd_exit): Likewise.
18833 (grub_rescue_print_devices): Moved to corecmd.c.
18834 (grub_rescue_print_files): Likewise.
18835 (grub_rescue_cmd_ls): Likewise.
18836 (grub_rescue_cmd_insmod): Likewise.
18837 (grub_rescue_cmd_set): Likewise.
18838 (grub_rescue_cmd_unset): Likewise.
7d074e3c 18839 (attempt_normal_mode): Use grub_command_find to get normal module.
b1b797cb 18840 (grub_enter_rescue_mode): Use grub_register_core_commands to register
7d074e3c 18841 commands, remove grub_rescue_register_command calls.
b1b797cb 18842
7d074e3c 18843 * normal/command.c (grub_register_command): Removed.
b1b797cb 18844 (grub_unregister_command): Likewise.
18845 (grub_command_find): Likewise.
18846 (grub_iterate_commands): Likewise.
18847 (rescue_command): Likewise.
18848 (export_command): Moved to corecmd.c.
18849 (set_command): Removed.
18850 (unset_command): Likewise.
18851 (insmod_command): Likewise.
18852 (rmmod_command): Likewise.
18853 (lsmod_command): Likewise.
18854 (grub_command_init): Likewise.
18855
18856 * normal/completion.c (iterate_command): Use cmd->prio to check for
18857 active command.
18858 (complete_arguments): Use grub_extcmd_t structure to find options.
18859 (grub_normal_do_completion): Change function grub_iterate_commands to
18860 grub_command_iterate.
18861
18862 * normal/execute.c (grub_script_execute_cmd): No need to parse
18863 argument here.
18864
18865 * normal/main.c (grub_dyncmd_dispatcher): New function.
18866 (read_command_list): Register unload commands as dyncmd.
18867 (grub_cmd_normal): Use new command interface, register rescue,
18868 unregister normal at entry, register normal, unregister rescue at exit.
18869
18870 * include/grub/list.h (grub_list_test_t): New type.
18871 (grub_list_iterate): Return int instead of void.
18872 (grub_list_insert): New function.
18873 (GRUB_AS_NAMED_LIST_P): New macro.
18874 (GRUB_AS_PRIO_LIST): Likewise.
18875 (GRUB_AS_PRIO_LIST_P): Likewise.
18876 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
18877 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
18878 (grub_prio_list): New structure.
18879 (grub_prio_list_insert): New function.
18880 (grub_prio_list_remove): New inline function.
18881
18882 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
18883 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
18884 (GRUB_COMMAND_FLAG_MENU): Likewise.
18885 (GRUB_COMMAND_FLAG_BOTH): Likewise.
18886 (GRUB_COMMAND_FLAG_TITLE): Likewise.
18887 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
18888 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
18889 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
18890 (grub_command): Likewise.
18891 (grub_register_command): Likewise.
18892 (grub_command_find): Likewise.
18893 (grub_iterate_commands): Likewise.
18894 (grub_command_init): Likewise.
18895 (grub_arg_parse): Likewise.
18896 (grub_arg_show_help): Likewise.
18897
18898 * include/grub/rescue.h (grub_rescue_register_command): Removed.
18899 (grub_rescue_unregister_command): Likewise.
18900
18901 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
18902 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
18903 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
18904
18905 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
18906 grub_rescue_cmd_initrd.
18907 * include/grub/i386/loader.h: Likewise.
18908 * include/grub/x86_64/loader.h: Likewise.
18909
18910 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
18911
1f4147aa 189122009-03-21 Bean <bean123ch@gmail.com>
18913
18914 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
18915 instead of stat in mingw environment.
18916
18917 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
18918
18919 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
18920
18921 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
18922 AC_CONFIG_LINKS.
18923
2156d5ba 189242009-03-21 Bean <bean123ch@gmail.com>
18925
18926 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
18927 out of range error.
18928
177b82ca 189292009-03-18 Michel Dänzer <michel@daenzer.net>
18930
18931 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
18932 checking inode flags for EXT4_EXTENTS_FLAG.
18933
14aad807 189342009-03-18 Robert Millan <rmh@aybabtu.com>
18935
18936 * loader/i386/linux.c: Include `<grub/video.h>' and
18937 `<grub/i386/pc/vbe.h>'..
18938 (grub_linux_setup_video): New function. Loosely based on the EFI one.
18939 (grub_linux32_boot): Attempt to configure video settings with
18940 grub_linux_setup_video().
18941 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
18942 to avoid grub_console_fini() which would step out of graphical mode
18943 unconditionally.
18944
8cf83a27 189452009-03-14 Robert Millan <rmh@aybabtu.com>
18946
18947 Fix build on powerpc.
18948 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
18949
40164e75 189502009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
18951
18952 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
18953 background image command.
18954
c58bc32a 189552009-03-12 Colin D Bennett <colin@gibibit.com>
18956
18957 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
18958 (grub_gfxterm_putchar): Extract pairs of identical calls to
18959 draw_cursor out of conditional blocks.
18960
5415144a 189612009-03-11 Pavel Roskin <proski@gnu.org>
18962
18963 * fs/hfs.c (grub_hfs_strncasecmp): New function.
18964 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
18965
6394042e 189662009-03-11 Robert Millan <rmh@aybabtu.com>
18967
18968 * loader/i386/multiboot_elfxx.c
18969 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
18970
b7b50e5f 189712009-03-11 Felix Zielcke <fzielcke@z-51.de>
18972
18973 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
18974 `kern/handler.c'.
18975
1ca7fc96 189762009-03-11 Robert Millan <rmh@aybabtu.com>
18977
18978 * loader/i386/multiboot.c (code_size): New variable.
18979 (grub_multiboot): Define offsets by adding to `code_size' rather
7d074e3c 18980 than subtracting from `grub_multiboot_payload_size'. Provide
1ca7fc96 18981 4-byte alignment to MBI and others by increasing
7d074e3c 18982 `boot_loader_name_length' appropriately.
1ca7fc96 18983
18984 * loader/i386/multiboot_elfxx.c
18985 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
18986
a83ea1d2 189872009-03-09 Felix Zielcke <fzielcke@z-51.de>
18988
18989 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
18990 `fs/ext2.c'.
18991
aa9f3bff 189922009-03-08 Robert Millan <rmh@aybabtu.com>
18993
18994 Make loader/i386/linux.c usable on i386-pc again.
18995
18996 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
18997 memory to heap.
18998 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
18999 `#error' stanza.
19000
d8b3b60e 190012009-03-07 Bean <bean123ch@gmail.com>
19002
19003 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
19004 allocation.
19005
b362c9e9 190062009-03-06 Robert Millan <rmh@aybabtu.com>
19007
19008 Fix display issue on terminals with screen size other than 80x25
19009 (e.g. gfxterm with resolution higher than 640x480).
19010
19011 * normal/main.c (grub_normal_init_page): Display title text in a
7d074e3c 19012 position relative to the center of the terminal instead of relying
b362c9e9 19013 on a hardcoded offset.
19014
9304eef1 190152009-03-04 Robert Millan <rmh@aybabtu.com>
19016
19017 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
19018 installed.
19019
19020 * Makefile.in (host_kernel): New variable.
19021 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
19022 scripts instead of just the windows one.
19023 * configure.ac: Initialize and AC_SUBST `host_kernel'.
19024
eabc95fb 190252009-03-04 Felix Zielcke <fzielcke@z-51.de>
2ba60b62 19026
19027 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
19028 `kern/handler.c'.
19029 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19030 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19031 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19033 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19034 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19035
ceb1223c 190362009-03-04 Felix Zielcke <fzielcke@z-51.de>
19037
19038 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
19039 or if there's no space for the disk label and print the partition number on a
19040 invalid magic.
19041
4910684a 190422009-03-04 Felix Zielcke <fzielcke@z-51.de>
19043
19044 * util/misc.c: Include <time.h>.
19045 (grub_millisleep): New function.
19046
7e9ca17a 190472009-03-04 Bean <bean123ch@gmail.com>
19048
19049 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
19050 another option -mno-red-zone.
19051
19052 * commands/handler.c: Change module description.
19053
19054 * kern/handler.c: Add missing space at the end of description line.
19055
19056 * kern/list.c: Likewise.
19057
f501677c 190582009-03-03 Robert Millan <rmh@aybabtu.com>
19059
19060 Move more components to the relocation area, and fix mbi pointer
19061 handling to use the destination rather than the origin (thanks to
19062 Vladimir Serbinenko for spotting).
19063
19064 * loader/i386/multiboot.c (mbi_dest): New variable.
19065 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
19066 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
19067 relocation area.
19068
9902d047 190692009-03-01 Bean <bean123ch@gmail.com>
19070
50fb7002 19071 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
9902d047 19072 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
19073 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
19074 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
19075
19076 * loader/i386/efi/linux.c (acpi_guid): New variable.
19077 (acpi_guid): Likewise.
19078 (EBDA_SEG_ADDR): New constant.
19079 (LOW_MEM_ADDR): Likewise.
19080 (FAKE_EBDA_SEG): Likewise.
19081 (fake_bios_data): New function.
19082 (grub_linux_boot): Call fake_bios_data.
19083
71b9f361 190842009-03-01 Bean <bean123ch@gmail.com>
19085
19086 * commands/terminal.c: Removed.
19087
19088 * commands/handler.c: New file.
19089
19090 * include/grub/list.h: Likewise.
19091
19092 * include/grub/handler.h: Likewise.
19093
19094 * kern/list.c: Likewise.
19095
19096 * kern/handler.c: Likewise.
19097
19098 * kern/term.h: Include header file <grub/handler.h>.
19099 (grub_term_input): Move next field to the beginning.
19100 (grub_term_output): Likewise.
19101 (grub_term_input_class): New variable.
19102 (grub_term_output_class): Likewise.
19103 (grub_term_register_input): Changed to inline function.
19104 (grub_term_register_output): Likewise.
19105 (grub_term_unregister_input): Likewise.
19106 (grub_term_unregister_output): Likewise.
19107 (grub_term_set_current_input): Likewise.
19108 (grub_term_set_current_output): Likewise.
19109 (grub_term_get_current_input): Likewise.
19110 (grub_term_get_current_output): Likewise.
19111 (grub_term_iterate_input): Removed.
19112 (grub_term_iterate_output): Likewise.
19113
19114 * kern/term.c (grub_term_list_input): Removed.
19115 (grub_term_list_output): Likewise.
19116 (grub_term_input_class): New variable.
19117 (grub_term_output_class): Likewise.
50fb7002 19118 (grub_cur_term_input): Change variable as macro.
71b9f361 19119 (grub_cur_term_output): Likewise.
19120 (grub_term_register_input): Removed.
19121 (grub_term_register_output): Likewise.
19122 (grub_term_unregister_input): Likewise.
19123 (grub_term_unregister_output): Likewise.
19124 (grub_term_set_current_input): Likewise.
19125 (grub_term_set_current_output): Likewise.
19126 (grub_term_iterate_input): Likewise.
19127 (grub_term_iterate_output): Likewise.
19128 (grub_term_get_current_input): Likewise.
19129 (grub_term_get_current_output): Likewise.
19130
19131 * util/grub-editenv.c: Include header file <grub/handler.h>.
19132 (grub_term_get_current_input): Removed.
19133 (grub_term_get_current_output): Likewise.
19134 (grub_term_input_class): New variable.
50fb7002 19135 (grub_term_output_class): Likewise.
71b9f361 19136
19137 * util/grub-fstest.c (grub_term_get_current_input): Removed.
19138 (grub_term_get_current_output): Likewise.
19139 (grub_term_input_class): New variable.
50fb7002 19140 (grub_term_output_class): Likewise.
71b9f361 19141
19142 * util/grub-probe.c (grub_term_get_current_input): Removed.
19143 (grub_term_get_current_output): Likewise.
19144 (grub_term_input_class): New variable.
50fb7002 19145 (grub_term_output_class): Likewise.
71b9f361 19146
19147 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
19148 (grub_term_get_current_output): Likewise.
19149 (grub_term_input_class): New variable.
50fb7002 19150 (grub_term_output_class): Likewise.
71b9f361 19151
19152 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
19153 (terminal_mod_SOURCES): Likewise.
19154 (terminal_mod_CFLAGS): Likewise.
19155 (terminal_mod_LDFLAGS): Likewise.
19156
19157 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
19158 handler.c.
19159 (kernel_img_SOURCES): Add list.c and handler.c.
19160 (kernel_img_HEADERS): Add list.h and handler.h.
19161
19162 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
19163 handler.c.
19164 (kernel_mod_SOURCES): Add list.c and handler.c.
19165 (kernel_mod_HEADERS): Add list.h and handler.h.
19166
19167 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
19168 handler.c.
19169 (kernel_elf_SOURCES): Add list.c and handler.c.
19170 (kernel_elf_HEADERS): Add list.h and handler.h.
19171
19172 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
19173 handler.c.
19174 (kernel_elf_SOURCES): Add list.c and handler.c.
19175 (kernel_elf_HEADERS): Add list.h and handler.h.
19176
19177 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
19178 handler.c.
19179 (kernel_mod_SOURCES): Add list.c and handler.c.
19180 (kernel_mod_HEADERS): Add list.h and handler.h.
19181
19182 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
19183 handler.c.
19184 (kernel_elf_SOURCES): Add list.c and handler.c.
19185 (kernel_elf_HEADERS): Add list.h and handler.h.
19186
8a31787f 191872009-02-27 Robert Millan <rmh@aybabtu.com>
19188
19189 Factorize elf32 / elf64 code in Multiboot loader. This will
19190 prevent it from getting out of sync again.
19191
19192 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
19193 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
19194 grub_multiboot_load_elf64): Move from here ...
19195 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
19196 grub_multiboot_load_elf): ... to here (new file).
19197
51cd3dfc 191982009-02-27 Robert Millan <rmh@aybabtu.com>
19199
19200 * util/grub.d/10_linux.in: Rename "single-user mode" to
19201 "recovery mode".
19202
6e8c9c3a 192032009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
19204
19205 Don't leak in SCSI code.
19206 * disk/scsi.c (grub_scsi_close): free `scsi'.
19207
4b6bf4f9 192082009-02-27 Robert Millan <rmh@aybabtu.com>
19209
19210 * loader/i386/pc/multiboot.c: Move from here ...
19211 * loader/i386/multiboot.c: ... to here. Update all users.
19212
b9413424 192132009-02-27 Robert Millan <rmh@aybabtu.com>
19214
19215 Patch from Alexandre Bique <bique.alexandre@gmail.com>
19216 * util/i386/pc/grub-setup.c (setup): Fix directory path.
19217
50fb7002 192182009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
34519c3f 19219
19220 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
19221 b-tree.
19222
8cc50345 192232009-02-27 Robert Millan <rmh@aybabtu.com>
19224
19225 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
19226 `0x' qualifier as 0 when base is specified as parameter).
19227
6e09b8b7 192282009-02-24 Bean <bean123ch@gmail.com>
19229
19230 * configure.ac: Check for -mcmodel=large in x86_64 target.
19231
19232 * include/grub/efi/api.h (efi_call_10): New macro.
19233 (efi_wrap_10): New function.
19234
19235 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
19236 (GRUB_PE32_REL_BASED_HIGH): Likewise.
19237 (GRUB_PE32_REL_BASED_LOW): Likewise.
19238 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
19239 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
19240 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
19241 (GRUB_PE32_REL_BASED_SECTION): Likewise.
19242 (GRUB_PE32_REL_BASED_REL): Likewise.
19243 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
19244 (GRUB_PE32_REL_BASED_DIR64): Likewise.
19245 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
19246
19247 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
19248 issue.
19249
19250 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
19251 (efi_wrap_10): New function.
19252
19253 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
19254
19255 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
19256 MB/MBP model (NV chipset).
19257 (devdata_devs): Add devpath_5 to the list.
19258
19259 * load/i386/efi/linux.c (video_base): Remove variable.
19260 (RGB_MASK): New macro.
19261 (RGB_MAGIC): Likewise.
19262 (LINE_MIN): Likewise.
19263 (LINE_MAX): Likewise.
19264 (FBTEST_STEP): Likewise.
19265 (FBTEST_COUNT): Likewise.
19266 (fb_list): New variable.
19267 (grub_find_video_card): Remove function.
19268 (find_framebuf): New function.
19269 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
19270 line length.
19271
19272 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
19273 problem for x86_64.
19274
74b21bee 192752009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
19276
19277 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
19278
19279 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
19280 coding tool name.
19281
a455f472 192822009-02-22 Robert Millan <rmh@aybabtu.com>
19283
19284 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
19285 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
19286 in our relocation, instead of using it directly from heap. Also
19287 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
19288
6374daf3 192892009-02-21 Robert Millan <rmh@aybabtu.com>
19290
19291 Implement USB keyboard support (based on patch by Marco Gerards)
19292
19293 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
19294 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
19295 (usb_keyboard_mod_LDFLAGS): New variables.
19296
19297 * term/usb_keyboard.c: New file.
19298
8fa4ea70 192992009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
19300
19301 Corrected wrong declaration
19302
19303 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
19304
353976ac 193052009-02-14 Christian Franke <franke@computer.org>
19306
19307 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
19308 (grub_lspci_iter): Print class code and programming interface byte.
19309
6aa1169b 193102009-02-14 Christian Franke <franke@computer.org>
19311
19312 * gendistlist.sh: Ignore `.svn' directories.
19313
265372ca 193142009-02-14 Felix Zielcke <fzielcke@z-51.de>
19315
19316 * fs/fat.c: Add 2009 to Copyright line.
19317
9ff516f3 193182009-02-14 Christian Franke <franke@computer.org>
19319
19320 * commands/hdparm.c: New file. Provides `hdparm' command
19321 which sends ATA commands via grub_disk_ata_pass_through ().
19322
19323 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
19324
19325 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
19326 and <grub/cpu/io.h> to include/grub/ata.h.
19327 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
19328 (GRUB_CDROM_SECTOR_SIZE): Remove.
19329 (GRUB_ATA_*): Move to include/grub/ata.h.
19330 (GRUB_ATAPI_*): Likewise.
19331 (enum grub_ata_commands): Likewise.
19332 (enum grub_ata_timeout_milliseconds): Likewise.
19333 (struct grub_ata_device): Likewise.
19334 (grub_ata_regset): Likewise.
19335 (grub_ata_regget): Likewise.
19336 (grub_ata_regset2): Likewise.
19337 (grub_ata_regget2): Likewise.
19338 (grub_ata_check_ready): Likewise.
19339 (grub_ata_wait_not_busy): Remove static, exported in
19340 include/grub/ata.h.
19341 (grub_ata_wait_drq): Likewise.
19342 (grub_ata_pio_read): Likewise.
19343
19344 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
19345 function for hdparm.mod.
19346
19347 * include/grub/ata.h: New file, contains declarations from
19348 disk/ata.c.
19349 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
19350
19351 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
19352 (grub_disk_ata_pass_through): New exported variable.
19353
19354 * kern/disk.c (grub_disk_ata_pass_through): New variable.
19355
772e23da 193562009-02-13 Colin D Bennett <colin@gibibit.com>
19357
19358 Support multiple fallback entries, and provide an API to support
19359 executing default+fallback menu entries. Renamed the `terminal' menu
19360 viewer to `text'.
19361
19362 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
19363 variable declaration.
19364 (grub_menu_execute_callback): New structure declaration.
19365 (grub_menu_execute_callback_t): New typedef.
19366 (grub_menu_execute_with_fallback): New function declaration.
19367 (grub_menu_get_entry): Likewise.
19368 (grub_menu_get_timeout): Likewise.
19369 (grub_menu_set_timeout): Likewise.
19370
19371 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
19372
19373 * normal/menu.c (grub_wait_after_message): Moved to
19374 `normal/menu_text.c'.
19375 (draw_border): Likewise.
19376 (print_message): Likewise.
19377 (print_entry): Likewise.
19378 (print_entries): Likewise.
19379 (grub_menu_init_page): Likewise.
19380 (get_entry_number): Likewise.
19381 (print_timeout): Likewise.
19382 (run_menu): Likewise.
19383 (grub_menu_execute_entry): Likewise.
19384 (show_text_menu): Likewise.
19385 (get_and_remove_first_entry_number): New function.
19386 (grub_menu_execute_with_fallback): Likewise.
19387 (get_entry): Renamed to ...
19388 (grub_menu_get_entry): .. this and made it global.
19389 (get_timeout): Renamed to ...
19390 (grub_menu_get_timeout): ... this and made it global.
19391 (set_timeout): Renamed to ...
19392 (grub_menu_set_timeout): ... this and made it global.
19393 (grub_normal_terminal_menu_viewer): Renamed to ...
19394 (grub_normal_text_menu_viewer): ... this.
19395
19396 * normal/menu_text.c: New file. Extracted text-menu-specific code
19397 from normal/menu.c.
19398
19399 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
19400 (normal_mod_SOURCES): Likewise.
19401
19402 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19403 (normal_mod_SOURCES): Likewise.
19404
19405 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19406 (normal_mod_SOURCES): Likewise.
19407
19408 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
19409 (normal_mod_SOURCES): Likewise.
19410
19411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19412 (normal_mod_SOURCES): Likewise.
19413
19414 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19415 (normal_mod_SOURCES): Likewise.
19416
19417 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19418 (normal_mod_SOURCES): Likewise.
19419
16ac430e 194202009-02-11 Robert Millan <rmh@aybabtu.com>
19421
19422 * util/grub.d/00_header.in: Update old reference to `font' command.
19423
06ff20fc 194242009-02-10 Felix Zielcke <fzielcke@z-51.de>
19425
19426 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
19427
19428 Based on patch from Javier Martín.
19429
96da9407 194302009-02-09 Felix Zielcke <fzielcke@z-51.de>
19431
19432 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
50fb7002 19433 to avoid false positives with FAT.
96da9407 19434 (grub_fstest_SOURCES): Likewise.
19435 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
19436 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19438 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19439 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19440 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19441
6dca6fe4 194422009-02-09 Felix Zielcke <fzielcke@z-51.de>
19443
06ff20fc 19444 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
6dca6fe4 19445 bpb.version_specific.fat12_or_fat16.fstype and
19446 bpb.version_specific.fat32.fstype.
19447
2550c62f 194482009-02-08 Robert Millan <rmh@aybabtu.com>
19449
be110b30 19450 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
2550c62f 19451
56978920 194522009-02-08 Robert Millan <rmh@aybabtu.com>
19453
19454 * Makefile.in (host_os, host_cpu): New variables.
19455 (target_os): Remove. Update all users.
19456
d64399b5 194572009-02-08 Marco Gerards <marco@gnu.org>
19458
19459 * Makefile.in (enable_grub_emu_usb): New variable.
19460 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
19461 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
19462 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
19463 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
19464 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
19465 `usbtest.mod' and `usbms.mod'.
19466 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
19467 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
19468 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
19469 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
19470 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
19471 variables.
19472
19473 * disk/usbms.c: New file.
19474
19475 * include/grub/usb.h: Likewise.
19476
19477 * include/grub/usbtrans.h: Likewise.
19478
19479 * include/grub/usbdesc.h: Likewise.
19480
19481 * bus/usb/usbtrans.c: Likewise.
19482
19483 * bus/usb/ohci.c: Likewise.
19484
19485 * bus/usb/uhci.c: Likewise.
19486
19487 * bus/usb/usbhub.c: Likewise.
19488
19489 * bus/usb/usb.c: Likewise.
19490
19491 * commands/usbtest.c: Likewise.
19492
19493 * util/usb.c: Likewise.
50fb7002 19494
d64399b5 19495 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
19496
19497 * configure.ac: Test for libusb presence.
50fb7002 19498
d64399b5 19499 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
19500
2b40d6bb 195012009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
19502
19503 * kern/mm.c: Add more comments.
19504
73a4ce81 195052009-02-08 Robert Millan <rmh@aybabtu.com>
19506
19507 Patch from Javier Martín.
19508 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
19509 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
19510
f821ce59 195112009-02-08 Robert Millan <rmh@aybabtu.com>
19512
19513 * fs/cpio.c: Split tar functionality to ...
19514 * fs/tar.c: ... here (new file). Update all users.
19515
aebfc4b0 195162009-02-07 Robert Millan <rmh@aybabtu.com>
19517
19518 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
19519 backward-incompatible features.
19520
19521 Based on patch from Javier Martín, with some adjustments.
19522
50fb7002 195232009-02-07 Michael Scherer <misc@mandriva.org>
cea15bca 19524
19525 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
19526
0bb5115e 195272009-02-07 Robert Millan <rmh@aybabtu.com>
19528
19529 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
19530 position of `disk/lvm.c' to ensure grub_init_all() always picks it
19531 after the RAID stuff.
19532
38a0f8e7 195332009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
19534
50fb7002 19535 Fixes problem when running vbetest command as reported by
38a0f8e7 19536 Vladimir Serbinenko <phcoder@gmail.com>.
19537
19538 * (grub_vbe_set_video_mode): Fixed problem with text modes.
19539
3143cc1c 195402009-02-04 Felix Zielcke <fzielcke@z-51.de>
19541
19542 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
19543 /dev/md/NpN style mdraid devices.
19544
9cba6fce 195452009-02-03 Felix Zielcke <fzielcke@z-51.de>
19546
19547 * util/unifont2pff.rb: Remove.
19548
e507a2c1 195492009-02-03 Felix Zielcke <fzielcke@z-51.de>
19550
19551 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
19552 `#'.
19553
d2c2b4cd 195542009-02-03 Felix Zielcke <fzielcke@z-51.de>
19555
19556 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
19557 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
19558 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
19559 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
19560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19561 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19562 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
19563
b4315fb0 195642009-02-02 Christian Franke <franke@computer.org>
19565
19566 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
19567
de3aa260 195682009-02-01 Felix Zielcke <fzielcke@z-51.de>
19569
7c3ff286 19570 * INSTALL: Note that we now require at least autoconf 2.59 and
19571 that LZO is optional.
de3aa260 19572
825a182b 195732009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19574
19575 Base on patch on bug #24154 created by Tomas Tintera
19576 <trosos@seznam.cz>.
19577
19578 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
19579
a69ef770 195802009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
19581
7c3ff286 19582 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
a69ef770 19583 <bero@arklinux.org>.
19584
19585 * normal/parser.y (script_init): Add missing semicolon.
19586
6fa42fa6 195872009-01-31 Colin D Bennett <colin@gibibit.com>
19588
7c3ff286 19589 * normal/main.c: Add include to grub/menu_viewer.h.
6fa42fa6 19590 (free_menu_entry_classes): Added.
19591 (grub_normal_menu_addentry): Added class property handling.
19592 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
19593 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
19594
19595 * normal/menu_viewer.c: New file.
19596
19597 * normal/menu.c (run_menu_entry): Renamed to ...
19598 (grub_menu_execute_entry): ... this and made it as global.
19599 (grub_menu_run): Renamed to ...
19600 (show_text_menu): ... this and made it local.
19601 (show_text_menu): Adapt to new function names.
19602 (grub_normal_terminal_menu_viewer): New global variable.
19603
19604 * include/grub/menu.h: New file.
19605
19606 * include/grub/menu_viewer.h: New file.
19607
19608 * include/grub/normal.h: Added include to grub/menu.h.
19609 (grub_menu_entry): Moved to include/grub/menu.h.
19610 (grub_menu_entry_t): Likewise.
19611 (grub_menu): Likewise.
19612 (grub_menu_t): Likewise.
19613 (grub_normal_terminal_menu_viewer): Added.
19614 (grub_menu_execute_entry): Likewise.
19615 (grub_menu_run): Removed.
19616
19617 * DISTLIST: Added include/grub/menu.h.
19618 Added include/grub/menu_viewer.h.
19619 Added normal/menu_viewer.c.
19620
196212009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
19622
19623 * normal/execute.c (grub_script_execute_menuentry): Changed to use
19624 arglist for menutitle arguments.
19625
19626 * normal/main.c (grub_normal_menu_addentry): Likewise.
19627
19628 * normal/parser.y (menuentry): Likewise.
19629
19630 * normal/script.c (grub_script_create_cmdmenu): Likewise.
19631
19632 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
19633 (grub_script_create_cmdmenu): Likewise.
19634
19635 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
19636
19637 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
19638 changes.
19639
19640 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
19641
19642 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
19643
19644 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
19645
19646 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19647
19648 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19649
19650 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
19651
56192c23 196522009-01-30 Christian Franke <franke@computer.org>
19653
19654 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
19655 in option help text.
19656
d72521b3 196572009-01-27 Pavel Roskin <proski@gnu.org>
19658
19659 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
19660
994b5e84 196612009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19662
19663 * commands/lsmmap.c: Add include to grub/machine/memory.h.
19664
19665 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
19666
19667 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
19668 unregister function.
19669
6a7eab2c 196702009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
19671
19672 * disk/scsi.c (grub_scsi_read): Fix sign problem.
19673
19674 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
19675
19676 * util/grub-mkfont.c (usage): Fix typo.
19677
19678 * util/elf/grub-mkimage.c (load_modules): Fix warning.
19679
1806b56e 196802009-01-26 Daniel Mierswa <impulze@impulze.org>
19681
3fb18f09 19682 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
19683
336e1fb9 19684 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
19685
1806b56e 19686 * kern/misc.c (grub_strcasecmp): New function.
19687 (grub_strcasecmp): Use grub_size_t instead of int for length.
19688 Fix return value.
19689 * include/grub/misc.h: Update function prototypes.
19690
580b2a0f 196912009-01-26 Robert Millan <rmh@aybabtu.com>
19692
19693 * configure.ac: Fix cross-compilation check.
ef257b36 19694
d31c24f1 196952009-01-22 Christian Franke <franke@computer.org>
19696
19697 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
19698 (precision) digit string. Allow `.format2' without `format1' (width).
19699 Limit input chars for `%s' output to `format2' if specified. This is
19700 compatible with standard printf ().
19701
3138b44c 197022009-01-22 Christian Franke <franke@computer.org>
19703
19704 * disk/ata.c (grub_ata_wait_status): Replace by ...
19705 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
19706 other status bits may be invalid while BSY is asserted.
19707 (grub_ata_check_ready): New function.
19708 (grub_ata_cmd): Removed.
19709 (grub_ata_wait_drq): New function.
19710 (grub_ata_strncpy): Remove inline.
19711 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
19712 and error check now done by grub_ata_wait_drq ().
19713 (grub_ata_pio_write): Likewise.
19714 (grub_atapi_identify): Set DEV before check for !BSY. Use
19715 grub_ata_wait_drq () to wait for data.
19716 (grub_ata_device_initialize): Add status register check to
19717 detect missing SATA slave devices. Add debug messages.
19718 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
19719 (grub_atapi_packet): Set DEV before check for !BSY. Replace
19720 transfer loop by grub_ata_pio_write ().
19721 (grub_ata_identify): Set DEV before check for !BSY. Use
19722 grub_ata_wait_drq () to wait for data.
ef257b36 19723 (grub_ata_setaddress): Set DEV before check for !BSY.
3138b44c 19724 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
19725 read/write in one loop. Fix invalid command on write. Fix incomplete
19726 command on (size % batch) == 0. Add missing error check after write of
19727 last block. Add debug messages.
19728 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
19729
59a64ef6 197302009-01-19 Christian Franke <franke@computer.org>
19731
19732 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
19733 (GRUB_ATAPI_IREASON_*): Likewise.
19734 (grub_ata_pio_write): Fix timeout error return.
19735 (grub_atapi_identify): Add grub_ata_wait () after cmd.
19736 (grub_atapi_wait_drq): New function.
19737 (grub_atapi_packet): New parameter `size'.
19738 Use grub_atapi_wait_drq () and direct write instead of
19739 grub_ata_pio_write ().
19740 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
19741 reads the number of bytes requested by the device for each DRQ
19742 assertion.
19743 (grub_atapi_write): Remove old implementation, return not
19744 implemented instead.
19745
1cfe20b3 197462009-01-19 Christian Franke <franke@computer.org>
19747
19748 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
19749 of 512 to calculate data size.
19750 (grub_scsi_read12): Likewise.
19751 (grub_scsi_write10): Likewise.
19752 (grub_scsi_write12): Likewise.
19753 (grub_scsi_read): Adjust size according to blocksize.
19754 Add checks for invalid blocksize and unaligned transfer.
19755
bee5fe5d 197562009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
19757
19758 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
19759
ef257b36 19760 * term/gfxterm.c (write_char): Fix background rendering for wide
bee5fe5d 19761 width glyphs.
19762
3e643f8c 197632009-01-19 Robert Millan <rmh@aybabtu.com>
19764
19765 * config.guess: Update to latest version from config git.
19766 * config.sub: Likewise.
19767
4fa80998 197682009-01-17 Felix Zielcke <fzielcke@z-51.de>
19769
19770 * Makefile.in: Change font compilation to use new grub-mkfont instead
19771 of java version.
19772
19773 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
19774 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
19775 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19776 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
19777 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
19778 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
19779 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
19780 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
19781 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
19782
7086085b 197832009-01-16 Christian Franke <franke@computer.org>
19784
19785 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
19786 (enum grub_ata_timeout_milliseconds): New enum.
19787 (grub_ata_wait_status): Add parameter milliseconds.
19788 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
19789 recovery from timed-out commands.
19790 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
19791 return grub_errno instead of REG_ERROR.
19792 (grub_ata_pio_write): Add parameter milliseconds.
19793 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
19794 Pass milliseconds to grub_ata_wait_status () and
19795 grub_ata_pio_read ().
19796 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
19797 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
19798 grub_ata_wait_status (). Fix IDENTIFY timeout check.
19799 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
19800 It is not suitable for device detection, because DEV bit is ignored,
19801 the command may run too long, and not all devices set the signature
19802 properly.
19803 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
19804 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
19805 Fix device selection, DEV bit must be set first to address the registers
19806 of the correct device.
19807 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
19808 grub_ata_pio_read/write ().
19809 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
19810 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
19811
4a412913 198122009-01-13 Carles Pina i Estany <carles@pina.cat>
19813
19814 * util/grub-editenv.c (main): Use fseeko(), not fseek().
19815
7795c55e 198162009-01-13 Bean <bean123ch@gmail.com>
d913988c 19817
19818 * util/grub-mkfont.c (write_font): forget to remove some debug code.
19819
7795c55e 198202009-01-13 Bean <bean123ch@gmail.com>
e52db1f7 19821
19822 * Makefile.in: (enable_grub_mkfont): New variable.
19823 (freetype_cflags): Likewise.
19824 (freetype_libs): Likewise.
19825
19826 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
19827 (grub_mkfont_SOURCES): New variable.
19828 (grub_mkfont_CFLAGS): Likewise.
19829 (grub_mkfont_LDFLAGS): Likewise.
19830
19831 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
19832 library if `--enable-grub-mkfont' is requested.
19833 (enable_grub_mkfont): New variable.
19834 (freetype_cflags): Likewise.
19835 (freetype_libs): Likewise.
19836
19837 * util/grub-mkfont.c: New file.
19838
093af1fe 198392009-01-12 Christian Franke <franke@computer.org>
19840
19841 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
19842 mode check. Fix setting of compat_use[].
19843
f36cc108 198442009-01-10 Robert Millan <rmh@aybabtu.com>
19845
19846 Update a few copyright years which we forgot to do in 2008 (only for
19847 files whose changes made in 2008 were copyright-significant)
19848
19849 * Makefile.in: Add 2008 to Copyright line.
19850 * disk/ieee1275/ofdisk.c: Likewise.
19851 * disk/efi/efidisk.c: Likewise.
19852 * kern/dl.c: Likewise.
19853 * kern/sparc64/ieee1275/init.c: Likewise.
19854 * kern/mm.c: Likewise.
19855 * kern/efi/mm.c: Likewise.
19856 * boot/i386/pc/boot.S: Likewise.
19857 * genfslist.sh: Likewise.
19858 * fs/iso9660.c: Likewise.
19859 * fs/hfs.c: Likewise.
19860 * fs/jfs.c: Likewise.
19861 * fs/minix.c: Likewise.
19862 * fs/ufs.c: Likewise.
19863 * gensymlist.sh.in: Likewise.
19864 * genkernsyms.sh.in: Likewise.
19865 * include/grub/misc.h: Likewise.
19866 * include/grub/types.h: Likewise.
19867 * include/grub/symbol.h: Likewise.
19868 * include/grub/elf.h: Likewise.
19869 * include/grub/kernel.h: Likewise.
19870 * include/grub/disk.h: Likewise.
19871 * include/grub/dl.h: Likewise.
19872 * include/grub/i386/linux.h: Likewise.
19873 * include/grub/i386/pc/biosdisk.h: Likewise.
19874 * include/grub/efi/api.h: Likewise.
19875 * include/grub/efi/pe32.h: Likewise.
19876 * include/grub/util/misc.h: Likewise.
19877 * normal/execute.c: Likewise.
19878 * normal/arg.c: Likewise.
19879 * normal/completion.c: Likewise.
19880 * normal/lexer.c: Likewise.
19881 * normal/parser.y: Likewise.
19882 * normal/misc.c: Likewise.
19883 * commands/i386/pc/vbeinfo.c: Likewise.
19884 * commands/hexdump.c: Likewise.
19885 * commands/terminal.c: Likewise.
19886 * commands/ls.c: Likewise.
19887 * commands/help.c: Likewise.
19888 * partmap/pc.c: Likewise.
19889 * loader/efi/chainloader.c: Likewise.
19890 * loader/multiboot_loader.c: Likewise.
19891 * loader/i386/pc/multiboot2.c: Likewise.
19892 * term/efi/console.c: Likewise.
19893 * term/i386/pc/serial.c: Likewise.
19894 * util/lvm.c: Likewise.
19895 * util/console.c: Likewise.
19896 * util/i386/efi/grub-mkimage.c: Likewise.
19897 * util/raid.c: Likewise.
19898
7f02114b 198992009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
19900
19901 * commands/videotest.c: Removed include to grub/machine/memory.h.
19902
19903 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
19904 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
19905 (video_mod_SOURCES): Removed.
19906 (video_mod_CFLAGS): Likewise.
19907 (video_mod_LDFLAGS): Likewise.
19908 (gfxterm_mod_SOURCES): Likewise.
19909 (gfxterm_mod_CFLAGS): Likewise.
19910 (gfxterm_mod_LDFLAGS): Likewise.
19911 (videotest_mod_SOURCES): Likewise.
19912 (videotest_mod_CFLAGS): Likewise.
19913 (videotest_mod_LDFLAGS): Likewise.
19914 (bitmap_mod_SOURCES): Likewise.
19915 (bitmap_mod_CFLAGS): Likewise.
19916 (bitmap_mod_LDFLAGS): Likewise.
19917 (tga_mod_SOURCES): Likewise.
19918 (tga_mod_CFLAGS): Likewise.
19919 (tga_mod_LDFLAGS): Likewise.
19920 (jpeg_mod_SOURCES): Likewise.
19921 (jpeg_mod_CFLAGS): Likewise.
19922 (jpeg_mod_LDFLAGS): Likewise.
19923 (png_mod_SOURCES): Likewise.
19924 (png_mod_CFLAGS): Likewise.
19925 (png_mod_LDFLAGS): Likewise.
19926
19927 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
19928 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
19929 (video_mod_SOURCES): Added.
19930 (video_mod_CFLAGS): Likewise.
19931 (video_mod_LDFLAGS): Likewise.
19932 (videotest_mod_SOURCES): Likewise.
19933 (videotest_mod_CFLAGS): Likewise.
19934 (videotest_mod_LDFLAGS): Likewise.
19935 (bitmap_mod_SOURCES): Likewise.
19936 (bitmap_mod_CFLAGS): Likewise.
19937 (bitmap_mod_LDFLAGS): Likewise.
19938 (tga_mod_SOURCES): Likewise.
19939 (tga_mod_CFLAGS): Likewise.
19940 (tga_mod_LDFLAGS): Likewise.
19941 (jpeg_mod_SOURCES): Likewise.
19942 (jpeg_mod_CFLAGS): Likewise.
19943 (jpeg_mod_LDFLAGS): Likewise.
19944 (png_mod_SOURCES): Likewise.
19945 (png_mod_CFLAGS): Likewise.
19946 (png_mod_LDFLAGS): Likewise.
19947 (gfxterm_mod_SOURCES): Likewise.
19948 (gfxterm_mod_CFLAGS): Likewise.
7795c55e 19949 (gfxterm_mod_LDFLAGS): Likewise.
7f02114b 19950
19951 * term/gfxterm.c: Removed include to grub/machine/memory.h,
19952 grub/machine/console.h.
19953
644fff97 199542009-01-04 Jerone Young <jerone@gmail.com>
19955
19956 Make on screen instructions clearer
19957
19958 Based on patch created by Jidanni <jidanni@jidanni.org>
19959
19960 * normal/menu.c: print clearer instructions on the screen
19961
1e901a75 199622009-01-02 Colin D Bennett <colin@gibibit.com>
19963
19964 New font engine.
34c44600 19965
1e901a75 19966 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
19967 build system and fixed gfxterm.c to work with different sized fonts.
19968
19969 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34c44600 19970
1e901a75 19971 * configure: Re-generated.
34c44600 19972
1e901a75 19973 * DISTLIST: Removed font/manager.c.
19974 Added font/font.c.
19975 Added font/font_cmd.c.
34c44600 19976
1e901a75 19977 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
19978 compilation.
34c44600 19979
1e901a75 19980 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34c44600 19981
19982 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
1e901a75 19983
19984 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34c44600 19985
1e901a75 19986 * normal/menu.c: Likewise.
34c44600 19987
1e901a75 19988 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
19989 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34c44600 19990
1e901a75 19991 * include/grub/font.h: Replaced with new file.
34c44600 19992
1e901a75 19993 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
19994 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
19995 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
19996 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
19997 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34c44600 19998 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
1e901a75 19999 fg_red, fg_green, fg_blue, fg_alpha.
20000 (grub_video_adapter): Removed blit_glyph.
34c44600 20001 (grub_video_blit_glyph): Removed.
20002
1e901a75 20003 * font/manager.c: Removed file.
34c44600 20004
20005 * font/font.c: New file.
20006
1e901a75 20007 * font/font_cmd.c: Likewise.
34c44600 20008
1e901a75 20009 * video/video.c (grub_video_blit_glyph): Removed.
34c44600 20010
1e901a75 20011 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
20012 (grub_video_vbe_map_rgba): Likewise.
20013 (grub_video_vbe_unmap_color_int): Likewise.
20014 (grub_video_vbe_blit_glyph): Removed.
20015 (grub_video_vbe_adapter): Removed blit_glyph.
34c44600 20016
1e901a75 20017 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
20018 (get_pixel): Likewise.
34c44600 20019 (set_pixel): Likewise.
20020
1e901a75 20021 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34c44600 20022
1e901a75 20023 * term/gfxterm.c: Adapted to new font engine.
34c44600 20024
1e901a75 20025 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34c44600 20026
1e901a75 20027 * term/i386/pc/vga.c: Likewise.
34c44600 20028
1e901a75 20029 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34c44600 20030
1e901a75 20031 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34c44600 20032
1e901a75 20033 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 20034
1e901a75 20035 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34c44600 20036
1e901a75 20037 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34c44600 20038
1e901a75 20039 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34c44600 20040
1e901a75 20041 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34c44600 20042
1e901a75 20043 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34c44600 20044
1e901a75 20045 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
20046
20047 * util/grub.d/00_header.in: Changed to use new loadfont command.
34c44600 20048
1e901a75 20049 * util/grub-mkconfig_lib.in: Changed font extension.
20050
278922e8 200512008-12-28 Felix Zielcke <fzielcke@z-51.de>
20052
20053 * util/getroot.c (grub_util_get_grub_dev): Add support for
20054 /dev/md/dNNpNN style partitionable mdraid devices.
20055
3ced05cf 200562008-12-12 Alex Smith <alex@alex-smith.me.uk>
20057
20058 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
20059 at a time limit of the PXE TFTP API correctly.
20060 (grub_pxefs_close): Likewise.
20061
7fd0ee30 200622008-11-29 Robert Millan <rmh@aybabtu.com>
20063
34c44600 20064 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
7fd0ee30 20065 grub_ata_device_initialize() calls.
20066
34c44600 200672008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
0c5e79ab 20068
20069 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
20070 iteration failed.
20071 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
20072
89313780 200732008-11-28 Robert Millan <rmh@aybabtu.com>
20074
20075 Fix build on powerpc-ieee1275. Based on patch created by
20076 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
20077 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20078 `kern/ieee1275/mmap.c'.
20079 * include/grub/powerpc/ieee1275/memory.h: New file.
20080
15257703 20081 Provide grub-install on coreboot.
20082 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
20083 (grub_install_SOURCES): New variable.
20084 * util/i386/pc/grub-install.in: Add a few condition checks to make it
20085 usable on coreboot.
20086
9fc5388a 200872008-11-25 Felix Zielcke <fzielcke@z-51.de>
20088
20089 * util/grub-fstest.c (grub_term_get_current_input): Change return type
20090 to `grub_term_input_t'.
20091 (grub_term_get_current_output): Change return type to
20092 `grub_term_output_t'.
20093
bc3a2f31 200942008-11-22 Robert Millan <rmh@aybabtu.com>
20095
34c44600 20096 Fix breakage on coreboot due to declaration mismatch.
bc3a2f31 20097 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
20098 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
20099 grub_vga_text_cls().
20100
80fc88f2 20101 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34c44600 20102 comments. Avoid copying one more byte than necessary (just in case).
80fc88f2 20103
cbf36fd3 20104 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
20105 to 0x200000 (avoids trouble with some OFW implementations, and matches
20106 with the one in Yaboot).
20107 Reported by Manoel Abranches
20108
73e8e268 201092008-11-20 Robert Millan <rmh@aybabtu.com>
3cf6ac19 20110
20111 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
20112 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
20113
73e8e268 20114 * util/grub-mkconfig_lib.in (grub_warn): New function.
20115 (convert_system_path_to_grub_path): Use grub_warn() when issuing
20116 warnings, to obtain consistent formatting.
20117 * util/grub.d/00_header.in: Likewise.
20118 * util/update-grub_lib.in: Likewise.
20119
e94045a1 20120 * loader/i386/linux.c (allocate_pages): Fix a warning.
40f9faa4 20121 Move comment text to `#error' stanza.
e94045a1 20122
79d29fd7 20123 Harmonize ieee1275's grub_available_iterate() with the generic
20124 grub_machine_mmap_iterate() interface (fixes a recently-introduced
20125 build problem on i386-ieee1275):
20126 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
20127 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
20128 parameter `type'. Update all users of this function.
20129 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
20130 `kern/ieee1275/mmap.c'.
20131 * kern/ieee1275/init.c
20132 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
20133 with ...
20134 (grub_machine_mmap_iterate): ... this.
20135 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
20136 return type to `grub_err_t'. Update all implementations of this
20137 function prototype.
20138 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
20139 Likewise.
20140
60d6b16e 20141 Add `lsmmap' command (lists firmware-provided memory map):
20142 * commands/lsmmap.c: New file.
20143 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
20144 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
20145 variables.
20146 * conf/powerpc-ieee1275.rmk: Likewise.
20147 * conf/i386-coreboot.rmk: Likewise.
20148 * conf/i386-ieee1275.rmk: Likewise.
20149
ebaaf49b 201502008-11-19 Robert Millan <rmh@aybabtu.com>
20151
20152 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
92907110 20153 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
20154 constraints to initrd allocation (based on code from
20155 loader/i386/pc/linux.c). Without them, initrd was allocated too high
20156 for Linux to find it.
ebaaf49b 20157
dfab719f 201582008-11-14 Robert Millan <rmh@aybabtu.com>
20159
20160 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
20161 order to cope with duplicate slashes.
20162
10fc3eb9 201632008-11-14 Robert Millan <rmh@aybabtu.com>
20164
20165 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
20166 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
20167 don't want to mess with lower memory, because it is used in the Linux
20168 loader.
20169
20170 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34c44600 20171 an appropriate place in lower memory, between 0x10000 and 0x90000,
10fc3eb9 20172 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
20173 is in our heap (probably as a result of it being corrupted during
2f2a3442 20174 decompression). Add #error instance with comment to explain why this
20175 loader isn't currently usable on PC/BIOS.
10fc3eb9 20176
e2e07847 201772008-11-14 Robert Millan <rmh@aybabtu.com>
20178
20179 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34c44600 20180 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
e2e07847 20181
fe8e8d69 201822008-11-12 Robert Millan <rmh@aybabtu.com>
20183
20184 Make loader/i386/linux.c buildable on i386-pc (although disabled).
20185
20186 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
20187 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
20188 from here ...
20189 * include/grub/i386/pc/memory.h: ... to here.
20190
976b07d0 201912008-11-12 Robert Millan <rmh@aybabtu.com>
20192
20193 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
20194 split).
20195
20196 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
20197 (grub_console_cur_color, grub_console_real_putchar)
20198 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
20199 (grub_console_setcolorstate, grub_console_setcolor)
20200 (grub_console_getcolor): Move from here ...
20201 * include/grub/i386/vga_common.h: ... to here (new file).
20202
20203 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
20204 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
20205 `<grub/i386/io.h>'.
20206 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
20207 `<grub/i386/vga_common.h>'.
20208
76679cd3 202092008-11-12 Robert Millan <rmh@aybabtu.com>
20210
20211 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
20212 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
20213 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
20214 variables.
20215 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
20216 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
20217
20218 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
20219 grub_console_init() with call to grub_vga_text_init().
20220 (grub_machine_fini): Replace call to
20221 grub_console_fini() with call to grub_vga_text_fini() and
20222 grub_at_keyboard_fini().
20223
20224 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
20225 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
20226 (grub_console_setcolorstate, grub_console_setcolor)
20227 (grub_console_getcolor): New function prototypes.
20228
20229 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
20230 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
20231 (grub_vga_text_setcursor): Static-ize.
20232 (grub_vga_text_term): New structure.
20233 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
20234
20235 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
20236 (grub_console_cur_color, grub_console_standard_color)
20237 (grub_console_normal_color, grub_console_highlight_color)
20238 (map_char, grub_console_putchar, grub_console_getcharwidth)
20239 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
20240 (grub_console_getcolor): Move from here ...
20241 * term/i386/vga_common.c: ... to here (same function names).
20242
95b841d3 202432008-11-12 Robert Millan <rmh@aybabtu.com>
20244
20245 Use newly-added Multiboot support in coreboot.
20246
20247 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
20248 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
20249
20250 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
20251 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
20252 (codestart): Store the MBI in `startup_multiboot_info' when we're
20253 being loaded using Multiboot.
20254
20255 * kern/i386/coreboot/init.c (grub_machine_init): Move
20256 grub_at_keyboard_init() call to beginning of function (useful for
20257 debugging). Call grub_machine_mmap_init() before attempting to use
20258 grub_machine_mmap_iterate().
20259 (grub_lower_mem, grub_upper_mem): Move from here ...
20260 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
20261 here (new file).
20262
20263 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
20264 function prototype.
20265
761ca975 202662008-11-12 Robert Millan <rmh@aybabtu.com>
20267
20268 Fix a regression introduced by the at_keyboard.mod split. Because
20269 some terminals are default on some platforms and non-default on
20270 others, the first terminal being registered determines which is
20271 going to be default.
20272
20273 * kern/term.c (grub_term_register_input): If this is the first
20274 terminal being registered, set it as the current one.
20275 (grub_term_register_output): Likewise.
20276
20277 * term/efi/console.c (grub_console_init): Do not call
20278 grub_term_set_current_output() or grub_term_set_current_input().
20279 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
20280 * term/i386/pc/console.c (grub_console_init): Likewise.
20281 (grub_console_fini): Do not call grub_term_set_current_input()
20282 (but leave grub_term_set_current_output() to restore text mode).
20283
6c529df7 202842008-11-10 Robert Millan <rmh@aybabtu.com>
20285
20286 * util/grub.d/00_header.in: Add backward compatibility check for
20287 versions of terminal.mod that don't understand `terminal_input' or
20288 `terminal_output'.
20289
132e4113 202902008-11-09 Robert Millan <rmh@aybabtu.com>
20291
20292 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
20293 `terminal_input' / `terminal_output', not `terminal'.
20294
ac293d50 202952008-11-08 Robert Millan <rmh@aybabtu.com>
20296
20297 * Makefile.in (include_DATA): Fix srcdir=. assumption.
2a9c5940 20298 (DISTCLEANFILES): Add `build_env.mk'.
ac293d50 20299
0025933a 203002008-11-08 Robert Millan <rmh@aybabtu.com>
20301
20302 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
dba3f844 20303 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
0025933a 20304 members. Update all users.
20305 * util/console.c (grub_ncurses_term): Split in ...
20306 (grub_ncurses_term_input): ... this, and ...
20307 (grub_ncurses_term_output): ... this. Update all users.
dcb6fa0a 20308 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
0025933a 20309
37c86336 203102008-11-08 Robert Millan <rmh@aybabtu.com>
20311
20312 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
20313 (PKGDATA): Add $(pkgdata_SRCDIR).
20314 (pkglib_BUILDDIR): New variable.
20315 (pkgdata_SRCDIR): New variable.
20316 (build_env.mk): New target.
20317 (include_DATA): New variable.
20318 (install-local): Install $(include_DATA) files in $(includedir).
20319
b6c15a2d 203202008-11-07 Pavel Roskin <proski@gnu.org>
20321
d99d46f1 20322 * gendistlist.sh: Use C locale for sorting to ensure consistent
20323 output on all systems.
20324
b6c15a2d 20325 * util/grub.d/00_header.in: Remove incorrect space before
20326 "serial".
20327
c32ee8c9 203282008-11-07 Robert Millan <rmh@aybabtu.com>
20329
20330 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
20331 per specification.
20332 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
20333 * loader/multiboot_loader.c (find_multi_boot2_header): New function
20334 (based on find_multi_boot1_header).
20335 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
20336 using find_multi_boot2_header(), and abort if neither Multiboot or
20337 Multiboot headers were found.
20338
651c29b7 203392008-11-07 Robert Millan <rmh@aybabtu.com>
20340
20341 Modularize at_keyboard.mod:
20342
20343 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
20344 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
20345 (at_keyboard_mod_LDFLAGS): New variables.
20346
20347 Actual terminal split:
20348
20349 * include/grub/term.h (struct grub_term): Split in ...
20350 (struct grub_term_input): ... this, and ...
20351 (struct grub_term_output): ... this. Update all users.
20352 (grub_term_set_current): Split in ...
20353 (grub_term_set_current_input): ... this, and ...
20354 (grub_term_set_current_output): ... this.
20355 (grub_term_get_current): Split in ...
20356 (grub_term_get_current_input): ... this, and ...
20357 (grub_term_get_current_output): ... this.
20358 (grub_term_register): Split in ...
20359 (grub_term_register_input): ... this, and ...
20360 (grub_term_register_output): ... this.
20361 (grub_term_unregister): Split in ...
20362 (grub_term_unregister_input): ... this, and ...
20363 (grub_term_unregister_output): ... this.
20364 (grub_term_iterate): Split in ...
20365 (grub_term_iterate_input): ... this, and ...
20366 (grub_term_iterate_output): ... this.
20367
20368 * kern/term.c (grub_term_list): Split in ...
20369 (grub_term_list_input): ... this, and ...
20370 (grub_term_list_output): ... this. Update all users.
20371 (grub_cur_term): Split in ...
20372 (grub_cur_term_input): ... this, and ...
20373 (grub_cur_term_output): ... this. Update all users.
20374 (grub_term_set_current): Split in ...
20375 (grub_term_set_current_input): ... this, and ...
20376 (grub_term_set_current_output): ... this.
20377 (grub_term_get_current): Split in ...
20378 (grub_term_get_current_input): ... this, and ...
20379 (grub_term_get_current_output): ... this.
20380 (grub_term_register): Split in ...
20381 (grub_term_register_input): ... this, and ...
20382 (grub_term_register_output): ... this.
20383 (grub_term_unregister): Split in ...
20384 (grub_term_unregister_input): ... this, and ...
20385 (grub_term_unregister_output): ... this.
20386 (grub_term_iterate): Split in ...
20387 (grub_term_iterate_input): ... this, and ...
20388 (grub_term_iterate_output): ... this.
20389
20390 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
20391 a check for input and one for output (and only attempt to get keys
20392 from user when input works).
20393
20394 * util/grub-probe.c (grub_term_get_current): Split in ...
20395 (grub_term_get_current_input): ... this, and ...
20396 (grub_term_get_current_output): ... this.
20397 * util/grub-fstest.c: Likewise.
20398 * util/i386/pc/grub-setup.c: Likewise.
20399 * util/grub-editenv.c: Likewise.
20400
20401 Portability adjustments:
20402
20403 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
20404 `term/i386/pc/at_keyboard.c'.
20405 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
20406 grub_keyboard_controller_init() (now handled by terminal .init).
20407 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
20408 grub_at_keyboard_init().
20409 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
20410 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
20411 at_keyboard.mod via input terminal interface).
20412 * include/grub/i386/coreboot/console.h: Convert into a stub for
20413 `<grub/i386/pc/console.h>'.
20414
20415 Migrate full terminals to new API:
20416
20417 * term/efi/console.c (grub_console_term): Split into ...
20418 (grub_console_term_input): ... this, and ...
20419 (grub_console_term_output): ... this. Update all users.
20420 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
20421 (grub_ofconsole_init): Split into ...
20422 (grub_ofconsole_init_input): ... this, and ...
20423 (grub_ofconsole_init_output): ... this.
20424 (grub_ofconsole_term): Split into ...
20425 (grub_ofconsole_term_input): ... this, and ...
20426 (grub_ofconsole_term_output): ... this. Update all users.
20427 * term/i386/pc/serial.c (grub_serial_term): Split into ...
20428 (grub_serial_term_input): ... this, and ...
20429 (grub_serial_term_output): ... this. Update all users.
20430 * term/i386/pc/console.c (grub_console_term): Split into ...
20431 (grub_console_term_input): ... this, and ...
20432 (grub_console_term_output): ... this. Update all users.
20433 (grub_console_term_input): Only enable it on PC/BIOS platform.
20434 (grub_console_init): Remove grub_keyboard_controller_init() call.
20435
20436 Migrate input terminals to new API:
20437
20438 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
20439 `i386' and `i386/pc' to enable build on x86_64 (this driver is
20440 i386-specific anyway).
20441 (grub_console_checkkey): Rename to ...
20442 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
20443 users.
20444 (grub_keyboard_controller_orig): New variable.
20445 (grub_console_getkey): Rename to ...
20446 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
20447 users.
20448 (grub_keyboard_controller_init): Static-ize. Save original
20449 controller value so that it can be restored ...
20450 (grub_keyboard_controller_fini): ... here (new function).
20451 (grub_at_keyboard_term): New structure.
20452 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
20453 functions.
20454
20455 Migrate output terminals to new API:
20456
20457 * term/i386/pc/vga.c (grub_vga_term): Change type to
20458 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20459 members. Update all users.
20460 * term/gfxterm.c (grub_video_term): Change type to
20461 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
20462 members. Update all users.
20463 * include/grub/i386/pc/console.h (grub_console_checkkey)
20464 (grub_console_getkey): Do not export (no longer needed by gfxterm,
20465 etc).
20466
20467 Migrate `terminal' command and userland tools to new API:
20468
20469 * commands/terminal.c (grub_cmd_terminal): Split into ...
20470 (grub_cmd_terminal_input): ... this, and ...
20471 (grub_cmd_terminal_output): ... this.
20472 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
20473 `terminal_input' and `terminal_output'.
20474 * util/grub.d/00_header.in: Adjust `terminal' calls to new
20475 `terminal_input' / `terminal_output' API.
20476 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
20477 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
20478 provided ${GRUB_TERMINAL}, convert it).
20479
96e5d876 204802008-11-04 Robert Millan <rmh@aybabtu.com>
20481
20482 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
20483 for FreeBSD.
20484 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
20485
556f3775 204862008-11-03 Bean <bean123ch@gmail.com>
20487
20488 * kern/elf.c (grub_elf32_load): Revert to previous code.
20489 (grub_elf64_load): Likewise.
20490
20491 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
20492
926b9823 204932008-11-01 Robert Millan <rmh@aybabtu.com>
20494
20495 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
20496 (TARGET_CPPFLAGS): Likewise.
20497 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
20498
1432e958 204992008-11-01 Carles Pina i Estany <carles@pina.cat>
20500
20501 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
20502
dba3f844 205032008-10-29 Guillem Jover <guillem.jover@nokia.com>
de4fa71c 20504
20505 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
20506 addition of objects until the code is not going to be able to fail.
20507
dba3f844 205082008-10-29 Guillem Jover <guillem.jover@nokia.com>
b7279447 20509
20510 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
20511 (add a missing NULL check, and correct them by moving the pointer
20512 operations after the actual check).
20513
7ab28c21 205142008-10-29 Robert Millan <rmh@aybabtu.com>
20515
20516 * util/i386/pc/grub-install.in: Handle empty string as output from
20517 make_system_path_relative_to_its_root().
20518
1b7748eb 205192008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
20520
20521 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
20522 circular metadata worst case scenario. If the metadata is circular
20523 then copy the wrap in place.
20524 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
20525 project lib/format_text/layout.h
20526 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
20527
c9618ab2 205282008-10-03 Felix Zielcke <fzielcke@z-51.de>
20529
7a36edca 20530 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
c9618ab2 20531
bf981c62 205322008-10-03 Felix Zielcke <fzielcke@z-51.de>
20533
20534 * util/update-grub_lib.in: Mention filename in warning message.
20535
6d994591 205362008-09-29 Felix Zielcke <fzielcke@z-51.de>
20537
20538 * NEWS: Update for rename of update-grub to grub-mkconfig.
20539
18ade780 205402008-09-29 Felix Zielcke <fzielcke@z-51.de>
20541
20542 * util/update-grub_lib.in: Copy to ...
20543 * util/grub-mkconfig_lib.in: ... this. Update all users.
7c3ff286 20544 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
18ade780 20545 * util/update-grub.in: Rename to ...
20546 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
20547 option. Add `--output' option to allow users to specify the generated
20548 configuration file. Default to stdout.
20549 (update_grub_dir): Rename to ...
20550 (grub_mkconfig_dir): ... this.
20551 (grub_cfg): Default to an empty string.
20552 * conf/common.rmk (update-grub): Rename to ...
20553 (grub-mkconfig): ... this.
20554 (update-grub_lib): Copy to ...
20555 (grub-mkconfig_lib): ... this.
20556 (update-grub_SCRIPTS): Copy to ...
20557 (grub-mkconfig_SCRIPTS): ... this. Update all users.
20558 (update-grub_DATA): Rename to ...
20559 (grub-mkconfig_DATA): ... this.
20560
556ce6ac 205612008-09-28 Robert Millan <rmh@aybabtu.com>
20562
20563 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
20564 to `modified'. Add the real `created' field.
20565 (grub_iso9660_uuid): Use `modified' rather than `created' for
20566 constructing the UUID.
20567
205682008-09-28 Felix Zielcke <fzielcke@z-51.de>
eb079ba9 20569
20570 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
20571 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
20572
92274e85 205732008-09-28 Bean <bean123ch@gmail.com>
20574
20575 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
20576 Thanks to Christian Franke for finding this bug.
20577
add6f17a 205782008-09-25 Robert Millan <rmh@aybabtu.com>
20579
20580 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
20581 instances of grub_util_get_disk_name() (see previous commit).
20582
d2a367b8 205832008-09-25 Robert Millan <rmh@aybabtu.com>
20584
20585 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
20586 `util/i386/get_disk_name.c'.
20587 * conf/i386-efi.rmk: Likewise.
20588 * conf/x86_64-efi.rmk: Likewise.
20589 * conf/i386-coreboot.rmk: Likewise.
20590 * conf/i386-ieee1275.rmk: Likewise.
20591 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
20592 `util/ieee1275/get_disk_name.c'.
20593 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
20594 * util/ieee1275/get_disk_name.c: Remove file.
20595 * util/i386/get_disk_name.c: Remove file.
20596 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
20597 "hd%d" for device.map entries, rather than using
20598 grub_util_get_disk_name().
20599
81a06771 206002008-09-24 Carles Pina i Estany <carles@pina.cat>
b0c301f7 20601
20602 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
20603 warning.
20604 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
20605
5a004279 206062008-09-24 Carles Pina i Estany <carles@pina.cat>
20607
20608 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
20609 Changed to 0x5100.
20610 (GRUB_TERM_PPAGE): Changed to 0x4900.
20611
397093d3 206122008-09-24 Robert Millan <rmh@aybabtu.com>
20613
20614 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
20615 macros (they were i386-pc specific).
20616 * include/grub/sparc64/ieee1275/console.h: Likewise.
20617 * include/grub/efi/console.h: Likewise.
20618
a91b6c7c 206192008-09-22 Bean <bean123ch@gmail.com>
20620
20621 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
20622 resident and in attribute list.
20623
20624 * include/grub/ntfs.h (BMP_LEN): Removed.
20625
c40fd116 206262008-09-22 Bean <bean123ch@gmail.com>
20627
81a06771 20628 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
c40fd116 20629 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
20630
20631 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
20632 error occurs, as grub_disk_open will call grub_disk_close, which will
20633 call p->close (scsi).
20634
81a06771 206352008-09-21 Felix Zielcke <fzielcke@z-51.de>
eb73121d 20636
20637 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
20638 (AC_PREREQ): Bumped to 2.59.
20639 (AC_TRY_COMPILE): Replace obsolete macro with ...
20640 (AC_COMPILE_IFELSE): ... this.
20641 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
20642 (AC_LINK_IFELSE): ... this.
20643
5dc43410 206442008-09-21 Felix Zielcke <fzielcke@z-51.de>
20645
20646 * autogen.sh: Add a call to `gendistlist.sh'.
20647
9035dce4 206482008-09-19 Christian Franke <franke@computer.org>
20649
20650 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
20651 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
20652 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
20653 Export __enable_execute_stack() to modules.
20654 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
20655 New function.
20656
7fd75377 206572008-09-09 Felix Zielcke <fzielcke@z-51.de>
20658
040030b3 20659 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
20660 Sort the list.
20661
206622008-09-09 Felix Zielcke <fzielcke@z-51.de>
20663
20664 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
7fd75377 20665 #include <grub/util/hostdisk.h>.
20666
89d5ffcf 206672008-09-08 Robert Millan <rmh@aybabtu.com>
20668
20669 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
20670 segments when their filesz is zero (grub_file_read() interprets
81a06771 20671 zero-size as "read until EOF", which results in memory corruption).
89d5ffcf 20672 Use `lowest_segment' rather than 0 for calculating the current
20673 segment load address.
20674
40da438f 206752008-09-08 Robert Millan <rmh@aybabtu.com>
20676
20677 * util/hostdisk.c (open_device): Replace a grub_util_info() call
20678 with grub_dprintf("hostdisk", ...), as it was so verbose that it
20679 clobbered useful information.
20680
ddbf5556 206812008-09-08 Robert Millan <rmh@aybabtu.com>
20682
20683 * include/grub/util/biosdisk.h: Move to ...
20684 * include/grub/util/hostdisk.h: ... here. Update all users.
20685 * util/biosdisk.c: Move to ...
20686 * util/hostdisk.c: ... here. Update all users.
20687
783d0f48 206882008-09-07 Robert Millan <rmh@aybabtu.com>
20689
20690 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
20691 variables.
20692 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
20693 and length can be stored directly in the `mbi->mmap_addr' and
20694 `mbi->mmap_length' struct fields.
20695
548e2ea5 206962008-09-07 Robert Millan <rmh@aybabtu.com>
20697
20698 * conf/i386.rmk: New file. Provides declaration for building
20699 `cpuid.mod'.
20700 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
20701 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
20702 variables.
20703 Include `conf/i386.mk'.
20704 * conf/i386-efi.rmk: Likewise.
20705 * conf/x86_64-efi.rmk: Likewise.
20706 * conf/i386-coreboot.rmk: Likewise.
20707 * conf/i386-ieee1275.rmk: Likewise.
20708
0ea85a37 207092008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
20710
20711 Based on patch created by Colin D Bennett <colin@gibibit.com>.
20712 Adds optimization support for BGR based modes.
20713
20714 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
20715 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20716 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20717 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20718 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20719 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20720 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20721 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20722 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20723 (grub_video_i386_vbeblit_index_index): Likewise.
20724 (grub_video_i386_vbeblit_replace_directN): Added.
20725 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20726 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20727 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20728 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20729 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20730 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
81a06771 20731 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
0ea85a37 20732 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20733 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20734 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20735 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20736 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20737 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
20738
20739 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
20740 (grub_video_i386_vbefill_R8G8B8): Likewise.
20741 (grub_video_i386_vbefill_index): Likewise.
20742 (grub_video_i386_vbefill_direct32): Added.
20743 (grub_video_i386_vbefill_direct24): Likewise.
20744 (grub_video_i386_vbefill_direct16): Likewise.
20745 (grub_video_i386_vbefill_direct8): Likewise.
20746
81a06771 20747 * include/grub/video.h (grub_video_blit_format): Removed
0ea85a37 20748 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
20749 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
20750 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
20751 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
20752 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
81a06771 20753
0ea85a37 20754 * video/video.c (grub_video_get_blit_format): Updated to use new
20755 blit formats. Added handling for 16 bit color modes.
81a06771 20756
20757 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
0ea85a37 20758 fillers.
20759 (common_blitter): Updated to use new blitters.
20760
20761 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
20762 Removed.
20763 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
20764 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
20765 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
20766 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
20767 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
20768 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
20769 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
20770 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
20771 (grub_video_i386_vbeblit_index_index): Likewise.
20772 (grub_video_i386_vbeblit_replace_directN): Added.
20773 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
20774 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
20775 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
20776 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
20777 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
20778 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
20779 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
20780 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
20781 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
20782 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
20783 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
20784 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
20785 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
81a06771 20786
0ea85a37 20787 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
20788 (grub_video_i386_vbefill_R8G8B8): Likewise.
20789 (grub_video_i386_vbefill_index): Likewise.
20790 (grub_video_i386_vbefill_direct32): Added.
20791 (grub_video_i386_vbefill_direct24): Likewise.
20792 (grub_video_i386_vbefill_direct16): Likewise.
20793 (grub_video_i386_vbefill_direct8): Likewise.
81a06771 20794
0ea85a37 20795 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
20796 types.
81a06771 20797
0ea85a37 20798 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
20799 types.
81a06771 20800
0ea85a37 20801 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
20802 blitter types.
81a06771 20803
0ea85a37 20804 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
20805 types.
20806
e8a83df6 208072008-09-06 Felix Zielcke <fzielcke@z-51.de>
20808
20809 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
20810 RAID level 1.
20811
6bcd8ee5 208122008-09-06 Felix Zielcke <fzielcke@z-51.de>
c375ae58 20813
6bcd8ee5 20814 * fs/iso9660.c (grub_iso9660_date): New structure.
20815 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
20816 (grub_iso9660_uuid): New function.
c375ae58 20817
59261157 208182008-09-05 Bean <bean123ch@gmail.com>
20819
20820 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
20821
20822 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
20823 insensitive bit for names in Win32 and Win32 & DOS namespace.
20824
20825 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
20826
20827 * include/grub/types.h (LONG_MAX): Likewise.
20828
58b6645a 208292008-09-04 Felix Zielcke <fzielcke@z-51.de>
20830
4ee55921 20831 * util/getroot.c: Include <config.h>.
20832 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
20833 add support for /dev/md/N devices and handle LVM double dash escaping.
20834
208352008-09-04 Felix Zielcke <fzielcke@z-51.de>
20836
20837 * config.guess: Update to latest version from config git.
20838 * config.sub: Likewise.
58b6645a 20839
9124f65d 208402008-09-03 Robert Millan <rmh@aybabtu.com>
20841
20842 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
20843 `disk->total_sectors'.
20844
81a06771 208452008-09-01 Colin D Bennett <colin@gibibit.com>
a0224a4e 20846
20847 * include/grub/normal.h: Fixed incorrect comment for
20848 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
20849
81a06771 208502008-09-01 Colin D Bennett <colin@gibibit.com>
f0619958 20851
20852 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
20853 values with defines.
20854
20855 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
20856 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
20857 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
20858 (GRUB_VBE_MODEATTR_COLOR): Likewise.
20859 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
20860 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
20861 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
20862 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
20863 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
20864 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
20865 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
20866 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
20867 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
20868 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
20869 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
20870 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
20871 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
20872 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
20873 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
20874
93d5cbf8 208752008-08-31 Robert Millan <rmh@aybabtu.com>
20876
20877 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
20878 declaration.
20879 (grub_multiboot): Fix a few warnings.
20880
21751d50 208812008-08-31 Robert Millan <rmh@aybabtu.com>
20882
20883 * loader/i386/pc/multiboot.c: Update comment not to say that
20884 boot_device support is unimplemented.
20885
e27a75c5 208862008-08-31 Robert Millan <rmh@aybabtu.com>
20887
20888 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
20889 or memory map support are unimplemented.
20890
81a06771 208912008-08-31 Colin D Bennett <colin@gibibit.com>
64d2d53c 20892
20893 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
20894
81a06771 208952008-08-31 Colin D Bennett <colin@gibibit.com>
c08a6c18 20896
20897 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
20898 total video memory in 'vbeinfo' output; show color format details for
20899 each video mode.
20900
7c5d8d95 209012008-08-30 Pavel Roskin <proski@gnu.org>
20902
20903 * util/genmoddep.c: Remove for real this time.
20904 * DISTLIST: Remove util/genmoddep.c.
20905
4cebd25a 209062008-08-30 Robert Millan <rmh@aybabtu.com>
20907
20908 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
20909 as required by Multiboot spec (it was already 4-byte aligned, but
20910 only by chance).
20911
b497a269 209122008-08-29 Pavel Roskin <proski@gnu.org>
20913
e3925185 20914 * kern/powerpc/ieee1275/crt0.S: Rename to ...
20915 * kern/powerpc/ieee1275/startup.S: ... this.
20916 * conf/powerpc-ieee1275.rmk: Adjust for the above.
20917 * DISTLIST: Likewise.
20918
b497a269 20919 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
20920 grub/cpu/kernel.h. Add start label for consistency with other
20921 platforms. Add grub_prefix immediately after start. Add jump
20922 to the code after grub_prefix.
20923 * include/grub/powerpc/kernel.h: Provide valid values for
20924 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
20925
6e5a42fe 209262008-08-29 Bean <bean123ch@gmail.com>
20927
20928 * configure.ac: Change host_os to cygwin for mingw.
20929 (asprintf): New check for function.
20930
20931 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
20932 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
20933
20934 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
81a06771 20935 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
6e5a42fe 20936 sync, sleep and grub_util_get_disk_size for mingw.
20937
20938 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
20939 to get size in mingw.
20940 (open_device): Use flag O_BINARY if it's defined.
20941 (find_root_device): Add dummy code for mingw.
20942
20943 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
20944 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
20945 (get_scsi_disk_name): Return 0 for mingw.
20946
20947 * util/hostfs.c: #include <grub/util/misc.h>.
20948 (grub_hostfs_open): Use "rb" flag to open file, use
20949 grub_util_get_disk_size to get disk size for mingw.
20950
20951 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
20952 (asprintf): New function if HAVE_ASPRINTF is not set.
20953 (sync): New function for mingw.
20954 (sleep): Likewise.
20955 (grub_util_get_disk_size): Likewise.
20956
ab3f2673 209572008-08-28 Pavel Roskin <proski@gnu.org>
20958
20959 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
20960 kern/time.c.
20961
1c282483 209622008-08-28 Robert Millan <rmh@aybabtu.com>
20963
20964 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
20965
678e849c 209662008-08-28 Robert Millan <rmh@aybabtu.com>
20967
20968 Change find_grub_drive() syntax so it doesn't prevent it from
20969 detecting NULL names as errors.
20970
20971 * util/biosdisk.c (find_grub_drive): Move free slot search code
20972 from here ...
20973 (find_free_slot): ... to here.
20974 (read_device_map): Use find_free_slot() to search for free slots.
20975
965c75ca 209762008-08-27 Marco Gerards <marco@gnu.org>
20977
20978 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
20979 (scsi_mod_SOURCES): New variable.
20980 (scsi_mod_CFLAGS): Likewise
20981 (scsi_mod_LDFLAGS): Likewise.
20982
20983 * disk/scsi.c: New file.
20984
20985 * include/grub/scsi.h: Likewise.
20986
20987 * include/grub/scsicmd.h: Likewise.
20988
20989 * disk/ata.c: Include <grub/scsi.h>.
20990 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
20991 instead.
20992 (grub_ata_iterate): Skip ATAPI devices.
20993 (grub_ata_open): Only handle ATAPI devices.
20994 (struct grub_atapi_read): Removed.
20995 (grub_atapi_readsector): Likewise.
20996 (grub_ata_read): No longer handle ATAPI devices.
20997 (grub_ata_write): Likewise.
20998 (grub_atapi_iterate): New function.
20999 (grub_atapi_read): Likewise.
21000 (grub_atapi_write): Likewise.
21001 (grub_atapi_open): Likewise.
21002 (grub_atapi_close): Likewise.
21003 (grub_atapi_dev): New variable.
21004 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
21005 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
21006
21007 * include/grub/disk.h (enum grub_disk_dev_id): Add
21008 `GRUB_DISK_DEVICE_SCSI_ID'.
21009
c07ae501 210102008-08-26 Robert Millan <rmh@aybabtu.com>
21011
21012 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
21013 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
21014 descriptive.
21015
5ed20adc 210162008-08-23 Bean <bean123ch@gmail.com>
21017
21018 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
21019 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
21020 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
21021 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
21022 dm_nv.mod.
21023 (raid5rec_mod_SOURCES): New macro.
21024 (raid5rec_mod_CFLAGS): Likewise.
21025 (raid5rec_mod_LDFLAGS): Likewise.
21026 (raid6rec_mod_SOURCES): Likewise.
21027 (raid6rec_mod_CFLAGS): Likewise.
21028 (raid6rec_mod_LDFLAGS): Likewise.
21029 (mdraid_mod_SOURCES): Likewise.
21030 (mdraid_mod_CFLAGS): Likewise.
21031 (mdraid_mod_LDFLAGS): Likewise.
21032 (dm_nv_mod_SOURCES): Likewise.
21033 (dm_nv_mod_CFLAGS): Likewise.
21034 (dm_nv_mod_LDFLAGS): Likewise.
21035
21036 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
21037 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
21038 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
21039
21040 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
21041 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
21042
21043 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21044
21045 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21046
21047 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21048
21049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21050
21051 * disk/raid5_recover.c: New file.
21052
21053 * disk/raid6_recover.c: Likewise.
21054
21055 * disk/mdraid_linux.c: Likewise.
21056
21057 * disk/dmraid_nvidia.c: Likewise.
21058
21059 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
21060 ULONG_MAX.
21061
21062 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
21063 calculate the size of raid device.
21064 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
21065 different layout of raid5.
21066 (grub_raid_scan_device): Remove code specific to mdraid.
21067 (grub_raid_list): New variable.
21068 (free_array): New function.
21069 (grub_raid_register): Likewise.
21070 (grub_raid_unregister): Likewise.
21071 (grub_raid_rescan): Likewise.
21072 (GRUB_MOD_INIT): Don't iterate device here.
21073 (GRUB_MOD_FINI): Use free_array to release resource.
21074
21075 * include/grub/raid.h: Remove macro and structure specific to mdraid.
21076 (grub_raid5_recover_func_t): New function variable type.
21077 (grub_raid6_recover_func_t): Likewise.
21078 (grub_raid5_recover_func): New variable.
21079 (grub_raid6_recover_func): Likewise.
21080 (grub_raid_register): New function.
21081 (grub_raid_unregister): Likewise.
21082 (grub_raid_rescan): Likewise.
21083 (grub_raid_block_xor): Likewise.
21084
21085 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
21086 (CMD_CRC): New macro.
21087 (part): Removed.
21088 (read_file): Handle device as well as file.
21089 (cmd_crc): New function.
21090 (fstest): Handle multiple disks.
21091 (options): Remove part, raw and long, add root and diskcount.
21092 (usage): Add crc, remove -p, -r, -l, add -r and -c.
dba3f844 21093 (main): Find the first non option entry and ignore subsequent options,
5ed20adc 21094 add handling for the new options, support multiple disks.
21095
21096 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
21097
29c18915 210982008-08-23 Bean <bean123ch@gmail.com>
21099
21100 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
21101
21102 * genfslist.sh: Ignore kernel.mod.
21103
21104 * genpartmaplist.sh: Likewise.
21105
8415f261 211062008-08-23 Robert Millan <rmh@aybabtu.com>
21107
21108 * util/getroot.c (find_root_device): Skip anything that starts with
21109 a dot, not just directories. This avoids things like /dev/.tmp.md0.
21110
d5a7dc5b 211112008-08-22 Felix Zielcke <fzielcke@z-51.de>
81a06771 21112
d5a7dc5b 21113 * util/update-grub.in (GRUB_GFXMODE): Export variable.
21114 * util/grub.d/00_header.in: Allow the administrator to change default
21115 gfxmode via ${GRUB_GFXMODE}.
21116
380cfbb4 211172008-08-21 Felix Zielcke <fzielcke@z-51.de>
21118
21119 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
21120
c9baafe7 211212008-08-21 Robert Millan <rmh@aybabtu.com>
21122
21123 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
21124 loader.
21125 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
21126 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
21127
e290bef2 211282008-08-20 Carles Pina i Estany <carles@pina.cat>
21129
21130 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
21131 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
21132
f9dbfc96 211332008-08-19 Robert Millan <rmh@aybabtu.com>
21134
21135 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
21136 (struct grub_virtual_screen): Remove `cursor_color'.
21137 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
21138 initialization.
21139 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
21140
dd6bd6ab 211412008-08-18 Robert Millan <rmh@aybabtu.com>
21142
21143 Unify (identical) linux_normal.c files.
21144 * loader/i386/efi/linux_normal.c: Move from here ...
21145 * loader/linux_normal.c: ... to here. Update all users.
21146 * loader/i386/pc/linux_normal.c: Delete. Update all users.
21147 * loader/i386/ieee1275/linux_normal.c: Likewise.
21148
7f42f83e 211492008-08-18 Robert Millan <rmh@aybabtu.com>
21150
21151 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
21152 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
21153 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
21154 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
21155 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
21156 New macros.
21157 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
21158 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
21159 (GRUB_LINUX_CL_END_OFFSET): ... to here.
21160 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
21161 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
21162 (GRUB_EFI_CL_END_OFFSET): Rename to ...
21163 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
21164 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
21165 Initialize `params->video_cursor_x' and `params->video_cursor_y'
21166 portably using grub_getxy().
21167 Replace `-EFI' with `-bzImage' in boot message.
21168
38487ddb 211692008-08-17 Robert Millan <rmh@aybabtu.com>
21170
21171 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
21172
deceb3ec 211732008-08-17 Robert Millan <rmh@aybabtu.com>
21174
21175 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
21176
21177 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
21178 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
21179 (grub_machine_mmap_iterate): New function declaration.
21180 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
21181 structure.
21182 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
21183 macros.
21184
21185 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
21186 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
21187 Move e820 parsing from here ...
21188 * kern/i386/pc/mmap.c: New file.
21189 (grub_machine_mmap_iterate): ... to here.
21190
21191 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
21192 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
21193 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
21194 (grub_available_iterate): Redeclare to return `void', and redeclare
21195 its hook to use grub_uint64_t as addr and size parameters, and rename
21196 to ...
21197 (grub_machine_mmap_iterate): ... this. Update all users.
21198
21199 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
21200 to make it more readable. Rename to ...
21201 (grub_machine_mmap_iterate): ... this.
21202
21203 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
21204 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
21205 (grub_multiboot): Allocate an extra region after the payload, and fill
21206 it with a Multiboot memory map. Adjust a.out loader to calculate size
21207 with the extra space.
21208 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
21209 with the extra space.
21210
f8aa0f43 212112008-08-17 Carles Pina i Estany <carles@pina.cat>
21212
9807deb9 21213 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
f8aa0f43 21214
605f5bb6 212152008-08-17 Felix Zielcke <fzielcke@z-51.de>
21216
21217 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
21218 mdate-sh to the list `find' searches for.
21219 * DISTLIST: Regenerated.
21220
210db6c6 212212008-08-16 Felix Zielcke <fzielcke@z-51.de>
21222
21223 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
21224 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
48cdbfd4 21225 genmoddep.awk, gensymlist.sh.in.
21226 (DISTDIRS): Add bus, docs, hook, lib.
210db6c6 21227 * DISTLIST: Regenerated.
48cdbfd4 21228 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
210db6c6 21229
1082b929 212302008-08-16 Robert Millan <rmh@aybabtu.com>
21231
21232 * disk/raid.c (grub_raid_init): Handle/report errors set by
21233 grub_device_iterate().
21234 * disk/lvm.c (grub_lvm_init): Likewise.
21235
42ce5170 212362008-08-15 Bean <bean123ch@gmail.com>
21237
21238 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21239 and datehook.mod.
21240 (datetime_mod_SOURCES): New macro.
21241 (datetime_mod_CFLAGS): Likewise.
21242 (datetime_mod_LDFLAGS): Likewise.
21243 (date_mod_SOURCES): Likewise.
21244 (date_mod_CFLAGS): Likewise.
21245 (date_mod_LDFLAGS): Likewise.
21246 (datehook_mod_SOURCES): Likewise.
21247 (datehook_mod_CFLAGS): Likewise.
21248 (datehook_mod_LDFLAGS): Likewise.
21249
21250 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21251 and datehook.mod.
21252 (datetime_mod_SOURCES): New macro.
21253 (datetime_mod_CFLAGS): Likewise.
21254 (datetime_mod_LDFLAGS): Likewise.
21255 (date_mod_SOURCES): Likewise.
21256 (date_mod_CFLAGS): Likewise.
21257 (date_mod_LDFLAGS): Likewise.
21258 (datehook_mod_SOURCES): Likewise.
21259 (datehook_mod_CFLAGS): Likewise.
21260 (datehook_mod_LDFLAGS): Likewise.
21261
21262 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21263 and datehook.mod.
21264 (datetime_mod_SOURCES): New macro.
21265 (datetime_mod_CFLAGS): Likewise.
21266 (datetime_mod_LDFLAGS): Likewise.
21267 (date_mod_SOURCES): Likewise.
21268 (date_mod_CFLAGS): Likewise.
21269 (date_mod_LDFLAGS): Likewise.
21270 (datehook_mod_SOURCES): Likewise.
21271 (datehook_mod_CFLAGS): Likewise.
21272 (datehook_mod_LDFLAGS): Likewise.
21273
21274 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21275 and datehook.mod.
21276 (datetime_mod_SOURCES): New macro.
21277 (datetime_mod_CFLAGS): Likewise.
21278 (datetime_mod_LDFLAGS): Likewise.
21279 (date_mod_SOURCES): Likewise.
21280 (date_mod_CFLAGS): Likewise.
21281 (date_mod_LDFLAGS): Likewise.
21282 (datehook_mod_SOURCES): Likewise.
21283 (datehook_mod_CFLAGS): Likewise.
21284 (datehook_mod_LDFLAGS): Likewise.
21285
21286 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
21287 and datehook.mod.
21288 (datetime_mod_SOURCES): New macro.
21289 (datetime_mod_CFLAGS): Likewise.
21290 (datetime_mod_LDFLAGS): Likewise.
21291 (date_mod_SOURCES): Likewise.
21292 (date_mod_CFLAGS): Likewise.
21293 (date_mod_LDFLAGS): Likewise.
21294 (datehook_mod_SOURCES): Likewise.
21295 (datehook_mod_CFLAGS): Likewise.
21296 (datehook_mod_LDFLAGS): Likewise.
21297
21298 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
21299
21300 * commands/date.c: New file.
21301
21302 * hook/datehook.c: Likewise.
21303
21304 * include/grub/lib/datetime.h: Likewise.
21305
21306 * include/grub/i386/cmos.h: Likewise.
21307
21308 * lib/datetime.c: Likewise.
21309
21310 * lib/i386/datetime.c: Likewise.
21311
21312 * lib/efi/datetime.c: Likewise.
21313
0e9242da 213142008-08-14 Robert Millan <rmh@aybabtu.com>
21315
21316 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
21317 (grub_mkelfimage_SOURCES): New variable.
21318 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
21319
21320 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
21321 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
21322 * conf/powerpc-ieee1275.rmk: Likewise.
21323 * conf/i386-ieee1275.rmk: Likewise.
21324
21325 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
21326 * kern/i386/coreboot/init.c: Likewise.
21327
21328 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
21329 with `<grub/cpu/kernel.h>'.
21330 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
21331 to ...
21332 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
21333 * kern/i386/coreboot/startup.S: Likewise.
21334
21335 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
21336 (GRUB_MOD_GAP): Remove.
21337 * include/grub/powerpc/kernel.h: New file.
21338 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
21339 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21340 * include/grub/i386/kernel.h: New file.
21341 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
21342 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
21343 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
21344
21345 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
21346 `grub-mkelfimage'.
21347 Use --directory when invoking grub_mkimage.
21348
21349 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
21350 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
21351 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
21352 and GRUB_KERNEL_CPU_PREFIX.
21353
b86408f8 213542008-08-14 Felix Zielcke <fzielcke@z-51.de>
21355
d5e619ca 21356 * include/grub/err.h (grub_err_printf): New function prototype.
21357 * util/misc.c (grub_err_printf): New function.
21358 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
21359 grub_printf.
21360 * kern/err.c (grub_print_error): Use grub_err_printf.
b86408f8 21361
7161f0e0 213622008-08-13 Robert Millan <rmh@aybabtu.com>
21363
21364 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
21365
a1967522 213662008-08-13 Robert Millan <rmh@aybabtu.com>
21367
21368 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
21369 boot entry.
21370
371458b5 213712008-08-12 Robert Millan <rmh@aybabtu.com>
21372
21373 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
21374 of the relocation code from here ...
21375 (grub_multiboot): ... to here.
21376 (forward_relocator, backward_relocator): Move from here ...
21377 * kern/i386/loader.S (grub_multiboot_forward_relocator)
21378 (grub_multiboot_backward_relocator): ... to here.
21379 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
21380 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
21381 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
21382 (grub_multiboot_forward_relocator_end)
21383 (grub_multiboot_backward_relocator)
21384 (grub_multiboot_backward_relocator_end): New variables.
21385
05f9452b 213862008-08-12 Bean <bean123ch@gmail.com>
21387
21388 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
21389
20024ab0 213902008-08-11 Robert Millan <rmh@aybabtu.com>
21391
21392 * kern/i386/linuxbios/startup.S: Move from here ...
21393 * kern/i386/coreboot/startup.S: ... to here.
21394
21395 * kern/i386/linuxbios/init.c: Move from here ...
21396 * kern/i386/coreboot/init.c: ... to here.
21397
21398 * kern/i386/linuxbios/table.c: Move from here ...
21399 * kern/i386/coreboot/mmap.c: ... to here.
21400
21401 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
21402
e352e9cd 214032008-08-11 Robert Millan <rmh@aybabtu.com>
21404
21405 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
21406 errors. Leave it to the upper layer to handle them.
21407
2d05bc6a 214082008-08-09 Christian Franke <franke@computer.org>
21409
21410 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
21411 * conf/common.rmk: Install `grub-pe2elf' only if requested.
21412 Install `grub.d/10_windows' only on Cygwin.
21413 * configure.ac: Add subst of `target_os'.
21414 Check `target_os' also before setting TARGET_OBJ2ELF.
21415 Add `--enable-grub-pe2elf'.
21416
042bd419 214172008-08-08 Robert Millan <rmh@aybabtu.com>
21418
21419 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21420 (grub_last_time): Change type to grub_uint64_t.
21421 (grub_disk_open): Migrate code from to using grub_get_time_ms().
21422 (grub_disk_close): Likewise.
21423
21424 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
21425 (run_menu): Migrate code from to using grub_get_time_ms().
21426
21427 * util/misc.c (grub_get_time_ms): New function.
21428
7f280db5 214292008-08-08 Marco Gerards <marco@gnu.org>
21430
21431 * disk/ata.c (grub_ata_regget): Change return type to
21432 `grub_uint8_t'.
21433 (grub_ata_regget2): Likewise.
21434 (grub_ata_wait_status): New function.
21435 (grub_ata_wait_busy): Removed function, updated all users to use
21436 `grub_ata_wait_status'.
21437 (grub_ata_wait_drq): Likewise.
21438 (grub_ata_cmd): New function.
21439 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
21440 error handling.
21441 (grub_ata_pio_write): Add error handling.
21442 (grub_atapi_identify): Likewise.
21443 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
21444 handling.
21445 (grub_ata_identify): Use `grub_ata_cmd' and improve error
21446 handling. Actually use the detected registers. Reorder the
21447 detection logic such that it is easier to read.
21448 (grub_ata_pciinit): Do not assign the same ID to each controller.
21449 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
21450 handling.
21451 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
21452
21453 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
21454
1fbc5e66 214552008-08-08 Marco Gerards <marco@gnu.org>
21456
21457 * NEWS: Update.
21458
819ce6c0 214592008-08-07 Bean <bean123ch@gmail.com>
21460
21461 * include/grub/x86_64/pci.h: New file.
21462
5c41d44d 214632008-08-07 Christian Franke <franke@computer.org>
21464
21465 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
21466 (TIMER2_GATE): Likewise.
21467 (grub_pit_wait): Add enable/disable of the timer2 gate
21468 bit of port 0x61. This fixes a possible infinite loop.
21469
5ebc275d 214702008-08-07 Bean <bean123ch@gmail.com>
21471
21472 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
21473 kern/i386/tsc.c and kern/i386/pit.c.
21474
21475 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
21476 x86_64 platform.
21477
21478 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
21479 <grub/i386/tsc.h>.
21480
21481 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
21482
e383b3d0 214832008-08-07 Bean <bean123ch@gmail.com>
21484
21485 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
21486
21487 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
21488
21489 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
21490 multiple inclusion. Add #include <grub/types.h>.
21491
1cbb58ac 214922008-08-06 Christian Franke <franke@computer.org>
21493
21494 * conf/common.rmk: Build and install `10_windows'.
21495 * util/grub.d/10_windows.in: New script.
21496
337f5a1e 214972008-08-06 Pavel Roskin <proski@gnu.org>
21498
21499 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
21500
057bc4ac 215012008-08-06 Robert Millan <rmh@aybabtu.com>
21502
21503 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
21504 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
21505
2b99f123 215062008-08-06 Bean <bean123ch@gmail.com>
21507
21508 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
21509 (grub_pxefs_fs_int): Remove dummy definition.
21510 (grub_pxefs_open): Use data->block_size to store the current block
21511 size setting.
21512 (grub_pxefs_read): Use block size stored in data->block_size. As the
21513 value of grub_pxe_blksize can be changed after the file is opened.
21514
9f0234cb 215152008-08-06 Bean <bean123ch@gmail.com>
21516
21517 * fs/i386/pc/pxe.c (curr_file): new variable.
21518 (grub_pxefs_open): Simply the handling of pxe file system. Don't
21519 require the dummy internal file system anymore.
21520 (grub_pxefs_read): Removed.
21521 (grub_pxefs_close): Likewise.
21522 (grub_pxefs_fs_int): Likewise.
21523 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
21524 connection when we switch file.
21525 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
21526
a55d42e0 215272008-08-06 Robert Millan <rmh@aybabtu.com>
21528
21529 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
21530 `halt.mod'.
21531 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
21532 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
21533
21534 * kern/i386/halt.c: New file.
21535 * kern/i386/reboot.c: Likewise.
21536 * include/grub/i386/reboot.h: Likewise.
21537 * include/grub/i386/halt.h: Likewise.
21538
21539 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
21540 Include `<grub/cpu/halt.h>'.
21541 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
21542 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
21543
21544 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
21545 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
21546 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
21547 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
21548 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
21549 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
21550 from here ...
21551 * include/grub/i386/at_keyboard.h: ... to here.
21552
24371d26 215532008-08-05 Robert Millan <rmh@aybabtu.com>
21554
21555 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
21556 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
21557 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
21558 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21559 `kern/generic/millisleep.c'.
21560
21561 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
21562 instead of grub_get_rtc().
21563 (grub_tsc_init): Initialize `tsc_boot_time'.
21564
21565 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
21566 (grub_machine_init): Use grub_tsc_init() rather than
21567 installing an RTC-based handler via grub_install_get_time_ms().
21568
21569 * kern/i386/pit.c: New file.
21570 * include/grub/i386/pit.h: Likewise.
21571
9e7007b3 215722008-08-05 Bean <bean123ch@gmail.com>
21573
21574 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
21575
21576 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
21577 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
21578 (pxe_mod_SOURCES): New macro.
21579 (pxe_mod_CFLAGS): Likewise.
21580 (pxe_mod_LDFLAGS): Likewise.
21581 (pxecmd_mod_SOURCES): Likewise.
21582 (pxecmd_mod_CFLAGS): Likewise.
21583 (pxecmd_mod_LDFLAGS): Likewise.
21584
21585 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
21586 (grub_pxe_call): Likewise.
21587
21588 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
21589
21590 * commands/i386/pc/pxecmd.c: New file.
21591
9f0234cb 21592 * fs/i386/pc/pxe.c: Likewise.
9e7007b3 21593
21594 * include/grub/i386/pc/pxe.h: Likewise.
21595
6977d49f 215962008-08-05 Bean <bean123ch@gmail.com>
21597
21598 * util/console.c (grub_console_cur_color): New variable.
21599 (grub_console_standard_color): Likewise.
21600 (grub_console_normal_color): Likewise.
21601 (grub_console_highlight_color): Likewise.
21602 (color_map): Likewise.
21603 (use_color): Likewise.
21604 (NUM_COLORS): New macro.
21605 (grub_ncurses_setcolorstate): Handle color properly.
21606 (grub_ncurses_setcolor): Don't change color here, just remember the
21607 settings, color will be set in grub_ncurses_setcolorstate.
21608 (grub_ncurses_getcolor): New function.
21609 (grub_ncurses_init): Initialize color pairs.
21610 (grub_ncurses_term): New member grub_ncurses_getcolor.
21611
9c2ff3ee 216122008-08-05 Colin D Bennett <colin@gibibit.com>
337f5a1e 21613
9c2ff3ee 21614 High resolution timer support. Implemented for x86 CPUs using TSC.
21615 Extracted generic grub_millisleep() so it's linked in only as needed.
21616 This requires a Pentium compatible CPU; if the RDTSC instruction is
21617 not supported, then it falls back on the generic grub_get_time_ms()
21618 implementation that uses the machine's RTC.
21619
21620 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
21621 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
21622 `kern/generic/millisleep.c'.
21623
21624 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
21625 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
21626
21627 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
21628 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
21629
21630 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21631
21632 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21633 `kern/generic/millisleep.c'.
21634
21635 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
21636
21637 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
21638
21639 * kern/generic/rtc_get_time_ms.c: New file.
21640
21641 * kern/generic/millisleep.c: New file.
337f5a1e 21642
9c2ff3ee 21643 * kern/misc.c: Don't include
21644 <kern/time.h> anymore.
21645 (grub_millisleep_generic): Removed.
21646
21647 * commands/sleep.c (grub_interruptible_millisleep): Uses
21648 grub_get_time_ms() instead of grub_get_rtc().
21649
21650 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
21651 function.
21652 (grub_cpu_is_cpuid_supported): New inline function.
21653 (grub_cpu_is_tsc_supported): New inline function.
21654 (grub_tsc_init): New function prototype.
21655 (grub_tsc_get_time_ms): New function prototype.
21656
21657 * kern/i386/tsc.c (grub_get_time_ms): New file.
21658
21659 * include/grub/time.h: Include <grub/types.h.
21660 (grub_millisleep_generic): Removed.
21661 (grub_get_time_ms): New prototype.
21662 (grub_install_get_time_ms): New prototype.
21663 (grub_rtc_get_time_ms): New prototype.
21664
21665 * kern/time.c (grub_get_time_ms): New function.
21666 (grub_install_get_time_ms): New function.
21667
21668 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
21669 <grub/time.h> anymore.
21670 (grub_millisleep): Removed.
21671 (grub_machine_init): Call grub_tsc_init.
21672
21673 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
21674 get_time_ms() implementation.
21675
21676 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
21677 (ieee1275_get_time_ms): New function.
21678 (grub_machine_init): Install get_time_ms() implementation.
21679
21680 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
21681 (grub_machine_init): Call grub_tsc_init().
21682 (grub_millisleep): Removed.
bf06a93f 21683
9c2ff3ee 21684 * kern/ieee1275/init.c (grub_millisleep): Removed.
21685 (grub_machine_init): Install ieee1275_get_time_ms()
21686 implementation.
21687 (ieee1275_get_time_ms): New function.
21688 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
21689 real work.
21690
9ec92aaf 216912008-08-05 Marco Gerards <marco@gnu.org>
21692
21693 * disk/ata.c: Include <grub/pci.h>.
21694 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
21695 (grub_ata_initialize): Rewritten.
21696 (grub_ata_device_initialize): New function.
21697
8d23f507 216982008-08-04 Pavel Roskin <proski@gnu.org>
21699
21700 * kern/main.c: Include grub/mm.h.
21701
5e15ee3d 217022008-08-04 Robert Millan <rmh@aybabtu.com>
21703
21704 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
21705 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
21706 corruption problem).
21707
a9053f8f 217082008-08-04 Robert Millan <rmh@aybabtu.com>
21709
21710 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
21711 warnings introduced in my last commit.
21712
dd19c7d7 217132008-08-03 Robert Millan <rmh@aybabtu.com>
21714
21715 Make PCI available on all i386 architectures.
21716
21717 * include/grub/i386/pc/pci.h: Move from here ...
21718 * include/grub/i386/pci.h: ... to here.
21719
21720 * include/grub/i386/pc/pci.h: Remove.
21721 * include/grub/i386/efi/pci.h: Remove.
21722 * include/grub/x86_64/efi/pci.h: Remove.
21723
21724 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
21725 `<grub/cpu/pci.h>'.
21726
21727 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
21728 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
21729 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
21730
21731 * conf/i386-ieee1275.rmk: Likewise.
21732
e14a6184 217332008-08-03 Robert Millan <rmh@aybabtu.com>
21734
21735 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
21736 (grub_console_setcursor): Make it possible to set cursor off.
21737
52768e37 217382008-08-03 Robert Millan <rmh@aybabtu.com>
21739
21740 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
21741 of modules instead of assuming which platform provides what.
21742 * util/update-grub.in: Likewise.
21743
2d52f57f 217442008-08-03 Robert Millan <rmh@aybabtu.com>
21745
21746 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
21747 instead of `grub_install_dos_part' to determine whether a drive needs
21748 to be prepended to prefix (`grub_install_dos_part' is not reliable,
825aa57a 21749 because it can be overridden when loading GRUB via Multiboot).
2d52f57f 21750
2a5cd121 217512008-08-02 Robert Millan <rmh@aybabtu.com>
21752
21753 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
21754
93808428 217552008-08-02 Robert Millan <rmh@aybabtu.com>
21756
21757 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
21758 of informational grub_dprintf() calls.
21759
3bd0a12a 217602008-08-02 Robert Millan <rmh@aybabtu.com>
21761
21762 * disk/memdisk.c (memdisk_size): Don't initialize.
21763 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
21764
21765 * include/grub/i386/pc/kernel.h
21766 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
21767 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
21768 (grub_memdisk_image_size, grub_arch_memdisk_addr)
21769 (grub_arch_memdisk_size): Remove.
21770
21771 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
21772 field (was only used to transfer a constant). Add `type' field to
21773 support multiple module types.
21774 (grub_module_iterate): New function.
21775
21776 * kern/device.c (grub_device_open): Do not hide error messages
21777 when grub_disk_open() fails. Use grub_print_error() instead.
21778
21779 * kern/i386/pc/init.c (grub_arch_modules_addr)
21780 (grub_arch_memdisk_size): Remove functions.
21781 (grub_arch_modules_addr): Return the module address in high memory
21782 (now that it isn't copied anymore).
21783
21784 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
21785 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
21786 decompression routine (grub_total_module_size already includes that
21787 now). Don't copy modules back to low memory.
21788
21789 * kern/main.c: Include `<grub/mm.h>'.
21790 (grub_load_modules): Split out (and use) ...
21791 (grub_module_iterate): ... this function, which iterates through
21792 module objects and runs a hook.
21793 Comment out grub_mm_init_region() call, as it would cause non-ELF
21794 modules to be overwritten.
21795
21796 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
21797 the memdisk image in its own region, make it part of the module list.
21798 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
21799 (main): Parse --memdisk|-m option, and pass user-provided path as
21800 parameter to generate_image().
21801 (add_segments): Pass `memdisk_path' down to load_modules().
21802 (load_modules): Embed memdisk image in module section when requested.
21803 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
21804 `header.type' instead of `header.offset'.
21805
21806 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
21807 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
21808 (memdisk_mod_LDFLAGS): New variables.
21809 * conf/i386-coreboot.rmk: Likewise.
21810 * conf/i386-ieee1275.rmk: Likewise.
21811
a927cc73 218122008-08-02 Robert Millan <rmh@aybabtu.com>
21813
21814 * loader/i386/pc/multiboot.c (playground, forward_relocator)
21815 (backward_relocator): New variables. Used to allocate and relocate
21816 the payload, respectively.
21817 (grub_multiboot_load_elf32): Load into heap instead of requested
825aa57a 21818 address, install the appropriate relocator code in each bound of
a927cc73 21819 the payload, and set the entry point such that
21820 grub_multiboot_real_boot() will jump to one of them.
21821
21822 * kern/i386/loader.S (grub_multiboot_payload_size)
21823 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21824 (grub_multiboot_payload_entry_offset): New variables.
21825 (grub_multiboot_real_boot): Set cpu context to what the relocator
21826 expects, and jump to the relocator instead of the payload.
21827
21828 * include/grub/i386/loader.h (grub_multiboot_payload_size)
21829 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
21830 (grub_multiboot_payload_entry_offset): Export.
21831
b15d8a0c 218322008-08-01 Bean <bean123ch@gmail.com>
21833
21834 * normal/menu_entry.c (editor_getline): Don't return the original
21835 string as result, as it will be released by lexer once it has done
21836 using it.
21837
cdfb3d22 218382008-08-01 Robert Millan <rmh@aybabtu.com>
21839
21840 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
21841 within menuentries, not before them.
21842 util/grub.d/10_hurd.in: Likewise.
21843
9175e93d 218442008-08-01 Bean <bean123ch@gmail.com>
21845
21846 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
21847 (bufio_mod_SOURCES): New macro.
21848 (bufio_mod_CFLAGS): Likewise.
21849 (bufio_mod_LDFLAGS): Likewise.
21850
21851 * include/grub/bufio.h: New file.
21852
21853 * io/bufio.c: Likewise.
21854
21855 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
21856 (grub_video_reader_png): Use grub_buffile_open to open file.
21857
21858 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
21859 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
21860
21861 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
21862 (grub_video_reader_tga): Use grub_buffile_open to open file.
21863
21864 * font/manager.c: Include <grub/bufio.h>.
21865 (add_font): Use grub_buffile_open to open file.
21866
3d8383e7 218672008-07-31 Robert Millan <rmh@aybabtu.com>
21868
21869 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
21870 ELF segments, use a macro for arbitrarily accessing any of them instead
21871 of preparing a pointer that allows access to one at a time.
21872 (grub_multiboot_load_elf64): Likewise.
21873
16e641b6 218742008-07-31 Bean <bean123ch@gmail.com>
21875
21876 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
21877 GRUB_KERNEL_MACHINE_DATA_END.
21878
59198b72 218792008-07-30 Robert Millan <rmh@aybabtu.com>
21880
21881 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
21882 Increase from 0x50 to 0x60.
21883 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
21884 use UUIDs to identify the root drive for them. If that's not
21885 possible, abort.
21886 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
21887 check, for cross-disk installs.
21888
ae88bca3 218892008-07-30 Robert Millan <rmh@aybabtu.com>
21890
21891 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
21892 is non-empty, use it to set the `prefix' environment variable instead
21893 of the usual approach.
21894 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
21895 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
21896 environment variable instead of dummy make_install_device().
21897
21898 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
21899 (start): Insert a data section, with `grub_prefix' variable.
825aa57a 21900 * kern/i386/linuxbios/startup.S: Likewise.
ae88bca3 21901
21902 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
21903 New variable reference.
21904 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
21905 New macro. Defines offset of `grub_prefix' within startup.S (relative
21906 to `start').
21907 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
21908 section within startup.S (relative to `start').
21909 * include/grub/i386/coreboot/kernel.h: Likewise.
21910
21911 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
21912 Overwrite grub_prefix with its contents, at the beginning of the
21913 first segment.
21914 (main): Understand -p|--prefix.
21915
14f41dd1 219162008-07-30 Robert Millan <rmh@aybabtu.com>
21917
21918 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
21919
4ca049a3 219202008-07-30 Robert Millan <rmh@aybabtu.com>
21921
21922 * term/i386/pc/vga_text.c (grub_console_cls): Use
21923 grub_console_gotoxy() to go back to beginning of the screen.
21924 Found by Patrick Georgi <patrick.georgi@coresystems.de>
21925
2921d337 219262008-07-29 Christian Franke <franke@computer.org>
21927
21928 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
21929 Add conversion of emulated mount points on Cygwin.
21930
b609876d 219312008-07-29 Christian Franke <franke@computer.org>
21932
21933 * util/update-grub.in: Add a check for admin
21934 group on Cygwin.
21935 Remove old `grub.cfg.new' before creation.
21936 Add `-f' to `mv' to handle the different filesystem
21937 semantics of Windows.
21938
e93e4679 219392008-07-29 Bean <bean123ch@gmail.com>
21940
21941 * normal/main.c (get_line): Fix buffer overflow bug.
21942
41694fd0 219432008-07-28 Robert Millan <rmh@aybabtu.com>
21944
21945 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
21946 (struct grub_apple_header): New struct. Describes the layout of
21947 the partmap header.
21948 (apple_partition_map_iterate): Check the header magic as well as the
21949 partition magic (which was already being checked).
21950
cfd0b4e6 219512008-07-28 Pavel Roskin <proski@gnu.org>
21952
21953 * genmk.rb: Add a warning to the beginning of the output that
21954 it's a generated file and should not be edited.
21955
93cce016 219562008-07-28 Robert Millan <rmh@aybabtu.com>
21957
21958 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
21959 with the same number are found, just use issue a warning with
21960 grub_dprintf(), as this error has been reported to be non-fatal.
c298def0 21961
cd1df915 219622008-07-27 Robert Millan <rmh@aybabtu.com>
21963
21964 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
21965 information.
21966
b70a8427 219672008-07-27 Bean <bean123ch@gmail.com>
21968
21969 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
21970 (grub_fat_find_dir): Ignore case when comparing filename.
21971
8f5e379f 219722008-07-27 Bean <bean123ch@gmail.com>
21973
21974 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
21975 smallino, as it's more descriptive, and i8count can be confused with
21976 the other field count.
21977 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
21978 inode type.
21979
a85cd5a0 219802008-07-27 Bean <bean123ch@gmail.com>
21981
21982 * commands/crc.c: New file.
21983
21984 * lib/crc.c: Likewise.
21985
21986 * include/grub/lib/crc.h: Likewise.
21987
21988 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
21989
21990 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
21991 (hexdump): Move this function to ...
21992
21993 * lib/hexdump.c: ... here.
21994
21995 * include/grub/hexdump.h: Renamed to ...
21996
21997 * include/grub/lib/hexdump.h: ... this.
21998
21999 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
22000
22001 * util/grub-editenv.c: Likewise.
22002
22003 * include/envblk.h: Renamed to ...
22004
22005 * include/lib/envblk.h: ... this.
22006
22007 * util/envblk.c: Renamed to ...
22008
22009 * lib/envblk.c: ... this.
22010
22011 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
22012 lib/hexdump.c.
22013 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
22014 (pkglib_MODULES): Add crc.mod.
22015 (hexdump_mod_SOURCES): Add lib/hexdump.c.
22016 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
22017 (crc_mod_SOURCES): New macro.
22018 (crc_mod_CFLAGS): Likewise.
22019 (crc_mod_LDFLAGS): Likewise.
22020
22021 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
22022
22023 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22024
22025 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22026
22027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22028
22029 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22030
c298def0 220312008-07-27 Felix Zielcke <fzielcke@z-51.de>
8749e9e5 22032
22033 * commands/help.c: Include <grub/term.h>.
22034 (TERM_WIDTH): Removed. Updated all users.
22035
cc349fb3 220362008-07-27 Pavel Roskin <proski@gnu.org>
22037
22038 * util/getroot.c (find_root_device): Rephrase a comment to avoid
22039 spurious warnings about a comment within a comment.
22040
9051607e 220412008-07-25 Robert Millan <rmh@aybabtu.com>
22042
22043 * util/getroot.c (find_root_device): Skip devices that match
22044 /dev/dm-[0-9]. This lets the real device be found for any type of
22045 abstraction (LVM, EVMS, RAID..).
22046 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
22047 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
22048 device is found first, find_root_device() will now skip it.
22049
01453bfc 220502008-07-24 Pavel Roskin <proski@gnu.org>
22051
22052 * include/grub/types.h: Use __builtin_bswap32() and
22053 __builtin_bswap64() with gcc 4.3 and newer.
22054
6af9849f 220552008-07-24 Christian Franke <franke@computer.org>
22056
3a0fa256 22057 * util/i386/pc/grub-install.in: If `--debug' is specified,
22058 pass `--verbose' to grub-setup.
22059 Abort script if make_system_path_relative_to_its_root() fails.
22060
7810e747 220612008-07-24 Bean <bean123ch@gmail.com>
22062
22063 * configure.ac: Fixed a bug caused by the previous cygwin patch,
22064 variable `target_platform' should be `platform'.
22065
42290e17 220662008-07-24 Bean <bean123ch@gmail.com>
22067
51cc5193 22068 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
42290e17 22069 (grub_png_init_fixed_block): New function.
22070 (grub_png_decode_image_data): Handle fixed huffman code compression.
22071
2a8a80e4 220722008-07-24 Bean <bean123ch@gmail.com>
22073
22074 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
22075 (grub_pe2elf_SOURCES): New macro.
22076 (CLEANFILES): Add grub-pe2elf.
22077
22078 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
22079 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
22080 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
22081 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
22082 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
22083 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
22084 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
22085 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
22086 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
22087 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
22088 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
22089 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
22090 (GRUB_PE32_DT_FUNCTION): Likewise.
22091 (GRUB_PE32_REL_I386_DIR32): Likewise.
22092 (GRUB_PE32_REL_I386_REL32): Likewise.
22093 (grub_pe32_symbol): New structure.
22094 (grub_pe32_reloc): Likewise.
22095
22096 * util/grub-pe2elf.c: New file.
22097
22098 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
22099 start symbol in non pc platform.
22100
22101 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
22102
22103 The following patches are from Christian Franke.
22104
22105 * include/grub/dl.h: Remove .previous, gas supports this only
22106 for ELF format.
22107
22108 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
22109 Remove .type, gas supports this only for ELF format.
22110
22111 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
22112 nullbytes in symbol table. This fixes an infinite loop if table is
22113 zero filled.
22114
22115 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
22116 TARGET_IMG_LDFLAGS and EXEEXT.
22117
22118 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
22119 TARGET_IMG_LDFLAGS_AC.
22120 (grub_CHECK_STACK_ARG_PROBE): New function.
22121
22122 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
22123
22124 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
22125
22126 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
22127 to set TARGET_IMG_LD* accordingly.
22128 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
22129 Add call to grub_CHECK_STACK_ARG_PROBE.
22130 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
22131
22132 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
22133
22134 * genmk.rb: Add EXEEXT to CLEANFILES.
22135
12ccdb75 221362008-07-23 Robert Millan <rmh@aybabtu.com>
22137
22138 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
22139 define the codes for arrows and lines used for the menu).
22140 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
22141 as well.
22142
22143 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
22144 fonts, because the latter are too slow.
22145
18eeaf04 221462008-07-21 Bean <bean123ch@gmail.com>
22147
22148 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
22149 a20. Run keyboard test last, as it will cause macbook to halt.
22150
b095e2ad 221512008-07-18 Pavel Roskin <proski@gnu.org>
22152
22153 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
22154 load foreign architecture modules correctly anyway. Keep
22155 support for loading host architecture modules, whether we
22156 compile them or not.
22157
737feb35 221582008-07-17 Pavel Roskin <proski@gnu.org>
22159
3f4ce737 22160 * configure.ac: Use -m32 or -m64 regardless of whether we had to
22161 change target_cpu. The compiler default can mismatch target_cpu
22162 in any case.
22163
4ad2d049 22164 * disk/efi/efidisk.c: Fix format warnings on x86_64.
22165 * kern/efi/efi.c: Likewise.
22166
f6130a12 22167 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
22168 target compiler is functional.
22169 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
22170 are set up.
22171
58393a2d 22172 * configure.ac: Default to efi platform for x86_64-apple. Allow
22173 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
22174 adjustments from the rest, only do them if target is not
22175 explicitly given. Merge other adjustments with the final sanity
22176 check. Remove an extraneous check for supported CPU. Be
22177 specific which CPU and which platform is not supported.
22178
737feb35 22179 * configure.ac: Default to pc platform for x86_64.
22180
546f966a 221812008-07-17 Robert Millan <rmh@aybabtu.com>
22182
22183 Partial LinuxBIOS -> Coreboot rename.
22184
22185 * conf/i386-linuxbios.rmk: Renamed to ...
22186 * conf/i386-coreboot.rmk: ... this.
22187 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
22188 * configure.ac: Accept "coreboot" as input platform (but maintain
22189 compatibility with "linuxbios").
22190 * include/grub/i386/linuxbios: Renamed to ...
22191 * include/grub/i386/coreboot: ... this.
22192
20011694 221932008-07-17 Bean <bean123ch@gmail.com>
22194
22195 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
c11f6d16 22196 (appleldr_mod_SOURCE): New variable.
20011694 22197 (appleldr_mod_CFLAGS): Likewise.
22198 (appleldr_mod_LDFLAGS): Likewise.
22199 (pci_mod_SOURCES): Likewise.
22200 (pci_mod_CFLAGS): Likewise.
22201 (pci_mod_LDFLAGS): Likewise.
22202 (lspci_mod_SOURCES): Likewise.
22203 (lspci_mod_CFLAGS): Likewise.
22204 (lspci_mod_LDFLAGS): Likewise.
22205
22206 * conf/x86_64-efi.rmk: New file.
22207
22208 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
22209 macro.
22210 (grub_efidisk_write): Likewise.
22211
22212 * include/efi/api.h (efi_call_0): New macro.
22213 (efi_call_1): Likewise.
22214 (efi_call_2): Likewise.
22215 (efi_call_3): Likewise.
22216 (efi_call_4): Likewise.
22217 (efi_call_5): Likewise.
22218 (efi_call_6): Likewise.
22219
22220 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
22221 grub_rescue_cmd_chainloader.
22222
22223 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
22224 (grub_pe32_optional_header): Change some fields based on i386 or
22225 x86_64 platform.
22226 (GRUB_PE32_PE32_MAGIC): Likewise.
22227
22228 * include/grub/efi/uga_draw.h: New file.
22229
22230 * include/grub/elf.h (STN_ABS): New constant.
22231 (R_X86_64_NONE): Relocation constant for x86_64.
22232 (R_X86_64_64): Likewise.
22233 (R_X86_64_PC32): Likewise.
22234 (R_X86_64_GOT32): Likewise.
22235 (R_X86_64_PLT32): Likewise.
22236 (R_X86_64_COPY): Likewise.
22237 (R_X86_64_GLOB_DAT): Likewise.
22238 (R_X86_64_JUMP_SLOT): Likewise.
22239 (R_X86_64_RELATIVE): Likewise.
22240 (R_X86_64_GOTPCREL): Likewise.
22241 (R_X86_64_32): Likewise.
22242 (R_X86_64_32S): Likewise.
22243 (R_X86_64_16): Likewise.
22244 (R_X86_64_PC16): Likewise.
22245 (R_X86_64_8): Likewise.
22246 (R_X86_64_PC8): Likewise.
22247
22248 * include/grub/i386/efi/pci.h: New file.
22249
22250 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
22251 Change it value based on platform.
22252 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
22253 (GRUB_E820_RAM): Likewise.
22254 (GRUB_E820_RESERVED): Likewise.
22255 (GRUB_E820_ACPI): Likewise.
22256 (GRUB_E820_NVS): Likewise.
22257 (GRUB_E820_EXEC_CODE): Likewise.
22258 (GRUB_E820_MAX_ENTRY): Likewise.
22259 (grub_e820_mmap): New structure.
22260 (linux_kernel_header): Change the efi field according to different
22261 kernel version, also field from linux_kernel_header.
22262
22263 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
22264
22265 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
22266 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
22267 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
22268 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
22269 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
22270 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
22271 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
22272 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
22273 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
22274 (GRUB_PCI_ADDR_IO_MASK): Likewise.
22275
22276 * include/grub/x86_64/efi/kernel.h: New file.
22277
22278 * include/grub/x86_64/efi/loader.h: Likewise.
22279
22280 * include/grub/x86_64/efi/machine.h: Likewise.
22281
22282 * include/grub/x86_64/efi/pci.h: Likewise.
22283
22284 * include/grub/x86_64/efi/time.h: Likewise.
22285
22286 * include/grub/x86_64/linux.h: Likewise.
22287
22288 * include/grub/x86_64/setjmp.h: Likewise.
22289
22290 * include/grub/x86_64/time.h: Likewise.
22291
22292 * include/grub/x86_64/types.h: Likewise.
22293
22294 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
22295 GRUB_TARGET_SIZEOF_VOID_P.
22296
22297 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
22298 (grub_efi_locate_handle): Likewise.
22299 (grub_efi_open_protocol): Likewise.
22300 (grub_efi_set_text_mode): Likewise.
22301 (grub_efi_stall): Likewise.
22302 (grub_exit): Likewise.
22303 (grub_reboot): Likewise.
22304 (grub_halt): Likewise.
22305 (grub_efi_exit_boot_services): Likewise.
22306 (grub_get_rtc): Likewise.
22307
22308 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
22309 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
22310 (grub_efi_allocate_pages): Wrap efi calls.
22311 (grub_efi_free_pages): Wrap efi calls.
22312 (grub_efi_get_memory_map): Wrap efi calls.
22313
22314 * kern/x86_64/dl.c: New file.
22315
22316 * kern/x86_64/efi/callwrap.S: Likewise.
22317
22318 * kern/x86_64/efi/startup.S: Likewise.
22319
22320 * loader/efi/appleloader.c: Likewise.
22321
22322 * loader/efi/chainloader.c (cmdline): New variable.
22323 (grub_chainloader_unload): Wrap efi calls.
22324 (grub_chainloader_boot): Likewise.
22325 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
22326 command line.
22327
22328 * loader/efi/chainloader_normal.c (chainloader_command):
22329 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
22330 command line.
22331
22332 * loader/i386/efi/linux.c (allocate_pages): Change allocation
22333 method.
22334 (grub_e820_add_region): New function.
22335 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
22336 booting.
22337 (grub_find_video_card): New function.
22338 (grub_linux_setup_video): New function.
22339 (grub_rescue_cmd_linux): Probe for video information.
22340
22341 * normal/x86_64/setjmp.S: New file.
22342
22343 * term/efi/console.c (map_char): New function.
22344 (grub_console_putchar): Map unicode char.
22345 (grub_console_checkkey): Wrap efi calls.
22346 (grub_console_getkey): Likewise.
22347 (grub_console_getwh): Likewise.
22348 (grub_console_gotoxy): Likewise.
22349 (grub_console_cls): Likewise.
22350 (grub_console_setcolorstate): Likewise.
22351 (grub_console_setcursor): Likewise.
22352
22353 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
22354
59652a20 223552008-07-16 Pavel Roskin <proski@gnu.org>
22356
ef294055 22357 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
22358 format strings.
22359
59652a20 22360 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
22361 pointer, not an integer. This fixes a warning and prevents
22362 precision loss on 64-bit systems.
22363 (relocate_addresses): Remove unneeded cast.
22364
afc3b5d7 223652008-07-15 Pavel Roskin <proski@gnu.org>
22366
506b2b3e 22367 * kern/i386/ieee1275/init.c: Include grub/cache.h.
22368
62ead89c 22369 * term/ieee1275/ofconsole.c: Disable code unused on i386.
22370
c4cd51d7 22371 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
22372 Fix comparison between signed and unsigned.
22373
0d3d8f28 22374 * include/grub/i386/ieee1275/console.h: Declare
22375 grub_console_init() and grub_console_fini().
22376
8804b286 22377 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
22378 It's empty and unused.
22379
ee01cf35 22380 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
22381 beginning to avoid warnings with some compilers.
22382
afc3b5d7 22383 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
22384 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
22385
e4e8eaa5 223862008-07-14 Pavel Roskin <proski@gnu.org>
22387
407aceb4 22388 * kern/env.c (grub_register_variable_hook): Don't copy empty
22389 string, it leaks memory. Pass "" to grub_env_set(), it should
22390 handle constant strings.
22391
e4e8eaa5 22392 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
22393 * commands/cmp.c (grub_cmd_cmp): Likewise.
22394 * kern/dl.c (grub_dl_flush_cache): Likewise.
22395 (grub_dl_load_core): Likewise.
22396 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
22397 (grub_elf64_load_phdrs): Likewise.
22398
d4e2dad3 223992008-07-13 Pavel Roskin <proski@gnu.org>
22400
22401 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
22402 between signed and unsigned.
22403 (LzmaEnc_Finish): Fix warning about an unused parameter.
22404
aa24b516 224052008-07-13 Bean <bean123ch@gmail.com>
22406
22407 * Makefile.in (enable_lzo): New rule.
22408
22409 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
22410
22411 * configure.ac (ENABLE_LZO): New option --enable-lzo.
22412
22413 * boot/i386/pc/lnxboot.S: #include <config.h>.
22414
22415 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
fe987087 22416 its value according to the compression algorithm used, lzo or lzma.
aa24b516 22417
22418 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
22419 compression algorithm according to configure macro.
22420
22421 * kern/i386/pc/startup.S (codestart): Likewise.
22422
22423 * kern/i386/pc/lzma_decode.S: New file.
22424
22425 * include/grub/lib/LzFind.h: Likewise.
22426
22427 * include/grub/lib/LzHash.h: Likewise.
22428
22429 * include/grub/lib/LzmaDec.h: Likewise.
22430
22431 * include/grub/lib/LzmaEnc.h: Likewise.
22432
22433 * include/grub/lib/LzmaTypes.h: Likewise.
22434
22435 * lib/LzFind.c: Likewise.
22436
22437 * lib/LzmaDec.c: Likewise.
22438
22439 * lib/LzmaEnc.c: Likewise.
22440
4ae821ac 224412008-07-13 Bean <bean123ch@gmail.com>
22442
22443 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
22444 (grub_ext4_extent_header): New structure.
22445 (grub_ext4_extent): Likewise.
22446 (grub_ext4_extent_idx): Likewise.
22447 (grub_ext4_find_leaf): New function.
22448 (grub_ext2_read_block): Handle extents.
22449
9a745147 224502008-07-12 Robert Millan <rmh@aybabtu.com>
22451
22452 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
22453
d49a4cf6 224542008-07-11 Robert Millan <rmh@aybabtu.com>
22455
22456 * util/grub.d/40_custom.in: New file. Example on how to add custom
22457 entries to /etc/grub.d.
22458 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
22459 40_custom (implicitly, by merging all the grub.d rules).
22460
947414b4 224612008-07-11 Pavel Roskin <proski@gnu.org>
22462
0059cf6f 22463 * commands/read.c (grub_getline): Fix invalid memory access.
22464 Don't add newline to the variable value.
22465
947414b4 22466 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
22467 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
22468 (serial_hw_get_port): Check validity of the port number.
22469 (grub_cmd_serial): Check return value of serial_hw_get_port().
22470
62a02d00 224712008-07-07 Pavel Roskin <proski@gnu.org>
22472
22473 * boot/i386/pc/diskboot.S (notification_string): Replace
22474 "Loading kernel" with just "loading". This is shorter, less
22475 confusing and saves a few bytes for possible future changes.
22476
3e5581b0 224772008-07-05 Pavel Roskin <proski@gnu.org>
22478
ea387a48 22479 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
22480 size for ATAPI devices, they are undefined. Output sector
22481 number in decimal form.
22482
3e5581b0 22483 * disk/ata.c: Use named constants for status bits.
22484
fdecb8fd 224852008-07-04 Pavel Roskin <proski@gnu.org>
22486
bcd35b90 22487 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
22488 grub_addr_t before casting it to the void pointer to fix a
22489 warning. Non-addressable regions are discarded earlier.
22490 (grub_arch_modules_addr): Cast _end to grub_addr_t.
22491 * kern/i386/linuxbios/table.c: Include grub/misc.h.
22492 (check_signature): Don't shadow table_header.
22493 (grub_linuxbios_table_iterate): Cast numeric constants to
22494 grub_linuxbios_table_header_t.
22495 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
22496 grub_stop().
22497
af58ab3d 22498 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
22499 prevent warnings.
22500
1759aa57 22501 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
22502 pointer, which can cause warnings. Support 64-bit addresses.
22503
fdecb8fd 22504 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
22505 of sizeof(long). This fixes PowerPC image generation on x86_64.
22506
8516d2a8 225072008-07-04 Robert Millan <rmh@aybabtu.com>
22508
22509 This fixes a performance issue when pc & gpt partmap iterators
22510 didn't abort iteration even after our hook found what it was
fe987087 22511 looking for (often causing expensive probes of non-existent drives).
8516d2a8 22512
22513 Some callers relied on previous buggy behaviour, since they would
34c44600 22514 raise an error when their own hooks caused early abortion of its
8516d2a8 22515 iteration.
22516
22517 * kern/device.c (grub_device_open): Improve error message.
22518 * disk/lvm.c (grub_lvm_open): Likewise.
22519 * disk/raid.c (grub_raid_open): Likewise.
22520
22521 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
22522 when hook requests it, independently of grub_errno.
22523 (pc_partition_map_probe): Do not fail when find_func() caused
22524 early abortion of pc_partition_map_iterate().
22525
22526 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
22527 when hook requests it, independently of grub_errno.
22528 (gpt_partition_map_probe): Do not fail when find_func() caused
22529 early abortion of gpt_partition_map_iterate().
22530
22531 * kern/partition.c (grub_partition_iterate): Abort parent iteration
22532 when hook requests it, independently of grub_errno. Do not fail when
22533 part_map_iterate_hook() caused early abortion of p->iterate().
22534
22535 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
22536 when grub_partition_iterate() returned with non-zero.
22537
277d0de9 225382008-07-03 Pavel Roskin <proski@gnu.org>
22539
22540 * disk/ata.c (grub_ata_pio_write): Check status before writing,
22541 like we do in grub_ata_pio_read().
22542 (grub_ata_readwrite): Always write individual sectors. Fix the
22543 sector count for the remainder.
22544 (grub_ata_write): Enable writing to ATA devices. Correctly
22545 report error for ATAPI devices.
22546
d4c9b428 225472008-07-02 Pavel Roskin <proski@gnu.org>
22548
e43fc690 22549 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
22550 warning.
22551
f707af42 22552 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
22553 for every read sector, we already increment it for the whole
22554 batch. This fixes reading more than 256 sectors at once.
22555
11e16b15 22556 * util/grub-editenv.c (cmd_info): Cast argument to long
22557 explicitly. ptrdiff_t reduces to int on i386.
22558
cbabfdd4 22559 * util/grub-editenv.c (main): Be specific which parameter is
22560 missing.
22561
b8fbce0a 22562 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
22563 (memdisk): Make memdisk_orig_addr a pointer.
22564
c9c8e606 22565 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
22566 for file offsets, use grub_off_t instead. Fix printf format
22567 warnings.
22568
ca62e598 22569 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
22570 there. Real unexpected warnings should not drown in the noise
22571 about known problems.
22572
ce8d1766 22573 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
22574 grub_disk_addr_t for memory addresses.
22575
00c7a56a 22576 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
22577 explicitly to fix a warning.
22578
08d3ef09 22579 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
22580
cb71ba20 22581 * Makefile.in (MODULE_LDFLAGS): New variable.
22582 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
22583 the linker accepts --build-id=none.
22584 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
22585 MODULE_LDFLAGS.
22586 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
22587
d4c9b428 22588 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
22589 those in Linux XFS code. Provide a way to access 64-bit parent
22590 inode.
22591 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
22592 the end of struct grub_xfs_dir_header.
22593
d4156eee 225942008-07-02 Bean <bean123ch@gmail.com>
22595
22596 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
22597 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22598 and GRUB_IEEE1275_FLAG_NO_ANSI.
22599
22600 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
22601 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
22602 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
22603
22604 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
22605 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
22606
22607 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
22608 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
22609
22610 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
22611 esc sequence on non ANSI terminal.
22612 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
22613
22614 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
22615 beginning of file.
22616
2270f77b 226172008-07-02 Bean <bean123ch@gmail.com>
22618
22619 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
22620 (grub_editenv_SOURCES): New variable.
22621 (pkglib_MODULES): Add loadenv.mod.
22622 (loadenv_mod_SOURCES): New variable.
22623 (loadenv_mod_CFLAGS): Likewise.
22624 (loadenv_mod_LDFLAGS): Likewise.
22625
22626 * include/grub/envblk.h: New file.
22627
22628 * util/envblk.c: New file.
22629
22630 * util/grub-editenv.c: New file.
22631
22632 * commands/loadenv.c: New file.
22633
0e9e51ec 226342008-07-01 Pavel Roskin <proski@gnu.org>
22635
d89b7634 22636 * include/multiboot2.h (struct multiboot_tag_module): Use char,
22637 not unsigned char. This fixes warnings and is consistent with
22638 other tags.
22639
bf1835b1 22640 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
22641
8222a04b 22642 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
22643
6a42d99d 22644 * term/tparm.c (analyze): Always set *popcount.
22645
10b159d1 22646 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
22647 cast to fix a warning.
22648
b8789f6c 22649 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
22650 cast to suppress a warning.
22651
29d7e38a 22652 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
22653 grub_fshelp_read_file() expects.
22654
f341f669 22655 * fs/fat.c: Fix UUID calculation on big-endian systems. We
22656 write uuid as a 32-bit value in CPU byte order, so declare and
22657 use it as such.
22658
0e9e51ec 22659 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
22660 long if the format specifier expects it.
22661 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
22662 * partmap/pc.c (pc_partition_map_iterate): Likewise.
22663 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
22664 long to fix a warning.
22665 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
22666 grub_dprintf() arguments to fix warnings.
22667
3aefa857 226682008-06-30 Pavel Roskin <proski@gnu.org>
22669
56c7668b 22670 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
22671 install_bsd_part immediately before core.img is embedded or
22672 modified on disk. This fixes core.img verification if core.img
22673 cannot be embedded.
22674
3aefa857 22675 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
22676 core_path to calculate the blocklist.
22677 Patch from Javier Martín <lordhabbit@gmail.com>
22678
5444088d 226792008-06-29 Robert Millan <rmh@aybabtu.com>
22680
22681 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
22682 block to disk block.
22683 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
22684 Patch from Niels Böhm <bitbucket@arcor.de>
22685
674835c8 226862008-06-29 Robert Millan <rmh@aybabtu.com>
22687
22688 * util/update-grub_lib.in (font_path): Search for fonts in
22689 /boot/grub first, which is more likely to be readable (we aren't
22690 deciding where fonts live, just looking for them).
22691
f527dbc8 226922008-06-26 Pavel Roskin <proski@gnu.org>
22693
6c2d8df6 22694 * util/biosdisk.c (read_device_map): Don't leave dead map
22695 entries for devices failing stat() check.
22696
f527dbc8 22697 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
22698 core_path_dev for the core.img path on the target device.
22699
aebe3d13 227002008-06-26 Robert Millan <rmh@aybabtu.com>
22701
22702 * disk/fs_uuid.c: New file.
22703 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
22704 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
22705 (fs_uuid_mod_LDFLAGS): New variables.
22706 * include/grub/disk.h (grub_disk_dev_id): Add
22707 `GRUB_DISK_DEVICE_UUID_ID'.
22708 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
22709 implement iterate().
22710
37aaf354 227112008-06-26 Robert Millan <rmh@aybabtu.com>
22712
22713 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
22714 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
22715 Linux image includes no initrd.
22716
25ff262a 227172008-06-21 Javier Martín <lordhabbit@gmail.com>
22718
22719 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
22720 call to resolve the core image location that effectively appended the
22721 name twice.
22722
76a2bd44 227232008-06-21 Robert Millan <rmh@aybabtu.com>
22724
22725 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
22726 call from here ...
22727
22728 * util/grub.d/10_hurd.in: ... to here ...
22729 * util/grub.d/10_linux.in: ... and here.
22730
650e1c79 227312008-06-19 Robert Millan <rmh@aybabtu.com>
22732
fe987087 22733 * kern/main.c (grub_main): Export `prefix' variable immediately
650e1c79 22734 after it has been set by grub_machine_set_prefix().
22735
6ce63911 227362008-06-19 Robert Millan <rmh@aybabtu.com>
22737
22738 * commands/search.c (search_label, search_fs_uuid, search_file): Print
22739 search result when not saving to variable, not the other way around.
22740 When saving to variable, abort iteration as soon as a match is found.
22741
73940cec 227422008-06-19 Robert Millan <rmh@aybabtu.com>
22743
22744 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
22745 check for partition that provides /boot/grub. Its logic is flawed,
22746 as it prevents prepare_grub_to_access_device() from being called
22747 multiple times.
22748
3c62a39d 227492008-06-19 Robert Millan <rmh@aybabtu.com>
22750
22751 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
22752 "insmod" command directly when abstraction modules are needed,
fe987087 22753 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
3c62a39d 22754 since it had already been processed).
22755
47395a42 227562008-06-19 Pavel Roskin <proski@gnu.org>
22757
22758 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
22759 changed. This is needed in case GRUB_LIBDIR changes.
22760 * conf/i386-ieee1275.rmk: Likewise.
22761 * conf/i386-linuxbios.rmk: Likewise.
22762 * conf/i386-pc.rmk: Likewise.
22763 * conf/powerpc-ieee1275.rmk: Likewise.
22764
a145ac2d 227652008-06-18 Pavel Roskin <proski@gnu.org>
22766
22767 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
22768 kernel_elf_symlist.c to symlist.c for consistency with other
22769 architectures. Update all users.
22770 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22771
7847c51e 227722008-06-18 Robert Millan <rmh@aybabtu.com>
22773
22774 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
22775 it in prefix.
22776
22777 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
22778 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
22779 a RAID device, run setup() for all members independently on whether
22780 LVM abstraction is being used.
22781 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
22782 If grub-mkimage has set `*install_dos_part == -2', don't override this
22783 value.
22784 Perform *install_dos_part adjustments independently on whether
22785 we're embedding or not.
22786 Clarify error message when image is too big for embedding.
22787 Remove duplicate *install_dos_part stanza.
22788
b23e5644 227892008-06-17 Robert Millan <rmh@aybabtu.com>
22790
22791 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
22792 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
22793 variables.
22794 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
22795 values in grub_ofconsole_normal_color and
22796 grub_ofconsole_highlight_color (they're not directly related to
22797 background and foreground).
22798 (grub_ofconsole_setcolorstate): Extract background and foreground
22799 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
22800
0aac2f79 228012008-06-17 Robert Millan <rmh@aybabtu.com>
22802
22803 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
22804 /boot/grub for the check in last commit, not /boot (they could be
22805 different partitions).
22806
3cca7ef3 228072008-06-16 Robert Millan <rmh@aybabtu.com>
22808
22809 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
22810 asked to setup access for the same partition that provides /boot,
22811 don't bother using UUIDs since our root already has the value we
22812 want.
22813
347396d8 228142008-06-16 Robert Millan <rmh@aybabtu.com>
22815
22816 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
22817 I2O devices.
22818 Patch from Sven Mueller <sven@debian.org>.
22819
991477f8 228202008-06-16 Robert Millan <rmh@aybabtu.com>
22821
22822 * util/update-grub.in: Check for $EUID instead of $UID.
22823 Reported by Vincent Zweije.
22824
d31a32a1 228252008-06-16 Bean <bean123ch@gmail.com>
22826
fe987087 22827 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
d31a32a1 22828 (grub_ext2_read_block): Likewise.
22829 (grub_ext2_read_inode): Likewise.
22830 (grub_ext2_mount): Likewise.
22831 (grub_ext2_close): Likewise.
22832 (grub_ext3_get_journal): Removed.
22833
fe987087 22834 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
d31a32a1 22835 (grub_reiserfs_read_symlink): Likewise.
22836 (grub_reiserfs_mount): Likewise.
22837 (grub_reiserfs_open): Likewise.
22838 (grub_reiserfs_read): Likewise.
22839 (grub_reiserfs_close): Likewise.
22840 (grub_reiserfs_get_journal): Removed.
22841
22842 * fs/fshelp.c (grub_fshelp_read): Removed.
22843 (grub_fshelp_map_block): Likewise.
22844
22845 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
22846 (grub_fshelp_journal): Likewise.
22847 (grub_fshelp_read): Likewise.
22848 (grub_fshelp_map_block): Likewise.
22849
3540a760 228502008-06-16 Pavel Roskin <proski@gnu.org>
22851
22852 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
22853 floating point anymore.
22854 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
22855
95614c84 228562008-06-15 Pavel Roskin <proski@gnu.org>
22857
22858 * commands/ls.c (grub_ls_list_files): Use integer calculations
22859 for human readable format, avoid floating point use.
22860 * kern/misc.c (grub_ftoa): Remove.
22861 (grub_vsprintf): Remove floating point support.
22862
50465dd6 228632008-06-15 Robert Millan <rmh@aybabtu.com>
22864
fe6b695a 22865 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
50465dd6 22866 devices.
22867 Reported by Max Vozeler.
22868
a9207284 228692008-06-15 Robert Millan <rmh@aybabtu.com>
22870
22871 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
22872 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
22873 skipped later.
22874 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
22875 the beginning of the prefix.
22876
22877 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
22878 It is assumed that if we have a memdisk, grub-mkimage has set
22879 grub_prefix to include the "(memdisk)" drive in it.
22880
a7cbd45a 228812008-06-15 Robert Millan <rmh@aybabtu.com>
22882
22883 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
22884 Initialize keyboard controller after registering the terminal, so that
22885 grub_printf() can be called from grub_keyboard_controller_init().
22886
21cf716a 228872008-06-15 Robert Millan <rmh@aybabtu.com>
22888
22889 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
22890 extent-btree which is written as big endian on disk.
22891 Reported by Alain Greppin <al@chilibi.org>.
22892
23a64d8e 228932008-06-14 Robert Millan <rmh@aybabtu.com>
22894
22895 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
22896 * util/i386/pc/grub-install.in (modules): Likewise.
22897
d687651c 228982008-06-13 Pavel Roskin <proski@gnu.org>
22899
22900 * commands/ls.c (grub_ls_list_files): Fix format warnings.
22901
dfe9ddd4 229022008-06-13 Bean <bean123ch@gmail.com>
22903
22904 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
22905
22906 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
22907
22908 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
22909 to indicate sparse block.
22910
16ae7781 229112008-06-12 Pavel Roskin <proski@gnu.org>
22912
e6d1a308 22913 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
22914 number, grub_fshelp_read() does it for us.
22915
16ae7781 22916 * fs/fshelp.c (grub_fshelp_read): New function. Implement
22917 linear disk read with journal translation.
22918 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
22919 * include/grub/fshelp.h: Declare grub_fshelp_read().
22920
40fd3a2b 229212008-06-09 Pavel Roskin <proski@gnu.org>
22922
22923 * fs/minix.c (grub_minix_mount): Handle error reading
22924 superblock.
22925
f5679726 229262008-06-08 Robert Millan <rmh@aybabtu.com>
22927
22928 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
22929 don't append the RAID prefix afterwards.
22930 Reported by Clint Adams.
22931
ce525529 229322008-06-08 Robert Millan <rmh@aybabtu.com>
22933
22934 Based on description from Pavel:
22935 * kern/disk.c (grub_disk_check_range): Rename to ...
22936 (grub_disk_adjust_range): ... this. Add a comment explaining the
22937 tasks performed by this function.
22938
ad4936a0 229392008-06-08 Robert Millan <rmh@aybabtu.com>
22940
22941 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
22942 `num_serial' (for consistency with other variables).
22943 (struct grub_ntfs_data): Add `uuid' member.
22944 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
22945 (grub_ntfs_uuid): New function.
22946 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
22947
dc20b0f9 229482008-06-07 Pavel Roskin <proski@gnu.org>
22949
22950 * util/biosdisk.c (open_device): Revert last change to the
22951 function, it broke installation. The sector needs to be
22952 different dependent on which device is opened.
22953
c5e3cfba 229542008-06-06 Robert Millan <rmh@aybabtu.com>
22955
22956 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
22957 rest of GRUB, and breakage doesn't happen if its value were modified.
22958
22959 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22960 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
22961 a constant (same value).
22962 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
22963 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
22964
26a1f8c4 229652008-06-06 Robert Millan <rmh@aybabtu.com>
22966
22967 * util/biosdisk.c (open_device): Do not modify sector offset when
22968 accessing a partition. kern/disk.c already handles this for us.
22969
25d6b327 229702008-06-06 Robert Millan <rmh@aybabtu.com>
22971
22972 * util/grub-emu.c (grub_machine_init): Move code in this function from
22973 here ...
22974 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
22975 segfault in case grub_printf() is called).
22976
22977 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
22978 grub_probe. Update all users not to explicitly add it again.
22979 (grub_device): New variable; contains corresponding device for grubdir.
22980 (fs_module, partmap_module, devabstraction_module): Pass
22981 `--device ${grub_device}' to grub_probe to avoid traversing /dev
22982 every time.
22983
9ece62fb 229842008-06-05 Robert Millan <rmh@aybabtu.com>
22985
22986 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
22987 is found, print it (same layout as with labels).
22988
1ad36d37 229892008-06-04 Robert Millan <rmh@aybabtu.com>
22990
22991 * util/biosdisk.c (get_drive): Rename to ...
22992 (find_grub_drive): ... this. Update all users.
22993
22994 (get_os_disk): Rename to ...
22995 (convert_system_partition_to_system_disk): ... this. Update all users.
22996
22997 (find_drive): Rename to ...
22998 (find_system_device): ... this. Update all users.
22999
e6a30859 230002008-06-04 Robert Millan <rmh@aybabtu.com>
23001
23002 * util/biosdisk.c (get_os_disk): Handle IDA devices.
23003 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23004 (make_device_map): Likewise.
23005
00c108a4 230062008-06-01 Robert Millan <rmh@aybabtu.com>
23007
23008 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
23009 before dereferencing it.
23010
23011 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
23012 union with fat12/fat16-specific ones. Add some new fields, including
23013 `num_serial' for both versions.
23014 (struct grub_fat_data): Add `uuid' member.
23015 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
23016 names. Initialize `data->uuid' using `num_serial'.
23017 (grub_fat_uuid): New function.
23018 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
23019
23020 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
23021 (grub_reiserfs_uuid): New function.
23022 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
23023 member.
23024
23025 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
23026 (grub_xfs_uuid): New function.
23027 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
23028
1385c5bb 230292008-06-01 Robert Millan <rmh@aybabtu.com>
23030
23031 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
23032 code that is backward compatible with pre-uuid search command.
23033
c682dfd7 230342008-05-31 Robert Millan <rmh@aybabtu.com>
23035
23036 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
23037 floppies after everything else, to ensure floppy drive isn't accessed
23038 unnecessarily (patch from Bean).
23039
b7db5d47 230402008-05-31 Robert Millan <rmh@aybabtu.com>
23041
23042 * commands/search.c (search_label, search_fs_uuid, search_file): Do
23043 not print device names when we were asked to set a variable.
23044
6e037aa9 230452008-05-31 Robert Millan <rmh@aybabtu.com>
23046
23047 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
23048 using "cursor-on" and "cursor-off" commands (understood at least by
23049 the Open Firmware flavour on OLPC).
23050
41305bc8 230512008-05-31 Michael Gorven <michael@gorven.za.net>
23052
23053 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
23054 on and off sequences.
23055
69ba137e 230562008-05-31 Robert Millan <rmh@aybabtu.com>
23057
23058 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
23059 * util/update-grub.in: Likewise.
23060
520ae21b 230612008-05-30 Pavel Roskin <proski@gnu.org>
23062
23063 * util/biosdisk.c (linux_find_partition): Simplify logic and
23064 make the code more universal. Keep special processing for
23065 devfs, but use a simple rule for all other devices. If the
23066 device ends with a number, append 'p' and the partition number.
23067 Otherwise, append only the partition number.
23068
5786569b 230692008-05-30 Robert Millan <rmh@aybabtu.com>
23070
23071 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
23072 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
23073 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
23074 the `root' parameter to Linux.
23075
51500452 230762008-05-30 Robert Millan <rmh@aybabtu.com>
23077
23078 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
23079 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
23080 --fs_uuid with --fs-uuid.
23081 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
23082 all filesystems support them).
23083
811d3878 230842008-05-30 Robert Millan <rmh@aybabtu.com>
23085
23086 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
f19dbdb7 23087 grub_printf() flags, since we're printing in units of 2 bytes.
811d3878 23088
cab63c95 230892008-05-30 Robert Millan <rmh@aybabtu.com>
23090
23091 * util/grub.d/00_header.in: Remove obsolete comment referencing
23092 convert_system_path_to_grub_path().
23093 * util/update-grub.in: Likewise.
23094 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
23095 (convert_system_path_to_grub_path): Add a warning message explaining
23096 that this function is deprecated. Rely on is_path_readable_by_grub()
23097 for the readability checks.
23098 (font_path): Use is_path_readable_by_grub() for the readability
23099 check rather than convert_system_path_to_grub_path().
23100
972e2f7a 231012008-05-30 Robert Millan <rmh@aybabtu.com>
23102
23103 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
23104 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
23105 converting it first.
23106 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
23107 grub.cfg for access to font file, and afterwards call it again to set
23108 the root device.
23109
62191274 231102008-05-30 Robert Millan <rmh@aybabtu.com>
23111
23112 * commands/search.c (options): Add --fs_uuid option.
23113 (search_fs_uuid): New function.
23114 (grub_cmd_search): Fix --set argument passing.
23115 Use search_fs_uuid() when requested via --fs_uuid.
23116 (grub_search_init): Update help message.
23117 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
23118 and redeclare it as an array of 16-bit words.
23119 (grub_ext2_uuid): New function.
23120 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
23121 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
23122 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
23123 (GRUB_DEVICE_BOOT_UUID): New variables.
23124 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
23125 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
23126 whenever possible.
23127 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
23128 just assume `root' variable has the right value.
23129 * util/grub.d/10_linux.in: Likewise.
23130 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
23131 via PRINT_FS_UUID.
23132 (main): Recognise `-t fs_uuid' argument.
23133
01b73ec8 231342008-05-30 Robert Millan <rmh@aybabtu.com>
23135
23136 * util/biosdisk.c (map): Redefine structure to hold information
23137 about GRUB drive name.
fe6b695a 23138 (get_drive): Reimplement without assuming (and verifying) BIOS-like
01b73ec8 23139 drive names.
23140 (call_hook): Remove.
23141 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
23142 member. Assume drive has partitions.
23143 (grub_util_biosdisk_open): Access device names via `.device' struct
23144 member.
23145 (open_device): Likewise.
23146 (find_drive): Likewise.
23147 (read_device_map): Adjust map[] usage to match the new struct
23148 definition. Don't check for duplicates (still possible, but not cheap
23149 anymore).
23150 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
23151 (make_device_name): Remove assumption of BIOS-like drive names.
23152
22f16596 231532008-05-30 Pavel Roskin <proski@gnu.org>
23154
23155 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
23156 compiling execute.c doesn't need grub_script.tab.h anymore.
23157 (normal/command.c_DEPENDENCIES): Likewise.
23158 (normal/function.c_DEPENDENCIES): Likewise.
23159 * conf/i386-ieee1275.rmk: Likewise.
23160 * conf/i386-linuxbios.rmk: Likewise.
23161 * conf/i386-pc.rmk: Likewise.
23162 * conf/powerpc-ieee1275.rmk: Likewise.
23163 * conf/sparc64-ieee1275.rmk: Likewise.
23164
528ad8f2 231652008-05-29 Pavel Roskin <proski@gnu.org>
23166
d1dff95d 23167 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
23168 when scanning metadata for volume group name.
23169
528ad8f2 23170 * include/grub/script.h: Don't include grub_script.tab.h. It's
23171 a generated file, which may only be included from the files with
23172 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
23173 use union YYSTYPE, as the later allows forward declaration.
23174 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
23175
47248e08 231762008-05-29 Robert Millan <rmh@aybabtu.com>
23177
23178 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
23179 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
23180 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
23181 (grub_console_checkkey): Add grub_dprintf() call to report unknown
23182 scan codes.
23183
ee632529 231842008-05-29 Robert Millan <rmh@aybabtu.com>
23185
23186 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
23187 control key combinations.
23188
eee96e08 231892008-05-29 Robert Millan <rmh@aybabtu.com>
23190
23191 * util/powerpc/ieee1275/grub-install.in: Move from here ...
23192 * util/ieee1275/grub-install.in: ... to here.
23193 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
23194 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
23195 (grub_install_SOURCES): Likewise.
23196
da9a6a94 231972008-05-29 Robert Millan <rmh@aybabtu.com>
23198
23199 * fs/affs.c: Update copyright year.
23200 * fs/ext2.c: Likewise.
23201 * fs/fshelp.c: Likewise.
23202 * fs/hfsplus.c: Likewise.
23203 * fs/ntfs.c: Likewise.
23204 * fs/xfs.c: Likewise.
23205 * include/grub/fshelp.h: Likewise.
23206 * util/grub-mkdevicemap.c: Likewise.
23207
12e65f3a 232082008-05-28 Robert Millan <rmh@aybabtu.com>
23209
23210 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
23211 might need to be fatfs to support some firmware implementations
23212 (e.g. OFW or EFI).
23213
23023641 232142008-05-28 Robert Millan <rmh@aybabtu.com>
23215
23216 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
23217 devices.
23218 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23219 (make_device_map): Likewise.
23220
887d2619 232212008-05-20 Bean <bean123ch@gmail.com>
23222
23223 * fs/fshelp.c (grub_fshelp_map_block): New function.
23224 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
23225 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
23226
23227 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
23228 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
23229 (grub_fshelp_journal): New structure.
23230 (grub_fshelp_map_block): New function prototype.
23231 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
23232 (grub_fshelp_map_block): Likewise.
23233
23234 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
23235 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
23236 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
23237 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
23238 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
23239 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
23240 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
23241 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
23242 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
23243 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
23244 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
23245 (grub_ext2_sblock): New members for journal support.
23246 (grub_ext3_journal_header): New structure.
23247 (grub_ext3_journal_revoke_header): Likewise.
23248 (grub_ext3_journal_block_tag): Likewise.
23249 (grub_ext3_journal_sblock): Likewise.
23250 (grub_fshelp_node): New members logfile and journal.
23251 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
23252 grub_fshelp_map_block to get real block number.
23253 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
23254 number.
23255 (grub_ext2_read_inode): Likewise.
23256 (grub_ext3_get_journal): New function.
23257 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
23258 (grub_ext2_close): Release memory used by journal.
23259
23260 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
23261 (REISERFS_MAGIC_DESC_BLOCK): New macro.
23262 (grub_reiserfs_transaction_header): Renamed to
23263 grub_reiserfs_description_block, replace field data with real_blocks.
23264 (grub_reiserfs_commit_block): New structure.
23265 (grub_reiserfs_data): New member journal.
23266 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
23267 number.
23268 (grub_reiserfs_read_symlink): Likewise.
23269 (grub_reiserfs_iterate_dir): Likewise.
23270 (grub_reiserfs_open): Likewise.
23271 (grub_reiserfs_read): Likewise.
23272 (grub_reiserfs_get_journal): New function.
23273 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
23274 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
23275 using grub_reiserfs_get_journal.
23276 (grub_reiserfs_close): Release memory used by journal.
23277
23278 * fs/affs.c (grub_affs_read_block): Change block type to
23279 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
23280
23281 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
23282
23283 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
23284
23285 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
23286
23287 * fs/udf.c (grub_udf_read_block): Change block type to
23288 grub_disk_addr_t. Use type cast to avoid warning.
23289
23290 * fs/xfs.c (grub_xfs_read_block): Likewise.
23291
b7c6bed5 232922008-05-16 Christian Franke <franke@computer.org>
23293
23294 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
23295 to ensure that break with ESC will always work.
23296 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
23297 Remove ESC from keyboard queue.
23298
eedf167f 232992008-05-16 Christian Franke <franke@computer.org>
23300
23301 * util/biosdisk.c: [__CYGWIN__] Add includes.
23302 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
23303 (get_os_disk): Move variable declarations to OS specific
23304 parts to avoid warning.
23305 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
23306 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
23307 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
23308 Cygwin.
23309 * util/getroot.c: [__CYGWIN__] Add includes.
23310 (strip_extra_slashes): Fix "/" case.
23311 [__CYGWIN__] (get_win32_path): New function.
23312 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
23313 [__CYGWIN__] (find_root_device): Disable.
23314 [__CYGWIN__] (get_bootsec_serial): New function.
23315 [__CYGWIN__] (find_cygwin_root_device): Likewise.
23316 [__linux__] (grub_guess_root_device): Add early returns to simplify
23317 structure.
23318 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
23319 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
23320 check for Linux only.
23321
a079699e 233222008-05-15 Bean <bean123ch@gmail.com>
23323
23324 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
23325 keyboard hang problem in apple's intel mac.
23326
1cf4059a 233272008-05-09 Robert Millan <rmh@aybabtu.com>
23328
23329 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
23330 devices.
23331 * util/grub-mkdevicemap.c (get_virtio_disk_name)
23332 (make_device_map): Likewise.
23333 Reported by Aurelien Jarno <aurel32@debian.org>
23334
ed759390 233352008-05-07 Ian Campbell <ijc@hellion.org.uk>
23336
23337 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
23338 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
23339 (make_device_map): Output entries for xvd type disks.
23340
b56c4eaa 233412008-05-07 Robert Millan <rmh@aybabtu.com>
23342
23343 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
23344 devices.
23345 * util/grub-mkdevicemap.c (get_cciss_disk_name)
23346 (make_device_map): Likewise.
23347 Reported by Roland Dreier <rdreier@cisco.com>
23348
7f8866ed 233492008-05-07 Robert Millan <rmh@aybabtu.com>
23350
23351 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
23352 grub_strstr() call. Correct a few mistakes in failure path handling.
23353
b0346e0f 233542008-05-06 Robert Millan <rmh@aybabtu.com>
23355
23356 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
23357 Do not print a trailing slash (therefore, the root directory is an
23358 empty string).
23359 (convert_system_path_to_grub_path): Do not remove trailing slash
23360 from make_system_path_relative_to_its_root() output.
23361
23362 * util/i386/pc/grub-install.in: Add trailing slash to output from
23363 make_system_path_relative_to_its_root().
23364
6cf12cbd 233652008-05-06 Robert Millan <rmh@aybabtu.com>
23366
23367 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
23368 ensures that output lines aren't intermangled with those sent to
23369 stderr (via grub_util_info()).
23370 * util/grub-probe.c (grub_refresh): Likewise.
23371 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
23372
0fbb3117 233732008-05-05 Christian Franke <franke@computer.org>
23374
23375 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
23376 Add Cygwin device names.
23377 (get_ide_disk_name) [__CYGWIN__]: Likewise.
23378 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
23379 (check_device): Return error instead of success on empty name.
23380 (make_device_map): Move label inside linux specific code to
23381 prevent compiler warning.
23382
8124cdb7 233832008-04-30 Robert Millan <rmh@aybabtu.com>
23384
23385 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
23386 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
23387 first boot option.
23388 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
23389
094c01d0 233902008-04-29 Robert Millan <rmh@aybabtu.com>
23391
23392 * docs/grub.cfg: New file (example GRUB configuration).
23393
f4b1fc02 233942008-04-26 Robert Millan <rmh@aybabtu.com>
23395
329ce2a5 23396 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
23397 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
23398 and `disk/ieee1275/nand.c'.
f4b1fc02 23399
25f16ec1 234002008-04-25 Bean <bean123ch@gmail.com>
f19dbdb7 23401
25f16ec1 23402 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
23403 i386-linuxbios.
23404
23405 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
23406 change the buffer size to 4096 for cdrom device.
23407
23408 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
23409 and nand.mod.
23410 (_linux_mod_SOURCES): New variable.
23411 (_linux_mod_CFLAGS): Likewise.
23412 (_linux_mod_LDFLAGS): Likewise.
23413 (linux_mod_SOURCES): Likewise.
23414 (linux_mod_CFLAGS): Likewise.
23415 (linux_mod_LDFLAGS): Likewise.
23416 (nand_mod_SOURCES): Likewise.
23417 (nand_mod_CFLAGS): Likewise.
23418 (nand_mod_LDFLAGS): Likewise.
23419
23420 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
23421 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
23422 type property. (nand device in olpc don't have this property)
23423
23424 * include/grub/disk.h (grub_disk_dev_id): New macro
23425 GRUB_DISK_DEVICE_NAND_ID.
23426
23427 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
23428 function prototype.
23429 (grub_rescue_cmd_initrd): Likewise.
23430
23431 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
23432 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
23433 ofw_cif_handler and ofw_idt, adjust padding number.
f19dbdb7 23434
25f16ec1 23435 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
23436 GRUB_MACHINE_IEEE1275 is defined.
23437
23438 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
23439 Use NESTED_FUNC_ATTR attribute on the hook parameter.
23440
23441 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
23442 on nested function heap_init.
23443 (grub_upper_mem): New variable for i386-ieee1275.
23444 (grub_get_extended_memory): New function for i386-ieee1275.
23445 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
23446
23447 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
23448 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
23449 property.
f19dbdb7 23450
25f16ec1 23451 * loader/i386/ieee1275/linux.c: New file.
23452
23453 * loader/i386/ieee1275/linux_normal.c: New file.
23454
23455 * disk/ieee1275/nand.c: New file.
23456
e89d61e9 234572008-04-18 Thomas Schwinge <tschwinge@gnu.org>
23458
23459 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
23460 value.
23461 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
23462
602566f6 234632008-04-18 Robert Millan <rmh@aybabtu.com>
23464
23465 Restructures early code path on ieee1275 to unify grub_main() as
23466 the first C function that is executed in every platform.
23467
23468 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
23469 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
23470 cmain().
23471 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
23472 * kern/ieee1275/cmain.c (cmain): Rename to ...
23473 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
23474 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
23475 at the beginning.
23476
57490c2b 234772008-04-18 Robert Millan <rmh@aybabtu.com>
23478
23479 * util/update-grub.in: Fix syntax error when setting
23480 `GRUB_PRELOAD_MODULES'.
23481 Reported by Stephane Chazelas <stephane@artesyncp.com>
23482
1977517d 234832008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
23484
23485 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
23486 section into account, newer toolchains generate unique build ids
23487 * configure.ac: remove the test for --build-id=none acceptance,
e0c5dacb 23488 we want build ids to be preserved
1977517d 23489 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
23490 far from other sections don't cause the raw binary images grow
23491 size
23492
bfb1f1a2 234932008-04-15 Robert Millan <rmh@aybabtu.com>
23494
23495 * disk/lvm.c: Update copyright year.
23496 * kern/misc.c: Likewise.
23497
01979850 234982008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23499
23500 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
f19dbdb7 23501 there is no memory left for physical volume name.
01979850 23502
0a1150e2 235032008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
23504
23505 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
23506 volume name mapping to support bigger than 9 character names properly.
23507
82ead3fe 235082008-04-13 Robert Millan <rmh@aybabtu.com>
23509
23510 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
23511 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
23512
e54a72f5 235132008-04-13 Christian Franke <franke@computer.org>
23514
23515 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
23516 to create a floppy emulation boot CD when non emulation mode
23517 does not work.
23518 Enable Joliet CD filesystem extension.
23519
9fe86034 235202008-04-13 Robert Millan <rmh@aybabtu.com>
23521
23522 * kern/misc.c (grub_strncat): Fix off-by-one error.
23523 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
23524
23525 * kern/env.c (grub_env_context_close): Clear current context, not
23526 previous one.
23527 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
23528
23529 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
23530
7ceeee39 235312008-04-13 Robert Millan <rmh@aybabtu.com>
23532
23533 Improve robustness when handling LVM.
23534
23535 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
f19dbdb7 23536 (and leave `*p' unmodified).
7ceeee39 23537 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
23538 through it.
23539 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
23540 iterating through it.
23541 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
23542 through it.
fe6b695a 23543 (grub_lvm_scan_device): Check the return value (and fail gracefully
7ceeee39 23544 when due) on each grub_lvm_getvalue() or grub_strstr() call.
23545 Don't assume `vg->pvs != NULL' when iterating through it.
23546
58cd3d85 235472008-04-13 Robert Millan <rmh@aybabtu.com>
23548
23549 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
23550 * genmk.rb (partmap): New variable.
23551 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
23552 (#{partmap}): New target rule.
23553 * genpartmaplist.sh: New file.
23554 * Makefile.in (pkglib_DATA): Add partmap.lst.
23555 (partmap.lst): New target rule.
23556 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
23557 modules (including all partition maps), instead of preloading them.
23558
78b51059 235592007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
23560
23561 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
23562 `linux-boot-prober' (if installed) to detect other operating
23563 systems which are installed on the computer and add them to
23564 the boot menu.
23565 * conf/common.rmk: Build and install 30_os-prober.
23566
a91627b4 235672008-04-12 Robert Millan <rmh@aybabtu.com>
23568
23569 * kern/powerpc/ieee1275/init.c: Move from here ...
23570 * kern/ieee1275/init.c: ... to here. Update all users.
23571
23572 * kern/powerpc/ieee1275/cmain.c: Move from here ...
23573 * kern/ieee1275/cmain.c: ... to here. Update all users.
23574
23575 * kern/powerpc/ieee1275/openfw.c: Move from here ...
23576 * kern/ieee1275/openfw.c: ... to here. Update all users.
23577
23578 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
23579 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
23580
322562ea 235812008-04-10 Pavel Roskin <proski@gnu.org>
23582
23583 * configure.ac: Always use "_cv_" in cache variables for
23584 compatibility with Autoconf 2.62.
23585
a02a73c5 235862008-04-07 Robert Millan <rmh@aybabtu.com>
23587
23588 Revert grub/machine/init.h addition by Pavel (since it breaks on
23589 i386-ieee1275 and others):
23590 * util/i386/pc/misc.c: Remove grub/machine/init.h.
23591 * util/powerpc/ieee1275/misc.c: Likewise.
23592
25c024b1 235932008-04-07 Robert Millan <rmh@aybabtu.com>
23594
23595 * util/grub-probe.c (probe): Improve error message.
23596
3cbd2f98 235972008-04-07 Robert Millan <rmh@aybabtu.com>
23598
23599 * util/biosdisk.c (read_device_map): Skip devices that don't exist
23600 (this prevents the presence of a bogus entry from ruining the whole
23601 thing).
23602
87a297bf 236032008-04-06 Pavel Roskin <proski@gnu.org>
23604
36747a62 23605 * util/biosdisk.c: Include grub/util/biosdisk.h.
23606 * util/grub-fstest.c (execute_command): Make static.
23607 * util/grub-mkdevicemap.c (check_device): Likewise.
23608 * util/i386/pc/misc.c: Include grub/machine/init.h.
23609 * util/powerpc/ieee1275/misc.c: Likewise.
23610 * util/lvm.c: Include grub/util/lvm.h.
23611 * util/misc.c: Include grub/kernel.h, grub/misc.h and
23612 grub/cache.h.
23613 * util/raid.c: Include grub/util/raid.h.
23614 (grub_util_getdiskname): Make static.
23615
87a297bf 23616 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
23617 grub_hostfs_fini(), as they are called from grub_init_all() and
23618 grub_fini_all() respectively. This fixes an infinite loop in
23619 grub-fstest due to double registration of hostfs.
23620 Reported by Christian Franke <Christian.Franke@t-online.de>
23621
f6ce7629 236222008-04-05 Pavel Roskin <proski@gnu.org>
23623
23624 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
23625 all 8 functions. Otherwise, probe function 0 only.
23626
070e49e4 236272008-04-04 Pavel Roskin <proski@gnu.org>
23628
8b088a4c 23629 * commands/lspci.c (grub_lspci_iter): Print the bus number
23630 correctly.
23631
4f657021 23632 * commands/lspci.c (grub_pci_classes): Fix typos.
23633 (grub_lspci_iter): Don't print func twice. Print vendor ID
23634 before device ID, as it's normally done.
23635
070e49e4 23636 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
23637 Fix signedness warnings.
23638 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
23639 Likewise.
23640 * util/ieee1275/get_disk_name.c: Include config.h so that
23641 _GNU_SOURCE is defined and getline() is declared. Mark an
23642 unused argument as such. Fix a signedness warning.
23643
ba7328dc 236442008-04-02 Pavel Roskin <proski@gnu.org>
23645
26887f22 23646 * genkernsyms.sh.in: Use more robust assignments for CC and
23647 srcdir. Quote srcdir.
23648 * gensymlist.sh.in: Likewise. Assert at the compile time that
23649 the symbol table is not empty.
23650
ba7328dc 23651 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
23652 * fs/cpio.c (grub_cpio_read): Likewise.
23653
0f582c6b 236542008-04-01 Pavel Roskin <proski@gnu.org>
23655
4b6e1995 23656 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
23657 * disk/host.c (grub_host_open): Likewise.
23658 * disk/loopback.c (grub_loopback_open): Likewise.
23659 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
23660 disk->id as in disk/host.c, not a multi-character constant.
23661
828a2768 23662 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
23663 later is obsolete, potentially dangerous and sets a bad example.
23664 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
23665 * util/misc.c (grub_util_get_image_size): Likewise.
23666
2bb4fb47 23667 * disk/loopback.c (options): Improve help for "--partitions".
23668
0f582c6b 23669 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
23670 options to align them with the short options, e.g. "echo -e".
23671
a33224e0 236722008-03-31 Bean <bean123ch@gmail.com>
23673
23674 * video/reader/png.c (grub_png_data): New member is_16bit and
23675 image_data.
23676 (grub_png_decode_image_header): Detect 16 bit png image.
23677 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
23678 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
23679 (grub_video_reader_png): Release memory occupied by image_data.
23680
23681 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
23682 4096 bytes.
23683 (grub_nfs_mount): Skip the test for sector per cluster.
23684
23685 * include/grub/ntfs.h (MAX_SPC): Removed.
23686
86cb4f54 236872008-03-31 Bean <bean123ch@gmail.com>
23688
23689 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
23690 (grub_probe_SOURCES): Add fs/afs.c.
23691 (grub_fstest_SOURCES): Likewise.
23692 (afs_mod_SOURCES): New variable.
23693 (afs_mod_CFLAGS): Likewise.
23694 (afs_mod_LDFLAGS): Likewise.
23695
23696 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
23697 (grub_emu_SOURCES): Likewise.
23698
23699 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23700
23701 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23702
23703 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23704
23705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23706
23707 * fs/afs.c: New file.
23708
17c74c21 237092008-03-30 Pavel Roskin <proski@gnu.org>
23710
4cb68e89 23711 * disk/host.c: Include grub/misc.h to fix a warning.
23712 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
23713 warnings about implicit declarations.
23714
8790bb04 23715 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
23716 variable.
23717 * include/grub/i386/loader.h: Change declaration of
23718 grub_linux_boot() to match what grub_loader_set() expects.
23719 * util/getroot.c (grub_guess_root_device): Return const char* to
23720 fix a warning.
23721 * util/grub-probe.c (probe): Fix a warning about uninitialized
23722 abstraction_name variable.
23723 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
23724 second argument as unused to fix a warning.
23725
9a3f3296 23726 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
23727 missing grub_error() call.
23728
0ecef90d 23729 * util/update-grub_lib.in: Define datarootdir, since Autoconf
23730 2.60 and newer uses it to define datadir.
23731
0bf6d401 23732 * commands/sleep.c: Fix warning about implicit declaration.
23733 * disk/memdisk.c: Likewise.
23734 * loader/aout.c: Likewise.
23735 * loader/i386/bsd_normal.c: Likewise.
23736 * util/grub-probe.c: Likewise.
23737
7cdacf97 23738 * commands/i386/cpuid.c (has_longmode): Make static.
23739 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
23740 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
23741
17c74c21 23742 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
23743 GDT. This is more robust, as %ds can change.
23744 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
23745 calling real_to_prot().
23746 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
23747
80a3e68b 237482008-03-28 Pavel Roskin <proski@gnu.org>
23749
23750 * kern/i386/pc/startup.S: Assert that uncompressed functions
23751 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
23752 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
23753 code, as they push parts of the code (error handlers) beyond
23754 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
23755 code as correctness and size.
23756
77bcd272 237572008-03-28 Pavel Roskin <proski@gnu.org>
23758
23759 * kern/i386/pc/startup.S
23760 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
23761 data block address to the real mode, keep offset minimal. This
23762 works around a bug in AWARD BIOS on old Athlon systems, which
23763 makes CD detection hang.
23764
c5dfd43b 237652008-03-26 Pavel Roskin <proski@gnu.org>
23766
23767 * normal/color.c (grub_parse_color_name_pair): Make `name' a
23768 const.
23769 * include/grub/normal.h: Add grub_parse_color_name_pair()
23770 declaration.
23771
bf962df2 237722008-03-24 Bean <bean123ch@gmail.com>
23773
23774 * disk/i386/pc/biosdisk.c (cd_start): Removed.
23775 (cd_count): Removed.
23776 (cd_drive): New variable.
23777 (grub_biosdisk_get_drive): Don't check for (cdN) device.
23778 (grub_biosdisk_call_hook): Likewise.
23779 (grub_biosdisk_iterate): Change cdrom detection method.
23780 (grub_biosdisk_open): Replace cd_start with cd_drive.
23781 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
23782 detect cdrom device.
23783
23784 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
23785 Removed.
23786 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
23787 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
23788 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
23789 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
23790 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
23791 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
23792 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
23793 (grub_biosdisk_cdrp): New structure.
23794 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
23795
23796 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
23797
23798 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
23799 device.
23800
23801 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
23802 New function.
23803
68e7fc7a 238042008-03-20 Robert Millan <rmh@aybabtu.com>
23805
23806 Remove 2 TiB limit in ata.mod.
23807 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
23808 (grub_ata_dumpinfo): Print sector count with 0x%llx.
23809 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
23810 grub_uint64_t instead of grub_uint32_t.
23811
38ad2cf5 238122008-03-05 Bean <bean123ch@gmail.com>
23813
23814 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
23815 (grub_multiboot): Set boot device.
23816
23817 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
23818
2b89344e 238192008-03-02 Bean <bean123ch@gmail.com>
23820
23821 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
23822 symlink_buffer.
23823
87a95d1f 238242008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
23825
23826 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
23827 texinfo.tex.
23828
23829 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
23830 modified.
23831
23832 * docs/fdl.texi: New file.
f19dbdb7 23833
87a95d1f 23834 * docs/mdate-sh: New file. Copied from gnulib.
23835 * docs/texinfo.tex: Likewise.
23836
23837 * config.guess: Updated from gnulib.
23838 * install-sh: Likewise.
23839
7dc15d8e 238402008-02-28 Robert Millan <rmh@aybabtu.com>
23841
23842 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
23843 (aout_mod_SOURCES): New variable.
23844 (aout_mod_CFLAGS): Likewise.
23845 (aout_mod_LDFLAGS): Likewise.
23846
23847 * conf/i386-ieee1275.rmk: Likewise.
23848
b00ab696 238492008-02-28 Robert Millan <rmh@aybabtu.com>
23850
23851 * util/update-grub.in: Reorganise terminal validity check. Accept
23852 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
23853 Based on suggestion by Franklin PIAT.
23854
79ca2d78 238552008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
23856
23857 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
23858 function.
23859 * util/getroot.c (grub_util_check_block_device): New function that
23860 returns the given argument if it is a block device and returns NULL else.
23861 * util/grub-probe.c (argument_is_device): New variable.
23862 (probe): Promote device_name from a variable to an argument. Receive
23863 device_name from grub_util_check_block_device() if path is NULL and from
23864 grub_guess_root_device() else. Do not free() device_name anymore.
f19dbdb7 23865 (options): Introduce new parameter '-d, --device'.
79ca2d78 23866 (main): Add description of the new parameter to the help screen.
23867 Rename path variable to argument. Set argument_is_device if the '-d'
23868 option is given. Pass argument to probe() depending on
23869 argument_is_device.
23870
0d16e571 238712008-02-24 Bean <bean123ch@gmail.com>
23872
23873 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
23874 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
23875 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
23876 (GRUB_ISO9660_VOLDESC_PART): Likewise.
23877 (GRUB_ISO9660_VOLDESC_END): Likewise.
23878 (grub_iso9660_primary_voldesc): New member escape.
23879 (grub_iso9660_data): New member joliet.
23880 (grub_iso9660_convert_string): New function.
23881 (grub_iso9660_mount): Detect joliet extension.
23882 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
23883 (grub_iso9660_iso9660_label): Likewise.
23884
23885 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
23886 (grub_setup_SOURCES): Add fs/udf.c.
23887 (grub_fstest_SOURCES): Likewise.
23888 (udf_mod_SOURCES): New variable.
23889 (udf_mod_CFLAGS): Likewise.
23890 (udf_mod_LDFLAGS): Likewise.
23891
23892 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
23893 (grub_emu_SOURCES): Likewise.
23894
23895 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23896
23897 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23898
23899 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
23900
23901 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23902
23903 * fs/udf.c: New file.
23904
8a594a17 239052008-02-24 Robert Millan <rmh@aybabtu.com>
23906
23907 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
23908 (normal/lexer.c_DEPENDENCIES): New variables.
23909 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23910 (normal/lexer.c_DEPENDENCIES): Likewise.
23911 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
23912 (normal/lexer.c_DEPENDENCIES): Likewise.
23913 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
23914 (normal/lexer.c_DEPENDENCIES): Likewise.
23915 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23916 (normal/lexer.c_DEPENDENCIES): Likewise.
23917 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
23918 (normal/lexer.c_DEPENDENCIES): Likewise.
23919
2dc33c03 239202008-02-23 Robert Millan <rmh@aybabtu.com>
23921
23922 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
23923 since they were intended to be in hex. This didn't break previously
23924 because of a bug in gpt_partition_map_iterate() (see below).
23925
23926 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
23927 when checking the validity of GPT header.
23928 Remove `partno', since it always provides the same information as `i'.
23929
f6f4cfb0 239302008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
23931
23932 * include/grub/efi/time.h: Fix a wrong comment.
23933
79ff665f 239342008-02-19 Pavel Roskin <proski@gnu.org>
23935
23936 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
23937 message.
23938
d38e24c2 239392008-02-19 Bean <bean123ch@gmail.com>
23940
23941 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
23942 (aout_mod_SOURCES): New variable.
23943 (aout_mod_CFLAGS): Likewise.
23944 (aout_mod_LDFLAGS): Likewise.
23945 (_bsd_mod_SOURCES): New variable.
23946 (_bsd_mod_CFLAGS): Likewise.
23947 (_bsd_mod_LDFLAGS): Likewise.
23948 (bsd_mod_SOURCES): New variable.
23949 (bsd_mod_CFLAGS): Likewise.
23950 (bsd_mod_LDFLAGS): Likewise.
23951
23952 * include/grub/aout.h: New file.
23953
23954 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
23955
23956 * include/grub/i386/bsd.h: New file.
23957
23958 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
23959 to make it public.
23960
23961 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
23962 function is called, so that it's possible to change it inside the hook.
23963 (grub_elf64_load): Likewise.
23964 (grub_elf_file): Don't close the file if elf header is not found.
23965 (grub_elf_close): Close the file if grub_elf_file fails (The new
23966 grub_elf_file won't close it).
23967 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
23968 (grub_elf64_size): Likewise.
23969
23970 * kern/i386/loader.S (grub_unix_real_boot): New function.
23971
23972 * loader/aout.c: New file.
23973
23974 * loader/i386/bsd.c: New file.
23975
23976 * loader/i386/bsd_normal.c: New file.
23977
23978 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
23979
23980 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
fe987087 23981 can test other formats.
d38e24c2 23982
b93bdb0f 239832008-02-19 Robert Millan <rmh@aybabtu.com>
23984
23985 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
23986 (grub_gpt_partition_type_empty): Redefine with macro from
23987 `<grub/gpt_partition.h>'.
23988 (gpt_partition_map_iterate): Adjust partition type comparison.
23989
23990 Export `entry' as partmap-specific `part.data' struct.
23991 (grub_gpt_header, grub_gpt_partentry): Move from here ...
23992
23993 * include/grub/gpt_partition.h (grub_gpt_header)
23994 (grub_gpt_partentry): ... to here (new file).
23995
23996 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
23997
23998 (grub_gpt_partition_type_bios_boot): New const variable, defined
23999 with macro from `<grub/gpt_partition.h>'.
24000
24001 (setup): Replace `first_start' with `embed_region', which keeps
24002 track of the embed region (and is partmap-agnostic).
24003
24004 Replace find_first_partition_start() with find_usable_region(),
24005 which finds a usable region for embedding using partmap-specific
24006 knowledge (supports PC/MSDOS and GPT).
24007
24008 Fix all assumptions that the embed region start at sector 1, using
24009 `embed_region.start' from now on. Similarly, use `embed_region.end'
24010 rather than `first_start' to calculate available size.
24011
24012 In grub_util_info() message, replace "into after the MBR" with an
24013 indication of the specific sector our embed region starts at.
24014
66cb40f6 240152008-02-19 Robert Millan <rmh@aybabtu.com>
24016
24017 * DISTLIST: Replace `commands/ieee1275/halt.c' and
24018 `commands/ieee1275/reboot.c' with `commands/halt.c' and
24019 `commands/reboot.c'.
24020 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
24021 (halt_mod_SOURCES): Likewise.
24022 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
24023 (halt_mod_SOURCES): Likewise.
24024
b7202015 240252008-02-17 Christian Franke <franke@computer.org>
24026
24027 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
24028
32b0fc49 240292008-02-17 Robert Millan <rmh@aybabtu.com>
24030
24031 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
24032 set `first_start' to 0 for non-PC/MSDOS partition maps.
24033
aca63502 240342008-02-16 Robert Millan <rmh@aybabtu.com>
24035
24036 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
24037 do not assume partition map is PC/MSDOS before performing checks that
24038 are specific to that layout.
24039
0de8be86 240402008-02-13 Robert Millan <rmh@aybabtu.com>
24041
24042 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
24043 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
24044 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
24045
c3db8364 240462008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
24047
24048 * configure.ac: Only a cosmetic change on the handling of
24049 -fno-stack-protector.
24050
f714229e 240512008-02-12 Alexandre Boeglin <alex@boeglin.org>
24052
c3db8364 24053 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
24054 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
24055 reboot.c.
f714229e 24056 (grub_install_SOURCES): Add halt.mod and reboot.mod.
24057 (halt_mod_SOURCES): New variable.
24058 (halt_mod_CFLAGS): Likewise.
24059 (halt_mod_LDFLAGS): Likewise.
24060 (reboot_mod_SOURCES): Likewise.
24061 (reboot_mod_CFLAGS): Likewise.
24062 (reboot_mod_LDFLAGS): Likewise.
24063
c3db8364 24064 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
24065 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
24066 reboot.c.
f714229e 24067 (halt_mod_SOURCES): Likewise.
24068 (reboot_mod_SOURCES): Likewise.
24069
c3db8364 24070 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
24071 commands/i386/pc/reboot.c by commands/reboot.c.
f714229e 24072 (reboot_mod_SOURCES): Likewise.
24073
24074 * commands/i386/pc/reboot.c: merge this file ...
24075
24076 * commands/ieee1275/reboot.c: ... and this file ...
24077
24078 * commands/reboot.c: ... to this file.
c3db8364 24079 Add some precompiler directive to include the correct header for
24080 each machine.
f714229e 24081
24082 * commands/ieee1275/halt.c: move this file ...
24083
24084 * commands/halt.c: ... to here.
c3db8364 24085 Add some precompiler directive to include the correct header for
24086 each machine.
f714229e 24087
24088 * include/grub/efi/efi.h (grub_reboot): New function declaration.
24089 (grub_halt): Likewise.
24090
24091 * kern/efi/efi.c (grub_reboot): New function.
24092 (grub_halt): Likewise.
24093
c74493e0 240942008-02-12 Robert Millan <rmh@aybabtu.com>
24095
24096 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
24097 /dev (like it is done for /dev/mapper). This doesn't provide support
24098 for EVMS, but at least it is now easy to identify the problem when it
24099 arises.
24100
d0db4b04 241012008-02-11 Robert Millan <rmh@aybabtu.com>
24102
24103 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
24104 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
24105 comparing it with -1, not 0.
24106
bf748642 241072008-02-10 Robert Millan <rmh@aybabtu.com>
24108
24109 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
24110 `disk/lvm.c'.
24111 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24112 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
24113
24114 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
24115 `disk/lvm.c' to the end of the list.
24116 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24117 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
24118
b5db202a 241192008-02-10 Robert Millan <rmh@aybabtu.com>
24120
24121 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
24122 grub_print_error() instead. This will let user know why we're entering
24123 rescue mode.
24124 Based on suggestions from Sam Morris.
24125
83abee31 241262008-02-10 Alexandre Boeglin <alex@boeglin.org>
24127
24128 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
24129 on remaining N args, instead of "--" arg N times.
24130
78d5a08b 241312008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
24132
24133 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
24134 (fill_with_default_glyph): Changed to use unknown_glyph for fill
24135 pattern for unknown glyphs.
24136
68807e5f 241372008-02-09 Robert Millan <rmh@aybabtu.com>
24138
24139 * configure.ac: Probe for `help2man'.
24140 * Makefile.in (builddir): New variable.
24141 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
24142 or otherwise add a few flags/options to it.
24143 (install-local): For every executable utility or script that is
24144 installed, invoke $(HELP2MAN) to install a manpage based on --help
24145 output.
24146
24147 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
24148 that it doesn't prevent --help from working in build tree.
24149
24150 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
24151 with `bug-grub@gnu.org'.
24152 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
24153 * util/update-grub.in (usage): New function.
24154 Implement proper argument check, with support for --help and --version
24155 (as well as existing -y).
24156
241572008-02-09 Christian Franke <franke@computer.org>
0d9ff7f0 24158
24159 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
24160 avoid overwriting previous output.
24161 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
24162
c1962162 241632008-02-09 Robert Millan <rmh@aybabtu.com>
24164
24165 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
24166 drawing the menu.
24167
3dac2e3f 241682008-02-09 Robert Millan <rmh@aybabtu.com>
24169
24170 * commands/sleep.c: New file.
24171 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
24172 (sleep_mod_SOURCES): New variable.
24173 (sleep_mod_CFLAGS): Likewise.
24174 (sleep_mod_LDFLAGS): Likewise.
24175
7a634e08 241762008-02-09 Robert Millan <rmh@aybabtu.com>
24177
24178 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
24179 situations in which we can deduce the RAID size and the superblock
24180 doesn't match it.
24181
b92f0c18 241822008-02-09 Robert Millan <rmh@aybabtu.com>
24183
24184 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
24185 and return a grub_diskmemberlist_t composed of LVM physical volumes.
24186 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
24187
24188 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
24189 and return a grub_diskmemberlist_t composed of physical array members.
24190 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
24191
24192 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
24193 prototype.
24194 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
24195 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
24196 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
24197
24198 * util/grub-probe.c (probe): Move partmap probing code from here ...
24199 (probe_partmap): ... to here.
24200 (probe): Use probe_partmap() once for the disk we're probing, and
24201 additionally, when such disk contains a memberlist() struct member,
24202 once for each disk that is contained in the structure returned by
24203 memberlist().
24204
91a4bf68 242052008-02-09 Robert Millan <rmh@aybabtu.com>
24206
24207 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
24208 environment variable to 'all' in order to obtain debug output from
24209 non-util/ code.
24210 * util/i386/pc/grub-setup.c (main): Likewise.
24211
a96f9caa 242122008-02-08 Robert Millan <rmh@aybabtu.com>
24213
24214 * disk/raid.c (grub_raid_scan_device): Check for
24215 `array->device[sb.this_disk.number]' rather than for
24216 `array->device[sb.this_disk.number]->name', since the latter is not
fe6b695a 24217 guaranteed to be accessible.
a96f9caa 24218
b37a9222 242192008-02-08 Robert Millan <rmh@aybabtu.com>
24220
24221 * disk/raid.c: Update copyright.
24222 * fs/cpio.c: Likewise.
24223 * include/grub/raid.h: Likewise.
24224 * loader/i386/pc/multiboot.c: Likewise.
24225 * util/hostfs.c: Likewise.
24226
5626aee1 242272008-02-08 Robert Millan <rmh@aybabtu.com>
24228
24229 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
24230 to a grub_disk_t array.
24231 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
24232 `device[x]'.
24233 (grub_raid_scan_device): Replace `device[x].name' accesses with
24234 `device[x]->name'. Simplify initialization of `array->device[x]'.
24235
554f0187 242362008-02-08 Robert Millan <rmh@aybabtu.com>
24237
24238 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
24239 grub_dprintf() calls.
24240 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
24241 error message.
24242
1ec8425d 242432008-02-07 Christian Franke <franke@computer.org>
24244
24245 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
24246 instead of fseek and ftell to support large files.
24247 (grub_hostfs_read): Likewise.
24248
f2156fda 242492008-02-07 Robert Millan <rmh@aybabtu.com>
24250
24251 Patch from Jeroen Dekkers.
24252 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
fe6b695a 24253 failure, since successfully reading all array members might not be
f2156fda 24254 required.
24255
9216e0e7 242562008-02-06 Robert Millan <rmh@aybabtu.com>
24257
24258 * util/grub-probe.c (probe): Simplify partmap probing (with the
24259 assumption that the first word up to the underscore equals to
24260 the module name).
24261
b0dfd29a 242622008-02-06 Christian Franke <franke@computer.org>
24263
24264 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
24265 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
24266 last block of a cpio or tar stream.
24267 Check for "TRAILER!!!" instead of any empty data
24268 block to detect last block of a cpio stream.
24269 (grub_cpio_dir): Fix constness of variable np.
24270 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
24271 cpio or tar trailer is detected. This fixes a crash
24272 on open of a non existing file.
24273
c32865bf 242742008-02-05 Bean <bean123ch@gmail.com>
24275
24276 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
24277 address of entry.
24278 (grub_multiboot_load_elf64): Likewise.
24279 (grub_multiboot): Initialize mbi structure.
24280
24281 * util/grub-fstest.c: Don't include unused header file script.h.
24282
fe6b695a 24283 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
c32865bf 24284 of file.
24285 (grub_fstest_SOURCES): Likewise.
24286
409480b7 242872008-02-05 Robert Millan <rmh@aybabtu.com>
24288
24289 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
24290 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
24291 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
24292 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
24293
24294 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
24295 (translation_table): Replace hardcoded values with macros
24296 provided by `<grub/term.h>'.
24297
24298 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
24299 (keyboard_map): Correct/add a few values, with macros provided
24300 by `<grub/term.h>'.
24301 (keyboard_map_shift): Zero values that don't differ from their
24302 `keyboard_map' equivalents.
24303 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
24304 Discard the second scan code that is always sent by Caps lock.
24305 Only use `keyboard_map_shift' when it provides a non-zero value,
24306 otherwise fallback to `keyboard_map'.
24307
99fadbaa 243082008-02-04 Bean <bean123ch@gmail.com>
24309
24310 * Makefile.in (enable_grub_fstest): New variable.
24311
24312 * conf/common.rmk (grub_fstest_init.lst): New rule.
24313 (grub_fstest_init.h): Likewise.
24314 (grub_fstest_init.c): Likewise.
24315 (util/grub-fstest.c_DEPENDENCIES): New variable.
24316 (grub_fstest_SOURCES): Likewise.
24317
24318 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
24319
24320 * util/grub-fstest.c: New file.
24321
bf567c50 243222008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24323
24324 Make grub-setup handle a separate root device.
f19dbdb7 24325
bf567c50 24326 * util/i386/pc/grub-setup.c (setup): Always open the root device,
24327 so that the root device can be compared with the destination
24328 device.
24329 When embedding the core image, if the root and destination devices
24330 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
24331 0xFF.
24332 When not embedding, set ROOT_DRIVE to 0xFF.
f19dbdb7 24333
9be6b98b 243342008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24335
24336 Add support for having a grub directory in a different drive. This
24337 is still only the data handling part.
f19dbdb7 24338
9be6b98b 24339 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
24340 (codestart): Save %dh in GRUB_ROOT_DRIVE.
24341 (grub_root_drive): New variable.
24342
24343 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
24344 instead of GRUB_BOOT_DRIVE to construct a device name. Set
24345 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
24346 as it was.
24347
24348 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
24349
24350 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
24351 macro.
24352 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
24353
24354 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
24355 is bogus, because PXE booting does not specify any drive
24356 correctly.
24357
24358 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
24359 am not sure if this is really correct.
24360
24361 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
24362 is always identical to the boot drive when booting from a CD.
24363
24364 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
24365 longer.
24366 (root_drive): New variable.
24367 (real_start): Unconditionally set %dh to ROOT_DRIVE.
24368 (setup_sectors): Push %dx right after popping it, because %dh will
24369 be modified later.
24370 (copy_buffer): Restore %dx.
24371
e0ca0677 243722008-02-03 Robert Millan <rmh@aybabtu.com>
24373
24374 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
24375 use `cdboot.img' for cdrom images.
24376
3b3f6629 243772008-02-03 Robert Millan <rmh@aybabtu.com>
24378
24379 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
24380 only setup gfxterm when `font' command has succeeded.
24381
d42b3672 243822008-02-03 Robert Millan <rmh@aybabtu.com>
24383
24384 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
24385 (grub_rescue_cmd_multiboot_loader)
24386 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
24387
fa370ea6 243882008-02-03 Pavel Roskin <proski@gnu.org>
24389
e0c5dacb 24390 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
fa370ea6 24391 %edx and %esi from stack only after grub_gate_a20() is called.
24392 grub_gate_a20() clobbers %edx.
24393
f2a76e1d 243942008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
24395
24396 * configure.ac (AC_INIT): Bumped to 1.96.
24397
24398 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
24399 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
24400 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
24401 video/readers/png.c.
24402
90fd32d1 244032008-02-03 Bean <bean123ch@gmail.com>
9be665dd 24404
24405 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
24406 (cdboot_img_SOURCES): New variable.
24407 (cdboot_img_ASFLAGS): New variable.
24408 (cdboot_img_LDFLAGS): New variable.
24409
24410 * boot/i386/pc/cdboot.S: New file.
24411
24412 * disk/i386/pc/biosdisk.c (cd_start): New variable.
24413 (cd_count): Likewise.
24414 (grub_biosdisk_get_drive): Add support for cd device.
24415 (grub_biosdisk_call_hook): Likewise.
24416 (grub_biosdisk_iterate): Likewise.
24417 (grub_biosdisk_open): Likewise.
24418 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
24419 (grub_biosdisk_rw): Support reading from cd device.
24420 (GRUB_MOD_INIT): Iterate cd devices.
24421
24422 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
24423 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
24424 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
24425
24426 * kern/i386/pc/init.c (make_install_device): Check for cd device.
24427
4020aa53 244282008-02-02 Robert Millan <rmh@aybabtu.com>
24429
24430 * commands/read.c: New file.
24431 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
24432 (read_mod_SOURCES): New variable.
24433 (read_mod_CFLAGS): Likewise.
24434 (read_mod_LDFLAGS): Likewise.
24435
e03a1132 244362008-02-02 Robert Millan <rmh@aybabtu.com>
24437
24438 * normal/main.c (grub_normal_execute): Check for `menu->size' when
24439 determining whether menu has to be displayed.
24440
58c69220 244412008-02-02 Marco Gerards <marco@gnu.org>
24442
24443 * bus/pci.c: New file.
24444
24445 * include/grub/pci.h: Likewise.
24446
24447 * include/grub/i386/pc/pci.h: Likewise.
24448
24449 * commands/lspci.c: Likewise.
24450
24451 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
24452 `lspci.mod'.
24453 (pci_mod_SOURCES): New variable.
24454 (pci_mod_CFLAGS): Likewise.
24455 (pci_mod_LDFLAGS): Likewise.
24456 (lspci_mod_SOURCES): Likewise.
24457 (lspci_mod_CFLAGS): Likewise.
f19dbdb7 24458 (lspci_mod_LDFLAGS): Likewise.
58c69220 24459
c004e1b4 244602008-02-02 Bean <bean123ch@gmail.com>
24461
24462 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
24463 (grub_ufs_get_file_block): Fix indirect block calculation problem.
24464
24465 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
24466 (grub_xfs_btree_node): New structure.
24467 (grub_xfs_btree_root): New structure.
24468 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
24469 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
24470 (GRUB_XFS_EXTENT_BLOCK): Likewise.
24471 (GRUB_XFS_EXTENT_SIZE): Likewise.
24472 (grub_xfs_read_block): Support btree format type.
24473 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
24474 Use directory block as basic unit.
24475
24476 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
24477
24478 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
24479 __attribute__ ((__regparm__ (1))).
24480
f95562bf 244812008-02-01 Robert Millan <rmh@aybabtu.com>
24482
24483 Correct a mistake in previous commit.
24484
24485 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
24486 top.
24487 (normal/command.c_DEPENDENCIES): New variable.
24488
7d31f41f 244892008-02-01 Robert Millan <rmh@aybabtu.com>
24490
24491 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
24492 top.
24493 (normal/command.c_DEPENDENCIES): New variable.
24494 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
24495 * conf/i386-ieee1275.rmk: Likewise.
24496 * conf/i386-linuxbios.rmk: Likewise.
24497 * conf/i386-pc.rmk: Likewise.
24498 * conf/sparc64-ieee1275.rmk: Likewise.
24499 * conf/powerpc-ieee1275.rmk: Likewise.
24500 (grub_emu_SOURCES): Add `fs/fshelp.c'.
24501
24502 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
24503
60b6be74 245042008-02-01 Robert Millan <rmh@aybabtu.com>
24505
24506 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
24507 call at beginning of function.
24508
078522ab 245092008-01-31 Pavel Roskin <proski@gnu.org>
24510
24511 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
d2c11005 24512 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
24513 (grub_mkrescue_SOURCES): Likewise.
078522ab 24514 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
24515
ccaa8a5f 245162008-01-30 Robert Millan <rmh@aybabtu.com>
24517
24518 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
24519 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
24520 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
24521 (grub_probe_SOURCES): ... to here.
24522
24523 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
24524 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
24525 * conf/i386-ieee1275.rmk: Likewise.
24526 * conf/i386-linuxbios.rmk: Likewise.
24527 * conf/powerpc-ieee1275.rmk: Likewise.
24528
ae5a9cd7 245292008-01-30 Tristan Gingold <gingold@free.fr>
24530
24531 * kern/rescue.c: Silently accept empty lines.
24532
70bc2ef2 245332008-01-29 Bean <bean123ch@gmail.com>
24534
24535 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
24536 (real_code_2): Code cleanup and change comment style.
24537 (move_memory): Avoid using 32-bit address mode.
24538
6a4d50ea 245392008-01-29 Bean <bean123ch@gmail.com>
24540
24541 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
24542 (png_mod_SOURCES): New variable.
24543 (png_mod_CFLAGS): Likewise.
24544 (png_mod_LDFLAGS): Likewise.
24545
24546 * video/readers/png.c: New file.
24547
11cc30ac 245482008-01-28 Robert Millan <rmh@aybabtu.com>
24549
24550 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
24551 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
24552 `ifndef GRUB_MOD_GAP' hack.
24553 * util/elf/grub-mkimage.c (add_segments): Likewise.
24554
3abc589f 245552008-01-27 Robert Millan <rmh@aybabtu.com>
24556
24557 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
24558 `GRUB_MOD_GAP' for platforms in which it's not defined.
962ca133 24559 * util/elf/grub-mkimage.c (add_segments): Likewise.
3abc589f 24560
e1907778 245612008-01-27 Robert Millan <rmh@aybabtu.com>
24562
24563 Get grub-emu to build again (including parallel builds).
24564
24565 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
24566 Split into ...
24567 (util/grub-emu.c_DEPENDENCIES): ... this, ...
24568 (normal/execute.c_DEPENDENCIES): ... this, ...
24569 (grub-emu_DEPENDENCIES): ... and this.
24570
24571 * conf/i386-efi.rmk: Likewise.
24572 * conf/i386-linuxbios.rmk: Likewise.
24573 * conf/i386-ieee1275.rmk: Likewise.
24574 * conf/powerpc-ieee1275.rmk: Likewise.
24575 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
24576
2216b101 245772008-01-27 Robert Millan <rmh@aybabtu.com>
24578
24579 * NEWS: Add a few items.
24580
f75172d9 245812008-01-27 Robert Millan <rmh@aybabtu.com>
24582
24583 Fix parallel builds with grub-emu. Based on earlier commit for
24584 grub-probe and grub-setup.
24585
24586 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24587 (util/grub-emu.c_DEPENDENCIES): ... this.
24588 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24589 (util/grub-emu.c_DEPENDENCIES): ... this.
24590 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24591 (util/grub-emu.c_DEPENDENCIES): ... this.
24592 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24593 (util/grub-emu.c_DEPENDENCIES): ... this.
24594 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
24595 (util/grub-emu.c_DEPENDENCIES): ... this.
24596
3f51de77 245972008-01-27 Pavel Roskin <proski@gnu.org>
24598
24599 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
24600 to create a gap between _end and the modules added to the image
24601 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
24602 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
24603 * util/elf/grub-mkimage.c (add_segments): Likewise.
24604
2033f53e 246052008-01-26 Pavel Roskin <proski@gnu.org>
24606
24607 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
24608 just return an error.
24609
22da1f6f 246102008-01-26 Bean <bean123ch@gmail.com>
24611
24612 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
24613 (grub_reiserfs_get_item): Save offset of the next item.
24614 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
24615
2a9525e6 246162008-01-25 Robert Millan <rmh@aybabtu.com>
24617
24618 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
24619 make all filesystem sources appear together (possibly fixing omissions
24620 while at it).
24621 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24623 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24624 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24625
24626 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
24627 add `kern/file.c'.
24628 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
24629 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24630 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
24631 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
24632
24633 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
24634 (probe): Add a sanity check to make sure of our ability to read
24635 requested files when probing for filesystem type.
24636
24637 * genmk.rb: Update copyright year (2007).
24638
24639 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
24640 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
24641 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
24642 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
24643 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
24644 : Remove function prototypes.
24645
b95f71b5 246462008-01-25 Robert Millan <rmh@aybabtu.com>
24647
24648 Revert my previous commits (based on wrong assumption of how grub_errno
24649 works).
24650
fe6b695a 24651 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
b95f71b5 24652 * kern/file.c (grub_file_open): Likewise.
24653
d08bbb49 246542008-01-24 Pavel Roskin <proski@gnu.org>
24655
24656 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
24657 that hang if GRUB tries to setup colors.
24658 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
24659 colors for firmwares that don't support it.
24660 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
24661 Recognize Open Hack'Ware, set flags to work around its
24662 limitations.
24663
605e36ed 246642008-01-24 Robert Millan <rmh@aybabtu.com>
24665
24666 * kern/file.c (grub_file_open): Do not account previous failures of
24667 unrelated functions when grub_errno is checked for.
24668 Reported by Oleg Strikov.
24669
bac332a1 246702008-01-24 Bean <bean123ch@gmail.com>
24671
24672 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
24673 (grub_ufs_sblock): New member volume name.
24674 (grub_ufs_find_file): Fix string copy bug.
24675 (grub_ufs_label): Implement this function properly.
24676
24677 * fs/hfs.c (grub_hfs_cnid_type): New enum.
24678 (grub_hfs_iterate_records): Use the correct file number for extents
24679 and catalog file. Fix problem in next index calculation.
24680 (grub_hfs_find_node): Replace recursive function call with loop.
24681 (grub_hfs_iterate_dir): Replace recursive function call with loop.
24682
15c80c09 246832008-01-23 Robert Millan <rmh@aybabtu.com>
24684
24685 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
24686 `<grub/symbol.h>' and `<grub/multiboot.h>'.
24687 (grub_multiboot2_real_boot): New function prototype.
24688
24689 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
24690 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
24691
24692 * kern/i386/ieee1275/init.c (grub_os_area_addr)
24693 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
24694
305338fd 246952008-01-23 Robert Millan <rmh@aybabtu.com>
24696
24697 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
24698 #ifdef'ed out grub_printf().
24699
3ea52685 247002008-01-23 Robert Millan <rmh@aybabtu.com>
24701
24702 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
24703 grub_dprintf calls, since they make "debug=all" mode unusable.
24704 (grub_console_checkkey): Likewise.
24705
5882ae4b 247062008-01-23 Robert Millan <rmh@aybabtu.com>
24707
24708 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
24709 `term/i386/pc/at_keyboard.c'.
24710 (pkglib_MODULES): Add `serial.mod'.
24711 (serial_mod_SOURCES): New variable.
24712 (serial_mod_CFLAGS): Likewise.
24713 (serial_mod_LDFLAGS): Likewise.
24714
24715 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
24716 `<grub/powerpc/ieee1275/console.h>'.
24717 (grub_keyboard_controller_init): New function prototype.
24718 (grub_console_checkkey): Likewise.
24719 (grub_console_getkey): Likewise.
24720
24721 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
24722 keyboard on i386.
24723
24724 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
24725 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
24726
06ab5303 247272008-01-23 Robert Millan <rmh@aybabtu.com>
24728
24729 * kern/i386/pc/init.c (make_install_device): When memdisk image is
24730 present, "(memdisk)/boot/grub" becomes the default prefix.
24731
24732 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
24733 a memdisk tarball with all the modules. Add --overlay=DIR option that
24734 allows users to overlay additional files into the image.
24735
dbb475a4 247362008-01-23 Robert Millan <rmh@aybabtu.com>
24737
24738 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
24739 and `machine/memory.h'.
24740 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
24741 (_multiboot_mod_SOURCES): New variable.
24742 (_multiboot_mod_CFLAGS): Likewise.
24743 (_multiboot_mod_LDFLAGS): Likewise.
24744 (multiboot_mod_SOURCES): Likewise.
24745 (multiboot_mod_CFLAGS): Likewise.
24746 (multiboot_mod_LDFLAGS): Likewise.
24747
24748 * include/grub/i386/ieee1275/loader.h: New file.
24749
24750 * include/grub/i386/ieee1275/machine.h: Likewise.
24751
24752 * include/grub/i386/ieee1275/memory.h: Likewise.
24753
24754 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
24755 variable declaration.
24756 (grub_os_area_size): Likewise.
24757
24758 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
24759 (grub_lower_mem, grub_upper_mem): New variables.
24760 (grub_stop_floppy): New function (just to make
24761 grub_multiboot2_real_boot() happy).
24762
24763 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
24764 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
24765 (grub_stop): New function.
24766 Include `"../realmode.S"' and `"../loader.S"'.
24767
24768 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
24769 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
24770
24771 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
24772 rely on grub_multiboot2_real_boot() for final boot.
24773
25638629 247742008-01-22 Robert Millan <rmh@aybabtu.com>
24775
24776 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
24777 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
24778 device that doesn't look like an SD card.
24779 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
24780 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
24781 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
24782 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
24783 found.
24784
9dad816d 247852008-01-22 Robert Millan <rmh@aybabtu.com>
24786
24787 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
24788 avoid claiming over our own code.
24789
34842f2d 247902008-01-22 Bean <bean123ch@gmail.com>
24791
24792 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
24793 (jpeg_mod_SOURCES): New variable.
24794 (jpeg_mod_CFLAGS): Likewise.
24795 (jpeg_mod_LDFLAGS): Likewise.
24796
24797 * video/readers/jpeg.c : New file.
24798
44023a28 247992008-01-22 Bean <bean123ch@gmail.com>
24800
24801 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
24802 there are no more items.
24803
bc2d8ac6 248042008-01-21 Robert Millan <rmh@aybabtu.com>
24805
24806 * kern/mm.c (grub_mm_init_region): Improve debug message.
24807
261bd4bc 248082008-01-21 Robert Millan <rmh@aybabtu.com>
24809
24810 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
24811 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
24812 address.
24813 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
24814 a C macro.
24815 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
24816 Indicates start of upper memory.
24817 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
24818 (generate_image): Abort when image size is big enough to corrupt
24819 upper memory.
24820
24821 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
24822 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
24823 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24824 instead of hardcoding 0xA0000.
24825 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
24826 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
24827 instead of hardcoding 0xA0000.
24828
f970b55e 248292008-01-21 Robert Millan <rmh@aybabtu.com>
24830
24831 * disk/memdisk.c (memdisk_size): New variable.
24832 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
24833 `memdisk_size'.
24834 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
24835 image to dynamic memory.
24836 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
24837 `memdisk_size'. Free memdisk block.
24838
1a8b0526 248392008-01-21 Robert Millan <rmh@aybabtu.com>
24840
24841 Fix detection of very small filesystems (like tar).
24842
24843 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
24844 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
24845 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
24846 a problem with this disk).
24847
6e9b4aab 248482008-01-21 Robert Millan <rmh@aybabtu.com>
24849
24850 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
24851 on grub_biosdisk_rw_standard() error.
24852
0d8837b2 248532008-01-21 Robert Millan <rmh@aybabtu.com>
24854
24855 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
24856 recent changes.
24857 * kern/elf.c: Likewise.
24858 * kern/ieee1275/ieee1275.c: Likewise.
24859 * kern/powerpc/ieee1275/openfw.c: Likewise.
24860 * term/ieee1275/ofconsole.c: Likewise.
24861
ffd36e34 248622008-01-21 Robert Millan <rmh@aybabtu.com>
24863
24864 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
24865
3f0093d0 24866 * include/grub/kernel.h (grub_arch_memdisk_addr)
24867 (grub_arch_memdisk_size): Moved from here ...
ffd36e34 24868
3f0093d0 24869 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
24870 (grub_arch_memdisk_size): ... to here.
ffd36e34 24871
6c391b21 248722008-01-21 Robert Millan <rmh@aybabtu.com>
24873
24874 Mostly based on bugfix from Bean.
24875
24876 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
24877 attribute with hook() parameter.
24878 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
24879 declaration.
24880 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
24881 attribute with hook() parameter.
24882 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
24883 declaration.
24884
55a581dc 248852008-01-21 Robert Millan <rmh@aybabtu.com>
24886
24887 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
24888 (pkglib_MODULES): Add `memdisk.mod'.
24889 (memdisk_mod_SOURCES): New variable.
24890 (memdisk_mod_CFLAGS): Likewise.
24891 (memdisk_mod_LDFLAGS): Likewise.
24892
24893 * disk/memdisk.c: New file.
24894
24895 * include/grub/disk.h (grub_disk_dev_id): Add
24896 `GRUB_DISK_DEVICE_MEMDISK_ID'.
24897
24898 * include/grub/i386/pc/kernel.h
24899 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
24900 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
24901 (grub_kernel_image_size): New variable declaration.
24902 (grub_total_module_size): Likewise.
24903 (grub_memdisk_image_size): Likewise.
24904
24905 * include/grub/i386/pc/memory.h
24906 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
24907
24908 * include/grub/kernel.h: Include `<grub/symbol.h>'.
24909 (grub_arch_memdisk_addr): New variable declaration.
24910 (grub_arch_memdisk_size): Likewise.
24911
24912 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
24913 (grub_arch_memdisk_size): Likewise.
24914
24915 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
24916 (codestart): Replace hardcoded `0x100000' with
24917 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
24918
24919 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
24920 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
24921 not NULL, append the contents of the file it refers to, at the end of
24922 the compressed kernel image. Initialize `grub_memdisk_image_size'
24923 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
24924 (options): Add "memdisk"|'m' option.
24925 (main): Parse --memdisk|-m option, and pass user-provided path as
24926 parameter to generate_image().
24927
3d7f54c9 249282008-01-20 Robert Millan <rmh@aybabtu.com>
24929
24930 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
24931 grub_dprintf() calls from here ...
24932 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
24933
0bf74728 249342008-01-20 Robert Millan <rmh@aybabtu.com>
24935
24936 Fix detection of "real mode" when /options/real-mode? doesn't exist.
24937
24938 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
24939 declaration.
24940 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
24941 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
24942 `GRUB_IEEE1275_FLAG_REAL_MODE'.
fe6b695a 24943 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
0bf74728 24944 property).
24945 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
24946 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
24947
33bf70a7 249482008-01-19 Robert Millan <rmh@aybabtu.com>
24949
fe6b695a 24950 Get rid of confusing function (superseded by
33bf70a7 24951 `grub_ieee1275_get_integer_property')
24952 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
24953 prototype.
24954 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
24955 function.
24956 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
24957 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
fe987087 24958 in native endianness from grub_ieee1275_get_integer_property().
33bf70a7 24959
e2da7d26 249602008-01-19 Robert Millan <rmh@aybabtu.com>
24961
24962 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
24963 command after "shut-down", since implementations differ on which
24964 the command for halt is.
24965
59f1fd8d 249662008-01-19 Robert Millan <rmh@aybabtu.com>
24967
24968 * include/grub/i386/linuxbios/console.h: Add header protection.
24969 (grub_keyboard_controller_init): New function prototype.
24970 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
24971 (KEYBOARD_COMMAND_READ): Likewise.
24972 (KEYBOARD_COMMAND_WRITE): Likewise.
24973 (KEYBOARD_SCANCODE_SET1): Likewise.
24974 (grub_keyboard_controller_write): New function.
24975 (grub_keyboard_controller_read): Likewise.
24976 (grub_keyboard_controller_init): Likewise.
24977
24978 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
24979 (grub_console_init): On coreboot/LinuxBIOS, call
24980 grub_keyboard_controller_init().
24981
5f5a7c15 249822008-01-19 Robert Millan <rmh@aybabtu.com>
24983
24984 PowerPC changes provided by Pavel Roskin.
24985
24986 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
24987 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
24988 don't rely on cmain() doing it.
24989 * kern/i386/ieee1275/startup.S (_start): Store %eax in
24990 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
24991
1210e168 249922008-01-16 Robert Millan <rmh@aybabtu.com>
24993
24994 * include/grub/i386/linuxbios/memory.h
24995 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
24996 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
24997 receive `table_header' as argument. Instead, probe for it in the
24998 known memory ranges where it can be present.
24999 (grub_available_iterate): Do not pass a fixed `table_header' address
25000 to grub_linuxbios_table_iterate().
25001
3d04eab8 250022008-01-15 Robert Millan <rmh@aybabtu.com>
25003
25004 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
25005 * conf/i386-ieee1275.rmk: New file.
25006 * include/grub/i386/ieee1275/console.h: Likewise.
25007 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
25008 * include/grub/i386/ieee1275/kernel.h: Likewise.
25009 * include/grub/i386/ieee1275/time.h: Likewise.
25010 * kern/i386/ieee1275/init.c: Likewise.
25011 * kern/i386/ieee1275/startup.S: Likewise.
25012
d1bc1b73 250132008-01-15 Robert Millan <rmh@aybabtu.com>
25014
25015 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
25016 when pointers are 32-bit (but still do set it to one when they are
25017 64-bit).
25018
66a65807 250192008-01-15 Robert Millan <rmh@aybabtu.com>
25020
25021 * include/grub/ieee1275/ieee1275.h
25022 (grub_ieee1275_get_integer_property): New function prototype.
25023
25024 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
25025 (grub_ieee1275_get_integer_property): New function. Wraps around
fe987087 25026 grub_ieee1275_get_property() to handle endianness.
66a65807 25027
25028 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
25029 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
fe6b695a 25030 where appropriate.
66a65807 25031 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
25032 (grub_map): Likewise.
25033 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
25034
a83ccafd 250352008-01-15 Bean <bean123ch@gmail.com>
25036
25037 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
25038 (grub_script_execute_cmdline): Reset grub_errno.
25039
25040 * normal/main.c (read_config_file): Reset grub_errno.
25041
25042 * normal/parse.y (script_init): New.
25043 (script): Move function and menuentry here.
25044 (delimiter): New.
25045 (command): Add delimiter at the end of command.
25046 (commands): Adjust to match the new command.
25047 (commandblock): Remove grub_script_lexer_record_start.
f19dbdb7 25048 (menuentry): Add grub_script_lexer_record_start, use the new commands.
a83ccafd 25049 (if): Use the new commands.
25050
25051 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
25052
df6ecfc6 250532008-01-15 Robert Millan <rmh@aybabtu.com>
25054
25055 * normal/menu.c (run_menu): Move timeout message from here ...
25056 (print_timeout): ... to here.
25057 (run_menu): Use print_timeout() once during initial draw to print
25058 the whole message, and again in every clock tick to update only
25059 the number of seconds.
25060
87ae25eb 250612008-01-15 Robert Millan <rmh@aybabtu.com>
25062
25063 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
25064 actual size of `available' from grub_ieee1275_get_property(), and
25065 restrict parsing to that bound.
25066
47bf09a4 250672008-01-15 Christian Franke <franke@computer.org>
25068
25069 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
25070 (argp_program_version): Remove variable.
25071 (argp_program_bug_address): Likewise.
25072 (options): Convert from struct argp_option to struct option.
25073 (struct arguments): Remove.
25074 (parse_opt): Remove.
25075 (usage): New function.
25076 (main): Replace struct args members by simple variables.
25077 Replace argp_parse() by getopt_long().
25078 Add switch to evaluate options.
25079 Add missing "(...)" around root_dev in prefix string.
25080
c86f1469 250812008-01-14 Robert Millan <rmh@aybabtu.com>
25082
25083 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
25084 for grub_ieee1275_exit(), in order to improve portability.
25085
e622c559 250862008-01-14 Robert Millan <rmh@aybabtu.com>
25087
25088 * util/grub.d/10_linux.in (prefix): Define.
25089 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
25090
44cb1ec8 250912008-01-13 Pavel Roskin <proski@gnu.org>
25092
25093 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
25094 grub_errno if no errors have been detected.
25095
1eb8c802 250962008-01-12 Robert Millan <rmh@aybabtu.com>
25097
25098 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
25099 (grub_util_get_dev_abstraction): New function prototype.
25100
25101 * util/getroot.c: Include `<grub/util/getroot.h>'
25102 (grub_util_get_grub_dev): Move detection of abstraction type to ...
25103 (grub_util_get_dev_abstraction): ... here (new function).
25104
25105 * util/grub-probe.c: Convert PRINT_* to an enum. Add
25106 `PRINT_ABSTRACTION'.
25107 (probe): Probe for abstraction type when requested.
25108 (main): Understand `--target=abstraction'.
25109
25110 * util/i386/efi/grub-install.in: Add abstraction module to core
25111 image when it is found to be necessary.
25112 * util/i386/pc/grub-install.in: Likewise.
25113 * util/powerpc/ieee1275/grub-install.in: Likewise.
25114
25115 * util/update-grub_lib.in (font_path): Return system path without
25116 converting to GRUB path.
25117 * util/update-grub.in: Convert system path returned by font_path()
25118 to a GRUB path. Use `grub-probe -t abstraction' to determine what
25119 abstraction module is needed for loading fonts (if any). Export
25120 that as `GRUB_PRELOAD_MODULES'.
25121 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
25122 insmod commands).
25123
52bd3de9 251242008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
25125
25126 Remove some unused code from reiserfs.
f19dbdb7 25127
52bd3de9 25128 * fs/reiserfs.c (struct grub_reiserfs_key)
25129 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
25130 (struct grub_reiserfs_node_body): Removed.
25131 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
25132 Likewise.
25133 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25134 Likewise.
25135 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25136 Likewise.
25137 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
25138 Likewise.
25139 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
25140 Likewise.
25141 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
25142 Likewise.
25143 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25144 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25145 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
25146
2f80039d 251472008-01-10 Robert Millan <rmh@aybabtu.com>
25148
25149 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
25150 Determines if a file is garbage left by packaging systems, etc.
25151 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
25152 for processing /etc/grub.d scripts.
25153 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
25154 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
25155 as a condition for processing Linux images.
25156
87888032 251572008-01-10 Pavel Roskin <proski@gnu.org>
25158
25159 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
25160 to compile reiserfs.c on PowerPC.
25161
7e54fced 251622008-01-10 Robert Millan <rmh@aybabtu.com>
de9993e0 25163
25164 * kern/device.c (grub_device_iterate): Do not abort device iteration
25165 when one of the devices cannot be opened.
25166 * kern/disk.c (grub_disk_open): Do not account previous failures of
25167 unrelated functions when grub_errno is checked for.
25168
5aa541e6 251692008-01-08 Robert Millan <rmh@aybabtu.com>
25170
25171 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
25172 `! grub_linux_is_bzimage', change order of address comparison to make
25173 it more intuitive, and improve "too big zImage" error message.
25174
7076340d 251752008-01-08 Robert Millan <rmh@aybabtu.com>
25176
25177 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
25178 `$(update-grub_DATA)'.
25179 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
25180 targets.
25181
9ca70333 251822008-01-07 Robert Millan <rmh@aybabtu.com>
25183
25184 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
25185 which instruction is modified by grub-setup during installation
25186 (since it wasn't obvious by only looking at this file).
25187
38ccf575 251882008-01-07 Robert Millan <rmh@aybabtu.com>
25189
25190 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
25191 listing actual TODO items.
25192
f5db4291 251932008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25194
868967cf 25195 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
25196 correctly.
25197 (grub_reiserfs_get_key_offset): Likewise.
25198 (grub_reiserfs_set_key_offset): Likewise.
25199 (grub_reiserfs_set_key_type): Likewise.
fe6b695a 25200 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
868967cf 25201
25202 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
25203 better to remove the bitfield version completely.
f19dbdb7 25204
868967cf 252052008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 25206
f5db4291 25207 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
25208 allocated from the heap, due to the fshelp implementation.
25209 (grub_reiserfs_dir): Free NODE, due to the same reason.
25210
492e6d9d 252112008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
25212
25213 Mostly from Vincent Pelletier:
f19dbdb7 25214
492e6d9d 25215 * fs/reiserfs.c: New file.
f19dbdb7 25216
492e6d9d 25217 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
25218 (reiserfs_mod_SOURCES): New variable.
25219 (reiserfs_mod_CFLAGS): Likewise.
25220 (reiserfs_mod_LDFLAGS): Likewise.
25221
25222 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
25223 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
25224 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
25225 normal/color.c.
25226
9ce3e7c1 252272008-01-06 Robert Millan <rmh@aybabtu.com>
25228
25229 * normal/color.c: Remove `<grub/env.h>'.
25230
f3b58148 252312008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
25232
25233 * include/grub/normal.h: Include <grub/env.h>.
25234
7ac3bcfa 252352008-01-05 Robert Millan <rmh@aybabtu.com>
25236
25237 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
25238 usage example with `(hd0,1)'.
fb358190 25239 Reported by Samuel Thibault.
7ac3bcfa 25240
c8ee99d7 252412008-01-05 Robert Millan <rmh@aybabtu.com>
25242
25243 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
25244 (grub_linux_boot_zimage): Rename to ...
25245 (grub_linux_boot): ... this.
25246 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
25247 (grub_linux_boot_zimage): Conditionalize zImage copy.
25248
25249 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
25250 (grub_linux_boot_bzimage): Remove prototype.
25251 (grub_linux_boot_zimage): Rename to ...
25252 (grub_linux_boot): ... this.
25253
25254 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
25255 (grub_linux_boot): Remove function.
25256
0ece25b1 252572008-01-05 Robert Millan <rmh@aybabtu.com>
25258
25259 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
25260 (grub_env_write_color_highlight): Likewise.
25261 (grub_wait_after_message): Likewise.
25262
25263 * normal/color.c: New file.
25264
25265 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25266 (normal_mod_DEPENDENCIES): Likewise.
25267
25268 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25269 (normal_mod_DEPENDENCIES): Likewise.
25270
25271 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25272 (normal_mod_DEPENDENCIES): Likewise.
25273
25274 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
25275 (normal_mod_DEPENDENCIES): Likewise.
25276
25277 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
25278 for waiting after a message is printed.
25279 * normal/main.c (read_config_file): Likewise.
25280 (grub_normal_init): Register grub_env_write_color_normal() and
25281 grub_env_write_color_highlight() hooks. Mark `color_normal' and
25282 `color_highlight' variables as global.
25283
25284 * normal/menu.c (grub_wait_after_message): New function.
25285 (grub_color_menu_normal): New variable. Replaces ...
25286 (GRUB_COLOR_MENU_NORMAL): ... this macro.
25287 (grub_color_menu_highlight): New variable. Replaces ...
25288 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
25289 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
25290 `GRUB_TERM_COLOR_STANDARD'.
25291 (print_message): Use `grub_setcolorstate' to reload colors. Rename
25292 `normal_code' and `highlight_code' to `old_color_normal' and
25293 `old_color_highlight', respectively.
25294 (grub_menu_init_page): Update colors when drawing the menu, based on
25295 `menu_color_normal' and `menu_color_highlight' variables.
25296 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
25297 a message is printed.
25298
182dd4e5 252992008-01-05 Robert Millan <rmh@aybabtu.com>
25300
25301 * kern/env.c (grub_env_context_open): Propagate hooks for global
25302 variables to new context.
25303
25304 * kern/main.c (grub_set_root_dev): Export `root' variable.
25305
ddf8f6ad 253062008-01-05 Robert Millan <rmh@aybabtu.com>
25307
25308 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
fe6b695a 25309 discs unconditionally, since udev and others have options to provide
ddf8f6ad 25310 them.
25311
d8b43d9b 253122008-01-05 Robert Millan <rmh@aybabtu.com>
25313
25314 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
25315
2bff2de3 253162008-01-04 Christian Franke <franke@computer.org>
25317
25318 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
25319 of eisa_mmap.
25320
97eab917 253212008-01-03 Pavel Roskin <proski@gnu.org>
25322
25323 * kern/i386/linuxbios/init.c: Put "void" to all function
25324 declarations with no arguments.
25325 * kern/powerpc/ieee1275/init.c: Likewise.
25326 * term/i386/pc/at_keyboard.c: Likewise.
25327 * term/i386/pc/vga_text.c: Likewise.
25328 * util/grub-mkdevicemap.c: Likewise.
25329
b9416d00 253302008-01-02 Robert Millan <rmh@aybabtu.com>
25331
25332 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
25333 message when loaded image is out of bounds.
25334 (grub_multiboot_load_elf64): Likewise.
25335
92695df9 253362008-01-02 Pavel Roskin <proski@gnu.org>
25337
25338 * util/grub.d/10_linux.in: Try version without ".old" when
25339 looking for initrd. It's better to use initrd from the newer
25340 kernel of the same version than no initrd at all.
25341
d98d9cad 253422008-01-01 Robert Millan <rmh@aybabtu.com>
25343
25344 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
25345
dbfdce36 253462008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
25347
f19dbdb7 25348 * include/grub/video.h: Added grub_video_unmap_color and
dbfdce36 25349 grub_video_get_active_render_target.
25350 (grub_video_adapter): Added unmap_color and get_active_render_target.
25351
f19dbdb7 25352 * video/video.c: Added grub_video_unmap_color and
dbfdce36 25353 grub_video_get_active_render_target.
25354 (grub_video_get_info): Changed method to accept NULL pointer as an
25355 argument to allow detection of active video adapter.
25356
25357 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
25358 grub_video_vbe_unmap_color_int.
25359 Added grub_video_vbe_unmap_color and
25360 grub_video_vbe_get_active_render_target.
25361 (grub_video_vbe_adapter): Added unmap_color and
25362 get_active_render_target.
25363
f19dbdb7 25364 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
dbfdce36 25365 with grub_video_vbe_unmap_color_int.
25366
25367 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
25368 (DEFAULT_NORMAL_COLOR): Likewise.
25369 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
25370 (DEFAULT_FG_COLOR): Removed.
25371 (DEFAULT_BG_COLOR): Likewise.
25372 (DEFAULT_CURSOR_COLOR): Changed value.
25373 (grub_virtual_screen): Added standard_color_setting,
25374 normal_color_setting, highlight_color_setting and term_color.
25375 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
25376 (bitmap_width): Added.
25377 (bitmap_height): Likewise.
25378 (bitmap): Likewise.
25379 (set_term_color): Likewise.
25380 (grub_virtual_screen_setup): Changed to use new terminal coloring
25381 settings.
25382 (grub_gfxterm_init): Added init for bitmap.
25383 (grub_gfxterm_fini): Added destroy for bitmap.
25384 (redraw_screen_rect): Updated to use background bitmap and new
25385 terminal coloring.
25386 (scroll_up): Added optimization for case when there is no bitmap.
25387 (grub_gfxterm_cls): Fixed to use correct background color.
25388 (grub_virtual_screen_setcolorstate): Changed to use new terminal
25389 coloring.
25390 (grub_virtual_screen_setcolor): Likewise.
25391 (grub_virtual_screen_getcolor): Added.
25392 (grub_gfxterm_background_image_cmd): Likewise.
25393 (grub_video_term): Added setcolor and getcolor.
25394 (MOD_INIT): Added registration of background_image command.
25395 (MOD_TERM): Added unregistration for background_image command.
25396
c3c20931 253972007-12-30 Pavel Roskin <proski@gnu.org>
25398
25399 * loader/multiboot_loader.c: Fix multiboot command
25400 unregistration. Fix all typos in the word "multiboot".
25401
df266716 254022007-12-29 Pavel Roskin <proski@gnu.org>
94239199 25403
25404 * util/grub.d/10_linux.in: Refactor search for initrd. Add
25405 support for initrd names used in Fedora.
25406
fc6e896c 254072007-12-26 Bean <bean123ch@gmail.com>
25408
25409 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
25410 (cpio_mod_SOURCES): New variable.
25411 (cpio_mod_CFLAGS): Likewise.
25412 (cpio_mod_LDFLAGS): Likewise.
25413
25414 * fs/cpio.c: New file.
25415
25416 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
25417
25418 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25419
25420 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25421
25422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25423
533110ad 254242007-12-25 Robert Millan <rmh@aybabtu.com>
25425
25426 * include/grub/term.h (struct grub_term): Add `getcolor' function.
25427 (grub_getcolor): New function.
25428
25429 * kern/term.c (grub_getcolor): New function.
25430 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
25431 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
25432 (print_entry): Set normal and highlight colors to
25433 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
25434 respectively, before printing and restore them to old
25435 values afterwards.
25436 (grub_menu_init_page): Likewise. Fill an additional colored space
25437 that would otherwise be left blank.
25438
25439 * term/efi/console.c (grub_console_getcolor): New function.
25440 (struct grub_console_term.getcolor): New variable.
25441 * term/i386/pc/console.c (grub_console_getcolor): New function.
25442 (struct grub_console_term.getcolor): New variable.
25443 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
25444 (struct grub_console_term.getcolor): New variable.
25445
25446 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
25447 (struct grub_console_term.setcolor): Remove variable.
25448 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
25449 (struct grub_console_term.setcolor): Remove variable.
25450 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
25451 (struct grub_console_term.setcolor): Remove variable.
25452 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
25453 (struct grub_console_term.setcolor): Remove variable.
25454
4931827f 254552007-12-25 Robert Millan <rmh@aybabtu.com>
25456
25457 * configure.ac: Search for possible unifont.hex locations, and
25458 define UNIFONT_HEX if found.
25459
25460 * Makefile.in (UNIFONT_HEX): Define variable.
25461 (DATA): Rename to ...
25462 (PKGLIB): ... this. Update all users.
25463 (PKGDATA): New variable.
25464 (pkgdata_IMAGES): Rename to ...
25465 (pkglib_IMAGES): ... this. Update all users.
25466 (pkgdata_MODULES): Rename to ...
25467 (pkglib_MODULES): ... this. Update all users.
25468 (pkgdata_PROGRAMS): Rename to ...
25469 (pkglib_PROGRAMS): ... this. Update all users.
25470 (pkgdata_DATA): Rename to ...
25471 (pkglib_DATA): ... this. Update all users.
25472 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
25473 (unicode.pff, ascii.pff): New rules.
25474 (all-local): Add `$(PKGDATA)' dependency.
25475 (install-local): Process `$(PKGDATA)'.
25476
25477 * util/update-grub_lib.in (font_path): Search for *.pff files in
25478 a few more locations, including `${pkgdata}'.
25479
57e57e31 254802007-12-23 Robert Millan <rmh@aybabtu.com>
25481
25482 Patch from Bean <bean123ch@gmail.com>:
25483 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
25484 `size'.
25485
4bc72aa9 254862007-12-21 Bean <bean123ch@gmail.com>
25487
25488 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
25489 (ntfscomp_mod_SOURCES): New variable.
25490 (ntfscomp_mod_CFLAGS): Likewise.
25491 (ntfscomp_mod_LDFLAGS): Likewise.
25492
25493 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
25494 (grub_probe_SOURCES): Likewise.
25495 (grub_emu_SOURCES): Likewise.
25496
25497 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25498 (grub_emu_SOURCES): Likewise.
25499
25500 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25501 (grub_emu_SOURCES): Likewise.
25502
25503 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
25504 (grub_emu_SOURCES): Likewise.
25505
25506 * fs/ntfs.c (grub_ntfscomp_func): New variable.
25507 (read_run_list): Renamed to grub_ntfs_read_run_list.
25508 (decomp_nextvcn): Moved to ntfscomp.c.
25509 (decomp_getch): Likewise.
25510 (decomp_get16): Likewise.
25511 (decomp_block): Likewise.
25512 (read_block): Likewise.
25513 (read_data): Partially moved to ntfscomp.c.
25514 (fixup): Change unsigned to grub_uint16_t.
25515 (read_mft): Change unsigned long to grub_uint32_t.
25516 (read_attr): Likewise.
25517 (read_data): Likewise.
25518 (read_run_data): Likewise.
25519 (read_run_list): Likewise.
25520 (read_mft): Likewise.
25521
25522 * fs/ntfscomp.c: New file.
25523
25524 * include/grub/ntfs.h: New file.
25525
af680a87 255262007-12-16 Robert Millan <rmh@aybabtu.com>
25527
25528 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
25529 IDE disk check, since Linux is known to support 20 IDE disks.
25530 Reported by Colin Watson.
25531
84be7599 255322007-12-15 Bean <bean123ch@gmail.com>
25533
25534 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
25535 (lnxboot_img_SOURCES): New variable.
25536 (lnxboot_img_ASFLAGS): Likewise.
25537 (lnxboot_img_LDFLAGS): Likewise.
25538
25539 * boot/i386/pc/lnxboot.S: New file.
25540
6af9db01 255412007-11-24 Pavel Roskin <proski@gnu.org>
25542
25543 * configure.ac: Test if '--build-id=none' is supported by the
25544 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
25545 objcopy to generate incorrect binary files (binutils
25546 2.17.50.0.18-1 as shipped by Fedora 8).
25547 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
25548 linking, so that build ID doesn't break the test.
25549
7361cfe6 255502007-11-24 Pavel Roskin <proski@gnu.org>
25551
25552 * include/grub/i386/time.h: use "void" in the argument list
25553 of grub_cpu_idle().
25554 * include/grub/powerpc/time.h: Likewise.
25555 * include/grub/sparc64/time.h: Likewise.
25556
1593e10c 255572007-11-18 Christian Franke <franke@computer.org>
25558
25559 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
25560 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
25561 This fixes the problem that function keys did not work in grub-emu.
25562
3b8db1a8 255632007-11-18 Christian Franke <franke@computer.org>
25564
25565 * disk/host.c (grub_host_open): Remove attribute unused from
25566 name parameter. Add check for "host". This fixes the problem
25567 that grub-emu does not find partitions.
25568
2e29408d 255692007-11-18 Christian Franke <franke@computer.org>
25570
25571 * util/hostfs.c (is_dir): New function.
25572 (grub_hostfs_dir): Handle missing dirent.d_type case.
25573 (grub_hostfs_read): Add missing fseek().
25574 (grub_hostfs_label): Clear label pointer. This fixes a crash
25575 of grub-emu on "ls (host)".
25576
398cd047 255772007-11-18 Christian Franke <franke@computer.org>
25578
25579 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
25580 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
25581 to 64 bit boundary by default.
25582
c405c391 255832007-11-18 Bean <bean123ch@gmail.com>
25584
25585 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
25586 (hexdump_mod_SOURCES): New variable.
25587 (hexdump_mod_CFLAGS): Likewise.
25588 (hexdump_mod_LDFLAGS): Likewise.
f19dbdb7 25589
c405c391 25590 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25591
25592 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25593
25594 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25595
25596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
25597
25598 * include/grub/hexdump.h: New file.
25599
25600 * commands/hexdump.c: New file.
25601
5cced7fd 256022007-11-10 Robert Millan <rmh@aybabtu.com>
25603
25604 * commands/i386/pc/play.c (beep_off): Switch order of arguments
25605 in grub_outb() calls.
25606 (beep_on): Likewise.
25607
8b714eb0 256082007-11-10 Christian Franke <franke@computer.org>
25609
25610 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
25611 (grub_menu_run): Likewise.
25612
ce0f1839 256132007-11-10 Robert Millan <rmh@aybabtu.com>
25614
25615 * include/grub/i386/efi/machine.h: New file.
25616 * include/grub/i386/linuxbios/machine.h: Likewise.
25617 * include/grub/i386/pc/machine.h: Likewise.
25618 * include/grub/powerpc/ieee1275/machine.h: Likewise.
25619 * include/grub/sparc64/ieee1275/machine.h: Likewise.
25620
25621 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
25622 (serial_hw_io_addr): New variable.
25623 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
25624 instead of `(unsigned short *) 0x400'.
25625
270c237d 256262007-11-10 Bean <bean123ch@gmail.com>
25627
25628 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
25629
a87783bf 256302007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25631
25632 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
25633 (vga_mod_SOURCES): Added.
25634 (vga_mod_CFLAGS): Likewise.
25635 (vga_mod_LDFLAGS): Likewise.
25636
25637 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
25638 grub_outb() calls.
25639 (set_map_mask): Likewise.
25640 (set_read_map): Likewise.
25641 (set_read_address): Likewise.
25642 (vga_font): Removed variable.
25643 (get_vga_glyph): Removed function.
25644 (invalidate_char): Likewise.
25645 (write_char): Changed to use grub_font_get_glyph() for font
25646 information.
25647 (grub_vga_putchar): Likewise.
25648 (grub_vga_getcharwidth): Likewise.
25649
6433b448 256502007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
25651
25652 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
25653 flags.
25654 (pxeboot_img_LDFLAGS): Likewise.
25655 (diskboot_img_LDFLAGS): Likewise.
25656 (kernel_img_LDFLAGS): Likewise.
25657
49178511 256582007-11-06 Robert Millan <rmh@aybabtu.com>
25659
25660 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
25661 in grub_outb() calls.
25662 (serial_hw_init): Likewise.
25663
53b052de 256642007-11-05 Robert Millan <rmh@aybabtu.com>
25665
25666 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
25667 spaces. Skip non-regular files.
25668
5ab33bba 256692007-11-05 Robert Millan <rmh@aybabtu.com>
25670
25671 * kern/disk.c (grub_disk_firmware_fini)
25672 (grub_disk_firmware_is_tainted): New variables.
25673
25674 * include/grub/disk.h (grub_disk_firmware_fini)
25675 (grub_disk_firmware_is_tainted): Likewise.
25676
25677 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
25678 (grub_disk_biosdisk_fini): ... to here.
25679 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
25680 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
25681 is set. Register grub_disk_biosdisk_fini() in
25682 `grub_disk_firmware_fini'.
25683
25684 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
25685 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
25686 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
25687 to finish existing firmware disk interface.
25688
25689 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
25690 (ata_mod_SOURCES): New variable.
25691 (ata_mod_CFLAGS): Likewise.
25692 (ata_mod_LDFLAGS): Likewise.
25693
0149ab7c 256942007-11-05 Robert Millan <rmh@aybabtu.com>
25695
25696 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
25697 (grub_ata_wait): Reimplement using grub_millisleep().
25698
25699 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
25700 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
25701
be7ac41e 257022007-11-03 Marco Gerards <marco@gnu.org>
25703
25704 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
25705 (CRTC_ADDR_PORT): New macro.
25706 (CRTC_DATA_PORT): Likewise.
25707 (CRTC_CURSOR): Likewise.
25708 (CRTC_CURSOR_ADDR_HIGH): Likewise.
25709 (CRTC_CURSOR_ADDR_LOW): Likewise.
25710 (update_cursor): New function.
25711 (grub_console_real_putchar): Call `update_cursor'.
25712 (grub_console_gotoxy): Likewise.
25713 (grub_console_cls): Set the default color when clearing the
25714 screen.
25715 (grub_console_setcursor): Implemented.
25716
bb06ab2e 257172007-11-03 Marco Gerards <marco@gnu.org>
25718
25719 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
25720 become activate.
25721 (grub_ata_pio_write): Likewise.
25722
25723 (grub_atapi_identify): Wait after issuing an ATA command.
25724 (grub_atapi_packet): Likewise.
25725 (grub_ata_identify): Likewise.
25726 (grub_ata_readwrite): Likewise.
25727
cf8f780b 257282007-11-03 Marco Gerards <marco@gnu.org>
25729
25730 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
25731 (grub_ata_pio_write): Likewise.
25732 (grub_ata_readwrite): Use `grub_error', instead of
25733 returning `grub_errno'.
25734
ed649e54 257352007-11-03 Marco Gerards <marco@gnu.org>
25736
25737 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
25738 grub_ata_pio_write once for every single sector, instead of for
25739 multiple sectors.
25740
ca25d8f0 257412007-10-31 Robert Millan <rmh@aybabtu.com>
25742
25743 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
25744
25745 * conf/i386-linuxbios.rmk: New file.
25746
25747 * kern/i386/pc/hardware.c: Likewise.
25748 * term/i386/pc/at_keyboard.c: Likewise.
25749 * term/i386/pc/vga_text.c: Likewise.
25750
25751 * include/grub/i386/linuxbios/boot.h: Likewise.
25752 * include/grub/i386/linuxbios/console.h: Likewise.
25753 * include/grub/i386/linuxbios/init.h: Likewise.
25754 * include/grub/i386/linuxbios/kernel.h: Likewise.
25755 * include/grub/i386/linuxbios/loader.h: Likewise.
25756 * include/grub/i386/linuxbios/memory.h: Likewise.
25757 * include/grub/i386/linuxbios/serial.h: Likewise.
25758 * include/grub/i386/linuxbios/time.h: Likewise.
25759
25760 * kern/i386/linuxbios/init.c: Likewise.
25761 * kern/i386/linuxbios/startup.S: Likewise.
25762 * kern/i386/linuxbios/table.c: Likewise.
25763
e911ecc1 257642007-10-31 Marco Gerards <marco@gnu.org>
25765
25766 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
25767 (ata_mod_SOURCES): New variable.
25768 (ata_mod_CFLAGS): Likewise.
25769 (ata_mod_LDFLAGS): Likewise.
25770
25771 * disk/ata.c: New file.
25772
25773 * include/grub/disk.h (grub_disk_dev_id): Add
25774 `GRUB_DISK_DEV_ATA_ID'.
f19dbdb7 25775
7f66d0e0 257762007-10-31 Robert Millan <rmh@aybabtu.com>
25777
25778 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
25779 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
25780
25781 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
25782 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
25783
25784 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
25785 `<grub/types.h>'.
25786
25787 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
25788
5cd7dd46 257892007-10-27 Robert Millan <rmh@aybabtu.com>
25790
3236ca65 25791 * include/grub/types.h (ULONG_MAX): Define macro.
5cd7dd46 25792
2ebfc90f 257932007-10-22 Robert Millan <rmh@aybabtu.com>
25794
25795 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
25796 `"../realmode.S"'.
25797 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
25798
73fcb0f3 257992007-10-22 Robert Millan <rmh@aybabtu.com>
25800
25801 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
25802 (pkgdata_MODULES): Add `biosdisk.mod'.
25803 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
25804 variables.
25805
25806 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
25807 (grub_biosdisk_init): Replace with ...
25808 (GRUB_MOD_INIT(biosdisk)): ... this.
25809 (grub_biosdisk_fini): Replace with ...
25810 (GRUB_MOD_FINI(biosdisk)): ... this.
25811
25812 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
25813 (grub_machine_init): Remove call to grub_biosdisk_init().
25814 (grub_machine_fini): Remove call to grub_machine_fini().
25815
25816 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
25817
3381d274 258182007-10-22 Robert Millan <rmh@aybabtu.com>
25819
25820 * include/grub/time.h: New file.
25821 * include/grub/i386/time.h: Likewise.
25822 * include/grub/powerpc/time.h: Likewise.
25823 * include/grub/sparc64/time.h: Likewise.
25824
25825 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
25826 instances to ...
25827 (KERNEL_MACHINE_TIME_HEADER): ... this.
25828 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25829 instances to ...
25830 (KERNEL_MACHINE_TIME_HEADER): ... this.
25831 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
25832 instances to ...
25833 (KERNEL_MACHINE_TIME_HEADER): ... this.
25834
25835 * kern/i386/efi/init.c: Include `<grub/time.h>'.
25836 (grub_millisleep): New function.
25837 * kern/i386/pc/init.c: Include `<grub/time.h>'.
25838 (grub_millisleep): New function.
25839 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
25840 Remove `grub/machine/time.h' include.
25841 (grub_millisleep): New function.
25842 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
25843 Remove `grub/machine/time.h' include.
25844 (grub_millisleep): New function.
25845
25846 * include/grub/misc.h (grub_div_roundup): New function.
25847
25848 * kern/misc.c: Include `<grub/time.h>'.
25849 (grub_millisleep_generic): New function.
25850
25851 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
25852 Add `time.h'.
25853 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
25854 Add `time.h'.
25855 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
25856 `machine/time.h'. Add `time.h'.
25857 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
25858
a39a0312 258592007-10-21 Robert Millan <rmh@aybabtu.com>
25860
25861 * include/grub/misc.h (grub_max): New function.
25862
2aad70e2 258632007-10-21 Robert Millan <rmh@aybabtu.com>
25864
25865 * util/misc.c (grub_util_info): Call fflush() before returning.
25866
54b71c4b 258672007-10-20 Robert Millan <rmh@aybabtu.com>
25868
25869 * genmk.rb (Image): Copy `extra_flags' from here ...
25870 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
25871
25872 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
25873 to `argc' and `args' arguments.
25874
a979f513 258752007-10-17 Robert Millan <rmh@aybabtu.com>
25876
25877 * kern/i386/loader.S: New file.
25878
25879 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
25880 * kern/i386/loader.S (grub_linux_prot_size)... to here.
25881 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
25882 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
25883 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
25884 * kern/i386/loader.S (grub_linux_real_addr)... to here.
25885 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
25886 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
25887 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
25888 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
25889 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
25890 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
25891 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
25892 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
25893
25894 * kern/i386/realmode.S: New file.
25895
25896 * kern/i386/pc/startup.S (protstack): Moved from here ...
25897 * kern/i386/realmode.S (protstack)... to here.
25898 * kern/i386/pc/startup.S (gdt): Moved from here ...
25899 * kern/i386/realmode.S (gdt)... to here.
25900 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
25901 * kern/i386/realmode.S (prot_to_real)... to here.
25902
25903 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
25904 `kern/i386/realmode.S'.
25905
825fc8fd 259062007-10-17 Robert Millan <rmh@aybabtu.com>
25907
25908 * include/grub/i386/loader.h: New file.
25909
25910 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
25911 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25912 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25913 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25914 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
25915 * include/grub/i386/loader.h (grub_linux_prot_size)
25916 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
25917 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
25918 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
25919 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
25920
25921 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
25922
e179b2f4 259232007-10-15 Robert Millan <rmh@aybabtu.com>
25924
25925 * normal/misc.c (grub_normal_print_device_info): Do not probe for
25926 filesystem when dev->disk is unset.
25927 Do probe for filesystem even when dev->disk->has_partitions is set.
25928 In case a filesystem is found, always report it.
25929 In case it isn't, if dev->disk->has_partitions is set, report that
25930 a partition table was found instead of reporting that no filesystem
25931 could be identified.
25932
5db82af6 259332007-10-12 Robert Millan <rmh@aybabtu.com>
25934
25935 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
25936 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
25937
68f6ac74 25938 * include/grub/types.h (grub_host_to_target16): New macro.
25939 (grub_host_to_target32): Likewise.
25940 (grub_host_to_target64): Likewise.
25941 (grub_target_to_host16): Likewise.
25942 (grub_target_to_host32): Likewise.
25943 (grub_target_to_host64): Likewise.
5db82af6 25944
25945 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
25946 Renamed from to ...
25947 (GRUB_MOD_ALIGN): ...this. Update all users.
25948
68f6ac74 25949 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
25950 grub_host_to_target32.
25951 Replace grub_be_to_cpu32 with grub_target_to_host32.
25952 (load_modules): Likewise.
25953 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
25954 Replace grub_be_to_cpu32 with grub_target_to_host32.
25955 Replace grub_cpu_to_be16 with grub_host_to_target16.
25956 Replace grub_cpu_to_be32 grub_host_to_target32.
5db82af6 25957
3cf497cc 259582007-10-12 Robert Millan <rmh@aybabtu.com>
25959
25960 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
25961 * util/elf/grub-mkimage.c: ... here.
25962
25963 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
25964 `util/powerpc/ieee1275/grub-mkimage.c'.
25965
c8cc3692 259662007-10-07 Robert Millan <rmh@aybabtu.com>
adbc4c9d 25967
c8cc3692 25968 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
25969 and make it easier to figure out.
25970 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
25971 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
25972 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
25973 leave us with less than HEAP_MIN_SIZE total heap.
25974 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
adbc4c9d 25975
5c58b791 259762007-10-03 Robert Millan <rmh@aybabtu.com>
25977
25978 * include/grub/i386/io.h: New file.
25979 * commands/i386/pc/play.c (inb): Removed.
25980 (outb): Removed.
25981 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
25982 with grub_outb().
afcd2ef8 25983 * term/i386/pc/serial.c (inb): Removed.
25984 (outb): Removed.
25985 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
25986 with grub_outb().
25987 * term/i386/pc/vga.c (inb): Removed.
25988 (outb): Removed.
25989 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
25990 with grub_outb().
5c58b791 25991
1a477ed6 259922007-10-02 Robert Millan <rmh@aybabtu.com>
25993
25994 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
25995 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25996 Reported by Marcin Kurek.
25997
6b5d80fa 259982007-09-07 Robert Millan <rmh@aybabtu.com>
25999
26000 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
26001 SmartFirmware version updates (as released by Sven Luther), and avoid
26002 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
26003 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
26004 known broken.
26005
5618afbf 260062007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26007
26008 From Hitoshi Ozeki:
26009 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
26010 when merging two regions.
26011
6139dcd9 260122007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
26013
508e39ee 26014 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
26015 * normal/completion.c (grub_normal_do_completion): Likewise.
26016 Reported by Hitoshi Ozeki.
26017
260182007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 26019
6139dcd9 26020 Do not use devices at boot in chainloading.
f19dbdb7 26021
6139dcd9 26022 * loader/i386/pc/chainloader.c (boot_drive): New variable.
26023 (boot_part_addr): Likewise.
26024 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
26025 with BOOT_DRIVE and BOOT_PART_ADDR.
26026 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
26027 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
26028
38da6516 260292007-08-29 Robert Millan <rmh@aybabtu.com>
26030
26031 Patch from Simon Peter <dn.tlp@gmx.net>:
26032 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
26033 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
26034 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
26035 util/i386/pc/grub-setup.c_DEPENDENCIES.
26036 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
26037 util/grub-probe.c_DEPENDENCIES.
26038 * conf/powerpc-ieee1275.rmk: Likewise.
26039
29d0928c 260402007-08-28 Robert Millan <rmh@aybabtu.com>
26041
26042 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
26043 to tell grub-mkdevicemap how to name devices.
26044 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
26045 feature).
26046
26047 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
26048 util/i386/get_disk_name.c.
26049 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
26050 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
26051 util/ieee1275/get_disk_name.c.
26052
26053 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
26054
26055 * DISTLIST: Add util/i386/get_disk_name.c and
26056 util/ieee1275/get_disk_name.c.
26057
26058 * util/grub-mkdevicemap.c: Replace device naming logic with
26059 grub_util_get_disk_name() calls.
26060
5a0d3cca 260612007-08-20 Robert Millan <rmh@aybabtu.com>
26062
26063 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
26064 (so that it works for both plural and singular quantities).
26065
8b72db2f 260662007-08-05 Robert Millan <rmh@aybabtu.com>
26067
26068 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
26069 so that [xz] isn't taken into account when determining order.
26070
352466bf 260712007-08-02 Marco Gerards <marco@gnu.org>
26072
26073 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
26074 `include/multiboot2.h', `include/grub/elfload.h',
26075 `include/multiboot.h', `include/grub/multiboot.h',
26076 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
26077 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
26078 `kern/elf.c', `loader/multiboot_loader.c',
26079 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
26080 `loader/i386/pc/multiboot2.c',
26081 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
26082 `util/i386/pc/grub-mkrescue.in'. Remove
26083 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
26084 `include/grub/i386/pc/util/biosdisk.h' and
26085 `include/grub/powerpc/ieee1275/multiboot.h'.
26086
8f096014 260872007-08-02 Bean <bean123ch@gmail.com>
26088
26089 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
26090 (ntfs_mod_SOURCES): New variable.
26091 (ntfs_mod_CFLAGS): Likewise.
26092 (ntfs_mod_LDFLAGS): Likewise.
26093
26094 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
26095 (grub_probe_SOURCES): Likewise.
26096 (grub_emu_SOURCES): Likewise.
26097
26098 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
26099 (grub_emu_SOURCES): Likewise.
26100
26101 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
26102 (grub_emu_SOURCES): Likewise.
f19dbdb7 26103
8f096014 26104 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
26105
26106 * fs/ntfs.c: New file.
26107
9959f7db 261082007-08-02 Bean <bean123ch@gmail.com>
26109
26110 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
26111
26112 * file.h (grub_file): Likewise.
26113
26114 * fshelp.h (grub_fshelp_read_file): Likewise.
26115
26116 * util/i386/pc/grub-setup.c (setup): Likewise.
26117 (save_first_sector): Likewise.
26118 (save_blocklists): Likewise.
f19dbdb7 26119
9959f7db 26120 * fs/affs.c (grub_affs_read_file): Likewise.
26121
26122 * fs/ext2.c (grub_ext2_read_file): Likewise.
26123
26124 * fs/fat.c (grub_fat_read_data): Likewise.
26125
26126 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
26127
26128 * fs/hfs.c (grub_hfs_read_file): Likewise.
26129
26130 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
26131
26132 * fs/jfs.c (grub_jfs_read_file): Likewise.
26133
26134 * fs/minix.c (grub_minix_read_file): Likewise.
26135
26136 * fs/sfs.c (grub_sfs_read_file): Likewise.
26137
26138 * fs/ufs.c (grub_ufs_read_file): Likewise.
f19dbdb7 26139
9959f7db 26140 * fs/xfs.c (grub_xfs_read_file): Likewise.
26141
26142 * command/blocklist.c (read_blocklist): Likewise.
26143 (print_blocklist): Likewise.
26144
0a203f83 261452007-08-02 Marco Gerards <marco@gnu.org>
26146
26147 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
26148 `util/hostfs.c'.
26149
26150 * disk/host.c: New file.
26151
26152 * util/hostfs.c: Likewise.
26153
26154 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
26155 return `GRUB_ERR_BAD_FS'.
26156 * fs/sfs.c (grub_sfs_mount): Likewise.
26157 * fs/xfs.c (grub_xfs_mount): Likewise.
26158
26159 * include/grub/disk.h (enum grub_disk_dev_id): Add
26160 `GRUB_DISK_DEVICE_HOST_ID'.
26161
26162 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
26163
e5dfe777 261642007-07-24 Jerone Young <jerone@gmail.com>
26165
f19dbdb7 26166 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
e5dfe777 26167 modules for compilation.
26168 * conf/powerpc-ieee1275.rmk: Likewise.
26169
26170 * include/multiboot.h: Move multiboot definitions to one file. Rename
26171 many definitions to not get grub specific.
26172 * include/multiboot2.h: Create header with multiboot 2 definitions.
26173 * include/grub/multiboot.h: Header for grub specific function
26174 prototypes and definitions.
26175 * include/grub/multiboot2.h: Likewise.
26176 * include/grub/multiboot_loader.h: Likewise.
26177 * include/grub/i386/pc/multiboot.h: Removed.
26178 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
26179
26180 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
26181 and 2 to allow for one multiboot and module commands.
26182 * loader/multiboot2.c: Add multiboot2 functionality.
26183 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
26184 and definition names.
26185 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
26186 2 functions.
26187 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
26188 ieee1275 specific multiboot2 code.
26189
26190 * kern/i386/pc/startup.S: Change headers and definition names for
26191 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
26192
daf0f0ba 261932007-07-22 Robert Millan <rmh@aybabtu.com>
26194
26195 * geninitheader.sh: Process file specified in first parameter rather
26196 than hardcoding grub_modules_init.lst.
fe6b695a 26197 * geninit.sh: Likewise. Also, construct header name dynamically rather
daf0f0ba 26198 than hardcoding grub_modules_init.h.
26199
26200 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
26201 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
26202 grub_probe_init.[ch] and grub_setup_init.[ch].
26203
26204 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
26205 grub_modules_init.h with grub_emu_init.h.
26206 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
26207 grub_probe_init.[ch] files.
26208 * conf/i386-efi.rmk: Likewise.
26209 * conf/i386-pc.rmk: Likewise.
26210 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
26211 grub_setup_init.[ch] files.
26212
26213 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
26214 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
26215 to initialize modules rather than a list of hardcoded functions.
26216 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
26217 grub_init_all() to initialize modules rather than a list of hardcoded
26218 functions.
26219
54cdc1cc 262202007-07-22 Robert Millan <rmh@aybabtu.com>
26221
26222 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
26223 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
26224
ad0686cc 262252007-07-22 Robert Millan <rmh@aybabtu.com>
26226
26227 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
26228 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
26229 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
26230 flag when running on SmartFirmware.
26231 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
26232 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
26233 was set.
26234
26235 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
26236 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
26237 rather than decreasing it.
26238
26239 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
26240 there's not enough space to do it, fail in the same way as when it
26241 can't be done because there are no partitions.
26242
26243 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
26244 when nvsetenv failed.
26245
969c02ec 262462007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
26247
26248 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
26249 because this rule is automatically generated.
26250 (grub-mkrescue): Removed for the same reason as above.
26251
5a79f472 262522007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
26253
26254 Migrate to GNU General Public License Version 3.
f19dbdb7 26255
5a79f472 26256 * COPYING: Replaced with the plain text version of GPLv3.
26257
26258 * config.guess: Updated from gnulib.
26259 * config.sub: Likewise.
26260
26261 * geninit.sh: Output a GPLv3 copyright notice.
26262 * geninitheader.sh: Likewise.
26263 * genmodsrc.sh: Likewise.
26264 * gensymlist.sh.in: Likewise.
26265
26266 * boot/i386/pc/boot.S: Upgraded to GPLv3.
26267 * boot/i386/pc/diskboot.S: Likewise.
26268 * boot/i386/pc/pxeboot.S: Likewise.
26269 * commands/blocklist.c: Likewise.
26270 * commands/boot.c: Likewise.
26271 * commands/cat.c: Likewise.
26272 * commands/cmp.c: Likewise.
26273 * commands/configfile.c: Likewise.
26274 * commands/echo.c: Likewise.
26275 * commands/help.c: Likewise.
26276 * commands/ls.c: Likewise.
26277 * commands/search.c: Likewise.
26278 * commands/terminal.c: Likewise.
26279 * commands/test.c: Likewise.
26280 * commands/videotest.c: Likewise.
26281 * commands/i386/cpuid.c: Likewise.
26282 * commands/i386/pc/halt.c: Likewise.
26283 * commands/i386/pc/play.c: Likewise.
26284 * commands/i386/pc/reboot.c: Likewise.
26285 * commands/i386/pc/vbeinfo.c: Likewise.
26286 * commands/i386/pc/vbetest.c: Likewise.
26287 * commands/ieee1275/halt.c: Likewise.
26288 * commands/ieee1275/reboot.c: Likewise.
26289 * commands/ieee1275/suspend.c: Likewise.
26290 * disk/loopback.c: Likewise.
26291 * disk/lvm.c: Likewise.
26292 * disk/raid.c: Likewise.
26293 * disk/efi/efidisk.c: Likewise.
26294 * disk/i386/pc/biosdisk.c: Likewise.
26295 * disk/ieee1275/ofdisk.c: Likewise.
26296 * font/manager.c: Likewise.
26297 * fs/affs.c: Likewise.
26298 * fs/ext2.c: Likewise.
26299 * fs/fat.c: Likewise.
26300 * fs/fshelp.c: Likewise.
26301 * fs/hfs.c: Likewise.
26302 * fs/hfsplus.c: Likewise.
26303 * fs/iso9660.c: Likewise.
26304 * fs/jfs.c: Likewise.
26305 * fs/minix.c: Likewise.
26306 * fs/sfs.c: Likewise.
26307 * fs/ufs.c: Likewise.
26308 * fs/xfs.c: Likewise.
26309 * hello/hello.c: Likewise.
26310 * include/grub/acorn_filecore.h: Likewise.
26311 * include/grub/arg.h: Likewise.
26312 * include/grub/bitmap.h: Likewise.
26313 * include/grub/boot.h: Likewise.
26314 * include/grub/cache.h: Likewise.
26315 * include/grub/device.h: Likewise.
26316 * include/grub/disk.h: Likewise.
26317 * include/grub/dl.h: Likewise.
26318 * include/grub/elfload.h: Likewise.
26319 * include/grub/env.h: Likewise.
26320 * include/grub/err.h: Likewise.
26321 * include/grub/file.h: Likewise.
26322 * include/grub/font.h: Likewise.
26323 * include/grub/fs.h: Likewise.
26324 * include/grub/fshelp.h: Likewise.
26325 * include/grub/gzio.h: Likewise.
26326 * include/grub/hfs.h: Likewise.
26327 * include/grub/kernel.h: Likewise.
26328 * include/grub/loader.h: Likewise.
26329 * include/grub/lvm.h: Likewise.
26330 * include/grub/misc.h: Likewise.
26331 * include/grub/mm.h: Likewise.
26332 * include/grub/net.h: Likewise.
26333 * include/grub/normal.h: Likewise.
26334 * include/grub/parser.h: Likewise.
26335 * include/grub/partition.h: Likewise.
26336 * include/grub/pc_partition.h: Likewise.
26337 * include/grub/raid.h: Likewise.
26338 * include/grub/rescue.h: Likewise.
26339 * include/grub/script.h: Likewise.
26340 * include/grub/setjmp.h: Likewise.
26341 * include/grub/symbol.h: Likewise.
26342 * include/grub/term.h: Likewise.
26343 * include/grub/terminfo.h: Likewise.
26344 * include/grub/tparm.h: Likewise.
26345 * include/grub/types.h: Likewise.
26346 * include/grub/video.h: Likewise.
26347 * include/grub/efi/api.h: Likewise.
26348 * include/grub/efi/chainloader.h: Likewise.
26349 * include/grub/efi/console.h: Likewise.
26350 * include/grub/efi/console_control.h: Likewise.
26351 * include/grub/efi/disk.h: Likewise.
26352 * include/grub/efi/efi.h: Likewise.
26353 * include/grub/efi/pe32.h: Likewise.
26354 * include/grub/efi/time.h: Likewise.
26355 * include/grub/i386/linux.h: Likewise.
26356 * include/grub/i386/setjmp.h: Likewise.
26357 * include/grub/i386/types.h: Likewise.
26358 * include/grub/i386/efi/kernel.h: Likewise.
26359 * include/grub/i386/efi/loader.h: Likewise.
26360 * include/grub/i386/efi/time.h: Likewise.
26361 * include/grub/i386/pc/biosdisk.h: Likewise.
26362 * include/grub/i386/pc/boot.h: Likewise.
26363 * include/grub/i386/pc/chainloader.h: Likewise.
26364 * include/grub/i386/pc/console.h: Likewise.
26365 * include/grub/i386/pc/init.h: Likewise.
26366 * include/grub/i386/pc/kernel.h: Likewise.
26367 * include/grub/i386/pc/loader.h: Likewise.
26368 * include/grub/i386/pc/memory.h: Likewise.
26369 * include/grub/i386/pc/multiboot.h: Likewise.
26370 * include/grub/i386/pc/serial.h: Likewise.
26371 * include/grub/i386/pc/time.h: Likewise.
26372 * include/grub/i386/pc/vbe.h: Likewise.
26373 * include/grub/i386/pc/vbeblit.h: Likewise.
26374 * include/grub/i386/pc/vbefill.h: Likewise.
26375 * include/grub/i386/pc/vbeutil.h: Likewise.
26376 * include/grub/i386/pc/vga.h: Likewise.
26377 * include/grub/ieee1275/ieee1275.h: Likewise.
26378 * include/grub/ieee1275/ofdisk.h: Likewise.
26379 * include/grub/powerpc/libgcc.h: Likewise.
26380 * include/grub/powerpc/setjmp.h: Likewise.
26381 * include/grub/powerpc/types.h: Likewise.
26382 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
26383 * include/grub/powerpc/ieee1275/console.h: Likewise.
26384 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
26385 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26386 * include/grub/powerpc/ieee1275/loader.h: Likewise.
26387 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
26388 * include/grub/powerpc/ieee1275/time.h: Likewise.
26389 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
26390 * include/grub/sparc64/libgcc.h: Likewise.
26391 * include/grub/sparc64/setjmp.h: Likewise.
26392 * include/grub/sparc64/types.h: Likewise.
26393 * include/grub/sparc64/ieee1275/console.h: Likewise.
26394 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
26395 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26396 * include/grub/sparc64/ieee1275/time.h: Likewise.
26397 * include/grub/util/biosdisk.h: Likewise.
26398 * include/grub/util/getroot.h: Likewise.
26399 * include/grub/util/lvm.h: Likewise.
26400 * include/grub/util/misc.h: Likewise.
26401 * include/grub/util/raid.h: Likewise.
26402 * include/grub/util/resolve.h: Likewise.
26403 * io/gzio.c: Likewise.
26404 * kern/device.c: Likewise.
26405 * kern/disk.c: Likewise.
26406 * kern/dl.c: Likewise.
26407 * kern/elf.c: Likewise.
26408 * kern/env.c: Likewise.
26409 * kern/err.c: Likewise.
26410 * kern/file.c: Likewise.
26411 * kern/fs.c: Likewise.
26412 * kern/loader.c: Likewise.
26413 * kern/main.c: Likewise.
26414 * kern/misc.c: Likewise.
26415 * kern/mm.c: Likewise.
26416 * kern/parser.c: Likewise.
26417 * kern/partition.c: Likewise.
26418 * kern/rescue.c: Likewise.
26419 * kern/term.c: Likewise.
26420 * kern/efi/efi.c: Likewise.
26421 * kern/efi/init.c: Likewise.
26422 * kern/efi/mm.c: Likewise.
26423 * kern/i386/dl.c: Likewise.
26424 * kern/i386/efi/init.c: Likewise.
26425 * kern/i386/efi/startup.S: Likewise.
26426 * kern/i386/pc/init.c: Likewise.
26427 * kern/i386/pc/lzo1x.S: Likewise.
26428 * kern/i386/pc/startup.S: Likewise.
26429 * kern/ieee1275/ieee1275.c: Likewise.
26430 * kern/powerpc/cache.S: Likewise.
26431 * kern/powerpc/dl.c: Likewise.
26432 * kern/powerpc/ieee1275/cmain.c: Likewise.
26433 * kern/powerpc/ieee1275/crt0.S: Likewise.
26434 * kern/powerpc/ieee1275/init.c: Likewise.
26435 * kern/powerpc/ieee1275/openfw.c: Likewise.
26436 * kern/sparc64/cache.S: Likewise.
26437 * kern/sparc64/dl.c: Likewise.
26438 * kern/sparc64/ieee1275/init.c: Likewise.
26439 * kern/sparc64/ieee1275/openfw.c: Likewise.
26440 * loader/efi/chainloader.c: Likewise.
26441 * loader/efi/chainloader_normal.c: Likewise.
26442 * loader/i386/efi/linux.c: Likewise.
26443 * loader/i386/efi/linux_normal.c: Likewise.
26444 * loader/i386/pc/chainloader.c: Likewise.
26445 * loader/i386/pc/chainloader_normal.c: Likewise.
26446 * loader/i386/pc/linux.c: Likewise.
26447 * loader/i386/pc/linux_normal.c: Likewise.
26448 * loader/i386/pc/multiboot.c: Likewise.
26449 * loader/i386/pc/multiboot_normal.c: Likewise.
26450 * loader/powerpc/ieee1275/linux.c: Likewise.
26451 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26452 * normal/arg.c: Likewise.
26453 * normal/cmdline.c: Likewise.
26454 * normal/command.c: Likewise.
26455 * normal/completion.c: Likewise.
26456 * normal/execute.c: Likewise.
26457 * normal/function.c: Likewise.
26458 * normal/lexer.c: Likewise.
26459 * normal/main.c: Likewise.
26460 * normal/menu.c: Likewise.
26461 * normal/menu_entry.c: Likewise.
26462 * normal/misc.c: Likewise.
26463 * normal/parser.y: Likewise.
26464 * normal/script.c: Likewise.
26465 * normal/i386/setjmp.S: Likewise.
26466 * normal/powerpc/setjmp.S: Likewise.
26467 * normal/sparc64/setjmp.S: Likewise.
26468 * partmap/acorn.c: Likewise.
26469 * partmap/amiga.c: Likewise.
26470 * partmap/apple.c: Likewise.
26471 * partmap/gpt.c: Likewise.
26472 * partmap/pc.c: Likewise.
26473 * partmap/sun.c: Likewise.
26474 * term/gfxterm.c: Likewise.
26475 * term/terminfo.c: Likewise.
26476 * term/efi/console.c: Likewise.
26477 * term/i386/pc/console.c: Likewise.
26478 * term/i386/pc/serial.c: Likewise.
26479 * term/i386/pc/vesafb.c: Likewise.
26480 * term/i386/pc/vga.c: Likewise.
26481 * term/ieee1275/ofconsole.c: Likewise.
26482 * util/biosdisk.c: Likewise.
26483 * util/console.c: Likewise.
26484 * util/genmoddep.c: Likewise.
26485 * util/getroot.c: Likewise.
26486 * util/grub-emu.c: Likewise.
26487 * util/grub-mkdevicemap.c: Likewise.
26488 * util/grub-probe.c: Likewise.
26489 * util/lvm.c: Likewise.
26490 * util/misc.c: Likewise.
26491 * util/raid.c: Likewise.
26492 * util/resolve.c: Likewise.
26493 * util/update-grub.in: Likewise.
26494 * util/update-grub_lib.in: Likewise.
26495 * util/grub.d/00_header.in: Likewise.
26496 * util/grub.d/10_hurd.in: Likewise.
26497 * util/grub.d/10_linux.in: Likewise.
26498 * util/i386/efi/grub-install.in: Likewise.
26499 * util/i386/efi/grub-mkimage.c: Likewise.
26500 * util/i386/pc/grub-install.in: Likewise.
26501 * util/i386/pc/grub-mkimage.c: Likewise.
26502 * util/i386/pc/grub-mkrescue.in: Likewise.
26503 * util/i386/pc/grub-setup.c: Likewise.
26504 * util/i386/pc/misc.c: Likewise.
26505 * util/powerpc/ieee1275/grub-install.in: Likewise.
26506 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
26507 * util/powerpc/ieee1275/misc.c: Likewise.
26508 * video/bitmap.c: Likewise.
26509 * video/video.c: Likewise.
26510 * video/i386/pc/vbe.c: Likewise.
26511 * video/i386/pc/vbeblit.c: Likewise.
26512 * video/i386/pc/vbefill.c: Likewise.
26513 * video/i386/pc/vbeutil.c: Likewise.
26514 * video/readers/tga.c: Likewise.
26515
3572d015 265162007-07-02 Robert Millan <rmh@aybabtu.com>
26517
26518 * conf/i386-efi.rmk: Replace obsolete reference to
26519 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
26520 with util/getroot.c.
26521 * conf/powerpc-ieee1275.rmk: Likewise.
26522 * conf/sparc64-ieee1275.rmk: Likewise.
26523
26524 * util/grub-emu.c (main): Fix unchecked pointer handling.
26525
2c2a681b 265262007-07-02 Robert Millan <rmh@aybabtu.com>
26527
26528 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
26529 invocation to fail, in order to support partition-less media.
26530
26531 * util/i386/pc/grub-install.in: Likewise.
26532
26533 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
26534 which fs or partmap modules are needed (akin to its sister scripts).
26535
26536 Also use grub-probe to get rid of unportable /proc/mounts check.
26537
26538 Print the same informational message that the other scripts do, before
fe6b695a 26539 exiting.
2c2a681b 26540
6193defe 265412007-06-23 Robert Millan <rmh@aybabtu.com>
26542
fe6b695a 26543 * util/update-grub_lib.in (font_path): New function. Determine whether
6193defe 26544 a font file can be found and, if so, echo the GRUB path to it.
26545
26546 * util/update-grub.in: Handle multiple terminals depending on user
26547 input, platform availability and font file presence. Propagate
26548 variables of our findings to /etc/grub.d/ children.
26549
26550 * util/grub.d/00_header.in: Handle multiple terminals, based on
26551 environment setup by update-grub.
26552
eface1dc 265532007-06-23 Robert Millan <rmh@aybabtu.com>
26554
ba50d28f 26555 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
eface1dc 26556
bf697e28 265572007-06-21 Robert Millan <rmh@aybabtu.com>
26558
26559 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
26560 indicate end of data section in kernel image.
26561 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
26562 GRUB_KERNEL_MACHINE_DATA_END.
26563
26564 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
26565 space for it.
26566 * kern/i386/efi/startup.S: Likewise.
26567
26568 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
26569 during image generation. Implement --prefix option to override this
26570 patch.
26571 * util/i386/efi/grub-mkimage.c: Likewise.
26572
26573 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
26574 code to make path relative to its root into a separate function.
26575
26576 * util/i386/pc/grub-install.in: Use newly provided
26577 make_system_path_relative_to_its_root() to convert ${grubdir}, then
26578 pass the result to grub-install --prefix.
26579
baa574b4 265802007-06-13 Robert Millan <rmh@aybabtu.com>
26581
26582 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
26583 DEFAULT_DEVICE_MAP.
26584 * util/grub-emu.c: Use above definitions from misc.h instead of
26585 defining them.
26586 * util/grub-mkdevicemap.c: Likewise.
26587 * util/i386/pc/grub-setup.c: Likewise.
26588 * util/grub-probe.c: Likewise.
26589 (probe): Abort with grub_util_error() when either
26590 grub_guess_root_device or grub_util_get_grub_dev fails.
26591
0215dcbf 265922007-06-12 Robert Millan <rmh@aybabtu.com>
26593
26594 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
26595 "pager" assignment.
26596 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
26597 "pcdata".
26598 * util/grub-probe.c (probe): Likewise for "drive_name".
26599
8af2ab7b 266002007-06-11 Robert Millan <rmh@aybabtu.com>
26601
26602 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
26603 not just the cdrom one.
26604
59d31694 266052007-06-11 Robert Millan <rmh@aybabtu.com>
26606
26607 * util/i386/pc/grub-mkrescue.in: Add "set -e".
26608 Add --pkglibdir=DIR option to override pkglibdir.
26609 Mention --image-type=TYPE in help output.
26610 Fix --grub-mkimage (it was a no-op).
fe6b695a 26611 Abort gracefully when no parameter is given.
59d31694 26612
7ee367e4 266132007-06-11 Robert Millan <rmh@aybabtu.com>
26614
26615 * util/i386/pc/grub-mkrescue.in: New file.
26616 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
26617 * Makefile.in: Handle bin_SCRIPTS.
26618
29b0ed46 266192007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
26620
26621 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
26622 list of video modes.
26623
c0f90770 266242007-06-06 Robert Millan <rmh@aybabtu.com>
26625
26626 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
26627 file doesn't exist, or if it is in a filesystem grub can't read.
26628
26629 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
26630 not abort if GRUB_DRIVE could not be defined. Rearrange generated
26631 header comment to fit in 80 columns when the variables are resolved.
26632
26633 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
26634 could be identified by update-grub. Remove redundant check for
fe6b695a 26635 unifont.pff existence (since convert_system_path_to_grub_path now
c0f90770 26636 handles that).
26637
fb36dc26 266382007-06-04 Robert Millan <rmh@aybabtu.com>
26639
26640 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
26641
26642 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
26643
26644 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
26645
0c68c93e 266462007-06-04 Robert Millan <rmh@aybabtu.com>
26647
26648 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
26649
26650 * include/grub/partition.h: Declare grub_apple_partition_map_init and
26651 grub_apple_partition_map_fini.
26652
26653 * util/biosdisk.c
26654 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
26655 to access >2 TiB disks).
26656
26657 Print disk->total_sectors with %llu instead of %lu, since this
26658 variable is always 64-bit (prevents wrong disk size from being displayed
26659 on either >2 TiB disk or big-endian CPU).
26660
26661 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
26662 into a generic case that supports all (sane) partition maps.
26663
26664 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
26665 breaks big-endian.
26666
26667 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
26668 and grub_apple_partition_map_fini() after that.
26669
0f23eb74 266702007-06-01 Robert Millan <rmh@aybabtu.com>
26671
26672 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
26673
26674 * util/grub.d/00_header.in: Only enable gfxterm when
26675 convert_system_path_to_grub_path() succeeds.
26676
42c71976 266772007-05-20 Robert Millan <rmh@aybabtu.com>
26678
26679 * util/update-grub_lib.in: New file.
26680 * DISTLIST: Add update-grub_lib.in.
26681 * conf/common.rmk: Generate update-grub_lib and install it in
26682 $(lib_DATA).
26683 * Makefile.in: Add install routine for $(lib_DATA).
26684
26685 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
26686 function provided by update-grub_lib to support arbitrary paths of
26687 unifont.pff.
26688 * util/update-grub.in: Use convert_system_path_to_grub_path() to
26689 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
26690
5beb2291 266912007-05-19 Robert Millan <rmh@aybabtu.com>
26692
26693 * commands/i386/cpuid.c: New module.
26694 * DISTLIST: Add it.
26695 * conf/i386-efi.rmk: Enable cpuid.mod.
26696 * conf/i386-pc.rmk: Likewise.
26697
7262eca1 266982007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26699
26700 * kern/disk.c (grub_disk_read): Check return value of
26701 grub_realloc().
26702
260ba823 267032007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
26704
26705 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
26706 arrays.
26707 * disk/raid.c (grub_raid_open): Likewise.
26708
1ecb6cf2 267092007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26710
26711 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
26712 stack instead of on the heap.
26713
26714 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
26715 before doing a read on it.
26716
26717 * configure.ac: Only use -fno-stack-protector for the target
26718 environment.
f19dbdb7 26719
21c8cbb1 267202007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
26721
26722 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
26723 __attribute_ ((unused)) to mode_type argument.
26724
26725 * util/getroot.c (grub_guess_root_device): Fix #endif.
f19dbdb7 26726
21c8cbb1 26727 * kern/misc.c (memcmp): Fix prototype.
26728
26729 * include/grub/partition.h [GRUB_UTIL]
26730 (grub_gpt_partition_map_init): Add prototype.
26731 (grub_gpt_partition_map_fini): Likewise.
26732
26733 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
26734 at the right place.
26735
26736 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
26737 (grub_fat_read_data): Likewise.
26738 (grub_fat_find_dir): Likewise.
26739
26740 * font/manager.c (find_glyph): Make table a const.
26741 (grub_font_get_glyph): Remove bitmap from if statement.
f19dbdb7 26742
849d55d3 267432007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
26744
26745 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
26746 code, first search for device in /dev/mapper, then in /dev.
26747 (grub_util_get_grub_dev): New function.
26748 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
26749 prototype.
26750 * util/grub-probe.c (probe): Remove check for RAID, call
26751 grub_util_get_grub_dev() instead of
26752 grub_util_biosdisk_get_grub_dev().
26753 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
26754 grub_util_biosdisk_get_grub_dev().
26755 * util/i386/pc/grub-setup.c (main): Likewise.
26756
8fff7c2f 267572007-05-16 Robert Millan <rmh@aybabtu.com>
26758
26759 * DISTLIST: Update for the latest changes.
26760 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
26761 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
26762 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
26763 grub/util/biosdisk.h.
26764 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
26765 grub/util/biosdisk.h.
26766
48e12b52 267672007-05-16 Robert Millan <rmh@aybabtu.com>
26768
26769 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
26770
46b9d128 267712007-05-16 Robert Millan <rmh@aybabtu.com>
26772
26773 * util/i386/efi/grub-install.in: New.
26774 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
26775 newly added grub-install.
26776 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
26777 include.
26778 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
26779 grub/util/biosdisk.h.
26780 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
26781 grub/util/biosdisk.h.
26782
2d1a40a9 267832007-05-16 Robert Millan <rmh@aybabtu.com>
26784
26785 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
26786 * include/grub/util/biosdisk.h: ... here.
26787 * util/i386/pc/biosdisk.c: Moved to ...
26788 * util/biosdisk.c: ... here.
26789 * util/i386/pc/getroot.c: Moved to ...
26790 * util/getroot.c: ... here.
26791 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
26792 * util/grub-mkdevicemap.c: ... here.
26793 * util/i386/pc/grub-probe.c: Moved to ...
26794 * util/grub-probe.c: ... here.
26795
9e26e3bc 267962007-05-15 Robert Millan <rmh@aybabtu.com>
26797
26798 * util/update-grub.in: Remove duplicated line in grub.cfg header
26799 message.
26800
57f96397 268012007-05-13 Robert Millan <rmh@aybabtu.com>
26802
26803 * util/update-grub.in: Fix a few assumptions about the devices holding
26804 /, /boot and /boot/grub being the same.
26805 * util/grub.d/00_header.in: Likewise.
26806 * util/grub.d/10_hurd.in: Likewise.
26807 * util/grub.d/10_linux.in: Likewise.
26808
26809 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
26810 patterns. Use that to define the `.old' suffix as older than `'.
26811
26812 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
26813
26814 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
26815 the grub.cfg header message.
26816
2e610d62 268172007-05-11 Robert Millan <rmh@aybabtu.com>
26818
26819 * util/update-grub.in: Create device.map if it doesn't already exist,
26820 before attempting to run grub-probe.
26821 Check for grub-probe and grub-mkdevicemap with the same code
26822 grub-install is using.
26823 Remove test mode.
26824
3f6a10ef 268252007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
26826
26827 * Makefile.in: Add the datarootdir autoconf variable.
26828
02e7b75e 268292007-05-09 Robert Millan <rmh@aybabtu.com>
26830
26831 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
f19dbdb7 26832 fail gracefully if dev->disk->partition == NULL.
02e7b75e 26833
75f396cc 268342007-05-07 Robert Millan <rmh@aybabtu.com>
26835
26836 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
26837 determine partition map module.
26838 * util/i386/pc/grub-install.in: Use this feature to decide which
26839 partition module to load, instead of hardcoding pc and gpt.
26840
da65cb36 268412007-05-07 Robert Millan <rmh@aybabtu.com>
26842
26843 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
26844 source directory differs from build directory.
26845
b57d6a91 268462007-05-05 Robert Millan <rmh@aybabtu.com>
26847
26848 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
26849 initialisation.
26850
509d00f1 268512007-05-05 Robert Millan <rmh@aybabtu.com>
26852
26853 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
26854
c48f23ef 268552007-05-05 Robert Millan <rmh@aybabtu.com>
26856
26857 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
26858 command-line arguments via ${GRUB_CMDLINE_LINUX}.
26859
20b97658 268602007-05-05 Robert Millan <rmh@aybabtu.com>
26861
26862 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
26863 (grub_probe_SOURCES): Likewise.
26864 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
26865 GPT and initialize dos_part and bsd_part accordingly.
26866 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
26867 install_bsd_part.
26868 (main): Activate gpt module for use during partition identification,
26869 and deactivate it afterwards.
26870 * util/i386/pc/grub-install.in: Add gpt module to core.img.
26871 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
26872 partition identification, and deactivate it afterwards.
26873
99123174 268742007-05-05 Robert Millan <rmh@aybabtu.com>
26875
26876 * term/i386/pc/console.c (grub_console_fini): Call
26877 grub_term_set_current() before grub_term_unregister().
26878
ebd97f6e 268792007-05-04 Robert Millan <rmh@aybabtu.com>
26880
26881 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
26882 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
26883 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
26884 and update-grub_DATA.
26885 * conf/common.rmk: Build and install update-grub components.
26886 * conf/common.mk: Regenerate.
26887 * util/update-grub.in: New. Core of update-grub.
26888 * util/grub.d/00_header.in: New. Generates grub.cfg header.
26889 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
26890 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
26891 * util/grub.d/README: New. Document grub.d directory layout.
26892
b06a264d 268932007-05-01 Robert Millan <rmh@aybabtu.com>
26894
26895 * util/grub-emu.c: Move initialization functions
26896 grub_util_biosdisk_init() and grub_init_all() before
26897 grub_util_biosdisk_get_grub_dev(), which relies on them.
26898
41f0050e 268992007-04-19 Robert Millan <rmh@aybabtu.com>
26900
26901 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
26902 it is used later.
26903
04582bb3 269042007-04-18 Jerone Young <jerone@gmail.com>
26905
f19dbdb7 26906 * kernel/elf.c: Add missing parenthesis for conditional statement
04582bb3 26907 stanza.
26908
08db4632 269092007-04-10 Jerone Young <jerone@gmail.com>
49892fdf 26910
08db4632 26911 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
26912 continue on and look for device node with real device name.
26913
801b76be 269142007-04-10 Jerone Young <jerone@gmail.com>
f19dbdb7 26915
fe6b695a 26916 * configure.ac: Add argument for autoconf to use transformation
1d543c3e 26917 ability.
26918 * Makefile.in: Add autoconf package transformation code.
26919 * util/i386/pc/grub-install.in: Likewise.
26920 * util/powerpc/ieee1275/grub-install.in: Likewise.
26921
6795c4e1 269222007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
26923
26924 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
26925 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
26926 (EXT2_REVISION): Likewise.
26927 (EXT2_INODE_SIZE): Likewise.
26928 (struct grub_ext2_block_group): Added a missing member
26929 "used_dirs".
26930 (grub_ext2_read_inode): Divide by the inode size in a superblock
26931 instead of 128 to obtain INODES_PER_BLOCK.
26932 Use the macro EXT2_INODE_SIZE instead of directly using
26933 SBLOCK->INODE_SIZE.
26934
d70af616 269352007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
26936
26937 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
26938 superblock instead of the structure size to compute an
26939 offset. This fixes the problem that GRUB could not read a
26940 filesystem when inode size is different from 128-byte.
26941
3b801603 269422007-03-05 Marco Gerards <marco@gnu.org>
26943
26944 * normal/main.c (read_config_file): When "menu" is not set, create
26945 an initial context.
26946
4785bfe4 269472007-02-21 Hollis Blanchard <hollis@penguinppc.org>
26948
26949 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
26950 (HEAP_LIMIT): New macro.
26951 (grub_claim_heap): Claim memory up to `heaplimit'.
26952
a0cbb023 269532007-02-21 Hollis Blanchard <hollis@penguinppc.org>
26954
26955 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
26956 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
26957 (_start): Likewise.
26958 (grub_arch_modules_addr): Return address after `_end'.
26959 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
26960 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
26961 (add_segments): Calculate `_end' from phdr size and location.
26962 (ALIGN_UP): Moved to ...
26963 * include/grub/misc.h: here.
26964 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
26965 New macro.
26966 (GRUB_IEEE1275_MODULE_BASE): Removed.
26967
fd7d8eba 269682007-02-20 Hollis Blanchard <hollis@penguinppc.org>
26969
26970 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
26971 loop boundary.
26972
9b09e6fc 269732007-02-20 Hollis Blanchard <hollis@penguinppc.org>
26974
26975 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
26976 All users updated.
26977 (grub_elf64_load_hook_t): Likewise.
26978 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
26979 debug output.
26980
3ce27299 269812007-02-20 Hollis Blanchard <hollis@penguinppc.org>
26982
26983 * kern/mm.c: Update copyright.
26984 (grub_mm_debug): Correct syntax error.
26985 (grub_mm_dump_free): New function.
26986 (grub_debug_free): Call `grub_free'.
26987 * include/grub/mm.h: Update copyright.
26988 (grub_mm_dump_free): Add declaration.
26989
077d5fee 269902007-02-12 Hollis Blanchard <hollis@penguinppc.org>
26991
26992 * include/grub/ieee1275/ieee1275.h: Update copyright.
26993 * kern/powerpc/ieee1275/init.c: Likewise.
26994 * kern/powerpc/ieee1275/openfw.c: Likewise.
26995
26996 * loader/powerpc/ieee1275/linux.c: Likewise.
26997 * include/grub/elfload.h: Likewise.
26998 * kern/elf.c: Likewise.
26999 (grub_elf32_load): Pass `base' and `size' parameters. Update all
27000 callers.
27001 (grub_elf64_load): Likewise.
27002 (grub_elf32_load_segment): Move to a nested function.
27003 (grub_elf64_load_segment): Likewise.
27004
dc946850 270052007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27006
27007 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
27008 prototype.
27009 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
27010 (grub_heap_len): Likewise.
27011 (HEAP_SIZE): New macro.
27012 (grub_claim_heap): New function.
27013 (grub_machine_init): Don't claim heap directly. Call
27014 `grub_claim_heap'.
27015 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
27016 (grub_available_iterate): New function.
27017
baa2a121 270182007-02-03 Thomas Schwinge <tschwinge@gnu.org>
27019
27020 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
27021 * configure.ac: Use it for testing the HOST and TARGET compilers.
27022
4fe9862e 270232006-12-13 Thomas Schwinge <tschwinge@gnu.org>
27024
27025 * Makefile.in (enable_grub_emu): New variable.
27026 * configure.ac (--enable-grub-emu): New option.
27027 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
27028 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
27029 * conf/i386-pc.rmk: Likewise.
27030 * conf/powerpc-ieee1275.rmk: Likewise.
27031 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
27032
a8aa5762 270332006-12-12 Marco Gerards <marco@gnu.org>
27034
27035 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
27036
27037 * kern/env.c (grub_env_unset): Don't free the member `value' when
27038 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
27039 pointer.
27040
27041 * normal/main.c (current_menu): Removed.
27042 (free_menu): Unset the `menu' environment variable.
27043 (grub_normal_menu_addentry): Make use of the environment variable
27044 `menu', instead of using the global `current_menu'. Allocate
27045 memory for the sourcecode of this entry.
27046 (read_config_file): New argument `nested', changed all callers.
27047 Only in the case of a new context, initialize a new menu. Set the
27048 `menu' environment variable.
27049 (grub_normal_execute): Don't set and unset the environment
27050 variable `menu' here anymore. Only free the menu when leaving the
27051 context.
27052
27053 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
27054 leak.
27055
957b3a3e 270562006-12-11 Marco Gerards <marco@gnu.org>
27057
27058 * normal/menu_entry.c (run): Fix off by one bug so the last line
27059 is executed. Move the loader check to outside the loop.
27060
ef875714 270612006-12-08 Hollis Blanchard <hollis@penguinppc.org>
27062
27063 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
27064
4e739985 270652006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
27066
27067 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
27068 the number of sectors. Reported by Andrey Shuvikov
27069 <mr_hyro@yahoo.com>.
f19dbdb7 27070
790707f2 270712006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
27072
27073 * kern/disk.c (grub_disk_read): When there is a read error, always
27074 try to read only the necessary data.
f19dbdb7 27075
790707f2 27076 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
27077 disk/raid.c.
27078 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
27079 prototype.
27080 [GRUB_UTIL] (grub_raid_fini): Likewise.
27081 [GRUB_UTIL] (grub_lvm_init): Likewise.
f19dbdb7 27082 [GRUB_UTIL] (grub_lvm_fini): Likewise.
790707f2 27083 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
27084 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
27085 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
27086 and grub_raid_fini().
f19dbdb7 27087
03e58196 270882006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
27089
27090 * include/grub/types.h (__unused): Rename to UNUSED.
27091 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
27092 (grub_elf64_size): Likewise.
f19dbdb7 27093
ae4f23bf 270942006-11-03 Hollis Blanchard <hollis@penguinppc.org>
27095
27096 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
27097 grub_error_push and grub_error_pop in the error-handling path.
27098 (grub_elf32_load_segment): Only call grub_file_read with non-zero
27099 length.
27100
2166cc83 271012006-11-03 Hollis Blanchard <hollis@penguinppc.org>
27102
27103 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
27104 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
27105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
27106 (kernel_elf_SOURCES): Likewise.
27107 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
27108 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
27109 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
27110 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
27111 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
27112 (elf_mod_SOURCES): New variable.
27113 (elf_mod_CFLAGS): Likewise.
27114 (elf_mod_LDFLAGS): Likewise.
27115 * include/grub/types.h (__unused): New macro.
27116 * include/grub/elfload.h: New file.
27117 * kern/elf.c: Likewise.
27118 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
27119 (ELF32_LOADMASK): New macro.
27120 (ELF64_LOADMASK): Likewise.
27121 (vmlinux): Removed.
27122 (grub_linux_load32): New function.
27123 (grub_linux_load64): Likewise.
27124 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
27125 Use grub_elf_t instead of grub_file_t.
27126
a09d5aa5 271272006-11-02 Hollis Blanchard <hollis@penguinppc.org>
27128
27129 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
27130 `catch_result' to struct set_color_args.
27131
d976fc51 271322006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
27133
27134 * normal/menu.c: Include grub/script.h.
27135 * normal/menu_entry.c: Likewise.
27136 * include/grub/normal.h: Do not include grub/script.h.
27137
67507549 271382006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27139
27140 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
27141
69203a99 271422006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27143
27144 * kern/disk.c (grub_disk_open): Print debug messages when opening a
27145 disk.
27146 (grub_disk_close): Print debug messages when closing a disk.
27147 (grub_disk_read): Print debug messages when disk read fails.
27148 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
27149 filesystem type.
27150 * kern/partition.c: Include misc.h.
27151 (grub_partition_iterate): Print debug messages when detecting
27152 partition type.
27153
e2b8278c 271542006-10-27 Hollis Blanchard <hollis@penguinppc.org>
27155
27156 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
27157 is negative.
27158 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
27159
97b2f2ff 271602006-10-26 Hollis Blanchard <hollis@penguinppc.org>
27161
27162 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
27163 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
27164
6555d655 271652006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
27166
27167 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
27168 instead of sizeof(lv). Patch by Michael Guntsche.
27169
4d42b77f 271702006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
27171
27172 * disk/lvm.c: Rename VGS to VG_LIST.
27173 (grub_lvm_iterate): Change VGS->LV to VG-LV.
27174 (grub_lvm_open): Likewise.
27175 Thanks to Michael Guntsche for finding this bug.
27176
5d74d927 271772006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
27178
27179 * configure.ac (AC_INIT): Bumped to 1.95.
27180
a1bb27e4 271812006-10-14 Robert Millan <rmh@aybabtu.com>
27182
27183 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
27184 with "/dev/.static/dev/md".
27185
e0994b8b 271862006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
27187
27188 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
27189 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
27190 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
27191 DRIVE_NAME are always freed.
27192
27193 * util/i386/pc/biosdisk.c (make_device_name): Add one into
27194 DOS_PART, as a DOS partition is counted from one instead of zero
27195 now. Reported by Robert Millan.
27196
ddd5cee9 271972006-10-14 Robert Millan <rmh@aybabtu.com>
27198
27199 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
27200 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
27201 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
27202 string returned by grub_guess_root_device.
27203 * util/i386/pc/grub-setup.c: Likewise.
27204 * util/i386/pc/grub-probefs.c: Likewise.
27205
27206 * util/i386/pc/grub-probefs.c: Rename to ...
27207 * util/i386/pc/grub-probe.c: ... this.
27208 * DISTLIST: Remove grub-probefs, add grub-probe.
27209 * conf/i386-efi.rmk: Likewise.
27210 * conf/i386-pc.rmk: Likewise.
27211 * util/i386/pc/grub-install.in: Likewise.
27212
27213 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
27214 choose which information we want to print.
27215
2b002173 272162006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
27217
27218 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
27219 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
27220 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
27221 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
27222 video/readers/tga.c and video/i386/pc/vbeutil.c.
27223
272242006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
27225
27226 Added support for RAID and LVM.
f19dbdb7 27227
2b002173 27228 * disk/lvm.c: New file.
27229 * disk/raid.c: Likewise.
27230 * include/grub/lvm.h: Likewise.
f19dbdb7 27231 * include/grub/raid.h: Likewise.
2b002173 27232 * include/grub/util/lvm.h: Likewise.
27233 * include/grub/util/raid.h: Likewise.
27234 * util/lvm.c: Likewise.
27235 * util/raid.c: Likewise.
27236
27237 * include/grub/disk.h (grub_disk_dev_id): Add
27238 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
27239 (grub_disk_get_size): New prototype.
27240 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
27241 returns a partition.
27242 (grub_disk_get_size): New function.
f19dbdb7 27243
2b002173 27244 * kern/i386/pc/init.c (make_install_device): Copy the prefix
27245 verbatim if grub_install_dos_part is -2.
27246
27247 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
27248 and LVM devices.
27249
27250 * util/i386/pc/grub-setup.c (setup): New argument
27251 MUST_EMBED. Force embedding of GRUB when the argument is
27252 true. Close FILE before returning.
27253 (main): Add support for RAID and LVM.
f19dbdb7 27254
2b002173 27255 * conf/common.rmk: Add RAID and LVM modules.
27256 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
27257 util/lvm.c.
27258 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
27259
27260 * kern/misc.c (grub_strstr): New function.
27261 * include/grub/misc.h (grub_strstr): New prototype.
27262
050548d0 272632006-10-10 Tristan Gingold <tristan.gingold@bull.net>
27264
27265 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
27266
da849d2d 272672006-10-05 Tristan Gingold <tristan.gingold@bull.net>
27268
27269 * kern/misc.c (grub_strtoull): Guess the base only if not
27270 specified.
27271
97b2f2ff 272722006-10-01 Hollis Blanchard <hollis@penguinppc.org>
4f0acd39 27273
27274 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
27275 PowerMac support.
27276
97b2f2ff 272772006-10-01 Hollis Blanchard <hollis@penguinppc.org>
fba51f48 27278
27279 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
27280
27281 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
27282 Remove `flags' argument. All callers changed.
27283 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
27284 (IEEE1275_IHANDLE_INVALID): New variable.
27285 (IEEE1275_CELL_INVALID): New variable.
27286 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
27287 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
27288 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
27289 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
27290 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
27291 codes from Open Firmware. All callers updated.
27292 (grub_ieee1275_next_property): Directly return Open Firmware return
27293 code.
27294 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
27295 Standardize error checking from `grub_ieee1275_get_property'.
27296 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
27297 `devalias' to `aliases'. Correct comments. Consolidate error paths.
27298
97b2f2ff 272992006-10-01 Hollis Blanchard <hollis@penguinppc.org>
cc6d3df3 27300
27301 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
27302 `instance_to_package_args' to `instance_to_path_args'.
27303
27304 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
27305 `grub_ieee1275_chosen'.
27306
27307 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
27308 `grub_ieee1275_interpret'.
27309
97b2f2ff 273102006-09-25 Hollis Blanchard <hollis@penguinppc.org>
02bb8acc 27311
27312 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
27313
97b2f2ff 273142006-09-25 Hollis Blanchard <hollis@penguinppc.org>
663b72f0 27315
27316 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
27317 (__cmpdi): Likewise.
27318
27319 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
27320 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
27321 `grub_ssize_t'.
27322
02bb8acc 27323 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
663b72f0 27324
27325 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
27326 to type `grub_ssize_t'.
27327 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
27328
7f9a8531 273292006-09-22 Marco Gerards <marco@gnu.org>
27330
27331 * normal/script.c (grub_script_create_cmdmenu): Skip leading
27332 newlines.
27333
b5ef1102 273342006-09-22 Marco Gerards <marco@gnu.org>
27335
27336 * commands/echo.c: New file.
27337
27338 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
27339
27340 * conf/common.rmk (echo_mod_SOURCES): New variable.
27341 (echo_mod_CFLAGS): Likewise.
27342 (echo_mod_LDFLAGS): Likewise.
27343
2cff3677 273442006-09-22 Marco Gerards <marco@gnu.org>
27345
27346 * normal/main.c (get_line): Malloc memory instead of using
27347 preallocated memory. Removed the arguments `cmdline' and
27348 `max_len'. Updated all callers.
27349
6ba4688b 273502006-09-22 Marco Gerards <marco@gnu.org>
27351
27352 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
27353 (normal_mod_DEPENDENCIES): Likewise.
27354
27355 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
27356 (normal_mod_DEPENDENCIES): Likewise.
27357
27358 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
27359
e02ac02c 273602006-09-22 Johan Rydberg <jrydberg@gnu.org>
27361
27362 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
27363 programs.
27364 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
27365 (normal_mod_DEPENDENCIES): Likewise.
27366 * conf/i386-pc.mk: Regenerate.
27367 * conf/i386-efi.mk: Likewise
27368 * conf/common.mk: Likewise.
27369 * conf/powerpc-ieee1275.mk: Likewise.
27370 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 27371
8d252e44 273722006-09-22 Robert Millan <rmh@aybabtu.com>
27373
27374 Sync with i386 version.
27375 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
27376 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
27377
209bf7ac 273782006-09-21 Robert Millan <rmh@aybabtu.com>
27379
27380 Import from GRUB Legacy (lib/device.c):
27381 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
27382 (init_device_map) [__linux__]: Add support for I2O devices.
27383
6b146090 273842006-09-14 Marco Gerards <marco@gnu.org>
27385
27386 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
27387 `-melf_i386'.
27388
e38600a8 273892006-09-14 Robert Millan <rmh@aybabtu.com>
2952da5d 27390
27391 * util/i386/pc/grub-install.in: Skip menu.lst when removing
27392 /boot/grub/*.lst.
78fa1790 27393
2952da5d 27394 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
6b146090 27395
2952da5d 27396 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
27397 before adding it to device.map.
27398
01b82a64 273992006-08-15 Johan Rydberg <jrydberg@gnu.org>
27400
fe6b695a 27401 * genmk.rb: Let GCC generate dependencies the first time it
01b82a64 27402 compiles a file; using the -MD option.
27403 * conf/common.mk: Regenerate.
27404 * conf/i386-pc.mk: Likewise.
27405 * conf/i386-efi.mk: Likewise.
27406 * conf/powerpc-ieee1275.mk: Likewise.
27407 * conf/sparc64-ieee1275.mk: Likewise.
f19dbdb7 27408
1064790d 274092006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
27410
27411 Move the prototypes of grub_setjmp and grub_longjmp to
27412 cpu/setjmp.h, so that each architecture may specify different
27413 attributes.
f19dbdb7 27414
1064790d 27415 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
27416 (grub_longjmp): Likewise.
27417 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
27418 (grub_longjmp): Likewise.
27419 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
27420 (grub_longjmp): Likewise.
27421
27422 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
27423 [!GRUB_UTIL] (grub_longjmp): Removed.
27424
29dda3ed 274252006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
27426
27427 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
27428 "color!" method does not return any value.
27429
ad2a06ed 274302006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27431
27432 * include/grub/bitmap.h: New file.
27433
27434 * include/grub/i386/pc/vbeutil.h: Likewise.
27435
27436 * video/bitmap.c: Likewise.
27437
27438 * video/readers/tga.c: Likewise.
27439
27440 * video/i386/pc/vbeutil.c: Likewise.
27441
27442 * commands/videotest.c: Code cleanup and updated to reflect to new
27443 video API.
27444
27445 * term/gfxterm.c: Likewise.
27446
27447 * video/video.c: Likewise.
27448
27449 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
27450 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
27451 (bitmap_mod_SOURCES): New entry.
27452 (bitmap_mod_CFLAGS): Likewise.
27453 (bitmap_mod_LDFLAGS): Likewise.
27454 (tga_mod_SOURCES): Likewise.
27455 (tga_mod_CFLAGS): Likewise.
27456 (tga_mod_LDFLAGS): Likewise.
27457
27458 * include/grub/video.h (grub_video_blit_operators): New enum type.
27459 (grub_video_render_target): Changed as forward declaration and moved
27460 actual definition to be video driver specific.
27461 (grub_video_adapter.blit_bitmap): Added blitting operator.
27462 (grub_video_adapter.blit_render_target): Likewise.
27463 (grub_video_blit_bitmap): Likewise.
27464 (grub_video_blit_render_target): Likewise.
27465
27466 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
27467 driver specific render target definition.
27468 (grub_video_vbe_map_rgba): Added driver internal helper.
27469 (grub_video_vbe_unmap_color): Updated to use
27470 grub_video_i386_vbeblit_info.
27471 (grub_video_vbe_get_video_ptr): Likewise.
27472
27473 * include/grub/i386/pc/vbeblit.h
27474 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
27475 grub_video_i386_vbeblit_info.
27476 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
27477 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
27478 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
27479 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
27480 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
27481 (grub_video_i386_vbeblit_index_index): Likewise.
27482 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
27483 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
27484 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
27485 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
27486 operator.
27487 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
27488 operator.
27489
27490 * video/i386/pc/vbeblit.c: Updated to reflect changes on
27491 include/grub/i386/pc/vbeblit.h.
27492
27493 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
27494 Updated to use grub_video_i386_vbeblit_info.
27495 (grub_video_i386_vbefill_R8G8B8): Likewise.
27496 (grub_video_i386_vbefill_index): Likewise.
27497 (grub_video_i386_vbefill): Added generic filler.
27498
27499 * video/i386/pc/vbefill.c: Updated to reflect changes on
27500 include/grub/i386/pc/vbefill.h.
27501
27502 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
27503 grub_video_i386_vbeblit_info.
27504 (grub_video_vbe_unmap_color): Likewise.
27505 (grub_video_vbe_blit_glyph): Likewise.
27506 (grub_video_vbe_scroll): Likewise.
27507 (grub_video_vbe_draw_pixel): Removed function.
27508 (grub_video_vbe_get_pixel): Likewise.
27509 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
27510 updated code to use it.
27511 (common_blitter): Added common blitter for render target and bitmap.
27512 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
27513 (grub_video_vbe_blit_render_target): Likewise.
27514
bc8c036d 275152006-07-30 Johan Rydberg <jrydberg@gnu.org>
27516
27517 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
27518 is in text mode if there is no console control protocol instance
27519 available.
27520
684a8eff 275212006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27522
27523 * include/grub/video.h: Code cleanup.
27524
27525 * include/grub/i386/pc/vbe.h: Likewise.
27526
27527 * video/i386/pc/vbe.c: Likewise.
27528
27529 * video/i386/pc/vbeblit.c: Likewise.
27530
27531 * video/i386/pc/vbefill.c: Likewise.
27532
27533 * video/video.c: Likewise. Also added more comments.
27534
5915059b 275352006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
27536
27537 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
27538 (struct grub_biosdisk_dap): Likewise.
27539
27540 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
27541 linkage settings for all functions.
27542
90ce5d56 275432006-07-12 Marco Gerards <marco@gnu.org>
27544
27545 * configure.ac (--enable-mm-debug): Fix typo.
27546
27547 * genkernsyms.sh.in: Use proper quoting for `CC'.
27548
43e7f879 275492006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
27550
27551 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
27552 (normal_mod_ASFLAGS): Remove "-m32".
27553
4889bdec 275542006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
27555
27556 * util/misc.c: Include config.h.
27557 [!HAVE_MEMALIGN]: Do not include malloc.h.
27558 (grub_memalign): Use posix_memalign, if present. Then, use
27559 memalign, if present. Otherwise, emit an error.
27560
27561 * util/grub-emu.c: Do not include malloc.h.
27562
27563 * include/grub/util/misc.h: Include unistd.h. This is required for
27564 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
27565 D. Eades III <hde@foobar-qux.org>.
27566
27567 * configure.ac (AC_GNU_SOURCE): Added.
27568 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
27569 type.
27570
fd39d4da 275712006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
27572
27573 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
27574 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
27575
b786f3b5 275762006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
27577
27578 * include/grub/types.h (grub_host_addr_t): Rename to
27579 grub_target_addr_t.
27580 (grub_host_off_t): Rename to grub_target_off_t.
27581 (grub_host_size_t): Rename to grub_target_size_t.
27582 (grub_host_ssize_t): Rename to grub_target_ssize_t.
27583 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
27584
27585 * include/grub/kernel.h (struct grub_module_header): Change type
27586 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
27587 (grub_module_info): Likewise.
f19dbdb7 27588
051988bb 275892006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27590
27591 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
27592 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
27593 Velazquez <jesus.velazquez@gmail.com>.
27594
deae281b 275952006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
27596
27597 Count partitions from 1 instead of 0 in the string representation
27598 of partitions. Still use 0-based internally.
f19dbdb7 27599
deae281b 27600 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
27601 (sun_partition_map_iterate): Use grub_partition_t instead of
27602 struct grub_partition *. Cast DESC->START_CYLINDER to
27603 grub_uint64_t after converting the endian.
27604 (sun_partition_map_probe): Subtract 1 for PARTNUM.
27605 (sun_partition_map_get_name): Add 1 to P->INDEX.
27606
27607 * partmap/pc.c (grub_partition_parse): Subtract 1 for
27608 PCDATA->DOS_PART.
27609 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
27610
27611 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
27612 zero instead of one.
27613 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
27614 (gpt_partition_map_get_name): Add 1 into P->INDEX.
27615
27616 * partmap/apple.c (apple_partition_map_iterate): Change the type
27617 of POS to unsigned.
27618 (apple_partition_map_probe): Subtract 1 for PARTNUM.
27619 (apple_partition_map_get_name): Add 1 into P->INDEX.
27620
27621 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
27622 of POS to unsigned.
27623 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
27624 calculate the offset of a partition.
27625 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
27626 (amiga_partition_map_get_name): Add 1 into P->INDEX.
27627
27628 * partmap/acorn.c (acorn_partition_map_find): Change the type of
27629 SECTOR to grub_disk_addr_t.
27630 (acorn_partition_map_iterate): Likewise.
27631 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
27632 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
27633 top.
27634 (acorn_partition_map_get_name): Add 1 into P->INDEX.
27635
27636 * kern/i386/pc/init.c (make_install_device): Add 1 into
27637 GRUB_INSTALL_DOS_PART.
27638
27639 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
27640 conditional.
27641
524a1e6a 276422006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27643
27644 Clean up the code to support 64-bit addressing in disks and
27645 files. This change is not enough for filesystems yet.
f19dbdb7 27646
524a1e6a 27647 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
27648 type of "start" to grub_uint64_t.
27649 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
27650 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
27651 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
27652 convert addresses.
27653
27654 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
27655 to grub_disk_addr_t.
27656
27657 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
27658 string.
27659
27660 * partmap/pc.c (pc_partition_map_iterate): Likewise.
27661
27662 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
27663 to char *.
27664
27665 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
27666
27667 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
27668
27669 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
27670
27671 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
27672 to grub_off_t, to detect an error from grub_file_seek.
27673 (grub_multiboot_load_elf32): Likewise.
27674
27675 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
27676 maximum unsigned long value when an overflow is detected.
27677 (grub_strtoull): New function.
27678 (grub_divmod64): Likewise.
27679 (grub_lltoa): use grub_divmod64.
27680
27681 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
27682 grub_disk_addr_t.
27683 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
27684 the pointer to next character. Use grub_strtoull instead of
27685 grub_strtoul.
27686 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
27687 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
27688 respectively.
27689
fe6b695a 27690 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
524a1e6a 27691 return value is signed.
27692 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
27693 test if OFFSET is less than zero, as OFFSET is unsigned now.
27694
27695 * kern/disk.c (struct grub_disk_cache): Change the type of
27696 "sector" to grub_disk_addr_t.
27697 (grub_disk_cache_get_index): Change the type of SECTOR to
27698 grub_disk_addr_t. Calculate the hash with SECTOR casted to
27699 unsigned after shifting.
27700 (grub_disk_cache_invalidate): Change the type of SECTOR to
27701 grub_disk_addr_t.
27702 (grub_disk_cache_unlock): Likewise.
27703 (grub_disk_cache_store): Likewise.
27704 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
27705 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
27706 grub_disk_addr_t and grub_uint64_t, respectively.
27707 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
27708 body, as the value of OFFSET is tweaked by
27709 grub_disk_check_range. Change the types of START_SECTOR, LEN and
27710 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
27711 respectively.
27712 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
27713 body, as the value of OFFSET is tweaked by
27714 grub_disk_check_range. Change the types of LEN and N to
27715 grub_size_t.
27716
27717 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
27718 and "saved_offset" to grub_off_t.
27719 (test_header): Cast BUF to char *.
27720 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
27721 to char *.
27722 (grub_gzio_read): Change the types of OFFSET and SIZE to
27723 grub_off_t and grub_size_t, respectively.
27724
27725 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
27726 Removed.
27727 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
27728 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
27729 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
27730 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
27731 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
27732
27733 * include/grub/types.h (grub_off_t): Unconditionally set to
27734 grub_uint64_t.
27735 (grub_disk_addr_t): Changed to grub_uint64_t.
27736
27737 * include/grub/partition.h (struct grub_partition): Change the
27738 types of "start", "len" and "offset" to grub_disk_addr_t,
27739 grub_uint64_t and grub_disk_addr_t, respectively.
27740 (grub_partition_get_start): Return grub_disk_addr_t.
27741 (grub_partition_get_len): Return grub_uint64_t.
27742
27743 * include/grub/misc.h (grub_strtoull): New prototype.
27744 (grub_divmod64): Likewise.
27745
27746 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
27747 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
27748 grub_off_t, respectively.
27749 All callers and references changed.
27750
27751 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
27752 grub_size_t in "read".
27753 All callers and references changed.
27754
27755 * include/grub/file.h (struct grub_file): Change the types of
27756 "offset" and "size" to grub_off_t and grub_off_t,
27757 respectively. Change the type of SECTOR to grub_disk_addr_t in
27758 "read_hook".
27759 (grub_file_read): Change the type of LEN to grub_size_t.
27760 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
27761 grub_off_t.
27762 (grub_file_size): Return grub_off_t.
27763 (grub_file_tell): Likewise.
27764 All callers and references changed.
27765
27766 * include/grub/disk.h (struct grub_disk_dev): Change the types of
27767 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
27768 "write".
27769 (struct grub_disk): Change the type of "total_sectors" to
27770 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
f19dbdb7 27771 "read_hook".
524a1e6a 27772 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
27773 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
27774 (grub_disk_write): Likewise.
27775 All callers and references changed.
27776
27777 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
27778 char * for grub_strncmp to silence gcc.
27779 (grub_iso9660_mount): Likewise.
27780 (grub_iso9660_mount): Likewise.
27781 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
27782 return statement.
27783 (grub_iso9660_iterate_dir): Likewise.
27784 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
27785
27786 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
27787 LEN to grub_disk_addr_t and grub_size_t, respectively.
27788
27789 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
27790
27791 * fs/jfs.c (grub_jfs_read_file): Likewise.
27792
27793 * fs/minix.c (grub_jfs_read_file): Likewise.
27794
27795 * fs/sfs.c (grub_jfs_read_file): Likewise.
27796
27797 * fs/ufs.c (grub_jfs_read_file): Likewise.
27798
27799 * fs/xfs.c (grub_jfs_read_file): Likewise.
27800
27801 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
27802 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
27803 respectively.
27804
27805 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
27806 BLKNR to -1 instead of returning GRUB_ERRNO.
27807 (grub_ext2_read_file): Change the types of SECTOR and
27808 LEN to grub_disk_addr_t and grub_size_t, respectively.
27809
27810 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
27811 LEN to grub_disk_addr_t and grub_size_t, respectively.
27812
27813 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
27814 grub_file_read.
27815
27816 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
27817 string. Do not cast SECTOR explicitly.
27818
27819 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
27820 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
27821 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
27822 grub_disk_addr_t and grub_size_t, respectively. If the sector is
27823 over 2TB and LBA mode is not supported, raise an error.
27824 (get_safe_sectors): New function.
27825 (grub_biosdisk_read): Use get_safe_sectors.
27826 (grub_biosdisk_write): Likewise.
27827
27828 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
27829 (grub_efidisk_write): Likewise.
27830
27831 * disk/loopback.c (delete_loopback): Cosmetic changes.
27832 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
27833 correctly.
27834 (grub_loopback_open): Likewise.
27835 (grub_loopback_read): Likewise. Also, change the type of POS to
27836 grub_off_t, and fix the usage of grub_memset.
27837
27838 * commands/i386/pc/play.c: Include grub/machine/time.h.
27839
27840 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
27841 print FILE->SIZE.
27842
27843 * commands/configfile.c: Include grub/env.h.
27844
27845 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
27846 GRUB_ERRNO directly instead. Change the type of POS to
27847 grub_off_t. Follow the coding standard.
27848
27849 * commands/blocklist.c: Include grub/partition.h.
27850 (grub_cmd_blocklist): Return an error if the underlying device is
27851 not a disk. Take the starting sector of a partition into account,
27852 if a partition is used.
27853
27854 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
27855 a length field.
27856 (lba_mode): Support 64-bit addresses.
27857 (chs_mode): Likewise.
27858 (copy_buffer): Adapted to the new offsets of a length field and a
27859 segment field.
27860 (blocklist_default_start): Allocate 64-bit space.
27861
27862 * boot/i386/pc/boot.S (force_lba): Removed.
27863 (boot_drive): Moved to under KERNEL_SECTOR.
fe987087 27864 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
524a1e6a 27865 space.
27866 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
27867 is useless.
27868 (lba_mode): Refactored to support a 64-bit address. More size
27869 optimization.
27870 (setup_sectors): Likewise.
27871
53af98ad 278722006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
27873
27874 * DISTLIST: Added include/grub/i386/linux.h. Removed
27875 include/grub/i386/pc/linux.h
27876
27877 * configure.ac (AC_INIT): Bumped to 1.94.
27878
27879 * config.guess: Updated from gnulib.
27880 * config.sub: Likewise.
27881 * install-sh: Likewise.
27882 * mkinstalldirs: Likewise.
27883
b4c1940a 278842006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27885
27886 * conf/common.rmk (grub_modules_init.lst): Depended on
27887 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
27888 MODSRCFILES.
27889
27890 * genmk.rb (PModule::rule): Reverted the previous change.
27891
cfca1cfd 278922006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
27893
27894 * conf/common.rmk (grub_modules_init.lst): Depends on
27895 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
27896 that the target does not exist before producing.
27897 (grub_modules_init.h): Remove the target before generating.
27898 (grub_emu_init.c): Likewise.
27899
27900 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
27901
aa6d7826 279022006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
27903
27904 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
27905 for the target-specific tests. Make sure that we also have the
27906 up-to-date target variables for those tests.
27907
26c607b9 279082006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27909
27910 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
27911 (PModule::rule): Likewise.
27912
0162321a 279132006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
27914
27915 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
27916 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
27917 target-specific flags should be prefixed.
27918 (PModule::rule): Likewise.
27919
6c826348 279202006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
27921
27922 * configure.ac (CMP): Check if cmp is available explicitly.
27923
b977bf01 279242006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
27925
27926 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
27927 (target_cpu): New variable.
27928 (pkglibdir): Use target_cpu instead of host_cpu.
f19dbdb7 27929
b977bf01 27930 * util/i386/pc/grub-install.in (host_cpu): Removed.
27931 (target_cpu): New variable.
27932 (pkglibdir): Use target_cpu instead of host_cpu.
27933
27934 * util/genmoddep.c: Removed.
f19dbdb7 27935
b977bf01 27936 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
27937 instead of GRUB_HOST_SIZEOF_VOID_P.
27938 * kern/dl.c: Likewise.
27939
27940 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
27941 ...
27942 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27943 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27944 (GRUB_TARGET_SIZEOF_LONG): ... this.
27945 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27946 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27947 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
27948 to ...
27949 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27950 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27951 (GRUB_TARGET_SIZEOF_LONG): ... this.
27952 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27953 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27954 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
27955 to ...
27956 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
27957 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
27958 (GRUB_TARGET_SIZEOF_LONG): ... this.
27959 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
27960 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
27961
27962 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
27963 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
27964 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
27965 instead of GRUB_HOST_SIZEOF_LONG.
27966 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
27967 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
27968 GRUB_CPU_WORDS_BIGENDIAN.
27969 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
27970 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
27971 grub_host_ssize_t.
27972
27973 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
27974 (genmoddep_SOURCES): Likewise.
27975 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
27976 (genmoddep_SOURCES): Likewise.
27977 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
27978 (genmoddep_SOURCES): Likewise.
27979 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
27980 Likewise.
27981 (genmoddep_SOURCES): Likewise.
27982
27983 * genmoddep.awk: New file.
27984
27985 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
27986 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
27987 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
27988 (PModule::rule): Likewise.
27989 (Program::rule): Likewise.
27990 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
27991 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
27992 respectively.
27993
27994 * configure.ac: Rewritten intensively to use host and target
27995 instead of build and host, respectively.
27996
27997 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
27998 (host_cpu): Removed.
27999 (target_cpu): New variable.
28000 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
28001 (BUILD_CC): Removed.
28002 (BUILD_CFLAGS): Likewise.
28003 (BUILD_CPPFLAGS): Likewise.
28004 (TARGET_CC): New variable.
28005 (TARGET_CFLAGS): Likewise.
28006 (TARGET_CPPFLAGS): Likewise.
28007 (TARGET_LDFLAGS): Likewise.
28008 (AWK): Likewise.
28009 (include): Use target_cpu instead of host_cpu.
28010 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
f19dbdb7 28011
b977bf01 28012 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
28013
f09771a1 280142006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
28015
28016 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
28017 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
28018 field 'false' to 'exec_on_false'.
28019 (grub_script_create_cmdif): Renamed argument names to reflect above
28020 changes.
28021
28022 * normal/execute.c (grub_script_execute_cmdif): Likewise.
28023
28024 * normal/script.c (grub_script_create_cmdif): Likewise.
28025
118f4fb3 280262006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
28027
28028 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
28029 top.
28030 (grub_hfsplus_btree_recptr): Likewise.
28031 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
28032 FILEBLOCK both to pass a block number and store next block
28033 number.
28034 (grub_hfsplus_read_block): Rewritten heavily to support an extent
28035 overflow file correctly. Specify errors appropriately, because
28036 fshelp expects that GRUB_ERRNO is set when fails. Reuse
28037 grub_hfsplus_btree_recptr to get the pointer to a found key.
28038 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
28039 is found.
28040
28041 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
28042 linux.mod.
28043 (_linux_mod_SOURCES): New variable.
28044 (_linux_mod_CFLAGS): Likewise.
28045 (_linux_mod_LDFLAGS): Likewise.
28046 (linux_mod_SOURCES): Likewise.
28047 (linux_mod_CFLAGS): Likewise.
28048 (linux_mod_LDFLAGS): Likewise.
28049
28050 * DISTLIST: Added loader/i386/efi/linux.c,
28051 loader/i386/efi/linux_normal.c and
28052 include/grub/i386/efi/loader.h.
28053
28054 * loader/i386/efi/linux.c: New file.
28055 * loader/i386/efi/linux_normal.c: Likewise.
28056 * include/grub/i386/efi/loader.h: Likewise.
28057
89a7d726 280582006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
28059
28060 * commands/blocklist.c: New file.
28061
28062 * DISTLIST: Added commands/blocklist.c.
28063
28064 * term/efi/console.c (grub_console_highlight_color): Use a lighter
43b553ad 28065 color for the background, and a darker color for the foreground.
89a7d726 28066 (grub_console_checkkey): Return READ_KEY.
28067 (grub_console_cls): Set the background to
28068 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
28069
28070 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
28071
28072 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
28073 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
28074
28075 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
28076 prototype.
28077
28078 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
28079 BG. The spec is wrong again.
28080
28081 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
28082 prototype.
28083 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
28084
28085 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
28086 commands/blocklist.c.
28087 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
f19dbdb7 28088
89a7d726 28089 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
28090 (blocklist_mod_SOURCES): New variable.
28091 (blocklist_mod_CFLAGS): Likewise.
28092 (blocklist_mod_LDFLAGS): Likewise.
28093
75c8f258 280942006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
28095
28096 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
28097 duplication.
28098 (lba_mode): Use %eax more intensively to reduce the code size.
28099
da2eb181 281002006-05-20 Marco Gerards <marco@gnu.org>
28101
28102 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
28103
28104 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
28105 for `menuentry'.
28106 (script): Accept leading newlines.
28107 (newlines): New rule to describe 0 or more newlines.
28108 (commands): Accept `command' with trailing newline. Fixed the
28109 order in which arguments were passed to `grub_script_add_cmd'.
28110 Accept commands separated by newlines.
28111 (function): Changed to accept newlines.
28112 (menuentry) Rewritten.
28113
28114 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
28115 front of the list, instead of to the end.
28116
577b4050 281172006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
28118
28119 * util/i386/pc/grub-install.in (bindir): New variable.
28120 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
28121 Shaver <lbgwjl@gmail.com>.
28122
0d6e1189 281232006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
28124
28125 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
28126 grub/machine/linux.h
28127 * loader/i386/pc/linux.c: Likewise.
28128
28129 * include/grub/i386/pc/linux.h: Moved to ...
28130 * include/grub/i386/linux.h: ... here.
28131
28132 * include/grub/i386/linux.h (struct linux_kernel_params): New
28133 struct.
f19dbdb7 28134
31b86e9f 281352006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
28136
28137 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
28138 checking.
28139 (grub_video_vbe_blit_glyph): Likewise.
28140 (grub_video_vbe_blit_bitmap): Likewise.
28141 (grub_video_vbe_blit_render_target): Likewise.
28142
83b984de 281432006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
28144
28145 * configure.ac (--with-platform): Properly quote the square
28146 brackets.
28147
5f0413bd 281482006-05-08 Marco Gerards <marco@gnu.org>
28149
28150 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
28151 this...
28152 (kernel_elf_HEADERS): ...to this. Updated all users.
28153 (grubof_symlist.c): Renamed from this...
28154 (kernel_elf_symlist.c): ...to this. Updated all users.
28155 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
28156 (grubof_SOURCES): Renamed from this...
28157 (kernel_elf_SOURCES): ...to this.
28158 (grubof_HEADERS): Renamed from this...
28159 (kernel_elf_HEADERS): ...to this.
28160 (grubof_CFLAGS): Renamed from this...
28161 (kernel_elf_CFLAGS): ...to this.
28162 (grubof_ASFLAGS): Renamed from this...
28163 (kernel_elf_ASFLAGS): ...to this.
28164 (grubof_LDFLAGS): Renamed from this...
28165 (kernel_elf_LDFLAGS): ...to this.
28166
28167 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
28168 this...
28169 (kernel_elf_HEADERS): ...to this. Updated all users.
28170 (grubof_symlist.c): Renamed from this...
28171 (kernel_elf_symlist.c): ...to this. Updated all users.
28172 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
28173 (grubof_SOURCES): Renamed from this...
28174 (kernel_elf_SOURCES): ...to this.
28175 (grubof_HEADERS): Renamed from this...
28176 (kernel_elf_HEADERS): ...to this.
28177 (grubof_CFLAGS): Renamed from this...
28178 (kernel_elf_CFLAGS): ...to this.
28179 (grubof_ASFLAGS): Renamed from this...
28180 (kernel_elf_ASFLAGS): ...to this.
28181 (grubof_LDFLAGS): Renamed from this...
28182 (kernel_elf_LDFLAGS): ...to this.
28183
28184 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
28185 `kernel.elf' instead of `grubof'.
28186
05568c2e 281872006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
28188
28189 Add --with-platform to configure. Use pkglibdir instead of
28190 pkgdatadir. This is reported by Roger Leigh.
28191
28192 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
28193 (host_vendor): Likewise.
28194 (host_os): Likewise.
28195 (pkgdatadir): Likewise.
28196 (platform): New variable.
28197 (pkglibdir): Likewise.
28198 Use PKGLIBDIR instead of PKGDATADIR.
f19dbdb7 28199
05568c2e 28200 * util/i386/pc/grub-install.in (datadir): Removed.
28201 (host_vendor): Likewise.
28202 (host_os): Likewise.
28203 (pkgdatadir): Likewise.
28204 (platform): New variable.
28205 (pkglibdir): Likewise.
28206 Use PKGLIBDIR instead of PKGDATADIR.
28207
28208 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
28209 instead of GRUB_DATADIR.
28210 (main): Likewise.
28211 * util/i386/pc/grub-mkimage.c (usage): Likewise.
28212 (main): Likewise.
28213 * util/i386/efi/grub-mkimage.c (usage): Likewise.
28214 (main): Likewise.
28215
28216 * configure.ac (--with-platform): New option.
28217 Use PLATFORM instead of HOST_VENDOR to specify a platform.
28218
28219 * Makefile.in: Include a makefile based on PLATFORM instead of
28220 HOST_VENDOR.
28221 (pkgdatadir): Not appended by the machine type.
28222 (pkglibdir): Appended by the machine type.
28223 (host_vendor): Removed.
28224 (platform): New variable.
28225 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
28226 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
28227 (uninstall): Likewise.
28228
4e93851c 282292006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
28230
28231 Use the environment context in the menu. Remove the commands
28232 "default" and "timeout", and use variables instead.
f19dbdb7 28233
4e93851c 28234 * normal/menu.c: Include grub/env.h.
28235 (print_entry): Cast TITLE to silence gcc.
28236 (get_timeout): New function.
28237 (set_timeout): Likewise.
28238 (get_entry_number): Likewise.
28239 (run_menu): Use a default entry, a fallback entry and a timeout
28240 in the environment variables "default", "fallback" and
28241 "timeout". Also, tweak the default entry if it is not within the
28242 current menu entries.
28243 (grub_menu_run): Use a fallback entry in the environment variable
28244 "fallback".
28245
28246 * normal/main.c (read_config_file): Do not initialize
28247 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
28248 NEWMENU->TIMEOUT.
28249 (grub_normal_execute): Use a data slot to store the menu.
28250
28251 * include/grub/normal.h (struct grub_menu): Removed default_entry,
28252 fallback_entry and timeout.
28253 (struct grub_menu_list): Removed.
28254 (grub_menu_list_t): Likewise.
28255 (struct grub_context): Likewise.
28256 (grub_context_t): Likewise.
28257 (grub_context_get): Likewise.
28258 (grub_context_get_current_menu): Likewise.
28259 (grub_context_push_menu): Likewise.
28260 (grub_context_pop_menu): Likewise.
28261 (grub_default_init): Likewise.
28262 (grub_default_fini): Likewise.
28263 (grub_timeout_init): Likewise.
28264 (grub_timeout_fini): Likewise.
28265
28266 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
28267 and timeout.mod.
28268 (normal_mod_SOURCES): Removed normal/context.c.
28269
28270 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
28271 commands/default.c, commands/timeout.c and normal/context.c.
28272 (normal_mod_SOURCES): Removed normal/context.c.
28273
28274 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
28275 commands/timeout.c and normal/context.c.
28276 (normal_mod_SOURCES): Removed normal/context.c.
28277
28278 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
28279 commands/default.c, commands/timeout.c and normal/context.c.
28280 (normal_mod_SOURCES): Removed normal/context.c.
28281
28282 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
28283 timeout.mod.
28284 (default_mod_SOURCES): Removed.
28285 (default_mod_CFLAGS): Likewise.
28286 (default_mod_LDFLAGS): Likewise.
28287 (timeout_mod_SOURCES): Removed.
28288 (timeout_mod_CFLAGS): Likewise.
28289 (timeout_mod_LDFLAGS): Likewise.
28290
28291 * DISTLIST: Removed commands/default.c, commands/timeout.c and
28292 normal/context.c.
28293
28294 * commands/default.c: Removed.
28295 * commands/timeout.c: Likewise.
28296 * normal/context.c: Likewise.
28297
1eb9cc1d 282982006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
28299
28300 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
28301
385bd9c1 283022006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
28303
28304 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
28305 "next" to "prev" for readability.
28306 (struct grub_env_sorted_var): New struct.
28307 (grub_env_context): Renamed to ...
28308 (initial_context): ... this.
28309 (grub_env_var_context): Renamed to ...
28310 (current_context): ... this.
28311 (grub_env_find): Look only at CURRENT_CONTEXT.
28312 (grub_env_context_open): Rewritten to copy exported variables from
28313 previous context.
28314 (grub_env_context_close): Rewritten according to the new
28315 scheme. Also, add an assertion to prevent the initial context from
28316 removed.
28317 (grub_env_insert): Removed the code for the sorted list.
28318 (grub_env_remove): Likewise.
28319 (grub_env_export): Simply mark the variable with
28320 GRUB_ENV_VAR_GLOBAL.
28321 (grub_env_set): A cosmetic change for naming consistency.
28322 (grub_env_get): Likewise.
28323 (grub_env_unset): Likewise.
28324 (grub_env_iterate): Rewritten to sort variables within this
28325 function.
28326 (grub_register_variable_hook): Fixed for naming consistency. Call
28327 grub_env_find again, only if NAME is not found at the first time.
28328 (mangle_data_slot_name): New function.
28329 (grub_env_set_data_slot): Likewise.
28330 (grub_env_get_data_slot): Likewise.
28331 (grub_env_unset_data_slot): Likewise.
28332
28333 * include/grub/env.h (grub_env_var_type): New enum.
28334 (GRUB_ENV_VAR_LOCAL): New constant.
28335 (GRUB_ENV_VAR_GLOBAL): Likewise.
28336 (GRUB_ENV_VAR_DATA): Likewise.
28337 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
28338 "type".
28339 (grub_env_set): Replace VAR with NAME for consistency.
28340 (grub_register_variable_hook): Likewise.
28341 (grub_env_export): Specify the name of the argument.
28342 (grub_env_set_data_slot): New prototype.
28343 (grub_env_get_data_slot): Likewise.
28344 (grub_env_unset_data_slot): Likewise.
28345
7f362539 283462006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28347
28348 Extend the loader so that GRUB can accept a loader which comes
28349 back to GRUB when a loaded image exits. Also, this change adds
28350 support for a chainloader on EFI.
f19dbdb7 28351
7f362539 28352 * term/efi/console.c: Include grub/misc.h.
28353 (grub_console_checkkey): Display a scan code on the top for
28354 debugging. This will be removed once the EFI port gets stable.
28355 Correct the scan code mapping.
28356
28357 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
28358 allocate memory from larger regions, in order to reduce the number
28359 of allocated regions. Otherwise, the MacOSX loader panics.
28360 (filter_memory_map): Avoid less than 1MB for compatibility with
28361 other loaders.
28362 (add_memory_regions): Allocate from the tail of a region, if
28363 possible, to avoid allocating a region near to 1MB, for the MacOSX
28364 loader.
28365
28366 * kern/efi/init.c (grub_efi_set_prefix): Specify
28367 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
28368
28369 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
28370 argument IMAGE_HANDLE and specify it to get a loaded image.
28371 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
28372 grub_efi_get_loaded_image.
fe6b695a 28373 (grub_efi_get_filename): Divide the length by the size of
7f362539 28374 grub_efi_char16_t.
28375 (grub_efi_get_device_path): New function.
28376 (grub_efi_print_device_path): Print End Device Path nodes. Divide
28377 the length by the size of grub_efi_char16_t for a file path device
28378 path node.
28379
28380 * kern/loader.c (grub_loader_noreturn): New variable.
28381 (grub_loader_set): Accept a new argument NORETURN. Set
28382 GRUB_LOADER_NORETURN to NORETURN.
28383 All callers changed.
28384 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
28385 grub_machine_fini.
28386
28387 * include/grub/efi/efi.h (grub_efi_get_device_path): New
28388 prototype.
28389 (grub_efi_get_loaded_image): Take an argument to specify an image
28390 handle.
28391
28392 * include/grub/loader.h (grub_loader_set): Added one more argument
28393 NORETURN.
28394
28395 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
28396 instead of grub_efi_open_protocol.
28397 (grub_efidisk_get_device_name): Likewise.
28398 (grub_efidisk_close): Print a newline.
28399 (grub_efidisk_get_device_handle): Fixed to use
28400 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
28401 GRUB_EFI_DEVICE_PATH_TYPE.
28402
28403 * disk/efi/efidisk.c (device_path_guid): Moved to ...
28404 * kern/efi/efi.c (device_path_guid): ... here.
28405
28406 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
28407 chain.mod.
28408 (kernel_mod_HEADERS): Added efi/disk.h.
28409 (_chain_mod_SOURCES): New variable.
28410 (_chain_mod_CFLAGS): Likewise.
28411 (_chain_mod_LDFLAGS): Likewise.
28412 (chain_mod_SOURCES): Likewise.
28413 (chain_mod_CFLAGS): Likewise.
28414 (chain_mod_LDFLAGS): Likewise.
28415
28416 * DISTLIST: Added include/grub/efi/chainloader.h,
28417 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
28418
28419 * include/grub/efi/chainloader.h: New file.
28420 * loader/efi/chainloader.c: Likewise.
28421 * loader/efi/chainloader_normal.c: Likewise.
28422
c0111d6e 284232006-04-30 Marco Gerards <marco@gnu.org>
28424
28425 * commands/configfile.c (grub_cmd_source): New function.
28426 (GRUB_MOD_INIT): Register the commands `source' and `.'.
28427 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
28428
df5341da 284292006-04-30 Marco Gerards <marco@gnu.org>
28430
28431 * normal/execute.c (grub_script_execute_cmd): Change the return
28432 type to `grub_err_t'. Correctly return the error.
28433 (grub_script_execute_cmdline): In case a command line is not a
28434 command or a function, try to interpret it as an assignment.
28435
f85934bd 284362006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
28437
28438 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
28439 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
28440 skip a node whose name is obviously invalid as UTF-16,
28441 i.e. contains a NUL character. Stop the iteration when the last
28442 directory entry is found. Instead of using the return value of
28443 grub_hfsplus_btree_iterate_node, store the value in RET and use
28444 it, because the iterator can be stopped by the last directory
28445 entry.
28446
8f8a2cf8 284472006-04-30 Marco Gerards <marco@gnu.org>
28448
28449 * include/grub/env.h (grub_env_export): New prototype. Reported
28450 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
28451
a27e84ce 284522006-04-30 Marco Gerards <marco@gnu.org>
28453
28454 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
28455 size of the extents in a catalog file record.
28456
eaef0553 284572006-04-29 Marco Gerards <marco@gnu.org>
28458
28459 * commands/configfile.c (grub_cmd_configfile): Execute the
28460 configfile within its own context.
28461
28462 * include/grub/env.h (grub_env_context_open): New prototype.
28463 (grub_env_context_close): Likewise.
28464
28465 * kern/env.c (grub_env): Removed.
28466 (grub_env_sorted): Likewise.
28467 (grub_env_context): New variable.
28468 (grub_env_var_context): Likewise.
28469 (grub_env_find): Search both the active context and the global
28470 context.
28471 (grub_env_context_open): New function.
28472 (grub_env_context_close): Likewise.
28473 (grub_env_insert): Likewise.
28474 (grub_env_remove): Likewise.
28475 (grub_env_export): Likewise.
28476 (grub_env_set): Changed to use helper functions to avoid code
28477 duplication.
28478 (grub_env_iterate): Rewritten so both the current context and the
28479 global context are being used.
28480
28481 * normal/command.c (export_command): New function.
28482 (grub_command_init): Register the `export' function.
28483
7b455f4d 284842006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
28485
28486 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
28487 explicitly to suppress gcc's warnings.
28488 * fs/fat.c (grub_fat_find_dir): Likewise.
28489 (grub_fat_label): Likewise.
28490 * fs/xfs.c (grub_xfs_read_inode): Likewise.
28491 (grub_xfs_mount): Likewise.
28492 (grub_xfs_label): Likewise.
28493 * fs/affs.c (grub_affs_mount): Likewise.
28494 (grub_affs_label): Likewise.
28495 (grub_affs_iterate_dir): Likewise.
28496 * fs/sfs.c (grub_sfs_mount): Likewise.
28497 (grub_sfs_iterate_dir): Likewise.
28498 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
28499 * fs/hfs.c (grub_hfs_mount): Likewise.
28500 (grub_hfs_cmp_catkeys): Likewise.
28501 (grub_hfs_find_dir): Likewise.
28502 (grub_hfs_dir): Likewise.
28503 (grub_hfs_label): Likewise.
28504 * fs/jfs.c (grub_jfs_mount): Likewise.
28505 (grub_jfs_opendir): Likewise.
28506 (grub_jfs_getent): Likewise.
28507 (grub_jfs_lookup_symlink): Likewise.
28508 (grub_jfs_label): Likewise.
28509 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
28510 (grub_hfsplus_iterate_dir): Likewise.
28511 (grub_hfsplus_btree_iterate_node): Made static.
28512
28513 * util/grub-emu.c (prefix): New variable.
28514 (grub_machine_set_prefix): New function.
28515 (main): Do not set the environment variable "prefix" here. Only
28516 set PREFIX, which is used later by grub_machine_set_prefix.
28517
28518 * include/grub/video.h: Do not include grub/symbol.h.
28519 (grub_video_register): Not exported. This symbol is not defined in
28520 the kernel.
28521 (grub_video_unregister): Likewise.
28522 (grub_video_iterate): Likewise.
28523 (grub_video_setup): Likewise.
28524 (grub_video_restore): Likewise.
28525 (grub_video_get_info): Likewise.
28526 (grub_video_get_blit_format): Likewise.
28527 (grub_video_set_palette): Likewise.
28528 (grub_video_get_palette): Likewise.
28529 (grub_video_set_viewport): Likewise.
28530 (grub_video_get_viewport): Likewise.
28531 (grub_video_map_color): Likewise.
28532 (grub_video_map_rgb): Likewise.
28533 (grub_video_map_rgba): Likewise.
28534 (grub_video_fill_rect): Likewise.
28535 (grub_video_blit_glyph): Likewise.
28536 (grub_video_blit_bitmap): Likewise.
28537 (grub_video_blit_render_target): Likewise.
28538 (grub_video_scroll): Likewise.
28539 (grub_video_swap_buffers): Likewise.
28540 (grub_video_create_render_target): Likewise.
28541 (grub_video_delete_render_target): Likewise.
28542 (grub_video_set_active_render_target): Likewise.
28543
28544 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
28545 Undefined.
28546 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
28547
28548 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
28549 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28550 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28551 instead of $(srcdir)/genkernsyms.sh.
28552
28553 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
28554 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28555 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28556 instead of $(srcdir)/genkernsyms.sh.
28557
28558 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
28559 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28560 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28561 instead of $(srcdir)/genkernsyms.sh.
28562
28563 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
28564 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
28565 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
28566 instead of $(srcdir)/genkernsyms.sh.
28567
28568 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
28569 genkernsyms.sh.
28570
28571 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
28572 genkernsyms.sh.
28573 (gensymlist.sh): New target.
28574 (genkernsyms.sh): Likewise.
28575
28576 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
28577 genkernsyms.sh.in and gensymlist.sh.in.
28578
28579 * genkernsyms.sh: Removed.
28580 * gensymlist.sh: Likewise.
f19dbdb7 28581
7b455f4d 28582 * genkernsyms.sh.in: New file.
28583 * gensymlist.sh.in: Likewise.
28584
1885bb27 285852006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28586
28587 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
28588 clobber "prefix", since we may have already set it manually.
28589
71538dff 285902006-04-25 Hollis Blanchard <hollis@penguinppc.org>
28591
28592 * kern/misc.c (abort): New alias for grub_abort.
28593
2965c7cc 285942006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
28595
28596 A new machine-specific function "grub_machine_set_prefix" is
28597 defined. This is called after loading modules, so that a prefix
28598 initialization can use modules. Also, this change adds an
28599 intensive debugging feature for the memory manager via the
28600 configure option "--enable-mm-debug".
f19dbdb7 28601
2965c7cc 28602 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
28603 PART.LEN.
28604
28605 * kern/sparc64/ieee1275/init.c (abort): Removed.
28606 (grub_stop): Likewise.
28607 (grub_exit): New function.
28608 (grub_set_prefix): Renamed to ...
28609 (grub_machine_set_prefix): ... this.
28610 (grub_machine_init): Do not call grub_set_prefix.
28611
28612 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
28613 (grub_machine_set_prefix): ... this.
28614 (grub_machine_init): Do not call grub_set_prefix.
28615
28616 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
28617 (grub_machine_init): Do not set the prefix here.
28618
28619 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
28620
28621 * kern/efi/init.c: Include grub/mm.h.
28622 (grub_efi_set_prefix): New function.
28623
28624 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
28625 (grub_efi_get_filename): New function.
28626 (grub_print_device_path): Renamed to ...
28627 (grub_efi_print_device_path): ... this.
28628
28629 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
28630 [MM_DEBUG] (grub_realloc): Likewise.
28631 [MM_DEBUG] (grub_free): Likewise.
28632 [MM_DEBUG] (grub_memalign): Likewise.
28633 [MM_DEBUG] (grub_mm_debug): New variable.
28634 [MM_DEBUG] (grub_debug_malloc): New function.
28635 [MM_DEBUG] (grub_debug_free): New function.
28636 [MM_DEBUG] (grub_debug_realloc): New function.
28637 [MM_DEBUG] (grub_debug_memalign): New function.
28638
28639 * kern/misc.c (grub_abort): Print a newline to distinguish
28640 the message.
28641
28642 * kern/main.c (grub_main): Call grub_machine_set_prefix and
28643 grub_set_root_dev after loading modules. This is necessary when
28644 setting a prefix depends on modules.
28645
28646 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
28647 (grub_efi_print_device_path): ... this.
28648 (grub_efi_get_filename): New prototype.
28649 (grub_efi_set_prefix): Likewise.
28650
28651 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
28652 and grub/disk.h.
28653 (grub_efidisk_get_device_handle): New prototype.
28654 (grub_efidisk_get_device_name): Likewise.
28655
28656 * include/grub/mm.h: Include config.h.
28657 (MM_DEBUG): Removed.
28658 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
28659 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
28660 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
28661 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
28662 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
28663 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
28664 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
28665 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
28666 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
28667
28668 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
28669
28670 * disk/efi/efidisk.c: Include grub/partition.h.
28671 (iterate_child_devices): New function.
28672 (add_device): First, compare only last device path nodes, so that
28673 devices are sorted by the types.
28674 (grub_efidisk_get_device_handle): New function.
28675 (grub_efidisk_get_device_name): Likewise.
28676
28677 * configure.ac (--enable-mm-debug): New option to enable the
28678 memory manager debugging feature. This makes the binary much
28679 bigger, so is disabled by default.
28680
9cacaa17 286812006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
28682
28683 Use grub_abort instead of grub_stop, and grub_exit must be
28684 define in each architecture now. Also, this change adds support
28685 for EFI disks.
f19dbdb7 28686
9cacaa17 28687 * util/i386/pc/grub-probefs.c: Include grub/term.h.
28688 (grub_getkey): New function.
28689 (grub_term_get_current): Likewise.
28690
28691 * util/i386/pc/grub-setup.c: Include grub/term.h.
28692 (grub_getkey): New function.
28693 (grub_term_get_current): Likewise.
28694
28695 * util/misc.c (grub_stop): Renamed to ...
28696 (grub_exit): ... this.
28697
28698 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
28699 (grub_exit): ... this.
28700 (grub_machine_init): Use grub_abort instead of abort.
28701 (grub_stop): Removed.
28702
28703 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
28704 abort.
28705
28706 * kern/i386/pc/startup.S (grub_exit): New function.
28707 (cold_reboot): New label.
28708
28709 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
28710 (grub_efi_init): Call grub_efidisk_init.
28711 (grub_efi_fini): Call grub_efidisk_fini.
28712
28713 * kern/efi/efi.c: Include grub/mm.h.
28714 (grub_efi_console_control_guid): Renamed to ...
28715 (console_control_guid): ... this.
28716 (grub_efi_loaded_image_guid): Renamed to ...
28717 (loaded_image_guid): ... this.
28718 (grub_efi_locate_handle): New function.
28719 (grub_efi_open_protocol): Likewise.
28720 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
28721 GRUB_EFI_CONSOLE_CONTROL_GUID.
28722 (grub_efi_exit): Removed.
28723 (grub_stop): Likewise.
28724 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
28725 (grub_exit): New function.
28726 (grub_print_device_path): Likewise.
28727
28728 * kern/rescue.c (grub_rescue_cmd_exit): New function.
28729 (grub_enter_rescue_mode): Register "exit".
28730
28731 * kern/misc.c (grub_real_dprintf): A cosmetic change.
28732 (grub_abort): New function.
28733
28734 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
28735
28736 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
28737
28738 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
28739
28740 * include/grub/efi/efi.h (grub_efi_exit): Removed.
28741 (grub_print_device_path): New prototype.
28742 (grub_efi_locate_handle): Likewise.
28743 (grub_efi_open_protocol): Likewise.
28744
28745 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
28746 * disk/efi/efidisk.c: Likewise.
28747
28748 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
28749
28750 * include/grub/efi/console_control.h
28751 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
28752
28753 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
28754 last 8 bytes as an array.
28755 (GRUB_EFI_DISK_IO_GUID): New macro.
28756 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
28757 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
28758 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
28759 grub_uint8_t.
28760 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
28761 (struct grub_efi_device_path): Rename the member "sub_type" to
28762 "subtype".
28763 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
28764 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
28765 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
28766 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
28767 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
28768 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
28769 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
28770 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
28771 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
28772 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
28773 (struct grub_efi_pci_device_path): New structure.
28774 (grub_efi_pci_device_path_t): New type.
28775 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
28776 (struct grub_efi_pccard_device_path): New structure.
28777 (grub_efi_pccard_device_path_t): New type.
28778 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
28779 (struct grub_efi_memory_mapped_device_path): New structure.
28780 (grub_efi_memory_mapped_device_path_t): New type.
28781 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
28782 (struct grub_efi_vendor_device_path): New structure.
28783 (grub_efi_vendor_device_path_t): New type.
28784 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
28785 (struct grub_efi_controller_device_path): New structure.
28786 (grub_efi_controller_device_path_t): New type.
28787 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
28788 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
28789 (struct grub_efi_acpi_device_path): New structure.
28790 (grub_efi_acpi_device_path_t): New type.
28791 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
28792 (struct grub_efi_expanded_acpi_device_path): New structure.
28793 (grub_efi_expanded_acpi_device_path_t): New type.
28794 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
28795 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
28796 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
28797 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
28798 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
28799 (struct grub_efi_atapi_device_path): New structure.
28800 (grub_efi_atapi_device_path_t): New type.
28801 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
28802 (struct grub_efi_fibre_channel_device_path): New structure.
28803 (grub_efi_fibre_channel_device_path_t): New type.
28804 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
28805 (struct grub_efi_1394_device_path): New structure.
28806 (grub_efi_1394_device_path_t): New type.
28807 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
28808 (struct grub_efi_usb_device_path): New structure.
28809 (grub_efi_usb_device_path_t): New type.
28810 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
28811 (struct grub_efi_usb_class_device_path): New structure.
28812 (grub_efi_usb_class_device_path_t): New type.
28813 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
28814 (struct grub_efi_i2o_device_path): New structure.
28815 (grub_efi_i2o_device_path_t): New type.
28816 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
28817 (struct grub_efi_mac_address_device_path): New structure.
28818 (grub_efi_mac_address_device_path_t): New type.
28819 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
28820 (struct grub_efi_ipv4_device_path): New structure.
28821 (grub_efi_ipv4_device_path_t): New type.
28822 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
28823 (struct grub_efi_ipv6_device_path): New structure.
28824 (grub_efi_ipv6_device_path_t): New type.
28825 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
28826 (struct grub_efi_infiniband_device_path): New structure.
28827 (grub_efi_infiniband_device_path_t): New type.
28828 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
28829 (struct grub_efi_uart_device_path): New structure.
28830 (grub_efi_uart_device_path_t): New type.
28831 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
28832 (struct grub_efi_vendor_messaging_device_path): New structure.
28833 (grub_efi_vendor_messaging_device_path_t): New type.
28834 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
28835 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
28836 (struct grub_efi_hard_drive_device_path): New structure.
28837 (grub_efi_hard_drive_device_path_t): New type.
28838 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
28839 (struct grub_efi_cdrom_device_path): New structure.
28840 (grub_efi_cdrom_device_path_t): New type.
28841 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
28842 (struct grub_efi_vendor_media_device_path): New structure.
28843 (grub_efi_vendor_media_device_path_t): New type.
28844 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
28845 (struct grub_efi_file_path_device_path): New structure.
28846 (grub_efi_file_path_device_path_t): New type.
28847 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
28848 (struct grub_efi_protocol_device_path): New structure.
28849 (grub_efi_protocol_device_path_t): New type.
28850 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
28851 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
28852 (struct grub_efi_bios_device_path): New structure.
28853 (grub_efi_bios_device_path_t): New type.
28854 (struct grub_efi_disk_io): New structure.
28855 (grub_efi_disk_io_t): New type.
28856 (struct grub_efi_block_io_media): New structure.
28857 (grub_efi_block_io_media_t): New type.
28858 (struct grub_efi_block_io): New structure.
28859 (grub_efi_block_io_t): New type.
28860
28861 * include/grub/misc.h (grub_stop): Removed.
28862 (grub_exit): New prototype.
28863 (grub_abort): Likewise.
28864
28865 * include/grub/disk.h (enum grub_disk_dev_id): Added
28866 GRUB_DISK_DEVICE_EFIDISK_ID.
28867
28868 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
28869 disk/efi/efidisk.c.
28870 (kernel_syms.lst): Remove the target if an error occurs.
28871
49986a9f 288722006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
28873
28874 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
28875 as it was simply too buggy.
28876
970d3b8a 288772006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
28878
28879 * kern/misc.c (grub_lltoa): New function.
28880 (grub_vsprintf): Added support for the long long suffix,
28881 i.e. "ll".
28882
ff04ec24 288832006-04-20 Hollis Blanchard <hollis@penguinppc.org>
28884
28885 * Makefile.in (LDFLAGS): Add variable.
28886 (LD): Remove variable.
28887 * configure.ac: Add -m32 to LDFLAGS.
28888 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
28889 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
28890 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
28891 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
28892 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
28893 variables.
28894 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
28895 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
28896 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
28897
37e5e1a4 288982006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
28899
28900 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
28901 length for unknown glyph.
28902
c352d8dd 289032006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
28904
2eab1c0d 28905 Add support for pre-loaded modules into the EFI port.
f19dbdb7 28906
2eab1c0d 28907 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
28908 completely. Accept one more argument DIR. The caller has changed.
28909
28910 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
28911
28912 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
28913 (grub_efi_loaded_image_guid): New variable.
28914 (grub_efi_get_loaded_image): New function.
28915 (grub_arch_modules_addr): Likewise.
28916
28917 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
28918 prototype.
28919
28920 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
28921 (struct grub_efi_loaded_image): New structure.
28922 (grub_efi_loaded_image_t): New type.
28923
289242006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
f19dbdb7 28925
c352d8dd 28926 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
28927 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
28928 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
28929
6d01d6b4 289302006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
28931
28932 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
28933
976a4ea0 289342006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
28935
28936 * DISTLIST: Added include/grub/efi/console.h,
28937 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
28938 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
28939
28940 * include/grub/efi/console.h: New file.
28941 * include/grub/efi/time.h: Likewise.
28942 * include/grub/i386/efi/kernel.h: Likewise.
28943 * kern/efi/init.c: Likewise.
28944 * kern/efi/mm.c: Likewise.
28945 * term/efi/console.c: Likewise.
f19dbdb7 28946
976a4ea0 28947 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
28948 (grub_stop): Removed.
28949 (grub_get_rtc): Likewise.
28950 (grub_machine_init): Simply call grub_efi_init.
28951 (grub_machine_fini): Call grub_efi_fini.
28952
28953 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
28954 (grub_efi_output_string): Removed.
28955 (grub_efi_stall): New function.
28956 (grub_stop): Likewise.
28957 (grub_get_rtc): Likewise.
28958
28959 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
28960 (grub_efi_stall): New prototype.
28961 (grub_efi_allocate_pages): Likewise.
28962 (grub_efi_free_pages): Likewise.
28963 (grub_efi_get_memory_map): Likewise.
28964 (grub_efi_mm_init): Likewise.
28965 (grub_efi_mm_fini): Likewise.
28966 (grub_efi_init): Likewise.
28967 (grub_efi_fini): Likewise.
28968
28969 * include/grub/i386/efi/time.h: Do not include
28970 grub/symbol.h. Include grub/efi/time.h.
28971 (GRUB_TICKS_PER_SECOND): Removed.
28972 (grub_get_rtc): Likewise.
28973
28974 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
28975 Added padding. The EFI spec is buggy.
28976 (GRUB_EFI_BLACK): New macro.
28977 (GRUB_EFI_BLUE): Likewise.
28978 (GRUB_EFI_GREEN): Likewise.
28979 (GRUB_EFI_CYAN): Likewise.
28980 (GRUB_EFI_RED): Likewise.
28981 (GRUB_EFI_MAGENTA): Likewise.
28982 (GRUB_EFI_BROWN): Likewise.
28983 (GRUB_EFI_LIGHTGRAY): Likewise.
28984 (GRUB_EFI_BRIGHT): Likewise.
28985 (GRUB_EFI_DARKGRAY): Likewise.
28986 (GRUB_EFI_LIGHTBLUE): Likewise.
28987 (GRUB_EFI_LIGHTGREEN): Likewise.
28988 (GRUB_EFI_LIGHTCYAN): Likewise.
28989 (GRUB_EFI_LIGHTRED): Likewise.
28990 (GRUB_EFI_LIGHTMAGENTA): Likewise.
28991 (GRUB_EFI_YELLOW): Likewise.
28992 (GRUB_EFI_WHITE): Likewise.
28993 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
28994 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
28995 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
28996 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
28997 (GRUB_EFI_BACKGROUND_RED): Likewise.
28998 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
28999 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
29000 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
29001 (GRUB_EFI_TEXT_ATTR): Likewise.
29002
29003 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
29004 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29005 (kernel_mod_HEADERS): Added efi/time.h.
29006
83709125 290072006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
29008
29009 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
29010 include/grub/efi/api.h, include/grub/efi/console_control.h,
29011 include/grub/efi/efi.h, include/grub/efi/pe32.h,
29012 include/grub/i386/efi/time.h, kern/efi/efi.c,
29013 kern/i386/efi/init.c, kern/i386/efi/startup.S,
29014 and util/i386/efi/grub-mkimage.c.
29015
29016 * Makefile.in (RMKFILES): Added i386-efi.rmk.
29017
29018 * genmk.rb (PModule#rule): Do not export symbols if
29019 #{prefix}_EXPORTS is set to "no".
29020
29021 * conf/i386-efi.mk: New file.
29022 * conf/i386-efi.rmk: Likewise.
29023 * include/grub/efi/api.h: Likewise.
29024 * include/grub/efi/console_control.h: Likewise.
29025 * include/grub/efi/efi.h: Likewise.
29026 * include/grub/efi/pe32.h: Likewise.
29027 * include/grub/i386/efi/time.h: Likewise.
29028 * kern/efi/efi.c: Likewise.
29029 * kern/i386/efi/init.c: Likewise.
29030 * kern/i386/efi/startup.S: Likewise.
29031 * util/i386/efi/grub-mkimage.c: Likewise.
29032
290332006-04-17 Marco Gerards <marco@gnu.org>
bfa2bd9e 29034
29035 * include/grub/script.h: Include <grub/parser.h> and
29036 "grub_script.tab.h".
29037 (struct grub_lexer_param): New struct.
29038 (struct grub_parser_param): Likewise.
29039 (grub_script_create_arglist): Pass the state in an argument.
29040 (grub_script_add_arglist): Likewise.
29041 (grub_script_create_cmdline): Likewise.
29042 (grub_script_create_cmdblock): Likewise.
29043 (grub_script_create_cmdif): Likewise.
29044 (grub_script_create_cmdmenu): Likewise.
29045 (grub_script_add_cmd): Likewise.
29046 (grub_script_arg_add): Likewise.
29047 (grub_script_lexer_ref): Likewise.
29048 (grub_script_lexer_deref): Likewise.
29049 (grub_script_lexer_record_start): Likewise.
29050 (grub_script_lexer_record_stop): Likewise.
29051 (grub_script_mem_record): Likewise.
29052 (grub_script_mem_record_stop): Likewise.
29053 (grub_script_malloc): Likewise.
29054 (grub_script_yylex): Likewise.
29055 (grub_script_yyparse): Likewise.
29056 (grub_script_yyerror): Likewise.
29057 (grub_script_yylex): Likewise.
29058 (grub_script_lexer_init): Return the state.
29059
29060 * normal/lexer.c (grub_script_lexer_state): Removed variable.
29061 (grub_script_lexer_done): Likewise.
29062 (grub_script_lexer_getline): Likewise.
29063 (grub_script_lexer_refs): Likewise.
29064 (script): Likewise.
29065 (newscript): Likewise.
29066 (record): Likewise.
29067 (recording): Likewise.
29068 (recordpos): Likewise.
29069 (recordlen): Likewise.
29070 (grub_script_lexer_init): Return the state instead of setting
29071 global variables.
29072 (grub_script_lexer_ref): Use the newly added argument for state
29073 instead of globals.
29074 (grub_script_lexer_deref): Likewise.
29075 (grub_script_lexer_record_start): Likewise.
29076 (grub_script_lexer_record_stop): Likewise.
29077 (recordchar): Likewise.
29078 (nextchar): Likewise.
29079 (grub_script_yylex2): Likewise.
29080 (grub_script_yylex): Likewise.
29081 (grub_script_yyerror): Likewise.
29082
29083 * normal/parser.y (func_mem): Removed variable.
29084 (menu_entry): Likewise.
29085 (err): Likewise.
29086 (%lex-param): New parser option.
29087 (%parse-param): Likewise.
29088 (script): Always return the AST.
29089 (argument): Pass the state around.
29090 (arguments): Likewise.
29091 (grubcmd): Likewise.
29092 (commands): Likewise.
29093 (function): Likewise.
29094 (menuentry): Likewise.
29095 (if_statement): Likewise.
29096 (if): Likewise.
29097
29098 * normal/script.c (grub_script_memused): Removed variable.
29099 (grub_script_parsed): Likewise.
29100 (grub_script_malloc): Added a state argument. Use that instead of
29101 global variables.
29102 (grub_script_mem_record): Likewise.
29103 (grub_script_mem_record_stop): Likewise.
29104 (grub_script_arg_add): Likewise.
29105 (grub_script_add_arglist): Likewise.
29106 (grub_script_create_cmdline): Likewise.
29107 (grub_script_create_cmdif): Likewise.
29108 (grub_script_create_cmdmenu): Likewise.
29109 (grub_script_add_cmd): Likewise.
29110 (grub_script_parse): Setup the state before calling the parser.
f19dbdb7 29111
e2a8c904 291122006-04-16 Marco Gerards <marco@gnu.org>
6de2ee99 29113
29114 * normal/command.c (grub_command_init): Remove the title command.
29115
29116 * normal/lexer.c (grub_script_yylex): Renamed from this...
29117 (grub_script_yylex2): ... to this.
29118 (grub_script_yylex): New function. Temporary
29119 introduced to filter some tokens.
29120 (grub_script_yyerror): Print a newline.
29121
29122 * normal/main.c (read_config_file): Output information about the
29123 lines that contain errors. Wait for a key after all lines have
29124 been processed. Don't return an empty menu.
29125
29126 * normal/parser.y (func_mem): Don't initialize.
29127 (menu_entry): Likewise.
29128 (err): New variable.
29129 (script): Don't return anything when an error was encountered.
29130 (ws, returns): Removed rules.
29131 (argument): Disabled concatenated variable support.
29132 (arguments): Remove explicit separators.
29133 (grubcmd): Likewise.
29134 (function): Likewise.
29135 (menuentry): Likewise.
29136 (if): Likewise.
29137 (commands): Likewise. Add error handling.
29138
29139 * normal/script.c (grub_script_create_cmdline): If
29140 `grub_script_parsed' is 0, assume the parser encountered an error.
29141
c9a86192 291422006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
29143
29144 * configure.ac: Add support for EFI. Fix the typo
29145 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
29146
70f3b243 291472006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
29148
29149 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
29150 foreign multibyte characters should be shown correctly.
29151
65f201ad 291522006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
29153
29154 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
29155 calculation.
29156 (read_config_file): Made it to close file before returning.
29157
b4b93674 291582006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
29159
29160 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
29161 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
29162 video/i386/pc/vbefill.c.
29163
29164 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
29165 video/i386/pc/vbefill.c.
29166
29167 * include/grub/video.h (grub_video_blit_format): New enum.
29168 (grub_video_mode_info): Added new member blit_format.
29169 (grub_video_get_blit_format): New function prototype.
29170
29171 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
29172 function prototype.
29173 (grub_video_vbe_map_rgb): Likewise.
29174 (grub_video_vbe_unmap_color): Likewise.
29175
29176 * include/grub/i386/pc/vbeblit.h: New file.
29177
29178 * include/grub/i386/pc/vbefill.h: New file.
29179
29180 * video/video.c (grub_video_get_blit_format): New function.
29181 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
29182 (grub_video_vbe_map_rgb): Likewise.
29183 (grub_video_vbe_unmap_color): Likewise.
29184
29185 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
29186 optimized fills.
29187 (grub_video_vbe_blit_render_target): Changed to use more optimized
29188 blits.
29189 (grub_video_vbe_setup): Added detection for optimized settings.
29190 (grub_video_vbe_create_render_target): Likewise.
29191
29192 * video/i386/pc/vbeblit.c: New file.
29193
29194 * video/i386/pc/vbefill.c: New file.
29195
c2379b9c 291962006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
29197
29198 * font/manager.c (grub_font_get_glyph): Removed font fixup from
29199 here...
29200
29201 * util/unifont2pff.rb: ... and moved it to here. Improved argument
29202 parsing to support both hex and dec ranges. If filename was missing
29203 show usage information.
29204
bd0d7896 292052006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
29206
29207 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
29208 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
29209
29210 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
29211 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
29212 (video_mod_SOURCES): Added.
29213 (video_mod_CFLAGS): Likewise.
29214 (video_mod_LDFLAGS): Likewise.
29215 (gfxterm_mod_SOURCES): Likewise.
29216 (gfxterm_mod_CFLAGS): Likewise.
29217 (gfxterm_mod_LDFLAGS): Likewise.
29218 (videotest_mod_SOURCES): Likewise.
29219 (videotest_mod_CFLAGS): Likewise.
29220 (videotest_mod_LDFLAGS): Likewise.
29221 (vesafb_mod_SOURCES): Removed.
29222 (vesafb_mod_CFLAGS): Likewise.
29223 (vesafb_mod_LDFLAGS): Likewise.
29224 (vga_mod_SOURCES): Likewise.
29225 (vga_mod_CFLAGS): Likewise.
29226 (vga_mod_LDFLAGS): Likewise.
29227
29228 * commands/videotest.c: New file.
29229
29230 * font/manager.c (fill_with_default_glyph): Modified to use
29231 grub_font_glyph.
29232 (grub_font_get_glyph): Likewise.
29233 (fontmanager): Renamed from this...
29234 (font_manager): ... to this.
29235
29236 * include/grub/font.h (grub_font_glyph): Added new structure.
29237 (grub_font_get_glyph): Modified to use grub_font_glyph.
29238
29239 * include/grub/misc.h (grub_abs): Added as inline function.
29240
29241 * include/grub/video.h: New file.
29242
29243 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
29244 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
29245 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
29246 (grub_vbe_get_controller_info): Renamed from this...
29247 (grub_vbe_bios_get_controller_info): ... to this.
29248 (grub_vbe_get_mode_info): Renamed from this...
29249 (grub_vbe_bios_get_mode_info): ... to this.
29250 (grub_vbe_set_mode): Renamed from this...
29251 (grub_vbe_bios_set_mode): ... to this.
29252 (grub_vbe_get_mode): Renamed from this...
29253 (grub_vbe_bios_get_mode): ... to this.
29254 (grub_vbe_set_memory_window): Renamed from this...
29255 (grub_vbe_bios_set_memory_window): ... to this.
29256 (grub_vbe_get_memory_window): Renamed from this...
29257 (grub_vbe_bios_get_memory_window): ... to this.
29258 (grub_vbe_set_scanline_length): Renamed from this...
29259 (grub_vbe_set_scanline_length): ... to this.
29260 (grub_vbe_get_scanline_length): Renamed from this...
29261 (grub_vbe_bios_get_scanline_length): ... to this.
29262 (grub_vbe_set_display_start): Renamed from this...
29263 (grub_vbe_bios_set_display_start): ... to this.
29264 (grub_vbe_get_display_start): Renamed from this...
29265 (grub_vbe_bios_get_display_start): ... to this.
29266 (grub_vbe_set_palette_data): Renamed from this...
29267 (grub_vbe_bios_set_palette_data): ... to this.
29268 (grub_vbe_set_pixel_rgb): Removed.
29269 (grub_vbe_set_pixel_index): Likewise.
29270
29271 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
29272 from this...
29273 (grub_vbe_bios_get_controller_info): ... to this.
29274 (grub_vbe_get_mode_info): Renamed from this...
29275 (grub_vbe_bios_get_mode_info): ... to this.
29276 (grub_vbe_set_mode): Renamed from this...
29277 (grub_vbe_bios_set_mode): ... to this.
29278 (grub_vbe_get_mode): Renamed from this...
29279 (grub_vbe_bios_get_mode): ... to this.
29280 (grub_vbe_set_memory_window): Renamed from this...
29281 (grub_vbe_bios_set_memory_window): ... to this.
29282 (grub_vbe_get_memory_window): Renamed from this...
29283 (grub_vbe_bios_get_memory_window): ... to this.
29284 (grub_vbe_set_scanline_length): Renamed from this...
29285 (grub_vbe_set_scanline_length): ... to this.
29286 (grub_vbe_get_scanline_length): Renamed from this...
29287 (grub_vbe_bios_get_scanline_length): ... to this.
29288 (grub_vbe_set_display_start): Renamed from this...
29289 (grub_vbe_bios_set_display_start): ... to this.
29290 (grub_vbe_get_display_start): Renamed from this...
29291 (grub_vbe_bios_get_display_start): ... to this.
29292 (grub_vbe_set_palette_data): Renamed from this...
29293 (grub_vbe_bios_set_palette_data): ... to this.
29294 (grub_vbe_bios_get_controller_info): Fixed problem with registers
29295 getting corrupted after calling it. Added more pushes and pops.
29296 (grub_vbe_bios_set_mode): Likewise.
29297 (grub_vbe_bios_get_mode): Likewise.
29298 (grub_vbe_bios_get_memory_window): Likewise.
29299 (grub_vbe_bios_set_scanline_length): Likewise.
29300 (grub_vbe_bios_get_scanline_length): Likewise.
29301 (grub_vbe_bios_get_display_start): Likewise.
29302 (grub_vbe_bios_set_palette_data): Likewise.
29303
29304 * normal/cmdline.c (cl_set_pos): Refresh the screen.
29305 (cl_insert): Likewise.
29306 (cl_delete): Likewise.
29307
29308 * term/gfxterm.c: New file.
29309
29310 * term/i386/pc/vesafb.c: Removed file.
29311
29312 * video/video.c: New file.
29313
29314 * video/i386/pc/vbe.c (real2pm): Added new function.
29315 (grub_video_vbe_draw_pixel): Likewise.
29316 (grub_video_vbe_get_video_ptr): Likewise.
29317 (grub_video_vbe_get_pixel): Likewise
29318 (grub_video_vbe_init): Likewise.
29319 (grub_video_vbe_fini): Likewise.
29320 (grub_video_vbe_setup): Likewise.
29321 (grub_video_vbe_get_info): Likewise.
29322 (grub_video_vbe_set_palette): Likewise.
29323 (grub_video_vbe_get_palette): Likewise.
29324 (grub_video_vbe_set_viewport): Likewise.
29325 (grub_video_vbe_get_viewport): Likewise.
29326 (grub_video_vbe_map_color): Likewise.
29327 (grub_video_vbe_map_rgb): Likewise.
29328 (grub_video_vbe_map_rgba): Likewise.
29329 (grub_video_vbe_unmap_color): Likewise.
29330 (grub_video_vbe_fill_rect): Likewise.
29331 (grub_video_vbe_blit_glyph): Likewise.
29332 (grub_video_vbe_blit_bitmap): Likewise.
29333 (grub_video_vbe_blit_render_target): Likewise.
29334 (grub_video_vbe_scroll): Likewise.
29335 (grub_video_vbe_swap_buffers): Likewise.
29336 (grub_video_vbe_create_render_target): Likewise.
29337 (grub_video_vbe_delete_render_target): Likewise.
29338 (grub_video_vbe_set_active_render_target): Likewise.
29339 (grub_vbe_set_pixel_rgb): Remove function.
29340 (grub_vbe_set_pixel_index): Likewise.
29341 (index_color_mode): Remove static variable.
29342 (active_mode): Likewise.
29343 (framebuffer): Likewise.
29344 (bytes_per_scan_line): Likewise.
29345 (grub_video_vbe_adapter): Added new static variable.
29346 (framebuffer): Likewise.
29347 (render_target): Likewise.
29348 (initial_mode): Likewise.
29349 (mode_in_use): Likewise.
29350 (mode_list): Likewise.
29351
5f97350b 293522006-03-10 Marco Gerards <marco@gnu.org>
29353
29354 * configure.ac (AC_INIT): Bumped to 1.93.
29355
29356 * DISTLIST: Added `include/grub/hfs.h'.
29357
a3c5c6f8 293582006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
29359
29360 * boot/i386/pc/boot.S (general_error): Before looping, try INT
29361 18H, which might help the BIOS falling back to next boot media.
29362
6de53d26 293632006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
29364
29365 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
29366 Poe Chen <poe.poechen@gmail.com>.
29367
77c4a393 293682006-01-17 Marco Gerards <marco@gnu.org>
29369
29370 * include/grub/normal.h: Include <grub/script.h>.
29371 (grub_command_list): Removed struct.
29372 (grub_command_list_t): Removed type.
29373 (grub_menu_entry): Remove members `num' and `command_list'. Add
29374 members `commands' and `sourcecode'.
29375 * include/grub/script.h: Add inclusion guards.
29376 (grub_script_cmd_menuentry): New struct.
29377 (grub_script_execute_menuentry): New prototype.
29378 (grub_script_lexer_record_start): Likewise.
29379 (grub_script_lexer_record_stop): Likewise.
29380 * normal/execute.c (grub_script_execute_menuentry): New function.
29381 * normal/lexer.c (record, recording, recordpos, recordlen): New
29382 variables.
29383 (grub_script_lexer_record_start): New function.
29384 (grub_script_lexer_record_stop): Likewise.
29385 (recordchar): Likewise.
29386 (nextchar): Likewise.
29387 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
29388 2048 as the buffer size. Add the tokens `menuentry' and `@'.
29389 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
29390 (current_menu): New variable.
29391 (free_menu): Mainly rewritten.
29392 (grub_normal_menu_addentry): New function.
29393 (read_config_file): Rewritten.
29394 * normal/menu.c (run_menu_entry): Mainly rewritten.
fe987087 29395 * normal/menu_entry.c (make_screen): Rewritten the code to insert
77c4a393 29396 the menu entry.
29397 (run): Mainly rewritten.
29398 * normal/parser.y (menu_entry): New variable.
29399 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
29400 (menuentry): New rule.
29401 (command): Add `menuentry'.
29402 (if_statement): Allow additional returns before `fi'.
29403 * normal/script.c (grub_script_create_cmdmenu): New function.
29404
144f1f98 294052006-01-03 Marco Gerards <marco@gnu.org>
29406
29407 * INSTALL: GNU Bison is required.
29408 * configure.ac: Rewritten the test to detect Bison.
29409 * Makefile.in (YACC): New variable. Reported by Xun Sun
29410 <xun.sun.cn@gmail.com>.
29411
af4b2d89 294122006-01-03 Marco Gerards <marco@gnu.org>
29413
29414 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
29415 the HFS+ filesystem to filesystem blocks.
29416 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
29417 GCC warning is silenced.
29418
15643b71 294192006-01-03 Marco Gerards <marco@gnu.org>
29420
29421 * partmap/apple.c (apple_partition_map_iterate): Convert the data
29422 read from disk from big endian to host byte order.
29423
00905879 294242006-01-03 Hollis Blanchard <hollis@penguinppc.org>
29425
29426 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
29427 documentation.
29428 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
29429 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
29430 embedded HFS+ filesystem.
29431 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
29432 (grub_hfs_sblock): Move from here...
29433 * include/grub/hfs.h: To here... New file.
29434 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
29435 documentation.
29436 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
29437 New macros.
29438 (grub_hfsplus_volheader): Change type of member `magic' to
29439 `grub_uint16_t'.
29440 (grub_hfsplus_data): Add new member `embedded_offset'.
29441 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
29442 returned block.
29443 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
29444 Calculate the offset.
29445
8899bc3e 294462005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29447
29448 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
29449 Removed.
29450 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
29451
ae8c0277 294522005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29453
29454 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
29455 ENV->NAME is NULL after allocating ENV->VALUE.
29456
07084456 294572005-12-25 Marco Gerards <marco@gnu.org>
29458
29459 * kern/env.c (grub_env_set): Rewritten the error handling code.
29460
4750f5f1 294612005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29462
29463 * geninit.sh: Made more robust, and more portable.
29464
50214199 294652005-12-25 Marco Gerards <marco@gnu.org>
29466
29467 Add support for Apple HFS+ filesystems.
f19dbdb7 29468
50214199 29469 * fs/hfsplus.c: New file.
29470
29471 * DISTLIST: Added `fs/hfsplus.c'.
29472
29473 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
29474 (hfsplus_mod_SOURCES): New variable.
29475 (hfsplus_mod_CFLAGS): Likewise.
29476 (hfsplus_mod_LDFLAGS): Likewise.
29477 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
29478 (grub_setup_SOURCES): Likewise.
29479 (grub_mkdevicemap_SOURCES): Likewise.
29480 (grub_emu_SOURCES): Likewise.
29481 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29482
29483 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
29484
29485 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
29486
befaed6c 294872005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
29488
29489 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
29490 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
29491 include/grub/parser.h, include/grub/script.h, kern/parser.c,
29492 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
29493 normal/lexer.c, normal/parser.y, normal/script.c, and
29494 partmap/gpt.c.
29495 Removed kern/sparc64/cache.c.
29496
29497 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
29498 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
29499 grub_emu_init.c.
29500
29501 * configure.ac (AC_INIT): Bumped to 1.92.
29502
6a124103 295032005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
29504
29505 * kern/err.c (grub_error_push): Added new function to support error
29506 stacks.
29507 (grub_error_pop): Likewise.
29508 (grub_error_stack_items): New local variable to support error stacks.
29509 (grub_error_stack_pos): Likewise.
29510 (grub_error_stack_assert): Likewise.
29511 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
29512 stack depth.
29513 (grub_print_error): Added support to print errors from error stack.
29514
29515 * include/grub/err.h (grub_error_push): Added function prototype.
29516 (grub_error_pop): Likewise.
29517
be973c1b 295182005-12-09 Hollis Blanchard <hollis@penguinppc.org>
29519
29520 * configure.ac: Accept `powerpc64' as host_cpu.
29521 (amd64): Rename to `biarch32'.
29522
29523 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
29524 non-cacheline-aligned addresses.
29525
29526 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
29527 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
29528 if `size' is non-zero.
29529
b04216ab 295302005-12-03 Marco Gerards <mgerards@xs4all.nl>
29531
29532 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
29533 and `cd' to make sure the filename is not prefixed with a
29534 directory name.
29535 (pkgdata_MODULES): Add `gpt.mod'.
29536 (gpt_mod_SOURCES): New variable.
29537 (gpt_mod_CFLAGS): Likewise.
29538 (gpt_mod_LDFLAGS): Likewise.
29539
29540 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
29541
29542 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
29543 New macro.
29544
29545 * partmap/gpt.c: New file.
29546
29547 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
29548 GPT partition map is detected.
29549
41730ed9 295502005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
29551
29552 * commands/i386/pc/play.c: New file.
29553 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
29554 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
29555 macros.
f19dbdb7 29556
95dc3643 295572005-11-27 Marco Gerards <mgerards@xs4all.nl>
29558
29559 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
29560 ((unused))' to silence gcc warning.
29561
1569ec51 295622005-11-26 Hollis Blanchard <hollis@penguinppc.org>
29563
29564 * configure.ac: Correct `AC_PROG_YACC' test.
29565
9abde152 295662005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29567
29568 * util/powerpc/ieee1275/grub-install.in: Run the mount point
29569 check before installing files.
29570
44b83271 295712005-11-22 Mike Small <smallm@panix.com>
29572
29573 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
29574 number regex so multidigit numbers are recognized correctly.
29575
295762005-11-22 Mike Small <smallm@panix.com>
29577
29578 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
29579 debugging message before attempting to claim memory.
29580 (grub_rescue_cmd_initrd): Add a claim debugging message and try
29581 multiple addresses in case of failure.
29582
9c12956b 295832005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29584
29585 * term/tparm.c (get_space): Remove empty `if' statement.
29586
29587 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
29588
29589 * kern/parser.c (check_varstate): Rename `state' to 's'.
29590
aeaf81d9 295912005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29592
29593 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
29594 variable definitions to the beginning of each function. Sort stack
29595 variables by size.
29596 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
29597 `buf' argument to `char *'.
29598
79bbb63f 295992005-11-22 Hollis Blanchard <hollis@penguinppc.org>
29600
29601 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
29602 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 29603 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
79bbb63f 29604 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29605 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29606 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29607 configfile.mod, search.mod, gzio.mod and test.mod.
29608 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29609 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29610 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29611 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29612 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29613 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29614 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29615 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29616 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29617 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29618 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29619 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29620 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29621 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29622 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29623 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29624 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29625 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29626 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29627 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29628 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29629 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29630 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
29631
29632 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
29633 `grep --include'.
29634 (pkgdata_MODULES): Add test.mod.
29635
233b1628 296362005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29637
29638 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
29639 appending to variables with "+=".
29640 (PModule): Use full pathname to generate *.lst filenames.
29641
29642 * Makefile.in: Fixed list rules moved from genmk.rb.
29643 (.DELETE_ON_ERROR): New special target.
29644 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
29645
29646 * conf/i386-pc.rmk: Include conf/common.mk.
29647 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
fe6b695a 29648 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
233b1628 29649 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
29650 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
29651 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
29652 configfile.mod, search.mod, gzio.mod and test.mod.
29653 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
29654 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
29655 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
29656 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
29657 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
29658 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
29659 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
29660 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
29661 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
29662 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
29663 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
29664 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
29665 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
29666 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
29667 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
29668 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
29669 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
29670 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
29671 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
29672 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
29673 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
29674 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
29675 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
29676 here...
29677 * conf/common.rmk: ... to here. New file.
29678
29679 * conf/common.mk: New file.
29680
16f820c8 296812005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
29682
29683 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
29684 (grub_script.tab.c): ... here.
29685
29686 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
29687 (grub_script.tab.c): ... here.
29688
29689 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
29690 (grub_script.tab.c): ... here.
29691
29692 * normal/command.c (grub_command_find): Fixed a memory leak of
29693 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
29694
63ba1554 296952005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29696
29697 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
29698 "@" which marks the start of a comment on ARM.
29699 (VARIABLE): Likewise.
29700
7f67dc13 297012005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
29702
79bbb63f 29703 Add support for Linux/ADFS partition tables.
7f67dc13 29704
29705 * partmap/acorn.c: New file.
29706
29707 * include/grub/acorn_filecore.h: Likewise.
29708
29709 * DISTLIST: Added `partmap/acorn.c' and
29710 `include/grub/acorn_filecore.h'.
f19dbdb7 29711
7f67dc13 29712 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29713 `partmap/acorn.c'.
29714 (pkgdata_MODULES): Add `acorn.mod'.
29715 (acorn_mod_SOURCES): New variable.
29716 (acorn_mod_CFLAGS): Likewise.
29717
29718 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29719 `partmap/acorn.c'.
29720 (pkgdata_MODULES): Add `acorn.mod'.
29721 (acorn_mod_SOURCES): New variable.
29722 (acorn_mod_CFLAGS): Likewise.
29723
29724 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
29725 (pkgdata_MODULES): Add `acorn.mod'.
29726 (acorn_mod_SOURCES): New variable.
29727 (acorn_mod_CFLAGS): Likewise.
29728 (acorn_mod_LDFLAGS): Likewise.
29729
29730 * include/types.h (grub_disk_addr_t): New typedef.
29731
6d099807 297322005-11-13 Marco Gerards <mgerards@xs4all.nl>
29733
29734 * geninit.sh: New file.
29735
29736 * geninitheader.sh: Likewise.
29737
29738 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
29739 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
29740 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
29741 * commands/configfile.c (grub_configfile_init)
29742 (grub_configfile_fini): Likewise.
29743 * commands/default.c (grub_default_init, grub_default_fini):
29744 Likewise.
29745 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
29746 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
29747 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
29748 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
29749 Likewise.
29750 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
29751 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
29752 Likewise.
29753 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
fe6b695a 29754 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
6d099807 29755 Likewise.
29756 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
29757 Likewise.
fe6b695a 29758 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
6d099807 29759 Likewise.
29760 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
29761 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
29762 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
29763 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
29764 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
29765 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
29766 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
29767 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
29768 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
29769 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
29770 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
29771 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
29772 * partmap/amiga.c (grub_amiga_partition_map_init)
29773 (grub_amiga_partition_map_fini): Likewise.
29774 * partmap/apple.c (grub_apple_partition_map_init)
29775 (grub_apple_partition_map_fini): Likewise.
29776 * partmap/pc.c (grub_pc_partition_map_init)
29777 (grub_pc_partition_map_fini): Likewise.
29778 * partmap/sun.c (grub_sun_partition_map_init,
29779 grub_sun_partition_map_fini): Likewise.
29780 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
29781 Likewise.
29782
29783 * util/grub-emu.c: Include <grub_modules_init.h>.
29784 (main): Don't initialize and de-initialize any modules directly,
29785 use `grub_init_all' and `grub_fini_all' instead.
29786
29787 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
29788 `grub_vesafb_mod_init'.
29789 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
29790 all users.
29791 * term/i386/pc/vga.c (grub_vga_init): Renamed to
29792 `grub_vga_mod_init'. Updated all users.
29793 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
f19dbdb7 29794
6d099807 29795 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
29796 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
29797 rules.
29798
29799 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
29800 Generate a function to initialize the module in utilities.
29801 Updated all callers.
29802 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
29803 initialize the module in utilities. Updated all callers.
29804
9046bcf0 298052005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29806
29807 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
29808 escape sequence and a literal ^L to clear the screen.
29809
29810 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
29811 when returning from Open Firmware.
29812
d13ea639 298132005-11-09 Hollis Blanchard <hollis@penguinppc.org>
29814
29815 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
29816 (grub_ofconsole_height): Likewise.
29817 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
29818 manually insert a '\n'.
29819 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
29820 `grub_ofconsole_height'. Return early if these are already set.
29821
a8fcf206 298222005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
29823
29824 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
29825 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
29826 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
29827 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
29828 and `normal/script.c'.
29829 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29830 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29831 (test_mod_SOURCES): New variable.
29832 (test_mod_CFLAGS): Likewise.
29833 (test_mod_LDFLAGS): Likewise.
29834 (pkgdata_MODULES): Add `test.mod'.
29835 (grub_script.tab.c): New rule.
29836 (grub_script.tab.h): Likewise.
29837
b6b32745 298382005-11-07 Marco Gerards <mgerards@xs4all.nl>
29839
29840 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
29841 `commands/test.c', `normal/execute.c', `normal/lexer.c',
29842 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29843 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29844 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
29845 (test_mod_SOURCES): New variable.
29846 (test_mod_CFLAGS): Likewise.
29847 (pkgdata_MODULES): Add `test.mod'.
29848 (grub_script.tab.c): New rule.
29849 (grub_script.tab.h): Likewise.
29850
daac212a 298512005-11-06 Marco Gerards <mgerards@xs4all.nl>
29852
29853 Add initial scripting support.
29854
29855 * commands/test.c: New file.
29856 * include/grub/script.h: Likewise.
29857 * normal/execute.c: Likewise.
29858 * normal/function.c: Likewise.
29859 * normal/lexer.c: Likewise.
29860 * normal/parser.y: Likewise.
29861 * normal/script.c: Likewise.
29862
29863 * configure.ac: Add `AC_PROG_YACC' test.
f19dbdb7 29864
daac212a 29865 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
29866 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
29867 `normal/function.c' and `normal/script.c'.
29868 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
29869 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
b6b32745 29870 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
29871 variables.
daac212a 29872 (pkgdata_MODULES): Add `test.mod'.
29873 (grub_script.tab.c): New rule.
29874 (grub_script.tab.h): Likewise.
29875
29876 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
29877
29878 * include/grub/normal.h (grub_test_init): New prototype.
29879 (grub_test_fini): Likewise.
f19dbdb7 29880
daac212a 29881 * normal/command.c: Include <grub/script.h>.
29882 (grub_command_execute): Rewritten.
f19dbdb7 29883
daac212a 29884 * util/grub-emu.c (main): Call `grub_test_init' and
29885 `grub_test_fini'.
29886
77500b2b 298872005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29888
29889 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
29890 to 0.
29891 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
29892 there are no pending characters.
29893
e45deb9e 298942005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29895
29896 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
29897 `grub_strndup' to drop device arguments. Replace unnecessary
29898 `grub_strndup' with `grub_strdup'.
29899
4ce32619 299002005-11-03 Hollis Blanchard <hollis@penguinppc.org>
29901
29902 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
29903 `debug' environment variable has been set.
29904
299052005-11-02 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 29906
4ce32619 29907 * Makefile.in (install-local): Use $(DATA).
29908 (uninstall): Likewise.
29909 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
29910 (sbin_UTILITIES): ... to here.
29911 (sbin_SCRIPTS): New variable.
29912 (grub_install_SOURCES): New variable.
29913 * util/powerpc/ieee1275/grub-install.in: New file.
29914 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
29915 variable.
29916 (add_segments): Call `grub_util_get_path'.
29917
25fe6f03 299182005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
29919
29920 From Timothy Baldwin:
29921 * commands/ls.c (grub_ls_list_files): Close FILE with
29922 grub_file_close.
29923 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
29924
04ccf3ec 299252005-10-24 Marco Gerards <mgerards@xs4all.nl>
29926
29927 * include/grub/parser.h: New file.
29928
29929 * kern/parser.c: Likewise.
29930
29931 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
29932 (grub_setup_SOURCES): Likewise.
29933 (grub_probefs_SOURCES): Likewise.
29934 (grub_emu_SOURCES): Likewise.
29935 (kernel_img_HEADERS): Add `parser.h'.
29936
29937 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
29938 (grub_emu_SOURCES): Add `kern/parser.c'.
29939 (grubof_SOURCES): Likewise.
29940
29941 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
29942 (grubof_SOURCES): Add `kern/parser.c'.
29943
29944 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
29945
29946 * kern/misc.c (grub_split_cmdline): Removed function.
29947
29948 * kern/rescue.c: Include <grub/parser.h>.
29949 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
29950 of `grub_split_cmdline'.
29951
29952 * normal/command.c: Include <grub/parser.h>.
29953 (grub_command_execute): Use `grub_parser_split_cmdline' instead
29954 of `grub_split_cmdline'.
29955
29956 * normal/completion.c: Include <grub/parser.h>.
29957 (cmdline_state): New variable.
29958 (iterate_dir): End the filename with a quote depending on the
29959 command line state.
29960 (get_state): new function.
29961 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
29962 split the arguments and determine the current argument. When the
29963 argument string is not quoted, escape all spaces.
29964
6d8f4b0e 299652005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
29966
29967 * normal/sparc64/setjmp.S: New file.
29968
15cf03ed 299692005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
29970
29971 * include/grub/sparc64/libgcc.h: New file.
29972 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
29973 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
29974 normal/sparc64/setjmp.c.
29975
03e8661a 299762005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
29977
29978 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
29979 * kern/sparc64/cache.S: New file.
29980 * kern/sparc64/cache.c: Removed.
29981 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
29982 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
29983 -mtune=ultrasparc.
29984 (COMMON_LDFLAGS): Add -melf64_sparc.
29985 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
29986 (grubof_SOURCES): Use cache.S instead of cache.c.
29987 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
29988 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
29989 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
29990 commented though.
29991 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
29992 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
29993 (linux_mod_CFLAGS): Commented out.
29994 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
29995 out because module isn't built.
29996 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
29997 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
29998 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
29999 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
30000 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
30001 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30002 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30003 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
30004 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
30005 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
30006 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30007 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30008 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
30009 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
30010
34eeec8a 300112005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
30012
30013 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
30014 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
30015 longer, because HFS should not be used on PC.
30016
708367a3 300172005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30018
30019 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
30020 consistently within the loop.
30021
6fa1251a 300222005-10-15 Marco Gerards <mgerards@xs4all.nl>
30023
30024 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
30025 directory can not be read.
30026
4801580b 300272005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30028
30029 * configure.ac (AC_INIT): Increase the version number to 1.91.
30030
30031 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
30032 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
30033 term/i386/pc/serial.c.
30034
219ad426 300352005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30036
30037 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
30038 file size must be permitted.
30039
30040 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
30041 between %ah and %al.
30042
688e5699 300432005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
30044
30045 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
30046 grub_uint64_t.
30047 Call the hook with a NUL-terminated filename.
30048 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
30049 grub_cpu_to_be32.
30050
30051 * kern/term.c (cursor_state): New variable.
30052 (grub_term_set_current): Reset the cursor state on a new
30053 terminal.
30054 (grub_setcursor): Rewritten to use CURSOR_STATE.
30055 (grub_getcursor): New function.
30056
30057 * include/grub/term.h (grub_getcursor): New prototype.
30058
30059 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
30060 integers on ARM. Reported by Timothy Baldwin
30061 <T.E.Baldwin99@members.leeds.ac.uk>.
30062
bb34586c 300632005-10-11 Marco Gerards <mgerards@xs4all.nl>
30064
30065 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
30066 allocated.
30067 (grub_sfs_dir): Likewise.
30068
9a909877 300692005-10-09 Marco Gerards <mgerards@xs4all.nl>
30070
30071 Add support for the SFS filesystem.
30072
30073 * fs/sfs.c: New file.
30074
30075 * DISTLIST: Added `fs/sfs.c'.
30076
30077 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
30078 (grub_probefs_SOURCES): Likewise.
30079 (grub_emu_SOURCES): Likewise.
30080 (pkgdata_MODULES): Add `sfs.mod'.
30081 (sfs_mod_SOURCES): New variable.
30082 (sfs_mod_CFLAGS): Likewise.
30083 (sfs_mod_LDFLAGS): Likewise.
30084
30085 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
30086 (pkgdata_MODULES): Add `sfs.mod'.
30087 (sfs_mod_SOURCES): New variable.
30088 (sfs_mod_CFLAGS): Likewise.
30089
30090 * util/grub-emu.c (main): Call `grub_sfs_init' and
30091 `grub_sfs_fini'.
30092
30093 * include/grub/fs.h (grub_sfs_init): New prototype.
30094 (grub_sfs_fini): Likewise.
30095
57bdbde3 300962005-10-07 Marco Gerards <mgerards@xs4all.nl>
30097
30098 Add support for the AFFS filesystem.
30099
30100 * fs/affs.c: New file.
30101
30102 * DISTLIST: Added `fs/affs.c'.
30103
30104 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
30105 (grub_probefs_SOURCES): Likewise.
30106 (grub_emu_SOURCES): Likewise.
30107 (pkgdata_MODULES): Add `affs.mod'.
30108 (affs_mod_SOURCES): New variable.
30109 (affs_mod_CFLAGS): Likewise.
30110 (affs_mod_LDFLAGS): Likewise.
30111
30112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
30113 (pkgdata_MODULES): Add `affs.mod'.
30114 (affs_mod_SOURCES): New variable.
30115 (affs_mod_CFLAGS): Likewise.
30116
30117 * util/grub-emu.c (main): Call `grub_affs_init' and
30118 `grub_affs_fini'.
30119
30120 * include/grub/fs.h (grub_affs_init): New prototype.
30121 (grub_affs_fini): Likewise.
30122
047b67e0 301232005-10-01 Marco Gerards <mgerards@xs4all.nl>
30124
30125 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
30126
59b8208a 301272005-10-01 Marco Gerards <mgerards@xs4all.nl>
30128
30129 * configure.ac: Accept `x86_64' as host_cpu. In that case add
30130 `-m32' to CFLAGS.
30131
30132 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
30133 linking.
f19dbdb7 30134
59b8208a 30135 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
30136 (COMMON_LDFLAGS): New variable.
30137 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
30138 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
30139 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
30140 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
30141 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
30142 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
30143 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
30144 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
30145 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
30146 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
30147 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30148 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30149 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
30150 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
30151 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
30152 variables.
30153 (normal_mod_ASFLAGS): Add `-m32'.
30154
30155 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
30156 (grub_host_size_t, grub_host_ssize_t): New types.
30157 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
fe6b695a 30158 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
59b8208a 30159 `GRUB_HOST_SIZEOF_VOID_P'.
30160
30161 * include/grub/kernel.h (struct grub_module_header): Type of
30162 member offset changed to `grub_host_off_t'. Type of member size
30163 changed to `grub_host_size_t'.
30164 (struct grub_module_info): Type of member offset changed to
30165 `grub_host_off_t'. Type of member size changed to
30166 `grub_host_size_t'.
30167
b4093103 301682005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
30169
30170 Make GRUB's kernel compliant to Multiboot Specification.
f19dbdb7 30171
b4093103 30172 * kern/i386/pc/startup.S (multiboot_header): New label.
30173 (multiboot_entry): Likewise.
30174 (multiboot_trampoline): Likewise.
30175
30176 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30177 Increased to 0x4A0.
30178
30179 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
30180 put parentheses after a question mark.
30181 [!GRUB_UTIL] (my_mod): New variable.
30182
30183 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
30184
b2499b29 301852005-09-28 Marco Gerards <mgerards@xs4all.nl>
30186
30187 Adds support for the XFS filesystem. Btrees are not supported
30188 yet.
30189
30190 * fs/xfs.c: New file.
30191
30192 * DISTLIST: Added `fs/xfs.c'.
30193
30194 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
30195 (grub_probefs_SOURCES): Likewise.
30196 (grub_emu_SOURCES): Likewise.
30197 (pkgdata_MODULES): Add `xfs.mod'.
30198 (xfs_mod_SOURCES): New variable.
30199 (xfs_mod_CFLAGS): Likewise.
30200
30201 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
30202 (pkgdata_MODULES): Add `xfs.mod'.
30203 (xfs_mod_SOURCES): New variable.
30204 (xfs_mod_CFLAGS): Likewise.
30205
30206 * util/grub-emu.c (main): Call `grub_xfs_init' and
30207 `grub_xfs_fini'.
30208
30209 * include/grub/fs.h (grub_xfs_init): New prototype.
30210 (grub_xfs_fini): Likewise.
30211
f19dbdb7 30212
83d37a62 302132005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
30214
30215 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
30216 color modes, allow greater than 16 colors to be configured as
30217 a default palette.
30218
47d2d65e 302192005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
30220
30221 * normal/completion.c (complete_arguments): Add the qualifier
30222 const into OPTIONS.
30223
30224 From Omniflux <omniflux+lists@omniflux.com>:
30225 * include/grub/terminfo.h: New file.
30226 * include/grub/tparm.h: Likewise.
30227 * include/grub/i386/pc/serial.h: Likewise.
30228 * term/terminfo.c: Likewise.
30229 * term/tparm.c: Likewise.
30230 * term/i386/pc/serial.c: Likewise.
30231 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
30232 serial.mod.
30233 (terminfo_mod_SOURCES): New variable.
30234 (terminfo_mod_CFLAGS): Likewise.
30235 (serial_mod_SOURCES): Likewise.
30236 (serial_mod_CFLAGS): Likewise.
30237
48b671ff 302382005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
30239
30240 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
30241 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
30242 and kern/powerpc/ieee1275/cmain.c, respectively.
30243
30244 * boot/powerpc/ieee1275/crt0.S: Moved to ...
30245 * kern/powerpc/ieee1275/crt0.S: ... here.
30246
30247 * boot/powerpc/ieee1275/cmain.c: Moved to ...
30248 * kern/powerpc/ieee1275/cmain.c: ... here.
f19dbdb7 30249
48b671ff 30250 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
30251 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
30252 instead of boot/powerpc/ieee1275/crt0.S and
30253 boot/powerpc/ieee1275/cmain.c, respectively.
30254
30255 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
30256 sectors. It was not used anyway.
30257
09fc77a7 302582005-08-30 Hollis Blanchard <hollis@penguinppc.org>
30259
30260 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
30261 `unused parameter' warning.
30262
003789c7 302632005-08-30 Hollis Blanchard <hollis@penguinppc.org>
30264
30265 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
30266 function.
30267 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
30268 getcharwidth.
30269
67f44c86 302702005-08-28 Marco Gerards <metgerards@student.han.nl>
30271
30272 * include/grub/normal.h (enum grub_completion_type): Added
30273 `GRUB_COMPLETION_TYPE_ARGUMENT'.
30274
30275 * normal/cmdline.c (print_completion): Handle
30276 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
30277 * normal/menu_entry.c (store_completion): Likewise.
30278
30279 * normal/completion.c (complete_arguments): New function.
30280 (grub_normal_do_completion): Call `complete_arguments' when the
30281 current words start with a dash.
30282
0b5abe02 302832005-08-27 Marco Gerards <metgerards@student.han.nl>
30284
30285 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
30286 `gzio.mod' instead of `io.mod').
30287
d9864ee1 302882005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
30289
30290 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
30291 (DISTDIRS): Added io and video.
30292 Rewrite the search routine to make an output consistently.
30293
30294 * DISTLIST: Added conf/sparc64-ieee1275.mk,
30295 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
30296 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
30297 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
30298 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
30299 util/powerpc/ieee1275/misc.c.
f19dbdb7 30300
d9864ee1 30301 * include/grub/gzio.h: New file.
30302 * io/gzio.c: Likewise.
f19dbdb7 30303
d9864ee1 30304 * kern/file.c (grub_file_close): Call grub_device_close only if
30305 FILE->DEVICE is not NULL.
30306
30307 * include/grub/mm.h [!NULL] (NULL): New macro.
30308
30309 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
30310
30311 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
30312 (pkgdata_MODULES): Added gzio.mod.
30313 (gzio_mod_SOURCES): New variable.
30314 (gzio_mod_CFLAGS): Likewise.
30315
30316 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
30317 (pkgdata_MODULES): Added gzio.mod.
30318 (gzio_mod_SOURCES): New variable.
30319 (gzio_mod_CFLAGS): Likewise.
30320
30321 * commands/cat.c: Include grub/gzio.h.
30322 (grub_cmd_cat): Use grub_gzfile_open instead of
30323 grub_file_open.
f19dbdb7 30324
d9864ee1 30325 * commands/cmp.c: Include grub/gzio.h.
30326 (grub_cmd_cmp): Use grub_gzfile_open instead of
30327 grub_file_open.
30328
30329 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
30330 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
30331 grub_file_open.
30332 (grub_rescue_cmd_module): Likewise.
30333
fa46f4b5 303342005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30335
30336 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
30337 kern/sparc64/ieee1275/init.c because it contains _start.
30338 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
30339
e9211b5d 303402005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
30341
30342 * configure.ac: Add support for sparc64 host with ieee1275
30343 firmware.
30344 * configure: Generated from configure.ac.
30345 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
30346 instead of int.
30347 (grub_ofdisk_read): Likewise.
30348 (grub_ofdisk_open): Use %p to print pointer values, and cast the
30349 pointers as (void *) to remove a warning.
30350 (grub_ofdisk_close): Likewise.
30351 (grub_ofdisk_read): Likewise.
30352 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
30353 returns, so make it return void to remove a warning.
30354 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
30355 Corresponding prototype change.
30356 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
30357 values, and cast the pointers as (void *) to remove a warning.
30358 (grub_mm_dump): Likewise.
30359 * conf/sparc64-ieee1275.mk: New file.
30360 * conf/sparc64-ieee1275.rmk: Likewise.
30361 * include/grub/sparc64/setjmp.h: Likewise.
30362 * include/grub/sparc64/types.h: Likewise.
30363 * include/grub/sparc64/ieee1275/console.h: Likewise.
30364 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
30365 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
30366 * include/grub/sparc64/ieee1275/time.h: Likewise.
30367 * kern/sparc64/cache.c: Likewise.
30368 * kern/sparc64/dl.c: Likewise.
30369 * kern/sparc64/ieee1275/init.c: Likewise.
30370 * kern/sparc64/ieee1275/openfw.c: Likewise.
30371
385c6a92 303722005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
30373
30374 * util/console.c (grub_ncurses_putchar): If C is greater than
30375 0x7f, set C to a question mark.
30376 (grub_ncurses_getcharwidth): New function.
30377 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
30378 getcharwidth.
30379
30380 * normal/menu.c (print_entry): Made aware of Unicode. First,
30381 convert TITLE to UCS-4, and predict the cursor position by
30382 grub_getcharwidth.
30383
30384 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
30385 const to SRC.
30386 * kern/misc.c (grub_utf16_to_utf8): Likewise.
30387
16ccb8b1 303882005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30389
30390 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
30391 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30392 grub_strcat.
30393
30394 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
30395 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
30396 grub_strcpy and grub_strlen. Take it into account that a space
30397 character is inserted as a delimiter.
30398
6a85ce79 303992005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30400
30401 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
fe6b695a 30402 invalid magic in the error.
6a85ce79 30403
30404 * commands/search.c: New file.
f19dbdb7 30405
6a85ce79 30406 * util/grub-emu.c (main): Call grub_search_init and
30407 grub_search_fini.
30408
30409 * kern/rescue.c (grub_rescue_print_disks): Removed.
30410 (grub_rescue_print_devices): New function.
30411 (grub_rescue_cmd_ls): Use grub_device_iterate with
30412 grub_rescue_print_devices instead of grub_disk_dev_iterate with
30413 grub_rescue_print_disks.
30414
30415 * kern/partition.c (grub_partition_iterate): Return the result of
30416 PARTMAP->ITERATE instead of GRUB_ERRNO.
30417
30418 * kern/device.c: Include grub/partition.h.
30419 (grub_device_iterate): New function.
30420
30421 * include/grub/partition.h (grub_partition_iterate): Return int
30422 instead of grub_err_t.
30423
30424 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
30425 prototype.
30426 [GRUB_UTIL] (grub_search_fini): Likewise.
30427
30428 * include/grub/device.h (grub_device_iterate): New prototype.
30429
30430 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30431 commands/search.c.
30432 (pkgdata_MODULES): Added search.mod.
30433 (search_mod_SOURCES): New variable.
30434 (search_mod_CFLAGS): Likewise.
30435
30436 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
30437 (pkgdata_MODULES): Added search.mod.
30438 (search_mod_SOURCES): New variable.
30439 (search_mod_CFLAGS): Likewise.
30440
30441 * commands/ls.c (grub_ls_list_disks): Renamed to ...
30442 (grub_ls_list_devices): ... this, and use grub_device_iterate.
30443 All callers changed.
30444
30445 * DISTLIST: Added commands/search.c.
30446
ef095434 304472005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
30448
30449 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
30450 conversion.
30451 (grub_getcharwidth): New function.
30452
30453 * kern/misc.c (grub_utf8_to_ucs4): New function.
30454
30455 * include/grub/term.h (struct grub_term): Added a new member
30456 "getcharwidth".
30457 (grub_getcharwidth): New prototype.
30458
30459 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
30460
30461 * term/i386/pc/console.c (map_char): New function. Segregated from
30462 grub_console_putchar.
30463 (grub_console_putchar): Use map_char.
30464 (grub_console_getcharwidth): New function.
30465 (grub_console_term): Specified grub_console_getcharwidth as
30466 getcharwidth.
30467
30468 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
30469 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
30470
30471 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
30472 GRUB_ERRNO.
30473 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
30474 on grub_strtoul completely.
30475 (write_char): Declare local variables in the beginning of the
30476 function.
30477 (grub_vesafb_getcharwidth): New function.
30478 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
30479 getcharwidth.
30480
1f0a95e4 304812005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
30482
30483 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
30484 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
30485 commands/i386/pc/vbetest.c.
30486
30487 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
30488 call grub_vbe_get_controller_info again, because the returned
30489 information is volatile.
30490 (grub_vbe_set_video_mode): Mostly rewritten.
30491 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
30492 grub_vbe_status_t correctly.
30493 (grub_vbe_get_video_mode_info): Likewise.
30494 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
30495 several if statements.
30496
30497 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
30498 * commands/i386/pc/vbeinfo.c: ... this.
30499
30500 * commands/i386/pc/vbe_test.c: Renamed to ...
30501 * commands/i386/pc/vbetest.c: ... this.
30502
30503 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
30504 ...
30505 (grub_cmd_vbeinfo): ... this. Save video modes before
30506 iterating. Skip a video mode, if it is not available, not enough
30507 information is given or it is monochrome. Show the memory
30508 model. Leave the interpretation of MODEVAR to grub_strtoul
30509 completely.
30510 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
30511 (GRUB_MOD_FINI): Likewise.
30512
30513 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
30514 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
30515 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
30516 duplicated grub_env_get. Leave the interpretation of MODEVAR to
30517 grub_strtoul completely.
30518 (real2pm): Removed.
30519 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
30520 (GRUB_MOD_FINI): Likewise.
30521
30522 * normal/misc.c: Include grub/mm.h.
30523
30524 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
30525 vbe_list_modes with vbetest.mod and vbeinfo.mod.
30526 (vbe_list_modes_mod_SOURCES): Removed.
30527 (vbe_list_modes_mod_CFLAGS): Likewise.
30528 (vbe_test_mod_SOURCES): Likewise.
30529 (vbe_test_mod_CFLAGS): Likewise.
30530 (vbeinfo_mod_SOURCES): New variable.
30531 (vbeinfo_mod_CFLAGS): Likewise.
30532 (vbetest_mod_SOURCES): Likewise.
30533 (vbetest_mod_CFLAGS): Likewise.
30534
992ffbbe 305352005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
30536
30537 * normal/misc.c: New file.
30538
30539 * DISTLIST: Added normal/misc.c.
f19dbdb7 30540
992ffbbe 30541 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
30542 DISK to HOOK. Call HOOK with DISK.
30543 * partmap/apple.c (apple_partition_map_iterate): Likewise.
30544 * partmap/pc.c (pc_partition_map_iterate): Likewise.
30545 * partmap/sun.c (sun_partition_map_iterate): Likewise.
30546
30547 * normal/menu_entry.c (struct screen): Added a new member
30548 "completion_shown".
30549 (completion_buffer): New global variable.
30550 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
30551 (store_completion): New function.
30552 (complete): Likewise.
30553 (clear_completions): Likewise.
30554 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
30555 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
30556 a tab, call complete.
30557
30558 * normal/completion.c (disk_dev): Removed.
30559 (print_simple_completion): Likewise.
30560 (print_partition_completion): Likewise.
30561 (print_func): New global variable.
30562 (add_completion): Do not take the arguments WHAT or PRINT any
30563 longer. Added a new argument TYPE. Instead of printing directly,
30564 call PRINT_FUNC if not NULL.
30565 All callers changed.
30566 (complete_device): Use a local variable DEV instead of
30567 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
30568 (grub_normal_do_completion): Take a new argument HOOK. Do not
30569 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
30570 empty string, return NULL instead.
30571 All callers changed.
30572
30573 * normal/cmdline.c (print_completion): New function.
30574
30575 * kern/partition.c (grub_partition_iterate): Add an argument DISK
30576 to HOOK.
30577 All callers changed.
30578
30579 * kern/disk.c (grub_print_partinfo): Removed.
30580
30581 * include/grub/partition.h (struct grub_partition_map): Add a new
30582 argument DISK into HOOK of ITERATE.
30583 (grub_partition_iterate): Add a new argument DISK to HOOK.
30584
30585 * include/grub/normal.h (enum grub_completion_type): New enum.
30586 (grub_completion_type_t): New type.
30587 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
30588 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
30589 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
30590 (GRUB_COMPLETION_TYPE_FILE): Likewise.
30591 (grub_normal_do_completion): Added a new argument HOOK.
30592 (grub_normal_print_device_info): New prototype.
30593
30594 * include/grub/disk.h (grub_print_partinfo): Removed.
30595
30596 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
30597 (normal_mod_SOURCES): Likewise.
30598 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30599 (normal_mod_SOURCES): Likewise.
30600
30601 * commands/ls.c (grub_ls_list_disks): Use
30602 grub_normal_print_device_info instead of grub_print_partinfo. Free
30603 PNAME.
30604 (grub_ls_list_files): Use grub_normal_print_device_info instead of
30605 duplicating the code.
30606
0bd41162 306072005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30608
30609 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
f19dbdb7 30610 follow GCS more precisely.
30611 * commands/i386/pc/vbe_test.c: Likewise.
30612 * include/grub/i386/pc/vbe.h: Likewise.
30613 * term/i386/pc/vesafb.c: Likewise.
30614 * video/i386/pc/vbe.c: Likewise.
0bd41162 30615
6323696a 306162005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
30617
30618 * DISTLIST: Added term/i386/pc/vesafb.c
30619 DISTLIST: Added video/i386/pc/vbe.c
30620 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
30621 DISTLIST: Added commands/i386/pc/vbe_test.c.
30622 * commands/i386/pc/vbe_list_modes.c: New file.
30623 * commands/i386/pc/vbe_test.c: Likewise.
30624 * term/i386/pc/vesafb.c: Likewise.
30625 * video/i386/pc/vbe.c: Likewise.
30626 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
30627 (grub_vbe_probe) Added prototype.
30628 (grub_vbe_set_video_mode) Likewise.
30629 (grub_vbe_get_video_mode) Likewise.
30630 (grub_vbe_get_video_mode_info) Likewise.
30631 (grub_vbe_set_pixel_rgb) Likewise.
30632 (grub_vbe_set_pixel_index) Likewise.
30633 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
30634 (pkgdata_MODULES): Added vesafb.mod.
30635 (pkgdata_MODULES): Added vbe_list_modes.mod.
30636 (pkgdata_MODULES): Added vbe_test.mod.
30637 (vbe_mod_SOURCES): Added.
30638 (vbe_mod_CFLAGS): Likewise.
30639 (vesafb_mod_SOURCES): Likewise.
30640 (vesafb_mod_CFLAGS): Likewise.
30641 (vbe_list_modes_mod_SOURCES): Likewise.
30642 (vbe_list_modes_mod_CFLAGS): Likewise.
30643 (vbe_test_mod_SOURCES): Likewise.
30644 (vbe_test_mod_CFLAGS): Likewise.
30645
0a74e62f 306462005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
30647
0a74e62f 30648 * normal/command.c (grub_command_execute): If INTERACTIVE is
30649 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
30650 CMDLINE. Disable the pager if INTERACTIVE is true.
30651 All callers are changed.
30652
30653 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
30654 before reading a config file.
30655 * normal/main.c (read_config_file): Even if a command is not
30656 found, register it if it is within an entry.
30657
30658 * util/grub-emu.c: Include sys/types.h and unistd.h.
30659 (options): Added --hold.
30660 (struct arguments): Added a new member "hold".
30661 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
30662 missing.
30663 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
30664 cleared by a debugger, if it is not zero.
30665
30666 * include/grub/normal.h (grub_command_execute): Add an argument
30667 INTERACTIVE.
30668
e51f85ae 306692005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
30670
30671 * DISTLIST: Added include/grub/i386/pc/vbe.h.
30672
e9c6f39b 306732005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
30674
30675 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
30676 program with another one, because the old one didn't detect a bug
30677 in gcc-3.4. Always use regparm 2, because the new test is still
30678 not enough for gcc-4.0. Someone must investigate a simple test
30679 case which detects a bug in gcc-4.0.
30680
8de3495c 306812005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
30682
30683 * DISTLIST: Added normal/completion.c.
30684
30685 * normal/completion.c: New file.
f19dbdb7 30686
8de3495c 30687 * term/i386/pc/console.c (grub_console_getwh): New function.
30688 (grub_console_term): Assign grub_console_getwh to getwh.
30689
30690 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
30691 function is defined in normal/completion.c as
30692 grub_normal_do_completion.
30693 (grub_cmdline_get): Use grub_normal_do_completion instead of
30694 grub_tab_complete.
30695
30696 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
30697 returns non-zero, otherwise return 0.
30698 (grub_partition_iterate): First, probe the partition map. Then,
30699 call ITERATE only for this partition map.
30700
30701 * kern/misc.c (grub_strncmp): Rewritten.
30702
30703 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
30704 returns non-zero. Otherwise return 0.
30705
30706 * include/grub/partition.h (grub_partition_map_iterate): Return
30707 int instead of void.
30708
30709 * include/grub/normal.h (grub_normal_do_completion): New prototype.
30710
30711 * include/grub/misc.h (grub_strncmp): Change the type of N to
30712 grub_size_t.
30713
30714 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
30715 of void.
30716
30717 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
fe6b695a 30718 unsigned explicitly before comparing it with I.
8de3495c 30719
30720 * kern/main.c (grub_env_write_root): Add the attribute unused into
30721 VAR.
30722
30723 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
30724 normal/completion.c.
30725 (normal_mod_SOURCES): Likewise.
30726 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
30727 (normal_mod_SOURCES): Likewise.
30728
30729 * normal/command.c (grub_iterate_commands): If ITERATE returns
30730 non-zero, return one immediately.
30731
e85e144b 307322005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
30733
30734 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
30735 * kern/i386/pc/startup.S: Updated Global Descriptor table's
30736 descriptions.
30737 (grub_vbe_get_controller_info): New function.
30738 (grub_vbe_get_mode_info): Likewise.
30739 (grub_vbe_set_mode): Likewise.
30740 (grub_vbe_get_mode): Likewise.
30741 (grub_vbe_set_memory_window): Likewise.
30742 (grub_vbe_get_memory_window): Likewise.
30743 (grub_vbe_set_scanline_length): Likewise.
30744 (grub_vbe_get_scanline_length): Likewise.
30745 (grub_vbe_set_display_start): Likewise.
30746 (grub_vbe_get_display_start): Likewise.
30747 (grub_vbe_set_palette_data): Likewise.
30748 * include/grub/i386/pc/vbe.h: New file.
30749
c46153d2 307502005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30751
30752 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30753 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
30754 * DISTLIST: Likewise.
30755 * kern/ieee1275/of.c: Moved to ...
30756 * kern/ieee1275/ieee1275.c: ... here.
30757
0cb90c45 307582005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30759
30760 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
30761 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
30762 Pass 0 as `end' parameter to grub_strtoul().
30763
a19fb360 307642005-08-08 Hollis Blanchard <hollis@penguinppc.org>
30765
30766 * include/grub/powerpc/ieee1275/console.h: Do not include
30767 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
30768 ifdef.
30769 (grub_console_cur_color): Remove i386-specific prototype.
30770 (grub_console_real_putchar): Likewise.
30771 (grub_console_checkkey): Likewise.
30772 (grub_console_getkey): Likewise.
30773 (grub_console_getxy): Likewise.
30774 (grub_console_gotoxy): Likewise.
30775 (grub_console_cls): Likewise.
30776 (grub_console_setcursor): Likewise.
30777 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
30778 Include <grub/machine/console.h>.
30779 * term/ieee1275/ofconsole.c: Likewise.
30780
4ac9bd04 307812005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
30782
30783 * Makefile.in (LIBLZO): New variable.
30784
30785 * configure.ac: Check for LZO version 2.
30786
30787 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
30788 lzo/lzo1x.h instead of lzo1x.h.
30789
30790 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
30791 of -llzo.
30792
30793 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
30794 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
30795
30796 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
30797 copying the data from PARTITION to P.
30798
f4917dfd 307992005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30800
30801 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
30802 negative, unload the module.
30803
30804 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
30805 map is "pc_partition_map" but not "pc".
30806 (usage): Fix the description. The options are --boot-image and
30807 --core-image but not --boot-file or --core-file.
30808 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
30809 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
30810 DEFAULT_DIRECTORY.
30811
30812 * util/i386/pc/grub-install.in: Do not specify --boot-file or
30813 --core-file. Specify INSTALL_DEVICE as an argument.
30814
30815 * util/console.c: Include config.h.
30816 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
30817 [HAVE_NCURSES_H]: Include ncurses.h.
30818 [HAVE_CURSES_H]: Include curses.h.
30819 [!A_NORMAL] (A_NORMAL): Defined as zero.
30820 [!A_STANDOUT] (A_STANDOUT): Likewise.
30821
30822 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
30823 -lncurses.
30824 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
30825
30826 * configure.ac: Check for curses libraries and headers.
30827
30828 * Makefile.in (LIBCURSES): New variable.
30829
30830 * genmk.rb (Script::rule): Set the executable bits.
30831
30832 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
30833 name of the PC partition map is "pc_partition_map" but not "pc".
30834
0e143073 308352005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30836
30837 * util/i386/pc/grub-install.in (grub_probefs): New variable.
30838 (modules): Likewise.
30839 (usage): Added descriptions for --modules and --grub-probefs.
30840 Handle --modules and --grub-probefs. Save the arguments in MODULES
30841 and GRUB_PROBEFS, respectively.
30842 Auto-detect a filesystem module against GRUBDIR. If the result is
30843 empty and modules are not specified explicitly, abort the
30844 installation. Add the result to MODULES.
30845
30846 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
30847 disk/powerpc/ieee1275/ofdisk.c,
30848 include/grub/powerpc/ieee1275/init.h and
30849 term/powerpc/ieee1275/ofconsole.c.
30850 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
30851 term/ieee1275/ofconsole.c.
30852
30853 * include/grub/powerpc/ieee1275/console.h: Resurrected.
30854
30855 * COPYING: Upgraded to the latest version. Only the address of the
30856 FSF office has changed.
f19dbdb7 30857
efd6e6d5 308582005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
30859
30860 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
30861 kern/ieee1275.c with kern/ieee1275/of.c.
30862
30863 * kern/ieee1275.c: Moved to ...
30864 * kern/ieee1275/of.c: ... here.
30865
8ceafda2 308662005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
30867
30868 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
fe6b695a 30869 readability.
8ceafda2 30870
30871 * config.guess: Updated to the latest version from gnulib.
30872 * config.sub: Likewise.
30873 * install.sh: Likewise.
30874 * mkinstalldirs: Likewise.
30875
30876 * include/grub/console.h: Removed. This file is arch-specific. Do
30877 not put this in include/grub.
30878
30879 * include/grub/i386/pc/console.h: Resurrected.
30880
30881 * util/console.c: Include grub/machine/console.h instead of
30882 grub/console.h.
30883 * util/grub-emu.c: Likewise.
30884
267f6cd9 308852005-08-04 Marco Gerards <metgerards@student.han.nl>
30886
30887 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
30888 hardcoded value.
f19dbdb7 30889
267f6cd9 30890 From Vincent Pelletier <subdino2004@yahoo.fr>
30891 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
30892 Redefined to use grub_getwh.
30893 (grub_term): New member named getwh.
30894 (grub_getwh): New prototype.
30895 * kern/term.c (grub_getwh): New function.
30896 * term/i386/pc/console.c (grub_console_getwh): New function.
30897 (grub_console_term): New member `getwh'.
30898 * term/i386/pc/vga.c (grub_vga_getwh): New function.
30899 (grub_vga_term): New member `getwh'.
0b5abe02 30900 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
267f6cd9 30901 grub_ssize_t.
30902 (grub_ofconsole_getw): New function.
30903 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
30904 (grub_ofconsole_term): New field named getwh and new initial
30905 value.
30906
3be7266d 309072005-08-03 Hollis Blanchard <hollis@penguinppc.org>
30908
30909 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
30910 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
30911 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
30912 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
30913 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
30914 of <grub/machine/ieee1275.h>.
30915 * commands/ieee1275/reboot.c: Likewise.
30916 * boot/powerpc/ieee1275/ieee1275.c: Move ...
30917 * kern/ieee1275.c: ... to here. All users updated. Change all
30918 parameter structs to use new type `grub_ieee1275_cell_t'.
30919 * term/powerpc/ieee1275/ofconsole.c: Move ...
30920 * term/ieee1275/ofconsole.c: ... to here. All users updated.
30921 * disk/powerpc/ieee1275/ofdisk.c: Move ...
30922 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
30923 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
30924 to return int.
30925 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
30926 Remove unused prototypes. All users updated.
30927 * include/grub/powerpc/ieee1275/console.h: Removed.
30928 * include/grub/powerpc/ieee1275/ieee1275.h: Define
30929 `grub_ieee1275_cell_t'.
30930 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
30931 Cast comparisons with -1 to the correct type.
30932 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
30933 type to match `grub_ieee1275_entry_fn'.
30934
8b5f3938 309352005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
30936
30937 * DISTLIST: Added util/i386/pc/grub-probefs.c.
30938
30939 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
30940 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
30941 partmap/sun.c.
30942 (grub_probefs_SOURCES): New variable.
30943
30944 * util/i386/pc/grub-probefs.c: New file.
30945
30946 * util/i386/pc/grub-setup.c (main): Call
30947 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
30948 grub_hfs_init and grub_jfs_init to initialize the system. Call
30949 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
30950 grub_pc_partition_map_fini to finish the system.
30951
ea409713 309522005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
30953
30954 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
30955 function.
30956 (grub_multiboot_load_elf32): Likewise.
30957 (grub_multiboot_is_elf64): Likewise.
30958 (grub_multiboot_load_elf64): Likewise.
30959 (grub_multiboot_load_elf): Likewise.
30960 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
30961 an ELF32 or ELF64 file.
30962 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
30963
30964 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
30965 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
30966 NULL before calling FS->LABEL.
30967 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
30968 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
30969 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
30970 before calling FS->LABEL.
30971
141a288b 309722005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
30973
30974 * util/i386/pc/grub-install.in (datadir): New variable.
30975 (libdir): Removed.
30976 (pkgdatadir): New variable.
30977 (pkglibdir): Removed.
30978
0d5f8a54 309792005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
30980
30981 * DISTLIST: Added util/i386/pc/grub-install.in.
30982
30983 * util/i386/pc/grub-install.in: New file.
30984
30985 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
30986 (grub_install_SOURCES): Likewise.
30987
30988 * genmk.rb: Added support for scripts.
30989 (Script): New class.
30990 (scripts): New variable.
30991
30992 * Makefile.in (install-local): Install sbin_SCRIPTS by
30993 INSTALL_SCRIPT.
30994 (uninstall): Remove sbin_SCRIPTS.
30995
30996 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
30997 device, try to get a GRUB device by
30998 grub_util_biosdisk_get_grub_dev.
30999 Free DEST_DEV.
31000
31001 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
31002 description for --device-map.
31003
5f968e1e 310042005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31005
31006 Change the semantics of variable hooks. They now return strings
31007 instead of error values.
f19dbdb7 31008
5f968e1e 31009 * util/i386/pc/grub-setup.c: Include grub/env.h.
31010 (setup): Use grub_device_set_root instead of grub_env_set.
31011
31012 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
31013 grub_env_get instead of grub_device_set_root and
31014 grub_device_get_root, respectively.
31015
31016 * kern/main.c (grub_env_write_root): New function.
31017 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
31018 grub_env_set instead of grub_device_set_root.
31019
31020 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
31021 many variables.
31022 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
31023 rather than calling ENV->WRITE_HOOK afterwards.
31024 (grub_env_get): Return the result of ENV->READ_HOOK rather than
31025 passing a pointer of a pointer.
31026 (grub_register_variable_hook): Change the types of "read_hook" and
31027 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
31028 respectively.
31029 Allocate the default empty string on the heap, because this string
31030 may be freed later.
31031
31032 * kern/device.c: Include grub/env.h.
31033 (grub_device_set_root): Removed.
31034 (grub_device_get_root): Likewise.
31035 (grub_device_open): Use grub_env_get instead of
31036 grub_device_get_root.
31037
31038 * include/grub/env.h (grub_env_read_hook_t): New type.
31039 (grub_env_write_hook_t): Likewise.
31040 (grub_env_var): Change the types of "read_hook" and "write_hook"
31041 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
31042 (grub_register_variable_hook): Likewise.
31043
31044 * include/grub/device.h (grub_device_set_root): Removed.
31045 (grub_device_set_root): Likewise.
31046
31047 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
31048 make sure that DIRNAME terminates with '/', so that
31049 grub_fat_find_dir will fail if PATH is not a directory.
31050
31051 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
31052 from DIRNAME.
31053 Use the qualifier auto for print_files and print_files_long.
31054 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
31055 as a regular file.
31056 Put a newline only if there is no error.
31057 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
31058 used.
31059
896f0afd 310602005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31061
31062 * kern/partition.c (grub_partition_probe): Initialize PART to
31063 NULL. Otherwise, when no partition map is registered, this returns
31064 a garbage.
31065
b28b81b2 310662005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
31067
31068 * partmap/apple.c (apple_partition_map_iterate): Check if POS
31069 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
31070 valid.
31071
5f3607e0 310722005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
31073
31074 * commands/ls.c (grub_ls_list_disks): Print the filesystem
31075 information on each device, if it does not have partitions. Print
31076 "Device" instead of "Disk", because this function is not specific
31077 to disk devices.
31078
31079 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
31080 static to ensure that it is put on the memory rather than a
31081 register.
31082
502c87e8 310832005-07-17 Yoshinori Okuji <okuji@enbug.org>
31084
31085 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
31086 (grub_cat_init): Likewise.
31087 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
31088 (options): Likewise.
31089 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
31090 (grub_configfile_init): Likewise.
31091 * font/manager.c (GRUB_MOD_INIT): Likewise.
31092 * commands/help.c (GRUB_MOD_INIT): Likewise.
31093 (grub_help_init): Likewise.
31094 * normal/command.c (grub_command_init): Likewise.
31095 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
31096 * disk/loopback.c (grub_loop_init): Likewise.
31097 (GRUB_MOD_INIT): Likewise.
31098 * commands/ls.c (grub_ls_init): Likewise.
31099 (GRUB_MOD_INIT): Likewise.
31100 (options): Likewise.
31101 * commands/boot.c (grub_boot_init): Likewise.
31102 (GRUB_MOD_INIT): Likewise.
31103 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
31104 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
31105 (GRUB_MOD_INIT): Likewise.
31106 * commands/cmp.c (grub_cmp_init): Likewise.
31107 (GRUB_MOD_INIT): Likewise.
31108
31109 * normal/arg.c: Use <> instead of "" to include header files.
31110 (SHORT_ARG_HELP): New macro.
31111 (SHORT_ARG_USAGE): Likewise.
31112 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
31113 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
31114 descriptions.
31115 (find_short): Check if C is 'h' or 'u' explicitly.
31116 (grub_arg_show_help): Use space characters instead of tabs. Treat
31117 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
31118 are shown with --help and --usage only if they are not used for
31119 the command itself.
31120 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
31121 'h' and 'u'.
31122
31123 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
31124 const into "longarg". Change the type of "shortarg" to int.
31125
f806d18e 311262005-07-17 Yoshinori Okuji <okuji@enbug.org>
31127
31128 * boot/i386/pc/boot.S (boot_drive_check): New label.
31129
31130 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
31131 macro.
31132
31133 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
31134 which do not pass a boot drive correctly. Copied from GRUB Legacy.
31135
e293232b 311362005-07-17 Yoshinori Okuji <okuji@enbug.org>
31137
31138 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
31139 When turning off Gate A20, skip the check and return immediately,
31140 because this is not fatal usually.
31141
ebedfd00 311422005-07-17 Yoshinori Okuji <okuji@enbug.org>
31143
31144 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
31145 be 0x7C00 instead of 0x8000.
31146
31147 * boot/i386/pc/pxeboot.S: Rewritten.
31148
31149 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
31150 EXT_C.
31151 (gate_a20_check_state): Read a byte from 0x108000. Invert the
31152 result.
31153
654fc59f 311542005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
31155
31156 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
31157 robustness. This routine now supports a BIOS call and System
31158 Control Port A to modify the gate A20.
31159
31160 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31161 Increased to 0x440.
31162
09f9923f 311632005-07-12 Hollis Blanchard <hollis@penguinppc.org>
31164
31165 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
31166 device path and resulting ihandle.
31167 (grub_ofdisk_close): dprintf the ihandle being closed.
31168 (grub_ofdisk_read): dprintf function parameters.
31169 * kern/mm.c (grub_mm_init_region): Likewise.
31170 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
31171 (grub_linux_boot): dprintf the Linux entry point, initrd address and
31172 size, and boot arguments.
31173 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
31174 before loading into memory.
31175 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
31176 before loading into memory.
31177
7ef504d8 311782005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
31179
31180 * kern/mm.c: Added much documentation.
31181 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
31182 8, set to 5 instead of 8.
31183
e0f050c2 311842005-07-10 Yoshinori Okuji <okuji@enbug.org>
31185
31186 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
31187
31188 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
31189 (grub_mkdevicemap_SOURCES): New variable.
31190
31191 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
31192 lib/device.c of GRUB Legacy.
31193
7224189a 311942005-07-10 Yoshinori Okuji <okuji@enbug.org>
31195
31196 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
31197 instead of PATH is NULL.
31198
68c864eb 311992005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
31200
31201 * commands/cmp.c (BUFFER_SIZE): New macro.
31202 (grub_cmd_cmp): Close the right file at the right time. Compare
31203 only data just read. Don't report files of different size as
31204 identical. Dynamically allocate buffers. Move variable
31205 declarations at the beginning of function.
31206
e6f3e614 312072005-07-09 Yoshinori Okuji <okuji@enbug.org>
31208
31209 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
31210 reverse.
31211
f8f1559a 312122004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
31213
31214 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
31215 when backspace is pressed at beginning of line.
31216
39c9d41d 312172005-07-03 Yoshinori Okuji <okuji@enbug.org>
31218
31219 * DISTLIST: Added genfslist.sh.
31220
31221 * normal/main.c (fs_module_list): New variable.
31222 (autoload_fs_module): New function.
31223 (read_fs_list): Likewise.
31224 (grub_normal_execute): Call read_fs_list.
31225
31226 * kern/fs.c (grub_fs_autoload_hook): New variable.
31227 (grub_fs_probe): Added support for auto-loading.
31228
31229 * include/grub/normal.h (struct grub_fs_module_list): New struct.
31230 (grub_fs_module_list_t): New type.
31231
31232 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
31233 (grub_fs_autoload_hook): New prototype.
31234
31235 * genfslist.sh: New file.
f19dbdb7 31236
39c9d41d 31237 * genmk.rb: Added a rule to generate a filesystem list.
31238
121c1d83 312392005-06-30 Marco Gerards <metgerards@student.han.nl>
31240
31241 * configure.ac: Fix the test for cross-compiling.
31242
31243 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
31244 define GRUB_UTIL anymore.
31245
31246 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
31247 so this function works on other systems than just big endian.
31248 (load_modules): Likewise.
31249 (add_segments): Likewise.
31250
e75d76e1 312512005-06-23 Hollis Blanchard <hollis@penguinppc.org>
31252
31253 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
31254 contains `l' modifier, get a long from va_arg().
31255
50b5a0a7 312562005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
31257
31258 * kern/mm.c (grub_free): If the next free block which is being
31259 merged is the first free block, set the first block to the block
31260 being freed.
31261 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
31262
89371b20 312632005-05-08 Hollis Blanchard <hollis@penguinppc.org>
31264
31265 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
31266 `grub_ieee1275_chosen'.
31267
168d6e58 312682005-05-08 Hollis Blanchard <hollis@penguinppc.org>
31269
31270 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
31271 (grub_ieee1275_chosen): New variable.
31272 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
31273 `chosen'.
31274 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
31275 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
31276 Rename first argument to `phandle' for consistency.
31277 (grub_ieee1275_get_property_length): Likewise.
31278 (grub_ieee1275_next_property): Likewise. Change type of first argument
31279 to grub_ieee1275_phandle_t.
31280 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
31281 Move export next to declaration.
31282 (grub_ieee1275_chosen): New variable.
31283 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
31284 Correct cosmetic typo.
31285 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
31286 `grub_ieee1275_chosen'.
31287 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
31288 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
31289 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
31290 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
31291 `grub_ieee1275_chosen'.
31292
ca5baa3f 312932005-05-10 Hollis Blanchard <hollis@penguinppc.org>
31294
31295 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
31296 /chosen/bootargs.
31297 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
31298 /chosen/bootargs as "variable=value" pairs.
31299
708b345f 313002005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
31301
31302 * include/grub/misc.h (grub_dprintf): New macro.
31303 (grub_real_dprintf): New prototype.
31304 (grub_strword): Likewise.
31305 (grub_iswordseparator): Likewise.
31306 * kern/misc.c (grub_real_dprintf): New function.
31307 (grub_strword): Likewise.
31308 (grub_iswordseparator): Likewise.
31309
f4c5e67c 313102005-04-30 Hollis Blanchard <hollis@penguinppc.org>
31311
31312 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
31313 (roundup): Remove macro.
31314 (grub_ieee1275_flags): Make static.
31315 (grub_ieee1275_realmode): Remove.
31316 (grub_ieee1275_test_flag): New function.
31317 (grub_ieee1275_set_flag): Likewise.
31318 (find_options): Rename to `grub_ieee1275_find_options'; update
31319 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
31320 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
31321 (cmain): New prototype.
31322 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
31323 `grub_ieee1275_flags' directly.
31324 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
31325 machine/biosdisk.h.
31326 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
31327 Don't include grub/machine/init.h.
31328 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
31329 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
31330 Remove prototype.
31331 (grub_ieee1275_realmode): Likewise.
31332 (grub_ieee1275_flag): New enum.
31333 (grub_ieee1275_test_flag): New prototype.
31334 (grub_ieee1275_set_flag): New prototype.
31335 * include/grub/powerpc/ieee1275/init.h: Remove file.
31336 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
31337 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
31338 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
31339 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
31340 comment.
31341 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
31342 `grub_ieee1275_test_flag'.
31343 (grub_ieee1275_encode_devname): Likewise.
31344
ed16607e 313452005-04-21 Hollis Blanchard <hollis@penguinppc.org>
31346
31347 * include/grub/powerpc/ieee1275/ieee1275.h
31348 (grub_ieee1275_encode_devname): New prototype.
31349 (grub_ieee1275_get_filename): Likewise.
31350 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
31351 function.
31352 (grub_set_prefix): Likewise.
31353 (grub_machine_init): Call grub_set_prefix.
31354 * kern/powerpc/ieee1275/openfw.c: Fix typos.
31355 (grub_parse_type): New enum.
31356 (grub_ieee1275_get_devargs): New function.
31357 (grub_ieee1275_get_devname): Likewise.
31358 (grub_ieee1275_parse_args): Likewise.
31359 (grub_ieee1275_get_filename): Likewise.
31360 (grub_ieee1275_encode_devname): Likewise.
31361
be369920 313622005-03-30 Marco Gerards <metgerards@student.han.nl>
31363
31364 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
31365 `grub_loader_unset'.
31366
a5ce3a4a 313672005-03-26 Hollis Blanchard <hollis@penguinppc.org>
31368
31369 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
31370 instead of grub_ieee1275_interpret.
31371 (grub_halt_init): New function.
31372 (grub_halt_fini): Likewise.
31373 (GRUB_MOD_INIT): Correct message grammar.
31374 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
31375 instead of grub_ieee1275_interpret.
31376 (grub_reboot_init): New function.
31377 (grub_reboot_fini): Likewise.
31378 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
31379 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
31380 util/i386/pc/misc.c with commands/ieee1275/halt.c,
31381 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
31382 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
31383 function.
31384 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
31385 Add prototype.
31386 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
31387 prototype.
31388 (grub_halt): Likewise.
31389 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
31390 (cmain): Remove __attribute__((unused)).
31391 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
31392 (grub_heap_len): Likewise.
31393 (grub_machine_fini): New function.
31394 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
31395 (grub_halt): Likewise.
31396 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
31397 function.
31398 * util/powerpc/ieee1275/misc.c: New file.
31399
0058f771 314002005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
31401
31402 * DISTLIST: New file.
31403 * gendistlist.sh: Likewise.
f19dbdb7 31404
0058f771 31405 * Makefile.in (COMMON_DISTFILES): Removed.
31406 (BOOT_DISTFILES): Likewise.
31407 (CONF_DISTFILES): Likewise.
31408 (DISK_DISTFILES): Likewise.
31409 (FS_DISTFILES): Likewise.
31410 (INCLUDE_DISTFILES): Likewise.
31411 (KERN_DISTFILES): Likewise.
31412 (LOADER_DISTFILES): Likewise.
31413 (TERM_DISTFILES): Likewise.
31414 (UTIL_DISTFILES): Likewise.
31415 (DISTFILES): Likewise.
31416 (uninstall): Uninstall files in $(pkgdata_DATA).
31417 (DISTLIST): New target.
31418 (distdir): Use the contents of the file DISTLIST to get a list of
31419 distributed files.
31420
46b3b8a5 314212005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
31422
31423 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
31424 descriptor. This is ported from GRUB Legacy.
31425
31426 * gencmdlist.sh: Added an extra semicolon to make it work with
31427 old sed versions. Reported by Robert Bihlmeyer
31428 <robbe@orcus.priv.at>.
31429
5822ff87 314302005-03-08 Yoshinori Okuji <okuji@enbug.org>
31431
31432 Automatic loading of commands is supported.
f19dbdb7 31433
5822ff87 31434 * normal/main.c (read_command_list): New function.
31435 (grub_normal_execute): Call read_command_list.
31436
31437 * normal/command.c (grub_register_command): Return zero or CMD.
31438 Allocate CMD->NAME from the heap.
31439 Initialize CMD->MODULE_NAME to zero.
31440 Find the same name as well. If the same command is found and it is
31441 a dummy command, overwrite members. If it is not a dummy command,
31442 return zero.
31443 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
31444 (grub_command_find): If a dummy command is found, load a module
31445 and retry to find a command only once.
31446
31447 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
31448 make sure that each command is loaded.
31449
31450 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
31451 macro.
31452 (struct grub_command): Remove const from the member `name'.
31453 Add a new member `module_name'.
31454 (grub_register_command): Return grub_command_t.
31455
31456 * commands/help.c (grub_cmd_help): Call grub_command_find to make
31457 sure that each command is loaded.
31458
31459 * genmk.rb (PModule::rule): Specify a module name without the
31460 suffix ".mod" to gencmdlist.sh.
31461
7b1f4b57 314622005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31463
31464 * gencmdlist.sh: New file.
f19dbdb7 31465
7b1f4b57 31466 * genmk.rb (PModule::rule): Generate a rule for a command list.
31467 Clean command.lst.
31468 Generate command.lst from $(COMMANDFILES).
31469
31470 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
31471 (DATA): Added $(pkgdata_DATA).
31472 (install-local): Install files in $(pkgdata_DATA).
31473
062aaf39 314742005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
31475
31476 * term/i386/pc/vga.c (debug_command): Removed.
31477 (GRUB_MOD_INIT): Do not register the command "debug".
31478
31479 From Hollis Blanchard:
31480 * commands/configfile.c: New file.
31481 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31482 commands/configfile.c.
31483 (pkgdata_MODULES): Added configfile.mod.
31484 (configfile_mod_SOURCES): New variable.
31485 (configfile_mod_CFLAGS): Likewise.
31486 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31487 commands/configfile.c.
31488 (pkgdata_MODULES): Added configfile.mod.
31489 (configfile_mod_SOURCES): New variable.
31490 (configfile_mod_CFLAGS): Likewise.
31491 * util/grub-emu.c (main): Call grub_configfile_init and
31492 grub_configfile_fini.
31493 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
31494 prototype.
31495 [GRUB_UTIL] (grub_configfile_fini): Likewise.
f19dbdb7 31496
cee01aa6 314972005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31498
31499 * normal/arg.c (grub_arg_show_help): Do not show the bug report
31500 address.
31501
31502 * commands/help.c (grub_cmd_help): Do not print newlines after
31503 the last command in print_command_help.
31504
93f3a1d8 315052005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
31506
31507 * commands/default.h: New file.
31508 * commands/timeout.h: Likewise.
31509 * normal/context.c: Likewise.
f19dbdb7 31510
93f3a1d8 31511 * util/misc.c: Do not include sys/times.h.
31512 Include sys/time.h and grub/machine/time.h.
31513 (grub_get_rtc): Rewritten with gettimeofday.
31514
31515 * util/grub-emu.c (main): Call grub_default_init and
31516 grub_timeout_init before grub_normal_init, and call
31517 grub_timeout_fini and grub_default_fini after grub_main.
31518
31519 * util/console.c (grub_ncurses_checkkey): Return the read
31520 character or -1.
31521
31522 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
31523 timeouts.
31524
31525 * normal/main.c (read_config_file): Push MENU. If this fails,
31526 print an error and wait for a user input.
31527 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
31528 If a menu is empty or an error occurs, pop MENU.
31529 (grub_normal_execute): Pop and free MENU after grub_menu_run
31530 returns.
31531
31532 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
31533
31534 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
31535 include time.h.
31536 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31537 without GRUB_UTIL.
31538 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
31539 time.h.
31540 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
31541 without GRUB_UTIL.
31542
31543 * include/grub/normal.h (struct grub_menu_list): New struct.
31544 (grub_menu_list_t): New type.
31545 (struct grub_context): New struct.
31546 (grub_context_t): New type.
31547 (grub_register_command): Got rid of EXPORT_FUNC.
31548 (grub_unregister_command): Likewise.
31549 (grub_context_get): New prototype.
31550 (grub_context_get_current_menu): Likewise.
31551 (grub_context_push_menu): Likewise.
31552 (grub_context_pop_menu): Likewise.
31553 [GRUB_UTIL] (grub_default_init): Likewise.
31554 [GRUB_UTIL] (grub_default_fini): Likewise.
31555 [GRUB_UTIL] (grub_timeout_init): Likewise.
31556 [GRUB_UTIL] (grub_timeout_fini): Likewise.
31557
31558 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
31559 commands/timeout.c and normal/context.c.
31560 (pkgdata_MODULES): Added default.mod and timeout.mod.
31561 (normal_mod_SOURCES): Added normal/context.c.
31562 (default_mod_SOURCES): New variable.
31563 (default_mod_CFLAGS): Likewise.
31564 (timeout_mod_SOURCES): Likewise.
31565 (timeout_mod_CFLAGS): Likewise.
31566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
31567 conf/i386-pc.rmk.
31568 (pkgdata_MODULES): Added default.mod and timeout.mod.
31569 (normal_mod_SOURCES): Added normal/context.c.
31570 (default_mod_SOURCES): New variable.
31571 (default_mod_CFLAGS): Likewise.
31572 (timeout_mod_SOURCES): Likewise.
31573 (timeout_mod_CFLAGS): Likewise.
31574
31575 * Makefile.in (all-local): Added $(MKFILES).
31576
4ed2e1dd 315772005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
31578
31579 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
31580 (grub_emu_SOURCES): Likewise.
31581 (pkgdata_MODULES): Add `sun.mod'.
31582 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31584 `partmap/sun.c'.
31585 (pkgdata_MODULES): Add `sun.mod'.
31586 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
31587 * include/grub/partition.h (grub_sun_partition_map_init): New
31588 prototype.
31589 (grub_sun_partition_map_fini): Likewise.
31590 * partmap/sun.c: New file.
31591 * util/grub-emu.c (main): Initialize and de-initialize the sun
31592 partitionmap support.
31593
4d4e372e 315942005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
31595
31596 This implements an Emacs-like menu entry editor.
f19dbdb7 31597
4d4e372e 31598 * normal/menu_entry.c: New file.
f19dbdb7 31599
4d4e372e 31600 * util/console.c (grub_ncurses_putchar): Translate some Unicode
31601 characters to ASCII.
31602 (saved_char): New variable.
31603 (grub_ncurses_checkkey): Rewritten completely.
31604 (grub_ncurses_getkey): Likewise.
31605 (grub_ncurses_init): Call raw instead of cbreak.
31606
31607 * normal/menu.c (print_entry): Do not put a space.
31608 (init_page): Renamed to ...
31609 (grub_menu_init_page): ... this. All callers changed.
31610 (edit_menu_entry): Removed.
31611 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
31612
31613 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
31614
31615 * kern/misc.c (grub_vprintf): Call grub_refresh.
31616
31617 * normal/menu.c (DISP_LEFT): Renamed to ...
31618 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
31619 * normal/menu.c (DISP_UP): Renamed to ...
31620 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
31621 * normal/menu.c (DISP_RIGHT): Renamed to ...
31622 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
31623 * normal/menu.c (DISP_DOWN): Renamed to ...
31624 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
31625 * normal/menu.c (DISP_HLINE): Renamed to ...
31626 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
31627 * normal/menu.c (DISP_VLINE): Renamed to ...
31628 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
31629 * normal/menu.c (DISP_UL): Renamed to ...
31630 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
31631 * normal/menu.c (DISP_UR): Renamed to ...
31632 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
31633 * normal/menu.c (DISP_LL): Renamed to ...
31634 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
31635 * normal/menu.c (DISP_LR): Renamed to ...
31636 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
31637 * normal/menu.c (TERM_WIDTH): Renamed to ...
31638 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
31639 * normal/menu.c (TERM_HEIGHT): Renamed to ...
31640 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
31641 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
31642 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
31643 * normal/menu.c (TERM_MARGIN): Renamed to ...
31644 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
31645 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
31646 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
31647 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
31648 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
31649 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
31650 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
31651 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
31652 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
31653 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
31654 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
31655 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
31656 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
31657 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
31658 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
31659 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
31660 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
31661 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
31662 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
31663 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
31664 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
31665 All callers changed.
31666
31667 * include/grub/normal.h: New prototype.
31668
31669 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31670 normal/menu_entry.c.
31671 (normal_mod_SOURCES): Likewise.
31672 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31673 (normal_mod_SOURCES): Likewise.
31674
e6b92c8a 316752005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
31676
31677 * include/grub/normal.h (grub_halt_init): New prototype.
31678 (grub_halt_fini): Likewise.
31679 (grub_reboot_init): Likewise.
31680 (grub_reboot_fini): Likewise.
31681
31682 * util/grub-emu.c: Include signal.h.
31683 (main_env): New global variable.
31684 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
31685 catch C-c.
31686 (grub_machine_fini): New function.
31687 (main): Call grub_halt_init and grub_reboot_init before
31688 grub_main, and grub_reboot_fini and grub_halt_fini after it.
31689 Call setjmp with MAIN_ENV to go back afterwards.
31690 Call grub_machine_fini right before return.
31691
31692 * include/grub/util/misc.h: Include setjmp.h.
31693 (main_env): New prototype.
31694
31695 * include/grub/kernel.h (grub_machine_fini): New prototype.
31696 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
31697 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
31698
31699 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
31700 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
31701 * term/i386/pc/console.c (grub_console_fini): Likewise.
f19dbdb7 31702
e6b92c8a 31703 * util/i386/pc/misc.c: New file.
f19dbdb7 31704
e6b92c8a 31705 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
31706 util/i386/pc/misc.c, commands/i386/pc/halt.c and
31707 commands/i386/pc/reboot.c.
31708
c642636f 317092005-02-14 Guillem Jover <guillem@hadrons.org>
31710
31711 * include/grub/dl.h (grub_dl_check_header): New prototype.
31712 (grub_arch_dl_check_header): Change return type to grub_err_t,
31713 remove size parameter and export function. Update all callers.
31714 * kern/dl.c (grub_dl_check_header): New function.
31715 (grub_dl_load_core): Use `grub_dl_check_header' instead of
31716 `grub_arch_dl_check_header'. Check ELF type. Check if sections
31717 are inside the core.
31718 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
31719 independent ELF header checks.
31720 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31721 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
31722 `grub_dl_check_header' instead of explicit checks. Check for the
31723 ELF type.
31724 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
31725 `grub_dl_check_header' instead of explicit checks. Remove arch
31726 specific ELF header checks.
31727
e6b92c8a 31728 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
31729 argument SIZE.
31730
5eabe94b 317312005-02-13 Hollis Blanchard <hollis@penguinppc.org>
31732
31733 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
31734 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
31735
1b14a681 317362005-02-12 Hollis Blanchard <hollis@penguinppc.org>
31737
31738 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
f19dbdb7 31739 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
1b14a681 31740 (part_map_iterate): Clear `grub_errno' and return 0 if
f19dbdb7 31741 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
1b14a681 31742 * partmap/amiga.c (amiga_partition_map_iterate): Return
31743 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
31744 * partmap/apple.c (apple_partition_map_iterate): Likewise.
31745
aca108aa 317462005-02-01 Guillem Jover <guillem@hadrons.org>
31747
31748 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
31749 help info.
31750
c9f9c556 317512005-01-31 Marco Gerards <metgerards@student.han.nl>
31752
31753 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
31754 Removed prototype.
31755 (grub_rescue_cmd_linux): New prototype.
31756 (grub_rescue_cmd_initrd): Likewise.
31757 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
31758 `bi_rec'.
31759 (grub_linux_release_mem): Release the memory for the initrd.
31760 (grub_load_linux): Renamed from this...
31761 (grub_rescue_cmd_linux): ...To this. Changed all callers.
31762 Changed `entry' not to be static. Loop over memory regions to
31763 find another one when the default fails.
31764 (grub_rescue_cmd_initrd): New function.
31765 (grub_linux_init): Remove function.
31766 (grub_linux_fini): Likewise.
31767 (GRUB_MOD_INIT): Register `initrd'.
31768 (GRUB_MOD_FINI): Unregister `initrd'.
31769 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
31770 Function removed.
31771 (grub_linux_normal_fini): Likewise.
31772 (GRUB_MOD_INIT): Register `initrd'.
31773 (GRUB_MOD_FINI): Unregister `initrd'.
31774
990cf3aa 317752005-01-31 Marco Gerards <metgerards@student.han.nl>
31776
31777 * commands/help.c: New file.
31778 * normal/arg.c (show_help): Renamed to...
31779 (grub_arg_show_help): ... this.
31780 * commands/i386/pc/halt.c: New file.
31781 * commands/i386/pc/reboot.c: Likewise.
31782 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
31783 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
31784 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
31785 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
31786 variables.
31787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31788 `commands/help.c'.
31789 (pkgdata_MODULES): Add `help.mod'.
31790 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
31791 * grub/i386/pc/init.h (grub_reboot): New prototype.
31792 (grub_halt): Likewise.
31793 * include/grub/normal.h (grub_arg_show_help): New prototype.
31794 (grub_help_init): Likewise.
31795 (grub_help_fini): Likewise.
31796 * util/grub-emu.c (main): Initialize and deinitialize the help
31797 command.
31798
31799 * normal/cmdline.c (grub_cmdline_get): Doc fix.
31800
31801 * normal/command.c (grub_command_init): Fixed the description of
31802 the `set' and `unset' commands.
31803
318042005-01-31 Marco Gerards <metgerards@student.han.nl>
0f79cdc1 31805
31806 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
31807 function.
31808 * commands/ieee1275/halt.c: New file.
31809 * commands/ieee1275/reboot.c: Likewise.
31810 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
31811 `__attribute__ ((unused))'. Some GCS related fixed.
31812 (grub_suspend_init) [GRUB_UTIL]: Function removed.
31813 (grub_suspend_fini): Likewise.
31814 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
31815 and `halt.mod'.
31816 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
31817 (halt_mod_CFLAGS): New variables.
31818 * include/grub/powerpc/ieee1275/ieee1275.h
31819 (grub_ieee1275_interpret): New prototype.
31820
1ab09cc7 318212005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
31822
31823 * include/grub/misc.h (memmove): New prototype.
31824 (memcpy): Likewise.
31825
8b8cbdb2 318262005-01-22 Hollis Blanchard <hollis@penguinppc.org>
31827
31828 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
31829 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
31830
e3741a27 318312005-01-22 Marco Gerards <metgerards@student.han.nl>
31832
31833 * kern/misc.c (grub_strndup): Function rewritten.
31834
776bd780 318352005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
31836
31837 * normal/menu.c (TERM_WIDTH): Macro redefined.
31838 (TERM_TOP_BORDER_Y): Likewise.
31839 (draw_border): Replaced while-loop by a for-loop. Make the number
31840 of lines consistent with the number of lines displayed in
31841 print_entries. Added a margin below the rectangle.
31842 (print_entry): Make the entry fit in the rectangle.
31843 (print_entries): Display the scroll arrows next to the right
31844 border.
31845
78026bce 318462005-01-21 Marco Gerards <metgerards@student.han.nl>
31847
31848 * fs/minix.c (grub_minix_find_file): Reserve more space for
31849 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
31850 `grub_strncpy' to copy `path' into it.
31851
67bbaf0f 318522005-01-21 Marco Gerards <metgerards@student.han.nl>
31853
31854 Add the loopback device, a device via which files can be accessed
31855 as devices.
f19dbdb7 31856
67bbaf0f 31857 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
31858 (pkgdata_MODULES): Add loopback.mod.
31859 (loopback_mod_SOURCES): New variable.
31860 (loopback_mod_CFLAGS): Likewise.
31861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31862 `disk/loopback.c'.
31863 (pkgdata_MODULES): Add loopback.mod.
31864 (loopback_mod_SOURCES): New variable.
31865 (loopback_mod_CFLAGS): Likewise.
31866 * disk/loopback.c: new file.
31867 * include/grub/normal.h (grub_loop_init): New prototype.
31868 (grub_loop_fini): New prototype.
31869 * util/grub-emu.c (main): Initialize and de-initialize loopback
31870 support.
31871 * include/grub/disk.h (grub_disk_dev_id): Add
31872 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
31873
6f1c18bd 318742005-01-20 Hollis Blanchard <hollis@penguinppc.org>
31875
31876 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
31877 function.
31878 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
31879 (suspend_mod_SOURCES): New variable.
31880 (suspend_mod_CFLAGS): Likewise.
31881 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
31882 New prototype.
31883 * commands/ieee1275/suspend.c: New file.
31884
b38551da 318852005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
31886
31887 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
f19dbdb7 31888 ((unused))' to `__attribute__ ((used))'.
b38551da 31889 (GRUB_MOD_FINI): Likewise.
31890 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
31891 * genmk.rb (PModule): Assign space to common symbols when linking
31892 modules.
31893
777aff39 318942005-01-20 Marco Gerards <metgerards@student.han.nl>
31895
31896 * include/grub/mm.h (grub_mm_init_region): Change the type of the
31897 `unsigned' arguments to `grub_size_t'.
31898 (grub_malloc): Likewise.
31899 (grub_realloc): Likewise.
31900 (grub_memalign): Likewise.
31901 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
31902 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
31903 * util/misc.c (grub_malloc): Likewise.
31904 (grub_realloc): Likewise.
31905 * kern/mm.c (get_header_from_pointer): Change the casts to
31906 `unsigned' into a cast to `grub_size_t'.
31907
31908 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
31909 point to `currnode' when `currnode' is changed.
31910
31911 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
31912 Schottelius <nico-linux@schottelius.org>.
31913
d0ff18e1 319142005-01-09 Hollis Blanchard <hollis@penguinppc.org>
31915
31916 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
31917 (note_path): Remove variable.
31918 (GRUB_IEEE1275_NOTE_NAME): New macro.
31919 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
31920 (grub_ieee1275_note_hdr): New structure.
31921 (grub_ieee1275_note_desc): Likewise.
31922 (grub_ieee1275_note): Likewise.
31923 (load_note): Remove `dir' argument. All callers updated. Remove
31924 `note_img' and `path'. Do not load a file from `note_path'.
31925 Initialize a struct grub_ieee1275_note and write that to `out'.
31926 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
31927
4ca7004c 319282005-01-05 Marco Gerards <metgerards@student.han.nl>
31929
31930 * util/misc.c (grub_util_read_image): Revert last change. It
31931 called `grub_util_read_at', which seeks from the beginning of the
31932 file.
31933
0b412211 319342005-01-04 Hollis Blanchard <hollis@penguinppc.org>
31935
31936 * TODO: Add note about endianness in grub-mkimage.
31937 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
31938 section.
31939 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
31940 (grub_mkimage_SOURCES): New target.
31941 * include/grub/kernel.h (grub_start_addr): Remove variable.
31942 (grub_end_addr): Likewise.
31943 (grub_total_module_size): Likewise.
31944 (grub_kernel_image_size): Likewise.
31945 (GRUB_MODULE_MAGIC): New constant.
31946 (grub_module_info): New structure.
31947 (grub_arch_modules_addr): New prototype.
31948 (grub_get_end_addr): Remove prototype.
31949 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
31950 * include/grub/powerpc/ieee1275/kernel.h: New file.
31951 * include/grub/util/misc.h (grub_util_get_fp_size): New
31952 prototype.
31953 (grub_util_read_at): Likewise.
31954 (grub_util_write_image_at): Likewise.
31955 * kern/main.c (grub_get_end_addr): Remove function.
31956 (grub_load_modules): Call grub_arch_modules_addr instead of using
31957 grub_end_addr. Look for a grub_module_info struct in memory. Use
31958 the grub_module_info fields instead of calling grub_get_end_addr
31959 as loop conditions. Move grub_add_unused_region code here.
31960 (grub_add_unused_region): Remove function.
31961 * kern/i386/pc/init.c: Include grub/cache.h.
31962 (grub_machine_init): Remove call to grub_get_end_addr. Remove
31963 one call to add_mem_region.
31964 (grub_arch_modules_addr): New function.
31965 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
31966 (grub_total_module_size): Likewise.
31967 Include grub/machine/kernel.h.
31968 (grub_arch_modules_addr): New function.
31969 * util/grub-emu.c (grub_end_addr): Remove variable.
31970 (grub_total_module_size): Likewise.
31971 (grub_arch_modules_addr): New function.
31972 * util/misc.c: Include unistd.h.
31973 (grub_util_get_fp_size): New function.
31974 (grub_util_read_at): Likewise.
31975 (grub_util_write_image_at): Likewise.
31976 (grub_util_read_image): Call grub_util_read_at.
31977 (grub_util_write_image): Call grub_util_write_image_at.
31978 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
31979 additional memory in kernel_img for a struct grub_module_info.
31980 Fill in that grub_module_info.
31981 * util/powerpc/ieee1275/grub-mkimage.c: New file.
31982
458786f8 319832005-01-03 Hollis Blanchard <hollis@penguinppc.org>
31984
31985 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
31986 New function.
31987 * include/grub/powerpc/ieee1275/ieee1275.h
31988 (grub_ieee1275_milliseconds): New prototype.
31989 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
31990 Change to 1000.
31991 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
31992 grub_ieee1275_milliseconds.
31993
ac507d1b 319942005-01-03 Hollis Blanchard <hollis@penguinppc.org>
31995
31996 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
31997 variable.
31998 (find_options): New function.
31999 (cmain): Call find_options.
32000 * include/grub/powerpc/ieee1275/ieee1275.h
32001 (grub_ieee1275_realmode): New extern variable.
32002 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
32003 grub_map if grub_ieee1275_realmode is false.
32004
6b8fd1c4 320052004-12-29 Marco Gerards <metgerards@student.han.nl>
32006
32007 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
32008 lines are inserted and make it work like readline. Reported by
32009 Vincent Pelletier <subdino2004@yahoo.fr>.
32010
8514a1e0 320112004-12-28 Marco Gerards <metgerards@student.han.nl>
32012
32013 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
32014
32015 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
32016 `kern/powerpc/cache.S'.
32017
924b6140 320182004-12-27 Marco Gerards <metgerards@student.han.nl>
32019
32020 * genmk.rb: Handle the `Program' class in the main loop. Written
32021 by Johan Rydberg <jrydberg@gnu.org>.
32022 (Program): New class.
32023 (programs): New variable.
32024 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
32025 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
32026 instead of "grub/kernel.h". Include <grub/machine/init.h>.
32027 (help_arch): Function removed.
32028 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
32029 `powerpc/libgcc.h' and `loader.h'.
32030 (pkgdata_PROGRAMS): New variable.
32031 (sbin_UTILITIES): Variable removed.
32032 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
32033 (grubof_SOURCES): Variable re-defined so it only includes the
32034 core functionality.
32035 (grubof_CFLAGS): Remove `-DGRUBOF'.
32036 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
32037 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
32038 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
32039 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
32040 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
32041 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
32042 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
32043 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
32044 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
32045 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
32046 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
32047 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
32048 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
32049 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
32050 (pc_mod_CFLAGS): New variables.
32051 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
32052 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
32053 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
32054 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
32055 Moved from here...
32056 * include/grub/i386/pc/init.h (grub_os_area_addr)
32057 (rub_os_area_size): ... to here.
32058 * include/grub/powerpc/ieee1275/ieee1275.h
32059 (grub_ieee1275_entry_fn): Export symbol.
32060 * include/grub/powerpc/ieee1275/init.h: New file.
32061 * include/grub/powerpc/libgcc.h: Likewise.
32062 * include/grub/cache.h: Likewise.
32063 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
32064 <hollis@penguinppc.org>.
32065 * kern/dl.c: Include <grub/cache.h>.
32066 (grub_dl_flush_cache): New function.
32067 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
32068 for this module.
32069 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
32070 (grub_console_init): Removed prototypes.
32071 (grub_machine_init): Don't initialize the modules anymore.
32072 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
32073 static.
32074 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
32075 Macro undef removed.
32076 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
32077 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
32078 relocation `R_PPC_REL32'. Return an error when the relocation is
32079 unknown.
32080 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
32081 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
32082 * util/misc.c (grub_arch_sync_caches): Likewise.
32083
e4b47e0c 320842004-12-19 Marco Gerards <metgerards@student.han.nl>
32085
32086 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
32087 `symlist.c', add `grubof_symlist.c'.
32088 (symlist.c): Variable removed.
32089 (grubof_HEADERS): Variable added.
32090 (grubof_symlist.c): New target.
32091 (kernel_syms.lst): Use `grubof_HEADERS' instead of
32092 `kernel_img_HEADERS'.
32093 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
32094 * kern/powerpc/dl.c: New file.
32095 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
32096 Function removed.
32097 (grub_arch_dl_relocate_symbols): Likewise.
32098 (grub_register_exported_symbols): Likewise.
32099
4ceb3636 321002004-12-13 Marco Gerards <metgerards@student.han.nl>
32101
32102 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
32103 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
32104 to fail instead. Reported by Vincent Pelletier
32105 <subdino2004@yahoo.fr>.
32106
32107 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
32108 it is not allocated. Reported by Vincent Pelletier
32109 <subdino2004@yahoo.fr>.
32110
32111 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
32112 output so the output looks better.
f19dbdb7 32113
3f1578fe 321142004-12-04 Marco Gerards <metgerards@student.han.nl>
32115
32116 Modulize the partition map support and add support for the amiga
32117 partition map.
f19dbdb7 32118
3f1578fe 32119 * commands/ls.c: Include <grub/partition.h> instead of
32120 <grub/machine/partition.h>.
32121 * kern/disk.c: Likewise.
32122 * kern/rescue.c: Likewise.
32123 * loader/i386/pc/chainloader.c: Likewise.
32124 * normal/cmdline.c: Likewise.
32125 * kern/powerpc/ieee1275/init.c: Likewise.
32126 (grub_machine_init): Call `grub_pc_partition_map_init',
32127 `grub_amiga_partition_map_init' and
32128 `grub_apple_partition_map_init'.
32129 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
32130 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
32131 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
32132 `partition.h' and `pc_partition.h'.
32133 (grub_setup_SOURCES): Remove
32134 `disk/i386/pc/partition.c'. Add `kern/partition.c',
32135 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
32136 (grub_emu_SOURCES): Likewise.
32137 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
32138 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
32139 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
32140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
32141 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
32142 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
32143 (grubof_SOURCES): Likewise.
32144 * disk/i386/pc/partition.c: File removed.
32145 * disk/powerpc/ieee1275/partition.c: Likewise.
32146 * include/grub/powerpc/ieee1275/partition.h: Likewise.
32147 * include/grub/i386/pc/partition.h: Likewise.
32148 * kern/partition.c: New file.
32149 * partmap/amiga.c: Likewise.
32150 * partmap/apple.c: Likewise.
32151 * partmap/pc.c: Likewise.
32152 * include/grub/partition.h: Likewise..
32153 * include/grub/pc_partition.h: Likewise.
32154 * util/grub-emu.c: Include <grub/partition.h> instead of
32155 <grub/machine/partition.h>.
32156 (main): Call `grub_pc_partition_map_init',
32157 `grub_amiga_partition_map_init' and
32158 `grub_apple_partition_map_init' and deinitialize afterwards.
32159 * util/i386/pc/biosdisk.c: Include `#include
32160 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
32161 `<grub/machine/partition.h>'.
32162 * util/i386/pc/grub-setup.c: Likewise.
32163 * util/i386/pc/biosdisk.c: Likewise.
32164 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
32165 partition information in case of a PC partition.
32166 * util/i386/pc/grub-setup.c: Include `#include
32167 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
32168 `<grub/machine/partition.h>'.
32169 (setup): Only access the PC specific partition information in case
32170 of a PC partition.
32171
0ef4ced9 321722004-11-17 Hollis Blanchard <hollis@penguinppc.org>
f19dbdb7 32173
0ef4ced9 32174 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
32175 (grub_longjmp): Likewise.
32176 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
32177 20.
32178 * normal/powerpc/setjmp.S: New file.
32179 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32180 `normal/powerpc/setjmp.S'.
32181 (grubof_CFLAGS): Add `-DGRUBOF'.
32182 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
32183 [GRUB_UTIL && !GRUBOF].
f19dbdb7 32184
19950e29 321852004-11-16 Marco Gerards <metgerards@student.han.nl>
32186
32187 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
32188 property named `name'. Correctly handle the error returned by
32189 `grub_ieee1275_finddevice' if a device can not be opened.
32190
a2fea427 321912004-11-02 Hollis Blanchard <hollis@penguinppc.org>
32192
32193 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
32194 `actual' for negativity.
32195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
32196 kern/fshelp.c.
32197
41ea0ea3 321982004-11-01 Marco Gerards <metgerards@student.han.nl>
32199
32200 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
32201 (PAGE_OFFSET): New macro.
32202 (CRTC_ADDR_PORT): Likewise.
32203 (CRTC_DATA_PORT): Likewise.
32204 (START_ADDR_HIGH_REGISTER): Likewise.
32205 (START_ADDR_LOW_REGISTER): Likewise.
32206 (GRAPHICS_ADDR_PORT): Likewise.
32207 (GRAPHICS_DATA_PORT): Likewise.
32208 (READ_MAP_REGISTER): Likewise.
32209 (INPUT_STATUS1_REGISTER): Likewise.
32210 (INPUT_STATUS1_VERTR_BIT): Likewise.
32211 (page): New variable.
32212 (wait_vretrace): New function.
32213 (set_read_map): Likewise.
32214 (set_start_address): Likewise.
32215 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
32216 the right page.
32217 (check_vga_mem): Take the page into account.
32218 (write_char): Likewise.
32219 (write_cursor): Likewise.
32220 (scroll_up): Likewise. Copy the page to the page that is not
32221 shown and switch between both pages.
32222 (grub_vga_putchar): Fix off by one error.
32223 (grub_vga_cls): Wait for the vertical retrace. Take the page into
32224 account.
32225
ad0bd20b 322262004-11-01 Marco Gerards <metgerards@student.han.nl>
32227
32228 Add support for iso9660 (including rockridge).
f19dbdb7 32229
ad0bd20b 32230 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
32231 (iso9660_mod_SOURCES): New variable.
32232 (iso9660_mod_CFLAGS): Likewise.
32233 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
32234 * include/grub/fs.h (grub_iso9660_init): New prototype.
32235 * util/grub-emu.c (main): Call `grub_iso9660_init'.
32236 * fs/iso9660.c: New file.
32237
32238 * include/grub/misc.h (grub_strncat): New prototype.
32239 * kern/misc.c (grub_strncat): New function.
f19dbdb7 32240
ad0bd20b 32241 * fs/hfs.c (grub_hfs_mount): Translate the error
32242 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
32243 * fs/jfs.c (grub_jfs_mount): Likewise.
32244 * fs/ufs.c (grub_ufs_mount): Likewise.
32245
a5477a59 322462004-10-28 Hollis Blanchard <hollis@penguinppc.org>
32247
32248 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
32249 which initialized BAT registers.
32250 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
32251 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
32252 Move from here...
32253 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
32254 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
32255 ... to here.
32256 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
32257 (grub_mapclaim): Likewise.
32258 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
32259 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
32260 hand.
32261
9304c1f8 322622004-10-19 Hollis Blanchard <hollis@penguinppc.org>
32263
32264 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
32265 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
32266 -ffreestanding and -msoft-float.
32267
86f4ae25 322682004-10-15 Hollis Blanchard <hollis@penguinppc.org>
32269
32270 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
32271 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
32272 set in grub_ieee1275_flags.
32273
38912228 322742004-10-14 Hollis Blanchard <hollis@penguinppc.org>
32275
32276 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
32277 prototype.
32278 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
32279 grub_console_init first.
32280 Change the memory range used for grub_ieee1275_claim and
32281 grub_mm_init_region.
32282 Print an error message if the claim fails.
32283 Include <grub/misc.h>.
32284
d1923dc8 322852004-10-13 Hollis Blanchard <hollis@penguinppc.org>
32286
32287 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
32288 Call grub_children_iterate for device nodes of type `scsi',
32289 `ide', or `ata'.
32290 (grub_ofdisk_open): Remove manual device alias resolution.
32291 Fix memory leak when device cannot be opened.
f19dbdb7 32292 * include/grub/powerpc/ieee1275/ieee1275.h
d1923dc8 32293 (grub_children_iterate): New prototype.
32294 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
32295 New function.
32296 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32297 Return -1 if args.size was -1.
32298
4512e4f3 322992004-10-11 Hollis Blanchard <hollis@penguinppc.org>
32300
32301 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
32302 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
32303 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
32304 Open Firmware's memory for it; claim memory from _start to _end.
32305 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
32306 (_end): New extern.
32307 (_start): Zero BSS from __bss_start to _end.
32308 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
32309 New extern.
32310 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
32311
4d61feb0 323122004-10-11 Hollis Blanchard <hollis@penguinppc.org>
32313
ad0bd20b 32314 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
32315 -1 if args.base was -1.
4d61feb0 32316
026fa2f9 323172004-10-08 Hollis Blanchard <hollis@penguinppc.org>
32318
32319 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
32320 escape sequence instead of a literal ^L. Also call
32321 grub_ofconsole_gotoxy.
32322
9f2220ef 323232004-10-03 Hollis Blanchard <hollis@penguinppc.org>
32324
32325 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
32326 void * arguments to grub_addr_t. All callers updated. Also make
32327 the `result' argument optional.
32328 (grub_ieee1275_release): change void * arguments to grub_addr_t.
32329 All callers updated.
32330
8a572cd7 323312004-09-22 Hollis Blanchard <hollis@penguinppc.org>
32332
32333 * commands/ls.c (grub_ls_list_files): Use the string following the
32334 initial ')', if present, as the filesystem path.
32335 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
32336
32337 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
32338
18aa81f2 323392004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
32340
32341 Make the source code of the menu interface more readable.
f19dbdb7 32342
18aa81f2 32343 * normal/menu.c: Include grub/mm.h.
32344 (TERM_WIDTH): New macro.
32345 (TERM_HEIGHT): Likewise.
32346 (TERM_INFO_HEIGHT): Likewise.
32347 (TERM_MARGIN): Likewise.
32348 (TERM_SCROLL_WIDTH): Likewise.
32349 (TERM_TOP_BORDER_Y): Likewise.
32350 (TERM_LEFT_BORDER_X): Likewise.
32351 (TERM_BORDER_WIDTH): Likewise.
32352 (TERM_MESSAGE_HEIGHT): Likewise.
32353 (TERM_BORDER_HEIGHT): Likewise.
32354 (TERM_NUM_ENTRIES): Likewise.
32355 (TERM_FIRST_ENTRY_Y): Likewise.
32356 (TERM_ENTRY_WIDTH): Likewise.
32357 (TERM_CURSOR_X): Likewise.
32358 (draw_border): Use macros instead of magic numbers.
32359 (print_entry): Likewise.
32360 (print_entries): Likewise.
32361 (run_menu): Likewise. Also, handle the key 'e'.
32362 (run_menu_entry): Ignore empty command lines.
32363 (print_message): Added a new argument EDIT. If EDIT is true,
32364 print a different message.
32365 (init_page): Likewise.
32366 (edit_menu_entry): New function. Not implemented yet.
32367
b47efe30 323682004-09-17 Marco Gerards <metgerards@student.han.nl>
32369
32370 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
32371 can be loaded from normal mode.
f19dbdb7 32372
b47efe30 32373 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
32374 `multiboot.mod'.
32375 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
32376 (multiboot_mod_CFLAGS): New variables.
32377 * loader/i386/pc/linux_normal.c: New file.
f19dbdb7 32378 * loader/i386/pc/multiboot_normal.c: Likewise.
32379
b47efe30 32380 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
32381 attribute `unused'.
f19dbdb7 32382
b47efe30 32383 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
32384 `fdiro' to read the mode information from instead of `diro'.
32385
32386 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
32387 looking up a symlink.
32388
32389 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
32390 macro.
32391 * normal/command.c (grub_command_execute): Don't parse the
32392 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
32393 flags of the command.
32394
32395 * normal/menu.c (grub_menu_run): Fix typo.
32396
da75ac71 323972004-09-14 Hollis Blanchard <hollis@penguinppc.org>
32398
32399 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
32400
32401 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
32402 `y + 1' instead of `y - 1'.
32403
32404 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
f19dbdb7 32405
062b24c2 324062004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
32407
32408 From Hollis Blanchard <hollis@penguinppc.org>:
32409 * kern/misc.c (memmove): New alias for grub_memmove.
32410 (memcmp): New alias for grub_memcmp.
32411 (memset): New alias for grub_memset.
f19dbdb7 32412 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
062b24c2 32413 Change "int handle" to "grub_ieee1275_phandle_t handle".
f19dbdb7 32414 * include/grub/powerpc/ieee1275/ieee1275.h
062b24c2 32415 (grub_ieee1275_get_property): Likewise.
f19dbdb7 32416
8ddad845 324172004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
32418
32419 Added normal mode command `chainloader' as module chain.mod, which
32420 depends on normal.mod and _chain.mod.
f19dbdb7 32421
8ddad845 32422 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
32423 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
32424 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
32425 Deleted prototype.
32426 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
32427 but arguments parsing moved to ...
32428 (grub_chainloader_cmd): ... here. New function.
32429 * include/grub/i386/pc/chainloader.h: New file.
32430 * loader/i386/pc/chainloader_normal.c: Likewise.
32431
2c1f4ce3 324322004-09-11 Marco Gerards <metgerards@student.han.nl>
32433
32434 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
32435 (grub_mkimage_LDFLAGS): Likewise.
32436 (grub_emu_SOURCES): Likewise.
32437 (kernel_img_HEADERS): Added fshelp.h.
32438 * fs/ext2.c: Include <grub/fshelp.h>.
32439 (FILETYPE_REG): New macro.
32440 (FILETYPE_INO_REG): Likewise.
32441 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
32442 Changed all users.
32443 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
32444 all users.
32445 (grub_fshelp_node): New struct.
32446 (grub_ext2_data): Added member `diropen'. Changed member `inode'
32447 to a pointer.
32448 (grub_ext2_get_file_block): Removed function.
32449 (grub_ext2_read_block): New function.
32450 (grub_ext2_read_file): Replaced parameter `data' by `node'.
32451 This function was written.
32452 (grub_ext2_mount): Read the root inode. Create a diropen struct.
32453 (grub_ext2_find_file): Removed function.
32454 (grub_ext2_read_symlink): New function.
32455 (grub_ext2_iterate_dir): Likewise.
32456 (grub_ext2_open): Rewritten.
32457 (grub_ext2_dir): Rewritten.
32458 * include/grub/fshelp.h: New file.
32459 * fs/fshelp.c: Likewise.
32460
3c52136a 324612004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
32462
32463 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
32464 (print_message): Add a missing newline.
32465 (run_menu): Added timeout support.
32466 (run_menu_entry): New local function.
32467 (grub_menu_run): Added support for booting.
32468
32469 * kern/loader.c (grub_loader_is_loaded): New function.
32470
32471 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
32472 (grub_get_rtc): Exported.
32473
32474 * include/grub/i386/pc/time.h: Include grub/symbol.h.
32475 (grub_get_rtc): Exported.
32476
32477 * include/grub/normal.h (struct grub_command_list): Remove
32478 constant from the member `command'.
32479
32480 * include/grub/loader.h (grub_loader_is_loaded): Declared.
32481
32482 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
32483
32484 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
32485
aa033560 324862004-08-28 Marco Gerards <metgerards@student.han.nl>
32487
32488 Add support for the JFS filesystem.
32489
32490 * fs/jfs.c: New file.
32491 * include/grub/fs.h (grub_jfs_init): New prototype.
32492 (grub_jfs_fini): New prototype.
32493 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
32494 (grub_emu_SOURCES): Likewise.
32495 (pkgdata_MODULES): Add jfs.mod.
32496 (jfs_mod_SOURCES): New variable.
32497 (jfs_mod_CFLAGS): Likewise.
32498 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
32499 (grubof_SOURCES): Likewise.
32500 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
32501
32502 * fs/fat.c (grub_fat_find_dir): Convert the filename little
32503 endian to the host endian.
32504 (grub_fat_utf16_to_utf8): Move function from there...
32505 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
fe987087 32506 the endianness of the source string anymore.
aa033560 32507 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
32508
94bc45af 325092004-08-24 Marco Gerards <metgerards@student.han.nl>
32510
32511 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
32512 (grub_boot_fini) [GRUB_UTIL]: Likewise.
32513 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
32514 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
f19dbdb7 32515
94bc45af 32516 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
32517 (grub_hfs_iterate_dir): Make the function static. Add prototypes
32518 for `node_found' and `it_dir'.
32519 (grub_hfs_dir): Add prototype for `dir_hook'.
32520
32521 * fs/minix.c (grub_minix_get_file_block): Add prototype for
32522 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
32523 and `indir32' to silence a gcc warning.
32524
32525 * include/grub/fs.h (grub_hfs_init): New prototype.
32526 (grub_hfs_fini): Likewise.
f19dbdb7 32527
32528
97543f08 325292004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
32530
32531 Each disk device has its own id now. This is useful to make use
32532 of multiple disk devices.
f19dbdb7 32533
97543f08 32534 * include/grub/disk.h (grub_disk_dev_id): New enum.
32535 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
32536 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
32537
32538 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
32539 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32540
32541 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
32542 GRUB_DISK_DEVICE_OFDISK_ID as an id.
32543
32544 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
32545 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
32546
32547 * include/grub/disk.h (struct grub_disk_dev): Added a new member
32548 "id" which is used by the cache manager.
32549
32550 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
32551 of just "GRUB".
32552
64372eb4 325532004-08-18 Marco Gerards <metgerards@student.han.nl>
32554
32555 * fs/hfs.c: New file.
32556 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
32557 (grub_emu_SOURCES): Likewise.
32558 (pkgdata_MODULES): Add hfs.mod.
32559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
32560 (grubof_SOURCES): Likewise.
32561 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
32562
32563 * include/grub/misc.h (grub_strncasecmp): Add prototype.
32564 * kern/misc.c (grub_strncasecmp): Add function.
32565
cc61b58f 325662004-08-14 Marco Gerards <metgerards@student.han.nl>
32567
32568 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
32569 with parentheses.
32570
32571 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
32572 (grub_ext2_dir): In case the directory entry type is unknown, read
32573 it from the inode.
32574
0ef123f6 325752004-08-02 Peter Bruin <pjbruin@dds.nl>
32576
32577 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
32578 grub_load_linux instead of grub_rescue_cmd_linux as second
32579 argument of grub_rescue_register_command.
32580
32581 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
32582
a447c5df 325832004-07-27 Marco Gerards <metgerards@student.han.nl>
32584
32585 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
32586 function.
32587 * commands/boot.c: Remove the check for `GRUB_UTIL'.
32588 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
32589 `loader/powerpc/ieee1275/linux.c',
32590 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
32591 * include/grub/powerpc/ieee1275/ieee1275.h
32592 (grub_ieee1275_release): New prototype.
32593 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
32594 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
32595 normal, boot, linux and linux_normal.
32596 * loader/powerpc/ieee1275/linux.c: New file.
32597 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
32598
5a9e3546 325992004-07-12 Marco Gerards <metgerards@student.han.nl>
32600
32601 * normal/arg.c (grub_arg_parse): Correct error handling after
32602 reallocating the argumentlist (check if `argl' is not null instead
32603 of checking if `args' is not null).
32604 * kern/mm.c (grub_realloc): Return the same pointer when using the
32605 same region, instead of returning the header address.
32606
e15199cb 326072004-07-11 Marco Gerards <metgerards@student.han.nl>
32608
32609 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
32610 one block instead of two when looking for the initial partition.
32611 (grub_partition_probe): Initialize the local variable `p' with 0.
32612 Use base 10 for the grub_strtoul call.
32613 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
32614 need for one local variable.
32615 (grub_strtoul): Don't add the new value to `num', instead of that
32616 just assign it.
32617
020616c2 326182004-07-11 Marco Gerards <metgerards@student.han.nl>
32619
32620 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
32621 (pxeboot_img_SOURCES): New variable.
32622 (pxeboot_img_ASFLAGS): Likewise.
32623 (pxeboot_img_LDFLAGS): Likewise.
32624 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
32625 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
32626 <lode_leroy@hotmail.com>.
32627
6c51eb64 326282004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32629
32630 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
32631 there was no input.
32632
cfb12aff 326332004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32634
32635 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
32636 the history buffer logic.
32637
6eabba74 326382004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
32639
32640 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
32641 (FILETYPE_INO_SYMLINK): New macros.
32642 (grub_ext2_find_file): Check if the node is a directory using the
32643 inode stat information instead of using the filetype in the
32644 dirent. Exclude the first character of an absolute symlink.
32645 (grub_ext2_dir): Mask out the filetype part of the mode member of
32646 the inode.
32647
66e19ef8 326482004-05-24 Marco Gerards <metgerards@student.han.nl>
32649
32650 Add support for UFS version 1 and 2. Add support for the minix
32651 filesystem version 1 and 2, both the variants with 14 and 30 long
32652 filenames.
f19dbdb7 32653
66e19ef8 32654 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
32655 fs/minix.c.
32656 (grub_emu_SOURCES): Likewise.
32657 (pkgdata_MODULES): Add ufs.mod and minix.mod.
32658 (ufs_mod_SOURCES): New variable.
32659 (ufs_mod_CFLAGS): Likewise.
32660 (minix_mod_SOURCES): Likewise.
32661 (minix_mod_CFLAGS): Likewise.
32662 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
32663 fs/minix.c.
32664 (grubof_SOURCES): Likewise.
32665 * fs/ufs.c: New file.
32666 * fs/minix.c: New file.
32667 * include/grub/fs.h (grub_ufs_init): New prototype.
32668 (grub_ufs_fini): Likewise.
32669 (grub_minix_init): Likewise.
32670 (grub_minix_fini): Likewise.
32671 * util/grub-emu.c (main): Initialize and deinitialize UFS and
32672 minix fs.
32673
cc2e748a 326742004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
32675
32676 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
32677 commands/ls.c, commands/terminal.c, commands/boot.c,
32678 commands/cmp.c and commands/cat.c.
32679 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
32680
32681 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
32682 "env.h"
32683
4b13b216 326842004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32685
32686 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
32687 and grub_, respectively. Because the conversion is trivial and
32688 mechanical, I omit the details here. Please refer to the CVS
32689 if you need more information.
32690
6a142551 326912004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32692
32693 * include/pupa: Renamed to ...
32694 * include/grub: ... this.
32695 * util/i386/pc/pupa-mkimage.c: Renamed to ...
32696 * util/i386/pc/grub-mkimage.c: ... this.
32697 * util/i386/pc/pupa-setup.c: Renamed to ...
32698 * util/i386/pc/grub-setup.c: ... this.
32699 * util/pupa-emu.c: Renamed to ...
32700 * util/grub-emu.c: ... this.
32701
e56cdf21 327022004-03-29 Marco Gerards <metgerards@student.han.nl>
32703
32704 Add support for the newworld apple macintosh (PPC). This has been
32705 tested on the powerbook 2000 only. It only adds support for
32706 generic ieee1275 functions, console and disk support. This should
32707 be easy to port to other architectures with support for Open
32708 Firmware.
f19dbdb7 32709
e56cdf21 32710 * configure.ac: Accept the powerpc as host_cpu. In the case of
32711 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
32712 specific tests are only executed while building for the i386.
32713 Inverse test for crosscompile.
32714 * genmk.rb (Utility): Allow assembler files.
32715 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
32716 * conf/powerpc-ieee1275.rmk: New file.
32717 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
32718 * disk/powerpc/ieee1275/partition.c: Likewise.
32719 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
32720 * include/pupa/powerpc/ieee1275/console.h: Likewise.
32721 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
32722 * include/pupa/powerpc/ieee1275/time.h: Likewise.
32723 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
32724 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
32725 * include/pupa/powerpc/ieee1275/loader.h
32726 * include/pupa/powerpc/setjmp.h: Likewise.
32727 * include/pupa/powerpc/types.h: Likewise.
32728 * kern/powerpc/ieee1275/init.c: Likewise.
32729 * kern/powerpc/ieee1275/openfw.c: Likewise.
32730 * term/powerpc/ieee1275/ofconsole.c: Likewise.
32731
32732 These files were written by Johan Rydberg
32733 (jrydberg@night.trouble.net) and I only modified them slightly.
f19dbdb7 32734
e56cdf21 32735 * boot/powerpc/ieee1275/cmain.c: New file.
32736 * boot/powerpc/ieee1275/crt0.S: Likewise.
32737 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
32738 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
32739
8c8cc205 327402004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
32741
32742 * Makefile.in: Update copyright.
32743 * genmodsrc.sh: Likewise.
32744 * gensymlist.sh: Likewise.
32745 * term/i386/pc/vga.c: Indent correctly.
32746
32747 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
32748 bugreporting address.
32749 * util/i386/pc/pupa-setup.c (usage): Likewise,
32750 (main): Call pupa_ext2_init and pupa_ext2_fini.
32751
f19dbdb7 32752 * fs/fat.c (log2): Renamed to ...
8c8cc205 32753 (fat_log2): ... this.
32754 All callers changed.
32755 * kern/misc.c (memcpy): Alias to pupa_memmove.
32756 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
32757 lvalue cast.
32758 * util/console.c (pupa_ncurses_fini): Return 0.
32759
32760 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
32761 Move fail label here.
32762 [__GNU__]: Don't warn when using stat.
32763 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
32764 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
32765 long int. Use strtol instead of strtoul.
f19dbdb7 32766
db1771cf 327672004-03-14 Marco Gerards <metgerards@student.han.nl>
32768
32769 * commands/boot.c: New file.
32770 * commands/cat.c: Likewise.
32771 * commands/cmp.c: Likewise.
32772 * commands/ls.c: Likewise.
32773 * commands/terminal.c: Likewise.
32774 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
32775 (pupa_register_command): Changed interface to match the new
32776 argument parser.
32777 (pupa_command_execute): Changed (almost rewritten) so it uses
32778 pupa_split_command. Added support for setting variables using the
32779 syntax `foo=bar'.
32780 (rescue_command): Changed to work with the new argument parser.
32781 (terminal_command): Moved from here to commands/terminal.c.
32782 (set_command): New function.
32783 (unset_command): New function.
32784 (insmod_command): New function.
32785 (rmmod_command): New function.
32786 (lsmod_command): New function.
32787 (pupa_command_init): Don't initialize the command terminal
32788 anymore. Initialize the commands set, unset, insmod, rmmod and
32789 lsmod.
32790 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
32791 (kernel_img_HEADERS): Add arg.h and env.h.
32792 (pupa_mkimage_LDFLAGS): Add kern/env.c.
32793 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
32794 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
32795 normal/arg.c.
32796 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
32797 terminal.mod.
32798 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
32799 (boot_mod_SOURCES): New variable.
32800 (terminal_mod_SOURCES): Likewise.
32801 (ls_mod_SOURCES): Likewise.
32802 (cmp_mod_SOURCES): Likewise.
32803 (cat_mod_SOURCES): Likewise.
32804
32805 * normal/arg.c: New file.
32806 * kern/env.c: Likewise.
32807 * include/pupa/arg.h: Likewise.
32808 * include/pupa/env.h: Likewise.
32809 * font/manager.c (font_command): Changed to match argument parsing
32810 interface changes.
32811 (PUPA_MOD_INIT): Likewise.
32812 * hello/hello.c (pupa_cmd_hello): Likewise.
32813 (PUPA_MOD_INIT): Likewise.
32814 * include/pupa/disk.h: Include <pupa/device.h>.
32815 (pupa_print_partinfo): New prototype.
32816 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
32817 (pupa_dl_get_prefix): Likewise.
32818 * include/pupa/misc.h: Include <pupa/err.h>.
32819 (pupa_isgraph): New prototype.
32820 (pupa_isdigit): Likewise.
32821 (pupa_split_cmdline): Likewise.
32822 * include/pupa/normal.h: Include <pupa/arg.h>.
32823 (pupa_command): Changed the prototype of the member `func' to
32824 match the argument parsing interface. Added member `options'.
32825 (pupa_register_command): Updated to match function.
32826 (pupa_arg_parse): New prototype.
32827 (pupa_hello_init) [PUPA_UTIL]: New prototype.
32828 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
32829 (pupa_ls_init) [PUPA_UTIL]: Likewise.
32830 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
32831 (pupa_cat_init) [PUPA_UTIL]: Likewise.
32832 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
32833 (pupa_boot_init) [PUPA_UTIL]: Likewise.
32834 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
32835 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
32836 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
32837 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
32838 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
32839 * kern/disk.c: Include <pupa/file.h>.
32840 (pupa_print_partinfo): New function.
32841 * kern/dl.c: Include <pupa/env.h>.
32842 (pupa_dl_dir): Variable removed.
32843 (pupa_dl_load): Use the environment variable `prefix' instead of
32844 the variable pupa_dl_dir.
32845 (pupa_dl_set_prefix): Function removed.
32846 (pupa_dl_get_prefix): Likewise.
32847 * kern/i386/pc/init.c: Include <pupa/env.h>.
32848 (pupa_machine_init): Use the environment variable `prefix' instead of
32849 using pupa_dl_set_prefix to set the prefix.
32850 * kern/main.c: Include <pupa/env.h>.
32851 (pupa_set_root_dev): Use the environment variable `prefix' instead of
32852 using pupa_dl_get_prefix to get the prefix.
32853 * kern/misc.c: Include <pupa/env.h>.
32854 (pupa_isdigit): New function.
32855 (pupa_isgraph): Likewise.
32856 (pupa_ftoa): Likewise.
32857 (pupa_vsprintf): Added support for printing values of the type
32858 `double'. Make it possible to format variable output when using
32859 formatting like `%1.2%f'.
32860 (pupa_split_cmdline): New function.
32861 * kern/rescue.c: Include <pupa/env.h>.
32862 (next_word): Removed function.
32863 (pupa_rescue_cmd_prefix): Likewise.
32864 (pupa_rescue_cmd_set): New function.
32865 (pupa_rescue_cmd_unset): New function.
32866 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
32867 split the command line instead of splitting it here. Added
32868 support for setting variables using the syntax `foo=bar'. Don't
32869 initialize the prefix command anymore. Initialized the set and
32870 unset commands.
32871 * normal/cmdline.c: Include <pupa/env.h>.
32872 (pupa_tab_complete): Added prototypes for print_simple_completion,
32873 print_partition_completion, add_completion, iterate_commands,
32874 iterate_dev, iterate_part and iterate_dir. Moved code to print
32875 partition information from here to kern/disk.c.
fe6b695a 32876 (pupa_cmdline_run): Don't check if the function exists anymore.
db1771cf 32877 * normal/main.c: Include <pupa/env.h>.
32878 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
32879 instead of using pupa_dl_get_prefix to get the prefix.
32880 * term/i386/pc/vga.c: Include <pupa/arg.h>.
32881 (check_vga_mem): Cast pointers to `void *' to silence a gcc
32882 warning.
32883 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
32884 (pupa_vga_setcolor): Declare unused variables with `__attribute__
32885 ((unused))' to silence a gcc warning.
32886 (pupa_vga_setcolor): Likewise.
32887 (debug_command): Changed to match argument parsing
32888 interface changes.
32889 * util/pupa-emu.c: Include <pupa/env.h>.
32890 (options): Added 0's for unused fields to silence a gcc warning.
32891 (argp): Likewise.
32892 (main): Use the environment variable `prefix' instead of using
32893 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
32894 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
32895 and terminal.
32896
32897 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
32898 * util/misc.c: Include <malloc.h>.
32899 (pupa_malloc): Rewritten so errors are correctly reported.
32900 (pupa_realloc): Likewise.
32901 (pupa_memalign): Likewise.
32902 (pupa_mm_init_region): Declare unused variables with
32903 `__attribute__ ((unused))' to silence a gcc warning.
32904 * normal/i386/setjmp.S: Remove tab at the end of the file to
32905 silence a gcc warning.
32906 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
32907 variables with `__attribute__ ((unused))' to silence a gcc
32908 warning.
32909 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
32910 local variable i unsigned to silence a gcc warning.
32911
32912 * kern/term.c: Include <pupa/misc.h>.
32913 (pupa_more_lines): New variable.
32914 (pupa_more): Likewise.
32915 (pupa_putcode): When the pager is active pause at the end of every
32916 screen.
32917 (pupa_set_more): New function.
32918 * include/pupa/term.h (pupa_set_more): New prototype.
32919
32920
3b1139cb 329212004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
32922
32923 Now this project is GRUB 2 rather than PUPA. The location of
32924 the CVS repository was moved to GRUB's.
f19dbdb7 32925
3b1139cb 32926 * configure.ac: Use bug-grub as the reporting address.
32927 Use GRUB instead of PUPA.
32928 Change the version number to 1.90.
32929
8367695c 329302004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
32931
32932 * genkernsyms.sh: Updated copyright information.
32933 * genmk.rb: Likewise.
32934 * genmodsrc.sh: Likewise.
32935 * gensymlist.sh: Likewise.
32936 * boot/i386/pc/boot.S: Likewise.
32937 * boot/i386/pc/diskboot.S: Likewise.
32938 * disk/i386/pc/biosdisk.c: Likewise.
32939 * disk/i386/pc/partition.c: Likewise.
32940 * font/manager.c: Likewise.
32941 * fs/ext2.c: Likewise.
32942 * fs/fat.c: Likewise.
32943 * include/pupa/boot.h: Likewise.
32944 * include/pupa/device.h: Likewise.
32945 * include/pupa/disk.h: Likewise.
32946 * include/pupa/dl.h: Likewise.
32947 * include/pupa/elf.h: Likewise.
32948 * include/pupa/err.h: Likewise.
32949 * include/pupa/file.h: Likewise.
32950 * include/pupa/font.h: Likewise.
32951 * include/pupa/fs.h: Likewise.
32952 * include/pupa/kernel.h: Likewise.
32953 * include/pupa/loader.h: Likewise.
32954 * include/pupa/misc.h: Likewise.
32955 * include/pupa/mm.h: Likewise.
32956 * include/pupa/net.h: Likewise.
32957 * include/pupa/normal.h: Likewise.
32958 * include/pupa/rescue.h: Likewise.
32959 * include/pupa/setjmp.h: Likewise.
32960 * include/pupa/symbol.h: Likewise.
32961 * include/pupa/term.h: Likewise.
32962 * include/pupa/types.h: Likewise.
32963 * include/pupa/i386/setjmp.h: Likewise.
32964 * include/pupa/i386/types.h: Likewise.
32965 * include/pupa/i386/pc/biosdisk.h: Likewise.
32966 * include/pupa/i386/pc/boot.h: Likewise.
32967 * include/pupa/i386/pc/console.h: Likewise.
32968 * include/pupa/i386/pc/init.h: Likewise.
32969 * include/pupa/i386/pc/kernel.h: Likewise.
32970 * include/pupa/i386/pc/linux.h: Likewise.
32971 * include/pupa/i386/pc/loader.h: Likewise.
32972 * include/pupa/i386/pc/memory.h: Likewise.
32973 * include/pupa/i386/pc/multiboot.h: Likewise.
32974 * include/pupa/i386/pc/partition.h: Likewise.
32975 * include/pupa/i386/pc/time.h: Likewise.
32976 * include/pupa/i386/pc/vga.h: Likewise.
32977 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
32978 * include/pupa/util/getroot.h: Likewise.
32979 * include/pupa/util/misc.h: Likewise.
32980 * include/pupa/util/resolve.h: Likewise.
32981 * kern/device.c: Likewise.
32982 * kern/disk.c: Likewise.
32983 * kern/dl.c: Likewise.
32984 * kern/err.c: Likewise.
32985 * kern/file.c: Likewise.
32986 * kern/fs.c: Likewise.
32987 * kern/loader.c: Likewise.
32988 * kern/main.c: Likewise.
32989 * kern/misc.c: Likewise.
32990 * kern/mm.c: Likewise.
32991 * kern/rescue.c: Likewise.
32992 * kern/term.c: Likewise.
32993 * kern/i386/dl.c: Likewise.
32994 * kern/i386/pc/init.c: Likewise.
32995 * kern/i386/pc/lzo1x.S: Likewise.
32996 * kern/i386/pc/startup.S: Likewise.
32997 * loader/i386/pc/chainloader.c: Likewise.
32998 * loader/i386/pc/linux.c: Likewise.
32999 * loader/i386/pc/multiboot.c: Likewise.
33000 * normal/cmdline.c: Likewise.
33001 * normal/command.c: Likewise.
33002 * normal/main.c: Likewise.
33003 * normal/menu.c: Likewise.
33004 * normal/i386/setjmp.S: Likewise.
33005 * term/i386/pc/console.c: Likewise.
33006 * term/i386/pc/vga.c: Likewise.
33007 * util/console.c: Likewise.
33008 * util/genmoddep.c: Likewise.
33009 * util/misc.c: Likewise.
33010 * util/pupa-emu.c: Likewise.
33011 * util/resolve.c: Likewise.
33012 * util/unifont2pff.rb: Likewise.
33013 * util/i386/pc/biosdisk.c: Likewise.
33014 * util/i386/pc/getroot.c: Likewise.
33015 * util/i386/pc/pupa-mkimage.c: Likewise.
33016 * util/i386/pc/pupa-setup.c: Likewise.
33017
e6eced71 330182004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
33019
33020 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
33021 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
33022 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
33023 reading and reset it after reading.
33024 (pupa_ext2_close): Return PUPA_ERR_NONE.
33025
33026 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
33027 Correct value.
33028 (struct linux_kernel_header): Add kernel_version and
33029 initrd_addr_max.
33030 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
33031 pupa_file_read succeeds.
33032 (pupa_rescue_cmd_initrd): Implement.
33033
5aded270 330342003-12-03 Marco Gerards <metgerards@student.han.nl>
33035
33036 * fs/ext2.c (pupa_ext2_label): New function.
33037 (pupa_ext2_fs): Added label.
33038 * fs/fat.c (pupa_fat_label): New function.
33039 (pupa_fat_fs): Added label.
33040 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
33041
33042 * kern/misc.c (pupa_strndup): New function.
33043 * include/pupa/misc.h (pupa_strndup): New prototype.
33044
33045 * include/pupa/normal.h: Include <pupa/err.h>.
33046 (pupa_set_history): New prototype.
33047 (pupa_iterate_commands): New prototype.
33048 * normal/cmdline.c: Include <pupa/machine/partition.h>,
33049 <pupa/disk.h>, <pupa/file.h>.
33050 (hist_size): New variable.
33051 (hist_lines): Likewise.
33052 (hist_end): Likewise.
33053 (hist_used): Likewise.
33054 (pupa_set_history): New function.
33055 (pupa_history_get): Likewise.
33056 (pupa_history_add): Likewise.
33057 (pupa_history_replace): Likewise.
33058 (pupa_tab_complete): Likewise.
33059 (pupa_cmdline_run): Added tab completion and history buffer. Tab
33060 completion shows partitionnames while completing partitions, this
33061 feature was suggested by Jeff Bailey.
33062 * normal/command.c (pupa_iterate_commands): New function.
33063 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
33064 (pupa_normal_init): Initialize history buffer.
33065 (PUPA_MOD_INIT): Likewise.
33066 (pupa_normal_fini): Free the history buffer.
33067 (PUPA_MOD_FINI): Likewise.
33068
33069 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
33070 key.
33071
33072 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
33073 * configure.ac [i386]: Check for regparam bug.
33074 (NESTED_FUNC_ATTR) [! i386]: Defined.
33075
1f7315a3 330762003-11-17 Marco Gerards <metgerards@student.han.nl>
33077
33078 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
33079 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
33080 (pupa_emu_SOURCES): New variable.
33081 (pupa_emu_LDFLAGS): Likewise.
33082 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
33083 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
33084 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
33085 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
33086 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
33087 (pupa_jmp_buf): New typedef.
33088 (pupa_setjmp) [PUPA_UTIL]: New macro.
33089 (pupa_longjmp) [PUPA_UTIL]: Likewise.
33090 * include/pupa/term.h (struct pupa_term): New member `refresh'.
33091 (pupa_refresh): New prototype.
33092 * include/pupa/util/getroot.h: New file.
33093 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
33094 it.
33095 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
33096 (pupa_rescue_cmd_cat): Likewise.
33097 (pupa_rescue_cmd_ls): Likewise.
33098 (pupa_rescue_cmd_testload): Likewise.
33099 (pupa_rescue_cmd_lsmod): Likewise.
33100 * normal/cmdline.c (pupa_cmdline_get): Likewise.
33101 * normal/menu.c (run_menu): Likewise.
33102 * kern/term.c (pupa_cls): Likewise.
33103 (pupa_refresh): New function.
33104 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
33105 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
33106 * util/console.c: New file.
f19dbdb7 33107
1f7315a3 33108 * util/i386/pc/getroot.c: New file.
33109 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
33110 (pupa_putchar): New function.
33111 (pupa_refresh): Likewise.
33112 (xgetcwd): Function moved to ...
33113 (strip_extra_slashes): Likewise.
33114 (get_prefix): Likewise.
f19dbdb7 33115 * util/i386/pc/getroot.c: ... here.
1f7315a3 33116 (find_root_device): Function moved and renamed to...
33117 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
33118 Changed all callers.
33119 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
33120 and renamed to...
33121 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
33122 Changed all callers.
33123 * util/misc.c (pupa_memalign): New function.
33124 (pupa_mm_init_region): Likewise.
33125 (pupa_register_exported_symbols): Likewise.
33126 (pupa_putchar): Function removed.
33127 * util/pupa-emu.c: New file.
33128
9a5c1ade 331292003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
33130
33131 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
33132 (_multiboot_mod_SOURCES): New variable.
33133 (_multiboot_mod_CFLAGS): Likewise.
33134 * loader/i386/pc/multiboot.c: New file.
33135 * include/pupa/i386/pc/multiboot.h: Likewise.
33136 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
33137 (pupa_multiboot_real_boot): New function.
33138 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
33139 (pupa_multiboot_real_boot): New prototype.
33140 (pupa_rescue_cmd_multiboot): Likewise
33141 (pupa_rescue_cmd_module): Likewise.
33142
33143 * kern/loader.c (pupa_loader_set): Continue when
33144 pupa_loader_unload_func() fails.
33145 (pupa_loader_unset): New function.
33146 * include/pupa/loader.h (pupa_loader_unset): New prototype.
33147
33148 * kern/misc.c (pupa_stpcpy): New function.
33149 * include/pupa/misc.h (pupa_stpcpy): New prototype.
33150
8e72a9c0 331512003-11-12 Marco Gerards <metgerards@student.han.nl>
33152
33153 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
33154 for available extensions.
33155
33156 * include/pupa/i386/pc/time.h: New file.
33157 * kern/disk.c: Include <pupa/machine/time.h>.
33158 (PUPA_CACHE_TIMEOUT): New macro.
33159 (pupa_last_time): New variable.
33160 (pupa_disk_open): Flush the cache when there was a timeout.
33161 (pupa_disk_close): Reset the timer.
33162 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
33163 pupa_currticks.
33164 * util/misc.c: Include <sys/times.h>
33165 (pupa_get_rtc): New function.
33166
c4adbd32 331672003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
33168
33169 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
33170 as blocks.
33171 (pupa_ext2_get_file_block): Use blocks member.
33172
33173 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
33174 first block. Return -1 instead of pupa_errno on error.
33175
bfd30f06 331762003-10-27 Marco Gerards <metgerards@student.han.nl>
33177
33178 * README: In the pupa-mkimage example use _chain instead of chain
33179 and ext2 instead of fat.
33180 * TODO: Replace ext2fs with jfs as an example. Add an item for
33181 adding journal playback for ext2fs.
33182 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
33183 (pkgdata_MODULES): Added ext2.mod.
33184 (ext2_mod_SOURCES): New variable.
33185 (ext2_mod_CFLAGS): Likewise.
33186 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
33187 * include/pupa/misc.h (pupa_strncpy): New prototype.
33188 (pupa_strcat): Likewise.
33189 (pupa_strncmp): Likewise.
33190 * kern/misc.c (pupa_strcat): Enable function.
33191 (pupa_strncpy): New function.
33192 (pupa_strncmp): Likewise.
33193 * fs/ext2.c: New file.
f19dbdb7 33194
bfd30f06 33195 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
33196 when the read failed before retrying.
33197 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
33198 (_FILE_OFFSET_BITS): Likewise.
33199 * configure.ac: Added AC_SYS_LARGEFILE.
33200
98d15063 332012003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
33202
33203 * genmk.rb (PModule#rule): Make sure to get only symbol names
33204 from the output of nm.
59cad637 33205 Reported by Robert Millan <rmh.grub@aybabtu.com>.
98d15063 33206
18d9c7cd 332072003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
33208
33209 I forgot to check in these changes for a long time. This adds
33210 incomplete support for VGA console, and this is still very
33211 buggy. Also, a lot of consideration is required for I18N,
33212 UNICODE, and VGA font issues. Therefore, assume that this is
33213 such that "better than nothing".
f19dbdb7 33214
18d9c7cd 33215 * font/manager.c: New file.
33216 * include/pupa/font.h: Likewise.
33217 * include/pupa/i386/pc/vga.h: Likewise.
33218 * term/i386/pc/vga.c: Likewise.
33219 * util/unifont2pff.rb: Likewise.
33220
33221 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
33222 (pkgdata_MODULES): Added vga.mod and font.mod.
33223 (vga_mod_SOURCES): New variables.
33224 (vga_mod_CFLAGS): Likewise.
33225 (font_mod_SOURCES): Likewise.
33226 (font_mod_CFLAGS): Likewise.
33227
33228 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
33229
33230 * include/pupa/term.h: Include pupa/err.h.
f19dbdb7 33231 (struct pupa_term): Added init and fini.
18d9c7cd 33232 Changed the argument of putchar to pupa_uint32_t.
33233
33234 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
33235 (pupa_console_real_putchar): New prototype.
33236 (pupa_console_putchar): Removed.
33237 (pupa_console_checkkey): Exported.
33238 (pupa_console_getkey): Likewise.
33239
33240 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
33241 characters.
33242
33243 * kern/term.c (pupa_term_set_current): Rewritten.
33244 (pupa_putchar): Likewise.
33245 (pupa_putcode): New function.
33246
33247 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
33248 (pupa_console_real_putchar): ... this.
33249 (pupa_vga_set_mode): New function.
33250 (pupa_vga_get_font): Likewise.
33251
33252 * normal/command.c: Include pupa/term.h.
33253 (terminal_command): New function.
33254 (pupa_command_init): Register the command "terminal".
33255
33256 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
33257 (DISP_UP): Likewise.
33258 (DISP_RIGHT): Likewise.
33259 (DISP_DOWN): Likewise.
33260 (DISP_HLINE): Likewise.
33261 (DISP_VLINE): Likewise.
33262 (DISP_UL): Likewise.
33263 (DISP_UR): Likewise.
33264 (DISP_LL): Likewise.
33265 (DISP_LR): Likewise.
33266
33267 * term/i386/pc/console.c (pupa_console_putchar): New function.
f19dbdb7 33268
977329f5 332692003-02-08 NIIBE Yutaka <gniibe@m17n.org>
33270
33271 * util/resolve.c (pupa_util_resolve_dependencies): BUG
33272 FIX. Reverse the path_list.
33273
33274 * include/pupa/normal.h: Export pupa_register_command and
33275 pupa_unregister_command.
33276
33277 * hello/hello.c (pupa_cmd_hello): New module.
33278 * conf/i386-pc.rmk: Added hello.mod.
33279
1f5ab428 332802003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
33281
33282 * kern/i386/pc/lzo1x.S: New file.
f19dbdb7 33283
1f5ab428 33284 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
33285 (compress_kernel): New variable.
33286 (generate_image): Heavily modified to support compressing a
33287 large part of the core image.
33288
33289 * util/misc.c (pupa_util_read_image): Fix a file descriptor
33290 leak.
33291 (pupa_util_load_image): New function.
33292
33293 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
33294 (pupa_compressed_size): New variable.
33295 (codestart): Enable Gate A20 here.
33296 Decompress the compressed part of the core image.
33297 Rearrange the code to put functions and variables which are
33298 required for initialization in the non-compressed part.
33299 Include lzo1x.S.
33300
33301 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
33302 here.
33303
33304 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
33305
f19dbdb7 33306 * include/pupa/i386/pc/kernel.h
1f5ab428 33307 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
33308 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
33309 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33310 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33311 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
33312
33313 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
33314
33315 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
33316 (Utility#rule): Likewise.
33317
33318 * configure.ac: Check if LZO is available.
33319
ce5bf700 333202003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
33321
33322 * include/pupa/normal.h: New file.
33323 * include/pupa/setjmp.h: Likewise.
33324 * include/pupa/i386/setjmp.h: Likewise.
33325 * normal/cmdline.c: Likewise.
33326 * normal/command.c: Likewise.
33327 * normal/main.c: Likewise.
33328 * normal/menu.c: Likewise.
33329 * normal/i386/setjmp.S: Likewise.
f19dbdb7 33330
ce5bf700 33331 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
33332 (pupa_rescue_cmd_initrd): Likewise.
33333
33334 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
33335 Likewise.
33336
33337 * kern/i386/pc/startup.S (translation_table): New variable.
33338 (translate_keycode): New function.
33339 (pupa_console_getkey): Call translate_keycode.
33340
33341 * kern/rescue.c (attempt_normal_mode): New function.
33342 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
33343 it failed, print a message.
33344
33345 * kern/mm.c (pupa_real_malloc): Print more information when a
33346 free magic is broken.
33347 (pupa_free): If the first free header is not free actually, set
33348 it to P.
33349
33350 * kern/main.c (pupa_load_normal_mode): Just load the module
33351 "normal".
33352 (pupa_main): Don't print the message
33353 "Entering into rescue mode..." here.
33354
33355 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
33356 Declared.
33357 (pupa_rescue_cmd_initrd): Likewise.
33358 (pupa_rescue_cmd_initrd): Likewise.
33359
33360 * include/pupa/symbol.h (FUNCTION): Specify the type.
33361 (VARIABLE): Likewise.
33362
33363 * include/pupa/err.h (pupa_err_t): Added
33364 PUPA_ERR_UNKNOWN_COMMAND.
33365
33366 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
33367 (pupa_dl_get_prefix): Likewise.
33368
33369 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
33370 Added _chain.mod and _linux.mod instead of chain.mod and
33371 linux.mod.
33372 (chain_mod_SOURCES): Renamed to ...
33373 (_chain_mod_SOURCES): ... this.
33374 (chain_mod_CFLAGS): Renamed to ...
33375 (_chain_mod_CFLAGS): ... this.
33376 (linux_mod_SOURCES): Renamed to ...
33377 (_linux_mod_SOURCES): ... this.
33378 (linux_mod_CFLAGS): Renamed to ...
33379 (_linux_mod_CFLAGS): ... this.
33380 (normal_mod_SOURCES): New variable.
33381 (normal_mod_CFLAGS): Likewise.
33382 (normal_mod_ASFLAGS): Likewise.
33383
333842003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
33385
33386 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
33387 possible.
33388
fe6b695a 33389 * kern/dl.c (pupa_dl_ref): Refer depending modules
ce5bf700 33390 recursively.
33391 (pupa_dl_unref): Unrefer depending modules recursively.
33392 Don't call pupa_dl_unload implicitly, because PUPA can crash if
33393 a module is unloaded before one depending on that module is
33394 unloaded.
33395 (pupa_dl_unload): Unload depending modules explicitly,
33396 if possible.
33397
c04da074 333982003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
33399
33400 * include/pupa/i386/pc/linux.h: New file.
33401 * loader/i386/pc/linux.c: Likewise.
f19dbdb7 33402
c04da074 33403 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
33404 Removed.
33405 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
33406 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
33407 of PUPA_CHAINLOADER_BOOT_SECTOR.
33408
33409 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
33410 (pupa_linux_prot_size): New variable.
33411 (pupa_linux_tmp_addr): Likewise.
33412 (pupa_linux_real_addr): Likewise.
33413 (pupa_linux_boot_zimage): New function.
33414 (pupa_linux_boot_bzimage): Likewise.
33415
33416 * kern/i386/pc/init.c (struct mem_region): New structure.
33417 (MAX_REGIONS): New macro.
33418 (mem_regions): New variable.
33419 (num_regions): Likewise.
33420 (pupa_os_area_addr): Likewise.
33421 (pupa_os_area_size): Likewise.
33422 (pupa_lower_mem): Likewise.
33423 (pupa_upper_mem): Likewise.
33424 (add_mem_region): New function.
33425 (compact_mem_regions): Likewise.
33426 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
33427 the size of the conventional memory and that of so-called upper
33428 memory (before the first memory hole).
33429 Instead of adding each found region to free memory, use
33430 add_mem_region and add them after removing overlaps.
33431 Also, add only 1/4 of the upper memory to free memory. The rest
33432 is used for loading OS images. Maybe this is ad hoc, but this
33433 makes it much easier to relocate OS images when booting.
33434
33435 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
33436 (pupa_enter_rescue_mode): Don't register initrd and module.
33437
33438 * kern/mm.c: Include pupa/dl.h.
33439
33440 * kern/main.c: Include pupa/file.h and pupa/device.h.
33441
33442 * kern/loader.c (pupa_loader_load_module_func): Removed.
33443 (pupa_loader_load_module): Likewise.
33444
33445 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
33446 ``.o''.
33447
33448 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
33449 (pupa_linux_tmp_addr): Likewise.
33450 (pupa_linux_real_addr): Likewise.
33451 (pupa_linux_boot_zimage): Likewise.
33452 (pupa_linux_boot_bzimage): Likewise.
33453
33454 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
33455 (pupa_upper_mem): Likewise.
33456 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
33457 module is too dangerous.
33458
33459 * include/pupa/loader.h (pupa_os_area_addr): Declared.
33460 (pupa_os_area_size): Likewise.
33461 (pupa_loader_set): Remove the first argument. Loader doesn't
33462 manage modules or initrd any longer.
33463 (pupa_loader_load_module): Removed.
33464
33465 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
33466 (linux_mod_SOURCES): New variable.
33467 (linux_mod_CFLAGS): Likewise.
33468
a13f9237 334692003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
33470
33471 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
33472 the length of a blocklist correctly.
33473
33474 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
33475 Use ioctl only if the OS file is a block device.
33476 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
33477 not very useful for normal files.
33478
33479 * kern/main.c (pupa_set_root_dev): New function.
33480 (pupa_load_normal_mode): Likewise.
33481 (pupa_main): Call those above.
33482
33483 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
33484 pupa_uint16_t.
33485
33486 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
33487
a5ffe966 334882003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
33489
33490 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
33491 (setup): Configure the installed partition information and the
33492 dl prefix.
33493
33494 * loader/i386/pc/chainloader.c (my_mod): New variable.
33495 (pupa_chainloader_unload): New function.
33496 (pupa_rescue_cmd_chainloader): Refer itself.
33497 (PUPA_MOD_INIT): Save its own module in MY_MOD.
33498
33499 * kern/i386/pc/startup.S (install_partition): Removed.
33500 (version_string): Likewise.
33501 (config_file): Likewise.
33502 (pupa_install_dos_part): New variable.
33503 (pupa_install_bsd_part): Likewise.
33504 (pupa_prefix): Likewise.
33505 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
33506
33507 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
33508 and pupa/misc.h.
33509 (make_install_device): New function.
33510 (pupa_machine_init): Set the dl prefix.
33511
33512 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
33513 (buf): Renamed to ...
33514 (linebuf): ... this.
33515 (pupa_rescue_cmd_prefix): New function.
33516 (pupa_rescue_cmd_insmod): Likewise.
33517 (pupa_rescue_cmd_rmmod): Likewise.
33518 (pupa_rescue_cmd_lsmod): Likewise.
33519 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
33520 rmmod and lsmod.
33521
33522 * kern/mm.c (pupa_memalign): If failed even after invalidating
33523 disk caches, unload unneeded modules and retry.
33524
33525 * kern/misc.c (pupa_memmove): New function.
33526 (pupa_memcpy): Removed.
33527 (pupa_strcpy): New function.
33528 (pupa_itoa): Made static.
33529
33530 * kern/dl.c (pupa_dl_iterate): New function.
33531 (pupa_dl_ref): Likewise.
33532 (pupa_dl_unref): Likewise.
33533 (pupa_dl_unload): Return if succeeded or not.
33534 (pupa_dl_unload_unneeded): New function.
33535 (pupa_dl_unload_all): Likewise.
33536 (pupa_dl_init): Renamed to ...
33537 (pupa_dl_set_prefix): ... this.
33538 (pupa_dl_get_prefix): New function.
33539
33540 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
33541 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
33542 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
33543 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
33544 (pupa_install_dos_part): Declared.
33545 (pupa_install_bsd_part): Likewise.
33546 (pupa_prefix): Likewise.
33547 (pupa_boot_drive): Likewise.
33548
33549 * include/pupa/types.h: Fix a typo.
33550
33551 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
33552 pupa_memmove.
33553 (pupa_memmove): Declared.
33554 (pupa_strcpy): Likewise.
33555
33556 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
33557 pupa_mod_init takes one argument, its own module.
33558 (pupa_dl_unload_unneeded): Declared.
33559 (pupa_dl_unload_all): Likewise.
33560 (pupa_dl_ref): Likewise.
33561 (pupa_dl_unref): Likewise.
33562 (pupa_dl_iterate): Likewise.
33563 (pupa_dl_init): Renamed to ...
33564 (pupa_dl_set_prefix): ... this.
33565 (pupa_dl_get_prefix): Declared.
33566
33567 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
f19dbdb7 33568 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
a5ffe966 33569 unloaded.
33570 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
33571 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
33572
33573 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
33574 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
33575
012d7999 335762003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33577
33578 * util/i386/pc/pupa-setup.c (setup): Define the internal
33579 function find_first_partition_start at the top level, because GCC
33580 3.0.x cannot compile internal functions in deeper scopes
33581 correctly.
33582 (find_root_device): Use lstat instead of stat.
33583 Don't follow symbolic links.
33584 Fix the path-constructing code.
33585
33586 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
33587 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
33588 by a BLKGETSIZE ioctl first, because block devices don't fill
33589 the member st_mode of the structure stat on Linux.
33590 [__linux__] (linux_find_partition): Use a temporary buffer
33591 REAL_DEV for the working space. Copy it to DEV before returning.
33592 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
33593 buffer cache consistent.
33594 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
33595 strncmp. The previous value was merely wrong.
33596 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
33597
33598 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
33599 FAT size is 12. The previous value was merely wrong.
33600
33601 * kern/main.c (pupa_main): Don't split the starting message from
33602 newlines.
33603
33604 * kern/term.c (pupa_putchar): Put CR after LF instead of before
33605 LF, because BIOS goes crazy about character attributes in this
33606 case.
33607
1cc73a62 336082003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
33609
33610 * include/i386/pc/util/biosdisk.h: New file.
33611 * util/i386/pc/biosdisk.c: Likewise.
33612 * util/i386/pc/pupa-setup.c: Likewise.
f19dbdb7 33613
1cc73a62 33614 * Makefile.in (INCLUDE_DISTFILES): Added
33615 include/pupa/i386/pc/util/biosdisk.h.
33616 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
33617 directory util/i386/pc.
33618 (install-local): Added a rule for sbin_UTILITIES.
33619 (uninstall): Likewise.
33620
33621 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
33622
33623 * util/misc.c (xrealloc): New function.
33624 (pupa_malloc): Likewise.
33625 (pupa_free): Likewise.
33626 (pupa_realloc): Likewise.
33627 (pupa_stop): Likewise.
33628 (pupa_putchar): Likewise.
33629
33630 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
33631
33632 * include/pupa/util/misc.h (xrealloc): Declared.
33633
33634 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
33635 macro.
33636 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
33637 (PUPA_BOOT_MACHINE_BPB_END): ... this.
33638
33639 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
33640 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33641
33642 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
33643 way should be implemented.
33644 [PUPA_UTIL] (pupa_fat_fini): Likewise.
33645
33646 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
33647 the size of NAME for safety.
33648 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
33649 0x88.
33650
33651 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
33652 (pupa_setup_SOURCES): Likewise.
33653
33654 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
33655
08b70fe8 336562002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33657
33658 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
33659 bunch of pushl's from pusha, because this destroys the return
33660 value.
33661
62ddcc8f 336622002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
33663
33664 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
33665 This means that any missing prototypes could be fatal. Also, you
33666 must take care when writing assembly code. See the comments at
33667 the beginning of startup.S, for more details.
f19dbdb7 33668
62ddcc8f 33669 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
33670 compilation mechanism.
33671 (pupa_chainloader_real_boot): Likewise.
33672 (pupa_biosdisk_rw_int13_extensions): Likewise.
33673 (pupa_biosdisk_rw_standard): Likewise.
33674 (pupa_biosdisk_check_int13_extensions): Likewise.
33675 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
33676 (pupa_biosdisk_get_diskinfo_standard): Likewise.
33677 (pupa_get_memsize): Likewise.
33678 (pupa_get_mmap_entry): Likewise.
33679 (pupa_console_putchar): Likewise.
33680 (pupa_console_setcursor): Likewise.
33681 (pupa_getrtsecs): Use pushl instead of push.
33682
33683 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
33684 memory instead of the stack for a mmap entry, because some
33685 BIOSes may ignore the maximum size and overflow.
33686
33687 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
33688
33689 * genmk.rb (PModule#rule): Compile automatically generated
33690 sources with module-specific CFLAGS as well as other sources.
33691
9962ed99 336922002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33693
33694 * configure.ac: Check ld.
33695 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
33696 respectively, before checking endianness and sizes.
33697
33698 * Makefile.in (LD): New variable.
f19dbdb7 33699
abdfc3c5 337002002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33701
33702 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
33703
6a161fa9 337042002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
33705
33706 * Changelog: New file.
33707